@sme.up/ketchup2 2.7.0 → 2.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/dist/abnfDiagram-VCTEODGH-DwAVRNNu.js +89 -0
- package/dist/{arc-CVbkjF8U.js → arc-DXfwi1YX.js} +8 -6
- package/dist/architecture-7GRP2DOG-BsytjMto.js +3 -0
- package/dist/{architectureDiagram-3BPJPVTR-B6VZAtZU.js → architectureDiagram-5GKGNRK7-N1aPr2hw.js} +636 -540
- package/dist/assets/svg/functions.svg +1 -0
- package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/basic-components/button-list/button-list-types.d.ts +2 -1
- package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
- package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-types.d.ts +5 -0
- package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/basic-components/checkbox/checkbox-types.d.ts +5 -0
- package/dist/basic-components/checkbox/checkbox-types.d.ts.map +1 -1
- package/dist/basic-components/chips/chips-types.d.ts +15 -1
- package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
- package/dist/basic-components/chips/chips.d.ts.map +1 -1
- package/dist/basic-components/chips-input/chips-input-types.d.ts +5 -0
- package/dist/basic-components/chips-input/chips-input-types.d.ts.map +1 -1
- package/dist/basic-components/chips-input/chips-input.d.ts.map +1 -1
- package/dist/basic-components/file-upload/file-upload-hook.d.ts.map +1 -1
- package/dist/basic-components/list/list.d.ts.map +1 -1
- package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts +5 -0
- package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts.map +1 -1
- package/dist/basic-components/multiple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
- package/dist/basic-components/multiple-select/multiple-select-types.d.ts +5 -0
- package/dist/basic-components/multiple-select/multiple-select-types.d.ts.map +1 -1
- package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
- package/dist/basic-components/select/select.d.ts.map +1 -1
- package/dist/blockDiagram-I7D4REHJ-Cu18ws5-.js +1922 -0
- package/dist/{c4Diagram-AAUBKEIU-CdT8VCbo.js → c4Diagram-7LVT6UL2-B-uBy_NE.js} +899 -850
- package/dist/{channel-C-LAmObA.js → channel-CuEby436.js} +1 -1
- package/dist/chunk-2E4U76K2-ComA5SPA.js +348 -0
- package/dist/{chunk-QZHKN3VN-lYfzaOt9.js → chunk-2Q5K7J3B-kzxEEeTu.js} +2 -2
- package/dist/{chunk-3OPIFGDE-Bs2mXISw.js → chunk-4HAMMTFA-CZgIgrp_.js} +1667 -1145
- package/dist/{chunk-FMBD7UC4-BURT0llY.js → chunk-5VM5RSS4-Cr17nBXp.js} +2 -2
- package/dist/{chunk-5ZQYHXKU-B_nOC8-n.js → chunk-75Z2AOVW-Drsj7a97.js} +106 -136
- package/dist/chunk-CLGD4ZFX-CLGio9rD.js +14 -0
- package/dist/{chunk-CSCIHK7Q-BEk3YcEH.js → chunk-DU6HZSFF-waeanndy.js} +1005 -768
- package/dist/{chunk-ND2GUHAM-Ca12h-m9.js → chunk-F27PBJKO-jIrOJO87.js} +18 -17
- package/dist/{chunk-NNHCCRGN-BB1q5NkR.js → chunk-FOHPRMQF-LRqOLsSw.js} +5518 -4708
- package/dist/{chunk-O5CBEL6O-DbWeP4Au.js → chunk-GMAD6QVW-D80II4AD.js} +486 -520
- package/dist/chunk-GVQU2GXP-DP3t_9Rl.js +37 -0
- package/dist/{chunk-AQP2D5EJ-vJ_pitKp.js → chunk-IMKFNOWR-8ItzAAcf.js} +336 -318
- package/dist/{chunk-4BX2VUAB-zglw1T4d.js → chunk-JWPE2WC7-Ccb0QaC8.js} +2 -2
- package/dist/chunk-L3NEJ4N5-qPot4t6M.js +245 -0
- package/dist/chunk-LNGE3PJU-CtYcu9x8.js +1521 -0
- package/dist/{chunk-KSCS5N6A-BemQomLE.js → chunk-OSK3NFVY-CQhPF3Mc.js} +310 -198
- package/dist/chunk-P2QGCYS3-BUeNZ170.js +67 -0
- package/dist/chunk-POPQ4Y6H-CU9oz17Z.js +26 -0
- package/dist/chunk-PWAF6VOD-D37VoZ8H.js +275 -0
- package/dist/{flowDiagram-I6XJVG4X-DnsxKD0w.js → chunk-SHT3W25Y-Cri27Jke.js} +581 -543
- package/dist/chunk-SVP7TREG-CyJlOPau.js +490 -0
- package/dist/{chunk-727SXJPM-CDeV7mmg.js → chunk-TICWLB2K-Cw2iT_VD.js} +191 -185
- package/dist/{chunk-LZXEDZCA-J9irjuVP.js → chunk-TLUHSLCS-BdsLNXjt.js} +35 -25
- package/dist/chunk-XXDRQBXY-C1ZEFXGu.js +9 -0
- package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
- package/dist/classDiagram-ZZMXUADV-L32jCfMj.js +30 -0
- package/dist/classDiagram-v2-VYDZK3BY-BsnrDCgX.js +30 -0
- package/dist/components/activity-timeline/activity-timeline-types.d.ts +46 -0
- package/dist/components/activity-timeline/activity-timeline-types.d.ts.map +1 -0
- package/dist/components/activity-timeline/activity-timeline.d.ts +4 -0
- package/dist/components/activity-timeline/activity-timeline.d.ts.map +1 -0
- package/dist/components/app-bar/app-bar.d.ts.map +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/dist/components/chat/chat.d.ts.map +1 -1
- package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts +12 -0
- package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts.map +1 -0
- package/dist/components/data-table/assets/data-table-row-actions.d.ts +11 -0
- package/dist/components/data-table/assets/data-table-row-actions.d.ts.map +1 -0
- package/dist/components/data-table/data-table-types.d.ts +52 -1
- package/dist/components/data-table/data-table-types.d.ts.map +1 -1
- package/dist/components/data-table/data-table.d.ts.map +1 -1
- package/dist/components/data-table/header/Header.d.ts.map +1 -1
- package/dist/components/data-table/header/header-types.d.ts +7 -1
- package/dist/components/data-table/header/header-types.d.ts.map +1 -1
- package/dist/components/echarts/echarts-graph.d.ts.map +1 -1
- package/dist/components/scaffold/context/scaffold-provider.d.ts.map +1 -1
- package/dist/components/tab-bar/tab-bar-assets.d.ts +1 -0
- package/dist/components/tab-bar/tab-bar-assets.d.ts.map +1 -1
- package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts +14 -0
- package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -0
- package/dist/components/workflow-designer/workflow-designer-types.d.ts +40 -7
- package/dist/components/workflow-designer/workflow-designer-types.d.ts.map +1 -1
- package/dist/components/workflow-designer/workflow-designer-utils.d.ts +80 -1
- package/dist/components/workflow-designer/workflow-designer-utils.d.ts.map +1 -1
- package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts +2 -0
- package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts.map +1 -0
- package/dist/components/workflow-designer/workflow-designer.d.ts +4 -3
- package/dist/components/workflow-designer/workflow-designer.d.ts.map +1 -1
- package/dist/{cose-bilkent-S5V4N54A-BhA3VnPW.js → cose-bilkent-JH36ORCC-Qs_Z6zBZ.js} +87 -83
- package/dist/cynefin-OW5HDTMX-BJXlKro0.js +3 -0
- package/dist/cynefinDiagram-5FMLGOSQ-3Ha1hdlV.js +355 -0
- package/dist/{cytoscape.esm-BU21wl3m.js → cytoscape.esm-C5TvPYYm.js} +2749 -2701
- package/dist/{dagre-3-RnF0EK.js → dagre-D5csT9sx.js} +144 -146
- package/dist/dagre-GXQ25YYZ-Bg7xf6xn.js +425 -0
- package/dist/{defaultLocale-DnzPsei5.js → defaultLocale-N-0uLSyg.js} +1 -4
- package/dist/diagram-S7CK7UJ4-BuDHTdHA.js +301 -0
- package/dist/{diagram-2AECGRRQ-23vM90dy.js → diagram-UQ7AKVKN-uvzJGj43.js} +82 -81
- package/dist/{diagram-KO2AKTUF-BEnEQF6b.js → diagram-VSXAHHWV-CrQQCs-B.js} +66 -65
- package/dist/{diagram-OG6HWLK6-Cfbv6mIH.js → diagram-VX7I27RA-BNmG1sig.js} +92 -89
- package/dist/{diagram-LMA3HP47-OWxAHrmz.js → diagram-Z3DM3KII-B6BrLhP0.js} +21 -20
- package/dist/{dist-Btd8EZyy.js → dist-CsrMlyO_.js} +2 -3
- package/dist/ebnfDiagram-PWID7BFC-DMx8xAFO.js +100 -0
- package/dist/erDiagram-RLTQ6QDP-bkJ9nzVK.js +1966 -0
- package/dist/eventmodeling-NTZA5JFV-Cj-VH7yh.js +3 -0
- package/dist/flowDiagram-HODETNUW-BIvD7-ts.js +17 -0
- package/dist/functional-components/multiple-field/multiple-field-types.d.ts +2 -0
- package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
- package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
- package/dist/functional-components/row/row-types.d.ts +5 -0
- package/dist/functional-components/row/row-types.d.ts.map +1 -1
- package/dist/functional-components/row/row.d.ts.map +1 -1
- package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts +3 -1
- package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -1
- package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -1
- package/dist/functional-components/tree-picker/tree-picker-types.d.ts +42 -0
- package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -0
- package/dist/functional-components/tree-picker/tree-picker.d.ts +3 -0
- package/dist/functional-components/tree-picker/tree-picker.d.ts.map +1 -0
- package/dist/{ganttDiagram-6RSMTGT7-CwbJqdwB.js → ganttDiagram-EL5Y4UJY-CL-ywzz_.js} +703 -710
- package/dist/gitGraph-4MIJSDKK-C9JGDovl.js +3 -0
- package/dist/{gitGraphDiagram-PVQCEYII-mL2WiT98.js → gitGraphDiagram-WWUBYQGX-aXhNDG6P.js} +156 -151
- package/dist/{graphlib-VMWSbyYi.js → graphlib-XW-Jr8pF.js} +5 -5
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/info-A6RAGUB7-CmZJKEaW.js +3 -0
- package/dist/infoDiagram-27XIBGKW-Je4heBlk.js +20 -0
- package/dist/{init-MwSGRDIl.js → init-CsQUQz36.js} +1 -3
- package/dist/{ishikawaDiagram-YF4QCWOH-DGOgWzve.js → ishikawaDiagram-5VMMS53U-DK7HlH95.js} +142 -141
- package/dist/{journeyDiagram-JHISSGLW-CHVTMdrq.js → journeyDiagram-3NMN7TZE-CpuYEKcB.js} +192 -191
- package/dist/{kanban-definition-UN3LZRKU-upKA3b5x.js → kanban-definition-UXKFOSKX-aK8uKmyY.js} +149 -146
- package/dist/{katex-D-2KeLwt.js → katex-CT2p8LXT.js} +1627 -1650
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +34744 -32755
- package/dist/{line-DIhSUgmA.js → line-DTqYMLoX.js} +2 -2
- package/dist/{linear-DUAteVwl.js → linear-CXc5xaa6.js} +8 -9
- package/dist/locale/en/translation.json.d.ts +16 -0
- package/dist/locale/it/translation.json.d.ts +16 -0
- package/dist/mermaid-parser.core-BwVmI_Rq.js +638 -0
- package/dist/{mindmap-definition-RKZ34NQL-C3YkCJDi.js → mindmap-definition-YA3MSWOX-ZMYcmi9J.js} +170 -170
- package/dist/{ordinal-D_ZgubzR.js → ordinal-BubEveRk.js} +1 -1
- package/dist/packet-AYTQ26CC-B3tgRshR.js +3 -0
- package/dist/{path-DGNPZRdx.js → path-CnWkkRiY.js} +10 -11
- package/dist/pegDiagram-XKGWAZYB-DsfILwZN.js +94 -0
- package/dist/pie-WAS4IAKB-BRiI8kbI.js +3 -0
- package/dist/pieDiagram-E7YTZNPT-DcSLcLdd.js +203 -0
- package/dist/{quadrantDiagram-W4KKPZXB-C2oA-eGZ.js → quadrantDiagram-AXDQQJYC-DSx3teop.js} +300 -300
- package/dist/radar-RG4KPBEZ-ASOMQXFw.js +3 -0
- package/dist/railroad-74A4TZTK-oS840SLr.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-nnQAkZY2.js +3 -0
- package/dist/railroad-ebnf-LZEXJU2U-DBQIOba3.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-fBPN2TVb.js +3 -0
- package/dist/railroadDiagram-O6MQD6OU-jOZRtNDi.js +76 -0
- package/dist/{requirementDiagram-4Y6WPE33-BEGryahw.js → requirementDiagram-BXWQKSXE-D14hkkez.js} +176 -173
- package/dist/{rough.esm-rcMoXTJj.js → rough.esm-DXYGHN3m.js} +60 -51
- package/dist/{sankeyDiagram-5OEKKPKP-VPzKV4zM.js → sankeyDiagram-P5KCCOFB-C0jmknYo.js} +123 -120
- package/dist/{sequenceDiagram-3UESZ5HK-Bc30_Cm2.js → sequenceDiagram-WJ2MYXX4-C00egnMz.js} +714 -722
- package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
- package/dist/{src-DjDATEq3.js → src-DQoflmwT.js} +499 -509
- package/dist/stateDiagram-D77RDMKH-YfzmviNY.js +220 -0
- package/dist/stateDiagram-v2-MP3YSRHH-B6Hzx8T0.js +30 -0
- package/dist/swimlanes-42K2YHIH-CJcMmxXf.js +4979 -0
- package/dist/swimlanesDiagram-VR7AAH4N-DirvhGBA.js +31 -0
- package/dist/{timeline-definition-PNZ67QCA-1z911Ume.js → timeline-definition-24CTP7MA-D2xfYuSV.js} +220 -219
- package/dist/treeView-Q6P3EWNA-BmvB2b-_.js +3 -0
- package/dist/treemap-WGGIJYW6-Cjjk75wA.js +3 -0
- package/dist/types/translation.d.ts +17 -1
- package/dist/types/translation.d.ts.map +1 -1
- package/dist/utils/data-structures.d.ts +2 -1
- package/dist/utils/data-structures.d.ts.map +1 -1
- package/dist/{v4-BK7K-jy_.js → v4-DIjJgmR0.js} +1 -1
- package/dist/{vennDiagram-CIIHVFJN-BiLcQ0SR.js → vennDiagram-4TSXK5OY-C4XLgus_.js} +332 -310
- package/dist/wardley-WFR3VGLG-BamDiE0x.js +3 -0
- package/dist/{wardleyDiagram-YWT4CUSO-Bq-BejOl.js → wardleyDiagram-VM6X3IG4-DFoKuS9s.js} +156 -155
- package/dist/{xychartDiagram-2RQKCTM6-B13zquXC.js → xychartDiagram-S5SC5T6Z-BzKKgVBe.js} +740 -574
- package/package.json +41 -38
- package/dist/arc-w3BipdfE.cjs +0 -1
- package/dist/architecture-7EHR7CIX-Bzeobe9Y.cjs +0 -1
- package/dist/architecture-7EHR7CIX-C8NPmR2w.js +0 -3
- package/dist/architectureDiagram-3BPJPVTR-DlnXl9d5.cjs +0 -36
- package/dist/array-DZSRzHA_.cjs +0 -1
- package/dist/blockDiagram-GPEHLZMM-BohmRoCC.js +0 -3157
- package/dist/blockDiagram-GPEHLZMM-rfyR2Ffl.cjs +0 -132
- package/dist/c4Diagram-AAUBKEIU-Du1vqJYZ.cjs +0 -10
- package/dist/channel-DJpMBAs-.cjs +0 -1
- package/dist/chunk-2J33WTMH-BMqA-riF.js +0 -25
- package/dist/chunk-2J33WTMH-BQs9SXq8.cjs +0 -1
- package/dist/chunk-3OPIFGDE-Bk_ByTBh.cjs +0 -62
- package/dist/chunk-4BX2VUAB-C8VW0QW0.cjs +0 -1
- package/dist/chunk-55IACEB6-CNxnI3nm.cjs +0 -1
- package/dist/chunk-55IACEB6-CmKDx-YO.js +0 -8
- package/dist/chunk-5ZQYHXKU-DMrStm4M.cjs +0 -2
- package/dist/chunk-727SXJPM-Dj8nsm0O.cjs +0 -206
- package/dist/chunk-AQP2D5EJ-CYuEYK6i.cjs +0 -231
- package/dist/chunk-BSJP7CBP-CSCICPww.cjs +0 -1
- package/dist/chunk-BSJP7CBP-YsQACkyC.js +0 -82
- package/dist/chunk-CSCIHK7Q-BAdl6GW-.cjs +0 -124
- package/dist/chunk-FMBD7UC4-BIKI8zae.cjs +0 -15
- package/dist/chunk-KSCS5N6A-DsN7gJEf.cjs +0 -10
- package/dist/chunk-L5ZTLDWV-BQCNoMVG.js +0 -32
- package/dist/chunk-L5ZTLDWV-BbLRyKcx.cjs +0 -1
- package/dist/chunk-LZXEDZCA-rjLYyX5U.cjs +0 -1
- package/dist/chunk-ND2GUHAM-1o9Sjy2_.cjs +0 -1
- package/dist/chunk-NNHCCRGN-qV8bfiMQ.cjs +0 -159
- package/dist/chunk-NZK2D7GU-CPxdSJTy.js +0 -67
- package/dist/chunk-NZK2D7GU-CRneGIrP.cjs +0 -1
- package/dist/chunk-O5CBEL6O-Cd4Z5Dy9.cjs +0 -70
- package/dist/chunk-QZHKN3VN-ZJ4hLUIw.cjs +0 -1
- package/dist/chunk-WU5MYG2G-DuCEb9G-.js +0 -9
- package/dist/chunk-WU5MYG2G-ExiaHFbF.cjs +0 -1
- package/dist/chunk-XPW4576I-BybfDrup.cjs +0 -32
- package/dist/chunk-XPW4576I-D3DQ47oC.js +0 -1146
- package/dist/classDiagram-4FO5ZUOK-CRX1QumH.js +0 -29
- package/dist/classDiagram-4FO5ZUOK-yTAlLFG2.cjs +0 -1
- package/dist/classDiagram-v2-Q7XG4LA2-oM01mYfB.js +0 -29
- package/dist/classDiagram-v2-Q7XG4LA2-yTAlLFG2.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-D7fhWOP4.cjs +0 -1
- package/dist/cytoscape.esm-CElDUMAx.cjs +0 -321
- package/dist/dagre-B2BBwKNb.cjs +0 -1
- package/dist/dagre-BM42HDAG-DfpR5Mml.js +0 -297
- package/dist/dagre-BM42HDAG-kORxgFz_.cjs +0 -4
- package/dist/defaultLocale-u9yUoUmE.cjs +0 -1
- package/dist/diagram-2AECGRRQ-B0IEGKjr.cjs +0 -43
- package/dist/diagram-5GNKFQAL-BEY9x4us.js +0 -101
- package/dist/diagram-5GNKFQAL-vb6e35PR.cjs +0 -10
- package/dist/diagram-KO2AKTUF-9V_zu-2x.cjs +0 -3
- package/dist/diagram-LMA3HP47-BN_geiB9.cjs +0 -24
- package/dist/diagram-OG6HWLK6-6OnEK9-6.cjs +0 -24
- package/dist/dist-D8RD2QWc.cjs +0 -1
- package/dist/erDiagram-TEJ5UH35-6OEXIM6m.js +0 -1700
- package/dist/erDiagram-TEJ5UH35-CzsOt0l4.cjs +0 -85
- package/dist/eventmodeling-FCH6USID-Cued7Lz2.cjs +0 -1
- package/dist/eventmodeling-FCH6USID-mCB8hc7X.js +0 -3
- package/dist/flowDiagram-I6XJVG4X-DR1CMtZZ.cjs +0 -162
- package/dist/ganttDiagram-6RSMTGT7-C5t5_mjf.cjs +0 -292
- package/dist/gitGraph-WXDBUCRP-B23gOjfP.js +0 -3
- package/dist/gitGraph-WXDBUCRP-Bi-Y5dA7.cjs +0 -1
- package/dist/gitGraphDiagram-PVQCEYII-CLdgm7yJ.cjs +0 -106
- package/dist/graphlib-CkkG5MuS.cjs +0 -1
- package/dist/info-J43DQDTF-DC3N8SoX.js +0 -3
- package/dist/info-J43DQDTF-jRjlWVKj.cjs +0 -1
- package/dist/infoDiagram-5YYISTIA-BIM8xaiE.js +0 -19
- package/dist/infoDiagram-5YYISTIA-CbnHgs-I.cjs +0 -2
- package/dist/init-07zIhv_j.cjs +0 -1
- package/dist/ishikawaDiagram-YF4QCWOH-DAWMXD1l.cjs +0 -70
- package/dist/journeyDiagram-JHISSGLW-DfnmJPLn.cjs +0 -139
- package/dist/kanban-definition-UN3LZRKU-CbeoJJE7.cjs +0 -89
- package/dist/katex-CkiTumqg.cjs +0 -257
- package/dist/ketchup2.cjs.js +0 -485
- package/dist/line-CzwncDY3.cjs +0 -1
- package/dist/linear-1lpO_WlJ.cjs +0 -1
- package/dist/mermaid-parser.core-ADyJ_PY4.cjs +0 -3
- package/dist/mermaid-parser.core-D6xVjl2t.js +0 -373
- package/dist/mindmap-definition-RKZ34NQL-C8cZ7xN-.cjs +0 -96
- package/dist/ordinal-CUPR-p0T.cjs +0 -1
- package/dist/packet-YPE3B663-CGZxZ1Z0.cjs +0 -1
- package/dist/packet-YPE3B663-D2JW2EUF.js +0 -3
- package/dist/path-Kklx0M1v.cjs +0 -1
- package/dist/pie-LRSECV5Y-BHyd33ZA.js +0 -3
- package/dist/pie-LRSECV5Y-Ca_qbHEv.cjs +0 -1
- package/dist/pieDiagram-4H26LBE5-BvhguaHn.js +0 -165
- package/dist/pieDiagram-4H26LBE5-DpDrJBQK.cjs +0 -30
- package/dist/quadrantDiagram-W4KKPZXB-hWSN7YfD.cjs +0 -7
- package/dist/radar-GUYGQ44K-BpJWFTCm.js +0 -3
- package/dist/radar-GUYGQ44K-CYqWSxO_.cjs +0 -1
- package/dist/requirementDiagram-4Y6WPE33-GmjmsbiY.cjs +0 -84
- package/dist/rough.esm-r0QOSzHM.cjs +0 -1
- package/dist/sankeyDiagram-5OEKKPKP-DbGAx-Bm.cjs +0 -40
- package/dist/sequenceDiagram-3UESZ5HK-D85rpewi.cjs +0 -162
- package/dist/src-DEmZ9bFr.cjs +0 -1
- package/dist/stateDiagram-AJRCARHV-Bg4Y3HPa.cjs +0 -1
- package/dist/stateDiagram-AJRCARHV-wqjltbKb.js +0 -217
- package/dist/stateDiagram-v2-BHNVJYJU-Cgrf5tQC.js +0 -27
- package/dist/stateDiagram-v2-BHNVJYJU-D_Tzn4WM.cjs +0 -1
- package/dist/timeline-definition-PNZ67QCA-Dpu3hfhP.cjs +0 -120
- package/dist/treeView-BLDUP644-C9tQMbiq.js +0 -3
- package/dist/treeView-BLDUP644-DKh9BcaT.cjs +0 -1
- package/dist/treemap-LRROVOQU-2aferAph.cjs +0 -1
- package/dist/treemap-LRROVOQU-CBv3oGC3.js +0 -3
- package/dist/v4-Dyp-SQ1c.cjs +0 -1
- package/dist/vennDiagram-CIIHVFJN-BLBDqWTG.cjs +0 -34
- package/dist/wardley-L42UT6IY-CIM0_V5T.js +0 -3
- package/dist/wardley-L42UT6IY-DjjjOB8T.cjs +0 -1
- package/dist/wardleyDiagram-YWT4CUSO-dzyAWKiV.cjs +0 -78
- package/dist/xychartDiagram-2RQKCTM6-DA3O42Dk.cjs +0 -7
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as e, m as t } from "./src-DQoflmwT.js";
|
|
2
|
+
import { n, t as r } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
2
3
|
//#region node_modules/dompurify/dist/purify.es.mjs
|
|
3
4
|
function i(e, t) {
|
|
4
5
|
(t == null || t > e.length) && (t = e.length);
|
|
@@ -50,20 +51,20 @@ p ||= function(e) {
|
|
|
50
51
|
}, ae ||= function(e) {
|
|
51
52
|
return new e(...[...arguments].slice(1));
|
|
52
53
|
};
|
|
53
|
-
var oe =
|
|
54
|
-
function
|
|
54
|
+
var oe = v(Array.prototype.forEach), se = v(Array.prototype.lastIndexOf), ce = v(Array.prototype.pop), le = v(Array.prototype.push), ue = v(Array.prototype.splice), de = Array.isArray, fe = v(String.prototype.toLowerCase), pe = v(String.prototype.toString), me = v(String.prototype.match), he = v(String.prototype.replace), ge = v(String.prototype.indexOf), _e = v(String.prototype.trim), ve = v(Number.prototype.toString), ye = v(Boolean.prototype.toString), h = typeof BigInt > "u" ? null : v(BigInt.prototype.toString), be = typeof Symbol > "u" ? null : v(Symbol.prototype.toString), g = v(Object.prototype.hasOwnProperty), xe = v(Object.prototype.toString), _ = v(RegExp.prototype.test), Se = Ce(TypeError);
|
|
55
|
+
function v(e) {
|
|
55
56
|
return function(t) {
|
|
56
57
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
57
58
|
var n = [...arguments].slice(1);
|
|
58
59
|
return ie(e, t, n);
|
|
59
60
|
};
|
|
60
61
|
}
|
|
61
|
-
function
|
|
62
|
+
function Ce(e) {
|
|
62
63
|
return function() {
|
|
63
64
|
return ae(e, [...arguments]);
|
|
64
65
|
};
|
|
65
66
|
}
|
|
66
|
-
function
|
|
67
|
+
function y(e, t) {
|
|
67
68
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : fe;
|
|
68
69
|
if (d && d(e, null), !de(t)) return e;
|
|
69
70
|
let r = t.length;
|
|
@@ -77,46 +78,46 @@ function x(e, t) {
|
|
|
77
78
|
}
|
|
78
79
|
return e;
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
-
for (let t = 0; t < e.length; t++)
|
|
81
|
+
function b(e) {
|
|
82
|
+
for (let t = 0; t < e.length; t++) g(e, t) || (e[t] = null);
|
|
82
83
|
return e;
|
|
83
84
|
}
|
|
84
|
-
function
|
|
85
|
+
function x(e) {
|
|
85
86
|
let t = ne(null);
|
|
86
87
|
for (let r of u(e)) {
|
|
87
88
|
var n = c(r, 2);
|
|
88
89
|
let i = n[0], a = n[1];
|
|
89
|
-
|
|
90
|
+
g(e, i) && (t[i] = de(a) ? b(a) : a && typeof a == "object" && a.constructor === Object ? x(a) : a);
|
|
90
91
|
}
|
|
91
92
|
return t;
|
|
92
93
|
}
|
|
93
|
-
function
|
|
94
|
+
function we(e) {
|
|
94
95
|
switch (typeof e) {
|
|
95
96
|
case "string": return e;
|
|
96
97
|
case "number": return ve(e);
|
|
97
98
|
case "boolean": return ye(e);
|
|
98
99
|
case "bigint": return h ? h(e) : "0";
|
|
99
|
-
case "symbol": return
|
|
100
|
-
case "undefined": return
|
|
100
|
+
case "symbol": return be ? be(e) : "Symbol()";
|
|
101
|
+
case "undefined": return xe(e);
|
|
101
102
|
case "function":
|
|
102
103
|
case "object": {
|
|
103
|
-
if (e === null) return
|
|
104
|
-
let t = e, n =
|
|
104
|
+
if (e === null) return xe(e);
|
|
105
|
+
let t = e, n = S(t, "toString");
|
|
105
106
|
if (typeof n == "function") {
|
|
106
107
|
let e = n(t);
|
|
107
|
-
return typeof e == "string" ? e :
|
|
108
|
+
return typeof e == "string" ? e : xe(e);
|
|
108
109
|
}
|
|
109
|
-
return
|
|
110
|
+
return xe(e);
|
|
110
111
|
}
|
|
111
|
-
default: return
|
|
112
|
+
default: return xe(e);
|
|
112
113
|
}
|
|
113
114
|
}
|
|
114
|
-
function
|
|
115
|
+
function S(e, t) {
|
|
115
116
|
for (; e !== null;) {
|
|
116
117
|
let n = te(e, t);
|
|
117
118
|
if (n) {
|
|
118
|
-
if (n.get) return
|
|
119
|
-
if (typeof n.value == "function") return
|
|
119
|
+
if (n.get) return v(n.get);
|
|
120
|
+
if (typeof n.value == "function") return v(n.value);
|
|
120
121
|
}
|
|
121
122
|
e = ee(e);
|
|
122
123
|
}
|
|
@@ -125,14 +126,14 @@ function C(e, t) {
|
|
|
125
126
|
}
|
|
126
127
|
return n;
|
|
127
128
|
}
|
|
128
|
-
function
|
|
129
|
+
function Te(e) {
|
|
129
130
|
try {
|
|
130
|
-
return
|
|
131
|
+
return _(e, ""), !0;
|
|
131
132
|
} catch {
|
|
132
133
|
return !1;
|
|
133
134
|
}
|
|
134
135
|
}
|
|
135
|
-
var
|
|
136
|
+
var Ee = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), De = p(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), Oe = p([
|
|
136
137
|
"feBlend",
|
|
137
138
|
"feColorMatrix",
|
|
138
139
|
"feComponentTransfer",
|
|
@@ -158,7 +159,7 @@ var Te = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
158
159
|
"feSpotLight",
|
|
159
160
|
"feTile",
|
|
160
161
|
"feTurbulence"
|
|
161
|
-
]),
|
|
162
|
+
]), ke = p([
|
|
162
163
|
"animate",
|
|
163
164
|
"color-profile",
|
|
164
165
|
"cursor",
|
|
@@ -181,7 +182,7 @@ var Te = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
181
182
|
"solidcolor",
|
|
182
183
|
"unknown",
|
|
183
184
|
"use"
|
|
184
|
-
]),
|
|
185
|
+
]), Ae = p(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), je = p([
|
|
185
186
|
"maction",
|
|
186
187
|
"maligngroup",
|
|
187
188
|
"malignmark",
|
|
@@ -197,13 +198,13 @@ var Te = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
197
198
|
"annotation-xml",
|
|
198
199
|
"mprescripts",
|
|
199
200
|
"none"
|
|
200
|
-
]),
|
|
201
|
+
]), Me = p(["#text"]), Ne = p(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns".split(".")), Pe = p(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), Fe = p(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), Ie = p([
|
|
201
202
|
"xlink:href",
|
|
202
203
|
"xml:id",
|
|
203
204
|
"xlink:title",
|
|
204
205
|
"xml:space",
|
|
205
206
|
"xmlns:xlink"
|
|
206
|
-
]),
|
|
207
|
+
]), Le = m(/{{[\w\W]*|^[\w\W]*}}/g), Re = m(/<%[\w\W]*|^[\w\W]*%>/g), ze = m(/\${[\w\W]*/g), Be = m(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ve = m(/^aria-[\-\w]+$/), He = m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Ue = m(/^(?:\w+script|data):/i), We = m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Ge = m(/^html$/i), Ke = m(/^[a-z][.\w]*(-[.\w]+)+$/i), qe = m(/<[/\w!]/g), Je = m(/<[/\w]/g), Ye = m(/<\/no(script|embed|frames)/i), Xe = m(/\/>/i), C = {
|
|
207
208
|
element: 1,
|
|
208
209
|
attribute: 2,
|
|
209
210
|
text: 3,
|
|
@@ -216,9 +217,23 @@ var Te = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
216
217
|
documentType: 10,
|
|
217
218
|
documentFragment: 11,
|
|
218
219
|
notation: 12
|
|
219
|
-
},
|
|
220
|
+
}, w = [
|
|
221
|
+
"style",
|
|
222
|
+
"script",
|
|
223
|
+
"xmp",
|
|
224
|
+
"iframe",
|
|
225
|
+
"noembed",
|
|
226
|
+
"noframes",
|
|
227
|
+
"plaintext",
|
|
228
|
+
"noscript"
|
|
229
|
+
], Ze = p(y({}, w)), Qe = function() {
|
|
230
|
+
let e = {};
|
|
231
|
+
return oe(w, (t) => {
|
|
232
|
+
e[t] = m(RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
|
|
233
|
+
}), p(e);
|
|
234
|
+
}(), $e = function() {
|
|
220
235
|
return typeof window > "u" ? null : window;
|
|
221
|
-
},
|
|
236
|
+
}, et = function(e, t) {
|
|
222
237
|
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
223
238
|
let n = null, r = "data-tt-policy-suffix";
|
|
224
239
|
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
@@ -235,7 +250,7 @@ var Te = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
235
250
|
} catch {
|
|
236
251
|
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
237
252
|
}
|
|
238
|
-
},
|
|
253
|
+
}, tt = function() {
|
|
239
254
|
return {
|
|
240
255
|
afterSanitizeAttributes: [],
|
|
241
256
|
afterSanitizeElements: [],
|
|
@@ -247,53 +262,60 @@ var Te = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
247
262
|
uponSanitizeElement: [],
|
|
248
263
|
uponSanitizeShadowNode: []
|
|
249
264
|
};
|
|
250
|
-
},
|
|
251
|
-
return
|
|
265
|
+
}, nt = function(e, t, n, r) {
|
|
266
|
+
return g(e, t) && de(e[t]) ? y(r.base ? x(r.base) : {}, e[t], r.transform) : n;
|
|
267
|
+
}, rt = function(e, t, n) {
|
|
268
|
+
let r = g(e, t) ? e[t] : void 0;
|
|
269
|
+
return r && typeof r == "object" ? x(r) : n();
|
|
252
270
|
};
|
|
253
|
-
function
|
|
254
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
255
|
-
if (t.version = "3.4.
|
|
271
|
+
function it() {
|
|
272
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : $e(), t = (e) => it(e);
|
|
273
|
+
if (t.version = "3.4.14", t.removed = [], !e || !e.document || e.document.nodeType !== C.document || !e.Element) return t.isSupported = !1, t;
|
|
256
274
|
let n = e.document, r = n, i = r.currentScript;
|
|
257
275
|
e.DocumentFragment;
|
|
258
276
|
let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
|
|
259
277
|
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
260
|
-
let l = e.DOMParser, d = e.trustedTypes, f = s.prototype, ee =
|
|
278
|
+
let l = e.DOMParser, d = e.trustedTypes, f = s.prototype, ee = S(f, "cloneNode"), te = S(f, "remove"), re = S(f, "nextSibling"), ie = S(f, "childNodes"), ae = S(f, "parentNode"), ve = S(f, "shadowRoot"), ye = S(f, "attributes"), h = o && o.prototype ? S(o.prototype, "nodeType") : null, be = o && o.prototype ? S(o.prototype, "nodeName") : null, xe = o && o.prototype ? S(o.prototype, "ownerDocument") : null, v = function(e) {
|
|
279
|
+
return h ? h(e) : e.nodeType;
|
|
280
|
+
}, Ce = function(e) {
|
|
281
|
+
return be ? be(e) : e.nodeName;
|
|
282
|
+
};
|
|
261
283
|
if (typeof a == "function") {
|
|
262
284
|
let e = n.createElement("template");
|
|
263
285
|
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
264
286
|
}
|
|
265
|
-
let
|
|
266
|
-
if (
|
|
267
|
-
},
|
|
268
|
-
|
|
287
|
+
let b, w = "", T, at = !1, E = 0, D = function() {
|
|
288
|
+
if (E > 0) throw Se("A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the \"DOMPurify and Trusted Types\" section of the README.");
|
|
289
|
+
}, O = function(e) {
|
|
290
|
+
D(), E++;
|
|
269
291
|
try {
|
|
270
|
-
return
|
|
292
|
+
return b.createHTML(e);
|
|
271
293
|
} finally {
|
|
272
|
-
|
|
294
|
+
E--;
|
|
273
295
|
}
|
|
274
|
-
},
|
|
275
|
-
|
|
296
|
+
}, ot = function(e) {
|
|
297
|
+
D(), E++;
|
|
276
298
|
try {
|
|
277
|
-
return
|
|
299
|
+
return b.createScriptURL(e);
|
|
278
300
|
} finally {
|
|
279
|
-
|
|
301
|
+
E--;
|
|
280
302
|
}
|
|
281
|
-
},
|
|
282
|
-
return
|
|
283
|
-
},
|
|
284
|
-
t.isSupported = typeof u == "function" && typeof ae == "function" &&
|
|
285
|
-
let
|
|
286
|
-
...Te,
|
|
303
|
+
}, st = function() {
|
|
304
|
+
return at ||= (T = et(d, i), !0), T;
|
|
305
|
+
}, k = n, A = k.implementation, ct = k.createNodeIterator, lt = k.createDocumentFragment, j = k.getElementsByTagName, ut = r.importNode, M = tt();
|
|
306
|
+
t.isSupported = typeof u == "function" && typeof ae == "function" && A && A.createHTMLDocument !== void 0;
|
|
307
|
+
let dt = Le, ft = Re, N = ze, pt = Be, P = Ve, F = Ue, I = We, mt = Ke, L = He, R = null, z = y({}, [
|
|
287
308
|
...Ee,
|
|
288
309
|
...De,
|
|
289
|
-
...
|
|
290
|
-
...
|
|
291
|
-
|
|
292
|
-
|
|
310
|
+
...Oe,
|
|
311
|
+
...Ae,
|
|
312
|
+
...Me
|
|
313
|
+
]), B = null, V = y({}, [
|
|
293
314
|
...Ne,
|
|
294
315
|
...Pe,
|
|
295
|
-
...Fe
|
|
296
|
-
|
|
316
|
+
...Fe,
|
|
317
|
+
...Ie
|
|
318
|
+
]), H = Object.seal(ne(null, {
|
|
297
319
|
tagNameCheck: {
|
|
298
320
|
writable: !0,
|
|
299
321
|
configurable: !1,
|
|
@@ -312,7 +334,7 @@ function et() {
|
|
|
312
334
|
enumerable: !0,
|
|
313
335
|
value: !1
|
|
314
336
|
}
|
|
315
|
-
})),
|
|
337
|
+
})), ht = null, gt = null, _t = Object.seal(ne(null, {
|
|
316
338
|
tagCheck: {
|
|
317
339
|
writable: !0,
|
|
318
340
|
configurable: !1,
|
|
@@ -325,14 +347,14 @@ function et() {
|
|
|
325
347
|
enumerable: !0,
|
|
326
348
|
value: null
|
|
327
349
|
}
|
|
328
|
-
})),
|
|
350
|
+
})), vt = !0, yt = !0, bt = !1, xt = !0, U = !1, St = !0, Ct = !1, wt = !1, Tt = null, Et = null, Dt = !1, Ot = !1, kt = !1, At = !1, jt = !0, Mt = !1, Nt = "user-content-", Pt = !0, W = !1, G = {}, Ft = null, It = y({}, /* @__PURE__ */ "annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp".split(".")), Lt = null, Rt = y({}, [
|
|
329
351
|
"audio",
|
|
330
352
|
"video",
|
|
331
353
|
"img",
|
|
332
354
|
"source",
|
|
333
355
|
"image",
|
|
334
356
|
"track"
|
|
335
|
-
]),
|
|
357
|
+
]), zt = null, Bt = y({}, [
|
|
336
358
|
"alt",
|
|
337
359
|
"class",
|
|
338
360
|
"for",
|
|
@@ -347,77 +369,86 @@ function et() {
|
|
|
347
369
|
"value",
|
|
348
370
|
"style",
|
|
349
371
|
"xmlns"
|
|
350
|
-
]),
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
], pe),
|
|
372
|
+
]), Vt = "http://www.w3.org/1998/Math/MathML", Ht = "http://www.w3.org/2000/svg", K = "http://www.w3.org/1999/xhtml", q = K, J = !1, Ut = null, Wt = y({}, [
|
|
373
|
+
Vt,
|
|
374
|
+
Ht,
|
|
375
|
+
K
|
|
376
|
+
], pe), Gt = p([
|
|
355
377
|
"mi",
|
|
356
378
|
"mo",
|
|
357
379
|
"mn",
|
|
358
380
|
"ms",
|
|
359
381
|
"mtext"
|
|
360
|
-
]),
|
|
382
|
+
]), Kt = y({}, Gt), qt = p(["annotation-xml"]), Jt = y({}, qt), Yt = y({}, [
|
|
361
383
|
"title",
|
|
362
384
|
"style",
|
|
363
385
|
"font",
|
|
364
386
|
"a",
|
|
365
387
|
"script"
|
|
366
|
-
]),
|
|
388
|
+
]), Xt = null, Zt = ["application/xhtml+xml", "text/html"], Y = null, Qt = null, $t = n.createElement("form"), en = function(e) {
|
|
367
389
|
return e instanceof RegExp || e instanceof Function;
|
|
368
|
-
},
|
|
390
|
+
}, tn = function() {
|
|
369
391
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
370
|
-
if (
|
|
371
|
-
(!e || typeof e != "object") && (e = {}), e =
|
|
392
|
+
if (Qt && Qt === e) return;
|
|
393
|
+
(!e || typeof e != "object") && (e = {}), e = x(e), Xt = Zt.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, Y = Xt === "application/xhtml+xml" ? pe : fe, R = nt(e, "ALLOWED_TAGS", z, { transform: Y }), B = nt(e, "ALLOWED_ATTR", V, { transform: Y }), Ut = nt(e, "ALLOWED_NAMESPACES", Wt, { transform: pe }), zt = nt(e, "ADD_URI_SAFE_ATTR", Bt, {
|
|
372
394
|
transform: Y,
|
|
373
|
-
base:
|
|
374
|
-
}),
|
|
395
|
+
base: Bt
|
|
396
|
+
}), Lt = nt(e, "ADD_DATA_URI_TAGS", Rt, {
|
|
375
397
|
transform: Y,
|
|
376
|
-
base:
|
|
377
|
-
}),
|
|
378
|
-
let t =
|
|
379
|
-
if (
|
|
398
|
+
base: Rt
|
|
399
|
+
}), Ft = nt(e, "FORBID_CONTENTS", It, { transform: Y }), ht = nt(e, "FORBID_TAGS", x({}), { transform: Y }), gt = nt(e, "FORBID_ATTR", x({}), { transform: Y }), G = g(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? x(e.USE_PROFILES) : e.USE_PROFILES : !1, vt = e.ALLOW_ARIA_ATTR !== !1, yt = e.ALLOW_DATA_ATTR !== !1, bt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, xt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, U = e.SAFE_FOR_TEMPLATES || !1, St = e.SAFE_FOR_XML !== !1, Ct = e.WHOLE_DOCUMENT || !1, Ot = e.RETURN_DOM || !1, kt = e.RETURN_DOM_FRAGMENT || !1, At = e.RETURN_TRUSTED_TYPE || !1, Dt = e.FORCE_BODY || !1, jt = e.SANITIZE_DOM !== !1, Mt = e.SANITIZE_NAMED_PROPS || !1, Pt = e.KEEP_CONTENT !== !1, W = e.IN_PLACE || !1, L = Te(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : He, q = typeof e.NAMESPACE == "string" ? e.NAMESPACE : K, Kt = rt(e, "MATHML_TEXT_INTEGRATION_POINTS", () => y({}, Gt)), Jt = rt(e, "HTML_INTEGRATION_POINTS", () => y({}, qt));
|
|
400
|
+
let t = rt(e, "CUSTOM_ELEMENT_HANDLING", () => ne(null));
|
|
401
|
+
if (H = ne(null), g(t, "tagNameCheck") && en(t.tagNameCheck) && (H.tagNameCheck = t.tagNameCheck), g(t, "attributeNameCheck") && en(t.attributeNameCheck) && (H.attributeNameCheck = t.attributeNameCheck), g(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (H.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), m(H), U && (yt = !1), kt && (Ot = !0), G && (R = y({}, Me), B = ne(null), G.html === !0 && (y(R, Ee), y(B, Ne)), G.svg === !0 && (y(R, De), y(B, Pe), y(B, Ie)), G.svgFilters === !0 && (y(R, Oe), y(B, Pe), y(B, Ie)), G.mathMl === !0 && (y(R, Ae), y(B, Fe), y(B, Ie))), _t.tagCheck = null, _t.attributeCheck = null, g(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? _t.tagCheck = e.ADD_TAGS : de(e.ADD_TAGS) && (R === z && (R = x(R)), y(R, e.ADD_TAGS, Y))), g(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? _t.attributeCheck = e.ADD_ATTR : de(e.ADD_ATTR) && (B === V && (B = x(B)), y(B, e.ADD_ATTR, Y))), g(e, "ADD_FORBID_CONTENTS") && de(e.ADD_FORBID_CONTENTS) && (Ft === It && (Ft = x(Ft)), y(Ft, e.ADD_FORBID_CONTENTS, Y)), Pt && (R["#text"] = !0), Ct && y(R, [
|
|
380
402
|
"html",
|
|
381
403
|
"head",
|
|
382
404
|
"body"
|
|
383
|
-
]),
|
|
384
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw
|
|
385
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw
|
|
386
|
-
let t =
|
|
387
|
-
|
|
405
|
+
]), R.table && (y(R, ["tbody"]), delete ht.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
406
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Se("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
407
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Se("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
408
|
+
let t = b;
|
|
409
|
+
b = e.TRUSTED_TYPES_POLICY;
|
|
388
410
|
try {
|
|
389
|
-
|
|
411
|
+
w = O("");
|
|
390
412
|
} catch (e) {
|
|
391
|
-
throw
|
|
413
|
+
throw b = t, e;
|
|
392
414
|
}
|
|
393
|
-
} else e.TRUSTED_TYPES_POLICY === null ? (
|
|
394
|
-
p && p(e),
|
|
395
|
-
},
|
|
396
|
-
...Ee,
|
|
415
|
+
} else e.TRUSTED_TYPES_POLICY === null ? (b = void 0, w = "") : (b === void 0 && (b = st()), b && typeof w == "string" && (w = O("")));
|
|
416
|
+
p && p(e), Qt = e;
|
|
417
|
+
}, nn = y({}, [
|
|
397
418
|
...De,
|
|
398
|
-
...Oe
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
419
|
+
...Oe,
|
|
420
|
+
...ke
|
|
421
|
+
]), rn = y({}, [...Ae, ...je]), an = function(e, t, n) {
|
|
422
|
+
return t.namespaceURI === K ? e === "svg" : t.namespaceURI === Vt ? e === "svg" && (n === "annotation-xml" || Kt[n]) : !!nn[e];
|
|
423
|
+
}, on = function(e, t, n) {
|
|
424
|
+
return t.namespaceURI === K ? e === "math" : t.namespaceURI === Ht ? e === "math" && Jt[n] : !!rn[e];
|
|
425
|
+
}, sn = function(e, t, n) {
|
|
426
|
+
return t.namespaceURI === Ht && !Jt[n] || t.namespaceURI === Vt && !Kt[n] ? !1 : !rn[e] && (Yt[e] || !nn[e]);
|
|
427
|
+
}, cn = function(e) {
|
|
406
428
|
let t = ae(e);
|
|
407
429
|
(!t || !t.tagName) && (t = {
|
|
408
|
-
namespaceURI:
|
|
430
|
+
namespaceURI: q,
|
|
409
431
|
tagName: "template"
|
|
410
432
|
});
|
|
411
433
|
let n = fe(e.tagName), r = fe(t.tagName);
|
|
412
|
-
return
|
|
413
|
-
},
|
|
434
|
+
return Ut[e.namespaceURI] ? e.namespaceURI === Ht ? an(n, t, r) : e.namespaceURI === Vt ? on(n, t, r) : e.namespaceURI === K ? sn(n, t, r) : !!(Xt === "application/xhtml+xml" && Ut[e.namespaceURI]) : !1;
|
|
435
|
+
}, X = function(e) {
|
|
414
436
|
le(t.removed, { element: e });
|
|
415
437
|
try {
|
|
416
438
|
ae(e).removeChild(e);
|
|
417
439
|
} catch {
|
|
418
|
-
if (te(e), !ae(e)) throw
|
|
440
|
+
if (te(e), !ae(e)) throw Se("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
419
441
|
}
|
|
420
|
-
},
|
|
442
|
+
}, ln = function(e, t, n) {
|
|
443
|
+
try {
|
|
444
|
+
e.removeAttributeNode(t);
|
|
445
|
+
} catch {
|
|
446
|
+
try {
|
|
447
|
+
e.removeAttribute(n);
|
|
448
|
+
} catch {}
|
|
449
|
+
}
|
|
450
|
+
}, un = function(e) {
|
|
451
|
+
fn(e);
|
|
421
452
|
let t = ie(e);
|
|
422
453
|
if (t) {
|
|
423
454
|
let e = [];
|
|
@@ -432,87 +463,113 @@ function et() {
|
|
|
432
463
|
let n = ye(e);
|
|
433
464
|
if (n) for (let t = n.length - 1; t >= 0; --t) {
|
|
434
465
|
let r = n[t], i = r && r.name;
|
|
435
|
-
|
|
436
|
-
e.removeAttribute(i);
|
|
437
|
-
} catch {}
|
|
466
|
+
typeof i == "string" && ln(e, r, i);
|
|
438
467
|
}
|
|
439
|
-
},
|
|
468
|
+
}, Z = function(e, n, r) {
|
|
469
|
+
if (!r) try {
|
|
470
|
+
r = n.getAttributeNode(e);
|
|
471
|
+
} catch {
|
|
472
|
+
r = null;
|
|
473
|
+
}
|
|
474
|
+
le(t.removed, {
|
|
475
|
+
attribute: r || null,
|
|
476
|
+
from: n
|
|
477
|
+
});
|
|
440
478
|
try {
|
|
441
|
-
|
|
442
|
-
attribute: n.getAttributeNode(e),
|
|
443
|
-
from: n
|
|
444
|
-
});
|
|
479
|
+
r ? n.removeAttributeNode(r) : n.removeAttribute(e);
|
|
445
480
|
} catch {
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
});
|
|
481
|
+
try {
|
|
482
|
+
n.removeAttribute(e);
|
|
483
|
+
} catch {}
|
|
450
484
|
}
|
|
451
|
-
if (
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
485
|
+
if (e === "is") {
|
|
486
|
+
if (Ot || kt) try {
|
|
487
|
+
X(n);
|
|
488
|
+
} catch {}
|
|
489
|
+
else try {
|
|
490
|
+
n.setAttribute(e, "");
|
|
491
|
+
} catch {}
|
|
492
|
+
}
|
|
493
|
+
}, dn = function(e) {
|
|
458
494
|
let t = ye(e);
|
|
459
495
|
if (t) for (let n = t.length - 1; n >= 0; --n) {
|
|
460
496
|
let r = t[n], i = r && r.name;
|
|
461
|
-
|
|
462
|
-
e.removeAttribute(i);
|
|
463
|
-
} catch {}
|
|
497
|
+
typeof i != "string" || B[Y(i)] || ln(e, r, i);
|
|
464
498
|
}
|
|
465
|
-
},
|
|
499
|
+
}, fn = function(e) {
|
|
466
500
|
let t = [e];
|
|
467
501
|
for (; t.length > 0;) {
|
|
468
502
|
let e = t.pop();
|
|
469
|
-
(
|
|
503
|
+
v(e) === C.element && dn(e);
|
|
470
504
|
let n = ie(e);
|
|
471
505
|
if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
|
|
472
506
|
}
|
|
473
|
-
},
|
|
507
|
+
}, pn = function(e, t) {
|
|
508
|
+
return St ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
|
|
509
|
+
}, mn = function(e) {
|
|
510
|
+
if (!St) return;
|
|
511
|
+
let t = [e];
|
|
512
|
+
for (; t.length > 0;) {
|
|
513
|
+
let e = t.pop(), n = v(e);
|
|
514
|
+
if (n === C.processingInstruction || n === C.comment && _(Je, e.data)) {
|
|
515
|
+
try {
|
|
516
|
+
te(e);
|
|
517
|
+
} catch {}
|
|
518
|
+
continue;
|
|
519
|
+
}
|
|
520
|
+
if (n === C.element) {
|
|
521
|
+
let t = e, n = Y(Ce(e));
|
|
522
|
+
try {
|
|
523
|
+
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && pn("for", n) && t.removeAttribute("for");
|
|
524
|
+
} catch {}
|
|
525
|
+
}
|
|
526
|
+
let r = ie(e);
|
|
527
|
+
if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
|
|
528
|
+
}
|
|
529
|
+
}, hn = function(e) {
|
|
474
530
|
let t = null, r = null;
|
|
475
|
-
if (
|
|
531
|
+
if (Dt) e = "<remove></remove>" + e;
|
|
476
532
|
else {
|
|
477
533
|
let t = me(e, /^[\r\n\t ]+/);
|
|
478
534
|
r = t && t[0];
|
|
479
535
|
}
|
|
480
|
-
|
|
481
|
-
let i =
|
|
482
|
-
if (
|
|
483
|
-
t = new l().parseFromString(i,
|
|
536
|
+
Xt === "application/xhtml+xml" && q === K && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
537
|
+
let i = b ? O(e) : e;
|
|
538
|
+
if (q === K) try {
|
|
539
|
+
t = new l().parseFromString(i, Xt);
|
|
484
540
|
} catch {}
|
|
485
541
|
if (!t || !t.documentElement) {
|
|
486
|
-
t =
|
|
542
|
+
t = A.createDocument(q, "template", null);
|
|
487
543
|
try {
|
|
488
|
-
t.documentElement.innerHTML =
|
|
544
|
+
t.documentElement.innerHTML = J ? w : i;
|
|
489
545
|
} catch {}
|
|
490
546
|
}
|
|
491
547
|
let a = t.body || t.documentElement;
|
|
492
|
-
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null),
|
|
493
|
-
},
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
548
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), q === K ? j.call(t, Ct ? "html" : "body")[0] : Ct ? t.documentElement : a;
|
|
549
|
+
}, gn = function(e) {
|
|
550
|
+
let t = xe ? xe(e) : e.ownerDocument;
|
|
551
|
+
return ct.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
552
|
+
}, _n = function(e) {
|
|
553
|
+
return e = he(e, dt, " "), e = he(e, ft, " "), e = he(e, N, " "), e;
|
|
554
|
+
}, vn = function(e) {
|
|
498
555
|
e.normalize();
|
|
499
|
-
let t =
|
|
500
|
-
for (;
|
|
501
|
-
let
|
|
502
|
-
|
|
503
|
-
|
|
556
|
+
let t = xe ? xe(e) : e.ownerDocument, n = ct.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
|
|
557
|
+
for (; r;) r.data = _n(r.data), r = n.nextNode();
|
|
558
|
+
let i = e.querySelectorAll?.call(e, "template");
|
|
559
|
+
i && oe(i, (e) => {
|
|
560
|
+
bn(e.content) && vn(e.content);
|
|
504
561
|
});
|
|
505
|
-
},
|
|
506
|
-
let t =
|
|
562
|
+
}, yn = function(e) {
|
|
563
|
+
let t = be ? be(e) : null;
|
|
507
564
|
return typeof t != "string" || Y(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== ye(e) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== h(e) || e.childNodes !== ie(e);
|
|
508
|
-
},
|
|
565
|
+
}, bn = function(e) {
|
|
509
566
|
if (!h || typeof e != "object" || !e) return !1;
|
|
510
567
|
try {
|
|
511
|
-
return h(e) ===
|
|
568
|
+
return h(e) === C.documentFragment;
|
|
512
569
|
} catch {
|
|
513
570
|
return !1;
|
|
514
571
|
}
|
|
515
|
-
},
|
|
572
|
+
}, Q = function(e) {
|
|
516
573
|
if (!h || typeof e != "object" || !e) return !1;
|
|
517
574
|
try {
|
|
518
575
|
return typeof h(e) == "number";
|
|
@@ -520,50 +577,56 @@ function et() {
|
|
|
520
577
|
return !1;
|
|
521
578
|
}
|
|
522
579
|
};
|
|
523
|
-
function
|
|
580
|
+
function $(e, n, r) {
|
|
524
581
|
e.length !== 0 && oe(e, (e) => {
|
|
525
|
-
e.call(t, n, r,
|
|
582
|
+
e.call(t, n, r, Qt);
|
|
526
583
|
});
|
|
527
584
|
}
|
|
528
|
-
let
|
|
529
|
-
return !!(
|
|
530
|
-
},
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
585
|
+
let xn = function(e, t) {
|
|
586
|
+
return !!(St && e.hasChildNodes() && !Q(e.firstElementChild) && _(qe, e.textContent) && _(qe, e.innerHTML) || St && e.namespaceURI === K && Ze[t] && (Q(e.firstElementChild) || typeof e.textContent == "string" && _(Qe[t], e.textContent)) || e.nodeType === C.processingInstruction || St && e.nodeType === C.comment && _(Je, e.data));
|
|
587
|
+
}, Sn = function(e, t) {
|
|
588
|
+
return e instanceof RegExp ? _(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
|
|
589
|
+
}, Cn = function(e, t, n) {
|
|
590
|
+
if (!ht[t] && kn(t) && Sn(H.tagNameCheck, t)) return !1;
|
|
591
|
+
if (Pt && !Ft[t]) {
|
|
592
|
+
let t = ae(e), r = ie(e);
|
|
593
|
+
if (r && t) {
|
|
594
|
+
let i = r.length;
|
|
595
|
+
for (let a = i - 1; a >= 0; --a) {
|
|
596
|
+
let i = e === n ? ee(r[a], !0) : r[a];
|
|
597
|
+
t.insertBefore(i, re(e));
|
|
539
598
|
}
|
|
540
599
|
}
|
|
541
600
|
}
|
|
542
|
-
return
|
|
543
|
-
},
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
if (
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
601
|
+
return X(e), !0;
|
|
602
|
+
}, wn = function(e, t, n, r) {
|
|
603
|
+
return e.length === 0 ? t : t === n || t === r ? x(t) : t;
|
|
604
|
+
}, Tn = function(e, t) {
|
|
605
|
+
return e === t || ae(e) !== null ? !1 : (W && fn(e), !0);
|
|
606
|
+
}, En = function(e, n) {
|
|
607
|
+
if ($(M.beforeSanitizeElements, e, null), Tn(e, n)) return !0;
|
|
608
|
+
if (yn(e)) return X(e), !0;
|
|
609
|
+
let r = Y(Ce(e));
|
|
610
|
+
if (R = wn(M.uponSanitizeElement, R, z, Tt), $(M.uponSanitizeElement, e, {
|
|
611
|
+
tagName: r,
|
|
612
|
+
allowedTags: R
|
|
613
|
+
}), Tn(e, n)) return !0;
|
|
614
|
+
if (xn(e, r)) return X(e), !0;
|
|
615
|
+
if (ht[r] || !(_t.tagCheck instanceof Function && _t.tagCheck(r)) && !R[r]) {
|
|
616
|
+
let t = Cn(e, r, n);
|
|
617
|
+
return t === !1 && $(M.afterSanitizeElements, e, null), t;
|
|
555
618
|
}
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
if (!(gt && y(ut, t)) && !(ht && y(j, t))) {
|
|
561
|
-
if (!i) {
|
|
562
|
-
if (!(_n(e) && (R.tagNameCheck instanceof RegExp && y(R.tagNameCheck, e) || R.tagNameCheck instanceof Function && R.tagNameCheck(e)) && (R.attributeNameCheck instanceof RegExp && y(R.attributeNameCheck, t) || R.attributeNameCheck instanceof Function && R.attributeNameCheck(t, e)) || t === "is" && R.allowCustomizedBuiltInElements && (R.tagNameCheck instanceof RegExp && y(R.tagNameCheck, r) || R.tagNameCheck instanceof Function && R.tagNameCheck(r)))) return !1;
|
|
563
|
-
} else if (!Pt[t] && !y(P, he(r, M, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ge(r, "data:") === 0 && Mt[e]) && !(_t && !y(dt, he(r, M, ""))) && r) return !1;
|
|
619
|
+
if (v(e) === C.element && !cn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && _(Ye, e.innerHTML)) return X(e), !0;
|
|
620
|
+
if (U && e.nodeType === C.text) {
|
|
621
|
+
let n = _n(e.textContent);
|
|
622
|
+
e.textContent !== n && (le(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
564
623
|
}
|
|
565
|
-
return !
|
|
566
|
-
},
|
|
624
|
+
return $(M.afterSanitizeElements, e, null), !1;
|
|
625
|
+
}, Dn = function(e, t, r) {
|
|
626
|
+
if (gt[t] || pn(t, e) || jt && (t === "id" || t === "name") && (r in n || r in $t)) return !1;
|
|
627
|
+
let i = B[t] || _t.attributeCheck instanceof Function && _t.attributeCheck(t, e);
|
|
628
|
+
return yt && _(pt, t) || vt && _(P, t) ? !0 : i ? zt[t] || _(L, he(r, I, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ge(r, "data:") === 0 && Lt[e] || bt && !_(F, he(r, I, "")) ? !0 : !r : kn(e) && Sn(H.tagNameCheck, e) && Sn(H.attributeNameCheck, t, e) || t === "is" && H.allowCustomizedBuiltInElements && Sn(H.tagNameCheck, r);
|
|
629
|
+
}, On = y({}, [
|
|
567
630
|
"annotation-xml",
|
|
568
631
|
"color-profile",
|
|
569
632
|
"font-face",
|
|
@@ -572,66 +635,67 @@ function et() {
|
|
|
572
635
|
"font-face-src",
|
|
573
636
|
"font-face-uri",
|
|
574
637
|
"missing-glyph"
|
|
575
|
-
]),
|
|
576
|
-
return !
|
|
577
|
-
},
|
|
578
|
-
if (
|
|
579
|
-
case "TrustedHTML": return
|
|
580
|
-
case "TrustedScriptURL": return
|
|
638
|
+
]), kn = function(e) {
|
|
639
|
+
return !On[fe(e)] && _(mt, e);
|
|
640
|
+
}, An = function(e, t, n, r) {
|
|
641
|
+
if (b && typeof d == "object" && typeof d.getAttributeType == "function" && !n) switch (d.getAttributeType(e, t)) {
|
|
642
|
+
case "TrustedHTML": return O(r);
|
|
643
|
+
case "TrustedScriptURL": return ot(r);
|
|
581
644
|
}
|
|
582
645
|
return r;
|
|
583
|
-
},
|
|
646
|
+
}, jn = function(e, n, r, i) {
|
|
584
647
|
try {
|
|
585
|
-
r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i),
|
|
648
|
+
r ? e.setAttributeNS(r, n, i) : e.setAttribute(n, i), yn(e) ? X(e) : ce(t.removed);
|
|
586
649
|
} catch {
|
|
587
|
-
|
|
650
|
+
Z(n, e);
|
|
588
651
|
}
|
|
589
|
-
},
|
|
590
|
-
|
|
652
|
+
}, Mn = function(e) {
|
|
653
|
+
$(M.beforeSanitizeAttributes, e, null);
|
|
591
654
|
let t = e.attributes;
|
|
592
|
-
if (!t ||
|
|
655
|
+
if (!t || yn(e)) return;
|
|
656
|
+
B = wn(M.uponSanitizeAttribute, B, V, Et);
|
|
593
657
|
let n = {
|
|
594
658
|
attrName: "",
|
|
595
659
|
attrValue: "",
|
|
596
660
|
keepAttr: !0,
|
|
597
|
-
allowedAttributes:
|
|
661
|
+
allowedAttributes: B,
|
|
598
662
|
forceKeepAttr: void 0
|
|
599
663
|
}, r = t.length, i = Y(e.nodeName);
|
|
600
664
|
for (; r--;) {
|
|
601
665
|
let a = t[r], o = a.name, s = a.namespaceURI, c = a.value, l = Y(o), u = c, d = o === "value" ? u : _e(u);
|
|
602
|
-
if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0,
|
|
603
|
-
|
|
666
|
+
if (n.attrName = l, n.attrValue = d, n.keepAttr = !0, n.forceKeepAttr = void 0, $(M.uponSanitizeAttribute, e, n), d = n.attrValue, Mt && (l === "id" || l === "name") && ge(d, Nt) !== 0 && (Z(o, e, a), d = Nt + d), St && _(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, d)) {
|
|
667
|
+
Z(o, e, a);
|
|
604
668
|
continue;
|
|
605
669
|
}
|
|
606
670
|
if (l === "attributename" && me(d, "href")) {
|
|
607
|
-
|
|
671
|
+
Z(o, e, a);
|
|
608
672
|
continue;
|
|
609
673
|
}
|
|
610
674
|
if (!n.forceKeepAttr) {
|
|
611
675
|
if (!n.keepAttr) {
|
|
612
|
-
|
|
676
|
+
Z(o, e, a);
|
|
613
677
|
continue;
|
|
614
678
|
}
|
|
615
|
-
if (!
|
|
616
|
-
|
|
679
|
+
if (!xt && _(Xe, d)) {
|
|
680
|
+
Z(o, e, a);
|
|
617
681
|
continue;
|
|
618
682
|
}
|
|
619
|
-
if (
|
|
620
|
-
|
|
683
|
+
if (U && (d = _n(d)), !Dn(i, l, d)) {
|
|
684
|
+
Z(o, e, a);
|
|
621
685
|
continue;
|
|
622
686
|
}
|
|
623
|
-
d =
|
|
687
|
+
d = An(i, l, s, d), d !== u && jn(e, o, s, d);
|
|
624
688
|
}
|
|
625
689
|
}
|
|
626
|
-
|
|
627
|
-
},
|
|
628
|
-
let t = null, n =
|
|
629
|
-
for (
|
|
690
|
+
$(M.afterSanitizeAttributes, e, null);
|
|
691
|
+
}, Nn = function(e) {
|
|
692
|
+
let t = null, n = gn(e);
|
|
693
|
+
for ($(M.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(M.uponSanitizeShadowNode, t, null), En(t, e), Mn(t), bn(t.content) && Nn(t.content), v(t) === C.element) {
|
|
630
694
|
let e = ve(t);
|
|
631
|
-
|
|
695
|
+
bn(e) && (Pn(e), Nn(e));
|
|
632
696
|
}
|
|
633
|
-
|
|
634
|
-
},
|
|
697
|
+
$(M.afterSanitizeShadowDOM, e, null);
|
|
698
|
+
}, Pn = function(e) {
|
|
635
699
|
let t = [{
|
|
636
700
|
node: e,
|
|
637
701
|
shadow: null
|
|
@@ -639,19 +703,19 @@ function et() {
|
|
|
639
703
|
for (; t.length > 0;) {
|
|
640
704
|
let e = t.pop();
|
|
641
705
|
if (e.shadow) {
|
|
642
|
-
|
|
706
|
+
Nn(e.shadow);
|
|
643
707
|
continue;
|
|
644
708
|
}
|
|
645
|
-
let n = e.node, r = (
|
|
709
|
+
let n = e.node, r = v(n) === C.element, i = ie(n);
|
|
646
710
|
if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
|
|
647
711
|
node: i[e],
|
|
648
712
|
shadow: null
|
|
649
713
|
});
|
|
650
714
|
if (r) {
|
|
651
|
-
let e =
|
|
715
|
+
let e = be ? be(n) : null;
|
|
652
716
|
if (typeof e == "string" && Y(e) === "template") {
|
|
653
717
|
let e = n.content;
|
|
654
|
-
|
|
718
|
+
bn(e) && t.push({
|
|
655
719
|
node: e,
|
|
656
720
|
shadow: null
|
|
657
721
|
});
|
|
@@ -659,7 +723,7 @@ function et() {
|
|
|
659
723
|
}
|
|
660
724
|
if (r) {
|
|
661
725
|
let e = ve(n);
|
|
662
|
-
|
|
726
|
+
bn(e) && t.push({
|
|
663
727
|
node: null,
|
|
664
728
|
shadow: e
|
|
665
729
|
}, {
|
|
@@ -671,67 +735,74 @@ function et() {
|
|
|
671
735
|
};
|
|
672
736
|
return t.sanitize = function(e) {
|
|
673
737
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
674
|
-
if (
|
|
738
|
+
if (J = !e, J && (e = "<!-->"), typeof e != "string" && !Q(e) && (e = we(e), typeof e != "string")) throw Se("dirty is not a string, aborting");
|
|
675
739
|
if (!t.isSupported) return e;
|
|
676
|
-
|
|
677
|
-
let c =
|
|
740
|
+
wt ? (R = Tt, B = Et) : tn(n), (M.uponSanitizeElement.length > 0 || M.uponSanitizeAttribute.length > 0) && (R = x(R)), M.uponSanitizeAttribute.length > 0 && (B = x(B)), t.removed = [];
|
|
741
|
+
let c = W && typeof e != "string" && Q(e);
|
|
678
742
|
if (c) {
|
|
679
|
-
|
|
743
|
+
mn(e);
|
|
744
|
+
let t = Ce(e);
|
|
680
745
|
if (typeof t == "string") {
|
|
681
|
-
let
|
|
682
|
-
if (!
|
|
746
|
+
let n = Y(t);
|
|
747
|
+
if (!R[n] || ht[n]) throw un(e), Se("root node is forbidden and cannot be sanitized in-place");
|
|
683
748
|
}
|
|
684
|
-
if (
|
|
749
|
+
if (yn(e)) throw un(e), Se("root node is clobbered and cannot be sanitized in-place");
|
|
685
750
|
try {
|
|
686
|
-
|
|
751
|
+
Pn(e);
|
|
687
752
|
} catch (t) {
|
|
688
|
-
throw
|
|
753
|
+
throw un(e), t;
|
|
689
754
|
}
|
|
690
|
-
} else if (
|
|
755
|
+
} else if (Q(e)) i = hn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === C.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Pn(a);
|
|
691
756
|
else {
|
|
692
|
-
if (!
|
|
693
|
-
if (i =
|
|
757
|
+
if (!Ot && !U && !Ct && e.indexOf("<") === -1) return b && At ? O(e) : e;
|
|
758
|
+
if (i = hn(e), !i) return Ot ? null : At ? w : "";
|
|
694
759
|
}
|
|
695
|
-
i &&
|
|
696
|
-
let l =
|
|
760
|
+
i && Dt && X(i.firstChild);
|
|
761
|
+
let l = c ? e : i;
|
|
697
762
|
try {
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
763
|
+
let e = gn(l);
|
|
764
|
+
for (; o = e.nextNode();) En(o, l), Mn(o), bn(o.content) && Nn(o.content);
|
|
765
|
+
} catch (n) {
|
|
766
|
+
throw c && (un(e), oe(t.removed, (e) => {
|
|
767
|
+
e.element && fn(e.element);
|
|
768
|
+
})), n;
|
|
701
769
|
}
|
|
702
770
|
if (c) return oe(t.removed, (e) => {
|
|
703
|
-
e.element &&
|
|
704
|
-
}),
|
|
705
|
-
if (
|
|
706
|
-
if (
|
|
771
|
+
e.element && fn(e.element);
|
|
772
|
+
}), U && vn(e), e;
|
|
773
|
+
if (Ot) {
|
|
774
|
+
if (U && vn(i), kt) for (s = lt.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
707
775
|
else s = i;
|
|
708
|
-
return (
|
|
776
|
+
return (B.shadowroot || B.shadowrootmode) && (s = ut.call(r, s, !0)), s;
|
|
709
777
|
}
|
|
710
|
-
let u =
|
|
711
|
-
return
|
|
778
|
+
let u = Ct ? i.outerHTML : i.innerHTML;
|
|
779
|
+
return Ct && R["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && _(Ge, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), U && (u = _n(u)), b && At ? O(u) : u;
|
|
712
780
|
}, t.setConfig = function() {
|
|
713
|
-
|
|
781
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
782
|
+
tn(e), wt = !0, Tt = R, Et = B;
|
|
714
783
|
}, t.clearConfig = function() {
|
|
715
|
-
|
|
784
|
+
Qt = null, wt = !1, Tt = null, Et = null, b = T, w = "";
|
|
716
785
|
}, t.isValidAttribute = function(e, t, n) {
|
|
717
|
-
|
|
786
|
+
Qt || tn({});
|
|
787
|
+
let r = Y(e), i = Y(t);
|
|
788
|
+
return Dn(r, i, n);
|
|
718
789
|
}, t.addHook = function(e, t) {
|
|
719
|
-
typeof t == "function" &&
|
|
790
|
+
typeof t == "function" && g(M, e) && le(M[e], t);
|
|
720
791
|
}, t.removeHook = function(e, t) {
|
|
721
|
-
if (
|
|
792
|
+
if (g(M, e)) {
|
|
722
793
|
if (t !== void 0) {
|
|
723
|
-
let n = se(
|
|
724
|
-
return n === -1 ? void 0 : ue(
|
|
794
|
+
let n = se(M[e], t);
|
|
795
|
+
return n === -1 ? void 0 : ue(M[e], n, 1)[0];
|
|
725
796
|
}
|
|
726
|
-
return ce(
|
|
797
|
+
return ce(M[e]);
|
|
727
798
|
}
|
|
728
799
|
}, t.removeHooks = function(e) {
|
|
729
|
-
|
|
800
|
+
g(M, e) && (M[e] = []);
|
|
730
801
|
}, t.removeAllHooks = function() {
|
|
731
|
-
|
|
802
|
+
M = tt();
|
|
732
803
|
}, t;
|
|
733
804
|
}
|
|
734
|
-
var T =
|
|
805
|
+
var T = it(), at = {
|
|
735
806
|
min: {
|
|
736
807
|
r: 0,
|
|
737
808
|
g: 0,
|
|
@@ -768,9 +839,9 @@ var T = et(), tt = {
|
|
|
768
839
|
e /= 360, t /= 100, n /= 100;
|
|
769
840
|
let i = n < .5 ? n * (1 + t) : n + t - n * t, a = 2 * n - i;
|
|
770
841
|
switch (r) {
|
|
771
|
-
case "r": return
|
|
772
|
-
case "g": return
|
|
773
|
-
case "b": return
|
|
842
|
+
case "r": return at.hue2rgb(a, i, e + 1 / 3) * 255;
|
|
843
|
+
case "g": return at.hue2rgb(a, i, e) * 255;
|
|
844
|
+
case "b": return at.hue2rgb(a, i, e - 1 / 3) * 255;
|
|
774
845
|
}
|
|
775
846
|
},
|
|
776
847
|
rgb2hsl: ({ r: e, g: t, b: n }, r) => {
|
|
@@ -788,7 +859,7 @@ var T = et(), tt = {
|
|
|
788
859
|
}
|
|
789
860
|
}
|
|
790
861
|
}, E = {
|
|
791
|
-
channel:
|
|
862
|
+
channel: at,
|
|
792
863
|
lang: {
|
|
793
864
|
clamp: (e, t, n) => t > n ? Math.min(t, Math.max(n, e)) : Math.min(n, Math.max(t, e)),
|
|
794
865
|
round: (e) => Math.round(e * 1e10) / 1e10
|
|
@@ -803,7 +874,7 @@ var O = {
|
|
|
803
874
|
ALL: 0,
|
|
804
875
|
RGB: 1,
|
|
805
876
|
HSL: 2
|
|
806
|
-
},
|
|
877
|
+
}, ot = class {
|
|
807
878
|
constructor() {
|
|
808
879
|
this.type = O.ALL;
|
|
809
880
|
}
|
|
@@ -820,9 +891,9 @@ var O = {
|
|
|
820
891
|
is(e) {
|
|
821
892
|
return this.type === e;
|
|
822
893
|
}
|
|
823
|
-
},
|
|
894
|
+
}, st = new class {
|
|
824
895
|
constructor(e, t) {
|
|
825
|
-
this.color = t, this.changed = !1, this.data = e, this.type = new
|
|
896
|
+
this.color = t, this.changed = !1, this.data = e, this.type = new ot();
|
|
826
897
|
}
|
|
827
898
|
set(e, t) {
|
|
828
899
|
return this.color = t, this.changed = !1, this.data = e, this.type.type = O.ALL, this;
|
|
@@ -888,14 +959,14 @@ var O = {
|
|
|
888
959
|
g: 0,
|
|
889
960
|
b: 0,
|
|
890
961
|
a: 0
|
|
891
|
-
}, "transparent"),
|
|
962
|
+
}, "transparent"), k = {
|
|
892
963
|
re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
|
|
893
964
|
parse: (e) => {
|
|
894
965
|
if (e.charCodeAt(0) !== 35) return;
|
|
895
|
-
let t = e.match(
|
|
966
|
+
let t = e.match(k.re);
|
|
896
967
|
if (!t) return;
|
|
897
968
|
let n = t[1], r = parseInt(n, 16), i = n.length, a = i % 4 == 0, o = i > 4, s = o ? 1 : 17, c = o ? 8 : 4, l = a ? 0 : -1, u = o ? 255 : 15;
|
|
898
|
-
return
|
|
969
|
+
return st.set({
|
|
899
970
|
r: (r >> c * (l + 3) & u) * s,
|
|
900
971
|
g: (r >> c * (l + 2) & u) * s,
|
|
901
972
|
b: (r >> c * (l + 1) & u) * s,
|
|
@@ -906,11 +977,11 @@ var O = {
|
|
|
906
977
|
let { r: t, g: n, b: r, a: i } = e;
|
|
907
978
|
return i < 1 ? `#${D[Math.round(t)]}${D[Math.round(n)]}${D[Math.round(r)]}${D[Math.round(i * 255)]}` : `#${D[Math.round(t)]}${D[Math.round(n)]}${D[Math.round(r)]}`;
|
|
908
979
|
}
|
|
909
|
-
},
|
|
980
|
+
}, A = {
|
|
910
981
|
re: /^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,
|
|
911
982
|
hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
|
|
912
983
|
_hue2deg: (e) => {
|
|
913
|
-
let t = e.match(
|
|
984
|
+
let t = e.match(A.hueRe);
|
|
914
985
|
if (t) {
|
|
915
986
|
let [, e, n] = t;
|
|
916
987
|
switch (n) {
|
|
@@ -924,11 +995,11 @@ var O = {
|
|
|
924
995
|
parse: (e) => {
|
|
925
996
|
let t = e.charCodeAt(0);
|
|
926
997
|
if (t !== 104 && t !== 72) return;
|
|
927
|
-
let n = e.match(
|
|
998
|
+
let n = e.match(A.re);
|
|
928
999
|
if (!n) return;
|
|
929
1000
|
let [, r, i, a, o, s] = n;
|
|
930
|
-
return
|
|
931
|
-
h:
|
|
1001
|
+
return st.set({
|
|
1002
|
+
h: A._hue2deg(r),
|
|
932
1003
|
s: E.channel.clamp.s(parseFloat(i)),
|
|
933
1004
|
l: E.channel.clamp.l(parseFloat(a)),
|
|
934
1005
|
a: o ? E.channel.clamp.a(s ? parseFloat(o) / 100 : parseFloat(o)) : 1
|
|
@@ -938,7 +1009,7 @@ var O = {
|
|
|
938
1009
|
let { h: t, s: n, l: r, a: i } = e;
|
|
939
1010
|
return i < 1 ? `hsla(${E.lang.round(t)}, ${E.lang.round(n)}%, ${E.lang.round(r)}%, ${i})` : `hsl(${E.lang.round(t)}, ${E.lang.round(n)}%, ${E.lang.round(r)}%)`;
|
|
940
1011
|
}
|
|
941
|
-
},
|
|
1012
|
+
}, ct = {
|
|
942
1013
|
colors: {
|
|
943
1014
|
aliceblue: "#f0f8ff",
|
|
944
1015
|
antiquewhite: "#faebd7",
|
|
@@ -1090,22 +1161,22 @@ var O = {
|
|
|
1090
1161
|
},
|
|
1091
1162
|
parse: (e) => {
|
|
1092
1163
|
e = e.toLowerCase();
|
|
1093
|
-
let t =
|
|
1094
|
-
if (t) return
|
|
1164
|
+
let t = ct.colors[e];
|
|
1165
|
+
if (t) return k.parse(t);
|
|
1095
1166
|
},
|
|
1096
1167
|
stringify: (e) => {
|
|
1097
|
-
let t =
|
|
1098
|
-
for (let e in
|
|
1168
|
+
let t = k.stringify(e);
|
|
1169
|
+
for (let e in ct.colors) if (ct.colors[e] === t) return e;
|
|
1099
1170
|
}
|
|
1100
|
-
},
|
|
1171
|
+
}, lt = {
|
|
1101
1172
|
re: /^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,
|
|
1102
1173
|
parse: (e) => {
|
|
1103
1174
|
let t = e.charCodeAt(0);
|
|
1104
1175
|
if (t !== 114 && t !== 82) return;
|
|
1105
|
-
let n = e.match(
|
|
1176
|
+
let n = e.match(lt.re);
|
|
1106
1177
|
if (!n) return;
|
|
1107
1178
|
let [, r, i, a, o, s, c, l, u] = n;
|
|
1108
|
-
return
|
|
1179
|
+
return st.set({
|
|
1109
1180
|
r: E.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
|
|
1110
1181
|
g: E.channel.clamp.g(o ? parseFloat(a) * 2.55 : parseFloat(a)),
|
|
1111
1182
|
b: E.channel.clamp.b(c ? parseFloat(s) * 2.55 : parseFloat(s)),
|
|
@@ -1116,89 +1187,85 @@ var O = {
|
|
|
1116
1187
|
let { r: t, g: n, b: r, a: i } = e;
|
|
1117
1188
|
return i < 1 ? `rgba(${E.lang.round(t)}, ${E.lang.round(n)}, ${E.lang.round(r)}, ${E.lang.round(i)})` : `rgb(${E.lang.round(t)}, ${E.lang.round(n)}, ${E.lang.round(r)})`;
|
|
1118
1189
|
}
|
|
1119
|
-
},
|
|
1190
|
+
}, j = {
|
|
1120
1191
|
format: {
|
|
1121
|
-
keyword:
|
|
1122
|
-
hex:
|
|
1123
|
-
rgb:
|
|
1124
|
-
rgba:
|
|
1125
|
-
hsl:
|
|
1126
|
-
hsla:
|
|
1192
|
+
keyword: ct,
|
|
1193
|
+
hex: k,
|
|
1194
|
+
rgb: lt,
|
|
1195
|
+
rgba: lt,
|
|
1196
|
+
hsl: A,
|
|
1197
|
+
hsla: A
|
|
1127
1198
|
},
|
|
1128
1199
|
parse: (e) => {
|
|
1129
1200
|
if (typeof e != "string") return e;
|
|
1130
|
-
let t =
|
|
1201
|
+
let t = k.parse(e) || lt.parse(e) || A.parse(e) || ct.parse(e);
|
|
1131
1202
|
if (t) return t;
|
|
1132
1203
|
throw Error(`Unsupported color format: "${e}"`);
|
|
1133
1204
|
},
|
|
1134
|
-
stringify: (e) => !e.changed && e.color ? e.color : e.type.is(O.HSL) || e.data.r === void 0 ?
|
|
1135
|
-
},
|
|
1136
|
-
let n =
|
|
1205
|
+
stringify: (e) => !e.changed && e.color ? e.color : e.type.is(O.HSL) || e.data.r === void 0 ? A.stringify(e) : e.a < 1 || !Number.isInteger(e.r) || !Number.isInteger(e.g) || !Number.isInteger(e.b) ? lt.stringify(e) : k.stringify(e)
|
|
1206
|
+
}, ut = (e, t) => {
|
|
1207
|
+
let n = j.parse(e);
|
|
1137
1208
|
for (let e in t) n[e] = E.channel.clamp[e](t[e]);
|
|
1138
|
-
return
|
|
1139
|
-
},
|
|
1140
|
-
if (typeof e != "number") return
|
|
1141
|
-
let i =
|
|
1209
|
+
return j.stringify(n);
|
|
1210
|
+
}, M = (e, t, n = 0, r = 1) => {
|
|
1211
|
+
if (typeof e != "number") return ut(e, { a: t });
|
|
1212
|
+
let i = st.set({
|
|
1142
1213
|
r: E.channel.clamp.r(e),
|
|
1143
1214
|
g: E.channel.clamp.g(t),
|
|
1144
1215
|
b: E.channel.clamp.b(n),
|
|
1145
1216
|
a: E.channel.clamp.a(r)
|
|
1146
1217
|
});
|
|
1147
|
-
return
|
|
1148
|
-
},
|
|
1149
|
-
let { r: t, g: n, b: r } =
|
|
1218
|
+
return j.stringify(i);
|
|
1219
|
+
}, dt = (e) => {
|
|
1220
|
+
let { r: t, g: n, b: r } = j.parse(e), i = .2126 * E.channel.toLinear(t) + .7152 * E.channel.toLinear(n) + .0722 * E.channel.toLinear(r);
|
|
1150
1221
|
return E.lang.round(i);
|
|
1151
|
-
},
|
|
1152
|
-
let r =
|
|
1153
|
-
return i !== a && (r[t] = a),
|
|
1154
|
-
},
|
|
1155
|
-
let n =
|
|
1222
|
+
}, ft = (e) => dt(e) >= .5, N = (e) => !ft(e), pt = (e, t, n) => {
|
|
1223
|
+
let r = j.parse(e), i = r[t], a = E.channel.clamp[t](i + n);
|
|
1224
|
+
return i !== a && (r[t] = a), j.stringify(r);
|
|
1225
|
+
}, P = (e, t) => pt(e, "l", t), F = (e, t) => pt(e, "l", -t), I = (e, t) => {
|
|
1226
|
+
let n = j.parse(e), r = {};
|
|
1156
1227
|
for (let e in t) t[e] && (r[e] = n[e] + t[e]);
|
|
1157
|
-
return
|
|
1158
|
-
},
|
|
1159
|
-
let { r, g: i, b: a, a: o } =
|
|
1160
|
-
return
|
|
1161
|
-
},
|
|
1162
|
-
let n =
|
|
1163
|
-
return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b,
|
|
1164
|
-
},
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
constructor(e) {
|
|
1169
|
-
super(e), this.name = "UnknownDiagramError";
|
|
1170
|
-
}
|
|
1171
|
-
}, mt = {}, z = /* @__PURE__ */ n(function(e, t) {
|
|
1172
|
-
e = e.replace(L, "").replace(ft, "").replace(R, "\n");
|
|
1173
|
-
for (let [n, { detector: r }] of Object.entries(mt)) if (r(e, t)) return n;
|
|
1174
|
-
throw new pt(`No diagram type detected matching given configuration for text: ${e}`);
|
|
1175
|
-
}, "detectType"), ht = /* @__PURE__ */ n((...e) => {
|
|
1176
|
-
for (let { id: t, detector: n, loader: r } of e) gt(t, n, r);
|
|
1177
|
-
}, "registerLazyLoadedDiagrams"), gt = /* @__PURE__ */ n((e, n, r) => {
|
|
1178
|
-
mt[e] && t.warn(`Detector with key ${e} already exists. Overwriting.`), mt[e] = {
|
|
1179
|
-
detector: n,
|
|
1180
|
-
loader: r
|
|
1181
|
-
}, t.debug(`Detector with key ${e} added${r ? " with loader" : ""}`);
|
|
1182
|
-
}, "addDetector"), _t = /* @__PURE__ */ n((e) => mt[e].loader, "getDiagramLoader"), vt = /* @__PURE__ */ n((e, t, { depth: n = 2, clobber: r = !1 } = {}) => {
|
|
1183
|
-
let i = {
|
|
1184
|
-
depth: n,
|
|
1185
|
-
clobber: r
|
|
1186
|
-
};
|
|
1187
|
-
return Array.isArray(t) && !Array.isArray(e) ? (t.forEach((t) => vt(e, t, i)), e) : Array.isArray(t) && Array.isArray(e) ? (t.forEach((t) => {
|
|
1228
|
+
return ut(e, r);
|
|
1229
|
+
}, mt = (e, t, n = 50) => {
|
|
1230
|
+
let { r, g: i, b: a, a: o } = j.parse(e), { r: s, g: c, b: l, a: u } = j.parse(t), d = n / 100, f = d * 2 - 1, ee = o - u, te = ((f * ee === -1 ? f : (f + ee) / (1 + f * ee)) + 1) / 2, p = 1 - te;
|
|
1231
|
+
return M(r * te + s * p, i * te + c * p, a * te + l * p, o * d + u * (1 - d));
|
|
1232
|
+
}, L = (e, t = 100) => {
|
|
1233
|
+
let n = j.parse(e);
|
|
1234
|
+
return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, mt(n, e, t);
|
|
1235
|
+
}, R = /* @__PURE__ */ n((e, t, { depth: n = 2 } = {}) => {
|
|
1236
|
+
let r = { depth: n };
|
|
1237
|
+
if (Array.isArray(t) && !Array.isArray(e)) return t.forEach((t) => R(e, t, r)), e;
|
|
1238
|
+
if (Array.isArray(t) && Array.isArray(e)) return t.forEach((t) => {
|
|
1188
1239
|
e.includes(t) || e.push(t);
|
|
1189
|
-
}), e
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1240
|
+
}), e;
|
|
1241
|
+
if (e == null || n <= 0) return typeof e == "object" && e && typeof t == "object" ? Object.assign(e, t) : t;
|
|
1242
|
+
if (t != null && typeof e == "object" && typeof t == "object") {
|
|
1243
|
+
let r = e;
|
|
1244
|
+
Object.entries(t).forEach(([t, i]) => {
|
|
1245
|
+
if (typeof i == "object") {
|
|
1246
|
+
if (i === null) return;
|
|
1247
|
+
Object.hasOwn(e, t) || Object.defineProperty(e, t, {
|
|
1248
|
+
value: void 0,
|
|
1249
|
+
writable: !0,
|
|
1250
|
+
enumerable: !0,
|
|
1251
|
+
configurable: !0
|
|
1252
|
+
}), r[t] === void 0 && (r[t] = Array.isArray(i) ? [] : {}), typeof r[t] == "object" && (r[t] = R(r[t], i, { depth: n - 1 }));
|
|
1253
|
+
} else typeof r[t] != "object" && (Object.hasOwn(e, t) ? r[t] = i : Object.defineProperty(e, t, {
|
|
1254
|
+
value: i,
|
|
1255
|
+
writable: !0,
|
|
1256
|
+
enumerable: !0,
|
|
1257
|
+
configurable: !0
|
|
1258
|
+
}));
|
|
1259
|
+
});
|
|
1260
|
+
}
|
|
1261
|
+
return e;
|
|
1262
|
+
}, "assignWithDepth"), z = R, B = "#ffffff", V = "#f2f2f2", H = /* @__PURE__ */ n((e, t) => t ? I(e, {
|
|
1196
1263
|
s: -40,
|
|
1197
1264
|
l: 10
|
|
1198
|
-
}) :
|
|
1265
|
+
}) : I(e, {
|
|
1199
1266
|
s: -40,
|
|
1200
1267
|
l: -10
|
|
1201
|
-
}), "mkBorder"),
|
|
1268
|
+
}), "mkBorder"), ht = class {
|
|
1202
1269
|
static {
|
|
1203
1270
|
n(this, "Theme");
|
|
1204
1271
|
}
|
|
@@ -1206,62 +1273,78 @@ var O = {
|
|
|
1206
1273
|
this.background = "#f4f4f4", this.primaryColor = "#fff4dd", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.useGradient = !0, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))";
|
|
1207
1274
|
}
|
|
1208
1275
|
updateColors() {
|
|
1209
|
-
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor ||
|
|
1276
|
+
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || I(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || I(this.primaryColor, {
|
|
1210
1277
|
h: 180,
|
|
1211
1278
|
l: 5
|
|
1212
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
1279
|
+
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || L(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || L(this.tertiaryColor), this.lineColor = this.lineColor || L(this.background), this.arrowheadColor = this.arrowheadColor || L(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? F(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || F(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || L(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || P(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.vertLineColor = this.vertLineColor || "navy", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal", this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.darkMode ? (this.rowOdd = this.rowOdd || F(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || F(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || P(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || P(this.mainBkg, 5)), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || this.tertiaryColor, this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || I(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || I(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || I(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || I(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || I(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || I(this.primaryColor, {
|
|
1213
1280
|
h: 210,
|
|
1214
1281
|
l: 150
|
|
1215
|
-
}), this.cScale9 = this.cScale9 ||
|
|
1216
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1217
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1218
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
1282
|
+
}), this.cScale9 = this.cScale9 || I(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || I(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || I(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = F(this["cScale" + e], 75);
|
|
1283
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = F(this["cScale" + e], 25);
|
|
1284
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || L(this["cScale" + e]);
|
|
1285
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10);
|
|
1219
1286
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1220
1287
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1221
1288
|
let e = this.darkMode ? -4 : -1;
|
|
1222
|
-
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] ||
|
|
1289
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || I(this.mainBkg, {
|
|
1223
1290
|
h: 180,
|
|
1224
1291
|
s: -15,
|
|
1225
1292
|
l: e * (5 + t * 3)
|
|
1226
|
-
}), this["surfacePeer" + t] = this["surfacePeer" + t] ||
|
|
1293
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || I(this.mainBkg, {
|
|
1227
1294
|
h: 180,
|
|
1228
1295
|
s: -15,
|
|
1229
1296
|
l: e * (8 + t * 3)
|
|
1230
1297
|
});
|
|
1231
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 ||
|
|
1298
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || I(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || I(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || I(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || I(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || I(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || I(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || I(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || I(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || I(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || I(this.primaryColor, {
|
|
1232
1299
|
h: 60,
|
|
1233
1300
|
l: -10
|
|
1234
|
-
}), this.pie8 = this.pie8 ||
|
|
1301
|
+
}), this.pie8 = this.pie8 || I(this.primaryColor, {
|
|
1235
1302
|
h: -60,
|
|
1236
1303
|
l: -10
|
|
1237
|
-
}), this.pie9 = this.pie9 ||
|
|
1304
|
+
}), this.pie9 = this.pie9 || I(this.primaryColor, {
|
|
1238
1305
|
h: 120,
|
|
1239
1306
|
l: 0
|
|
1240
|
-
}), this.pie10 = this.pie10 ||
|
|
1307
|
+
}), this.pie10 = this.pie10 || I(this.primaryColor, {
|
|
1241
1308
|
h: 60,
|
|
1242
1309
|
l: -20
|
|
1243
|
-
}), this.pie11 = this.pie11 ||
|
|
1310
|
+
}), this.pie11 = this.pie11 || I(this.primaryColor, {
|
|
1244
1311
|
h: -60,
|
|
1245
1312
|
l: -20
|
|
1246
|
-
}), this.pie12 = this.pie12 ||
|
|
1313
|
+
}), this.pie12 = this.pie12 || I(this.primaryColor, {
|
|
1247
1314
|
h: 120,
|
|
1248
1315
|
l: -10
|
|
1249
|
-
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ??
|
|
1316
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ?? I(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? I(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? I(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? I(this.primaryColor, {
|
|
1250
1317
|
h: 60,
|
|
1251
1318
|
l: -30
|
|
1252
|
-
}), this.venn5 = this.venn5 ??
|
|
1319
|
+
}), this.venn5 = this.venn5 ?? I(this.primaryColor, {
|
|
1253
1320
|
h: -60,
|
|
1254
1321
|
l: -30
|
|
1255
|
-
}), this.venn6 = this.venn6 ??
|
|
1322
|
+
}), this.venn6 = this.venn6 ?? I(this.secondaryColor, {
|
|
1256
1323
|
h: 60,
|
|
1257
1324
|
l: -30
|
|
1258
|
-
}), this.venn7 = this.venn7 ??
|
|
1325
|
+
}), this.venn7 = this.venn7 ?? I(this.primaryColor, {
|
|
1259
1326
|
h: 120,
|
|
1260
1327
|
l: -30
|
|
1261
|
-
}), this.venn8 = this.venn8 ??
|
|
1328
|
+
}), this.venn8 = this.venn8 ?? I(this.secondaryColor, {
|
|
1262
1329
|
h: 120,
|
|
1263
1330
|
l: -30
|
|
1264
|
-
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.
|
|
1331
|
+
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
|
|
1332
|
+
domainFontSize: this.cynefin?.domainFontSize || 16,
|
|
1333
|
+
itemFontSize: this.cynefin?.itemFontSize || 12,
|
|
1334
|
+
boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
|
|
1335
|
+
boundaryWidth: this.cynefin?.boundaryWidth || 2,
|
|
1336
|
+
cliffColor: this.cynefin?.cliffColor || "#8B0000",
|
|
1337
|
+
cliffWidth: this.cynefin?.cliffWidth || 4,
|
|
1338
|
+
arrowColor: this.cynefin?.arrowColor || this.lineColor,
|
|
1339
|
+
arrowWidth: this.cynefin?.arrowWidth || 2,
|
|
1340
|
+
complexBg: this.cynefin?.complexBg || "#E8F5E9",
|
|
1341
|
+
complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
|
|
1342
|
+
chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
|
|
1343
|
+
clearBg: this.cynefin?.clearBg || "#FFF8E1",
|
|
1344
|
+
confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
|
|
1345
|
+
textColor: this.cynefin?.textColor || this.textColor,
|
|
1346
|
+
labelColor: this.cynefin?.labelColor || this.primaryTextColor
|
|
1347
|
+
}, this.radar = {
|
|
1265
1348
|
axisColor: this.radar?.axisColor || this.lineColor,
|
|
1266
1349
|
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
1267
1350
|
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
@@ -1285,34 +1368,35 @@ var O = {
|
|
|
1285
1368
|
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
1286
1369
|
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
1287
1370
|
annotationFill: this.wardley?.annotationFill || this.background
|
|
1288
|
-
}, this.archEdgeColor = this.archEdgeColor || "#777", this.archEdgeArrowColor = this.archEdgeArrowColor || "#777", this.archEdgeWidth = this.archEdgeWidth || "3", this.archGroupBorderColor = this.archGroupBorderColor || "#000", this.archGroupBorderWidth = this.archGroupBorderWidth || "2px", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
1371
|
+
}, this.archEdgeColor = this.archEdgeColor || "#777", this.archEdgeArrowColor = this.archEdgeArrowColor || "#777", this.archEdgeWidth = this.archEdgeWidth || "3", this.archGroupBorderColor = this.archGroupBorderColor || "#000", this.archGroupBorderWidth = this.archGroupBorderWidth || "2px", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || I(this.primaryColor, {
|
|
1289
1372
|
r: 5,
|
|
1290
1373
|
g: 5,
|
|
1291
1374
|
b: 5
|
|
1292
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1375
|
+
}), this.quadrant3Fill = this.quadrant3Fill || I(this.primaryColor, {
|
|
1293
1376
|
r: 10,
|
|
1294
1377
|
g: 10,
|
|
1295
1378
|
b: 10
|
|
1296
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1379
|
+
}), this.quadrant4Fill = this.quadrant4Fill || I(this.primaryColor, {
|
|
1297
1380
|
r: 15,
|
|
1298
1381
|
g: 15,
|
|
1299
1382
|
b: 15
|
|
1300
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1383
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || I(this.primaryTextColor, {
|
|
1301
1384
|
r: -5,
|
|
1302
1385
|
g: -5,
|
|
1303
1386
|
b: -5
|
|
1304
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1387
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || I(this.primaryTextColor, {
|
|
1305
1388
|
r: -10,
|
|
1306
1389
|
g: -10,
|
|
1307
1390
|
b: -10
|
|
1308
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1391
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || I(this.primaryTextColor, {
|
|
1309
1392
|
r: -15,
|
|
1310
1393
|
g: -15,
|
|
1311
1394
|
b: -15
|
|
1312
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1395
|
+
}), this.quadrantPointFill = this.quadrantPointFill || N(this.quadrant1Fill) ? P(this.quadrant1Fill) : F(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
1313
1396
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1314
1397
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1315
1398
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
1399
|
+
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
1316
1400
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
1317
1401
|
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
1318
1402
|
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
@@ -1322,7 +1406,7 @@ var O = {
|
|
|
1322
1406
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1323
1407
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1324
1408
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
1325
|
-
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ?
|
|
1409
|
+
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? F(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || I(this.primaryColor, { h: -30 }), this.git4 = this.git4 || I(this.primaryColor, { h: -60 }), this.git5 = this.git5 || I(this.primaryColor, { h: -90 }), this.git6 = this.git6 || I(this.primaryColor, { h: 60 }), this.git7 = this.git7 || I(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)) : (this.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)), this.gitInv0 = this.gitInv0 || L(this.git0), this.gitInv1 = this.gitInv1 || L(this.git1), this.gitInv2 = this.gitInv2 || L(this.git2), this.gitInv3 = this.gitInv3 || L(this.git3), this.gitInv4 = this.gitInv4 || L(this.git4), this.gitInv5 = this.gitInv5 || L(this.git5), this.gitInv6 = this.gitInv6 || L(this.git6), this.gitInv7 = this.gitInv7 || L(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
|
|
1326
1410
|
}
|
|
1327
1411
|
calculate(e) {
|
|
1328
1412
|
if (typeof e != "object") {
|
|
@@ -1336,25 +1420,25 @@ var O = {
|
|
|
1336
1420
|
this[t] = e[t];
|
|
1337
1421
|
});
|
|
1338
1422
|
}
|
|
1339
|
-
},
|
|
1340
|
-
let t = new
|
|
1423
|
+
}, gt = /* @__PURE__ */ n((e) => {
|
|
1424
|
+
let t = new ht();
|
|
1341
1425
|
return t.calculate(e), t;
|
|
1342
|
-
}, "getThemeVariables"),
|
|
1426
|
+
}, "getThemeVariables"), _t = class {
|
|
1343
1427
|
static {
|
|
1344
1428
|
n(this, "Theme");
|
|
1345
1429
|
}
|
|
1346
1430
|
constructor() {
|
|
1347
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
1431
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = P(this.primaryColor, 16), this.tertiaryColor = I(this.primaryColor, { h: -160 }), this.primaryBorderColor = L(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = L(this.primaryColor), this.secondaryTextColor = L(this.secondaryColor), this.tertiaryTextColor = L(this.tertiaryColor), this.lineColor = L(this.background), this.textColor = L(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = P(L("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = M(255, 255, 255, .25), this.arrowheadColor = "calculated", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#F9FFFE", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "calculated", this.activationBkgColor = "calculated", this.sequenceNumberColor = "black", this.clusterBkg = "#302F3D", this.sectionBkgColor = F("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = F(this.sectionBkgColor, 10), this.taskBorderColor = M(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = M(255, 255, 255, 50), this.activeTaskBkgColor = "#81B1DB", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "grey", this.critBorderColor = "#E83737", this.critBkgColor = "#E83737", this.taskTextDarkColor = "calculated", this.todayLineColor = "#DB5757", this.vertLineColor = "#00BFFF", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = this.rowOdd || P(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || F(this.mainBkg, 10), this.labelColor = "calculated", this.errorBkgColor = "#a44141", this.errorTextColor = "#ddd", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal";
|
|
1348
1432
|
}
|
|
1349
1433
|
updateColors() {
|
|
1350
|
-
this.secondBkg =
|
|
1351
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1352
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
1353
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
1434
|
+
this.secondBkg = P(this.mainBkg, 16), this.lineColor = this.mainContrastColor, this.arrowheadColor = this.mainContrastColor, this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.edgeLabelBackground = P(this.labelBackground, 25), this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.actorTextColor = this.mainContrastColor, this.actorLineColor = this.actorBorder, this.signalColor = this.mainContrastColor, this.signalTextColor = this.mainContrastColor, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.mainContrastColor, this.loopTextColor = this.mainContrastColor, this.noteBorderColor = this.secondaryBorderColor, this.noteBkgColor = this.secondBkg, this.noteTextColor = this.secondaryTextColor, this.activationBorderColor = this.border1, this.activationBkgColor = this.secondBkg, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.background, this.taskBkgColor = P(this.mainBkg, 23), this.taskTextColor = this.darkTextColor, this.taskTextLightColor = this.mainContrastColor, this.taskTextOutsideColor = this.taskTextLightColor, this.gridColor = this.mainContrastColor, this.doneTaskBkgColor = this.mainContrastColor, this.taskTextDarkColor = L(this.doneTaskBkgColor), this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#555", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#f4f4f4", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = I(this.primaryColor, { h: 64 }), this.fillType3 = I(this.secondaryColor, { h: 64 }), this.fillType4 = I(this.primaryColor, { h: -64 }), this.fillType5 = I(this.secondaryColor, { h: -64 }), this.fillType6 = I(this.primaryColor, { h: 128 }), this.fillType7 = I(this.secondaryColor, { h: 128 }), this.cScale1 = this.cScale1 || "#0b0000", this.cScale2 = this.cScale2 || "#4d1037", this.cScale3 = this.cScale3 || "#3f5258", this.cScale4 = this.cScale4 || "#4f2f1b", this.cScale5 = this.cScale5 || "#6e0a0a", this.cScale6 = this.cScale6 || "#3b0048", this.cScale7 = this.cScale7 || "#995a01", this.cScale8 = this.cScale8 || "#154706", this.cScale9 = this.cScale9 || "#161722", this.cScale10 = this.cScale10 || "#00296f", this.cScale11 = this.cScale11 || "#01629c", this.cScale12 = this.cScale12 || "#010029", this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || I(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || I(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || I(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || I(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || I(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || I(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || I(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || I(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || I(this.primaryColor, { h: 330 });
|
|
1435
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || L(this["cScale" + e]);
|
|
1436
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10);
|
|
1437
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || I(this.mainBkg, {
|
|
1354
1438
|
h: 30,
|
|
1355
1439
|
s: -30,
|
|
1356
1440
|
l: -(-10 + e * 4)
|
|
1357
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
1441
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || I(this.mainBkg, {
|
|
1358
1442
|
h: 30,
|
|
1359
1443
|
s: -30,
|
|
1360
1444
|
l: -(-7 + e * 4)
|
|
@@ -1363,35 +1447,52 @@ var O = {
|
|
|
1363
1447
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1364
1448
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
|
|
1365
1449
|
this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.mainContrastColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.mainContrastColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7";
|
|
1366
|
-
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ??
|
|
1367
|
-
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.
|
|
1450
|
+
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? P(this["cScale" + e], 30);
|
|
1451
|
+
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
|
|
1452
|
+
domainFontSize: this.cynefin?.domainFontSize || 16,
|
|
1453
|
+
itemFontSize: this.cynefin?.itemFontSize || 12,
|
|
1454
|
+
boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
|
|
1455
|
+
boundaryWidth: this.cynefin?.boundaryWidth || 2,
|
|
1456
|
+
cliffColor: this.cynefin?.cliffColor || "#FF6B6B",
|
|
1457
|
+
cliffWidth: this.cynefin?.cliffWidth || 4,
|
|
1458
|
+
arrowColor: this.cynefin?.arrowColor || this.lineColor,
|
|
1459
|
+
arrowWidth: this.cynefin?.arrowWidth || 2,
|
|
1460
|
+
complexBg: this.cynefin?.complexBg || "#1B5E20",
|
|
1461
|
+
complicatedBg: this.cynefin?.complicatedBg || "#0D47A1",
|
|
1462
|
+
chaoticBg: this.cynefin?.chaoticBg || "#BF360C",
|
|
1463
|
+
clearBg: this.cynefin?.clearBg || "#F57F17",
|
|
1464
|
+
confusionBg: this.cynefin?.confusionBg || "#4A148C",
|
|
1465
|
+
textColor: this.cynefin?.textColor || this.textColor,
|
|
1466
|
+
labelColor: this.cynefin?.labelColor || this.primaryTextColor
|
|
1467
|
+
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || I(this.primaryColor, {
|
|
1368
1468
|
r: 5,
|
|
1369
1469
|
g: 5,
|
|
1370
1470
|
b: 5
|
|
1371
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1471
|
+
}), this.quadrant3Fill = this.quadrant3Fill || I(this.primaryColor, {
|
|
1372
1472
|
r: 10,
|
|
1373
1473
|
g: 10,
|
|
1374
1474
|
b: 10
|
|
1375
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1475
|
+
}), this.quadrant4Fill = this.quadrant4Fill || I(this.primaryColor, {
|
|
1376
1476
|
r: 15,
|
|
1377
1477
|
g: 15,
|
|
1378
1478
|
b: 15
|
|
1379
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1479
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || I(this.primaryTextColor, {
|
|
1380
1480
|
r: -5,
|
|
1381
1481
|
g: -5,
|
|
1382
1482
|
b: -5
|
|
1383
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1483
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || I(this.primaryTextColor, {
|
|
1384
1484
|
r: -10,
|
|
1385
1485
|
g: -10,
|
|
1386
1486
|
b: -10
|
|
1387
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1487
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || I(this.primaryTextColor, {
|
|
1388
1488
|
r: -15,
|
|
1389
1489
|
g: -15,
|
|
1390
1490
|
b: -15
|
|
1391
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1491
|
+
}), this.quadrantPointFill = this.quadrantPointFill || N(this.quadrant1Fill) ? P(this.quadrant1Fill) : F(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
1392
1492
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1393
1493
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1394
1494
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
1495
|
+
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
1395
1496
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
1396
1497
|
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
1397
1498
|
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
@@ -1432,7 +1533,7 @@ var O = {
|
|
|
1432
1533
|
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
1433
1534
|
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
1434
1535
|
annotationFill: this.wardley?.annotationFill || this.mainBkg
|
|
1435
|
-
}, this.classText = this.primaryTextColor, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ?
|
|
1536
|
+
}, this.classText = this.primaryTextColor, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? F(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = P(this.secondaryColor, 20), this.git1 = P(this.pie2 || this.secondaryColor, 20), this.git2 = P(this.pie3 || this.tertiaryColor, 20), this.git3 = P(this.pie4 || I(this.primaryColor, { h: -30 }), 20), this.git4 = P(this.pie5 || I(this.primaryColor, { h: -60 }), 20), this.git5 = P(this.pie6 || I(this.primaryColor, { h: -90 }), 10), this.git6 = P(this.pie7 || I(this.primaryColor, { h: 60 }), 10), this.git7 = P(this.pie8 || I(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || L(this.git0), this.gitInv1 = this.gitInv1 || L(this.git1), this.gitInv2 = this.gitInv2 || L(this.git2), this.gitInv3 = this.gitInv3 || L(this.git3), this.gitInv4 = this.gitInv4 || L(this.git4), this.gitInv5 = this.gitInv5 || L(this.git5), this.gitInv6 = this.gitInv6 || L(this.git6), this.gitInv7 = this.gitInv7 || L(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || L(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || L(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "#2d2d2d", this.emUiStroke = this.emUiStroke || "#555", this.emProcessorFill = this.emProcessorFill || P("#5a3d5c", 10), this.emProcessorStroke = this.emProcessorStroke || "#8a6d8c", this.emReadModelFill = this.emReadModelFill || P("#3d5a2d", 10), this.emReadModelStroke = this.emReadModelStroke || "#6d8c5c", this.emCommandFill = this.emCommandFill || P("#2d3d5a", 10), this.emCommandStroke = this.emCommandStroke || "#5c6d8c", this.emEventFill = this.emEventFill || P("#5a452d", 10), this.emEventStroke = this.emEventStroke || "#8c755c", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || P(this.background, 5), this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || P(this.background, 12), this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || P(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || P(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
|
|
1436
1537
|
}
|
|
1437
1538
|
calculate(e) {
|
|
1438
1539
|
if (typeof e != "object") {
|
|
@@ -1446,89 +1547,105 @@ var O = {
|
|
|
1446
1547
|
this[t] = e[t];
|
|
1447
1548
|
});
|
|
1448
1549
|
}
|
|
1449
|
-
},
|
|
1450
|
-
let t = new
|
|
1550
|
+
}, vt = /* @__PURE__ */ n((e) => {
|
|
1551
|
+
let t = new _t();
|
|
1451
1552
|
return t.calculate(e), t;
|
|
1452
|
-
}, "getThemeVariables"),
|
|
1553
|
+
}, "getThemeVariables"), yt = class {
|
|
1453
1554
|
static {
|
|
1454
1555
|
n(this, "Theme");
|
|
1455
1556
|
}
|
|
1456
1557
|
constructor() {
|
|
1457
|
-
this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor =
|
|
1558
|
+
this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = I(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = I(this.primaryColor, { h: -160 }), this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = L(this.primaryColor), this.secondaryTextColor = L(this.secondaryColor), this.tertiaryTextColor = L(this.tertiaryColor), this.lineColor = L(this.background), this.textColor = L(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.border2 = "#aaaa33", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "rgba(232,232,232, 0.8)", this.textColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.clusterBkg = "#FBFBFF", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = this.taskTextDarkColor, this.taskTextClickableColor = "calculated", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBorderColor = "calculated", this.critBkgColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.sectionBkgColor = M(102, 102, 255, .49), this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#fff400", this.taskBorderColor = "#534fbc", this.taskBkgColor = "#8a90dd", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "#534fbc", this.activeTaskBkgColor = "#bfc7ff", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "navy", this.noteFontWeight = this.noteFontWeight || "normal", this.fontWeight = this.fontWeight || "normal", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = "calculated", this.rowEven = "calculated", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !1, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow(1px 2px 2px rgba(185, 185, 185, 1))", this.updateColors();
|
|
1458
1559
|
}
|
|
1459
1560
|
updateColors() {
|
|
1460
|
-
this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 ||
|
|
1461
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1462
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1463
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
1561
|
+
this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || I(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || I(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || I(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || I(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || I(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || I(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || I(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || I(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || I(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || F(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || F(this.tertiaryColor, 40);
|
|
1562
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = F(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 25);
|
|
1563
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e], { h: 180 });
|
|
1564
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || I(this.mainBkg, {
|
|
1464
1565
|
h: 30,
|
|
1465
1566
|
l: -(5 + e * 5)
|
|
1466
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
1567
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || I(this.mainBkg, {
|
|
1467
1568
|
h: 30,
|
|
1468
1569
|
l: -(7 + e * 5)
|
|
1469
1570
|
});
|
|
1470
1571
|
if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
|
|
1471
|
-
this.cScaleLabel0 = this.cScaleLabel0 ||
|
|
1572
|
+
this.cScaleLabel0 = this.cScaleLabel0 || L(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || L(this.labelTextColor);
|
|
1472
1573
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
|
|
1473
1574
|
}
|
|
1474
|
-
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.textColor, this.edgeLabelBackground = this.labelBackground, this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.signalColor = this.textColor, this.signalTextColor = this.textColor, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd ||
|
|
1575
|
+
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.textColor, this.edgeLabelBackground = this.labelBackground, this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.signalColor = this.textColor, this.signalTextColor = this.textColor, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || P(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || P(this.primaryColor, 1), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = I(this.primaryColor, { h: 64 }), this.fillType3 = I(this.secondaryColor, { h: 64 }), this.fillType4 = I(this.primaryColor, { h: -64 }), this.fillType5 = I(this.secondaryColor, { h: -64 }), this.fillType6 = I(this.primaryColor, { h: 128 }), this.fillType7 = I(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || I(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || I(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || I(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || I(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || I(this.primaryColor, {
|
|
1475
1576
|
h: 60,
|
|
1476
1577
|
l: -20
|
|
1477
|
-
}), this.pie8 = this.pie8 ||
|
|
1578
|
+
}), this.pie8 = this.pie8 || I(this.primaryColor, {
|
|
1478
1579
|
h: -60,
|
|
1479
1580
|
l: -40
|
|
1480
|
-
}), this.pie9 = this.pie9 ||
|
|
1581
|
+
}), this.pie9 = this.pie9 || I(this.primaryColor, {
|
|
1481
1582
|
h: 120,
|
|
1482
1583
|
l: -40
|
|
1483
|
-
}), this.pie10 = this.pie10 ||
|
|
1584
|
+
}), this.pie10 = this.pie10 || I(this.primaryColor, {
|
|
1484
1585
|
h: 60,
|
|
1485
1586
|
l: -40
|
|
1486
|
-
}), this.pie11 = this.pie11 ||
|
|
1587
|
+
}), this.pie11 = this.pie11 || I(this.primaryColor, {
|
|
1487
1588
|
h: -90,
|
|
1488
1589
|
l: -40
|
|
1489
|
-
}), this.pie12 = this.pie12 ||
|
|
1590
|
+
}), this.pie12 = this.pie12 || I(this.primaryColor, {
|
|
1490
1591
|
h: 120,
|
|
1491
1592
|
l: -30
|
|
1492
|
-
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ??
|
|
1593
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ?? I(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? I(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? I(this.tertiaryColor, { l: -40 }), this.venn4 = this.venn4 ?? I(this.primaryColor, {
|
|
1493
1594
|
h: 60,
|
|
1494
1595
|
l: -30
|
|
1495
|
-
}), this.venn5 = this.venn5 ??
|
|
1596
|
+
}), this.venn5 = this.venn5 ?? I(this.primaryColor, {
|
|
1496
1597
|
h: -60,
|
|
1497
1598
|
l: -30
|
|
1498
|
-
}), this.venn6 = this.venn6 ??
|
|
1599
|
+
}), this.venn6 = this.venn6 ?? I(this.secondaryColor, {
|
|
1499
1600
|
h: 60,
|
|
1500
1601
|
l: -30
|
|
1501
|
-
}), this.venn7 = this.venn7 ??
|
|
1602
|
+
}), this.venn7 = this.venn7 ?? I(this.primaryColor, {
|
|
1502
1603
|
h: 120,
|
|
1503
1604
|
l: -30
|
|
1504
|
-
}), this.venn8 = this.venn8 ??
|
|
1605
|
+
}), this.venn8 = this.venn8 ?? I(this.secondaryColor, {
|
|
1505
1606
|
h: 120,
|
|
1506
1607
|
l: -30
|
|
1507
|
-
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.
|
|
1608
|
+
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
|
|
1609
|
+
domainFontSize: this.cynefin?.domainFontSize || 16,
|
|
1610
|
+
itemFontSize: this.cynefin?.itemFontSize || 12,
|
|
1611
|
+
boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
|
|
1612
|
+
boundaryWidth: this.cynefin?.boundaryWidth || 2,
|
|
1613
|
+
cliffColor: this.cynefin?.cliffColor || "#8B0000",
|
|
1614
|
+
cliffWidth: this.cynefin?.cliffWidth || 4,
|
|
1615
|
+
arrowColor: this.cynefin?.arrowColor || this.lineColor,
|
|
1616
|
+
arrowWidth: this.cynefin?.arrowWidth || 2,
|
|
1617
|
+
complexBg: this.cynefin?.complexBg || "#E8F5E9",
|
|
1618
|
+
complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
|
|
1619
|
+
chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
|
|
1620
|
+
clearBg: this.cynefin?.clearBg || "#FFF8E1",
|
|
1621
|
+
confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
|
|
1622
|
+
textColor: this.cynefin?.textColor || this.textColor,
|
|
1623
|
+
labelColor: this.cynefin?.labelColor || this.primaryTextColor
|
|
1624
|
+
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || I(this.primaryColor, {
|
|
1508
1625
|
r: 5,
|
|
1509
1626
|
g: 5,
|
|
1510
1627
|
b: 5
|
|
1511
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1628
|
+
}), this.quadrant3Fill = this.quadrant3Fill || I(this.primaryColor, {
|
|
1512
1629
|
r: 10,
|
|
1513
1630
|
g: 10,
|
|
1514
1631
|
b: 10
|
|
1515
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1632
|
+
}), this.quadrant4Fill = this.quadrant4Fill || I(this.primaryColor, {
|
|
1516
1633
|
r: 15,
|
|
1517
1634
|
g: 15,
|
|
1518
1635
|
b: 15
|
|
1519
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1636
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || I(this.primaryTextColor, {
|
|
1520
1637
|
r: -5,
|
|
1521
1638
|
g: -5,
|
|
1522
1639
|
b: -5
|
|
1523
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1640
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || I(this.primaryTextColor, {
|
|
1524
1641
|
r: -10,
|
|
1525
1642
|
g: -10,
|
|
1526
1643
|
b: -10
|
|
1527
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1644
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || I(this.primaryTextColor, {
|
|
1528
1645
|
r: -15,
|
|
1529
1646
|
g: -15,
|
|
1530
1647
|
b: -15
|
|
1531
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1648
|
+
}), this.quadrantPointFill = this.quadrantPointFill || N(this.quadrant1Fill) ? P(this.quadrant1Fill) : F(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.radar = {
|
|
1532
1649
|
axisColor: this.radar?.axisColor || this.lineColor,
|
|
1533
1650
|
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
1534
1651
|
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
@@ -1556,6 +1673,7 @@ var O = {
|
|
|
1556
1673
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1557
1674
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1558
1675
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
1676
|
+
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
1559
1677
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
1560
1678
|
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
1561
1679
|
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
@@ -1565,7 +1683,7 @@ var O = {
|
|
|
1565
1683
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1566
1684
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1567
1685
|
plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
|
|
1568
|
-
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.labelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 ||
|
|
1686
|
+
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.labelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || I(this.primaryColor, { h: -30 }), this.git4 = this.git4 || I(this.primaryColor, { h: -60 }), this.git5 = this.git5 || I(this.primaryColor, { h: -90 }), this.git6 = this.git6 || I(this.primaryColor, { h: 60 }), this.git7 = this.git7 || I(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)) : (this.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)), this.gitInv0 = this.gitInv0 || F(L(this.git0), 25), this.gitInv1 = this.gitInv1 || L(this.git1), this.gitInv2 = this.gitInv2 || L(this.git2), this.gitInv3 = this.gitInv3 || L(this.git3), this.gitInv4 = this.gitInv4 || L(this.git4), this.gitInv5 = this.gitInv5 || L(this.git5), this.gitInv6 = this.gitInv6 || L(this.git6), this.gitInv7 = this.gitInv7 || L(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || L(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || L(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
1569
1687
|
}
|
|
1570
1688
|
calculate(e) {
|
|
1571
1689
|
if (Object.keys(this).forEach((e) => {
|
|
@@ -1581,92 +1699,108 @@ var O = {
|
|
|
1581
1699
|
this[t] = e[t];
|
|
1582
1700
|
});
|
|
1583
1701
|
}
|
|
1584
|
-
},
|
|
1585
|
-
let t = new
|
|
1702
|
+
}, bt = /* @__PURE__ */ n((e) => {
|
|
1703
|
+
let t = new yt();
|
|
1586
1704
|
return t.calculate(e), t;
|
|
1587
|
-
}, "getThemeVariables"),
|
|
1705
|
+
}, "getThemeVariables"), xt = class {
|
|
1588
1706
|
static {
|
|
1589
1707
|
n(this, "Theme");
|
|
1590
1708
|
}
|
|
1591
1709
|
constructor() {
|
|
1592
|
-
this.background = "#f4f4f4", this.primaryColor = "#cde498", this.secondaryColor = "#cdffb2", this.background = "white", this.mainBkg = "#cde498", this.secondBkg = "#cdffb2", this.lineColor = "green", this.border1 = "#13540c", this.border2 = "#6eaa49", this.arrowheadColor = "green", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.tertiaryColor =
|
|
1710
|
+
this.background = "#f4f4f4", this.primaryColor = "#cde498", this.secondaryColor = "#cdffb2", this.background = "white", this.mainBkg = "#cde498", this.secondBkg = "#cdffb2", this.lineColor = "green", this.border1 = "#13540c", this.border2 = "#6eaa49", this.arrowheadColor = "green", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.tertiaryColor = P("#cde498", 10), this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = L(this.primaryColor), this.secondaryTextColor = L(this.secondaryColor), this.tertiaryTextColor = L(this.primaryColor), this.lineColor = L(this.background), this.textColor = L(this.background), this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#333", this.edgeLabelBackground = "#e8e8e8", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "#333", this.signalTextColor = "#333", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "#326932", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "#6eaa49", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#6eaa49", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "#487e3a", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "#00BFFF", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.5))";
|
|
1593
1711
|
}
|
|
1594
1712
|
updateColors() {
|
|
1595
|
-
this.actorBorder =
|
|
1596
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1597
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1713
|
+
this.actorBorder = F(this.mainBkg, 20), this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || I(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || I(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || I(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || I(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || I(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || I(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || I(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || I(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || I(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || F(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || F(this.tertiaryColor, 40);
|
|
1714
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = F(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 25);
|
|
1715
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || I(this["cScale" + e], { h: 180 });
|
|
1598
1716
|
this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
|
|
1599
1717
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1600
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
1718
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || I(this.mainBkg, {
|
|
1601
1719
|
h: 30,
|
|
1602
1720
|
s: -30,
|
|
1603
1721
|
l: -(5 + e * 5)
|
|
1604
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
1722
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || I(this.mainBkg, {
|
|
1605
1723
|
h: 30,
|
|
1606
1724
|
s: -30,
|
|
1607
1725
|
l: -(8 + e * 5)
|
|
1608
1726
|
});
|
|
1609
|
-
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.taskBorderColor = this.border1, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd ||
|
|
1727
|
+
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.taskBorderColor = this.border1, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || P(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || P(this.mainBkg, 20), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = I(this.primaryColor, { h: 64 }), this.fillType3 = I(this.secondaryColor, { h: 64 }), this.fillType4 = I(this.primaryColor, { h: -64 }), this.fillType5 = I(this.secondaryColor, { h: -64 }), this.fillType6 = I(this.primaryColor, { h: 128 }), this.fillType7 = I(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || I(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || I(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || I(this.tertiaryColor, {
|
|
1610
1728
|
h: 40,
|
|
1611
1729
|
l: -40
|
|
1612
|
-
}), this.pie7 = this.pie7 ||
|
|
1730
|
+
}), this.pie7 = this.pie7 || I(this.primaryColor, {
|
|
1613
1731
|
h: 60,
|
|
1614
1732
|
l: -10
|
|
1615
|
-
}), this.pie8 = this.pie8 ||
|
|
1733
|
+
}), this.pie8 = this.pie8 || I(this.primaryColor, {
|
|
1616
1734
|
h: -60,
|
|
1617
1735
|
l: -10
|
|
1618
|
-
}), this.pie9 = this.pie9 ||
|
|
1736
|
+
}), this.pie9 = this.pie9 || I(this.primaryColor, {
|
|
1619
1737
|
h: 120,
|
|
1620
1738
|
l: 0
|
|
1621
|
-
}), this.pie10 = this.pie10 ||
|
|
1739
|
+
}), this.pie10 = this.pie10 || I(this.primaryColor, {
|
|
1622
1740
|
h: 60,
|
|
1623
1741
|
l: -50
|
|
1624
|
-
}), this.pie11 = this.pie11 ||
|
|
1742
|
+
}), this.pie11 = this.pie11 || I(this.primaryColor, {
|
|
1625
1743
|
h: -60,
|
|
1626
1744
|
l: -50
|
|
1627
|
-
}), this.pie12 = this.pie12 ||
|
|
1745
|
+
}), this.pie12 = this.pie12 || I(this.primaryColor, {
|
|
1628
1746
|
h: 120,
|
|
1629
1747
|
l: -50
|
|
1630
|
-
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ??
|
|
1748
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.venn1 = this.venn1 ?? I(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? I(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? I(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? I(this.primaryColor, {
|
|
1631
1749
|
h: 60,
|
|
1632
1750
|
l: -30
|
|
1633
|
-
}), this.venn5 = this.venn5 ??
|
|
1751
|
+
}), this.venn5 = this.venn5 ?? I(this.primaryColor, {
|
|
1634
1752
|
h: -60,
|
|
1635
1753
|
l: -30
|
|
1636
|
-
}), this.venn6 = this.venn6 ??
|
|
1754
|
+
}), this.venn6 = this.venn6 ?? I(this.secondaryColor, {
|
|
1637
1755
|
h: 60,
|
|
1638
1756
|
l: -30
|
|
1639
|
-
}), this.venn7 = this.venn7 ??
|
|
1757
|
+
}), this.venn7 = this.venn7 ?? I(this.primaryColor, {
|
|
1640
1758
|
h: 120,
|
|
1641
1759
|
l: -30
|
|
1642
|
-
}), this.venn8 = this.venn8 ??
|
|
1760
|
+
}), this.venn8 = this.venn8 ?? I(this.secondaryColor, {
|
|
1643
1761
|
h: 120,
|
|
1644
1762
|
l: -30
|
|
1645
|
-
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.
|
|
1763
|
+
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
|
|
1764
|
+
domainFontSize: this.cynefin?.domainFontSize || 16,
|
|
1765
|
+
itemFontSize: this.cynefin?.itemFontSize || 12,
|
|
1766
|
+
boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
|
|
1767
|
+
boundaryWidth: this.cynefin?.boundaryWidth || 2,
|
|
1768
|
+
cliffColor: this.cynefin?.cliffColor || "#8B4513",
|
|
1769
|
+
cliffWidth: this.cynefin?.cliffWidth || 4,
|
|
1770
|
+
arrowColor: this.cynefin?.arrowColor || this.lineColor,
|
|
1771
|
+
arrowWidth: this.cynefin?.arrowWidth || 2,
|
|
1772
|
+
complexBg: this.cynefin?.complexBg || "#C8E6C9",
|
|
1773
|
+
complicatedBg: this.cynefin?.complicatedBg || "#DCEDC8",
|
|
1774
|
+
chaoticBg: this.cynefin?.chaoticBg || "#FFE0B2",
|
|
1775
|
+
clearBg: this.cynefin?.clearBg || "#FFF9C4",
|
|
1776
|
+
confusionBg: this.cynefin?.confusionBg || "#D7CCC8",
|
|
1777
|
+
textColor: this.cynefin?.textColor || this.textColor,
|
|
1778
|
+
labelColor: this.cynefin?.labelColor || this.primaryTextColor
|
|
1779
|
+
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || I(this.primaryColor, {
|
|
1646
1780
|
r: 5,
|
|
1647
1781
|
g: 5,
|
|
1648
1782
|
b: 5
|
|
1649
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1783
|
+
}), this.quadrant3Fill = this.quadrant3Fill || I(this.primaryColor, {
|
|
1650
1784
|
r: 10,
|
|
1651
1785
|
g: 10,
|
|
1652
1786
|
b: 10
|
|
1653
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1787
|
+
}), this.quadrant4Fill = this.quadrant4Fill || I(this.primaryColor, {
|
|
1654
1788
|
r: 15,
|
|
1655
1789
|
g: 15,
|
|
1656
1790
|
b: 15
|
|
1657
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1791
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || I(this.primaryTextColor, {
|
|
1658
1792
|
r: -5,
|
|
1659
1793
|
g: -5,
|
|
1660
1794
|
b: -5
|
|
1661
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1795
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || I(this.primaryTextColor, {
|
|
1662
1796
|
r: -10,
|
|
1663
1797
|
g: -10,
|
|
1664
1798
|
b: -10
|
|
1665
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1799
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || I(this.primaryTextColor, {
|
|
1666
1800
|
r: -15,
|
|
1667
1801
|
g: -15,
|
|
1668
1802
|
b: -15
|
|
1669
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1803
|
+
}), this.quadrantPointFill = this.quadrantPointFill || N(this.quadrant1Fill) ? P(this.quadrant1Fill) : F(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.packet = {
|
|
1670
1804
|
startByteColor: this.primaryTextColor,
|
|
1671
1805
|
endByteColor: this.primaryTextColor,
|
|
1672
1806
|
labelColor: this.primaryTextColor,
|
|
@@ -1701,6 +1835,7 @@ var O = {
|
|
|
1701
1835
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1702
1836
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1703
1837
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
1838
|
+
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
1704
1839
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
1705
1840
|
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
1706
1841
|
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
@@ -1710,7 +1845,7 @@ var O = {
|
|
|
1710
1845
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1711
1846
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1712
1847
|
plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
|
|
1713
|
-
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 ||
|
|
1848
|
+
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || I(this.primaryColor, { h: -30 }), this.git4 = this.git4 || I(this.primaryColor, { h: -60 }), this.git5 = this.git5 || I(this.primaryColor, { h: -90 }), this.git6 = this.git6 || I(this.primaryColor, { h: 60 }), this.git7 = this.git7 || I(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)) : (this.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)), this.gitInv0 = this.gitInv0 || L(this.git0), this.gitInv1 = this.gitInv1 || L(this.git1), this.gitInv2 = this.gitInv2 || L(this.git2), this.gitInv3 = this.gitInv3 || L(this.git3), this.gitInv4 = this.gitInv4 || L(this.git4), this.gitInv5 = this.gitInv5 || L(this.git5), this.gitInv6 = this.gitInv6 || L(this.git6), this.gitInv7 = this.gitInv7 || L(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || L(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || L(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
1714
1849
|
}
|
|
1715
1850
|
calculate(e) {
|
|
1716
1851
|
if (typeof e != "object") {
|
|
@@ -1724,55 +1859,72 @@ var O = {
|
|
|
1724
1859
|
this[t] = e[t];
|
|
1725
1860
|
});
|
|
1726
1861
|
}
|
|
1727
|
-
},
|
|
1728
|
-
let t = new
|
|
1862
|
+
}, U = /* @__PURE__ */ n((e) => {
|
|
1863
|
+
let t = new xt();
|
|
1729
1864
|
return t.calculate(e), t;
|
|
1730
|
-
}, "getThemeVariables"),
|
|
1865
|
+
}, "getThemeVariables"), St = class {
|
|
1731
1866
|
static {
|
|
1732
1867
|
n(this, "Theme");
|
|
1733
1868
|
}
|
|
1734
1869
|
constructor() {
|
|
1735
|
-
this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor =
|
|
1870
|
+
this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = P(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = I(this.primaryColor, { h: -160 }), this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = L(this.primaryColor), this.secondaryTextColor = L(this.secondaryColor), this.tertiaryTextColor = L(this.tertiaryColor), this.lineColor = L(this.background), this.textColor = L(this.background), this.mainBkg = "#eee", this.secondBkg = "calculated", this.lineColor = "#666", this.border1 = "#999", this.border2 = "calculated", this.note = "#ffa", this.text = "#333", this.critical = "#d42", this.done = "#bbb", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "white", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = this.actorBorder, this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "calculated", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBkgColor = "calculated", this.critBorderColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal", this.rowOdd = this.rowOdd || P(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || "#f4f4f4", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.useGradient = !0, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor, this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,1))";
|
|
1736
1871
|
}
|
|
1737
1872
|
updateColors() {
|
|
1738
|
-
this.secondBkg =
|
|
1739
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1740
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
1873
|
+
this.secondBkg = P(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = P(this.border1, 23), this.actorBkg = this.mainBkg, this.actorTextColor = this.text, this.actorLineColor = this.actorBorder, this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.signalColor = this.text, this.signalTextColor = this.text, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.text, this.loopTextColor = this.text, this.noteBorderColor = "#999", this.noteBkgColor = "#666", this.noteTextColor = "#fff", this.cScale0 = this.cScale0 || "#555", this.cScale1 = this.cScale1 || "#F4F4F4", this.cScale2 = this.cScale2 || "#555", this.cScale3 = this.cScale3 || "#BBB", this.cScale4 = this.cScale4 || "#777", this.cScale5 = this.cScale5 || "#999", this.cScale6 = this.cScale6 || "#DDD", this.cScale7 = this.cScale7 || "#FFF", this.cScale8 = this.cScale8 || "#DDD", this.cScale9 = this.cScale9 || "#BBB", this.cScale10 = this.cScale10 || "#999", this.cScale11 = this.cScale11 || "#777";
|
|
1874
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || L(this["cScale" + e]);
|
|
1875
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10);
|
|
1741
1876
|
this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
|
|
1742
1877
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1743
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
1744
|
-
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.text, this.sectionBkgColor =
|
|
1878
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || I(this.mainBkg, { l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || I(this.mainBkg, { l: -(8 + e * 5) });
|
|
1879
|
+
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.text, this.sectionBkgColor = P(this.contrast, 30), this.sectionBkgColor2 = P(this.contrast, 30), this.taskBorderColor = F(this.contrast, 10), this.taskBkgColor = this.contrast, this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = this.text, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.gridColor = P(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = F(this.critBkgColor, 10), this.todayLineColor = this.critBkgColor, this.vertLineColor = this.critBkgColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || "#000", this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f4f4f4", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.stateBorder = this.stateBorder || "#000", this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#222", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = I(this.primaryColor, { h: 64 }), this.fillType3 = I(this.secondaryColor, { h: 64 }), this.fillType4 = I(this.primaryColor, { h: -64 }), this.fillType5 = I(this.secondaryColor, { h: -64 }), this.fillType6 = I(this.primaryColor, { h: 128 }), this.fillType7 = I(this.secondaryColor, { h: 128 });
|
|
1745
1880
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
|
|
1746
1881
|
this.pie12 = this.pie0, this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7";
|
|
1747
1882
|
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this["cScale" + e];
|
|
1748
|
-
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.
|
|
1883
|
+
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
|
|
1884
|
+
domainFontSize: this.cynefin?.domainFontSize || 16,
|
|
1885
|
+
itemFontSize: this.cynefin?.itemFontSize || 12,
|
|
1886
|
+
boundaryColor: this.cynefin?.boundaryColor || this.lineColor,
|
|
1887
|
+
boundaryWidth: this.cynefin?.boundaryWidth || 2,
|
|
1888
|
+
cliffColor: this.cynefin?.cliffColor || "#8B0000",
|
|
1889
|
+
cliffWidth: this.cynefin?.cliffWidth || 4,
|
|
1890
|
+
arrowColor: this.cynefin?.arrowColor || this.lineColor,
|
|
1891
|
+
arrowWidth: this.cynefin?.arrowWidth || 2,
|
|
1892
|
+
complexBg: this.cynefin?.complexBg || "#E8F5E9",
|
|
1893
|
+
complicatedBg: this.cynefin?.complicatedBg || "#E3F2FD",
|
|
1894
|
+
chaoticBg: this.cynefin?.chaoticBg || "#FBE9E7",
|
|
1895
|
+
clearBg: this.cynefin?.clearBg || "#FFF8E1",
|
|
1896
|
+
confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
|
|
1897
|
+
textColor: this.cynefin?.textColor || this.textColor,
|
|
1898
|
+
labelColor: this.cynefin?.labelColor || this.primaryTextColor
|
|
1899
|
+
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || I(this.primaryColor, {
|
|
1749
1900
|
r: 5,
|
|
1750
1901
|
g: 5,
|
|
1751
1902
|
b: 5
|
|
1752
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1903
|
+
}), this.quadrant3Fill = this.quadrant3Fill || I(this.primaryColor, {
|
|
1753
1904
|
r: 10,
|
|
1754
1905
|
g: 10,
|
|
1755
1906
|
b: 10
|
|
1756
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1907
|
+
}), this.quadrant4Fill = this.quadrant4Fill || I(this.primaryColor, {
|
|
1757
1908
|
r: 15,
|
|
1758
1909
|
g: 15,
|
|
1759
1910
|
b: 15
|
|
1760
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1911
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || I(this.primaryTextColor, {
|
|
1761
1912
|
r: -5,
|
|
1762
1913
|
g: -5,
|
|
1763
1914
|
b: -5
|
|
1764
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1915
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || I(this.primaryTextColor, {
|
|
1765
1916
|
r: -10,
|
|
1766
1917
|
g: -10,
|
|
1767
1918
|
b: -10
|
|
1768
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1919
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || I(this.primaryTextColor, {
|
|
1769
1920
|
r: -15,
|
|
1770
1921
|
g: -15,
|
|
1771
1922
|
b: -15
|
|
1772
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1923
|
+
}), this.quadrantPointFill = this.quadrantPointFill || N(this.quadrant1Fill) ? P(this.quadrant1Fill) : F(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
1773
1924
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1774
1925
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1775
1926
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
1927
|
+
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
1776
1928
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
1777
1929
|
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
1778
1930
|
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
@@ -1806,7 +1958,7 @@ var O = {
|
|
|
1806
1958
|
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
1807
1959
|
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
1808
1960
|
annotationFill: this.wardley?.annotationFill || this.background
|
|
1809
|
-
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 =
|
|
1961
|
+
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = F(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || I(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || I(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || I(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || I(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || I(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || L(this.git0), this.gitInv1 = this.gitInv1 || L(this.git1), this.gitInv2 = this.gitInv2 || L(this.git2), this.gitInv3 = this.gitInv3 || L(this.git3), this.gitInv4 = this.gitInv4 || L(this.git4), this.gitInv5 = this.gitInv5 || L(this.git5), this.gitInv6 = this.gitInv6 || L(this.git6), this.gitInv7 = this.gitInv7 || L(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
1810
1962
|
}
|
|
1811
1963
|
calculate(e) {
|
|
1812
1964
|
if (typeof e != "object") {
|
|
@@ -1820,89 +1972,90 @@ var O = {
|
|
|
1820
1972
|
this[t] = e[t];
|
|
1821
1973
|
});
|
|
1822
1974
|
}
|
|
1823
|
-
},
|
|
1824
|
-
let t = new
|
|
1975
|
+
}, Ct = /* @__PURE__ */ n((e) => {
|
|
1976
|
+
let t = new St();
|
|
1825
1977
|
return t.calculate(e), t;
|
|
1826
|
-
}, "getThemeVariables"),
|
|
1978
|
+
}, "getThemeVariables"), wt = class {
|
|
1827
1979
|
static {
|
|
1828
1980
|
n(this, "Theme");
|
|
1829
1981
|
}
|
|
1830
1982
|
constructor() {
|
|
1831
|
-
this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 2, this.primaryBorderColor =
|
|
1983
|
+
this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 2, this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#000000", this.stateBorder = "#000000", this.useGradient = !0, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));", this.tertiaryColor = "#ffffff", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal";
|
|
1832
1984
|
}
|
|
1833
1985
|
updateColors() {
|
|
1834
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor ||
|
|
1986
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || I(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || I(this.primaryColor, {
|
|
1835
1987
|
h: 180,
|
|
1836
1988
|
l: 5
|
|
1837
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
1838
|
-
let e = "#ECECFE", t = "#E9E9F1", n =
|
|
1989
|
+
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || L(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || L(this.tertiaryColor), this.lineColor = this.lineColor || L(this.background), this.arrowheadColor = this.arrowheadColor || L(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? F(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || F(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || L(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
|
|
1990
|
+
let e = "#ECECFE", t = "#E9E9F1", n = I(e, {
|
|
1839
1991
|
h: 180,
|
|
1840
1992
|
l: 5
|
|
1841
1993
|
});
|
|
1842
|
-
if (this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor ||
|
|
1994
|
+
if (this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || P(e, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || e, this.cScale1 = this.cScale1 || t, this.cScale2 = this.cScale2 || n, this.cScale3 = this.cScale3 || I(e, { h: 30 }), this.cScale4 = this.cScale4 || I(e, { h: 60 }), this.cScale5 = this.cScale5 || I(e, { h: 90 }), this.cScale6 = this.cScale6 || I(e, { h: 120 }), this.cScale7 = this.cScale7 || I(e, { h: 150 }), this.cScale8 = this.cScale8 || I(e, {
|
|
1843
1995
|
h: 210,
|
|
1844
1996
|
l: 150
|
|
1845
|
-
}), this.cScale9 = this.cScale9 ||
|
|
1846
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1847
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1848
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
1997
|
+
}), this.cScale9 = this.cScale9 || I(e, { h: 270 }), this.cScale10 = this.cScale10 || I(e, { h: 300 }), this.cScale11 = this.cScale11 || I(e, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = F(this["cScale" + e], 75);
|
|
1998
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = F(this["cScale" + e], 25);
|
|
1999
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || L(this["cScale" + e]);
|
|
2000
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10);
|
|
1849
2001
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1850
2002
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1851
2003
|
let r = this.darkMode ? -4 : -1;
|
|
1852
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
2004
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || I(this.mainBkg, {
|
|
1853
2005
|
h: 180,
|
|
1854
2006
|
s: -15,
|
|
1855
2007
|
l: r * (5 + e * 3)
|
|
1856
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
2008
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || I(this.mainBkg, {
|
|
1857
2009
|
h: 180,
|
|
1858
2010
|
s: -15,
|
|
1859
2011
|
l: r * (8 + e * 3)
|
|
1860
2012
|
});
|
|
1861
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 ||
|
|
2013
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || I(e, { h: 64 }), this.fillType3 = this.fillType3 || I(t, { h: 64 }), this.fillType4 = this.fillType4 || I(e, { h: -64 }), this.fillType5 = this.fillType5 || I(t, { h: -64 }), this.fillType6 = this.fillType6 || I(e, { h: 128 }), this.fillType7 = this.fillType7 || I(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || I(e, { l: -10 }), this.pie5 = this.pie5 || I(t, { l: -10 }), this.pie6 = this.pie6 || I(n, { l: -10 }), this.pie7 = this.pie7 || I(e, {
|
|
1862
2014
|
h: 60,
|
|
1863
2015
|
l: -10
|
|
1864
|
-
}), this.pie8 = this.pie8 ||
|
|
2016
|
+
}), this.pie8 = this.pie8 || I(e, {
|
|
1865
2017
|
h: -60,
|
|
1866
2018
|
l: -10
|
|
1867
|
-
}), this.pie9 = this.pie9 ||
|
|
2019
|
+
}), this.pie9 = this.pie9 || I(e, {
|
|
1868
2020
|
h: 120,
|
|
1869
2021
|
l: 0
|
|
1870
|
-
}), this.pie10 = this.pie10 ||
|
|
2022
|
+
}), this.pie10 = this.pie10 || I(e, {
|
|
1871
2023
|
h: 60,
|
|
1872
2024
|
l: -20
|
|
1873
|
-
}), this.pie11 = this.pie11 ||
|
|
2025
|
+
}), this.pie11 = this.pie11 || I(e, {
|
|
1874
2026
|
h: -60,
|
|
1875
2027
|
l: -20
|
|
1876
|
-
}), this.pie12 = this.pie12 ||
|
|
2028
|
+
}), this.pie12 = this.pie12 || I(e, {
|
|
1877
2029
|
h: 120,
|
|
1878
2030
|
l: -10
|
|
1879
|
-
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill ||
|
|
2031
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || I(e, {
|
|
1880
2032
|
r: 5,
|
|
1881
2033
|
g: 5,
|
|
1882
2034
|
b: 5
|
|
1883
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2035
|
+
}), this.quadrant3Fill = this.quadrant3Fill || I(e, {
|
|
1884
2036
|
r: 10,
|
|
1885
2037
|
g: 10,
|
|
1886
2038
|
b: 10
|
|
1887
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2039
|
+
}), this.quadrant4Fill = this.quadrant4Fill || I(e, {
|
|
1888
2040
|
r: 15,
|
|
1889
2041
|
g: 15,
|
|
1890
2042
|
b: 15
|
|
1891
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2043
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || I(this.primaryTextColor, {
|
|
1892
2044
|
r: -5,
|
|
1893
2045
|
g: -5,
|
|
1894
2046
|
b: -5
|
|
1895
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2047
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || I(this.primaryTextColor, {
|
|
1896
2048
|
r: -10,
|
|
1897
2049
|
g: -10,
|
|
1898
2050
|
b: -10
|
|
1899
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2051
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || I(this.primaryTextColor, {
|
|
1900
2052
|
r: -15,
|
|
1901
2053
|
g: -15,
|
|
1902
2054
|
b: -15
|
|
1903
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2055
|
+
}), this.quadrantPointFill = this.quadrantPointFill || N(this.quadrant1Fill) ? P(this.quadrant1Fill) : F(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
1904
2056
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1905
2057
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2058
|
+
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
1906
2059
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
1907
2060
|
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
1908
2061
|
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
@@ -1912,7 +2065,7 @@ var O = {
|
|
|
1912
2065
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1913
2066
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1914
2067
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
1915
|
-
}, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ?
|
|
2068
|
+
}, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? F(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || I(e, { h: -30 }), this.git4 = this.git4 || I(e, { h: -60 }), this.git5 = this.git5 || I(e, { h: -90 }), this.git6 = this.git6 || I(e, { h: 60 }), this.git7 = this.git7 || I(e, { h: 120 }), this.darkMode ? (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)) : (this.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)), this.gitInv0 = this.gitInv0 || L(this.git0), this.gitInv1 = this.gitInv1 || L(this.git1), this.gitInv2 = this.gitInv2 || L(this.git2), this.gitInv3 = this.gitInv3 || L(this.git3), this.gitInv4 = this.gitInv4 || L(this.git4), this.gitInv5 = this.gitInv5 || L(this.git5), this.gitInv6 = this.gitInv6 || L(this.git6), this.gitInv7 = this.gitInv7 || L(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
1916
2069
|
}
|
|
1917
2070
|
calculate(e) {
|
|
1918
2071
|
if (typeof e != "object") {
|
|
@@ -1926,84 +2079,85 @@ var O = {
|
|
|
1926
2079
|
this[t] = e[t];
|
|
1927
2080
|
});
|
|
1928
2081
|
}
|
|
1929
|
-
},
|
|
1930
|
-
let t = new
|
|
2082
|
+
}, Tt = /* @__PURE__ */ n((e) => {
|
|
2083
|
+
let t = new wt();
|
|
1931
2084
|
return t.calculate(e), t;
|
|
1932
|
-
}, "getThemeVariables"),
|
|
2085
|
+
}, "getThemeVariables"), Et = class {
|
|
1933
2086
|
static {
|
|
1934
2087
|
n(this, "Theme");
|
|
1935
2088
|
}
|
|
1936
2089
|
constructor() {
|
|
1937
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
2090
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = P(this.primaryColor, 16), this.tertiaryColor = I(this.primaryColor, { h: -160 }), this.primaryBorderColor = L(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = L(this.primaryColor), this.secondaryTextColor = L(this.secondaryColor), this.tertiaryTextColor = L(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = P(L("#323D47"), 10), this.border1 = "#ccc", this.border2 = M(255, 255, 255, .25), this.arrowheadColor = L(this.background), this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 1, this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.useGradient = !0, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "drop-shadow( 1px 2px 2px rgba(185,185,185,0.2))", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal";
|
|
1938
2091
|
}
|
|
1939
2092
|
updateColors() {
|
|
1940
|
-
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor ||
|
|
2093
|
+
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || I(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || I(this.primaryColor, {
|
|
1941
2094
|
h: 180,
|
|
1942
2095
|
l: 5
|
|
1943
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
2096
|
+
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || L(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || L(this.tertiaryColor), this.lineColor = this.lineColor || L(this.background), this.arrowheadColor = this.arrowheadColor || L(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? F(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || F(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || L(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || P(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || I(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || I(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || I(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || I(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || I(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || I(this.primaryColor, {
|
|
1944
2097
|
h: 210,
|
|
1945
2098
|
l: 150
|
|
1946
|
-
}), this.cScale9 = this.cScale9 ||
|
|
1947
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1948
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1949
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2099
|
+
}), this.cScale9 = this.cScale9 || I(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || I(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || I(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = F(this["cScale" + e], 75);
|
|
2100
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = F(this["cScale" + e], 25);
|
|
2101
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || L(this["cScale" + e]);
|
|
2102
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10);
|
|
1950
2103
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1951
2104
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1952
2105
|
let e = this.darkMode ? -4 : -1;
|
|
1953
|
-
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] ||
|
|
2106
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || I(this.mainBkg, {
|
|
1954
2107
|
h: 180,
|
|
1955
2108
|
s: -15,
|
|
1956
2109
|
l: e * (5 + t * 3)
|
|
1957
|
-
}), this["surfacePeer" + t] = this["surfacePeer" + t] ||
|
|
2110
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || I(this.mainBkg, {
|
|
1958
2111
|
h: 180,
|
|
1959
2112
|
s: -15,
|
|
1960
2113
|
l: e * (8 + t * 3)
|
|
1961
2114
|
});
|
|
1962
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 ||
|
|
2115
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || I(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || I(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || I(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || I(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || I(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || I(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || I(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || I(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || I(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || I(this.primaryColor, {
|
|
1963
2116
|
h: 60,
|
|
1964
2117
|
l: -10
|
|
1965
|
-
}), this.pie8 = this.pie8 ||
|
|
2118
|
+
}), this.pie8 = this.pie8 || I(this.primaryColor, {
|
|
1966
2119
|
h: -60,
|
|
1967
2120
|
l: -10
|
|
1968
|
-
}), this.pie9 = this.pie9 ||
|
|
2121
|
+
}), this.pie9 = this.pie9 || I(this.primaryColor, {
|
|
1969
2122
|
h: 120,
|
|
1970
2123
|
l: 0
|
|
1971
|
-
}), this.pie10 = this.pie10 ||
|
|
2124
|
+
}), this.pie10 = this.pie10 || I(this.primaryColor, {
|
|
1972
2125
|
h: 60,
|
|
1973
2126
|
l: -20
|
|
1974
|
-
}), this.pie11 = this.pie11 ||
|
|
2127
|
+
}), this.pie11 = this.pie11 || I(this.primaryColor, {
|
|
1975
2128
|
h: -60,
|
|
1976
2129
|
l: -20
|
|
1977
|
-
}), this.pie12 = this.pie12 ||
|
|
2130
|
+
}), this.pie12 = this.pie12 || I(this.primaryColor, {
|
|
1978
2131
|
h: 120,
|
|
1979
2132
|
l: -10
|
|
1980
|
-
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
2133
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || I(this.primaryColor, {
|
|
1981
2134
|
r: 5,
|
|
1982
2135
|
g: 5,
|
|
1983
2136
|
b: 5
|
|
1984
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2137
|
+
}), this.quadrant3Fill = this.quadrant3Fill || I(this.primaryColor, {
|
|
1985
2138
|
r: 10,
|
|
1986
2139
|
g: 10,
|
|
1987
2140
|
b: 10
|
|
1988
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2141
|
+
}), this.quadrant4Fill = this.quadrant4Fill || I(this.primaryColor, {
|
|
1989
2142
|
r: 15,
|
|
1990
2143
|
g: 15,
|
|
1991
2144
|
b: 15
|
|
1992
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2145
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || I(this.primaryTextColor, {
|
|
1993
2146
|
r: -5,
|
|
1994
2147
|
g: -5,
|
|
1995
2148
|
b: -5
|
|
1996
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2149
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || I(this.primaryTextColor, {
|
|
1997
2150
|
r: -10,
|
|
1998
2151
|
g: -10,
|
|
1999
2152
|
b: -10
|
|
2000
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2153
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || I(this.primaryTextColor, {
|
|
2001
2154
|
r: -15,
|
|
2002
2155
|
g: -15,
|
|
2003
2156
|
b: -15
|
|
2004
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2157
|
+
}), this.quadrantPointFill = this.quadrantPointFill || N(this.quadrant1Fill) ? P(this.quadrant1Fill) : F(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
2005
2158
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2006
2159
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2160
|
+
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
2007
2161
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
2008
2162
|
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
2009
2163
|
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
@@ -2013,7 +2167,7 @@ var O = {
|
|
|
2013
2167
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2014
2168
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2015
2169
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2016
|
-
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ?
|
|
2170
|
+
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? F(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || "#0b0000", this.git1 = this.git1 || "#4d1037", this.git2 = this.git2 || "#3f5258", this.git3 = this.git3 || "#4f2f1b", this.git4 = this.git4 || "#6e0a0a", this.git5 = this.git5 || "#3b0048", this.git6 = this.git6 || "#995a01", this.git7 = this.git7 || "#154706", this.gitDarkMode = !0, this.gitDarkMode ? (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)) : (this.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)), this.gitInv0 = this.gitInv0 || L(this.git0), this.gitInv1 = this.gitInv1 || L(this.git1), this.gitInv2 = this.gitInv2 || L(this.git2), this.gitInv3 = this.gitInv3 || L(this.git3), this.gitInv4 = this.gitInv4 || L(this.git4), this.gitInv5 = this.gitInv5 || L(this.git5), this.gitInv6 = this.gitInv6 || L(this.git6), this.gitInv7 = this.gitInv7 || L(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
2017
2171
|
}
|
|
2018
2172
|
calculate(e) {
|
|
2019
2173
|
if (typeof e != "object") {
|
|
@@ -2027,88 +2181,89 @@ var O = {
|
|
|
2027
2181
|
this[t] = e[t];
|
|
2028
2182
|
});
|
|
2029
2183
|
}
|
|
2030
|
-
},
|
|
2031
|
-
let t = new
|
|
2184
|
+
}, Dt = /* @__PURE__ */ n((e) => {
|
|
2185
|
+
let t = new Et();
|
|
2032
2186
|
return t.calculate(e), t;
|
|
2033
|
-
}, "getThemeVariables"),
|
|
2187
|
+
}, "getThemeVariables"), Ot = class {
|
|
2034
2188
|
static {
|
|
2035
2189
|
n(this, "Theme");
|
|
2036
2190
|
}
|
|
2037
2191
|
constructor() {
|
|
2038
|
-
this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor =
|
|
2192
|
+
this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor = H("#28253D", this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.clusterBkg = "#F9F9FB", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.filterColor = "#000000";
|
|
2039
2193
|
}
|
|
2040
2194
|
updateColors() {
|
|
2041
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor ||
|
|
2195
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || I(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || I(this.primaryColor, {
|
|
2042
2196
|
h: 180,
|
|
2043
2197
|
l: 5
|
|
2044
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
2045
|
-
let e = "#ECECFE", t = "#E9E9F1", n =
|
|
2198
|
+
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || L(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || L(this.tertiaryColor), this.lineColor = this.lineColor || L(this.background), this.arrowheadColor = this.arrowheadColor || L(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? F(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.noteFontWeight = 600, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || F(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || L(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
|
|
2199
|
+
let e = "#ECECFE", t = "#E9E9F1", n = I(e, {
|
|
2046
2200
|
h: 180,
|
|
2047
2201
|
l: 5
|
|
2048
2202
|
});
|
|
2049
|
-
this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor ||
|
|
2203
|
+
this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || P(e, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.compositeTitleBackground = "#F9F9FB", this.altBackground = "#F9F9FB", this.stateEdgeLabelBackground = "#FFFFFF", this.fontWeight = 600, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor;
|
|
2050
2204
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = this.mainBkg;
|
|
2051
|
-
if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
2052
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
2053
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2054
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2205
|
+
if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = F(this["cScale" + e], 75);
|
|
2206
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = F(this["cScale" + e], 25);
|
|
2207
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || L(this["cScale" + e]);
|
|
2208
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10);
|
|
2055
2209
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2056
2210
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
2057
2211
|
let r = this.darkMode ? -4 : -1;
|
|
2058
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
2212
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || I(this.mainBkg, {
|
|
2059
2213
|
h: 180,
|
|
2060
2214
|
s: -15,
|
|
2061
2215
|
l: r * (5 + e * 3)
|
|
2062
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
2216
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || I(this.mainBkg, {
|
|
2063
2217
|
h: 180,
|
|
2064
2218
|
s: -15,
|
|
2065
2219
|
l: r * (8 + e * 3)
|
|
2066
2220
|
});
|
|
2067
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 ||
|
|
2221
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || I(e, { h: 64 }), this.fillType3 = this.fillType3 || I(t, { h: 64 }), this.fillType4 = this.fillType4 || I(e, { h: -64 }), this.fillType5 = this.fillType5 || I(t, { h: -64 }), this.fillType6 = this.fillType6 || I(e, { h: 128 }), this.fillType7 = this.fillType7 || I(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || I(e, { l: -10 }), this.pie5 = this.pie5 || I(t, { l: -10 }), this.pie6 = this.pie6 || I(n, { l: -10 }), this.pie7 = this.pie7 || I(e, {
|
|
2068
2222
|
h: 60,
|
|
2069
2223
|
l: -10
|
|
2070
|
-
}), this.pie8 = this.pie8 ||
|
|
2224
|
+
}), this.pie8 = this.pie8 || I(e, {
|
|
2071
2225
|
h: -60,
|
|
2072
2226
|
l: -10
|
|
2073
|
-
}), this.pie9 = this.pie9 ||
|
|
2227
|
+
}), this.pie9 = this.pie9 || I(e, {
|
|
2074
2228
|
h: 120,
|
|
2075
2229
|
l: 0
|
|
2076
|
-
}), this.pie10 = this.pie10 ||
|
|
2230
|
+
}), this.pie10 = this.pie10 || I(e, {
|
|
2077
2231
|
h: 60,
|
|
2078
2232
|
l: -20
|
|
2079
|
-
}), this.pie11 = this.pie11 ||
|
|
2233
|
+
}), this.pie11 = this.pie11 || I(e, {
|
|
2080
2234
|
h: -60,
|
|
2081
2235
|
l: -20
|
|
2082
|
-
}), this.pie12 = this.pie12 ||
|
|
2236
|
+
}), this.pie12 = this.pie12 || I(e, {
|
|
2083
2237
|
h: 120,
|
|
2084
2238
|
l: -10
|
|
2085
|
-
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill ||
|
|
2239
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || I(e, {
|
|
2086
2240
|
r: 5,
|
|
2087
2241
|
g: 5,
|
|
2088
2242
|
b: 5
|
|
2089
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2243
|
+
}), this.quadrant3Fill = this.quadrant3Fill || I(e, {
|
|
2090
2244
|
r: 10,
|
|
2091
2245
|
g: 10,
|
|
2092
2246
|
b: 10
|
|
2093
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2247
|
+
}), this.quadrant4Fill = this.quadrant4Fill || I(e, {
|
|
2094
2248
|
r: 15,
|
|
2095
2249
|
g: 15,
|
|
2096
2250
|
b: 15
|
|
2097
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2251
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || I(this.primaryTextColor, {
|
|
2098
2252
|
r: -5,
|
|
2099
2253
|
g: -5,
|
|
2100
2254
|
b: -5
|
|
2101
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2255
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || I(this.primaryTextColor, {
|
|
2102
2256
|
r: -10,
|
|
2103
2257
|
g: -10,
|
|
2104
2258
|
b: -10
|
|
2105
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2259
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || I(this.primaryTextColor, {
|
|
2106
2260
|
r: -15,
|
|
2107
2261
|
g: -15,
|
|
2108
2262
|
b: -15
|
|
2109
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2263
|
+
}), this.quadrantPointFill = this.quadrantPointFill || N(this.quadrant1Fill) ? P(this.quadrant1Fill) : F(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
2110
2264
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2111
2265
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2266
|
+
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
2112
2267
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
2113
2268
|
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
2114
2269
|
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
@@ -2118,7 +2273,7 @@ var O = {
|
|
|
2118
2273
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2119
2274
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2120
2275
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2121
|
-
}, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ?
|
|
2276
|
+
}, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? F(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#FFFFFF", this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || I(e, { h: -30 }), this.git4 = this.git4 || I(e, { h: -60 }), this.git5 = this.git5 || I(e, { h: -90 }), this.git6 = this.git6 || I(e, { h: 60 }), this.git7 = this.git7 || I(e, { h: 120 }), this.darkMode ? (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)) : (this.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)), this.gitInv0 = this.gitInv0 || L(this.git0), this.gitInv1 = this.gitInv1 || L(this.git1), this.gitInv2 = this.gitInv2 || L(this.git2), this.gitInv3 = this.gitInv3 || L(this.git3), this.gitInv4 = this.gitInv4 || L(this.git4), this.gitInv5 = this.gitInv5 || L(this.git5), this.gitInv6 = this.gitInv6 || L(this.git6), this.gitInv7 = this.gitInv7 || L(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
2122
2277
|
}
|
|
2123
2278
|
calculate(e) {
|
|
2124
2279
|
if (typeof e != "object") {
|
|
@@ -2132,84 +2287,85 @@ var O = {
|
|
|
2132
2287
|
this[t] = e[t];
|
|
2133
2288
|
});
|
|
2134
2289
|
}
|
|
2135
|
-
},
|
|
2136
|
-
let t = new
|
|
2290
|
+
}, kt = /* @__PURE__ */ n((e) => {
|
|
2291
|
+
let t = new Ot();
|
|
2137
2292
|
return t.calculate(e), t;
|
|
2138
|
-
}, "getThemeVariables"),
|
|
2293
|
+
}, "getThemeVariables"), At = class {
|
|
2139
2294
|
static {
|
|
2140
2295
|
n(this, "Theme");
|
|
2141
2296
|
}
|
|
2142
2297
|
constructor() {
|
|
2143
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
2298
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = P(this.primaryColor, 16), this.tertiaryColor = I(this.primaryColor, { h: -160 }), this.primaryBorderColor = L(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = L(this.primaryColor), this.secondaryTextColor = L(this.secondaryColor), this.tertiaryTextColor = L(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = P(L("#323D47"), 10), this.border1 = "#ccc", this.border2 = M(255, 255, 255, .25), this.arrowheadColor = L(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.filterColor = "#FFFFFF";
|
|
2144
2299
|
}
|
|
2145
2300
|
updateColors() {
|
|
2146
|
-
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor ||
|
|
2301
|
+
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || I(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || I(this.primaryColor, {
|
|
2147
2302
|
h: 180,
|
|
2148
2303
|
l: 5
|
|
2149
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
2304
|
+
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || L(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || L(this.tertiaryColor), this.lineColor = this.lineColor || L(this.background), this.arrowheadColor = this.arrowheadColor || L(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? F(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || F(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || L(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || P(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.compositeBackground = "#16141F", this.altBackground = "#16141F", this.compositeTitleBackground = "#16141F", this.stateEdgeLabelBackground = "#16141F", this.fontWeight = 600, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || I(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || I(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || I(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || I(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || I(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || I(this.primaryColor, {
|
|
2150
2305
|
h: 210,
|
|
2151
2306
|
l: 150
|
|
2152
|
-
}), this.cScale9 = this.cScale9 ||
|
|
2153
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
2154
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2155
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2307
|
+
}), this.cScale9 = this.cScale9 || I(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || I(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || I(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = F(this["cScale" + e], 75);
|
|
2308
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = F(this["cScale" + e], 25);
|
|
2309
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || L(this["cScale" + e]);
|
|
2310
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10);
|
|
2156
2311
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2157
2312
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
2158
2313
|
let e = this.darkMode ? -4 : -1;
|
|
2159
|
-
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] ||
|
|
2314
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || I(this.mainBkg, {
|
|
2160
2315
|
h: 180,
|
|
2161
2316
|
s: -15,
|
|
2162
2317
|
l: e * (5 + t * 3)
|
|
2163
|
-
}), this["surfacePeer" + t] = this["surfacePeer" + t] ||
|
|
2318
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || I(this.mainBkg, {
|
|
2164
2319
|
h: 180,
|
|
2165
2320
|
s: -15,
|
|
2166
2321
|
l: e * (8 + t * 3)
|
|
2167
2322
|
});
|
|
2168
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 ||
|
|
2323
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || I(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || I(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || I(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || I(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || I(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || I(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || I(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || I(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || I(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || I(this.primaryColor, {
|
|
2169
2324
|
h: 60,
|
|
2170
2325
|
l: -10
|
|
2171
|
-
}), this.pie8 = this.pie8 ||
|
|
2326
|
+
}), this.pie8 = this.pie8 || I(this.primaryColor, {
|
|
2172
2327
|
h: -60,
|
|
2173
2328
|
l: -10
|
|
2174
|
-
}), this.pie9 = this.pie9 ||
|
|
2329
|
+
}), this.pie9 = this.pie9 || I(this.primaryColor, {
|
|
2175
2330
|
h: 120,
|
|
2176
2331
|
l: 0
|
|
2177
|
-
}), this.pie10 = this.pie10 ||
|
|
2332
|
+
}), this.pie10 = this.pie10 || I(this.primaryColor, {
|
|
2178
2333
|
h: 60,
|
|
2179
2334
|
l: -20
|
|
2180
|
-
}), this.pie11 = this.pie11 ||
|
|
2335
|
+
}), this.pie11 = this.pie11 || I(this.primaryColor, {
|
|
2181
2336
|
h: -60,
|
|
2182
2337
|
l: -20
|
|
2183
|
-
}), this.pie12 = this.pie12 ||
|
|
2338
|
+
}), this.pie12 = this.pie12 || I(this.primaryColor, {
|
|
2184
2339
|
h: 120,
|
|
2185
2340
|
l: -10
|
|
2186
|
-
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
2341
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || I(this.primaryColor, {
|
|
2187
2342
|
r: 5,
|
|
2188
2343
|
g: 5,
|
|
2189
2344
|
b: 5
|
|
2190
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2345
|
+
}), this.quadrant3Fill = this.quadrant3Fill || I(this.primaryColor, {
|
|
2191
2346
|
r: 10,
|
|
2192
2347
|
g: 10,
|
|
2193
2348
|
b: 10
|
|
2194
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2349
|
+
}), this.quadrant4Fill = this.quadrant4Fill || I(this.primaryColor, {
|
|
2195
2350
|
r: 15,
|
|
2196
2351
|
g: 15,
|
|
2197
2352
|
b: 15
|
|
2198
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2353
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || I(this.primaryTextColor, {
|
|
2199
2354
|
r: -5,
|
|
2200
2355
|
g: -5,
|
|
2201
2356
|
b: -5
|
|
2202
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2357
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || I(this.primaryTextColor, {
|
|
2203
2358
|
r: -10,
|
|
2204
2359
|
g: -10,
|
|
2205
2360
|
b: -10
|
|
2206
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2361
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || I(this.primaryTextColor, {
|
|
2207
2362
|
r: -15,
|
|
2208
2363
|
g: -15,
|
|
2209
2364
|
b: -15
|
|
2210
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2365
|
+
}), this.quadrantPointFill = this.quadrantPointFill || N(this.quadrant1Fill) ? P(this.quadrant1Fill) : F(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
2211
2366
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2212
2367
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2368
|
+
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
2213
2369
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
2214
2370
|
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
2215
2371
|
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
@@ -2219,7 +2375,7 @@ var O = {
|
|
|
2219
2375
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2220
2376
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2221
2377
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2222
|
-
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ?
|
|
2378
|
+
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? F(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#16141F", this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || I(this.primaryColor, { h: -30 }), this.git4 = this.git4 || I(this.primaryColor, { h: -60 }), this.git5 = this.git5 || I(this.primaryColor, { h: -90 }), this.git6 = this.git6 || I(this.primaryColor, { h: 60 }), this.git7 = this.git7 || I(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)) : (this.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)), this.gitInv0 = this.gitInv0 || L(this.git0), this.gitInv1 = this.gitInv1 || L(this.git1), this.gitInv2 = this.gitInv2 || L(this.git2), this.gitInv3 = this.gitInv3 || L(this.git3), this.gitInv4 = this.gitInv4 || L(this.git4), this.gitInv5 = this.gitInv5 || L(this.git5), this.gitInv6 = this.gitInv6 || L(this.git6), this.gitInv7 = this.gitInv7 || L(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
2223
2379
|
}
|
|
2224
2380
|
calculate(e) {
|
|
2225
2381
|
if (typeof e != "object") {
|
|
@@ -2233,15 +2389,15 @@ var O = {
|
|
|
2233
2389
|
this[t] = e[t];
|
|
2234
2390
|
});
|
|
2235
2391
|
}
|
|
2236
|
-
},
|
|
2237
|
-
let t = new
|
|
2392
|
+
}, jt = /* @__PURE__ */ n((e) => {
|
|
2393
|
+
let t = new At();
|
|
2238
2394
|
return t.calculate(e), t;
|
|
2239
|
-
}, "getThemeVariables"),
|
|
2395
|
+
}, "getThemeVariables"), Mt = class {
|
|
2240
2396
|
static {
|
|
2241
2397
|
n(this, "Theme");
|
|
2242
2398
|
}
|
|
2243
2399
|
constructor() {
|
|
2244
|
-
this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor =
|
|
2400
|
+
this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
|
|
2245
2401
|
"#E879F9",
|
|
2246
2402
|
"#2DD4BF",
|
|
2247
2403
|
"#FB923C",
|
|
@@ -2270,74 +2426,75 @@ var O = {
|
|
|
2270
2426
|
], this.filterColor = "#000000";
|
|
2271
2427
|
}
|
|
2272
2428
|
updateColors() {
|
|
2273
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor ||
|
|
2429
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || I(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || I(this.primaryColor, {
|
|
2274
2430
|
h: 180,
|
|
2275
2431
|
l: 5
|
|
2276
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
2277
|
-
let e = "#ECECFE", t = "#E9E9F1", n =
|
|
2432
|
+
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || L(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || L(this.tertiaryColor), this.lineColor = this.lineColor || L(this.background), this.arrowheadColor = this.arrowheadColor || L(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? F(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || F(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || L(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor;
|
|
2433
|
+
let e = "#ECECFE", t = "#E9E9F1", n = I(e, {
|
|
2278
2434
|
h: 180,
|
|
2279
2435
|
l: 5
|
|
2280
2436
|
});
|
|
2281
|
-
this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor ||
|
|
2282
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2283
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2437
|
+
this.sectionBkgColor = this.sectionBkgColor || n, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || t, this.sectionBkgColor2 = this.sectionBkgColor2 || e, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || e, this.activeTaskBorderColor = this.activeTaskBorderColor || e, this.activeTaskBkgColor = this.activeTaskBkgColor || P(e, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
|
|
2438
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || L(this["cScale" + e]);
|
|
2439
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10);
|
|
2284
2440
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2285
2441
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
2286
2442
|
let r = this.darkMode ? -4 : -1;
|
|
2287
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
2443
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || I(this.mainBkg, {
|
|
2288
2444
|
h: 180,
|
|
2289
2445
|
s: -15,
|
|
2290
2446
|
l: r * (5 + e * 3)
|
|
2291
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
2447
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || I(this.mainBkg, {
|
|
2292
2448
|
h: 180,
|
|
2293
2449
|
s: -15,
|
|
2294
2450
|
l: r * (8 + e * 3)
|
|
2295
2451
|
});
|
|
2296
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 ||
|
|
2452
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || I(e, { h: 64 }), this.fillType3 = this.fillType3 || I(t, { h: 64 }), this.fillType4 = this.fillType4 || I(e, { h: -64 }), this.fillType5 = this.fillType5 || I(t, { h: -64 }), this.fillType6 = this.fillType6 || I(e, { h: 128 }), this.fillType7 = this.fillType7 || I(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || I(e, { l: -10 }), this.pie5 = this.pie5 || I(t, { l: -10 }), this.pie6 = this.pie6 || I(n, { l: -10 }), this.pie7 = this.pie7 || I(e, {
|
|
2297
2453
|
h: 60,
|
|
2298
2454
|
l: -10
|
|
2299
|
-
}), this.pie8 = this.pie8 ||
|
|
2455
|
+
}), this.pie8 = this.pie8 || I(e, {
|
|
2300
2456
|
h: -60,
|
|
2301
2457
|
l: -10
|
|
2302
|
-
}), this.pie9 = this.pie9 ||
|
|
2458
|
+
}), this.pie9 = this.pie9 || I(e, {
|
|
2303
2459
|
h: 120,
|
|
2304
2460
|
l: 0
|
|
2305
|
-
}), this.pie10 = this.pie10 ||
|
|
2461
|
+
}), this.pie10 = this.pie10 || I(e, {
|
|
2306
2462
|
h: 60,
|
|
2307
2463
|
l: -20
|
|
2308
|
-
}), this.pie11 = this.pie11 ||
|
|
2464
|
+
}), this.pie11 = this.pie11 || I(e, {
|
|
2309
2465
|
h: -60,
|
|
2310
2466
|
l: -20
|
|
2311
|
-
}), this.pie12 = this.pie12 ||
|
|
2467
|
+
}), this.pie12 = this.pie12 || I(e, {
|
|
2312
2468
|
h: 120,
|
|
2313
2469
|
l: -10
|
|
2314
|
-
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill ||
|
|
2470
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || I(e, {
|
|
2315
2471
|
r: 5,
|
|
2316
2472
|
g: 5,
|
|
2317
2473
|
b: 5
|
|
2318
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2474
|
+
}), this.quadrant3Fill = this.quadrant3Fill || I(e, {
|
|
2319
2475
|
r: 10,
|
|
2320
2476
|
g: 10,
|
|
2321
2477
|
b: 10
|
|
2322
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2478
|
+
}), this.quadrant4Fill = this.quadrant4Fill || I(e, {
|
|
2323
2479
|
r: 15,
|
|
2324
2480
|
g: 15,
|
|
2325
2481
|
b: 15
|
|
2326
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2482
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || I(this.primaryTextColor, {
|
|
2327
2483
|
r: -5,
|
|
2328
2484
|
g: -5,
|
|
2329
2485
|
b: -5
|
|
2330
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2486
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || I(this.primaryTextColor, {
|
|
2331
2487
|
r: -10,
|
|
2332
2488
|
g: -10,
|
|
2333
2489
|
b: -10
|
|
2334
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2490
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || I(this.primaryTextColor, {
|
|
2335
2491
|
r: -15,
|
|
2336
2492
|
g: -15,
|
|
2337
2493
|
b: -15
|
|
2338
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2494
|
+
}), this.quadrantPointFill = this.quadrantPointFill || N(this.quadrant1Fill) ? P(this.quadrant1Fill) : F(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
2339
2495
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2340
2496
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2497
|
+
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
2341
2498
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
2342
2499
|
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
2343
2500
|
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
@@ -2347,7 +2504,7 @@ var O = {
|
|
|
2347
2504
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2348
2505
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2349
2506
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2350
|
-
}, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ?
|
|
2507
|
+
}, this.requirementBackground = this.requirementBackground || e, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? F(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || e, this.git1 = this.git1 || t, this.git2 = this.git2 || n, this.git3 = this.git3 || I(e, { h: -30 }), this.git4 = this.git4 || I(e, { h: -60 }), this.git5 = this.git5 || I(e, { h: -90 }), this.git6 = this.git6 || I(e, { h: 60 }), this.git7 = this.git7 || I(e, { h: 120 }), this.darkMode ? (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)) : (this.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)), this.gitInv0 = this.gitInv0 || L(this.git0), this.gitInv1 = this.gitInv1 || L(this.git1), this.gitInv2 = this.gitInv2 || L(this.git2), this.gitInv3 = this.gitInv3 || L(this.git3), this.gitInv4 = this.gitInv4 || L(this.git4), this.gitInv5 = this.gitInv5 || L(this.git5), this.gitInv6 = this.gitInv6 || L(this.git6), this.gitInv7 = this.gitInv7 || L(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.fontWeight = 600, this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
2351
2508
|
}
|
|
2352
2509
|
calculate(e) {
|
|
2353
2510
|
if (typeof e != "object") {
|
|
@@ -2361,15 +2518,15 @@ var O = {
|
|
|
2361
2518
|
this[t] = e[t];
|
|
2362
2519
|
});
|
|
2363
2520
|
}
|
|
2364
|
-
},
|
|
2365
|
-
let t = new
|
|
2521
|
+
}, Nt = /* @__PURE__ */ n((e) => {
|
|
2522
|
+
let t = new Mt();
|
|
2366
2523
|
return t.calculate(e), t;
|
|
2367
|
-
}, "getThemeVariables"),
|
|
2524
|
+
}, "getThemeVariables"), Pt = class {
|
|
2368
2525
|
static {
|
|
2369
2526
|
n(this, "Theme");
|
|
2370
2527
|
}
|
|
2371
2528
|
constructor() {
|
|
2372
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
2529
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = P(this.primaryColor, 16), this.tertiaryColor = I(this.primaryColor, { h: -160 }), this.primaryBorderColor = L(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = L(this.primaryColor), this.secondaryTextColor = L(this.secondaryColor), this.tertiaryTextColor = L(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = P(L("#323D47"), 10), this.border1 = "#ccc", this.border2 = M(255, 255, 255, .25), this.arrowheadColor = L(this.background), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.labelBackground = "#111113", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.noteBkgColor = this.noteBkgColor ?? "#FEF9C3", this.noteTextColor = this.noteTextColor ?? "#28253D", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#FFFFFF", this.stateBorder = "#FFFFFF", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.clusterBkg = "#1E1A2E", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
|
|
2373
2530
|
"#E879F9",
|
|
2374
2531
|
"#2DD4BF",
|
|
2375
2532
|
"#FB923C",
|
|
@@ -2385,69 +2542,70 @@ var O = {
|
|
|
2385
2542
|
], this.bkgColorArray = [], this.filterColor = "#FFFFFF";
|
|
2386
2543
|
}
|
|
2387
2544
|
updateColors() {
|
|
2388
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor ||
|
|
2545
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || I(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || I(this.primaryColor, {
|
|
2389
2546
|
h: 180,
|
|
2390
2547
|
l: 5
|
|
2391
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
2392
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2393
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2548
|
+
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || L(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || L(this.tertiaryColor), this.lineColor = this.lineColor || L(this.background), this.arrowheadColor = this.arrowheadColor || L(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.border1, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? F(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = "#FFFFFF", this.signalColor = "#FFFFFF", this.labelBoxBorderColor = "#BDBCCC", this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || F(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || L(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.rootLabelColor = "#FFFFFF", this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || P(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.taskTextColor = this.taskTextColor || this.textColor, this.vertLineColor = this.vertLineColor || this.primaryBorderColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || "#f4a8ff", this.cScale1 = this.cScale1 || "#46ecd5", this.cScale2 = this.cScale2 || "#ffb86a", this.cScale3 = this.cScale3 || "#dab2ff", this.cScale4 = this.cScale4 || "#7bf1a8", this.cScale5 = this.cScale5 || "#c4b4ff", this.cScale6 = this.cScale6 || "#ffa2a2", this.cScale7 = this.cScale7 || "#ffdf20", this.cScale8 = this.cScale8 || "#a3b3ff", this.cScale9 = this.cScale9 || "#bbf451", this.cScale10 = this.cScale10 || "#74d4ff", this.cScale11 = this.cScale11 || "#ffa1ad";
|
|
2549
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || L(this["cScale" + e]);
|
|
2550
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || P(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || F(this["cScale" + e], 10);
|
|
2394
2551
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2395
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] =
|
|
2552
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = F(this["cScale" + e], 75);
|
|
2396
2553
|
let e = this.darkMode ? -4 : -1;
|
|
2397
|
-
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] ||
|
|
2554
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || I(this.mainBkg, {
|
|
2398
2555
|
h: 180,
|
|
2399
2556
|
s: -15,
|
|
2400
2557
|
l: e * (5 + t * 3)
|
|
2401
|
-
}), this["surfacePeer" + t] = this["surfacePeer" + t] ||
|
|
2558
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || I(this.mainBkg, {
|
|
2402
2559
|
h: 180,
|
|
2403
2560
|
s: -15,
|
|
2404
2561
|
l: e * (8 + t * 3)
|
|
2405
2562
|
});
|
|
2406
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 ||
|
|
2563
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || I(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || I(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || I(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || I(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || I(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || I(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || I(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || I(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || I(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || I(this.primaryColor, {
|
|
2407
2564
|
h: 60,
|
|
2408
2565
|
l: -10
|
|
2409
|
-
}), this.pie8 = this.pie8 ||
|
|
2566
|
+
}), this.pie8 = this.pie8 || I(this.primaryColor, {
|
|
2410
2567
|
h: -60,
|
|
2411
2568
|
l: -10
|
|
2412
|
-
}), this.pie9 = this.pie9 ||
|
|
2569
|
+
}), this.pie9 = this.pie9 || I(this.primaryColor, {
|
|
2413
2570
|
h: 120,
|
|
2414
2571
|
l: 0
|
|
2415
|
-
}), this.pie10 = this.pie10 ||
|
|
2572
|
+
}), this.pie10 = this.pie10 || I(this.primaryColor, {
|
|
2416
2573
|
h: 60,
|
|
2417
2574
|
l: -20
|
|
2418
|
-
}), this.pie11 = this.pie11 ||
|
|
2575
|
+
}), this.pie11 = this.pie11 || I(this.primaryColor, {
|
|
2419
2576
|
h: -60,
|
|
2420
2577
|
l: -20
|
|
2421
|
-
}), this.pie12 = this.pie12 ||
|
|
2578
|
+
}), this.pie12 = this.pie12 || I(this.primaryColor, {
|
|
2422
2579
|
h: 120,
|
|
2423
2580
|
l: -10
|
|
2424
|
-
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
2581
|
+
}), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || I(this.primaryColor, {
|
|
2425
2582
|
r: 5,
|
|
2426
2583
|
g: 5,
|
|
2427
2584
|
b: 5
|
|
2428
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2585
|
+
}), this.quadrant3Fill = this.quadrant3Fill || I(this.primaryColor, {
|
|
2429
2586
|
r: 10,
|
|
2430
2587
|
g: 10,
|
|
2431
2588
|
b: 10
|
|
2432
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2589
|
+
}), this.quadrant4Fill = this.quadrant4Fill || I(this.primaryColor, {
|
|
2433
2590
|
r: 15,
|
|
2434
2591
|
g: 15,
|
|
2435
2592
|
b: 15
|
|
2436
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2593
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || I(this.primaryTextColor, {
|
|
2437
2594
|
r: -5,
|
|
2438
2595
|
g: -5,
|
|
2439
2596
|
b: -5
|
|
2440
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2597
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || I(this.primaryTextColor, {
|
|
2441
2598
|
r: -10,
|
|
2442
2599
|
g: -10,
|
|
2443
2600
|
b: -10
|
|
2444
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2601
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || I(this.primaryTextColor, {
|
|
2445
2602
|
r: -15,
|
|
2446
2603
|
g: -15,
|
|
2447
2604
|
b: -15
|
|
2448
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2605
|
+
}), this.quadrantPointFill = this.quadrantPointFill || N(this.quadrant1Fill) ? P(this.quadrant1Fill) : F(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
|
|
2449
2606
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2450
2607
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2608
|
+
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
2451
2609
|
xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
|
|
2452
2610
|
xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
|
|
2453
2611
|
xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
|
|
@@ -2457,7 +2615,7 @@ var O = {
|
|
|
2457
2615
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2458
2616
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2459
2617
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2460
|
-
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ?
|
|
2618
|
+
}, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? F(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || I(this.primaryColor, { h: -30 }), this.git4 = this.git4 || I(this.primaryColor, { h: -60 }), this.git5 = this.git5 || I(this.primaryColor, { h: -90 }), this.git6 = this.git6 || I(this.primaryColor, { h: 60 }), this.git7 = this.git7 || I(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = P(this.git0, 25), this.git1 = P(this.git1, 25), this.git2 = P(this.git2, 25), this.git3 = P(this.git3, 25), this.git4 = P(this.git4, 25), this.git5 = P(this.git5, 25), this.git6 = P(this.git6, 25), this.git7 = P(this.git7, 25)) : (this.git0 = F(this.git0, 25), this.git1 = F(this.git1, 25), this.git2 = F(this.git2, 25), this.git3 = F(this.git3, 25), this.git4 = F(this.git4, 25), this.git5 = F(this.git5, 25), this.git6 = F(this.git6, 25), this.git7 = F(this.git7, 25)), this.gitInv0 = this.gitInv0 || L(this.git0), this.gitInv1 = this.gitInv1 || L(this.git1), this.gitInv2 = this.gitInv2 || L(this.git2), this.gitInv3 = this.gitInv3 || L(this.git3), this.gitInv4 = this.gitInv4 || L(this.git4), this.gitInv5 = this.gitInv5 || L(this.git5), this.gitInv6 = this.gitInv6 || L(this.git6), this.gitInv7 = this.gitInv7 || L(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.fontWeight = 600, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
2461
2619
|
}
|
|
2462
2620
|
calculate(e) {
|
|
2463
2621
|
if (typeof e != "object") {
|
|
@@ -2471,22 +2629,22 @@ var O = {
|
|
|
2471
2629
|
this[t] = e[t];
|
|
2472
2630
|
});
|
|
2473
2631
|
}
|
|
2474
|
-
},
|
|
2475
|
-
base: { getThemeVariables:
|
|
2476
|
-
dark: { getThemeVariables:
|
|
2477
|
-
default: { getThemeVariables:
|
|
2478
|
-
forest: { getThemeVariables:
|
|
2479
|
-
neutral: { getThemeVariables:
|
|
2480
|
-
neo: { getThemeVariables:
|
|
2481
|
-
"neo-dark": { getThemeVariables:
|
|
2482
|
-
redux: { getThemeVariables:
|
|
2483
|
-
"redux-dark": { getThemeVariables:
|
|
2484
|
-
"redux-color": { getThemeVariables:
|
|
2632
|
+
}, W = {
|
|
2633
|
+
base: { getThemeVariables: gt },
|
|
2634
|
+
dark: { getThemeVariables: vt },
|
|
2635
|
+
default: { getThemeVariables: bt },
|
|
2636
|
+
forest: { getThemeVariables: U },
|
|
2637
|
+
neutral: { getThemeVariables: Ct },
|
|
2638
|
+
neo: { getThemeVariables: Tt },
|
|
2639
|
+
"neo-dark": { getThemeVariables: Dt },
|
|
2640
|
+
redux: { getThemeVariables: kt },
|
|
2641
|
+
"redux-dark": { getThemeVariables: jt },
|
|
2642
|
+
"redux-color": { getThemeVariables: Nt },
|
|
2485
2643
|
"redux-dark-color": { getThemeVariables: /* @__PURE__ */ n((e) => {
|
|
2486
|
-
let t = new
|
|
2644
|
+
let t = new Pt();
|
|
2487
2645
|
return t.calculate(e), t;
|
|
2488
2646
|
}, "getThemeVariables") }
|
|
2489
|
-
},
|
|
2647
|
+
}, G = {
|
|
2490
2648
|
flowchart: {
|
|
2491
2649
|
useMaxWidth: !0,
|
|
2492
2650
|
titleTopMargin: 25,
|
|
@@ -2504,6 +2662,13 @@ var O = {
|
|
|
2504
2662
|
wrappingWidth: 200,
|
|
2505
2663
|
inheritDir: !1
|
|
2506
2664
|
},
|
|
2665
|
+
swimlane: {
|
|
2666
|
+
useMaxWidth: !0,
|
|
2667
|
+
lineHops: "arc",
|
|
2668
|
+
ignoreCrossLaneEdges: !0,
|
|
2669
|
+
optimizeRanksByCrossings: !0,
|
|
2670
|
+
automaticLaneOrdering: !1
|
|
2671
|
+
},
|
|
2507
2672
|
sequence: {
|
|
2508
2673
|
useMaxWidth: !0,
|
|
2509
2674
|
hideUnusedParticipants: !1,
|
|
@@ -2645,7 +2810,10 @@ var O = {
|
|
|
2645
2810
|
},
|
|
2646
2811
|
pie: {
|
|
2647
2812
|
useMaxWidth: !0,
|
|
2648
|
-
textPosition: .75
|
|
2813
|
+
textPosition: .75,
|
|
2814
|
+
donutHole: 0,
|
|
2815
|
+
legendPosition: "right",
|
|
2816
|
+
highlightSlice: ""
|
|
2649
2817
|
},
|
|
2650
2818
|
quadrantChart: {
|
|
2651
2819
|
useMaxWidth: !0,
|
|
@@ -2677,6 +2845,9 @@ var O = {
|
|
|
2677
2845
|
showDataLabel: !1,
|
|
2678
2846
|
showDataLabelOutsideBar: !1,
|
|
2679
2847
|
showTitle: !0,
|
|
2848
|
+
showLegend: !0,
|
|
2849
|
+
legendFontSize: 14,
|
|
2850
|
+
legendPadding: 10,
|
|
2680
2851
|
xAxis: {
|
|
2681
2852
|
$ref: "#/$defs/XYChartAxisConfig",
|
|
2682
2853
|
showLabel: !0,
|
|
@@ -2689,7 +2860,8 @@ var O = {
|
|
|
2689
2860
|
tickLength: 5,
|
|
2690
2861
|
tickWidth: 2,
|
|
2691
2862
|
showAxisLine: !0,
|
|
2692
|
-
axisLineWidth: 2
|
|
2863
|
+
axisLineWidth: 2,
|
|
2864
|
+
labelRotation: 0
|
|
2693
2865
|
},
|
|
2694
2866
|
yAxis: {
|
|
2695
2867
|
$ref: "#/$defs/XYChartAxisConfig",
|
|
@@ -2703,7 +2875,8 @@ var O = {
|
|
|
2703
2875
|
tickLength: 5,
|
|
2704
2876
|
tickWidth: 2,
|
|
2705
2877
|
showAxisLine: !0,
|
|
2706
|
-
axisLineWidth: 2
|
|
2878
|
+
axisLineWidth: 2,
|
|
2879
|
+
labelRotation: 0
|
|
2707
2880
|
},
|
|
2708
2881
|
chartOrientation: "vertical",
|
|
2709
2882
|
plotReservedSpacePercent: 50
|
|
@@ -2945,7 +3118,11 @@ var O = {
|
|
|
2945
3118
|
rowIndent: 10,
|
|
2946
3119
|
paddingX: 5,
|
|
2947
3120
|
paddingY: 5,
|
|
2948
|
-
lineThickness: 1
|
|
3121
|
+
lineThickness: 1,
|
|
3122
|
+
showIcons: !1,
|
|
3123
|
+
defaultIconPack: "",
|
|
3124
|
+
filenameIcons: {},
|
|
3125
|
+
extensionIcons: {}
|
|
2949
3126
|
},
|
|
2950
3127
|
architecture: {
|
|
2951
3128
|
useMaxWidth: !0,
|
|
@@ -2956,7 +3133,8 @@ var O = {
|
|
|
2956
3133
|
nodeSeparation: 75,
|
|
2957
3134
|
idealEdgeLengthMultiplier: 1.5,
|
|
2958
3135
|
edgeElasticity: .45,
|
|
2959
|
-
numIter: 2500
|
|
3136
|
+
numIter: 2500,
|
|
3137
|
+
seed: 1
|
|
2960
3138
|
},
|
|
2961
3139
|
eventmodeling: {
|
|
2962
3140
|
useMaxWidth: !0,
|
|
@@ -2982,6 +3160,15 @@ var O = {
|
|
|
2982
3160
|
padding: 8,
|
|
2983
3161
|
useDebugLayout: !1
|
|
2984
3162
|
},
|
|
3163
|
+
cynefin: {
|
|
3164
|
+
useMaxWidth: !0,
|
|
3165
|
+
width: 800,
|
|
3166
|
+
height: 600,
|
|
3167
|
+
padding: 40,
|
|
3168
|
+
showDomainDescriptions: !0,
|
|
3169
|
+
boundaryAmplitude: 8,
|
|
3170
|
+
seed: 0
|
|
3171
|
+
},
|
|
2985
3172
|
theme: "default",
|
|
2986
3173
|
look: "classic",
|
|
2987
3174
|
handDrawnSeed: 0,
|
|
@@ -3008,19 +3195,21 @@ var O = {
|
|
|
3008
3195
|
fontSize: 16,
|
|
3009
3196
|
markdownAutoWrap: !0,
|
|
3010
3197
|
suppressErrorRendering: !1
|
|
3011
|
-
},
|
|
3012
|
-
...
|
|
3198
|
+
}, Ft = {
|
|
3199
|
+
...G,
|
|
3013
3200
|
deterministicIDSeed: void 0,
|
|
3014
3201
|
elk: {
|
|
3015
3202
|
mergeEdges: !1,
|
|
3016
3203
|
nodePlacementStrategy: "BRANDES_KOEPF",
|
|
3204
|
+
nodePlacementAlignment: "NONE",
|
|
3017
3205
|
forceNodeModelOrder: !1,
|
|
3018
|
-
considerModelOrder: "NODES_AND_EDGES"
|
|
3206
|
+
considerModelOrder: "NODES_AND_EDGES",
|
|
3207
|
+
keepEntryNodeOnTop: !1
|
|
3019
3208
|
},
|
|
3020
3209
|
themeCSS: void 0,
|
|
3021
|
-
themeVariables:
|
|
3210
|
+
themeVariables: W.default.getThemeVariables(),
|
|
3022
3211
|
sequence: {
|
|
3023
|
-
...
|
|
3212
|
+
...G.sequence,
|
|
3024
3213
|
messageFont: /* @__PURE__ */ n(function() {
|
|
3025
3214
|
return {
|
|
3026
3215
|
fontFamily: this.messageFontFamily,
|
|
@@ -3044,16 +3233,17 @@ var O = {
|
|
|
3044
3233
|
}, "actorFont")
|
|
3045
3234
|
},
|
|
3046
3235
|
class: {
|
|
3236
|
+
defaultRenderer: "dagre-wrapper",
|
|
3047
3237
|
hideEmptyMembersBox: !1,
|
|
3048
3238
|
hierarchicalNamespaces: !0
|
|
3049
3239
|
},
|
|
3050
3240
|
gantt: {
|
|
3051
|
-
...
|
|
3241
|
+
...G.gantt,
|
|
3052
3242
|
tickInterval: void 0,
|
|
3053
3243
|
useWidth: void 0
|
|
3054
3244
|
},
|
|
3055
3245
|
c4: {
|
|
3056
|
-
...
|
|
3246
|
+
...G.c4,
|
|
3057
3247
|
useWidth: void 0,
|
|
3058
3248
|
personFont: /* @__PURE__ */ n(function() {
|
|
3059
3249
|
return {
|
|
@@ -3063,7 +3253,7 @@ var O = {
|
|
|
3063
3253
|
};
|
|
3064
3254
|
}, "personFont"),
|
|
3065
3255
|
flowchart: {
|
|
3066
|
-
...
|
|
3256
|
+
...G.flowchart,
|
|
3067
3257
|
inheritDir: !1
|
|
3068
3258
|
},
|
|
3069
3259
|
external_personFont: /* @__PURE__ */ n(function() {
|
|
@@ -3215,27 +3405,46 @@ var O = {
|
|
|
3215
3405
|
}, "messageFont")
|
|
3216
3406
|
},
|
|
3217
3407
|
pie: {
|
|
3218
|
-
...
|
|
3408
|
+
...G.pie,
|
|
3219
3409
|
useWidth: 984
|
|
3220
3410
|
},
|
|
3221
3411
|
xyChart: {
|
|
3222
|
-
...
|
|
3412
|
+
...G.xyChart,
|
|
3223
3413
|
useWidth: void 0
|
|
3224
3414
|
},
|
|
3225
3415
|
requirement: {
|
|
3226
|
-
...
|
|
3416
|
+
...G.requirement,
|
|
3227
3417
|
useWidth: void 0
|
|
3228
3418
|
},
|
|
3229
|
-
packet: { ...
|
|
3230
|
-
eventmodeling: { ...
|
|
3419
|
+
packet: { ...G.packet },
|
|
3420
|
+
eventmodeling: { ...G.eventmodeling },
|
|
3231
3421
|
treeView: {
|
|
3232
|
-
...
|
|
3422
|
+
...G.treeView,
|
|
3233
3423
|
useWidth: void 0
|
|
3234
3424
|
},
|
|
3235
|
-
radar: { ...
|
|
3236
|
-
|
|
3425
|
+
radar: { ...G.radar },
|
|
3426
|
+
railroad: {
|
|
3427
|
+
...G.railroad,
|
|
3428
|
+
fontSize: void 0,
|
|
3429
|
+
fontFamily: void 0,
|
|
3430
|
+
terminalFill: void 0,
|
|
3431
|
+
terminalStroke: void 0,
|
|
3432
|
+
terminalTextColor: void 0,
|
|
3433
|
+
nonTerminalFill: void 0,
|
|
3434
|
+
nonTerminalStroke: void 0,
|
|
3435
|
+
nonTerminalTextColor: void 0,
|
|
3436
|
+
lineColor: void 0,
|
|
3437
|
+
markerFill: void 0,
|
|
3438
|
+
commentFill: void 0,
|
|
3439
|
+
commentStroke: void 0,
|
|
3440
|
+
commentTextColor: void 0,
|
|
3441
|
+
specialFill: void 0,
|
|
3442
|
+
specialStroke: void 0,
|
|
3443
|
+
ruleNameColor: void 0
|
|
3444
|
+
},
|
|
3445
|
+
ishikawa: { ...G.ishikawa },
|
|
3237
3446
|
sankey: {
|
|
3238
|
-
...
|
|
3447
|
+
...G.sankey,
|
|
3239
3448
|
nodeColors: void 0
|
|
3240
3449
|
},
|
|
3241
3450
|
treemap: {
|
|
@@ -3250,34 +3459,42 @@ var O = {
|
|
|
3250
3459
|
labelFontSize: 14,
|
|
3251
3460
|
valueFormat: ","
|
|
3252
3461
|
},
|
|
3253
|
-
venn: { ...
|
|
3254
|
-
|
|
3462
|
+
venn: { ...G.venn },
|
|
3463
|
+
cynefin: { ...G.cynefin }
|
|
3464
|
+
}, It = /* @__PURE__ */ n((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
|
|
3255
3465
|
...n,
|
|
3256
3466
|
t + r,
|
|
3257
|
-
...
|
|
3258
|
-
] : [...n, t + r], []), "keyify"),
|
|
3467
|
+
...It(e[r], "")
|
|
3468
|
+
] : [...n, t + r], []), "keyify"), Lt = new Set(It(Ft, "")), Rt = Ft, zt = {
|
|
3469
|
+
nodeColors: /^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,
|
|
3470
|
+
filenameIcons: /^[\w-]+(?::[\w-]+)?$/,
|
|
3471
|
+
extensionIcons: /^[\w-]+(?::[\w-]+)?$/
|
|
3472
|
+
}, Bt = /* @__PURE__ */ n((e, n) => {
|
|
3473
|
+
for (let r of Object.keys(e)) {
|
|
3474
|
+
let i = e[r];
|
|
3475
|
+
(r.startsWith("__") || r.includes("proto") || r.includes("constr") || typeof i != "string" || !n.test(i)) && (t.debug("sanitize deleting dictionary entry:", r, i), delete e[r]);
|
|
3476
|
+
}
|
|
3477
|
+
}, "sanitizeDictionaryConfig"), Vt = /* @__PURE__ */ n((e) => {
|
|
3259
3478
|
if (t.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
|
|
3260
3479
|
if (Array.isArray(e)) {
|
|
3261
|
-
e.forEach((e) =>
|
|
3480
|
+
e.forEach((e) => Vt(e));
|
|
3262
3481
|
return;
|
|
3263
3482
|
}
|
|
3264
3483
|
for (let n of Object.keys(e)) {
|
|
3265
|
-
if (t.debug("Checking key", n), n.startsWith("__") || n.includes("proto") || n.includes("constr") || !
|
|
3484
|
+
if (t.debug("Checking key", n), n.startsWith("__") || n.includes("proto") || n.includes("constr") || !Lt.has(n) || e[n] == null) {
|
|
3266
3485
|
t.debug("sanitize deleting key: ", n), delete e[n];
|
|
3267
3486
|
continue;
|
|
3268
3487
|
}
|
|
3269
3488
|
if (typeof e[n] == "object") {
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
for (let i of Object.keys(e[n])) (typeof e[n][i] != "string" || !r.test(e[n][i])) && (t.debug("sanitize deleting invalid color:", i, e[n][i]), delete e[n][i]);
|
|
3273
|
-
} else t.debug("sanitizing object", n), Ht(e[n]);
|
|
3489
|
+
let r = zt[n];
|
|
3490
|
+
r ? Bt(e[n], r) : (t.debug("sanitizing object", n), Vt(e[n]));
|
|
3274
3491
|
continue;
|
|
3275
3492
|
}
|
|
3276
3493
|
for (let r of [
|
|
3277
3494
|
"themeCSS",
|
|
3278
3495
|
"fontFamily",
|
|
3279
3496
|
"altFontFamily"
|
|
3280
|
-
]) n.includes(r) && (t.debug("sanitizing css option", n), e[n] =
|
|
3497
|
+
]) n.includes(r) && (t.debug("sanitizing css option", n), e[n] = Ht(e[n]));
|
|
3281
3498
|
}
|
|
3282
3499
|
if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
|
|
3283
3500
|
let n = e.themeVariables[t];
|
|
@@ -3285,61 +3502,79 @@ var O = {
|
|
|
3285
3502
|
}
|
|
3286
3503
|
t.debug("After sanitization", e);
|
|
3287
3504
|
}
|
|
3288
|
-
}, "sanitizeDirective"),
|
|
3505
|
+
}, "sanitizeDirective"), Ht = /* @__PURE__ */ n((e) => {
|
|
3289
3506
|
let t = 0, n = 0;
|
|
3290
3507
|
for (let r of e) {
|
|
3291
3508
|
if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
|
|
3292
3509
|
r === "{" ? t++ : r === "}" && n++;
|
|
3293
3510
|
}
|
|
3294
3511
|
return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
|
|
3295
|
-
}, "sanitizeCss"),
|
|
3512
|
+
}, "sanitizeCss"), K = Object.freeze(Rt), q = /* @__PURE__ */ n((e) => !(e === !1 || [
|
|
3296
3513
|
"false",
|
|
3297
3514
|
"null",
|
|
3298
3515
|
"0"
|
|
3299
|
-
].includes(String(e).trim().toLowerCase())), "evaluate"), J =
|
|
3300
|
-
let n =
|
|
3301
|
-
for (let e of t)
|
|
3302
|
-
if (n =
|
|
3303
|
-
let e =
|
|
3304
|
-
n.theme && n.theme in
|
|
3305
|
-
}
|
|
3306
|
-
return
|
|
3307
|
-
}, "updateCurrentConfig"),
|
|
3308
|
-
|
|
3309
|
-
}, "saveConfigFromInitialize"),
|
|
3516
|
+
].includes(String(e).trim().toLowerCase())), "evaluate"), J = z({}, K), Ut, Wt = [], Gt = z({}, K), Kt = /* @__PURE__ */ n((e, t) => {
|
|
3517
|
+
let n = z({}, e), r = {};
|
|
3518
|
+
for (let e of t) Qt(e), r = z(r, e);
|
|
3519
|
+
if (n = z(n, r), r.theme && r.theme in W) {
|
|
3520
|
+
let e = z(z({}, Ut).themeVariables || {}, r.themeVariables);
|
|
3521
|
+
n.theme && n.theme in W && (n.themeVariables = W[n.theme].getThemeVariables(e));
|
|
3522
|
+
}
|
|
3523
|
+
return Gt = n, an(Gt), Gt;
|
|
3524
|
+
}, "updateCurrentConfig"), qt = /* @__PURE__ */ n((e) => (J = z({}, K), J = z(J, e), e.theme && W[e.theme] && (J.themeVariables = W[e.theme].getThemeVariables(e.themeVariables)), Kt(J, Wt), J), "setSiteConfig"), Jt = /* @__PURE__ */ n((e) => {
|
|
3525
|
+
Ut = z({}, e);
|
|
3526
|
+
}, "saveConfigFromInitialize"), Yt = /* @__PURE__ */ n((e) => (J = z(J, e), Kt(J, Wt), J), "updateSiteConfig"), Xt = /* @__PURE__ */ n(() => z({}, J), "getSiteConfig"), Zt = /* @__PURE__ */ n((e) => (Kt(Gt, [e]), Y()), "setConfig"), Y = /* @__PURE__ */ n(() => z({}, Gt), "getConfig"), Qt = /* @__PURE__ */ n((e) => {
|
|
3310
3527
|
e && (["secure", ...J.secure ?? []].forEach((n) => {
|
|
3311
3528
|
Object.hasOwn(e, n) && (t.debug(`Denied attempt to modify a secure key ${n}`, e[n]), delete e[n]);
|
|
3312
3529
|
}), Object.keys(e).forEach((t) => {
|
|
3313
3530
|
t.startsWith("__") && delete e[t];
|
|
3314
3531
|
}), Object.keys(e).forEach((t) => {
|
|
3315
|
-
typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" &&
|
|
3532
|
+
typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && Qt(e[t]);
|
|
3316
3533
|
}));
|
|
3317
|
-
}, "sanitize"),
|
|
3318
|
-
|
|
3534
|
+
}, "sanitize"), $t = /* @__PURE__ */ n((e) => {
|
|
3535
|
+
Vt(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
|
|
3319
3536
|
...e.themeVariables,
|
|
3320
3537
|
fontFamily: e.fontFamily
|
|
3321
|
-
}),
|
|
3322
|
-
}, "addDirective"),
|
|
3323
|
-
|
|
3324
|
-
}, "reset"),
|
|
3538
|
+
}), Wt.push(e), Kt(J, Wt);
|
|
3539
|
+
}, "addDirective"), en = /* @__PURE__ */ n((e = J) => {
|
|
3540
|
+
Wt = [], Kt(e, Wt);
|
|
3541
|
+
}, "reset"), tn = {
|
|
3325
3542
|
LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
|
|
3326
3543
|
FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
|
|
3327
|
-
},
|
|
3328
|
-
|
|
3329
|
-
}, "issueWarning"),
|
|
3330
|
-
e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) &&
|
|
3331
|
-
}, "checkConfig"),
|
|
3544
|
+
}, nn = {}, rn = /* @__PURE__ */ n((e) => {
|
|
3545
|
+
nn[e] || (t.warn(tn[e]), nn[e] = !0);
|
|
3546
|
+
}, "issueWarning"), an = /* @__PURE__ */ n((e) => {
|
|
3547
|
+
e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && rn("LAZY_LOAD_DEPRECATED");
|
|
3548
|
+
}, "checkConfig"), on = /* @__PURE__ */ n(() => {
|
|
3332
3549
|
let e = {};
|
|
3333
|
-
|
|
3334
|
-
for (let t of
|
|
3550
|
+
Ut && (e = z(e, Ut));
|
|
3551
|
+
for (let t of Wt) e = z(e, t);
|
|
3335
3552
|
return e;
|
|
3336
|
-
}, "getUserDefinedConfig"),
|
|
3553
|
+
}, "getUserDefinedConfig"), sn = /* @__PURE__ */ n((e) => (e.flowchart?.htmlLabels != null && rn("FLOWCHART_HTML_LABELS_DEPRECATED"), q(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), cn = /^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s, X = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, ln = /\s*%%.*\n/gm, un = class extends Error {
|
|
3554
|
+
static {
|
|
3555
|
+
n(this, "UnknownDiagramError");
|
|
3556
|
+
}
|
|
3557
|
+
constructor(e) {
|
|
3558
|
+
super(e), this.name = "UnknownDiagramError";
|
|
3559
|
+
}
|
|
3560
|
+
}, Z = {}, dn = /* @__PURE__ */ n(function(e, t) {
|
|
3561
|
+
e = e.replace(cn, "").replace(X, "").replace(ln, "\n");
|
|
3562
|
+
for (let [n, { detector: r }] of Object.entries(Z)) if (r(e, t)) return n;
|
|
3563
|
+
throw new un(`No diagram type detected matching given configuration for text: ${e}`);
|
|
3564
|
+
}, "detectType"), fn = /* @__PURE__ */ n((...e) => {
|
|
3565
|
+
for (let { id: t, detector: n, loader: r } of e) pn(t, n, r);
|
|
3566
|
+
}, "registerLazyLoadedDiagrams"), pn = /* @__PURE__ */ n((e, n, r) => {
|
|
3567
|
+
Z[e] && t.warn(`Detector with key ${e} already exists. Overwriting.`), Z[e] = {
|
|
3568
|
+
detector: n,
|
|
3569
|
+
loader: r
|
|
3570
|
+
}, t.debug(`Detector with key ${e} added${r ? " with loader" : ""}`);
|
|
3571
|
+
}, "addDetector"), mn = /* @__PURE__ */ n((e) => Z[e].loader, "getDiagramLoader"), hn = /<br\s*\/?>/gi, gn = /* @__PURE__ */ n((e) => e ? wn(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), _n = /* @__PURE__ */ (() => {
|
|
3337
3572
|
let e = !1;
|
|
3338
3573
|
return () => {
|
|
3339
|
-
e ||= (
|
|
3574
|
+
e ||= (vn(), !0);
|
|
3340
3575
|
};
|
|
3341
3576
|
})();
|
|
3342
|
-
function
|
|
3577
|
+
function vn() {
|
|
3343
3578
|
let e = "data-temp-href-target";
|
|
3344
3579
|
T.addHook("beforeSanitizeAttributes", (t) => {
|
|
3345
3580
|
t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
|
|
@@ -3347,100 +3582,99 @@ function fn() {
|
|
|
3347
3582
|
t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
|
|
3348
3583
|
});
|
|
3349
3584
|
}
|
|
3350
|
-
n(
|
|
3351
|
-
var
|
|
3352
|
-
if (
|
|
3585
|
+
n(vn, "setupDompurifyHooks");
|
|
3586
|
+
var yn = /* @__PURE__ */ n((e) => (_n(), T.sanitize(e)), "removeScript"), bn = /* @__PURE__ */ n((e, t) => {
|
|
3587
|
+
if (sn(t)) {
|
|
3353
3588
|
let n = t.securityLevel;
|
|
3354
|
-
n === "antiscript" || n === "strict" || n === "sandbox" ? e =
|
|
3589
|
+
n === "antiscript" || n === "strict" || n === "sandbox" ? e = yn(e) : n !== "loose" && (e = wn(e), e = e.replace(/</g, "<").replace(/>/g, ">"), e = e.replace(/=/g, "="), e = Cn(e));
|
|
3355
3590
|
}
|
|
3356
3591
|
return e;
|
|
3357
|
-
}, "sanitizeMore"),
|
|
3592
|
+
}, "sanitizeMore"), Q = /* @__PURE__ */ n((e, t) => e && (e = t.dompurifyConfig ? T.sanitize(bn(e, t), t.dompurifyConfig).toString() : T.sanitize(bn(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), $ = /* @__PURE__ */ n((e, t) => typeof e == "string" ? Q(e, t) : e.flat().map((e) => Q(e, t)), "sanitizeTextOrArray"), xn = /* @__PURE__ */ n((e) => hn.test(e), "hasBreaks"), Sn = /* @__PURE__ */ n((e) => e.split(hn), "splitBreaks"), Cn = /* @__PURE__ */ n((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), wn = /* @__PURE__ */ n((e) => e.replace(hn, "#br#"), "breakToPlaceholder"), Tn = /* @__PURE__ */ n((e) => {
|
|
3358
3593
|
let t = "";
|
|
3359
3594
|
return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
|
|
3360
|
-
}, "getUrl"),
|
|
3595
|
+
}, "getUrl"), En = /* @__PURE__ */ n(function(...e) {
|
|
3361
3596
|
let t = e.filter((e) => !isNaN(e));
|
|
3362
3597
|
return Math.max(...t);
|
|
3363
|
-
}, "getMax"),
|
|
3598
|
+
}, "getMax"), Dn = /* @__PURE__ */ n(function(...e) {
|
|
3364
3599
|
let t = e.filter((e) => !isNaN(e));
|
|
3365
3600
|
return Math.min(...t);
|
|
3366
|
-
}, "getMin"),
|
|
3601
|
+
}, "getMin"), On = /* @__PURE__ */ n(function(e) {
|
|
3367
3602
|
let t = e.split(/(,)/), n = [];
|
|
3368
3603
|
for (let e = 0; e < t.length; e++) {
|
|
3369
3604
|
let r = t[e];
|
|
3370
3605
|
if (r === "," && e > 0 && e + 1 < t.length) {
|
|
3371
3606
|
let i = t[e - 1], a = t[e + 1];
|
|
3372
|
-
|
|
3607
|
+
An(i, a) && (r = i + "," + a, e++, n.pop());
|
|
3373
3608
|
}
|
|
3374
|
-
n.push(
|
|
3609
|
+
n.push(jn(r));
|
|
3375
3610
|
}
|
|
3376
3611
|
return n.join("");
|
|
3377
|
-
}, "parseGenericTypes"),
|
|
3378
|
-
let n =
|
|
3612
|
+
}, "parseGenericTypes"), kn = /* @__PURE__ */ n((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), An = /* @__PURE__ */ n((e, t) => {
|
|
3613
|
+
let n = kn(e, "~"), r = kn(t, "~");
|
|
3379
3614
|
return n === 1 && r === 1;
|
|
3380
|
-
}, "shouldCombineSets"),
|
|
3381
|
-
let t =
|
|
3615
|
+
}, "shouldCombineSets"), jn = /* @__PURE__ */ n((e) => {
|
|
3616
|
+
let t = kn(e, "~"), n = !1;
|
|
3382
3617
|
if (t <= 1) return e;
|
|
3383
3618
|
t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
|
|
3384
3619
|
let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
|
|
3385
3620
|
for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
|
|
3386
3621
|
return n && r.unshift("~"), r.join("");
|
|
3387
|
-
}, "processSet"),
|
|
3622
|
+
}, "processSet"), Mn = /* @__PURE__ */ n(() => window.MathMLElement !== void 0, "isMathMLSupported"), Nn = /\$\$(.*?)\$\$/g, Pn = /* @__PURE__ */ n((e) => (e.match(Nn)?.length ?? 0) > 0, "hasKatex"), Fn = /* @__PURE__ */ n(async (e, t) => {
|
|
3388
3623
|
let n = document.createElement("div");
|
|
3389
|
-
n.innerHTML = await
|
|
3624
|
+
n.innerHTML = await Ln(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
|
|
3390
3625
|
let r = {
|
|
3391
3626
|
width: n.clientWidth,
|
|
3392
3627
|
height: n.clientHeight
|
|
3393
3628
|
};
|
|
3394
3629
|
return n.remove(), r;
|
|
3395
|
-
}, "calculateMathMLDimensions"),
|
|
3396
|
-
if (!
|
|
3397
|
-
if (!(
|
|
3630
|
+
}, "calculateMathMLDimensions"), In = /* @__PURE__ */ n(async (e, t) => {
|
|
3631
|
+
if (!Pn(e)) return e;
|
|
3632
|
+
if (!(Mn() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(Nn, "MathML is unsupported in this environment.");
|
|
3398
3633
|
{
|
|
3399
|
-
let { default: n } = await import("./katex-
|
|
3400
|
-
return e.split(
|
|
3634
|
+
let { default: n } = await import("./katex-CT2p8LXT.js"), r = t.forceLegacyMathML || !Mn() && t.legacyMathML ? "htmlAndMathml" : "mathml";
|
|
3635
|
+
return e.split(hn).map((e) => Pn(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(Nn, (e, t) => n.renderToString(t, {
|
|
3401
3636
|
throwOnError: !0,
|
|
3402
3637
|
displayMode: !0,
|
|
3403
3638
|
output: r
|
|
3404
3639
|
}).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
|
|
3405
3640
|
}
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
}, Nn = /* @__PURE__ */ n(function(e, t) {
|
|
3641
|
+
}, "renderKatexUnsanitized"), Ln = /* @__PURE__ */ n(async (e, t) => Q(await In(e, t), t), "renderKatexSanitized"), Rn = {
|
|
3642
|
+
getRows: gn,
|
|
3643
|
+
sanitizeText: Q,
|
|
3644
|
+
sanitizeTextOrArray: $,
|
|
3645
|
+
hasBreaks: xn,
|
|
3646
|
+
splitBreaks: Sn,
|
|
3647
|
+
lineBreakRegex: hn,
|
|
3648
|
+
removeScript: yn,
|
|
3649
|
+
getUrl: Tn,
|
|
3650
|
+
evaluate: q,
|
|
3651
|
+
getMax: En,
|
|
3652
|
+
getMin: Dn
|
|
3653
|
+
}, zn = /* @__PURE__ */ n(function(e, t) {
|
|
3420
3654
|
for (let n of t) e.attr(n[0], n[1]);
|
|
3421
|
-
}, "d3Attrs"),
|
|
3655
|
+
}, "d3Attrs"), Bn = /* @__PURE__ */ n(function(e, t, n) {
|
|
3422
3656
|
let r = /* @__PURE__ */ new Map();
|
|
3423
3657
|
return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
|
|
3424
|
-
}, "calculateSvgSizeAttrs"),
|
|
3425
|
-
|
|
3426
|
-
}, "configureSvgSize"),
|
|
3658
|
+
}, "calculateSvgSizeAttrs"), Vn = /* @__PURE__ */ n(function(e, t, n, r) {
|
|
3659
|
+
zn(e, Bn(t, n, r));
|
|
3660
|
+
}, "configureSvgSize"), Hn = /* @__PURE__ */ n(function(e, n, r, i) {
|
|
3427
3661
|
let a = n.node().getBBox(), o = a.width, s = a.height;
|
|
3428
3662
|
t.info(`SVG bounds: ${o}x${s}`, a);
|
|
3429
3663
|
let c = 0, l = 0;
|
|
3430
|
-
t.info(`Graph bounds: ${c}x${l}`, e), c = o + r * 2, l = s + r * 2, t.info(`Calculated bounds: ${c}x${l}`),
|
|
3664
|
+
t.info(`Graph bounds: ${c}x${l}`, e), c = o + r * 2, l = s + r * 2, t.info(`Calculated bounds: ${c}x${l}`), Vn(n, l, c, i);
|
|
3431
3665
|
let u = `${a.x - r} ${a.y - r} ${a.width + 2 * r} ${a.height + 2 * r}`;
|
|
3432
3666
|
n.attr("viewBox", u);
|
|
3433
|
-
}, "setupGraphViewbox"),
|
|
3434
|
-
function
|
|
3667
|
+
}, "setupGraphViewbox"), Un = {};
|
|
3668
|
+
function Wn(e) {
|
|
3435
3669
|
return [...e.cssRules].map((e) => e.cssText).join("\n");
|
|
3436
3670
|
}
|
|
3437
|
-
n(
|
|
3438
|
-
var
|
|
3671
|
+
n(Wn, "cssStyleSheetToString");
|
|
3672
|
+
var Gn = /* @__PURE__ */ n((e, n, r, i) => {
|
|
3439
3673
|
let a = "";
|
|
3440
|
-
return e in
|
|
3674
|
+
return e in Un && Un[e] ? a = Un[e]({
|
|
3441
3675
|
...r,
|
|
3442
3676
|
svgId: i
|
|
3443
|
-
}) : t.warn(`No theme found for ${e}`),
|
|
3677
|
+
}) : t.warn(`No theme found for ${e}`), `& {
|
|
3444
3678
|
font-family: ${r.fontFamily};
|
|
3445
3679
|
font-size: ${r.fontSize};
|
|
3446
3680
|
fill: ${r.textColor}
|
|
@@ -3522,6 +3756,9 @@ var zn = /* @__PURE__ */ n((e, n, r, i) => {
|
|
|
3522
3756
|
stroke: ${r.useGradient ? "url(" + i + "-gradient)" : r.nodeBorder};
|
|
3523
3757
|
filter: ${r.dropShadow ? r.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
|
|
3524
3758
|
}
|
|
3759
|
+
[data-look="neo"].swimlane.cluster rect {
|
|
3760
|
+
filter: none;
|
|
3761
|
+
}
|
|
3525
3762
|
|
|
3526
3763
|
|
|
3527
3764
|
[data-look="neo"].node path {
|
|
@@ -3559,32 +3796,32 @@ var zn = /* @__PURE__ */ n((e, n, r, i) => {
|
|
|
3559
3796
|
|
|
3560
3797
|
${n}
|
|
3561
3798
|
`;
|
|
3562
|
-
}, "getStyles"),
|
|
3563
|
-
t !== void 0 && (
|
|
3564
|
-
}, "addStylesForDiagram"),
|
|
3565
|
-
r(
|
|
3566
|
-
clear: () =>
|
|
3567
|
-
getAccDescription: () =>
|
|
3568
|
-
getAccTitle: () =>
|
|
3569
|
-
getDiagramTitle: () =>
|
|
3570
|
-
setAccDescription: () =>
|
|
3571
|
-
setAccTitle: () =>
|
|
3572
|
-
setDiagramTitle: () =>
|
|
3799
|
+
}, "getStyles"), Kn = /* @__PURE__ */ n((e, t) => {
|
|
3800
|
+
t !== void 0 && (Un[e] = t);
|
|
3801
|
+
}, "addStylesForDiagram"), qn = Gn, Jn = {};
|
|
3802
|
+
r(Jn, {
|
|
3803
|
+
clear: () => $n,
|
|
3804
|
+
getAccDescription: () => rr,
|
|
3805
|
+
getAccTitle: () => tr,
|
|
3806
|
+
getDiagramTitle: () => ar,
|
|
3807
|
+
setAccDescription: () => nr,
|
|
3808
|
+
setAccTitle: () => er,
|
|
3809
|
+
setDiagramTitle: () => ir
|
|
3573
3810
|
});
|
|
3574
|
-
var
|
|
3575
|
-
|
|
3576
|
-
}, "clear"),
|
|
3577
|
-
|
|
3578
|
-
}, "setAccTitle"),
|
|
3579
|
-
|
|
3580
|
-
}, "setAccDescription"),
|
|
3581
|
-
|
|
3582
|
-
}, "setDiagramTitle"),
|
|
3583
|
-
|
|
3584
|
-
}, "registerDiagram"),
|
|
3585
|
-
if (e in
|
|
3586
|
-
throw new
|
|
3587
|
-
}, "getDiagram"),
|
|
3811
|
+
var Yn = "", Xn = "", Zn = "", Qn = /* @__PURE__ */ n((e) => Q(e, Y()), "sanitizeText"), $n = /* @__PURE__ */ n(() => {
|
|
3812
|
+
Yn = "", Zn = "", Xn = "";
|
|
3813
|
+
}, "clear"), er = /* @__PURE__ */ n((e) => {
|
|
3814
|
+
Yn = Qn(e).replace(/^\s+/g, "");
|
|
3815
|
+
}, "setAccTitle"), tr = /* @__PURE__ */ n(() => Yn, "getAccTitle"), nr = /* @__PURE__ */ n((e) => {
|
|
3816
|
+
Zn = Qn(e).replace(/\n\s+/g, "\n");
|
|
3817
|
+
}, "setAccDescription"), rr = /* @__PURE__ */ n(() => Zn, "getAccDescription"), ir = /* @__PURE__ */ n((e) => {
|
|
3818
|
+
Xn = Qn(e);
|
|
3819
|
+
}, "setDiagramTitle"), ar = /* @__PURE__ */ n(() => Xn, "getDiagramTitle"), or = t, sr = e, cr = Y, lr = Zt, ur = K, dr = /* @__PURE__ */ n((e) => Q(e, cr()), "sanitizeText"), fr = Hn, pr = /* @__PURE__ */ n(() => Jn, "getCommonDb"), mr = {}, hr = /* @__PURE__ */ n((e, t, n) => {
|
|
3820
|
+
mr[e] && or.warn(`Diagram with id ${e} already registered. Overwriting.`), mr[e] = t, n && pn(e, n), Kn(e, t.styles), t.injectUtils?.(or, sr, cr, dr, fr, pr(), () => {});
|
|
3821
|
+
}, "registerDiagram"), gr = /* @__PURE__ */ n((e) => {
|
|
3822
|
+
if (e in mr) return mr[e];
|
|
3823
|
+
throw new _r(e);
|
|
3824
|
+
}, "getDiagram"), _r = class extends Error {
|
|
3588
3825
|
static {
|
|
3589
3826
|
n(this, "DiagramNotFoundError");
|
|
3590
3827
|
}
|
|
@@ -3593,4 +3830,4 @@ var Un = "", Wn = "", Gn = "", Kn = /* @__PURE__ */ n((e) => $(e, $t()), "saniti
|
|
|
3593
3830
|
}
|
|
3594
3831
|
};
|
|
3595
3832
|
//#endregion
|
|
3596
|
-
export {
|
|
3833
|
+
export { F as $, Pn as A, dr as B, mn as C, bt as D, Xt as E, Ln as F, lr as G, nr as H, en as I, Hn as J, ir as K, Ht as L, On as M, hr as N, Tn as O, fn as P, Yt as Q, Vt as R, gr as S, sn as T, er as U, Jt as V, Zt as W, qn as X, fr as Y, W as Z, cn as _, $n as a, E as at, Y as b, Vn as c, ur as d, P as et, Rt as f, q as g, X as h, Fn as i, j as it, hn as j, on as k, Wn as l, Z as m, $t as n, N as nt, Jn as o, T as ot, dn as p, qt as q, z as r, M as rt, Rn as s, un as t, pt as tt, K as u, rr as v, ar as w, cr as x, tr as y, Q as z };
|