@sme.up/ketchup2 2.9.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{abnfDiagram-VCTEODGH-DwAVRNNu.js → abnfDiagram-WEYOIA3C-BGzUWx_N.js} +18 -18
- package/dist/{arc-DXfwi1YX.js → arc-Cde31fHX.js} +1 -1
- package/dist/architecture-WOLXFQ4H-CjGAyYHf.js +2 -0
- package/dist/{architectureDiagram-5GKGNRK7-N1aPr2hw.js → architectureDiagram-ZHVYKT53-DH-D4G0y.js} +138 -153
- package/dist/assets/svg/magnify-minus.svg +1 -0
- package/dist/assets/svg/magnify-plus.svg +1 -0
- package/dist/basic-components/button/button-types.d.ts +2 -2
- package/dist/basic-components/button-group/button-group.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-types.d.ts +15 -6
- package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
- package/dist/basic-components/cell/cell-utils.d.ts +10 -4
- package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
- package/dist/basic-components/cell/cell.d.ts.map +1 -1
- package/dist/basic-components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/basic-components/chips/chips-types.d.ts +13 -0
- 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/date-picker/date-picker-types.d.ts +6 -2
- package/dist/basic-components/date-picker/date-picker-types.d.ts.map +1 -1
- package/dist/basic-components/file-upload/file-upload-types.d.ts +2 -2
- package/dist/basic-components/file-upload/file-upload-types.d.ts.map +1 -1
- package/dist/basic-components/file-upload/file-upload.d.ts.map +1 -1
- package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
- package/dist/basic-components/input-number/input-number.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.d.ts.map +1 -1
- package/dist/basic-components/radio/radio.d.ts.map +1 -1
- package/dist/basic-components/slider/slider.d.ts.map +1 -1
- package/dist/basic-components/text/text-types.d.ts +3 -1
- package/dist/basic-components/text/text-types.d.ts.map +1 -1
- package/dist/basic-components/text/text.d.ts.map +1 -1
- package/dist/basic-components/textarea/textarea-types.d.ts +2 -2
- package/dist/basic-components/textarea/textarea.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield-types.d.ts +10 -5
- package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
- package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
- package/dist/basic-components/time-picker/time-picker.d.ts.map +1 -1
- package/dist/basic-components/typography/typography.d.ts.map +1 -1
- package/dist/{blockDiagram-I7D4REHJ-Cu18ws5-.js → blockDiagram-RJAE7QA3-hRpbCaPL.js} +329 -316
- package/dist/{c4Diagram-7LVT6UL2-B-uBy_NE.js → c4Diagram-XDPPPE54-Bkqvkv8O.js} +350 -340
- package/dist/channel-CcHUzwZl.js +5 -0
- package/dist/{chunk-SVP7TREG-CyJlOPau.js → chunk-2E7WHVMD-DSYBrngB.js} +77 -77
- package/dist/chunk-4EMNKR2T-CndbTVTA.js +236 -0
- package/dist/{chunk-F27PBJKO-jIrOJO87.js → chunk-55XCU76K-B1HtPImz.js} +16 -16
- package/dist/{chunk-75Z2AOVW-Drsj7a97.js → chunk-7S6XSTFO-CN6S2H1-.js} +304 -305
- package/dist/{chunk-GMAD6QVW-D80II4AD.js → chunk-AQDTSKZB-DuUha9al.js} +386 -433
- package/dist/{chunk-DU6HZSFF-waeanndy.js → chunk-DSNLSHJZ-B1A8wsiA.js} +1227 -1043
- package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
- package/dist/chunk-EJLWFMJV-Cu6XnLfk.js +75 -0
- package/dist/chunk-HAGFOTED-IzyIoLzD.js +4487 -0
- package/dist/chunk-HNE4Q36P-7zVKLE_b.js +363 -0
- package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
- package/dist/{chunk-LNGE3PJU-CtYcu9x8.js → chunk-LNGE3PJU-ByFTjlja.js} +15 -19
- package/dist/chunk-NGNAAXSQ-Tr--SG_c.js +19832 -0
- package/dist/{chunk-SHT3W25Y-Cri27Jke.js → chunk-NQOKRVIF-CEJ-prlJ.js} +483 -414
- package/dist/chunk-OYAV6JZA-Cypx4hYu.js +14 -0
- package/dist/{chunk-P2QGCYS3-BUeNZ170.js → chunk-UHW7PFBP-CoHGQVjo.js} +6 -6
- package/dist/chunk-VQ5W62QI-BSDHmyws.js +26 -0
- package/dist/{chunk-OSK3NFVY-CQhPF3Mc.js → chunk-WQQL4CDK-BJE6isq-.js} +312 -288
- package/dist/chunk-XXDRQBXY-CU-dbs05.js +9 -0
- package/dist/{chunk-PWAF6VOD-D37VoZ8H.js → chunk-YZO67HFG-Bcmpw0dX.js} +28 -28
- package/dist/{chunk-GVQU2GXP-DP3t_9Rl.js → chunk-ZAUX2LTX-Bu7BRVL6.js} +14 -14
- package/dist/chunk-ZCHMQSOR-BA1QQ4D6.js +354 -0
- package/dist/{chunk-TICWLB2K-Cw2iT_VD.js → classDiagram-v2-4MYWR3UA-Bnh650R8.js} +333 -293
- package/dist/components/app-bar/app-bar-utils.d.ts.map +1 -1
- package/dist/components/app-bar/app-bar.data.d.ts.map +1 -1
- package/dist/components/box-list/box-list.d.ts.map +1 -1
- package/dist/components/calendar/calendar-available-height.d.ts +14 -0
- package/dist/components/calendar/calendar-available-height.d.ts.map +1 -0
- package/dist/components/calendar/calendar-types.d.ts +49 -4
- package/dist/components/calendar/calendar-types.d.ts.map +1 -1
- package/dist/components/calendar/calendar-utils.d.ts +160 -16
- package/dist/components/calendar/calendar-utils.d.ts.map +1 -1
- package/dist/components/calendar/calendar.d.ts.map +1 -1
- package/dist/components/calendar/views/calendar-event-text.d.ts +23 -0
- package/dist/components/calendar/views/calendar-event-text.d.ts.map +1 -0
- package/dist/components/calendar/views/calendar-month-grid.d.ts +12 -4
- package/dist/components/calendar/views/calendar-month-grid.d.ts.map +1 -1
- package/dist/components/calendar/views/calendar-more-events.d.ts +19 -0
- package/dist/components/calendar/views/calendar-more-events.d.ts.map +1 -0
- package/dist/components/calendar/views/calendar-time-grid.d.ts +16 -2
- package/dist/components/calendar/views/calendar-time-grid.d.ts.map +1 -1
- package/dist/components/data-table/assets/data-table-row-actions.d.ts +1 -1
- package/dist/components/data-table/cell-actions/cell-actions-types.d.ts +12 -0
- package/dist/components/data-table/cell-actions/cell-actions-types.d.ts.map +1 -0
- package/dist/components/data-table/cell-actions/cell-actions-utils.d.ts +29 -0
- package/dist/components/data-table/cell-actions/cell-actions-utils.d.ts.map +1 -0
- package/dist/components/data-table/cell-actions/cell-actions-utils.test.d.ts +2 -0
- package/dist/components/data-table/cell-actions/cell-actions-utils.test.d.ts.map +1 -0
- package/dist/components/data-table/cell-actions/cell-actions.d.ts +6 -0
- package/dist/components/data-table/cell-actions/cell-actions.d.ts.map +1 -0
- package/dist/components/data-table/column-menu/column-menu-types.d.ts +32 -0
- package/dist/components/data-table/column-menu/column-menu-types.d.ts.map +1 -0
- package/dist/components/data-table/column-menu/column-menu.d.ts +11 -0
- package/dist/components/data-table/column-menu/column-menu.d.ts.map +1 -0
- package/dist/components/data-table/columns/columns-utils.d.ts +11 -2
- package/dist/components/data-table/columns/columns-utils.d.ts.map +1 -1
- package/dist/components/data-table/columns/useColumnWidths.d.ts +24 -1
- package/dist/components/data-table/columns/useColumnWidths.d.ts.map +1 -1
- package/dist/components/data-table/data-table-types.d.ts +206 -38
- 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/filtering/data-table-filter-utils.d.ts +19 -2
- package/dist/components/data-table/filtering/data-table-filter-utils.d.ts.map +1 -1
- package/dist/components/data-table/fixed/fixed-utils.d.ts +69 -0
- package/dist/components/data-table/fixed/fixed-utils.d.ts.map +1 -0
- package/dist/components/data-table/footer/footer-types.d.ts +23 -6
- package/dist/components/data-table/footer/footer-types.d.ts.map +1 -1
- package/dist/components/data-table/footer/footer.d.ts.map +1 -1
- package/dist/components/data-table/group-row/group-row-types.d.ts +38 -1
- package/dist/components/data-table/group-row/group-row-types.d.ts.map +1 -1
- package/dist/components/data-table/group-row/group-row.d.ts.map +1 -1
- package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts +20 -5
- package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts.map +1 -1
- package/dist/components/data-table/grouping/datatable-groups-utils.d.ts +11 -1
- package/dist/components/data-table/grouping/datatable-groups-utils.d.ts.map +1 -1
- package/dist/components/data-table/grouping/group-expansion.d.ts +16 -0
- package/dist/components/data-table/grouping/group-expansion.d.ts.map +1 -0
- package/dist/components/data-table/grouping/grouping-types.d.ts +9 -0
- package/dist/components/data-table/grouping/grouping-types.d.ts.map +1 -1
- package/dist/components/data-table/header/Header.d.ts.map +1 -1
- package/dist/components/data-table/header/header-toolbar/header-toolbar-types.d.ts +44 -0
- package/dist/components/data-table/header/header-toolbar/header-toolbar-types.d.ts.map +1 -0
- package/dist/components/data-table/header/header-toolbar/header-toolbar.d.ts +8 -0
- package/dist/components/data-table/header/header-toolbar/header-toolbar.d.ts.map +1 -0
- package/dist/components/data-table/header/header-types.d.ts +37 -21
- package/dist/components/data-table/header/header-types.d.ts.map +1 -1
- package/dist/components/data-table/load-more-row/load-more-row.d.ts +8 -0
- package/dist/components/data-table/load-more-row/load-more-row.d.ts.map +1 -0
- package/dist/components/data-table/load-more-row/load-more-types.d.ts +11 -0
- package/dist/components/data-table/load-more-row/load-more-types.d.ts.map +1 -0
- package/dist/components/data-table/sorting/buildDftSort.d.ts +16 -0
- package/dist/components/data-table/sorting/buildDftSort.d.ts.map +1 -0
- package/dist/components/data-table/sorting/buildDftSort.test.d.ts +2 -0
- package/dist/components/data-table/sorting/buildDftSort.test.d.ts.map +1 -0
- package/dist/components/data-table/sorting/parseDftSort.d.ts +4 -4
- package/dist/components/data-table/sorting/parseDftSort.d.ts.map +1 -1
- package/dist/components/data-table/sorting/sortTable-utils.d.ts +10 -0
- package/dist/components/data-table/sorting/sortTable-utils.d.ts.map +1 -1
- package/dist/components/data-table/sorting/useSortableTable.d.ts +10 -4
- package/dist/components/data-table/sorting/useSortableTable.d.ts.map +1 -1
- package/dist/components/data-table/state/datatable-state.d.ts +15 -8
- package/dist/components/data-table/state/datatable-state.d.ts.map +1 -1
- package/dist/components/data-table/stories/data-table-story-meta.d.ts +7 -0
- package/dist/components/data-table/stories/data-table-story-meta.d.ts.map +1 -0
- package/dist/components/data-table/useDataTableImperativeHandle.d.ts +23 -0
- package/dist/components/data-table/useDataTableImperativeHandle.d.ts.map +1 -0
- package/dist/components/data-table/useDataTableShortcuts.d.ts +19 -0
- package/dist/components/data-table/useDataTableShortcuts.d.ts.map +1 -0
- package/dist/components/drawer/drawer.d.ts.map +1 -1
- package/dist/components/echarts-graph/builders/echarts-graph-builders-advanced.d.ts +26 -0
- package/dist/components/echarts-graph/builders/echarts-graph-builders-advanced.d.ts.map +1 -0
- package/dist/components/echarts-graph/builders/echarts-graph-builders.d.ts +17 -0
- package/dist/components/echarts-graph/builders/echarts-graph-builders.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-data.d.ts +151 -0
- package/dist/components/echarts-graph/data/echarts-graph-data.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-data.test.d.ts +2 -0
- package/dist/components/echarts-graph/data/echarts-graph-data.test.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-frame.d.ts +164 -0
- package/dist/components/echarts-graph/data/echarts-graph-frame.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-math.d.ts +26 -0
- package/dist/components/echarts-graph/data/echarts-graph-math.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-time.d.ts +42 -0
- package/dist/components/echarts-graph/data/echarts-graph-time.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-tree.d.ts +12 -0
- package/dist/components/echarts-graph/data/echarts-graph-tree.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-tree.test.d.ts +2 -0
- package/dist/components/echarts-graph/data/echarts-graph-tree.test.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-utils.d.ts +197 -0
- package/dist/components/echarts-graph/data/echarts-graph-utils.d.ts.map +1 -0
- package/dist/components/echarts-graph/data/echarts-graph-utils.test.d.ts +2 -0
- package/dist/components/echarts-graph/data/echarts-graph-utils.test.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-canvas.d.ts +34 -0
- package/dist/components/echarts-graph/echarts-graph-canvas.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-from-table.d.ts +13 -0
- package/dist/components/echarts-graph/echarts-graph-from-table.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-from-tree.d.ts +12 -0
- package/dist/components/echarts-graph/echarts-graph-from-tree.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-hooks.d.ts +16 -0
- package/dist/components/echarts-graph/echarts-graph-hooks.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph-types.d.ts +229 -0
- package/dist/components/echarts-graph/echarts-graph-types.d.ts.map +1 -0
- package/dist/components/echarts-graph/echarts-graph.d.ts +18 -0
- package/dist/components/echarts-graph/echarts-graph.d.ts.map +1 -0
- package/dist/components/echarts-graph/theme/echarts-graph-color.d.ts +20 -0
- package/dist/components/echarts-graph/theme/echarts-graph-color.d.ts.map +1 -0
- package/dist/components/echarts-graph/theme/echarts-graph-color.test.d.ts +2 -0
- package/dist/components/echarts-graph/theme/echarts-graph-color.test.d.ts.map +1 -0
- package/dist/components/echarts-graph/theme/echarts-graph-theme.d.ts +58 -0
- package/dist/components/echarts-graph/theme/echarts-graph-theme.d.ts.map +1 -0
- package/dist/components/input-panel/assets/data.d.ts +1 -0
- package/dist/components/input-panel/assets/data.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel-types.d.ts +7 -1
- package/dist/components/input-panel/input-panel-types.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel-utils.d.ts.map +1 -1
- package/dist/components/input-panel/input-panel.d.ts.map +1 -1
- package/dist/components/json-form/document-adapter.test.d.ts +2 -0
- package/dist/components/json-form/document-adapter.test.d.ts.map +1 -0
- package/dist/components/json-form/expression-evaluator.test.d.ts +2 -0
- package/dist/components/json-form/expression-evaluator.test.d.ts.map +1 -0
- package/dist/components/json-form/model/document-adapter.d.ts +54 -0
- package/dist/components/json-form/model/document-adapter.d.ts.map +1 -0
- package/dist/components/json-form/model/json-form-ajv.d.ts +12 -0
- package/dist/components/json-form/model/json-form-ajv.d.ts.map +1 -0
- package/dist/components/json-form/model/json-pointer.d.ts +20 -0
- package/dist/components/json-form/model/json-pointer.d.ts.map +1 -0
- package/dist/components/json-form/model/native-json-types.d.ts +5 -0
- package/dist/components/json-form/model/native-json-types.d.ts.map +1 -0
- package/dist/components/json-form/model/shape-event-support.d.ts +10 -0
- package/dist/components/json-form/model/shape-event-support.d.ts.map +1 -0
- package/dist/components/json-form/rule-controller.test.d.ts +2 -0
- package/dist/components/json-form/rule-controller.test.d.ts.map +1 -0
- package/dist/components/json-form/rules/expression-evaluator.d.ts +58 -0
- package/dist/components/json-form/rules/expression-evaluator.d.ts.map +1 -0
- package/dist/components/json-form/rules/rule-controller.d.ts +50 -0
- package/dist/components/json-form/rules/rule-controller.d.ts.map +1 -0
- package/dist/components/pdf/assets/pdf-fixtures.d.ts +6 -0
- package/dist/components/pdf/assets/pdf-fixtures.d.ts.map +1 -0
- package/dist/components/pdf/pdf-types.d.ts +17 -2
- package/dist/components/pdf/pdf-types.d.ts.map +1 -1
- package/dist/components/pdf/pdf-utils.d.ts +30 -1
- package/dist/components/pdf/pdf-utils.d.ts.map +1 -1
- package/dist/components/pdf/pdf.d.ts.map +1 -1
- package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/toolbar/toolbar-nodes/toolbar-plain-node.d.ts.map +1 -1
- package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -1
- package/dist/context/interaction-context.d.ts +16 -0
- package/dist/context/interaction-context.d.ts.map +1 -0
- package/dist/context/test-utils.d.ts.map +1 -1
- package/dist/{cose-bilkent-JH36ORCC-Qs_Z6zBZ.js → cose-bilkent-JH36ORCC-DYLyHByQ.js} +77 -89
- package/dist/cynefin-EF2NZ3EQ-DZ1CSrfW.js +2 -0
- package/dist/{cynefinDiagram-5FMLGOSQ-3Ha1hdlV.js → cynefinDiagram-WF24UDRP-bU_4r-FZ.js} +64 -64
- package/dist/{cytoscape.esm-C5TvPYYm.js → cytoscape.esm-BvXLQ91B.js} +412 -513
- package/dist/dagre-NK4GIZVX-B72HOuil.js +2352 -0
- package/dist/{diagram-VX7I27RA-BNmG1sig.js → diagram-CBK3MWTC-B-q-tUxd.js} +80 -80
- package/dist/diagram-I5XIIV2D-CMzniFEf.js +134 -0
- package/dist/{diagram-S7CK7UJ4-BuDHTdHA.js → diagram-ODIL2UCW-CrlDp0MP.js} +46 -54
- package/dist/{diagram-VSXAHHWV-CrQQCs-B.js → diagram-PFBEJUXE-hnrdzEe4.js} +136 -121
- package/dist/{diagram-UQ7AKVKN-uvzJGj43.js → diagram-RJA3I4VV-DZW7CxE5.js} +43 -43
- package/dist/diagram-TYUNFSNR-cRJNHRy2.js +5069 -0
- package/dist/{dist-CsrMlyO_.js → dist-Bj7IMbKd.js} +1 -1
- package/dist/{ebnfDiagram-PWID7BFC-DMx8xAFO.js → ebnfDiagram-V4P3TTPT-Bm7KtfLA.js} +17 -17
- package/dist/echarts-C7ehbnCk.js +15485 -0
- package/dist/elk-QONTBCTQ-gWOTRRj4.js +47505 -0
- package/dist/{erDiagram-RLTQ6QDP-bkJ9nzVK.js → erDiagram-KYQIGQAA-WZEbQwWz.js} +150 -146
- package/dist/eventmodeling-K75KTNOO-CEn7YBG4.js +2 -0
- package/dist/flowDiagram-IUGLLWBU-CRV2Bl2C.js +16 -0
- package/dist/functional-components/badge/badge-assets.d.ts +1 -0
- package/dist/functional-components/badge/badge-assets.d.ts.map +1 -1
- package/dist/functional-components/badge/badge-utils.d.ts +5 -0
- package/dist/functional-components/badge/badge-utils.d.ts.map +1 -1
- package/dist/functional-components/badge/badge.d.ts.map +1 -1
- package/dist/functional-components/filter-group/filter-builder-operators.d.ts +15 -0
- package/dist/functional-components/filter-group/filter-builder-operators.d.ts.map +1 -0
- package/dist/functional-components/filter-group/filter-builder.d.ts +15 -1
- package/dist/functional-components/filter-group/filter-builder.d.ts.map +1 -1
- package/dist/functional-components/group-bar/group-bar-types.d.ts +16 -0
- package/dist/functional-components/group-bar/group-bar-types.d.ts.map +1 -1
- package/dist/functional-components/group-bar/group-bar.d.ts.map +1 -1
- package/dist/functional-components/helper-text/helper-text-types.d.ts +1 -1
- package/dist/functional-components/multiple-field/multiple-field-types.d.ts +1 -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 +50 -1
- 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/tree-picker/tree-picker-types.d.ts +5 -0
- package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -1
- package/dist/{ganttDiagram-EL5Y4UJY-CL-ywzz_.js → ganttDiagram-R7GPNTJY-DFRGfQMr.js} +314 -310
- package/dist/gitGraph-VSP46ZUC-BSTikFaE.js +2 -0
- package/dist/{gitGraphDiagram-WWUBYQGX-aXhNDG6P.js → gitGraphDiagram-PDYL7XHY-nvoob8Ca.js} +250 -250
- package/dist/hooks/useClickOutside/useClickOutside-assets.d.ts +14 -0
- package/dist/hooks/useClickOutside/useClickOutside-assets.d.ts.map +1 -0
- package/dist/hooks/useClickOutside/useClickOutside.d.ts.map +1 -0
- package/dist/hooks/useFloating.d.ts.map +1 -1
- package/dist/hooks/useVirtualListScroll.d.ts +14 -2
- package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/info-OHQRW6UA-BGb3N889.js +2 -0
- package/dist/infoDiagram-MVDRKAX5-BqO_morw.js +20 -0
- package/dist/installCanvasRenderer-CgRxxRBg.js +29799 -0
- package/dist/{ishikawaDiagram-5VMMS53U-DK7HlH95.js → ishikawaDiagram-HPEHV2GE-BE3amLYE.js} +27 -29
- package/dist/{journeyDiagram-3NMN7TZE-CpuYEKcB.js → journeyDiagram-BOSHW7O7-DE8ndsCi.js} +111 -111
- package/dist/{kanban-definition-UXKFOSKX-aK8uKmyY.js → kanban-definition-FNSA4HC5-D72kc4EN.js} +135 -135
- package/dist/{katex-CT2p8LXT.js → katex-CDhNh-ZQ.js} +919 -1040
- package/dist/ketchup2.css +1 -1
- package/dist/ketchup2.es.js +25778 -68770
- package/dist/{line-DTqYMLoX.js → line-ltPB6XbC.js} +1 -1
- package/dist/{linear-CXc5xaa6.js → linear-i6_MPSGL.js} +2 -3
- package/dist/locale/en/translation.json.d.ts +40 -4
- package/dist/locale/it/translation.json.d.ts +40 -4
- package/dist/{mermaid-parser.core-BwVmI_Rq.js → mermaid-parser.core-zUi7tSl-.js} +166 -172
- package/dist/{mindmap-definition-YA3MSWOX-ZMYcmi9J.js → mindmap-definition-6OY57UG3-hH6Avsg4.js} +148 -145
- package/dist/packet-JDAUHWVQ-CKZoNg5j.js +2 -0
- package/dist/{pegDiagram-XKGWAZYB-DsfILwZN.js → pegDiagram-ECIUJNBX-D3xLhrRh.js} +19 -19
- package/dist/pie-XZMESJXO-BnbWY8rE.js +2 -0
- package/dist/{pieDiagram-E7YTZNPT-DcSLcLdd.js → pieDiagram-GNMPY74T-Bd_UXypi.js} +39 -39
- package/dist/{quadrantDiagram-AXDQQJYC-DSx3teop.js → quadrantDiagram-D57K4MC3-BAwweqT8.js} +149 -149
- package/dist/radar-ABXABTNO-D5CEmFBx.js +2 -0
- package/dist/railroad-I3PHUGI6-CxMiYaMH.js +2 -0
- package/dist/railroad-abnf-LNEFI6M7-C69KxGa-.js +2 -0
- package/dist/railroad-ebnf-DWYD2UWJ-D5Xd566k.js +2 -0
- package/dist/railroad-peg-JR7BVNR7-CD0OiqcS.js +2 -0
- package/dist/{railroadDiagram-O6MQD6OU-jOZRtNDi.js → railroadDiagram-Y72NRBL7-CPUbPgYX.js} +14 -14
- package/dist/{requirementDiagram-BXWQKSXE-D14hkkez.js → requirementDiagram-EQYSW5RA-BXstYS3w.js} +97 -93
- package/dist/rolldown-runtime-5HNE8Q1r.js +23 -0
- package/dist/{sankeyDiagram-P5KCCOFB-C0jmknYo.js → sankeyDiagram-SY24JHO5-Du-toJmg.js} +64 -64
- package/dist/{sequenceDiagram-WJ2MYXX4-C00egnMz.js → sequenceDiagram-BLEHNHQU-BNNnerZ-.js} +953 -868
- package/dist/{sizeCapture-INFHLROL-CHXIsPO_.js → sizeCapture-INFHLROL-DujrpAYz.js} +1 -1
- package/dist/{src-DQoflmwT.js → src-CY9Rz0Sf.js} +545 -566
- package/dist/{chunk-IMKFNOWR-8ItzAAcf.js → stateDiagram-v2-A6IESKWZ-CfjPf8h7.js} +364 -267
- package/dist/{swimlanes-42K2YHIH-CJcMmxXf.js → swimlanes-B3ENRKFQ-Dumwq89C.js} +1356 -1590
- package/dist/swimlanesDiagram-AYQRV4AK-Boz_Azx7.js +28 -0
- package/dist/{timeline-definition-24CTP7MA-D2xfYuSV.js → timeline-definition-JXYKGLGB-ClzmRQCu.js} +354 -350
- package/dist/treeView-D4JQ5SDB-C3ue8DID.js +2 -0
- package/dist/treemap-SAJKECNS-BWis-Wpv.js +2 -0
- package/dist/types/data-structures.d.ts +16 -1
- package/dist/types/data-structures.d.ts.map +1 -1
- package/dist/types/global.d.ts +7 -2
- package/dist/types/global.d.ts.map +1 -1
- package/dist/types/translation.d.ts +40 -5
- package/dist/types/translation.d.ts.map +1 -1
- package/dist/usecaseDiagram-WPOLBNNX-ruZhXlYQ.js +7175 -0
- package/dist/utils/floating-layer.d.ts +11 -0
- package/dist/utils/floating-layer.d.ts.map +1 -0
- package/dist/utils/legacy.d.ts +7 -0
- package/dist/utils/legacy.d.ts.map +1 -1
- package/dist/utils/object-styles.d.ts +12 -0
- package/dist/utils/object-styles.d.ts.map +1 -0
- package/dist/utils/object-styles.test.d.ts +2 -0
- package/dist/utils/object-styles.test.d.ts.map +1 -0
- package/dist/utils/objects.d.ts +20 -1
- package/dist/utils/objects.d.ts.map +1 -1
- package/dist/utils/totals/totals-registry.d.ts +17 -0
- package/dist/utils/totals/totals-registry.d.ts.map +1 -0
- package/dist/utils/totals/totals-utils.d.ts +70 -7
- package/dist/utils/totals/totals-utils.d.ts.map +1 -1
- package/dist/utils/wrapper-types/list.d.ts.map +1 -1
- package/dist/{vennDiagram-4TSXK5OY-C4XLgus_.js → vennDiagram-Q3Y3IDCW-L9GmqfCz.js} +118 -118
- package/dist/wardley-7MLQ67FV-DC0ayJCO.js +2 -0
- package/dist/{wardleyDiagram-VM6X3IG4-DFoKuS9s.js → wardleyDiagram-IVAIDKWA-Dz5K-UqN.js} +126 -126
- package/dist/{xychartDiagram-S5SC5T6Z-BzKKgVBe.js → xychartDiagram-4URNHDU4-C2xwRx5F.js} +141 -137
- package/package.json +7 -5
- package/dist/architecture-7GRP2DOG-BsytjMto.js +0 -3
- package/dist/channel-CuEby436.js +0 -5
- package/dist/chunk-2E4U76K2-ComA5SPA.js +0 -348
- package/dist/chunk-4HAMMTFA-CZgIgrp_.js +0 -4188
- package/dist/chunk-CLGD4ZFX-CLGio9rD.js +0 -14
- package/dist/chunk-FOHPRMQF-LRqOLsSw.js +0 -21456
- package/dist/chunk-L3NEJ4N5-qPot4t6M.js +0 -245
- package/dist/chunk-POPQ4Y6H-CU9oz17Z.js +0 -26
- package/dist/chunk-TLUHSLCS-BdsLNXjt.js +0 -59
- package/dist/chunk-XXDRQBXY-C1ZEFXGu.js +0 -9
- package/dist/classDiagram-ZZMXUADV-L32jCfMj.js +0 -30
- package/dist/classDiagram-v2-VYDZK3BY-BsnrDCgX.js +0 -30
- package/dist/components/echarts/echarts-graph-types.d.ts +0 -8
- package/dist/components/echarts/echarts-graph-types.d.ts.map +0 -1
- package/dist/components/echarts/echarts-graph.d.ts +0 -4
- package/dist/components/echarts/echarts-graph.d.ts.map +0 -1
- package/dist/cynefin-OW5HDTMX-BJXlKro0.js +0 -3
- package/dist/dagre-D5csT9sx.js +0 -1934
- package/dist/dagre-GXQ25YYZ-Bg7xf6xn.js +0 -425
- package/dist/diagram-Z3DM3KII-B6BrLhP0.js +0 -134
- package/dist/eventmodeling-NTZA5JFV-Cj-VH7yh.js +0 -3
- package/dist/flowDiagram-HODETNUW-BIvD7-ts.js +0 -17
- package/dist/gitGraph-4MIJSDKK-C9JGDovl.js +0 -3
- package/dist/hooks/useClickOutside.d.ts.map +0 -1
- package/dist/info-A6RAGUB7-CmZJKEaW.js +0 -3
- package/dist/infoDiagram-27XIBGKW-Je4heBlk.js +0 -20
- package/dist/packet-AYTQ26CC-B3tgRshR.js +0 -3
- package/dist/pie-WAS4IAKB-BRiI8kbI.js +0 -3
- package/dist/radar-RG4KPBEZ-ASOMQXFw.js +0 -3
- package/dist/railroad-74A4TZTK-oS840SLr.js +0 -3
- package/dist/railroad-abnf-HS5TGJTU-nnQAkZY2.js +0 -3
- package/dist/railroad-ebnf-LZEXJU2U-DBQIOba3.js +0 -3
- package/dist/railroad-peg-WCYAUIDC-fBPN2TVb.js +0 -3
- package/dist/stateDiagram-D77RDMKH-YfzmviNY.js +0 -220
- package/dist/stateDiagram-v2-MP3YSRHH-B6Hzx8T0.js +0 -30
- package/dist/swimlanesDiagram-VR7AAH4N-DirvhGBA.js +0 -31
- package/dist/treeView-Q6P3EWNA-BmvB2b-_.js +0 -3
- package/dist/treemap-WGGIJYW6-Cjjk75wA.js +0 -3
- package/dist/wardley-WFR3VGLG-BamDiE0x.js +0 -3
- /package/dist/hooks/{useClickOutside.d.ts → useClickOutside/useClickOutside.d.ts} +0 -0
|
@@ -1,20 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n,
|
|
1
|
+
import { n as e, t } from "./chunk-Y2CYZVJY-i11wjrBe.js";
|
|
2
|
+
import { h as n, m as r } from "./src-CY9Rz0Sf.js";
|
|
3
3
|
//#region node_modules/dompurify/dist/purify.es.mjs
|
|
4
4
|
function i(e, t) {
|
|
5
|
+
this.v = e, this.k = t;
|
|
6
|
+
}
|
|
7
|
+
function a(e, t) {
|
|
5
8
|
(t == null || t > e.length) && (t = e.length);
|
|
6
9
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
7
10
|
return r;
|
|
8
11
|
}
|
|
9
|
-
function
|
|
12
|
+
function o(e) {
|
|
10
13
|
if (Array.isArray(e)) return e;
|
|
11
14
|
}
|
|
12
|
-
function
|
|
15
|
+
function s(e, t) {
|
|
13
16
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
14
17
|
if (n != null) {
|
|
15
18
|
var r, i, a, o, s = [], c = !0, l = !1;
|
|
16
19
|
try {
|
|
17
|
-
if (a = (n = n.call(e)).next, t
|
|
20
|
+
if (a = (n = n.call(e)).next, t === 0) {
|
|
21
|
+
if (Object(n) !== n) return;
|
|
22
|
+
c = !1;
|
|
23
|
+
} else for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
|
|
18
24
|
} catch (e) {
|
|
19
25
|
l = !0, i = e;
|
|
20
26
|
} finally {
|
|
@@ -27,113 +33,170 @@ function o(e, t) {
|
|
|
27
33
|
return s;
|
|
28
34
|
}
|
|
29
35
|
}
|
|
30
|
-
function
|
|
36
|
+
function c() {
|
|
31
37
|
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
32
38
|
}
|
|
33
|
-
function c(e, t) {
|
|
34
|
-
return a(e) || o(e, t) || l(e, t) || s();
|
|
35
|
-
}
|
|
36
39
|
function l(e, t) {
|
|
40
|
+
return o(e) || s(e, t) || u(e, t) || c();
|
|
41
|
+
}
|
|
42
|
+
function u(e, t) {
|
|
37
43
|
if (e) {
|
|
38
|
-
if (typeof e == "string") return
|
|
44
|
+
if (typeof e == "string") return a(e, t);
|
|
39
45
|
var n = {}.toString.call(e).slice(8, -1);
|
|
40
|
-
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ?
|
|
46
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? a(e, t) : void 0;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function d(e) {
|
|
50
|
+
var t, n;
|
|
51
|
+
function r(t, n) {
|
|
52
|
+
try {
|
|
53
|
+
var o = e[t](n), s = o.value, c = s instanceof i;
|
|
54
|
+
Promise.resolve(c ? s.v : s).then(function(n) {
|
|
55
|
+
if (c) {
|
|
56
|
+
var i = t === "return" && s.k ? t : "next";
|
|
57
|
+
if (!s.k || n.done) return r(i, n);
|
|
58
|
+
n = e[i](n).value;
|
|
59
|
+
}
|
|
60
|
+
a(!!o.done, n);
|
|
61
|
+
}, function(e) {
|
|
62
|
+
r("throw", e);
|
|
63
|
+
});
|
|
64
|
+
} catch (e) {
|
|
65
|
+
a(2, e);
|
|
66
|
+
}
|
|
41
67
|
}
|
|
68
|
+
function a(e, i) {
|
|
69
|
+
e === 2 ? t.reject(i) : t.resolve({
|
|
70
|
+
value: i,
|
|
71
|
+
done: e
|
|
72
|
+
}), (t = t.next) ? r(t.key, t.arg) : n = null;
|
|
73
|
+
}
|
|
74
|
+
this._invoke = function(e, i) {
|
|
75
|
+
return new Promise(function(a, o) {
|
|
76
|
+
var s = {
|
|
77
|
+
key: e,
|
|
78
|
+
arg: i,
|
|
79
|
+
resolve: a,
|
|
80
|
+
reject: o,
|
|
81
|
+
next: null
|
|
82
|
+
};
|
|
83
|
+
n ? n = n.next = s : (t = n = s, r(e, i));
|
|
84
|
+
});
|
|
85
|
+
}, typeof e.return != "function" && (this.return = void 0);
|
|
42
86
|
}
|
|
43
|
-
|
|
87
|
+
d.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
|
|
88
|
+
return this;
|
|
89
|
+
}, d.prototype.next = function(e) {
|
|
90
|
+
return this._invoke("next", e);
|
|
91
|
+
}, d.prototype.throw = function(e) {
|
|
92
|
+
return this._invoke("throw", e);
|
|
93
|
+
}, d.prototype.return = function(e) {
|
|
94
|
+
return this._invoke("return", e);
|
|
95
|
+
};
|
|
96
|
+
var f = Object.entries, ee = Object.setPrototypeOf, te = Object.isFrozen, ne = Object.getPrototypeOf, re = Object.getOwnPropertyDescriptor, p = Object.freeze, m = Object.seal, ie = Object.create, ae = typeof Reflect < "u" && Reflect, oe = ae.apply, se = ae.construct;
|
|
44
97
|
p ||= function(e) {
|
|
45
98
|
return e;
|
|
46
99
|
}, m ||= function(e) {
|
|
47
100
|
return e;
|
|
48
|
-
},
|
|
101
|
+
}, oe ||= function(e, t) {
|
|
49
102
|
var n = [...arguments].slice(2);
|
|
50
103
|
return e.apply(t, n);
|
|
51
|
-
},
|
|
104
|
+
}, se ||= function(e) {
|
|
52
105
|
return new e(...[...arguments].slice(1));
|
|
53
106
|
};
|
|
54
|
-
var
|
|
107
|
+
var ce = v(Array.prototype.forEach);
|
|
108
|
+
Array.prototype.indexOf;
|
|
109
|
+
var le = v(Array.prototype.lastIndexOf), ue = v(Array.prototype.pop), de = v(Array.prototype.push), fe = v(Array.prototype.slice), pe = v(Array.prototype.splice), me = Array.isArray, he = ke(Set), ge = v(Set.prototype.add), _e = v(Set.prototype.has), ve = v(String.prototype.toLowerCase), ye = v(String.prototype.toString), be = v(String.prototype.match), xe = v(String.prototype.replace), Se = v(String.prototype.indexOf), Ce = v(String.prototype.trim), we = v(Number.prototype.toString), Te = v(Boolean.prototype.toString), Ee = typeof BigInt > "u" ? null : v(BigInt.prototype.toString), De = typeof Symbol > "u" ? null : v(Symbol.prototype.toString), h = v(Object.prototype.hasOwnProperty), g = v(Object.prototype.toString), _ = v(RegExp.prototype.test), Oe = ke(TypeError);
|
|
55
110
|
function v(e) {
|
|
56
111
|
return function(t) {
|
|
57
112
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
58
113
|
var n = [...arguments].slice(1);
|
|
59
|
-
return
|
|
114
|
+
return oe(e, t, n);
|
|
60
115
|
};
|
|
61
116
|
}
|
|
62
|
-
function
|
|
117
|
+
function ke(e) {
|
|
63
118
|
return function() {
|
|
64
|
-
return
|
|
119
|
+
return se(e, [...arguments]);
|
|
65
120
|
};
|
|
66
121
|
}
|
|
67
122
|
function y(e, t) {
|
|
68
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
69
|
-
if (
|
|
123
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ve;
|
|
124
|
+
if (ee && ee(e, null), !me(t)) return e;
|
|
70
125
|
let r = t.length;
|
|
71
126
|
for (; r--;) {
|
|
72
127
|
let i = t[r];
|
|
73
128
|
if (typeof i == "string") {
|
|
74
129
|
let e = n(i);
|
|
75
|
-
e !== i && (
|
|
130
|
+
e !== i && (te(t) || (t[r] = e), i = e);
|
|
76
131
|
}
|
|
77
132
|
e[i] = !0;
|
|
78
133
|
}
|
|
79
134
|
return e;
|
|
80
135
|
}
|
|
81
|
-
function
|
|
82
|
-
for (let t = 0; t < e.length; t++)
|
|
136
|
+
function Ae(e) {
|
|
137
|
+
for (let t = 0; t < e.length; t++) h(e, t) || (e[t] = null);
|
|
83
138
|
return e;
|
|
84
139
|
}
|
|
85
|
-
function
|
|
86
|
-
let t =
|
|
87
|
-
for (let r of
|
|
88
|
-
var n =
|
|
140
|
+
function b(e) {
|
|
141
|
+
let t = ie(null);
|
|
142
|
+
for (let r of f(e)) {
|
|
143
|
+
var n = l(r, 2);
|
|
89
144
|
let i = n[0], a = n[1];
|
|
90
|
-
|
|
145
|
+
h(e, i) && (t[i] = me(a) ? Ae(a) : a && typeof a == "object" && a.constructor === Object ? b(a) : a);
|
|
91
146
|
}
|
|
92
147
|
return t;
|
|
93
148
|
}
|
|
94
|
-
function
|
|
149
|
+
function je(e) {
|
|
95
150
|
switch (typeof e) {
|
|
96
151
|
case "string": return e;
|
|
97
|
-
case "number": return
|
|
98
|
-
case "boolean": return
|
|
99
|
-
case "bigint": return
|
|
100
|
-
case "symbol": return
|
|
101
|
-
case "undefined": return
|
|
152
|
+
case "number": return we(e);
|
|
153
|
+
case "boolean": return Te(e);
|
|
154
|
+
case "bigint": return Ee ? Ee(e) : "0";
|
|
155
|
+
case "symbol": return De ? De(e) : "Symbol()";
|
|
156
|
+
case "undefined": return g(e);
|
|
102
157
|
case "function":
|
|
103
158
|
case "object": {
|
|
104
|
-
if (e === null) return
|
|
105
|
-
let t = e, n =
|
|
159
|
+
if (e === null) return g(e);
|
|
160
|
+
let t = e, n = x(t, "toString");
|
|
106
161
|
if (typeof n == "function") {
|
|
107
162
|
let e = n(t);
|
|
108
|
-
return typeof e == "string" ? e :
|
|
163
|
+
return typeof e == "string" ? e : g(e);
|
|
109
164
|
}
|
|
110
|
-
return
|
|
165
|
+
return g(e);
|
|
111
166
|
}
|
|
112
|
-
default: return
|
|
167
|
+
default: return g(e);
|
|
113
168
|
}
|
|
114
169
|
}
|
|
115
|
-
function
|
|
170
|
+
function x(e, t) {
|
|
116
171
|
for (; e !== null;) {
|
|
117
|
-
let n =
|
|
172
|
+
let n = re(e, t);
|
|
118
173
|
if (n) {
|
|
119
174
|
if (n.get) return v(n.get);
|
|
120
175
|
if (typeof n.value == "function") return v(n.value);
|
|
121
176
|
}
|
|
122
|
-
e =
|
|
177
|
+
e = ne(e);
|
|
123
178
|
}
|
|
124
179
|
function n() {
|
|
125
180
|
return null;
|
|
126
181
|
}
|
|
127
182
|
return n;
|
|
128
183
|
}
|
|
129
|
-
function
|
|
184
|
+
function Me(e, t) {
|
|
185
|
+
for (; e !== null;) {
|
|
186
|
+
let n = re(e, t);
|
|
187
|
+
if (n) return n.get ? v(n.get) : null;
|
|
188
|
+
e = ne(e);
|
|
189
|
+
}
|
|
190
|
+
return null;
|
|
191
|
+
}
|
|
192
|
+
function Ne(e) {
|
|
130
193
|
try {
|
|
131
194
|
return _(e, ""), !0;
|
|
132
195
|
} catch {
|
|
133
196
|
return !1;
|
|
134
197
|
}
|
|
135
198
|
}
|
|
136
|
-
var
|
|
199
|
+
var Pe = 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(".")), Fe = 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(".")), Ie = p([
|
|
137
200
|
"feBlend",
|
|
138
201
|
"feColorMatrix",
|
|
139
202
|
"feComponentTransfer",
|
|
@@ -159,7 +222,7 @@ var Ee = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
159
222
|
"feSpotLight",
|
|
160
223
|
"feTile",
|
|
161
224
|
"feTurbulence"
|
|
162
|
-
]),
|
|
225
|
+
]), Le = p([
|
|
163
226
|
"animate",
|
|
164
227
|
"color-profile",
|
|
165
228
|
"cursor",
|
|
@@ -182,7 +245,7 @@ var Ee = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
182
245
|
"solidcolor",
|
|
183
246
|
"unknown",
|
|
184
247
|
"use"
|
|
185
|
-
]),
|
|
248
|
+
]), Re = 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(".")), ze = p([
|
|
186
249
|
"maction",
|
|
187
250
|
"maligngroup",
|
|
188
251
|
"malignmark",
|
|
@@ -198,13 +261,13 @@ var Ee = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
198
261
|
"annotation-xml",
|
|
199
262
|
"mprescripts",
|
|
200
263
|
"none"
|
|
201
|
-
]),
|
|
264
|
+
]), Be = p(["#text"]), Ve = 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(".")), He = 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(".")), Ue = 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(".")), We = p([
|
|
202
265
|
"xlink:href",
|
|
203
266
|
"xml:id",
|
|
204
267
|
"xlink:title",
|
|
205
268
|
"xml:space",
|
|
206
269
|
"xmlns:xlink"
|
|
207
|
-
]),
|
|
270
|
+
]), Ge = m(/{{[\w\W]*|^[\w\W]*}}/g), Ke = m(/<%[\w\W]*|^[\w\W]*%>/g), qe = m(/\${[\w\W]*/g), Je = m(/^data-[\-\w.\u00B7-\uFFFF]+$/), Ye = m(/^aria-[\-\w]+$/), Xe = m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Ze = m(/^(?:\w+script|data):/i), Qe = m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), $e = m(/^html$/i), et = m(/^[a-z][.\w]*(-[.\w]+)+$/i), tt = m(/<[/\w!]/g), nt = m(/<[/\w]/g), rt = m(/<\/no(script|embed|frames)/i), it = m(/\/>/i), S = {
|
|
208
271
|
element: 1,
|
|
209
272
|
attribute: 2,
|
|
210
273
|
text: 3,
|
|
@@ -217,7 +280,7 @@ var Ee = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
217
280
|
documentType: 10,
|
|
218
281
|
documentFragment: 11,
|
|
219
282
|
notation: 12
|
|
220
|
-
},
|
|
283
|
+
}, at = p(y({}, [
|
|
221
284
|
"style",
|
|
222
285
|
"script",
|
|
223
286
|
"xmp",
|
|
@@ -226,14 +289,9 @@ var Ee = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
226
289
|
"noframes",
|
|
227
290
|
"plaintext",
|
|
228
291
|
"noscript"
|
|
229
|
-
]
|
|
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() {
|
|
292
|
+
])), ot = function() {
|
|
235
293
|
return typeof window > "u" ? null : window;
|
|
236
|
-
},
|
|
294
|
+
}, st = function(e, t) {
|
|
237
295
|
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
238
296
|
let n = null, r = "data-tt-policy-suffix";
|
|
239
297
|
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
@@ -250,7 +308,7 @@ var Ee = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
250
308
|
} catch {
|
|
251
309
|
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
252
310
|
}
|
|
253
|
-
},
|
|
311
|
+
}, ct = function() {
|
|
254
312
|
return {
|
|
255
313
|
afterSanitizeAttributes: [],
|
|
256
314
|
afterSanitizeElements: [],
|
|
@@ -262,60 +320,62 @@ var Ee = p(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
262
320
|
uponSanitizeElement: [],
|
|
263
321
|
uponSanitizeShadowNode: []
|
|
264
322
|
};
|
|
265
|
-
},
|
|
266
|
-
return
|
|
267
|
-
},
|
|
268
|
-
let r =
|
|
269
|
-
return r && typeof r == "object" ?
|
|
323
|
+
}, lt = function(e, t, n, r) {
|
|
324
|
+
return h(e, t) && me(e[t]) ? y(r.base ? b(r.base) : {}, e[t], r.transform) : n;
|
|
325
|
+
}, ut = function(e, t, n) {
|
|
326
|
+
let r = h(e, t) ? e[t] : void 0;
|
|
327
|
+
return r && typeof r == "object" ? b(r) : n();
|
|
270
328
|
};
|
|
271
|
-
function
|
|
272
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
273
|
-
if (t.version = "3.4.
|
|
329
|
+
function dt() {
|
|
330
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ot(), t = (e) => dt(e);
|
|
331
|
+
if (t.version = "3.4.17", t.removed = [], !e || !e.document || e.document.nodeType !== S.document || !e.Element) return t.isSupported = !1, t;
|
|
274
332
|
let n = e.document, r = n, i = r.currentScript;
|
|
275
333
|
e.DocumentFragment;
|
|
276
334
|
let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
|
|
277
335
|
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
278
|
-
let l = e.DOMParser,
|
|
279
|
-
return
|
|
280
|
-
},
|
|
281
|
-
return
|
|
336
|
+
let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, ee = x(d, "cloneNode"), te = x(d, "remove"), ne = x(d, "removeAttributeNode"), re = x(d, "nextSibling"), ae = x(d, "childNodes"), oe = x(d, "parentNode"), se = x(d, "shadowRoot"), we = x(d, "attributes"), Te = o && o.prototype ? x(o.prototype, "nodeType") : null, Ee = o && o.prototype ? x(o.prototype, "nodeName") : null, De = o && o.prototype ? x(o.prototype, "ownerDocument") : null, g = function(e) {
|
|
337
|
+
return Te ? Te(e) : e.nodeType;
|
|
338
|
+
}, v = function(e) {
|
|
339
|
+
return Ee ? Ee(e) : e.nodeName;
|
|
340
|
+
}, ke = Me(d, "namespaceURI"), Ae = function(e) {
|
|
341
|
+
return ke ? ke(e) : e.namespaceURI;
|
|
282
342
|
};
|
|
283
343
|
if (typeof a == "function") {
|
|
284
344
|
let e = n.createElement("template");
|
|
285
345
|
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
286
346
|
}
|
|
287
|
-
let
|
|
288
|
-
if (E > 0) throw
|
|
289
|
-
},
|
|
290
|
-
|
|
347
|
+
let C, w = "", T, ft = !1, E = 0, pt = function() {
|
|
348
|
+
if (E > 0) throw Oe("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.");
|
|
349
|
+
}, D = function(e) {
|
|
350
|
+
pt(), E++;
|
|
291
351
|
try {
|
|
292
|
-
return
|
|
352
|
+
return C.createHTML(e);
|
|
293
353
|
} finally {
|
|
294
354
|
E--;
|
|
295
355
|
}
|
|
296
|
-
},
|
|
297
|
-
|
|
356
|
+
}, mt = function(e) {
|
|
357
|
+
pt(), E++;
|
|
298
358
|
try {
|
|
299
|
-
return
|
|
359
|
+
return C.createScriptURL(e);
|
|
300
360
|
} finally {
|
|
301
361
|
E--;
|
|
302
362
|
}
|
|
303
|
-
},
|
|
304
|
-
return
|
|
305
|
-
},
|
|
306
|
-
t.isSupported = typeof
|
|
307
|
-
let
|
|
308
|
-
...Ee,
|
|
309
|
-
...De,
|
|
310
|
-
...Oe,
|
|
311
|
-
...Ae,
|
|
312
|
-
...Me
|
|
313
|
-
]), B = null, V = y({}, [
|
|
314
|
-
...Ne,
|
|
363
|
+
}, ht = function() {
|
|
364
|
+
return ft ||= (T = st(u, i), !0), T;
|
|
365
|
+
}, gt = n, _t = gt.implementation, O = gt.createNodeIterator, vt = gt.createDocumentFragment, k = gt.getElementsByTagName, yt = r.importNode, A = ct();
|
|
366
|
+
t.isSupported = typeof f == "function" && typeof oe == "function" && _t && _t.createHTMLDocument !== void 0;
|
|
367
|
+
let j = Ge, bt = Ke, M = qe, N = Je, P = Ye, xt = Ze, F = Qe, St = et, Ct = Xe, I = null, wt = y({}, [
|
|
315
368
|
...Pe,
|
|
316
369
|
...Fe,
|
|
317
|
-
...Ie
|
|
318
|
-
|
|
370
|
+
...Ie,
|
|
371
|
+
...Re,
|
|
372
|
+
...Be
|
|
373
|
+
]), L = null, Tt = y({}, [
|
|
374
|
+
...Ve,
|
|
375
|
+
...He,
|
|
376
|
+
...Ue,
|
|
377
|
+
...We
|
|
378
|
+
]), R = Object.seal(ie(null, {
|
|
319
379
|
tagNameCheck: {
|
|
320
380
|
writable: !0,
|
|
321
381
|
configurable: !1,
|
|
@@ -334,7 +394,7 @@ function it() {
|
|
|
334
394
|
enumerable: !0,
|
|
335
395
|
value: !1
|
|
336
396
|
}
|
|
337
|
-
})),
|
|
397
|
+
})), z = null, Et = null, Dt = Object.seal(ie(null, {
|
|
338
398
|
tagCheck: {
|
|
339
399
|
writable: !0,
|
|
340
400
|
configurable: !1,
|
|
@@ -347,14 +407,14 @@ function it() {
|
|
|
347
407
|
enumerable: !0,
|
|
348
408
|
value: null
|
|
349
409
|
}
|
|
350
|
-
})),
|
|
410
|
+
})), Ot = !0, kt = !0, At = !1, B = !0, V = !1, H = !0, U = !1, jt = !1, W = null, Mt = null, Nt = !1, Pt = !1, Ft = !1, It = !1, Lt = !0, Rt = !1, zt = "user-content-", Bt = !0, Vt = !1, Ht = null, Ut = {}, Wt = null, Gt = 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(".")), Kt = null, qt = y({}, [
|
|
351
411
|
"audio",
|
|
352
412
|
"video",
|
|
353
413
|
"img",
|
|
354
414
|
"source",
|
|
355
415
|
"image",
|
|
356
416
|
"track"
|
|
357
|
-
]),
|
|
417
|
+
]), Jt = null, Yt = y({}, [
|
|
358
418
|
"alt",
|
|
359
419
|
"class",
|
|
360
420
|
"for",
|
|
@@ -369,227 +429,260 @@ function it() {
|
|
|
369
429
|
"value",
|
|
370
430
|
"style",
|
|
371
431
|
"xmlns"
|
|
372
|
-
]),
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
],
|
|
432
|
+
]), Xt = "http://www.w3.org/1998/Math/MathML", Zt = "http://www.w3.org/2000/svg", G = "http://www.w3.org/1999/xhtml", K = G, q = !1, Qt = null, $t = y({}, [
|
|
433
|
+
Xt,
|
|
434
|
+
Zt,
|
|
435
|
+
G
|
|
436
|
+
], ye), en = p([
|
|
377
437
|
"mi",
|
|
378
438
|
"mo",
|
|
379
439
|
"mn",
|
|
380
440
|
"ms",
|
|
381
441
|
"mtext"
|
|
382
|
-
]),
|
|
442
|
+
]), tn = y({}, en), nn = p(["annotation-xml"]), rn = y({}, nn), an = y({}, [
|
|
383
443
|
"title",
|
|
384
444
|
"style",
|
|
385
445
|
"font",
|
|
386
446
|
"a",
|
|
387
447
|
"script"
|
|
388
|
-
]),
|
|
448
|
+
]), on = null, sn = ["application/xhtml+xml", "text/html"], J = null, Y = null, cn = n.createElement("form"), ln = function(e) {
|
|
389
449
|
return e instanceof RegExp || e instanceof Function;
|
|
390
|
-
},
|
|
450
|
+
}, un = function() {
|
|
391
451
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
392
|
-
if (
|
|
393
|
-
(!e || typeof e != "object") && (e = {}), e =
|
|
394
|
-
transform:
|
|
395
|
-
base:
|
|
396
|
-
}),
|
|
397
|
-
transform:
|
|
398
|
-
base:
|
|
399
|
-
}),
|
|
400
|
-
let t =
|
|
401
|
-
if (
|
|
452
|
+
if (Y && Y === e) return;
|
|
453
|
+
(!e || typeof e != "object") && (e = {}), e = b(e), on = sn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = on === "application/xhtml+xml" ? ye : ve, I = lt(e, "ALLOWED_TAGS", wt, { transform: J }), L = lt(e, "ALLOWED_ATTR", Tt, { transform: J }), Qt = lt(e, "ALLOWED_NAMESPACES", $t, { transform: ye }), Jt = lt(e, "ADD_URI_SAFE_ATTR", Yt, {
|
|
454
|
+
transform: J,
|
|
455
|
+
base: Yt
|
|
456
|
+
}), Kt = lt(e, "ADD_DATA_URI_TAGS", qt, {
|
|
457
|
+
transform: J,
|
|
458
|
+
base: qt
|
|
459
|
+
}), Wt = lt(e, "FORBID_CONTENTS", Gt, { transform: J }), z = lt(e, "FORBID_TAGS", b({}), { transform: J }), Et = lt(e, "FORBID_ATTR", b({}), { transform: J }), Ut = h(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? b(e.USE_PROFILES) : e.USE_PROFILES : !1, Ot = e.ALLOW_ARIA_ATTR !== !1, kt = e.ALLOW_DATA_ATTR !== !1, At = e.ALLOW_UNKNOWN_PROTOCOLS || !1, B = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, V = e.SAFE_FOR_TEMPLATES || !1, H = e.SAFE_FOR_XML !== !1, U = e.WHOLE_DOCUMENT || !1, Pt = e.RETURN_DOM || !1, Ft = e.RETURN_DOM_FRAGMENT || !1, It = e.RETURN_TRUSTED_TYPE || !1, Nt = e.FORCE_BODY || !1, Lt = e.SANITIZE_DOM !== !1, Rt = e.SANITIZE_NAMED_PROPS || !1, Bt = e.KEEP_CONTENT !== !1, Vt = e.IN_PLACE || !1, Ct = Ne(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : Xe, K = typeof e.NAMESPACE == "string" ? e.NAMESPACE : G, tn = ut(e, "MATHML_TEXT_INTEGRATION_POINTS", () => y({}, en)), rn = ut(e, "HTML_INTEGRATION_POINTS", () => y({}, nn));
|
|
460
|
+
let t = ut(e, "CUSTOM_ELEMENT_HANDLING", () => ie(null));
|
|
461
|
+
if (R = ie(null), h(t, "tagNameCheck") && ln(t.tagNameCheck) && (R.tagNameCheck = t.tagNameCheck), h(t, "attributeNameCheck") && ln(t.attributeNameCheck) && (R.attributeNameCheck = t.attributeNameCheck), h(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (R.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), m(R), V && (kt = !1), Ft && (Pt = !0), Ut && (I = y({}, Be), L = ie(null), Ut.html === !0 && (y(I, Pe), y(L, Ve)), Ut.svg === !0 && (y(I, Fe), y(L, He), y(L, We)), Ut.svgFilters === !0 && (y(I, Ie), y(L, He), y(L, We)), Ut.mathMl === !0 && (y(I, Re), y(L, Ue), y(L, We))), Dt.tagCheck = null, Dt.attributeCheck = null, h(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? Dt.tagCheck = e.ADD_TAGS : me(e.ADD_TAGS) && (I === wt && (I = b(I)), y(I, e.ADD_TAGS, J))), h(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? Dt.attributeCheck = e.ADD_ATTR : me(e.ADD_ATTR) && (L === Tt && (L = b(L)), y(L, e.ADD_ATTR, J))), h(e, "ADD_FORBID_CONTENTS") && me(e.ADD_FORBID_CONTENTS) && (Wt === Gt && (Wt = b(Wt)), y(Wt, e.ADD_FORBID_CONTENTS, J)), Bt && (I["#text"] = !0), U && y(I, [
|
|
402
462
|
"html",
|
|
403
463
|
"head",
|
|
404
464
|
"body"
|
|
405
|
-
]),
|
|
406
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw
|
|
407
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw
|
|
408
|
-
let t =
|
|
409
|
-
|
|
465
|
+
]), I.table && (y(I, ["tbody"]), delete z.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
466
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Oe("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
467
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Oe("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
468
|
+
let t = C;
|
|
469
|
+
C = e.TRUSTED_TYPES_POLICY;
|
|
410
470
|
try {
|
|
411
|
-
w =
|
|
471
|
+
w = D("");
|
|
412
472
|
} catch (e) {
|
|
413
|
-
throw
|
|
473
|
+
throw C = t, e;
|
|
414
474
|
}
|
|
415
|
-
} else e.TRUSTED_TYPES_POLICY === null ? (
|
|
416
|
-
p && p(e),
|
|
417
|
-
},
|
|
418
|
-
...
|
|
419
|
-
...
|
|
420
|
-
...
|
|
421
|
-
]),
|
|
422
|
-
return t.namespaceURI ===
|
|
423
|
-
},
|
|
424
|
-
return t.namespaceURI ===
|
|
425
|
-
},
|
|
426
|
-
return t.namespaceURI ===
|
|
427
|
-
},
|
|
428
|
-
let t =
|
|
429
|
-
(
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
});
|
|
433
|
-
let n = fe(e.tagName), r = fe(t.tagName);
|
|
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) {
|
|
436
|
-
le(t.removed, { element: e });
|
|
475
|
+
} else e.TRUSTED_TYPES_POLICY === null ? (C = void 0, w = "") : (C === void 0 && (C = ht()), C && typeof w == "string" && (w = D("")));
|
|
476
|
+
p && p(e), Y = e;
|
|
477
|
+
}, dn = y({}, [
|
|
478
|
+
...Fe,
|
|
479
|
+
...Ie,
|
|
480
|
+
...Le
|
|
481
|
+
]), fn = y({}, [...Re, ...ze]), X = function(e, t, n) {
|
|
482
|
+
return t.namespaceURI === G ? e === "svg" : t.namespaceURI === Xt ? e === "svg" && (n === "annotation-xml" || tn[n]) : !!dn[e];
|
|
483
|
+
}, pn = function(e, t, n) {
|
|
484
|
+
return t.namespaceURI === G ? e === "math" : t.namespaceURI === Zt ? e === "math" && rn[n] : !!fn[e];
|
|
485
|
+
}, mn = function(e, t, n) {
|
|
486
|
+
return t.namespaceURI === Zt && !rn[n] || t.namespaceURI === Xt && !tn[n] ? !1 : !fn[e] && (an[e] || !dn[e]);
|
|
487
|
+
}, hn = function(e) {
|
|
488
|
+
let t = Ae(e), n = ve(v(e)), r = oe(e), i, a;
|
|
489
|
+
return r && g(r) === S.element ? (i = { namespaceURI: Ae(r) }, a = ve(v(r))) : (i = { namespaceURI: K }, a = "template"), Qt[t] ? t === Zt ? X(n, i, a) : t === Xt ? pn(n, i, a) : t === G ? mn(n, i, a) : !!(on === "application/xhtml+xml" && Qt[t]) : !1;
|
|
490
|
+
}, Z = function(e) {
|
|
491
|
+
de(t.removed, { element: e });
|
|
437
492
|
try {
|
|
438
|
-
|
|
493
|
+
oe(e).removeChild(e);
|
|
439
494
|
} catch {
|
|
440
|
-
if (te(e), !
|
|
495
|
+
if (te(e), !oe(e)) throw Oe("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
441
496
|
}
|
|
442
|
-
},
|
|
497
|
+
}, gn = function(e, t, n) {
|
|
443
498
|
try {
|
|
444
|
-
e
|
|
499
|
+
ne(e, t);
|
|
445
500
|
} catch {
|
|
446
501
|
try {
|
|
447
502
|
e.removeAttribute(n);
|
|
448
503
|
} catch {}
|
|
449
504
|
}
|
|
450
|
-
},
|
|
451
|
-
|
|
452
|
-
let t =
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
te(e);
|
|
460
|
-
} catch {}
|
|
461
|
-
});
|
|
462
|
-
}
|
|
463
|
-
let n = ye(e);
|
|
505
|
+
}, _n = function(e) {
|
|
506
|
+
bn(e);
|
|
507
|
+
let t = ae(e);
|
|
508
|
+
t && ce(fe(t), (e) => {
|
|
509
|
+
try {
|
|
510
|
+
te(e);
|
|
511
|
+
} catch {}
|
|
512
|
+
});
|
|
513
|
+
let n = g(e) === S.element ? we(e) : null;
|
|
464
514
|
if (n) for (let t = n.length - 1; t >= 0; --t) {
|
|
465
515
|
let r = n[t], i = r && r.name;
|
|
466
|
-
typeof i == "string" &&
|
|
516
|
+
typeof i == "string" && gn(e, r, i);
|
|
467
517
|
}
|
|
468
|
-
},
|
|
518
|
+
}, Q = function(e, n, r) {
|
|
469
519
|
if (!r) try {
|
|
470
520
|
r = n.getAttributeNode(e);
|
|
471
521
|
} catch {
|
|
472
522
|
r = null;
|
|
473
523
|
}
|
|
474
|
-
|
|
524
|
+
de(t.removed, {
|
|
475
525
|
attribute: r || null,
|
|
476
526
|
from: n
|
|
477
527
|
});
|
|
478
528
|
try {
|
|
479
|
-
r ? n
|
|
529
|
+
r ? ne(n, r) : n.removeAttribute(e);
|
|
480
530
|
} catch {
|
|
481
531
|
try {
|
|
482
532
|
n.removeAttribute(e);
|
|
483
533
|
} catch {}
|
|
484
534
|
}
|
|
485
535
|
if (e === "is") {
|
|
486
|
-
if (
|
|
487
|
-
|
|
536
|
+
if (Pt || Ft) try {
|
|
537
|
+
Z(n);
|
|
488
538
|
} catch {}
|
|
489
539
|
else try {
|
|
490
540
|
n.setAttribute(e, "");
|
|
491
541
|
} catch {}
|
|
492
542
|
}
|
|
493
|
-
},
|
|
494
|
-
let t =
|
|
543
|
+
}, vn = function(e) {
|
|
544
|
+
let t = we(e);
|
|
495
545
|
if (t) for (let n = t.length - 1; n >= 0; --n) {
|
|
496
546
|
let r = t[n], i = r && r.name;
|
|
497
|
-
typeof i != "string" ||
|
|
547
|
+
typeof i != "string" || L[J(i)] || gn(e, r, i);
|
|
498
548
|
}
|
|
499
|
-
},
|
|
500
|
-
let
|
|
501
|
-
for (;
|
|
502
|
-
let e =
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
549
|
+
}, yn = function(e, t) {
|
|
550
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], r = [e];
|
|
551
|
+
for (; r.length > 0;) {
|
|
552
|
+
let e = r.pop();
|
|
553
|
+
if (t(e) === !1) continue;
|
|
554
|
+
if (n && g(e) === S.element) {
|
|
555
|
+
let t = se(e);
|
|
556
|
+
Fn(t) && r.push(t);
|
|
557
|
+
}
|
|
558
|
+
let i = ae(e);
|
|
559
|
+
if (i) for (let e = i.length - 1; e >= 0; --e) r.push(i[e]);
|
|
506
560
|
}
|
|
507
|
-
},
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
561
|
+
}, bn = function(e) {
|
|
562
|
+
yn(e, (e) => {
|
|
563
|
+
g(e) === S.element && vn(e);
|
|
564
|
+
});
|
|
565
|
+
}, xn = function(e) {
|
|
566
|
+
let t = [];
|
|
567
|
+
return yn(e, (e) => {
|
|
568
|
+
t.push(e);
|
|
569
|
+
}, !0), t;
|
|
570
|
+
}, Sn = function(e, t) {
|
|
571
|
+
let n = he();
|
|
572
|
+
ce(xn(e), (e) => {
|
|
573
|
+
g(e) === S.element && ge(n, e);
|
|
574
|
+
}), ce(t, (e) => {
|
|
575
|
+
g(e) === S.element && !_e(n, e) && vn(e);
|
|
576
|
+
});
|
|
577
|
+
}, Cn = function(e, n) {
|
|
578
|
+
let r = !1;
|
|
579
|
+
return ce(t.removed, (t) => {
|
|
580
|
+
t.element && (r ||= t.element === e, bn(t.element));
|
|
581
|
+
}), Sn(e, n), r;
|
|
582
|
+
}, wn = function(e, t) {
|
|
583
|
+
let n = Ht, r = null, i = () => (r || (r = he(), ce(t, (e) => {
|
|
584
|
+
ge(r, e);
|
|
585
|
+
})), r);
|
|
586
|
+
for (let t = 0;; t++) {
|
|
587
|
+
let r = xn(e), a = [e], o = !1;
|
|
588
|
+
if (ce(r, (e) => {
|
|
589
|
+
g(e) === S.documentFragment ? de(a, e) : !o && !_e(n, e) && (o = _e(i(), e));
|
|
590
|
+
}), !o) return;
|
|
591
|
+
if (t >= 8) throw Oe("the tree kept changing during in-place sanitization; refusing to return it");
|
|
592
|
+
ce(a, (t, n) => {
|
|
593
|
+
Tn(t, n > 0, e, i());
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
}, Tn = function(e, t, n, r) {
|
|
597
|
+
let i = An(e), a;
|
|
598
|
+
for (; a = i.nextNode();) _e(r, a) && !_e(Ht, a) && (t && $(A.uponSanitizeShadowNode, a, null), Hn(a, n), Yn(a, n), Fn(a.content) && Xn(a.content));
|
|
599
|
+
}, En = function(e) {
|
|
600
|
+
Ht && ge(Ht, e);
|
|
601
|
+
}, Dn = function(e, t) {
|
|
602
|
+
return H ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
|
|
603
|
+
}, On = function(e) {
|
|
604
|
+
H && yn(e, (e) => {
|
|
605
|
+
let t = g(e);
|
|
606
|
+
if (t === S.processingInstruction || t === S.comment && _(nt, e.data)) {
|
|
515
607
|
try {
|
|
516
608
|
te(e);
|
|
517
609
|
} catch {}
|
|
518
|
-
|
|
610
|
+
return !1;
|
|
519
611
|
}
|
|
520
|
-
if (
|
|
521
|
-
let t = e, n =
|
|
612
|
+
if (t === S.element) {
|
|
613
|
+
let t = e, n = J(v(e));
|
|
522
614
|
try {
|
|
523
|
-
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") &&
|
|
615
|
+
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && Dn("for", n) && t.removeAttribute("for");
|
|
524
616
|
} catch {}
|
|
525
617
|
}
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
}, hn = function(e) {
|
|
618
|
+
return !0;
|
|
619
|
+
});
|
|
620
|
+
}, kn = function(e) {
|
|
530
621
|
let t = null, r = null;
|
|
531
|
-
if (
|
|
622
|
+
if (Nt) e = "<remove></remove>" + e;
|
|
532
623
|
else {
|
|
533
|
-
let t =
|
|
624
|
+
let t = be(e, /^[\r\n\t ]+/);
|
|
534
625
|
r = t && t[0];
|
|
535
626
|
}
|
|
536
|
-
|
|
537
|
-
let i =
|
|
538
|
-
if (
|
|
539
|
-
t = new l().parseFromString(i,
|
|
627
|
+
on === "application/xhtml+xml" && K === G && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
628
|
+
let i = C ? D(e) : e;
|
|
629
|
+
if (K === G) try {
|
|
630
|
+
t = new l().parseFromString(i, on);
|
|
540
631
|
} catch {}
|
|
541
632
|
if (!t || !t.documentElement) {
|
|
542
|
-
t =
|
|
633
|
+
t = _t.createDocument(K, "template", null);
|
|
543
634
|
try {
|
|
544
|
-
t.documentElement.innerHTML =
|
|
635
|
+
t.documentElement.innerHTML = q ? w : i;
|
|
545
636
|
} catch {}
|
|
546
637
|
}
|
|
547
638
|
let a = t.body || t.documentElement;
|
|
548
|
-
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null),
|
|
549
|
-
},
|
|
550
|
-
let t =
|
|
551
|
-
return
|
|
552
|
-
},
|
|
553
|
-
return e =
|
|
554
|
-
},
|
|
555
|
-
e
|
|
556
|
-
let t =
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
i && oe(i, (e) => {
|
|
560
|
-
bn(e.content) && vn(e.content);
|
|
639
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), K === G ? k.call(t, U ? "html" : "body")[0] : U ? t.documentElement : a;
|
|
640
|
+
}, An = function(e) {
|
|
641
|
+
let t = De ? De(e) : e.ownerDocument;
|
|
642
|
+
return O.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
643
|
+
}, jn = function(e) {
|
|
644
|
+
return e = xe(e, j, " "), e = xe(e, bt, " "), e = xe(e, M, " "), e;
|
|
645
|
+
}, Mn = function(e) {
|
|
646
|
+
Nn(e);
|
|
647
|
+
let t = e.querySelectorAll?.call(e, "template");
|
|
648
|
+
t && ce(t, (e) => {
|
|
649
|
+
Fn(e.content) && Mn(e.content);
|
|
561
650
|
});
|
|
562
|
-
},
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
651
|
+
}, Nn = function(e) {
|
|
652
|
+
e.normalize();
|
|
653
|
+
let t = De ? De(e) : e.ownerDocument, n = O.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
|
|
654
|
+
for (; r;) r.data = jn(r.data), r = n.nextNode();
|
|
655
|
+
}, Pn = function(e) {
|
|
656
|
+
let t = Ee ? Ee(e) : null;
|
|
657
|
+
return typeof t != "string" || J(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== we(e) || typeof e.removeAttribute != "function" || typeof e.removeAttributeNode != "function" || typeof e.getAttributeNode != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function" || e.nodeType !== Te(e) || e.childNodes !== ae(e);
|
|
658
|
+
}, Fn = function(e) {
|
|
659
|
+
if (!Te || typeof e != "object" || !e) return !1;
|
|
567
660
|
try {
|
|
568
|
-
return
|
|
661
|
+
return Te(e) === S.documentFragment;
|
|
569
662
|
} catch {
|
|
570
663
|
return !1;
|
|
571
664
|
}
|
|
572
|
-
},
|
|
573
|
-
if (!
|
|
665
|
+
}, In = function(e) {
|
|
666
|
+
if (!Te || typeof e != "object" || !e) return !1;
|
|
574
667
|
try {
|
|
575
|
-
return typeof
|
|
668
|
+
return typeof Te(e) == "number";
|
|
576
669
|
} catch {
|
|
577
670
|
return !1;
|
|
578
671
|
}
|
|
579
672
|
};
|
|
580
673
|
function $(e, n, r) {
|
|
581
|
-
e.length !== 0 &&
|
|
582
|
-
e.call(t, n, r,
|
|
674
|
+
e.length !== 0 && ce(e, (e) => {
|
|
675
|
+
e.call(t, n, r, Y);
|
|
583
676
|
});
|
|
584
677
|
}
|
|
585
|
-
let
|
|
586
|
-
return !!(
|
|
587
|
-
},
|
|
678
|
+
let Ln = function(e, t) {
|
|
679
|
+
return !!(H && e.hasChildNodes() && !In(e.firstElementChild) && _(tt, e.textContent) && _(tt, e.innerHTML) || H && at[t] && g(e) === S.element && Ae(e) === G && (In(e.firstElementChild) || typeof e.textContent == "string" && _(tt, e.textContent)) || e.nodeType === S.processingInstruction || H && e.nodeType === S.comment && _(nt, e.data));
|
|
680
|
+
}, Rn = function(e, t) {
|
|
588
681
|
return e instanceof RegExp ? _(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
|
|
589
|
-
},
|
|
590
|
-
if (!
|
|
591
|
-
if (
|
|
592
|
-
let t =
|
|
682
|
+
}, zn = function(e, t, n) {
|
|
683
|
+
if (!z[t] && Gn(t) && Rn(R.tagNameCheck, t)) return !1;
|
|
684
|
+
if (Bt && !Wt[t] && !Wt[ve(t)]) {
|
|
685
|
+
let t = oe(e), r = ae(e);
|
|
593
686
|
if (r && t) {
|
|
594
687
|
let i = r.length;
|
|
595
688
|
for (let a = i - 1; a >= 0; --a) {
|
|
@@ -598,35 +691,35 @@ function it() {
|
|
|
598
691
|
}
|
|
599
692
|
}
|
|
600
693
|
}
|
|
601
|
-
return
|
|
602
|
-
},
|
|
603
|
-
return e.length === 0 ? t : t === n || t === r ?
|
|
604
|
-
},
|
|
605
|
-
return e === t ||
|
|
606
|
-
},
|
|
607
|
-
if ($(
|
|
608
|
-
if (
|
|
609
|
-
let r =
|
|
610
|
-
if (
|
|
694
|
+
return Z(e), !0;
|
|
695
|
+
}, Bn = function(e, t, n, r) {
|
|
696
|
+
return e.length === 0 ? t : t === n || t === r ? b(t) : t;
|
|
697
|
+
}, Vn = function(e, t) {
|
|
698
|
+
return e === t || oe(e) !== null ? !1 : (Vt && bn(e), !0);
|
|
699
|
+
}, Hn = function(e, n) {
|
|
700
|
+
if (En(e), $(A.beforeSanitizeElements, e, null), Vn(e, n)) return !0;
|
|
701
|
+
if (Pn(e)) return Z(e), !0;
|
|
702
|
+
let r = J(v(e));
|
|
703
|
+
if (I = Bn(A.uponSanitizeElement, I, wt, W), $(A.uponSanitizeElement, e, {
|
|
611
704
|
tagName: r,
|
|
612
|
-
allowedTags:
|
|
613
|
-
}),
|
|
614
|
-
if (
|
|
615
|
-
if (
|
|
616
|
-
let t =
|
|
617
|
-
return t === !1 && $(
|
|
705
|
+
allowedTags: I
|
|
706
|
+
}), Vn(e, n)) return !0;
|
|
707
|
+
if (Ln(e, r)) return Z(e), !0;
|
|
708
|
+
if (z[r] || !(Dt.tagCheck instanceof Function && Dt.tagCheck(r)) && !I[r]) {
|
|
709
|
+
let t = zn(e, r, n);
|
|
710
|
+
return t === !1 && ($(A.afterSanitizeElements, e, null), Vn(e, n)) ? !0 : t;
|
|
618
711
|
}
|
|
619
|
-
if (
|
|
620
|
-
if (
|
|
621
|
-
let n =
|
|
622
|
-
e.textContent !== n && (
|
|
712
|
+
if (g(e) === S.element && !hn(e) || (r === "noscript" || r === "noembed" || r === "noframes") && _(rt, e.innerHTML)) return Z(e), !0;
|
|
713
|
+
if (V && e.nodeType === S.text) {
|
|
714
|
+
let n = jn(e.textContent);
|
|
715
|
+
e.textContent !== n && (de(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
623
716
|
}
|
|
624
|
-
return $(
|
|
625
|
-
},
|
|
626
|
-
if (
|
|
627
|
-
let i =
|
|
628
|
-
return
|
|
629
|
-
},
|
|
717
|
+
return $(A.afterSanitizeElements, e, null), Vn(e, n);
|
|
718
|
+
}, Un = function(e, t, r) {
|
|
719
|
+
if (Et[t] || Dn(t, e) || Lt && (t === "id" || t === "name") && (r in n || r in cn)) return !1;
|
|
720
|
+
let i = L[t] || Dt.attributeCheck instanceof Function && Dt.attributeCheck(t, e);
|
|
721
|
+
return kt && _(N, t) || Ot && _(P, t) ? !0 : i ? Jt[t] || _(Ct, xe(r, F, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && Se(r, "data:") === 0 && Kt[e] || At && !_(xt, xe(r, F, "")) ? !0 : !r : Gn(e) && Rn(R.tagNameCheck, e) && Rn(R.attributeNameCheck, t, e) || t === "is" && R.allowCustomizedBuiltInElements && Rn(R.tagNameCheck, r);
|
|
722
|
+
}, Wn = y({}, [
|
|
630
723
|
"annotation-xml",
|
|
631
724
|
"color-profile",
|
|
632
725
|
"font-face",
|
|
@@ -635,67 +728,47 @@ function it() {
|
|
|
635
728
|
"font-face-src",
|
|
636
729
|
"font-face-uri",
|
|
637
730
|
"missing-glyph"
|
|
638
|
-
]),
|
|
639
|
-
return !
|
|
640
|
-
},
|
|
641
|
-
if (
|
|
642
|
-
case "TrustedHTML": return
|
|
643
|
-
case "TrustedScriptURL": return
|
|
731
|
+
]), Gn = function(e) {
|
|
732
|
+
return !Wn[ve(e)] && _(St, e);
|
|
733
|
+
}, Kn = function(e, t, n, r) {
|
|
734
|
+
if (C && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
|
|
735
|
+
case "TrustedHTML": return D(r);
|
|
736
|
+
case "TrustedScriptURL": return mt(r);
|
|
644
737
|
}
|
|
645
738
|
return r;
|
|
646
|
-
},
|
|
739
|
+
}, qn = function(e, t, n, r) {
|
|
647
740
|
try {
|
|
648
|
-
|
|
741
|
+
return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !Pn(e) || (Z(e), !1);
|
|
649
742
|
} catch {
|
|
650
|
-
|
|
743
|
+
return Q(t, e), !1;
|
|
651
744
|
}
|
|
652
|
-
},
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
if (
|
|
656
|
-
|
|
657
|
-
|
|
745
|
+
}, Jn = function(e, t) {
|
|
746
|
+
return H && _(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, t) ? !0 : ve(e) === "attributename" && be(t, "href") !== null;
|
|
747
|
+
}, Yn = function(e, n) {
|
|
748
|
+
if ($(A.beforeSanitizeAttributes, e, null), Vn(e, n)) return;
|
|
749
|
+
let r = e.attributes;
|
|
750
|
+
if (!r || Pn(e)) return;
|
|
751
|
+
L = Bn(A.uponSanitizeAttribute, L, Tt, Mt);
|
|
752
|
+
let i = {
|
|
658
753
|
attrName: "",
|
|
659
754
|
attrValue: "",
|
|
660
755
|
keepAttr: !0,
|
|
661
|
-
allowedAttributes:
|
|
756
|
+
allowedAttributes: L,
|
|
662
757
|
forceKeepAttr: void 0
|
|
663
|
-
},
|
|
664
|
-
for (;
|
|
665
|
-
let
|
|
666
|
-
|
|
667
|
-
Z(o, e, a);
|
|
668
|
-
continue;
|
|
669
|
-
}
|
|
670
|
-
if (l === "attributename" && me(d, "href")) {
|
|
671
|
-
Z(o, e, a);
|
|
672
|
-
continue;
|
|
673
|
-
}
|
|
674
|
-
if (!n.forceKeepAttr) {
|
|
675
|
-
if (!n.keepAttr) {
|
|
676
|
-
Z(o, e, a);
|
|
677
|
-
continue;
|
|
678
|
-
}
|
|
679
|
-
if (!xt && _(Xe, d)) {
|
|
680
|
-
Z(o, e, a);
|
|
681
|
-
continue;
|
|
682
|
-
}
|
|
683
|
-
if (U && (d = _n(d)), !Dn(i, l, d)) {
|
|
684
|
-
Z(o, e, a);
|
|
685
|
-
continue;
|
|
686
|
-
}
|
|
687
|
-
d = An(i, l, s, d), d !== u && jn(e, o, s, d);
|
|
688
|
-
}
|
|
758
|
+
}, a = r.length, o = J(e.nodeName);
|
|
759
|
+
for (; a--;) {
|
|
760
|
+
let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = J(s), d = l, f = s === "value" ? d : Ce(d), ee = !1;
|
|
761
|
+
i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, $(A.uponSanitizeAttribute, e, i), f = i.attrValue, Rt && (u === "id" || u === "name") && Se(f, zt) !== 0 && (Q(s, e, n), f = zt + f, ee = !0), Jn(s, f) ? Q(s, e, n) : i.forceKeepAttr || (i.keepAttr ? !B && _(it, f) ? Q(s, e, n) : (V && (f = jn(f)), Un(o, u, f) ? (f = Kn(o, u, c, f), f !== d && qn(e, s, c, f) && ee && ue(t.removed)) : Q(s, e, n)) : Q(s, e, n));
|
|
689
762
|
}
|
|
690
|
-
$(
|
|
691
|
-
},
|
|
692
|
-
let t = null, n =
|
|
693
|
-
for ($(
|
|
694
|
-
let e =
|
|
695
|
-
|
|
763
|
+
$(A.afterSanitizeAttributes, e, null), Vn(e, n);
|
|
764
|
+
}, Xn = function(e) {
|
|
765
|
+
let t = null, n = An(e);
|
|
766
|
+
for ($(A.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(A.uponSanitizeShadowNode, t, null), Hn(t, e), Yn(t, e), Fn(t.content) && Xn(t.content), g(t) === S.element) {
|
|
767
|
+
let e = se(t);
|
|
768
|
+
Fn(e) && (Zn(e), Xn(e));
|
|
696
769
|
}
|
|
697
|
-
$(
|
|
698
|
-
},
|
|
770
|
+
V && Nn(e), $(A.afterSanitizeShadowDOM, e, null);
|
|
771
|
+
}, Zn = function(e) {
|
|
699
772
|
let t = [{
|
|
700
773
|
node: e,
|
|
701
774
|
shadow: null
|
|
@@ -703,27 +776,27 @@ function it() {
|
|
|
703
776
|
for (; t.length > 0;) {
|
|
704
777
|
let e = t.pop();
|
|
705
778
|
if (e.shadow) {
|
|
706
|
-
|
|
779
|
+
Xn(e.shadow);
|
|
707
780
|
continue;
|
|
708
781
|
}
|
|
709
|
-
let n = e.node, r =
|
|
782
|
+
let n = e.node, r = g(n) === S.element, i = ae(n);
|
|
710
783
|
if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
|
|
711
784
|
node: i[e],
|
|
712
785
|
shadow: null
|
|
713
786
|
});
|
|
714
787
|
if (r) {
|
|
715
|
-
let e =
|
|
716
|
-
if (typeof e == "string" &&
|
|
788
|
+
let e = Ee ? Ee(n) : null;
|
|
789
|
+
if (typeof e == "string" && J(e) === "template") {
|
|
717
790
|
let e = n.content;
|
|
718
|
-
|
|
791
|
+
Fn(e) && t.push({
|
|
719
792
|
node: e,
|
|
720
793
|
shadow: null
|
|
721
794
|
});
|
|
722
795
|
}
|
|
723
796
|
}
|
|
724
797
|
if (r) {
|
|
725
|
-
let e =
|
|
726
|
-
|
|
798
|
+
let e = se(n);
|
|
799
|
+
Fn(e) && t.push({
|
|
727
800
|
node: null,
|
|
728
801
|
shadow: e
|
|
729
802
|
}, {
|
|
@@ -735,74 +808,73 @@ function it() {
|
|
|
735
808
|
};
|
|
736
809
|
return t.sanitize = function(e) {
|
|
737
810
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
738
|
-
if (
|
|
811
|
+
if (q = !e, q && (e = "<!-->"), typeof e != "string" && !In(e) && (e = je(e), typeof e != "string")) throw Oe("dirty is not a string, aborting");
|
|
739
812
|
if (!t.isSupported) return e;
|
|
740
|
-
|
|
741
|
-
let c =
|
|
813
|
+
jt ? (I = W, L = Mt) : un(n), (A.uponSanitizeElement.length > 0 || A.uponSanitizeAttribute.length > 0) && (I = b(I)), A.uponSanitizeAttribute.length > 0 && (L = b(L)), t.removed = [];
|
|
814
|
+
let c = Vt && typeof e != "string" && In(e), l = [], u = Ht;
|
|
742
815
|
if (c) {
|
|
743
|
-
|
|
744
|
-
let t =
|
|
816
|
+
On(e);
|
|
817
|
+
let t = v(e);
|
|
745
818
|
if (typeof t == "string") {
|
|
746
|
-
let n =
|
|
747
|
-
if (!
|
|
748
|
-
}
|
|
749
|
-
if (yn(e)) throw un(e), Se("root node is clobbered and cannot be sanitized in-place");
|
|
750
|
-
try {
|
|
751
|
-
Pn(e);
|
|
752
|
-
} catch (t) {
|
|
753
|
-
throw un(e), t;
|
|
819
|
+
let n = J(t);
|
|
820
|
+
if (!I[n] || z[n]) throw _n(e), Oe("root node is forbidden and cannot be sanitized in-place");
|
|
754
821
|
}
|
|
755
|
-
|
|
822
|
+
if (Pn(e)) throw _n(e), Oe("root node is clobbered and cannot be sanitized in-place");
|
|
823
|
+
l = xn(e), Ht = he();
|
|
824
|
+
} else if (In(e)) i = kn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === S.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Zn(i);
|
|
756
825
|
else {
|
|
757
|
-
if (!
|
|
758
|
-
if (i =
|
|
826
|
+
if (!Pt && !V && !U && e.indexOf("<") === -1) return C && It ? D(e) : e;
|
|
827
|
+
if (i = kn(e), !i) return Pt ? null : It ? w : "";
|
|
759
828
|
}
|
|
760
|
-
i &&
|
|
761
|
-
let
|
|
829
|
+
i && Nt && Z(i.firstChild);
|
|
830
|
+
let d = c ? e : i;
|
|
762
831
|
try {
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
832
|
+
c && Zn(e);
|
|
833
|
+
let t = An(d);
|
|
834
|
+
for (; o = t.nextNode();) Hn(o, d), Yn(o, d), Fn(o.content) && Xn(o.content);
|
|
835
|
+
c && wn(e, l);
|
|
836
|
+
} catch (t) {
|
|
837
|
+
throw c && (_n(e), Cn(e, l)), t;
|
|
838
|
+
} finally {
|
|
839
|
+
Ht = u;
|
|
769
840
|
}
|
|
770
|
-
if (c)
|
|
771
|
-
e
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
841
|
+
if (c) {
|
|
842
|
+
if (Cn(e, l)) throw Oe("a node selected for removal could not be safely returned; refusing to sanitize in place");
|
|
843
|
+
return V && Mn(e), e;
|
|
844
|
+
}
|
|
845
|
+
if (Pt) {
|
|
846
|
+
if (V && Mn(i), Ft) for (s = vt.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
775
847
|
else s = i;
|
|
776
|
-
return (
|
|
848
|
+
return (L.shadowroot || L.shadowrootmode) && (s = yt.call(r, s, !0)), s;
|
|
777
849
|
}
|
|
778
|
-
let
|
|
779
|
-
return
|
|
850
|
+
let f = U ? i.outerHTML : i.innerHTML;
|
|
851
|
+
return U && I["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && _($e, i.ownerDocument.doctype.name) && (f = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + f), V && (f = jn(f)), C && It ? D(f) : f;
|
|
780
852
|
}, t.setConfig = function() {
|
|
781
853
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
782
|
-
|
|
854
|
+
un(e), jt = !0, W = I, Mt = L;
|
|
783
855
|
}, t.clearConfig = function() {
|
|
784
|
-
|
|
856
|
+
Y = null, jt = !1, W = null, Mt = null, C = T, w = "";
|
|
785
857
|
}, t.isValidAttribute = function(e, t, n) {
|
|
786
|
-
|
|
787
|
-
let r =
|
|
788
|
-
return
|
|
858
|
+
Y || un({});
|
|
859
|
+
let r = J(e), i = J(t);
|
|
860
|
+
return typeof n == "string" && (Jn(t, n) || !B && _(it, n)) ? !1 : Un(r, i, n);
|
|
789
861
|
}, t.addHook = function(e, t) {
|
|
790
|
-
typeof t == "function" &&
|
|
862
|
+
typeof t == "function" && h(A, e) && de(A[e], t);
|
|
791
863
|
}, t.removeHook = function(e, t) {
|
|
792
|
-
if (
|
|
864
|
+
if (h(A, e)) {
|
|
793
865
|
if (t !== void 0) {
|
|
794
|
-
let n =
|
|
795
|
-
return n === -1 ? void 0 :
|
|
866
|
+
let n = le(A[e], t);
|
|
867
|
+
return n === -1 ? void 0 : pe(A[e], n, 1)[0];
|
|
796
868
|
}
|
|
797
|
-
return
|
|
869
|
+
return ue(A[e]);
|
|
798
870
|
}
|
|
799
871
|
}, t.removeHooks = function(e) {
|
|
800
|
-
|
|
872
|
+
h(A, e) && (A[e] = []);
|
|
801
873
|
}, t.removeAllHooks = function() {
|
|
802
|
-
|
|
874
|
+
A = ct();
|
|
803
875
|
}, t;
|
|
804
876
|
}
|
|
805
|
-
var
|
|
877
|
+
var C = dt(), w = {
|
|
806
878
|
min: {
|
|
807
879
|
r: 0,
|
|
808
880
|
g: 0,
|
|
@@ -839,9 +911,9 @@ var T = it(), at = {
|
|
|
839
911
|
e /= 360, t /= 100, n /= 100;
|
|
840
912
|
let i = n < .5 ? n * (1 + t) : n + t - n * t, a = 2 * n - i;
|
|
841
913
|
switch (r) {
|
|
842
|
-
case "r": return
|
|
843
|
-
case "g": return
|
|
844
|
-
case "b": return
|
|
914
|
+
case "r": return w.hue2rgb(a, i, e + 1 / 3) * 255;
|
|
915
|
+
case "g": return w.hue2rgb(a, i, e) * 255;
|
|
916
|
+
case "b": return w.hue2rgb(a, i, e - 1 / 3) * 255;
|
|
845
917
|
}
|
|
846
918
|
},
|
|
847
919
|
rgb2hsl: ({ r: e, g: t, b: n }, r) => {
|
|
@@ -858,8 +930,8 @@ var T = it(), at = {
|
|
|
858
930
|
default: return -1;
|
|
859
931
|
}
|
|
860
932
|
}
|
|
861
|
-
},
|
|
862
|
-
channel:
|
|
933
|
+
}, T = {
|
|
934
|
+
channel: w,
|
|
863
935
|
lang: {
|
|
864
936
|
clamp: (e, t, n) => t > n ? Math.min(t, Math.max(n, e)) : Math.min(n, Math.max(t, e)),
|
|
865
937
|
round: (e) => Math.round(e * 1e10) / 1e10
|
|
@@ -868,15 +940,15 @@ var T = it(), at = {
|
|
|
868
940
|
let t = Math.round(e).toString(16);
|
|
869
941
|
return t.length > 1 ? t : `0${t}`;
|
|
870
942
|
} }
|
|
871
|
-
},
|
|
872
|
-
for (let e = 0; e <= 255; e++)
|
|
873
|
-
var
|
|
943
|
+
}, ft = {};
|
|
944
|
+
for (let e = 0; e <= 255; e++) ft[e] = T.unit.dec2hex(e);
|
|
945
|
+
var E = {
|
|
874
946
|
ALL: 0,
|
|
875
947
|
RGB: 1,
|
|
876
948
|
HSL: 2
|
|
877
|
-
},
|
|
949
|
+
}, pt = class {
|
|
878
950
|
constructor() {
|
|
879
|
-
this.type =
|
|
951
|
+
this.type = E.ALL;
|
|
880
952
|
}
|
|
881
953
|
get() {
|
|
882
954
|
return this.type;
|
|
@@ -886,70 +958,70 @@ var O = {
|
|
|
886
958
|
this.type = e;
|
|
887
959
|
}
|
|
888
960
|
reset() {
|
|
889
|
-
this.type =
|
|
961
|
+
this.type = E.ALL;
|
|
890
962
|
}
|
|
891
963
|
is(e) {
|
|
892
964
|
return this.type === e;
|
|
893
965
|
}
|
|
894
|
-
},
|
|
966
|
+
}, D = new class {
|
|
895
967
|
constructor(e, t) {
|
|
896
|
-
this.color = t, this.changed = !1, this.data = e, this.type = new
|
|
968
|
+
this.color = t, this.changed = !1, this.data = e, this.type = new pt();
|
|
897
969
|
}
|
|
898
970
|
set(e, t) {
|
|
899
|
-
return this.color = t, this.changed = !1, this.data = e, this.type.type =
|
|
971
|
+
return this.color = t, this.changed = !1, this.data = e, this.type.type = E.ALL, this;
|
|
900
972
|
}
|
|
901
973
|
_ensureHSL() {
|
|
902
974
|
let e = this.data, { h: t, s: n, l: r } = e;
|
|
903
|
-
t === void 0 && (e.h =
|
|
975
|
+
t === void 0 && (e.h = T.channel.rgb2hsl(e, "h")), n === void 0 && (e.s = T.channel.rgb2hsl(e, "s")), r === void 0 && (e.l = T.channel.rgb2hsl(e, "l"));
|
|
904
976
|
}
|
|
905
977
|
_ensureRGB() {
|
|
906
978
|
let e = this.data, { r: t, g: n, b: r } = e;
|
|
907
|
-
t === void 0 && (e.r =
|
|
979
|
+
t === void 0 && (e.r = T.channel.hsl2rgb(e, "r")), n === void 0 && (e.g = T.channel.hsl2rgb(e, "g")), r === void 0 && (e.b = T.channel.hsl2rgb(e, "b"));
|
|
908
980
|
}
|
|
909
981
|
get r() {
|
|
910
982
|
let e = this.data, t = e.r;
|
|
911
|
-
return !this.type.is(
|
|
983
|
+
return !this.type.is(E.HSL) && t !== void 0 ? t : (this._ensureHSL(), T.channel.hsl2rgb(e, "r"));
|
|
912
984
|
}
|
|
913
985
|
get g() {
|
|
914
986
|
let e = this.data, t = e.g;
|
|
915
|
-
return !this.type.is(
|
|
987
|
+
return !this.type.is(E.HSL) && t !== void 0 ? t : (this._ensureHSL(), T.channel.hsl2rgb(e, "g"));
|
|
916
988
|
}
|
|
917
989
|
get b() {
|
|
918
990
|
let e = this.data, t = e.b;
|
|
919
|
-
return !this.type.is(
|
|
991
|
+
return !this.type.is(E.HSL) && t !== void 0 ? t : (this._ensureHSL(), T.channel.hsl2rgb(e, "b"));
|
|
920
992
|
}
|
|
921
993
|
get h() {
|
|
922
994
|
let e = this.data, t = e.h;
|
|
923
|
-
return !this.type.is(
|
|
995
|
+
return !this.type.is(E.RGB) && t !== void 0 ? t : (this._ensureRGB(), T.channel.rgb2hsl(e, "h"));
|
|
924
996
|
}
|
|
925
997
|
get s() {
|
|
926
998
|
let e = this.data, t = e.s;
|
|
927
|
-
return !this.type.is(
|
|
999
|
+
return !this.type.is(E.RGB) && t !== void 0 ? t : (this._ensureRGB(), T.channel.rgb2hsl(e, "s"));
|
|
928
1000
|
}
|
|
929
1001
|
get l() {
|
|
930
1002
|
let e = this.data, t = e.l;
|
|
931
|
-
return !this.type.is(
|
|
1003
|
+
return !this.type.is(E.RGB) && t !== void 0 ? t : (this._ensureRGB(), T.channel.rgb2hsl(e, "l"));
|
|
932
1004
|
}
|
|
933
1005
|
get a() {
|
|
934
1006
|
return this.data.a;
|
|
935
1007
|
}
|
|
936
1008
|
set r(e) {
|
|
937
|
-
this.type.set(
|
|
1009
|
+
this.type.set(E.RGB), this.changed = !0, this.data.r = e;
|
|
938
1010
|
}
|
|
939
1011
|
set g(e) {
|
|
940
|
-
this.type.set(
|
|
1012
|
+
this.type.set(E.RGB), this.changed = !0, this.data.g = e;
|
|
941
1013
|
}
|
|
942
1014
|
set b(e) {
|
|
943
|
-
this.type.set(
|
|
1015
|
+
this.type.set(E.RGB), this.changed = !0, this.data.b = e;
|
|
944
1016
|
}
|
|
945
1017
|
set h(e) {
|
|
946
|
-
this.type.set(
|
|
1018
|
+
this.type.set(E.HSL), this.changed = !0, this.data.h = e;
|
|
947
1019
|
}
|
|
948
1020
|
set s(e) {
|
|
949
|
-
this.type.set(
|
|
1021
|
+
this.type.set(E.HSL), this.changed = !0, this.data.s = e;
|
|
950
1022
|
}
|
|
951
1023
|
set l(e) {
|
|
952
|
-
this.type.set(
|
|
1024
|
+
this.type.set(E.HSL), this.changed = !0, this.data.l = e;
|
|
953
1025
|
}
|
|
954
1026
|
set a(e) {
|
|
955
1027
|
this.changed = !0, this.data.a = e;
|
|
@@ -959,14 +1031,14 @@ var O = {
|
|
|
959
1031
|
g: 0,
|
|
960
1032
|
b: 0,
|
|
961
1033
|
a: 0
|
|
962
|
-
}, "transparent"),
|
|
1034
|
+
}, "transparent"), mt = {
|
|
963
1035
|
re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
|
|
964
1036
|
parse: (e) => {
|
|
965
1037
|
if (e.charCodeAt(0) !== 35) return;
|
|
966
|
-
let t = e.match(
|
|
1038
|
+
let t = e.match(mt.re);
|
|
967
1039
|
if (!t) return;
|
|
968
1040
|
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;
|
|
969
|
-
return
|
|
1041
|
+
return D.set({
|
|
970
1042
|
r: (r >> c * (l + 3) & u) * s,
|
|
971
1043
|
g: (r >> c * (l + 2) & u) * s,
|
|
972
1044
|
b: (r >> c * (l + 1) & u) * s,
|
|
@@ -975,41 +1047,41 @@ var O = {
|
|
|
975
1047
|
},
|
|
976
1048
|
stringify: (e) => {
|
|
977
1049
|
let { r: t, g: n, b: r, a: i } = e;
|
|
978
|
-
return i < 1 ? `#${
|
|
1050
|
+
return i < 1 ? `#${ft[Math.round(t)]}${ft[Math.round(n)]}${ft[Math.round(r)]}${ft[Math.round(i * 255)]}` : `#${ft[Math.round(t)]}${ft[Math.round(n)]}${ft[Math.round(r)]}`;
|
|
979
1051
|
}
|
|
980
|
-
},
|
|
1052
|
+
}, ht = {
|
|
981
1053
|
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,
|
|
982
1054
|
hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
|
|
983
1055
|
_hue2deg: (e) => {
|
|
984
|
-
let t = e.match(
|
|
1056
|
+
let t = e.match(ht.hueRe);
|
|
985
1057
|
if (t) {
|
|
986
1058
|
let [, e, n] = t;
|
|
987
1059
|
switch (n) {
|
|
988
|
-
case "grad": return
|
|
989
|
-
case "rad": return
|
|
990
|
-
case "turn": return
|
|
1060
|
+
case "grad": return T.channel.clamp.h(parseFloat(e) * .9);
|
|
1061
|
+
case "rad": return T.channel.clamp.h(parseFloat(e) * 180 / Math.PI);
|
|
1062
|
+
case "turn": return T.channel.clamp.h(parseFloat(e) * 360);
|
|
991
1063
|
}
|
|
992
1064
|
}
|
|
993
|
-
return
|
|
1065
|
+
return T.channel.clamp.h(parseFloat(e));
|
|
994
1066
|
},
|
|
995
1067
|
parse: (e) => {
|
|
996
1068
|
let t = e.charCodeAt(0);
|
|
997
1069
|
if (t !== 104 && t !== 72) return;
|
|
998
|
-
let n = e.match(
|
|
1070
|
+
let n = e.match(ht.re);
|
|
999
1071
|
if (!n) return;
|
|
1000
1072
|
let [, r, i, a, o, s] = n;
|
|
1001
|
-
return
|
|
1002
|
-
h:
|
|
1003
|
-
s:
|
|
1004
|
-
l:
|
|
1005
|
-
a: o ?
|
|
1073
|
+
return D.set({
|
|
1074
|
+
h: ht._hue2deg(r),
|
|
1075
|
+
s: T.channel.clamp.s(parseFloat(i)),
|
|
1076
|
+
l: T.channel.clamp.l(parseFloat(a)),
|
|
1077
|
+
a: o ? T.channel.clamp.a(s ? parseFloat(o) / 100 : parseFloat(o)) : 1
|
|
1006
1078
|
}, e);
|
|
1007
1079
|
},
|
|
1008
1080
|
stringify: (e) => {
|
|
1009
1081
|
let { h: t, s: n, l: r, a: i } = e;
|
|
1010
|
-
return i < 1 ? `hsla(${
|
|
1082
|
+
return i < 1 ? `hsla(${T.lang.round(t)}, ${T.lang.round(n)}%, ${T.lang.round(r)}%, ${i})` : `hsl(${T.lang.round(t)}, ${T.lang.round(n)}%, ${T.lang.round(r)}%)`;
|
|
1011
1083
|
}
|
|
1012
|
-
},
|
|
1084
|
+
}, gt = {
|
|
1013
1085
|
colors: {
|
|
1014
1086
|
aliceblue: "#f0f8ff",
|
|
1015
1087
|
antiquewhite: "#faebd7",
|
|
@@ -1161,80 +1233,137 @@ var O = {
|
|
|
1161
1233
|
},
|
|
1162
1234
|
parse: (e) => {
|
|
1163
1235
|
e = e.toLowerCase();
|
|
1164
|
-
let t =
|
|
1165
|
-
if (t) return
|
|
1236
|
+
let t = gt.colors[e];
|
|
1237
|
+
if (t) return mt.parse(t);
|
|
1166
1238
|
},
|
|
1167
1239
|
stringify: (e) => {
|
|
1168
|
-
let t =
|
|
1169
|
-
for (let e in
|
|
1240
|
+
let t = mt.stringify(e);
|
|
1241
|
+
for (let e in gt.colors) if (gt.colors[e] === t) return e;
|
|
1170
1242
|
}
|
|
1171
|
-
},
|
|
1243
|
+
}, _t = {
|
|
1172
1244
|
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,
|
|
1173
1245
|
parse: (e) => {
|
|
1174
1246
|
let t = e.charCodeAt(0);
|
|
1175
1247
|
if (t !== 114 && t !== 82) return;
|
|
1176
|
-
let n = e.match(
|
|
1248
|
+
let n = e.match(_t.re);
|
|
1177
1249
|
if (!n) return;
|
|
1178
1250
|
let [, r, i, a, o, s, c, l, u] = n;
|
|
1179
|
-
return
|
|
1180
|
-
r:
|
|
1181
|
-
g:
|
|
1182
|
-
b:
|
|
1183
|
-
a: l ?
|
|
1251
|
+
return D.set({
|
|
1252
|
+
r: T.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
|
|
1253
|
+
g: T.channel.clamp.g(o ? parseFloat(a) * 2.55 : parseFloat(a)),
|
|
1254
|
+
b: T.channel.clamp.b(c ? parseFloat(s) * 2.55 : parseFloat(s)),
|
|
1255
|
+
a: l ? T.channel.clamp.a(u ? parseFloat(l) / 100 : parseFloat(l)) : 1
|
|
1184
1256
|
}, e);
|
|
1185
1257
|
},
|
|
1186
1258
|
stringify: (e) => {
|
|
1187
1259
|
let { r: t, g: n, b: r, a: i } = e;
|
|
1188
|
-
return i < 1 ? `rgba(${
|
|
1260
|
+
return i < 1 ? `rgba(${T.lang.round(t)}, ${T.lang.round(n)}, ${T.lang.round(r)}, ${T.lang.round(i)})` : `rgb(${T.lang.round(t)}, ${T.lang.round(n)}, ${T.lang.round(r)})`;
|
|
1189
1261
|
}
|
|
1190
|
-
},
|
|
1262
|
+
}, O = {
|
|
1191
1263
|
format: {
|
|
1192
|
-
keyword:
|
|
1193
|
-
hex:
|
|
1194
|
-
rgb:
|
|
1195
|
-
rgba:
|
|
1196
|
-
hsl:
|
|
1197
|
-
hsla:
|
|
1264
|
+
keyword: gt,
|
|
1265
|
+
hex: mt,
|
|
1266
|
+
rgb: _t,
|
|
1267
|
+
rgba: _t,
|
|
1268
|
+
hsl: ht,
|
|
1269
|
+
hsla: ht
|
|
1198
1270
|
},
|
|
1199
1271
|
parse: (e) => {
|
|
1200
1272
|
if (typeof e != "string") return e;
|
|
1201
|
-
let t =
|
|
1273
|
+
let t = mt.parse(e) || _t.parse(e) || ht.parse(e) || gt.parse(e);
|
|
1202
1274
|
if (t) return t;
|
|
1203
1275
|
throw Error(`Unsupported color format: "${e}"`);
|
|
1204
1276
|
},
|
|
1205
|
-
stringify: (e) => !e.changed && e.color ? e.color : e.type.is(
|
|
1206
|
-
},
|
|
1207
|
-
let n =
|
|
1208
|
-
for (let e in t) n[e] =
|
|
1209
|
-
return
|
|
1210
|
-
},
|
|
1211
|
-
if (typeof e != "number") return
|
|
1212
|
-
let i =
|
|
1213
|
-
r:
|
|
1214
|
-
g:
|
|
1215
|
-
b:
|
|
1216
|
-
a:
|
|
1277
|
+
stringify: (e) => !e.changed && e.color ? e.color : e.type.is(E.HSL) || e.data.r === void 0 ? ht.stringify(e) : e.a < 1 || !Number.isInteger(e.r) || !Number.isInteger(e.g) || !Number.isInteger(e.b) ? _t.stringify(e) : mt.stringify(e)
|
|
1278
|
+
}, vt = (e, t) => {
|
|
1279
|
+
let n = O.parse(e);
|
|
1280
|
+
for (let e in t) n[e] = T.channel.clamp[e](t[e]);
|
|
1281
|
+
return O.stringify(n);
|
|
1282
|
+
}, k = (e, t, n = 0, r = 1) => {
|
|
1283
|
+
if (typeof e != "number") return vt(e, { a: t });
|
|
1284
|
+
let i = D.set({
|
|
1285
|
+
r: T.channel.clamp.r(e),
|
|
1286
|
+
g: T.channel.clamp.g(t),
|
|
1287
|
+
b: T.channel.clamp.b(n),
|
|
1288
|
+
a: T.channel.clamp.a(r)
|
|
1217
1289
|
});
|
|
1218
|
-
return
|
|
1219
|
-
},
|
|
1220
|
-
let { r: t, g: n, b: r } =
|
|
1221
|
-
return
|
|
1222
|
-
},
|
|
1223
|
-
let r =
|
|
1224
|
-
return i !== a && (r[t] = a),
|
|
1225
|
-
},
|
|
1226
|
-
let n =
|
|
1290
|
+
return O.stringify(i);
|
|
1291
|
+
}, yt = (e) => {
|
|
1292
|
+
let { r: t, g: n, b: r } = O.parse(e), i = .2126 * T.channel.toLinear(t) + .7152 * T.channel.toLinear(n) + .0722 * T.channel.toLinear(r);
|
|
1293
|
+
return T.lang.round(i);
|
|
1294
|
+
}, A = (e) => yt(e) >= .5, j = (e) => !A(e), bt = (e, t, n) => {
|
|
1295
|
+
let r = O.parse(e), i = r[t], a = T.channel.clamp[t](i + n);
|
|
1296
|
+
return i !== a && (r[t] = a), O.stringify(r);
|
|
1297
|
+
}, M = (e, t) => bt(e, "l", t), N = (e, t) => bt(e, "l", -t), P = (e, t) => {
|
|
1298
|
+
let n = O.parse(e), r = {};
|
|
1227
1299
|
for (let e in t) t[e] && (r[e] = n[e] + t[e]);
|
|
1228
|
-
return
|
|
1229
|
-
},
|
|
1230
|
-
let { r, g: i, b: a, a: o } =
|
|
1231
|
-
return
|
|
1232
|
-
},
|
|
1233
|
-
let n =
|
|
1234
|
-
return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b,
|
|
1235
|
-
},
|
|
1300
|
+
return vt(e, r);
|
|
1301
|
+
}, xt = (e, t, n = 50) => {
|
|
1302
|
+
let { r, g: i, b: a, a: o } = O.parse(e), { r: s, g: c, b: l, a: u } = O.parse(t), d = n / 100, f = d * 2 - 1, ee = o - u, te = ((f * ee === -1 ? f : (f + ee) / (1 + f * ee)) + 1) / 2, ne = 1 - te;
|
|
1303
|
+
return k(r * te + s * ne, i * te + c * ne, a * te + l * ne, o * d + u * (1 - d));
|
|
1304
|
+
}, F = (e, t = 100) => {
|
|
1305
|
+
let n = O.parse(e);
|
|
1306
|
+
return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, xt(n, e, t);
|
|
1307
|
+
}, St = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, Ct = /\s/, I = /* @__PURE__ */ e((e) => {
|
|
1308
|
+
let t = "", n = 0, r = 0;
|
|
1309
|
+
for (; r < e.length;) {
|
|
1310
|
+
let i = e.indexOf("%%", r);
|
|
1311
|
+
if (i === -1) break;
|
|
1312
|
+
let a = e.indexOf("\n", i);
|
|
1313
|
+
if (a === -1) break;
|
|
1314
|
+
let o = i;
|
|
1315
|
+
for (; o > n && Ct.test(e[o - 1]);) o--;
|
|
1316
|
+
t += e.slice(n, o) + "\n", n = a + 1, r = n;
|
|
1317
|
+
}
|
|
1318
|
+
return t + e.slice(n);
|
|
1319
|
+
}, "stripAnyComments"), wt = /* @__PURE__ */ e((e) => e === "\n" || e === "\r", "isLineBreak"), L = /* @__PURE__ */ e((e, t) => {
|
|
1320
|
+
let n = -1;
|
|
1321
|
+
for (let r = t; r < e.length && Ct.test(e[r]); r++) wt(e[r]) && (n = r);
|
|
1322
|
+
return n;
|
|
1323
|
+
}, "lastLineBreakInWhitespaceRun"), Tt = /* @__PURE__ */ e((t) => {
|
|
1324
|
+
let n = 0;
|
|
1325
|
+
for (; n < t.length && Ct.test(t[n]) && !wt(t[n]);) n++;
|
|
1326
|
+
let r = t.slice(0, n);
|
|
1327
|
+
if (!t.startsWith("---", n)) return;
|
|
1328
|
+
let i = [];
|
|
1329
|
+
for (let e = n + 3; e < t.length && Ct.test(t[e]); e++) wt(t[e]) && i.push(e);
|
|
1330
|
+
if (i.length === 0) return;
|
|
1331
|
+
let a = `${r}---`, o = /* @__PURE__ */ e((e) => wt(t[e]) && t.startsWith(a, e + 1) ? L(t, e + 1 + a.length) : -1, "closingEnd"), s = i[0] + 1, c = -1;
|
|
1332
|
+
for (let e = s; e < t.length; e++) o(e) !== -1 && (c = e);
|
|
1333
|
+
if (c === -1) return;
|
|
1334
|
+
let l = i[0];
|
|
1335
|
+
for (let e of i) e < c && (l = e);
|
|
1336
|
+
let u = l + 1;
|
|
1337
|
+
for (let e = u; e <= c; e++) {
|
|
1338
|
+
let n = o(e);
|
|
1339
|
+
if (n !== -1) return {
|
|
1340
|
+
indent: r,
|
|
1341
|
+
body: t.slice(u, e),
|
|
1342
|
+
length: n + 1
|
|
1343
|
+
};
|
|
1344
|
+
}
|
|
1345
|
+
}, "matchFrontMatter"), R = class extends Error {
|
|
1346
|
+
static {
|
|
1347
|
+
e(this, "UnknownDiagramError");
|
|
1348
|
+
}
|
|
1349
|
+
constructor(e) {
|
|
1350
|
+
super(e), this.name = "UnknownDiagramError";
|
|
1351
|
+
}
|
|
1352
|
+
}, z = {}, Et = /* @__PURE__ */ e(function(e, t) {
|
|
1353
|
+
let n = Tt(e);
|
|
1354
|
+
e = I((n ? e.slice(n.length) : e).replace(St, ""));
|
|
1355
|
+
for (let [n, { detector: r }] of Object.entries(z)) if (r(e, t)) return n;
|
|
1356
|
+
throw new R(`No diagram type detected matching given configuration for text: ${e}`);
|
|
1357
|
+
}, "detectType"), Dt = /* @__PURE__ */ e((...e) => {
|
|
1358
|
+
for (let { id: t, detector: n, loader: r } of e) Ot(t, n, r);
|
|
1359
|
+
}, "registerLazyLoadedDiagrams"), Ot = /* @__PURE__ */ e((e, t, n) => {
|
|
1360
|
+
z[e] && r.warn(`Detector with key ${e} already exists. Overwriting.`), z[e] = {
|
|
1361
|
+
detector: t,
|
|
1362
|
+
loader: n
|
|
1363
|
+
}, r.debug(`Detector with key ${e} added${n ? " with loader" : ""}`);
|
|
1364
|
+
}, "addDetector"), kt = /* @__PURE__ */ e((e) => z[e].loader, "getDiagramLoader"), At = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
1236
1365
|
let r = { depth: n };
|
|
1237
|
-
if (Array.isArray(t) && !Array.isArray(e)) return t.forEach((t) =>
|
|
1366
|
+
if (Array.isArray(t) && !Array.isArray(e)) return t.forEach((t) => At(e, t, r)), e;
|
|
1238
1367
|
if (Array.isArray(t) && Array.isArray(e)) return t.forEach((t) => {
|
|
1239
1368
|
e.includes(t) || e.push(t);
|
|
1240
1369
|
}), e;
|
|
@@ -1249,7 +1378,7 @@ var O = {
|
|
|
1249
1378
|
writable: !0,
|
|
1250
1379
|
enumerable: !0,
|
|
1251
1380
|
configurable: !0
|
|
1252
|
-
}), r[t] === void 0 && (r[t] = Array.isArray(i) ? [] : {}), typeof r[t] == "object" && (r[t] =
|
|
1381
|
+
}), r[t] === void 0 && (r[t] = Array.isArray(i) ? [] : {}), typeof r[t] == "object" && (r[t] = At(r[t], i, { depth: n - 1 }));
|
|
1253
1382
|
} else typeof r[t] != "object" && (Object.hasOwn(e, t) ? r[t] = i : Object.defineProperty(e, t, {
|
|
1254
1383
|
value: i,
|
|
1255
1384
|
writable: !0,
|
|
@@ -1259,73 +1388,76 @@ var O = {
|
|
|
1259
1388
|
});
|
|
1260
1389
|
}
|
|
1261
1390
|
return e;
|
|
1262
|
-
}, "assignWithDepth"),
|
|
1391
|
+
}, "assignWithDepth"), B = At, V = "#ffffff", H = "#f2f2f2", U = /* @__PURE__ */ e((e, t) => t ? P(e, {
|
|
1263
1392
|
s: -40,
|
|
1264
1393
|
l: 10
|
|
1265
|
-
}) :
|
|
1394
|
+
}) : P(e, {
|
|
1266
1395
|
s: -40,
|
|
1267
1396
|
l: -10
|
|
1268
|
-
}), "mkBorder"),
|
|
1397
|
+
}), "mkBorder"), jt = /* @__PURE__ */ e((e) => typeof e == "object" && !!e && !Array.isArray(e), "isPlainObject"), W = /* @__PURE__ */ e((e, t) => jt(e) && jt(t) ? {
|
|
1398
|
+
...e,
|
|
1399
|
+
...t
|
|
1400
|
+
} : t, "applyOverride"), Mt = class {
|
|
1269
1401
|
static {
|
|
1270
|
-
|
|
1402
|
+
e(this, "Theme");
|
|
1271
1403
|
}
|
|
1272
1404
|
constructor() {
|
|
1273
1405
|
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))";
|
|
1274
1406
|
}
|
|
1275
1407
|
updateColors() {
|
|
1276
|
-
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor ||
|
|
1408
|
+
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || P(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || P(this.primaryColor, {
|
|
1277
1409
|
h: 180,
|
|
1278
1410
|
l: 5
|
|
1279
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
1411
|
+
}), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || F(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || F(this.tertiaryColor), this.lineColor = this.lineColor || F(this.background), this.arrowheadColor = this.arrowheadColor || F(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 ? N(this.secondaryColor, 30) : this.secondaryColor), this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || N(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || F(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 || M(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 || N(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || N(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || M(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || M(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 || P(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || P(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || P(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || P(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || P(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || P(this.primaryColor, {
|
|
1280
1412
|
h: 210,
|
|
1281
1413
|
l: 150
|
|
1282
|
-
}), this.cScale9 = this.cScale9 ||
|
|
1283
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1284
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1285
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
1414
|
+
}), this.cScale9 = this.cScale9 || P(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || P(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || P(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 75);
|
|
1415
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 25);
|
|
1416
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
|
|
1417
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
|
|
1286
1418
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
1287
1419
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1288
1420
|
let e = this.darkMode ? -4 : -1;
|
|
1289
|
-
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] ||
|
|
1421
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || P(this.mainBkg, {
|
|
1290
1422
|
h: 180,
|
|
1291
1423
|
s: -15,
|
|
1292
1424
|
l: e * (5 + t * 3)
|
|
1293
|
-
}), this["surfacePeer" + t] = this["surfacePeer" + t] ||
|
|
1425
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || P(this.mainBkg, {
|
|
1294
1426
|
h: 180,
|
|
1295
1427
|
s: -15,
|
|
1296
1428
|
l: e * (8 + t * 3)
|
|
1297
1429
|
});
|
|
1298
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 ||
|
|
1430
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || P(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || P(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || P(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || P(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || P(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || P(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 || P(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || P(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || P(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || P(this.primaryColor, {
|
|
1299
1431
|
h: 60,
|
|
1300
1432
|
l: -10
|
|
1301
|
-
}), this.pie8 = this.pie8 ||
|
|
1433
|
+
}), this.pie8 = this.pie8 || P(this.primaryColor, {
|
|
1302
1434
|
h: -60,
|
|
1303
1435
|
l: -10
|
|
1304
|
-
}), this.pie9 = this.pie9 ||
|
|
1436
|
+
}), this.pie9 = this.pie9 || P(this.primaryColor, {
|
|
1305
1437
|
h: 120,
|
|
1306
1438
|
l: 0
|
|
1307
|
-
}), this.pie10 = this.pie10 ||
|
|
1439
|
+
}), this.pie10 = this.pie10 || P(this.primaryColor, {
|
|
1308
1440
|
h: 60,
|
|
1309
1441
|
l: -20
|
|
1310
|
-
}), this.pie11 = this.pie11 ||
|
|
1442
|
+
}), this.pie11 = this.pie11 || P(this.primaryColor, {
|
|
1311
1443
|
h: -60,
|
|
1312
1444
|
l: -20
|
|
1313
|
-
}), this.pie12 = this.pie12 ||
|
|
1445
|
+
}), this.pie12 = this.pie12 || P(this.primaryColor, {
|
|
1314
1446
|
h: 120,
|
|
1315
1447
|
l: -10
|
|
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 ??
|
|
1448
|
+
}), 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 ?? P(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? P(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? P(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? P(this.primaryColor, {
|
|
1317
1449
|
h: 60,
|
|
1318
1450
|
l: -30
|
|
1319
|
-
}), this.venn5 = this.venn5 ??
|
|
1451
|
+
}), this.venn5 = this.venn5 ?? P(this.primaryColor, {
|
|
1320
1452
|
h: -60,
|
|
1321
1453
|
l: -30
|
|
1322
|
-
}), this.venn6 = this.venn6 ??
|
|
1454
|
+
}), this.venn6 = this.venn6 ?? P(this.secondaryColor, {
|
|
1323
1455
|
h: 60,
|
|
1324
1456
|
l: -30
|
|
1325
|
-
}), this.venn7 = this.venn7 ??
|
|
1457
|
+
}), this.venn7 = this.venn7 ?? P(this.primaryColor, {
|
|
1326
1458
|
h: 120,
|
|
1327
1459
|
l: -30
|
|
1328
|
-
}), this.venn8 = this.venn8 ??
|
|
1460
|
+
}), this.venn8 = this.venn8 ?? P(this.secondaryColor, {
|
|
1329
1461
|
h: 120,
|
|
1330
1462
|
l: -30
|
|
1331
1463
|
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
|
|
@@ -1368,31 +1500,31 @@ var O = {
|
|
|
1368
1500
|
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
1369
1501
|
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
1370
1502
|
annotationFill: this.wardley?.annotationFill || this.background
|
|
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 ||
|
|
1503
|
+
}, 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 || P(this.primaryColor, {
|
|
1372
1504
|
r: 5,
|
|
1373
1505
|
g: 5,
|
|
1374
1506
|
b: 5
|
|
1375
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1507
|
+
}), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
|
|
1376
1508
|
r: 10,
|
|
1377
1509
|
g: 10,
|
|
1378
1510
|
b: 10
|
|
1379
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1511
|
+
}), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
|
|
1380
1512
|
r: 15,
|
|
1381
1513
|
g: 15,
|
|
1382
1514
|
b: 15
|
|
1383
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1515
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
|
|
1384
1516
|
r: -5,
|
|
1385
1517
|
g: -5,
|
|
1386
1518
|
b: -5
|
|
1387
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1519
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
|
|
1388
1520
|
r: -10,
|
|
1389
1521
|
g: -10,
|
|
1390
1522
|
b: -10
|
|
1391
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1523
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
|
|
1392
1524
|
r: -15,
|
|
1393
1525
|
g: -15,
|
|
1394
1526
|
b: -15
|
|
1395
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1527
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
|
|
1396
1528
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1397
1529
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1398
1530
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
@@ -1406,7 +1538,7 @@ var O = {
|
|
|
1406
1538
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1407
1539
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1408
1540
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
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 ?
|
|
1541
|
+
}, 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 ? N(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 || P(this.primaryColor, { h: -30 }), this.git4 = this.git4 || P(this.primaryColor, { h: -60 }), this.git5 = this.git5 || P(this.primaryColor, { h: -90 }), this.git6 = this.git6 || P(this.primaryColor, { h: 60 }), this.git7 = this.git7 || P(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
|
|
1410
1542
|
}
|
|
1411
1543
|
calculate(e) {
|
|
1412
1544
|
if (typeof e != "object") {
|
|
@@ -1417,28 +1549,28 @@ var O = {
|
|
|
1417
1549
|
t.forEach((t) => {
|
|
1418
1550
|
this[t] = e[t];
|
|
1419
1551
|
}), this.updateColors(), t.forEach((t) => {
|
|
1420
|
-
this[t] = e[t];
|
|
1421
|
-
});
|
|
1552
|
+
this[t] = W(this[t], e[t]);
|
|
1553
|
+
}), Object.hasOwn(e, "nodeBorder") && !Object.hasOwn(e, "useGradient") && (this.useGradient = !1);
|
|
1422
1554
|
}
|
|
1423
|
-
},
|
|
1424
|
-
let t = new
|
|
1555
|
+
}, Nt = /* @__PURE__ */ e((e) => {
|
|
1556
|
+
let t = new Mt();
|
|
1425
1557
|
return t.calculate(e), t;
|
|
1426
|
-
}, "getThemeVariables"),
|
|
1558
|
+
}, "getThemeVariables"), Pt = class {
|
|
1427
1559
|
static {
|
|
1428
|
-
|
|
1560
|
+
e(this, "Theme");
|
|
1429
1561
|
}
|
|
1430
1562
|
constructor() {
|
|
1431
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
1563
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = M(this.primaryColor, 16), this.tertiaryColor = P(this.primaryColor, { h: -160 }), this.primaryBorderColor = F(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = F(this.primaryColor), this.secondaryTextColor = F(this.secondaryColor), this.tertiaryTextColor = F(this.tertiaryColor), this.lineColor = F(this.background), this.textColor = F(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = M(F("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = k(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 = N("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = N(this.sectionBkgColor, 10), this.taskBorderColor = k(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = k(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 || M(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || N(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";
|
|
1432
1564
|
}
|
|
1433
1565
|
updateColors() {
|
|
1434
|
-
this.secondBkg =
|
|
1435
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1436
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
1437
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
1566
|
+
this.secondBkg = M(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 = M(this.labelBackground, 25), this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 = M(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 = F(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 = P(this.primaryColor, { h: 64 }), this.fillType3 = P(this.secondaryColor, { h: 64 }), this.fillType4 = P(this.primaryColor, { h: -64 }), this.fillType5 = P(this.secondaryColor, { h: -64 }), this.fillType6 = P(this.primaryColor, { h: 128 }), this.fillType7 = P(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 || P(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || P(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || P(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || P(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || P(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || P(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || P(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || P(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || P(this.primaryColor, { h: 330 });
|
|
1567
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
|
|
1568
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10);
|
|
1569
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, {
|
|
1438
1570
|
h: 30,
|
|
1439
1571
|
s: -30,
|
|
1440
1572
|
l: -(-10 + e * 4)
|
|
1441
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
1573
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, {
|
|
1442
1574
|
h: 30,
|
|
1443
1575
|
s: -30,
|
|
1444
1576
|
l: -(-7 + e * 4)
|
|
@@ -1447,7 +1579,7 @@ var O = {
|
|
|
1447
1579
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1448
1580
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
|
|
1449
1581
|
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";
|
|
1450
|
-
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ??
|
|
1582
|
+
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? M(this["cScale" + e], 30);
|
|
1451
1583
|
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
|
|
1452
1584
|
domainFontSize: this.cynefin?.domainFontSize || 16,
|
|
1453
1585
|
itemFontSize: this.cynefin?.itemFontSize || 12,
|
|
@@ -1464,31 +1596,31 @@ var O = {
|
|
|
1464
1596
|
confusionBg: this.cynefin?.confusionBg || "#4A148C",
|
|
1465
1597
|
textColor: this.cynefin?.textColor || this.textColor,
|
|
1466
1598
|
labelColor: this.cynefin?.labelColor || this.primaryTextColor
|
|
1467
|
-
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
1599
|
+
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || P(this.primaryColor, {
|
|
1468
1600
|
r: 5,
|
|
1469
1601
|
g: 5,
|
|
1470
1602
|
b: 5
|
|
1471
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1603
|
+
}), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
|
|
1472
1604
|
r: 10,
|
|
1473
1605
|
g: 10,
|
|
1474
1606
|
b: 10
|
|
1475
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1607
|
+
}), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
|
|
1476
1608
|
r: 15,
|
|
1477
1609
|
g: 15,
|
|
1478
1610
|
b: 15
|
|
1479
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1611
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
|
|
1480
1612
|
r: -5,
|
|
1481
1613
|
g: -5,
|
|
1482
1614
|
b: -5
|
|
1483
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1615
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
|
|
1484
1616
|
r: -10,
|
|
1485
1617
|
g: -10,
|
|
1486
1618
|
b: -10
|
|
1487
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1619
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
|
|
1488
1620
|
r: -15,
|
|
1489
1621
|
g: -15,
|
|
1490
1622
|
b: -15
|
|
1491
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1623
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
|
|
1492
1624
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1493
1625
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1494
1626
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
@@ -1533,7 +1665,7 @@ var O = {
|
|
|
1533
1665
|
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
1534
1666
|
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
1535
1667
|
annotationFill: this.wardley?.annotationFill || this.mainBkg
|
|
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 ?
|
|
1668
|
+
}, 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 ? N(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = M(this.secondaryColor, 20), this.git1 = M(this.pie2 || this.secondaryColor, 20), this.git2 = M(this.pie3 || this.tertiaryColor, 20), this.git3 = M(this.pie4 || P(this.primaryColor, { h: -30 }), 20), this.git4 = M(this.pie5 || P(this.primaryColor, { h: -60 }), 20), this.git5 = M(this.pie6 || P(this.primaryColor, { h: -90 }), 10), this.git6 = M(this.pie7 || P(this.primaryColor, { h: 60 }), 10), this.git7 = M(this.pie8 || P(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || F(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || F(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 || M("#5a3d5c", 10), this.emProcessorStroke = this.emProcessorStroke || "#8a6d8c", this.emReadModelFill = this.emReadModelFill || M("#3d5a2d", 10), this.emReadModelStroke = this.emReadModelStroke || "#6d8c5c", this.emCommandFill = this.emCommandFill || M("#2d3d5a", 10), this.emCommandStroke = this.emCommandStroke || "#5c6d8c", this.emEventFill = this.emEventFill || M("#5a452d", 10), this.emEventStroke = this.emEventStroke || "#8c755c", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || M(this.background, 5), this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || M(this.background, 12), this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || M(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || M(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
|
|
1537
1669
|
}
|
|
1538
1670
|
calculate(e) {
|
|
1539
1671
|
if (typeof e != "object") {
|
|
@@ -1544,65 +1676,65 @@ var O = {
|
|
|
1544
1676
|
t.forEach((t) => {
|
|
1545
1677
|
this[t] = e[t];
|
|
1546
1678
|
}), this.updateColors(), t.forEach((t) => {
|
|
1547
|
-
this[t] = e[t];
|
|
1679
|
+
this[t] = W(this[t], e[t]);
|
|
1548
1680
|
});
|
|
1549
1681
|
}
|
|
1550
|
-
},
|
|
1551
|
-
let t = new
|
|
1682
|
+
}, Ft = /* @__PURE__ */ e((e) => {
|
|
1683
|
+
let t = new Pt();
|
|
1552
1684
|
return t.calculate(e), t;
|
|
1553
|
-
}, "getThemeVariables"),
|
|
1685
|
+
}, "getThemeVariables"), It = class {
|
|
1554
1686
|
static {
|
|
1555
|
-
|
|
1687
|
+
e(this, "Theme");
|
|
1556
1688
|
}
|
|
1557
1689
|
constructor() {
|
|
1558
|
-
this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor =
|
|
1690
|
+
this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = P(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = P(this.primaryColor, { h: -160 }), this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = F(this.primaryColor), this.secondaryTextColor = F(this.secondaryColor), this.tertiaryTextColor = F(this.tertiaryColor), this.lineColor = F(this.background), this.textColor = F(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = U(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 = k(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();
|
|
1559
1691
|
}
|
|
1560
1692
|
updateColors() {
|
|
1561
|
-
this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 ||
|
|
1562
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1563
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1564
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
1693
|
+
this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || P(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || P(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || P(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || P(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || P(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || P(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || P(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || P(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || P(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || N(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || N(this.tertiaryColor, 40);
|
|
1694
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 25);
|
|
1695
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || P(this["cScale" + e], { h: 180 });
|
|
1696
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, {
|
|
1565
1697
|
h: 30,
|
|
1566
1698
|
l: -(5 + e * 5)
|
|
1567
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
1699
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, {
|
|
1568
1700
|
h: 30,
|
|
1569
1701
|
l: -(7 + e * 5)
|
|
1570
1702
|
});
|
|
1571
1703
|
if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
|
|
1572
|
-
this.cScaleLabel0 = this.cScaleLabel0 ||
|
|
1704
|
+
this.cScaleLabel0 = this.cScaleLabel0 || F(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || F(this.labelTextColor);
|
|
1573
1705
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
|
|
1574
1706
|
}
|
|
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 ||
|
|
1707
|
+
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.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || M(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || M(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 = P(this.primaryColor, { h: 64 }), this.fillType3 = P(this.secondaryColor, { h: 64 }), this.fillType4 = P(this.primaryColor, { h: -64 }), this.fillType5 = P(this.secondaryColor, { h: -64 }), this.fillType6 = P(this.primaryColor, { h: 128 }), this.fillType7 = P(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || P(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || P(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || P(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || P(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || P(this.primaryColor, {
|
|
1576
1708
|
h: 60,
|
|
1577
1709
|
l: -20
|
|
1578
|
-
}), this.pie8 = this.pie8 ||
|
|
1710
|
+
}), this.pie8 = this.pie8 || P(this.primaryColor, {
|
|
1579
1711
|
h: -60,
|
|
1580
1712
|
l: -40
|
|
1581
|
-
}), this.pie9 = this.pie9 ||
|
|
1713
|
+
}), this.pie9 = this.pie9 || P(this.primaryColor, {
|
|
1582
1714
|
h: 120,
|
|
1583
1715
|
l: -40
|
|
1584
|
-
}), this.pie10 = this.pie10 ||
|
|
1716
|
+
}), this.pie10 = this.pie10 || P(this.primaryColor, {
|
|
1585
1717
|
h: 60,
|
|
1586
1718
|
l: -40
|
|
1587
|
-
}), this.pie11 = this.pie11 ||
|
|
1719
|
+
}), this.pie11 = this.pie11 || P(this.primaryColor, {
|
|
1588
1720
|
h: -90,
|
|
1589
1721
|
l: -40
|
|
1590
|
-
}), this.pie12 = this.pie12 ||
|
|
1722
|
+
}), this.pie12 = this.pie12 || P(this.primaryColor, {
|
|
1591
1723
|
h: 120,
|
|
1592
1724
|
l: -30
|
|
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 ??
|
|
1725
|
+
}), 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 ?? P(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? P(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? P(this.tertiaryColor, { l: -40 }), this.venn4 = this.venn4 ?? P(this.primaryColor, {
|
|
1594
1726
|
h: 60,
|
|
1595
1727
|
l: -30
|
|
1596
|
-
}), this.venn5 = this.venn5 ??
|
|
1728
|
+
}), this.venn5 = this.venn5 ?? P(this.primaryColor, {
|
|
1597
1729
|
h: -60,
|
|
1598
1730
|
l: -30
|
|
1599
|
-
}), this.venn6 = this.venn6 ??
|
|
1731
|
+
}), this.venn6 = this.venn6 ?? P(this.secondaryColor, {
|
|
1600
1732
|
h: 60,
|
|
1601
1733
|
l: -30
|
|
1602
|
-
}), this.venn7 = this.venn7 ??
|
|
1734
|
+
}), this.venn7 = this.venn7 ?? P(this.primaryColor, {
|
|
1603
1735
|
h: 120,
|
|
1604
1736
|
l: -30
|
|
1605
|
-
}), this.venn8 = this.venn8 ??
|
|
1737
|
+
}), this.venn8 = this.venn8 ?? P(this.secondaryColor, {
|
|
1606
1738
|
h: 120,
|
|
1607
1739
|
l: -30
|
|
1608
1740
|
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
|
|
@@ -1621,31 +1753,31 @@ var O = {
|
|
|
1621
1753
|
confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
|
|
1622
1754
|
textColor: this.cynefin?.textColor || this.textColor,
|
|
1623
1755
|
labelColor: this.cynefin?.labelColor || this.primaryTextColor
|
|
1624
|
-
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
1756
|
+
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || P(this.primaryColor, {
|
|
1625
1757
|
r: 5,
|
|
1626
1758
|
g: 5,
|
|
1627
1759
|
b: 5
|
|
1628
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1760
|
+
}), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
|
|
1629
1761
|
r: 10,
|
|
1630
1762
|
g: 10,
|
|
1631
1763
|
b: 10
|
|
1632
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1764
|
+
}), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
|
|
1633
1765
|
r: 15,
|
|
1634
1766
|
g: 15,
|
|
1635
1767
|
b: 15
|
|
1636
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1768
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
|
|
1637
1769
|
r: -5,
|
|
1638
1770
|
g: -5,
|
|
1639
1771
|
b: -5
|
|
1640
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1772
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
|
|
1641
1773
|
r: -10,
|
|
1642
1774
|
g: -10,
|
|
1643
1775
|
b: -10
|
|
1644
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1776
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
|
|
1645
1777
|
r: -15,
|
|
1646
1778
|
g: -15,
|
|
1647
1779
|
b: -15
|
|
1648
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1780
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
|
|
1649
1781
|
axisColor: this.radar?.axisColor || this.lineColor,
|
|
1650
1782
|
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
|
|
1651
1783
|
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
|
|
@@ -1683,7 +1815,7 @@ var O = {
|
|
|
1683
1815
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1684
1816
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1685
1817
|
plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
|
|
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 ||
|
|
1818
|
+
}, 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 || P(this.primaryColor, { h: -30 }), this.git4 = this.git4 || P(this.primaryColor, { h: -60 }), this.git5 = this.git5 || P(this.primaryColor, { h: -90 }), this.git6 = this.git6 || P(this.primaryColor, { h: 60 }), this.git7 = this.git7 || P(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || N(F(this.git0), 25), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || F(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || F(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
1687
1819
|
}
|
|
1688
1820
|
calculate(e) {
|
|
1689
1821
|
if (Object.keys(this).forEach((e) => {
|
|
@@ -1696,68 +1828,68 @@ var O = {
|
|
|
1696
1828
|
t.forEach((t) => {
|
|
1697
1829
|
this[t] = e[t];
|
|
1698
1830
|
}), this.updateColors(), t.forEach((t) => {
|
|
1699
|
-
this[t] = e[t];
|
|
1831
|
+
this[t] = W(this[t], e[t]);
|
|
1700
1832
|
});
|
|
1701
1833
|
}
|
|
1702
|
-
},
|
|
1703
|
-
let t = new
|
|
1834
|
+
}, Lt = /* @__PURE__ */ e((e) => {
|
|
1835
|
+
let t = new It();
|
|
1704
1836
|
return t.calculate(e), t;
|
|
1705
|
-
}, "getThemeVariables"),
|
|
1837
|
+
}, "getThemeVariables"), Rt = class {
|
|
1706
1838
|
static {
|
|
1707
|
-
|
|
1839
|
+
e(this, "Theme");
|
|
1708
1840
|
}
|
|
1709
1841
|
constructor() {
|
|
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 =
|
|
1842
|
+
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 = M("#cde498", 10), this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = F(this.primaryColor), this.secondaryTextColor = F(this.secondaryColor), this.tertiaryTextColor = F(this.primaryColor), this.lineColor = F(this.background), this.textColor = F(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))";
|
|
1711
1843
|
}
|
|
1712
1844
|
updateColors() {
|
|
1713
|
-
this.actorBorder =
|
|
1714
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1715
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1845
|
+
this.actorBorder = N(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 || P(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || P(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || P(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || P(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || P(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || P(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || P(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || P(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || P(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || N(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || N(this.tertiaryColor, 40);
|
|
1846
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 25);
|
|
1847
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || P(this["cScale" + e], { h: 180 });
|
|
1716
1848
|
this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
|
|
1717
1849
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1718
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
1850
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, {
|
|
1719
1851
|
h: 30,
|
|
1720
1852
|
s: -30,
|
|
1721
1853
|
l: -(5 + e * 5)
|
|
1722
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
1854
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, {
|
|
1723
1855
|
h: 30,
|
|
1724
1856
|
s: -30,
|
|
1725
1857
|
l: -(8 + e * 5)
|
|
1726
1858
|
});
|
|
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 ||
|
|
1859
|
+
this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || M(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || M(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 = P(this.primaryColor, { h: 64 }), this.fillType3 = P(this.secondaryColor, { h: 64 }), this.fillType4 = P(this.primaryColor, { h: -64 }), this.fillType5 = P(this.secondaryColor, { h: -64 }), this.fillType6 = P(this.primaryColor, { h: 128 }), this.fillType7 = P(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 || P(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || P(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || P(this.tertiaryColor, {
|
|
1728
1860
|
h: 40,
|
|
1729
1861
|
l: -40
|
|
1730
|
-
}), this.pie7 = this.pie7 ||
|
|
1862
|
+
}), this.pie7 = this.pie7 || P(this.primaryColor, {
|
|
1731
1863
|
h: 60,
|
|
1732
1864
|
l: -10
|
|
1733
|
-
}), this.pie8 = this.pie8 ||
|
|
1865
|
+
}), this.pie8 = this.pie8 || P(this.primaryColor, {
|
|
1734
1866
|
h: -60,
|
|
1735
1867
|
l: -10
|
|
1736
|
-
}), this.pie9 = this.pie9 ||
|
|
1868
|
+
}), this.pie9 = this.pie9 || P(this.primaryColor, {
|
|
1737
1869
|
h: 120,
|
|
1738
1870
|
l: 0
|
|
1739
|
-
}), this.pie10 = this.pie10 ||
|
|
1871
|
+
}), this.pie10 = this.pie10 || P(this.primaryColor, {
|
|
1740
1872
|
h: 60,
|
|
1741
1873
|
l: -50
|
|
1742
|
-
}), this.pie11 = this.pie11 ||
|
|
1874
|
+
}), this.pie11 = this.pie11 || P(this.primaryColor, {
|
|
1743
1875
|
h: -60,
|
|
1744
1876
|
l: -50
|
|
1745
|
-
}), this.pie12 = this.pie12 ||
|
|
1877
|
+
}), this.pie12 = this.pie12 || P(this.primaryColor, {
|
|
1746
1878
|
h: 120,
|
|
1747
1879
|
l: -50
|
|
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 ??
|
|
1880
|
+
}), 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 ?? P(this.primaryColor, { l: -30 }), this.venn2 = this.venn2 ?? P(this.secondaryColor, { l: -30 }), this.venn3 = this.venn3 ?? P(this.tertiaryColor, { l: -30 }), this.venn4 = this.venn4 ?? P(this.primaryColor, {
|
|
1749
1881
|
h: 60,
|
|
1750
1882
|
l: -30
|
|
1751
|
-
}), this.venn5 = this.venn5 ??
|
|
1883
|
+
}), this.venn5 = this.venn5 ?? P(this.primaryColor, {
|
|
1752
1884
|
h: -60,
|
|
1753
1885
|
l: -30
|
|
1754
|
-
}), this.venn6 = this.venn6 ??
|
|
1886
|
+
}), this.venn6 = this.venn6 ?? P(this.secondaryColor, {
|
|
1755
1887
|
h: 60,
|
|
1756
1888
|
l: -30
|
|
1757
|
-
}), this.venn7 = this.venn7 ??
|
|
1889
|
+
}), this.venn7 = this.venn7 ?? P(this.primaryColor, {
|
|
1758
1890
|
h: 120,
|
|
1759
1891
|
l: -30
|
|
1760
|
-
}), this.venn8 = this.venn8 ??
|
|
1892
|
+
}), this.venn8 = this.venn8 ?? P(this.secondaryColor, {
|
|
1761
1893
|
h: 120,
|
|
1762
1894
|
l: -30
|
|
1763
1895
|
}), this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.cynefin = {
|
|
@@ -1776,31 +1908,31 @@ var O = {
|
|
|
1776
1908
|
confusionBg: this.cynefin?.confusionBg || "#D7CCC8",
|
|
1777
1909
|
textColor: this.cynefin?.textColor || this.textColor,
|
|
1778
1910
|
labelColor: this.cynefin?.labelColor || this.primaryTextColor
|
|
1779
|
-
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
1911
|
+
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || P(this.primaryColor, {
|
|
1780
1912
|
r: 5,
|
|
1781
1913
|
g: 5,
|
|
1782
1914
|
b: 5
|
|
1783
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
1915
|
+
}), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
|
|
1784
1916
|
r: 10,
|
|
1785
1917
|
g: 10,
|
|
1786
1918
|
b: 10
|
|
1787
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
1919
|
+
}), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
|
|
1788
1920
|
r: 15,
|
|
1789
1921
|
g: 15,
|
|
1790
1922
|
b: 15
|
|
1791
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
1923
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
|
|
1792
1924
|
r: -5,
|
|
1793
1925
|
g: -5,
|
|
1794
1926
|
b: -5
|
|
1795
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
1927
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
|
|
1796
1928
|
r: -10,
|
|
1797
1929
|
g: -10,
|
|
1798
1930
|
b: -10
|
|
1799
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
1931
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
|
|
1800
1932
|
r: -15,
|
|
1801
1933
|
g: -15,
|
|
1802
1934
|
b: -15
|
|
1803
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
1935
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
|
|
1804
1936
|
startByteColor: this.primaryTextColor,
|
|
1805
1937
|
endByteColor: this.primaryTextColor,
|
|
1806
1938
|
labelColor: this.primaryTextColor,
|
|
@@ -1845,7 +1977,7 @@ var O = {
|
|
|
1845
1977
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1846
1978
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1847
1979
|
plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
|
|
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 ||
|
|
1980
|
+
}, 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 || P(this.primaryColor, { h: -30 }), this.git4 = this.git4 || P(this.primaryColor, { h: -60 }), this.git5 = this.git5 || P(this.primaryColor, { h: -90 }), this.git6 = this.git6 || P(this.primaryColor, { h: 60 }), this.git7 = this.git7 || P(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || F(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || F(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
1849
1981
|
}
|
|
1850
1982
|
calculate(e) {
|
|
1851
1983
|
if (typeof e != "object") {
|
|
@@ -1856,27 +1988,27 @@ var O = {
|
|
|
1856
1988
|
t.forEach((t) => {
|
|
1857
1989
|
this[t] = e[t];
|
|
1858
1990
|
}), this.updateColors(), t.forEach((t) => {
|
|
1859
|
-
this[t] = e[t];
|
|
1991
|
+
this[t] = W(this[t], e[t]);
|
|
1860
1992
|
});
|
|
1861
1993
|
}
|
|
1862
|
-
},
|
|
1863
|
-
let t = new
|
|
1994
|
+
}, zt = /* @__PURE__ */ e((e) => {
|
|
1995
|
+
let t = new Rt();
|
|
1864
1996
|
return t.calculate(e), t;
|
|
1865
|
-
}, "getThemeVariables"),
|
|
1997
|
+
}, "getThemeVariables"), Bt = class {
|
|
1866
1998
|
static {
|
|
1867
|
-
|
|
1999
|
+
e(this, "Theme");
|
|
1868
2000
|
}
|
|
1869
2001
|
constructor() {
|
|
1870
|
-
this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor =
|
|
2002
|
+
this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = M(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = P(this.primaryColor, { h: -160 }), this.primaryBorderColor = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = F(this.primaryColor), this.secondaryTextColor = F(this.secondaryColor), this.tertiaryTextColor = F(this.tertiaryColor), this.lineColor = F(this.background), this.textColor = F(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 || M(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))";
|
|
1871
2003
|
}
|
|
1872
2004
|
updateColors() {
|
|
1873
|
-
this.secondBkg =
|
|
1874
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
1875
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2005
|
+
this.secondBkg = M(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = M(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";
|
|
2006
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
|
|
2007
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
|
|
1876
2008
|
this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
|
|
1877
2009
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
1878
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
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 =
|
|
2010
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, { l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, { l: -(8 + e * 5) });
|
|
2011
|
+
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.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, this.sectionBkgColor = M(this.contrast, 30), this.sectionBkgColor2 = M(this.contrast, 30), this.taskBorderColor = N(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 = M(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = N(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 = P(this.primaryColor, { h: 64 }), this.fillType3 = P(this.secondaryColor, { h: 64 }), this.fillType4 = P(this.primaryColor, { h: -64 }), this.fillType5 = P(this.secondaryColor, { h: -64 }), this.fillType6 = P(this.primaryColor, { h: 128 }), this.fillType7 = P(this.secondaryColor, { h: 128 });
|
|
1880
2012
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
|
|
1881
2013
|
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";
|
|
1882
2014
|
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this["cScale" + e];
|
|
@@ -1896,31 +2028,31 @@ var O = {
|
|
|
1896
2028
|
confusionBg: this.cynefin?.confusionBg || "#F3E5F5",
|
|
1897
2029
|
textColor: this.cynefin?.textColor || this.textColor,
|
|
1898
2030
|
labelColor: this.cynefin?.labelColor || this.primaryTextColor
|
|
1899
|
-
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill ||
|
|
2031
|
+
}, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || P(this.primaryColor, {
|
|
1900
2032
|
r: 5,
|
|
1901
2033
|
g: 5,
|
|
1902
2034
|
b: 5
|
|
1903
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2035
|
+
}), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
|
|
1904
2036
|
r: 10,
|
|
1905
2037
|
g: 10,
|
|
1906
2038
|
b: 10
|
|
1907
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2039
|
+
}), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
|
|
1908
2040
|
r: 15,
|
|
1909
2041
|
g: 15,
|
|
1910
2042
|
b: 15
|
|
1911
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2043
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
|
|
1912
2044
|
r: -5,
|
|
1913
2045
|
g: -5,
|
|
1914
2046
|
b: -5
|
|
1915
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2047
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
|
|
1916
2048
|
r: -10,
|
|
1917
2049
|
g: -10,
|
|
1918
2050
|
b: -10
|
|
1919
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2051
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
|
|
1920
2052
|
r: -15,
|
|
1921
2053
|
g: -15,
|
|
1922
2054
|
b: -15
|
|
1923
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2055
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
|
|
1924
2056
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
1925
2057
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
1926
2058
|
dataLabelColor: this.xyChart?.dataLabelColor || this.primaryTextColor,
|
|
@@ -1958,7 +2090,7 @@ var O = {
|
|
|
1958
2090
|
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
1959
2091
|
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
1960
2092
|
annotationFill: this.wardley?.annotationFill || this.background
|
|
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 =
|
|
2093
|
+
}, 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 = N(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || P(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || P(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || P(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || P(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || P(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
1962
2094
|
}
|
|
1963
2095
|
calculate(e) {
|
|
1964
2096
|
if (typeof e != "object") {
|
|
@@ -1969,90 +2101,90 @@ var O = {
|
|
|
1969
2101
|
t.forEach((t) => {
|
|
1970
2102
|
this[t] = e[t];
|
|
1971
2103
|
}), this.updateColors(), t.forEach((t) => {
|
|
1972
|
-
this[t] = e[t];
|
|
2104
|
+
this[t] = W(this[t], e[t]);
|
|
1973
2105
|
});
|
|
1974
2106
|
}
|
|
1975
|
-
},
|
|
1976
|
-
let t = new
|
|
2107
|
+
}, Vt = /* @__PURE__ */ e((e) => {
|
|
2108
|
+
let t = new Bt();
|
|
1977
2109
|
return t.calculate(e), t;
|
|
1978
|
-
}, "getThemeVariables"),
|
|
2110
|
+
}, "getThemeVariables"), Ht = class {
|
|
1979
2111
|
static {
|
|
1980
|
-
|
|
2112
|
+
e(this, "Theme");
|
|
1981
2113
|
}
|
|
1982
2114
|
constructor() {
|
|
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 =
|
|
2115
|
+
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 = U(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";
|
|
1984
2116
|
}
|
|
1985
2117
|
updateColors() {
|
|
1986
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor ||
|
|
2118
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || P(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || P(this.primaryColor, {
|
|
1987
2119
|
h: 180,
|
|
1988
2120
|
l: 5
|
|
1989
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
1990
|
-
let e = "#ECECFE", t = "#E9E9F1", n =
|
|
2121
|
+
}), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || F(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || F(this.tertiaryColor), this.lineColor = this.lineColor || F(this.background), this.arrowheadColor = this.arrowheadColor || F(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 ? N(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || N(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || F(this.lineColor), this.rectBkgColor = this.rectBkgColor || (j(this.background) ? M(this.background, 4) : N(this.background, 4));
|
|
2122
|
+
let e = "#ECECFE", t = "#E9E9F1", n = P(e, {
|
|
1991
2123
|
h: 180,
|
|
1992
2124
|
l: 5
|
|
1993
2125
|
});
|
|
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 ||
|
|
2126
|
+
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 || M(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 || P(e, { h: 30 }), this.cScale4 = this.cScale4 || P(e, { h: 60 }), this.cScale5 = this.cScale5 || P(e, { h: 90 }), this.cScale6 = this.cScale6 || P(e, { h: 120 }), this.cScale7 = this.cScale7 || P(e, { h: 150 }), this.cScale8 = this.cScale8 || P(e, {
|
|
1995
2127
|
h: 210,
|
|
1996
2128
|
l: 150
|
|
1997
|
-
}), this.cScale9 = this.cScale9 ||
|
|
1998
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
1999
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2000
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2129
|
+
}), this.cScale9 = this.cScale9 || P(e, { h: 270 }), this.cScale10 = this.cScale10 || P(e, { h: 300 }), this.cScale11 = this.cScale11 || P(e, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 75);
|
|
2130
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 25);
|
|
2131
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
|
|
2132
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
|
|
2001
2133
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2002
2134
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
2003
2135
|
let r = this.darkMode ? -4 : -1;
|
|
2004
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
2136
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, {
|
|
2005
2137
|
h: 180,
|
|
2006
2138
|
s: -15,
|
|
2007
2139
|
l: r * (5 + e * 3)
|
|
2008
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
2140
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, {
|
|
2009
2141
|
h: 180,
|
|
2010
2142
|
s: -15,
|
|
2011
2143
|
l: r * (8 + e * 3)
|
|
2012
2144
|
});
|
|
2013
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 ||
|
|
2145
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || P(e, { h: 64 }), this.fillType3 = this.fillType3 || P(t, { h: 64 }), this.fillType4 = this.fillType4 || P(e, { h: -64 }), this.fillType5 = this.fillType5 || P(t, { h: -64 }), this.fillType6 = this.fillType6 || P(e, { h: 128 }), this.fillType7 = this.fillType7 || P(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || P(e, { l: -10 }), this.pie5 = this.pie5 || P(t, { l: -10 }), this.pie6 = this.pie6 || P(n, { l: -10 }), this.pie7 = this.pie7 || P(e, {
|
|
2014
2146
|
h: 60,
|
|
2015
2147
|
l: -10
|
|
2016
|
-
}), this.pie8 = this.pie8 ||
|
|
2148
|
+
}), this.pie8 = this.pie8 || P(e, {
|
|
2017
2149
|
h: -60,
|
|
2018
2150
|
l: -10
|
|
2019
|
-
}), this.pie9 = this.pie9 ||
|
|
2151
|
+
}), this.pie9 = this.pie9 || P(e, {
|
|
2020
2152
|
h: 120,
|
|
2021
2153
|
l: 0
|
|
2022
|
-
}), this.pie10 = this.pie10 ||
|
|
2154
|
+
}), this.pie10 = this.pie10 || P(e, {
|
|
2023
2155
|
h: 60,
|
|
2024
2156
|
l: -20
|
|
2025
|
-
}), this.pie11 = this.pie11 ||
|
|
2157
|
+
}), this.pie11 = this.pie11 || P(e, {
|
|
2026
2158
|
h: -60,
|
|
2027
2159
|
l: -20
|
|
2028
|
-
}), this.pie12 = this.pie12 ||
|
|
2160
|
+
}), this.pie12 = this.pie12 || P(e, {
|
|
2029
2161
|
h: 120,
|
|
2030
2162
|
l: -10
|
|
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 ||
|
|
2163
|
+
}), 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 || P(e, {
|
|
2032
2164
|
r: 5,
|
|
2033
2165
|
g: 5,
|
|
2034
2166
|
b: 5
|
|
2035
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2167
|
+
}), this.quadrant3Fill = this.quadrant3Fill || P(e, {
|
|
2036
2168
|
r: 10,
|
|
2037
2169
|
g: 10,
|
|
2038
2170
|
b: 10
|
|
2039
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2171
|
+
}), this.quadrant4Fill = this.quadrant4Fill || P(e, {
|
|
2040
2172
|
r: 15,
|
|
2041
2173
|
g: 15,
|
|
2042
2174
|
b: 15
|
|
2043
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2175
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
|
|
2044
2176
|
r: -5,
|
|
2045
2177
|
g: -5,
|
|
2046
2178
|
b: -5
|
|
2047
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2179
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
|
|
2048
2180
|
r: -10,
|
|
2049
2181
|
g: -10,
|
|
2050
2182
|
b: -10
|
|
2051
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2183
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
|
|
2052
2184
|
r: -15,
|
|
2053
2185
|
g: -15,
|
|
2054
2186
|
b: -15
|
|
2055
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2187
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
|
|
2056
2188
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2057
2189
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2058
2190
|
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
@@ -2065,7 +2197,7 @@ var O = {
|
|
|
2065
2197
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2066
2198
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2067
2199
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
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 ?
|
|
2200
|
+
}, 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 ? N(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 || P(e, { h: -30 }), this.git4 = this.git4 || P(e, { h: -60 }), this.git5 = this.git5 || P(e, { h: -90 }), this.git6 = this.git6 || P(e, { h: 60 }), this.git7 = this.git7 || P(e, { h: 120 }), this.darkMode ? (this.git0 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
2069
2201
|
}
|
|
2070
2202
|
calculate(e) {
|
|
2071
2203
|
if (typeof e != "object") {
|
|
@@ -2076,85 +2208,85 @@ var O = {
|
|
|
2076
2208
|
t.forEach((t) => {
|
|
2077
2209
|
this[t] = e[t];
|
|
2078
2210
|
}), this.updateColors(), t.forEach((t) => {
|
|
2079
|
-
this[t] = e[t];
|
|
2211
|
+
this[t] = W(this[t], e[t]);
|
|
2080
2212
|
});
|
|
2081
2213
|
}
|
|
2082
|
-
},
|
|
2083
|
-
let t = new
|
|
2214
|
+
}, Ut = /* @__PURE__ */ e((e) => {
|
|
2215
|
+
let t = new Ht();
|
|
2084
2216
|
return t.calculate(e), t;
|
|
2085
|
-
}, "getThemeVariables"),
|
|
2217
|
+
}, "getThemeVariables"), Wt = class {
|
|
2086
2218
|
static {
|
|
2087
|
-
|
|
2219
|
+
e(this, "Theme");
|
|
2088
2220
|
}
|
|
2089
2221
|
constructor() {
|
|
2090
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
2222
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = M(this.primaryColor, 16), this.tertiaryColor = P(this.primaryColor, { h: -160 }), this.primaryBorderColor = F(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = F(this.primaryColor), this.secondaryTextColor = F(this.secondaryColor), this.tertiaryTextColor = F(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = M(F("#323D47"), 10), this.border1 = "#ccc", this.border2 = k(255, 255, 255, .25), this.arrowheadColor = F(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";
|
|
2091
2223
|
}
|
|
2092
2224
|
updateColors() {
|
|
2093
|
-
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor ||
|
|
2225
|
+
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || P(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || P(this.primaryColor, {
|
|
2094
2226
|
h: 180,
|
|
2095
2227
|
l: 5
|
|
2096
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
2228
|
+
}), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || F(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || F(this.tertiaryColor), this.lineColor = this.lineColor || F(this.background), this.arrowheadColor = this.arrowheadColor || F(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.secondBkg = this.secondBkg === "calculated" ? M(this.mainBkg, 16) : this.secondBkg, 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 ? N(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || N(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || F(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 || M(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || this.secondBkg, 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 || P(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || P(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || P(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || P(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || P(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || P(this.primaryColor, {
|
|
2097
2229
|
h: 210,
|
|
2098
2230
|
l: 150
|
|
2099
|
-
}), this.cScale9 = this.cScale9 ||
|
|
2100
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
2101
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2102
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2231
|
+
}), this.cScale9 = this.cScale9 || P(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || P(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || P(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 75);
|
|
2232
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 25);
|
|
2233
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
|
|
2234
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
|
|
2103
2235
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2104
2236
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
2105
2237
|
let e = this.darkMode ? -4 : -1;
|
|
2106
|
-
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] ||
|
|
2238
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || P(this.mainBkg, {
|
|
2107
2239
|
h: 180,
|
|
2108
2240
|
s: -15,
|
|
2109
2241
|
l: e * (5 + t * 3)
|
|
2110
|
-
}), this["surfacePeer" + t] = this["surfacePeer" + t] ||
|
|
2242
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || P(this.mainBkg, {
|
|
2111
2243
|
h: 180,
|
|
2112
2244
|
s: -15,
|
|
2113
2245
|
l: e * (8 + t * 3)
|
|
2114
2246
|
});
|
|
2115
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 ||
|
|
2247
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || P(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || P(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || P(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || P(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || P(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || P(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 || P(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || P(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || P(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || P(this.primaryColor, {
|
|
2116
2248
|
h: 60,
|
|
2117
2249
|
l: -10
|
|
2118
|
-
}), this.pie8 = this.pie8 ||
|
|
2250
|
+
}), this.pie8 = this.pie8 || P(this.primaryColor, {
|
|
2119
2251
|
h: -60,
|
|
2120
2252
|
l: -10
|
|
2121
|
-
}), this.pie9 = this.pie9 ||
|
|
2253
|
+
}), this.pie9 = this.pie9 || P(this.primaryColor, {
|
|
2122
2254
|
h: 120,
|
|
2123
2255
|
l: 0
|
|
2124
|
-
}), this.pie10 = this.pie10 ||
|
|
2256
|
+
}), this.pie10 = this.pie10 || P(this.primaryColor, {
|
|
2125
2257
|
h: 60,
|
|
2126
2258
|
l: -20
|
|
2127
|
-
}), this.pie11 = this.pie11 ||
|
|
2259
|
+
}), this.pie11 = this.pie11 || P(this.primaryColor, {
|
|
2128
2260
|
h: -60,
|
|
2129
2261
|
l: -20
|
|
2130
|
-
}), this.pie12 = this.pie12 ||
|
|
2262
|
+
}), this.pie12 = this.pie12 || P(this.primaryColor, {
|
|
2131
2263
|
h: 120,
|
|
2132
2264
|
l: -10
|
|
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 ||
|
|
2265
|
+
}), 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 || P(this.primaryColor, {
|
|
2134
2266
|
r: 5,
|
|
2135
2267
|
g: 5,
|
|
2136
2268
|
b: 5
|
|
2137
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2269
|
+
}), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
|
|
2138
2270
|
r: 10,
|
|
2139
2271
|
g: 10,
|
|
2140
2272
|
b: 10
|
|
2141
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2273
|
+
}), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
|
|
2142
2274
|
r: 15,
|
|
2143
2275
|
g: 15,
|
|
2144
2276
|
b: 15
|
|
2145
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2277
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
|
|
2146
2278
|
r: -5,
|
|
2147
2279
|
g: -5,
|
|
2148
2280
|
b: -5
|
|
2149
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2281
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
|
|
2150
2282
|
r: -10,
|
|
2151
2283
|
g: -10,
|
|
2152
2284
|
b: -10
|
|
2153
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2285
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
|
|
2154
2286
|
r: -15,
|
|
2155
2287
|
g: -15,
|
|
2156
2288
|
b: -15
|
|
2157
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2289
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
|
|
2158
2290
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2159
2291
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2160
2292
|
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
@@ -2167,7 +2299,7 @@ var O = {
|
|
|
2167
2299
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2168
2300
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2169
2301
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
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 ?
|
|
2302
|
+
}, 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 ? N(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 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
2171
2303
|
}
|
|
2172
2304
|
calculate(e) {
|
|
2173
2305
|
if (typeof e != "object") {
|
|
@@ -2178,89 +2310,89 @@ var O = {
|
|
|
2178
2310
|
t.forEach((t) => {
|
|
2179
2311
|
this[t] = e[t];
|
|
2180
2312
|
}), this.updateColors(), t.forEach((t) => {
|
|
2181
|
-
this[t] = e[t];
|
|
2313
|
+
this[t] = W(this[t], e[t]);
|
|
2182
2314
|
});
|
|
2183
2315
|
}
|
|
2184
|
-
},
|
|
2185
|
-
let t = new
|
|
2316
|
+
}, Gt = /* @__PURE__ */ e((e) => {
|
|
2317
|
+
let t = new Wt();
|
|
2186
2318
|
return t.calculate(e), t;
|
|
2187
|
-
}, "getThemeVariables"),
|
|
2319
|
+
}, "getThemeVariables"), Kt = class {
|
|
2188
2320
|
static {
|
|
2189
|
-
|
|
2321
|
+
e(this, "Theme");
|
|
2190
2322
|
}
|
|
2191
2323
|
constructor() {
|
|
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 =
|
|
2324
|
+
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 = U("#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";
|
|
2193
2325
|
}
|
|
2194
2326
|
updateColors() {
|
|
2195
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor ||
|
|
2327
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || P(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || P(this.primaryColor, {
|
|
2196
2328
|
h: 180,
|
|
2197
2329
|
l: 5
|
|
2198
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
2199
|
-
let e = "#ECECFE", t = "#E9E9F1", n =
|
|
2330
|
+
}), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || F(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || F(this.tertiaryColor), this.lineColor = this.lineColor || F(this.background), this.arrowheadColor = this.arrowheadColor || F(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 ? N(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || N(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || F(this.lineColor), this.rectBkgColor = this.rectBkgColor || (j(this.background) ? M(this.background, 4) : N(this.background, 4));
|
|
2331
|
+
let e = "#ECECFE", t = "#E9E9F1", n = P(e, {
|
|
2200
2332
|
h: 180,
|
|
2201
2333
|
l: 5
|
|
2202
2334
|
});
|
|
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 ||
|
|
2335
|
+
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 || M(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;
|
|
2204
2336
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = this.mainBkg;
|
|
2205
|
-
if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
2206
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
2207
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2208
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2337
|
+
if (this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 75);
|
|
2338
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 25);
|
|
2339
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
|
|
2340
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
|
|
2209
2341
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2210
2342
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
2211
2343
|
let r = this.darkMode ? -4 : -1;
|
|
2212
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
2344
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, {
|
|
2213
2345
|
h: 180,
|
|
2214
2346
|
s: -15,
|
|
2215
2347
|
l: r * (5 + e * 3)
|
|
2216
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
2348
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, {
|
|
2217
2349
|
h: 180,
|
|
2218
2350
|
s: -15,
|
|
2219
2351
|
l: r * (8 + e * 3)
|
|
2220
2352
|
});
|
|
2221
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 ||
|
|
2353
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || e, this.fillType1 = this.fillType1 || t, this.fillType2 = this.fillType2 || P(e, { h: 64 }), this.fillType3 = this.fillType3 || P(t, { h: 64 }), this.fillType4 = this.fillType4 || P(e, { h: -64 }), this.fillType5 = this.fillType5 || P(t, { h: -64 }), this.fillType6 = this.fillType6 || P(e, { h: 128 }), this.fillType7 = this.fillType7 || P(t, { h: 128 }), this.pie1 = this.pie1 || e, this.pie2 = this.pie2 || t, this.pie3 = this.pie3 || n, this.pie4 = this.pie4 || P(e, { l: -10 }), this.pie5 = this.pie5 || P(t, { l: -10 }), this.pie6 = this.pie6 || P(n, { l: -10 }), this.pie7 = this.pie7 || P(e, {
|
|
2222
2354
|
h: 60,
|
|
2223
2355
|
l: -10
|
|
2224
|
-
}), this.pie8 = this.pie8 ||
|
|
2356
|
+
}), this.pie8 = this.pie8 || P(e, {
|
|
2225
2357
|
h: -60,
|
|
2226
2358
|
l: -10
|
|
2227
|
-
}), this.pie9 = this.pie9 ||
|
|
2359
|
+
}), this.pie9 = this.pie9 || P(e, {
|
|
2228
2360
|
h: 120,
|
|
2229
2361
|
l: 0
|
|
2230
|
-
}), this.pie10 = this.pie10 ||
|
|
2362
|
+
}), this.pie10 = this.pie10 || P(e, {
|
|
2231
2363
|
h: 60,
|
|
2232
2364
|
l: -20
|
|
2233
|
-
}), this.pie11 = this.pie11 ||
|
|
2365
|
+
}), this.pie11 = this.pie11 || P(e, {
|
|
2234
2366
|
h: -60,
|
|
2235
2367
|
l: -20
|
|
2236
|
-
}), this.pie12 = this.pie12 ||
|
|
2368
|
+
}), this.pie12 = this.pie12 || P(e, {
|
|
2237
2369
|
h: 120,
|
|
2238
2370
|
l: -10
|
|
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 ||
|
|
2371
|
+
}), 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 || P(e, {
|
|
2240
2372
|
r: 5,
|
|
2241
2373
|
g: 5,
|
|
2242
2374
|
b: 5
|
|
2243
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2375
|
+
}), this.quadrant3Fill = this.quadrant3Fill || P(e, {
|
|
2244
2376
|
r: 10,
|
|
2245
2377
|
g: 10,
|
|
2246
2378
|
b: 10
|
|
2247
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2379
|
+
}), this.quadrant4Fill = this.quadrant4Fill || P(e, {
|
|
2248
2380
|
r: 15,
|
|
2249
2381
|
g: 15,
|
|
2250
2382
|
b: 15
|
|
2251
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2383
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
|
|
2252
2384
|
r: -5,
|
|
2253
2385
|
g: -5,
|
|
2254
2386
|
b: -5
|
|
2255
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2387
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
|
|
2256
2388
|
r: -10,
|
|
2257
2389
|
g: -10,
|
|
2258
2390
|
b: -10
|
|
2259
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2391
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
|
|
2260
2392
|
r: -15,
|
|
2261
2393
|
g: -15,
|
|
2262
2394
|
b: -15
|
|
2263
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2395
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
|
|
2264
2396
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2265
2397
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2266
2398
|
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
@@ -2273,7 +2405,7 @@ var O = {
|
|
|
2273
2405
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2274
2406
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2275
2407
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
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 ?
|
|
2408
|
+
}, 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 ? N(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 || P(e, { h: -30 }), this.git4 = this.git4 || P(e, { h: -60 }), this.git5 = this.git5 || P(e, { h: -90 }), this.git6 = this.git6 || P(e, { h: 60 }), this.git7 = this.git7 || P(e, { h: 120 }), this.darkMode ? (this.git0 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
2277
2409
|
}
|
|
2278
2410
|
calculate(e) {
|
|
2279
2411
|
if (typeof e != "object") {
|
|
@@ -2284,85 +2416,85 @@ var O = {
|
|
|
2284
2416
|
t.forEach((t) => {
|
|
2285
2417
|
this[t] = e[t];
|
|
2286
2418
|
}), this.updateColors(), t.forEach((t) => {
|
|
2287
|
-
this[t] = e[t];
|
|
2419
|
+
this[t] = W(this[t], e[t]);
|
|
2288
2420
|
});
|
|
2289
2421
|
}
|
|
2290
|
-
},
|
|
2291
|
-
let t = new
|
|
2422
|
+
}, qt = /* @__PURE__ */ e((e) => {
|
|
2423
|
+
let t = new Kt();
|
|
2292
2424
|
return t.calculate(e), t;
|
|
2293
|
-
}, "getThemeVariables"),
|
|
2425
|
+
}, "getThemeVariables"), Jt = class {
|
|
2294
2426
|
static {
|
|
2295
|
-
|
|
2427
|
+
e(this, "Theme");
|
|
2296
2428
|
}
|
|
2297
2429
|
constructor() {
|
|
2298
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
2430
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = M(this.primaryColor, 16), this.tertiaryColor = P(this.primaryColor, { h: -160 }), this.primaryBorderColor = F(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = F(this.primaryColor), this.secondaryTextColor = F(this.secondaryColor), this.tertiaryTextColor = F(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = M(F("#323D47"), 10), this.border1 = "#ccc", this.border2 = k(255, 255, 255, .25), this.arrowheadColor = F(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";
|
|
2299
2431
|
}
|
|
2300
2432
|
updateColors() {
|
|
2301
|
-
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor ||
|
|
2433
|
+
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || P(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || P(this.primaryColor, {
|
|
2302
2434
|
h: 180,
|
|
2303
2435
|
l: 5
|
|
2304
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
2436
|
+
}), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || F(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || F(this.tertiaryColor), this.lineColor = this.lineColor || F(this.background), this.arrowheadColor = this.arrowheadColor || F(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.secondBkg = this.secondBkg === "calculated" ? M(this.mainBkg, 16) : this.secondBkg, 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 ? N(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || N(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || F(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 || M(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || this.secondBkg, 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 || P(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || P(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || P(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || P(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || P(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || P(this.primaryColor, {
|
|
2305
2437
|
h: 210,
|
|
2306
2438
|
l: 150
|
|
2307
|
-
}), this.cScale9 = this.cScale9 ||
|
|
2308
|
-
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] =
|
|
2309
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2310
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2439
|
+
}), this.cScale9 = this.cScale9 || P(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || P(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || P(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 75);
|
|
2440
|
+
else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = N(this["cScale" + e], 25);
|
|
2441
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
|
|
2442
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
|
|
2311
2443
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2312
2444
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
2313
2445
|
let e = this.darkMode ? -4 : -1;
|
|
2314
|
-
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] ||
|
|
2446
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || P(this.mainBkg, {
|
|
2315
2447
|
h: 180,
|
|
2316
2448
|
s: -15,
|
|
2317
2449
|
l: e * (5 + t * 3)
|
|
2318
|
-
}), this["surfacePeer" + t] = this["surfacePeer" + t] ||
|
|
2450
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || P(this.mainBkg, {
|
|
2319
2451
|
h: 180,
|
|
2320
2452
|
s: -15,
|
|
2321
2453
|
l: e * (8 + t * 3)
|
|
2322
2454
|
});
|
|
2323
|
-
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 ||
|
|
2455
|
+
this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || P(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || P(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || P(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || P(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || P(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || P(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 || P(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || P(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || P(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || P(this.primaryColor, {
|
|
2324
2456
|
h: 60,
|
|
2325
2457
|
l: -10
|
|
2326
|
-
}), this.pie8 = this.pie8 ||
|
|
2458
|
+
}), this.pie8 = this.pie8 || P(this.primaryColor, {
|
|
2327
2459
|
h: -60,
|
|
2328
2460
|
l: -10
|
|
2329
|
-
}), this.pie9 = this.pie9 ||
|
|
2461
|
+
}), this.pie9 = this.pie9 || P(this.primaryColor, {
|
|
2330
2462
|
h: 120,
|
|
2331
2463
|
l: 0
|
|
2332
|
-
}), this.pie10 = this.pie10 ||
|
|
2464
|
+
}), this.pie10 = this.pie10 || P(this.primaryColor, {
|
|
2333
2465
|
h: 60,
|
|
2334
2466
|
l: -20
|
|
2335
|
-
}), this.pie11 = this.pie11 ||
|
|
2467
|
+
}), this.pie11 = this.pie11 || P(this.primaryColor, {
|
|
2336
2468
|
h: -60,
|
|
2337
2469
|
l: -20
|
|
2338
|
-
}), this.pie12 = this.pie12 ||
|
|
2470
|
+
}), this.pie12 = this.pie12 || P(this.primaryColor, {
|
|
2339
2471
|
h: 120,
|
|
2340
2472
|
l: -10
|
|
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 ||
|
|
2473
|
+
}), 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 || P(this.primaryColor, {
|
|
2342
2474
|
r: 5,
|
|
2343
2475
|
g: 5,
|
|
2344
2476
|
b: 5
|
|
2345
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2477
|
+
}), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
|
|
2346
2478
|
r: 10,
|
|
2347
2479
|
g: 10,
|
|
2348
2480
|
b: 10
|
|
2349
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2481
|
+
}), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
|
|
2350
2482
|
r: 15,
|
|
2351
2483
|
g: 15,
|
|
2352
2484
|
b: 15
|
|
2353
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2485
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
|
|
2354
2486
|
r: -5,
|
|
2355
2487
|
g: -5,
|
|
2356
2488
|
b: -5
|
|
2357
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2489
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
|
|
2358
2490
|
r: -10,
|
|
2359
2491
|
g: -10,
|
|
2360
2492
|
b: -10
|
|
2361
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2493
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
|
|
2362
2494
|
r: -15,
|
|
2363
2495
|
g: -15,
|
|
2364
2496
|
b: -15
|
|
2365
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2497
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
|
|
2366
2498
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2367
2499
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2368
2500
|
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
@@ -2375,7 +2507,7 @@ var O = {
|
|
|
2375
2507
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2376
2508
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2377
2509
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
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 ?
|
|
2510
|
+
}, 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 ? N(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 || P(this.primaryColor, { h: -30 }), this.git4 = this.git4 || P(this.primaryColor, { h: -60 }), this.git5 = this.git5 || P(this.primaryColor, { h: -90 }), this.git6 = this.git6 || P(this.primaryColor, { h: 60 }), this.git7 = this.git7 || P(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
2379
2511
|
}
|
|
2380
2512
|
calculate(e) {
|
|
2381
2513
|
if (typeof e != "object") {
|
|
@@ -2386,18 +2518,18 @@ var O = {
|
|
|
2386
2518
|
t.forEach((t) => {
|
|
2387
2519
|
this[t] = e[t];
|
|
2388
2520
|
}), this.updateColors(), t.forEach((t) => {
|
|
2389
|
-
this[t] = e[t];
|
|
2521
|
+
this[t] = W(this[t], e[t]);
|
|
2390
2522
|
});
|
|
2391
2523
|
}
|
|
2392
|
-
},
|
|
2393
|
-
let t = new
|
|
2524
|
+
}, Yt = /* @__PURE__ */ e((e) => {
|
|
2525
|
+
let t = new Jt();
|
|
2394
2526
|
return t.calculate(e), t;
|
|
2395
|
-
}, "getThemeVariables"),
|
|
2527
|
+
}, "getThemeVariables"), Xt = class {
|
|
2396
2528
|
static {
|
|
2397
|
-
|
|
2529
|
+
e(this, "Theme");
|
|
2398
2530
|
}
|
|
2399
2531
|
constructor() {
|
|
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 =
|
|
2532
|
+
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 = U("#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.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 = [
|
|
2401
2533
|
"#E879F9",
|
|
2402
2534
|
"#2DD4BF",
|
|
2403
2535
|
"#FB923C",
|
|
@@ -2423,75 +2555,62 @@ var O = {
|
|
|
2423
2555
|
"#F7FEE7",
|
|
2424
2556
|
"#F0F9FF",
|
|
2425
2557
|
"#FFF1F2"
|
|
2426
|
-
], this.filterColor = "#000000";
|
|
2558
|
+
], this.usecaseActorBorder = "#A78BFA", this.usecaseActorBkg = "#F5F3FF", this.usecaseBorder = "#2DD4BF", this.usecaseBkg = "#F0FDFA", this.usecaseBoundaryBorder = "#BDBCCC", this.usecaseBoundaryBkg = "#FAFAFC", this.usecaseIncludeLine = "#38BDF8", this.usecaseExtendLine = "#FB923C", this.filterColor = "#000000";
|
|
2427
2559
|
}
|
|
2428
2560
|
updateColors() {
|
|
2429
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor ||
|
|
2561
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || P(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || P(this.primaryColor, {
|
|
2430
2562
|
h: 180,
|
|
2431
2563
|
l: 5
|
|
2432
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
2433
|
-
let e = "#ECECFE", t =
|
|
2564
|
+
}), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || F(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || F(this.tertiaryColor), this.lineColor = this.lineColor || F(this.background), this.arrowheadColor = this.arrowheadColor || F(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 ? N(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || N(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || F(this.lineColor), this.rectBkgColor = this.rectBkgColor || (j(this.background) ? M(this.background, 4) : N(this.background, 4));
|
|
2565
|
+
let e = "#ECECFE", t = P(e, {
|
|
2434
2566
|
h: 180,
|
|
2435
2567
|
l: 5
|
|
2436
2568
|
});
|
|
2437
|
-
this.
|
|
2438
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2439
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2569
|
+
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 || M(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.stateEdgeLabelBackground = this.stateEdgeLabelBackground || "#FFFFFF", this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#F9F9FB", this.compositeTitleBackground = this.compositeTitleBackground || "#F9F9FB", 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", this.sectionBkgColor = this.sectionBkgColor || this.cScale0, this.sectionBkgColor2 = this.sectionBkgColor2 || this.cScale1, this.altSectionBkgColor = this.altSectionBkgColor || "white";
|
|
2570
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
|
|
2571
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
|
|
2440
2572
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2441
2573
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
|
|
2442
|
-
let
|
|
2443
|
-
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] ||
|
|
2574
|
+
let n = this.darkMode ? -4 : -1;
|
|
2575
|
+
for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || P(this.mainBkg, {
|
|
2444
2576
|
h: 180,
|
|
2445
2577
|
s: -15,
|
|
2446
|
-
l:
|
|
2447
|
-
}), this["surfacePeer" + e] = this["surfacePeer" + e] ||
|
|
2578
|
+
l: n * (5 + e * 3)
|
|
2579
|
+
}), this["surfacePeer" + e] = this["surfacePeer" + e] || P(this.mainBkg, {
|
|
2448
2580
|
h: 180,
|
|
2449
2581
|
s: -15,
|
|
2450
|
-
l:
|
|
2582
|
+
l: n * (8 + e * 3)
|
|
2451
2583
|
});
|
|
2452
|
-
this.classText = this.classText || this.textColor
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
}), this.pie9 = this.pie9 || I(e, {
|
|
2459
|
-
h: 120,
|
|
2460
|
-
l: 0
|
|
2461
|
-
}), this.pie10 = this.pie10 || I(e, {
|
|
2462
|
-
h: 60,
|
|
2463
|
-
l: -20
|
|
2464
|
-
}), this.pie11 = this.pie11 || I(e, {
|
|
2465
|
-
h: -60,
|
|
2466
|
-
l: -20
|
|
2467
|
-
}), this.pie12 = this.pie12 || I(e, {
|
|
2468
|
-
h: 120,
|
|
2469
|
-
l: -10
|
|
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, {
|
|
2584
|
+
this.classText = this.classText || this.textColor;
|
|
2585
|
+
for (let e = 0; e < 8; e++) this["fillType" + e] = this["fillType" + e] || this.bkgColorArray[e];
|
|
2586
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + (e + 1)] = this["pie" + (e + 1)] || this["cScale" + e];
|
|
2587
|
+
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";
|
|
2588
|
+
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this.borderColorArray[e % this.borderColorArray.length];
|
|
2589
|
+
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || e, this.quadrant2Fill = this.quadrant2Fill || P(e, {
|
|
2471
2590
|
r: 5,
|
|
2472
2591
|
g: 5,
|
|
2473
2592
|
b: 5
|
|
2474
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2593
|
+
}), this.quadrant3Fill = this.quadrant3Fill || P(e, {
|
|
2475
2594
|
r: 10,
|
|
2476
2595
|
g: 10,
|
|
2477
2596
|
b: 10
|
|
2478
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2597
|
+
}), this.quadrant4Fill = this.quadrant4Fill || P(e, {
|
|
2479
2598
|
r: 15,
|
|
2480
2599
|
g: 15,
|
|
2481
2600
|
b: 15
|
|
2482
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2601
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
|
|
2483
2602
|
r: -5,
|
|
2484
2603
|
g: -5,
|
|
2485
2604
|
b: -5
|
|
2486
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2605
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
|
|
2487
2606
|
r: -10,
|
|
2488
2607
|
g: -10,
|
|
2489
2608
|
b: -10
|
|
2490
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2609
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
|
|
2491
2610
|
r: -15,
|
|
2492
2611
|
g: -15,
|
|
2493
2612
|
b: -15
|
|
2494
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2613
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
|
|
2495
2614
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2496
2615
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2497
2616
|
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
@@ -2504,7 +2623,7 @@ var O = {
|
|
|
2504
2623
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2505
2624
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2506
2625
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
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 ?
|
|
2626
|
+
}, 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 ? N(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.requirementEdgeLabelBackground = "#FFFFFF", this.git0 = this.git0 || e, this.git1 = this.git1 || "#E9E9F1", this.git2 = this.git2 || t, this.git3 = this.git3 || P(e, { h: -30 }), this.git4 = this.git4 || P(e, { h: -60 }), this.git5 = this.git5 || P(e, { h: -90 }), this.git6 = this.git6 || P(e, { h: 60 }), this.git7 = this.git7 || P(e, { h: 120 }), this.darkMode ? (this.git0 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
2508
2627
|
}
|
|
2509
2628
|
calculate(e) {
|
|
2510
2629
|
if (typeof e != "object") {
|
|
@@ -2515,18 +2634,18 @@ var O = {
|
|
|
2515
2634
|
t.forEach((t) => {
|
|
2516
2635
|
this[t] = e[t];
|
|
2517
2636
|
}), this.updateColors(), t.forEach((t) => {
|
|
2518
|
-
this[t] = e[t];
|
|
2637
|
+
this[t] = W(this[t], e[t]);
|
|
2519
2638
|
});
|
|
2520
2639
|
}
|
|
2521
|
-
},
|
|
2522
|
-
let t = new
|
|
2640
|
+
}, Zt = /* @__PURE__ */ e((e) => {
|
|
2641
|
+
let t = new Xt();
|
|
2523
2642
|
return t.calculate(e), t;
|
|
2524
|
-
}, "getThemeVariables"),
|
|
2643
|
+
}, "getThemeVariables"), G = class {
|
|
2525
2644
|
static {
|
|
2526
|
-
|
|
2645
|
+
e(this, "Theme");
|
|
2527
2646
|
}
|
|
2528
2647
|
constructor() {
|
|
2529
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor =
|
|
2648
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = M(this.primaryColor, 16), this.tertiaryColor = P(this.primaryColor, { h: -160 }), this.primaryBorderColor = F(this.background), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(this.tertiaryColor, this.darkMode), this.primaryTextColor = F(this.primaryColor), this.secondaryTextColor = F(this.secondaryColor), this.tertiaryTextColor = F(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = M(F("#323D47"), 10), this.border1 = "#ccc", this.border2 = k(255, 255, 255, .25), this.arrowheadColor = F(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 = [
|
|
2530
2649
|
"#E879F9",
|
|
2531
2650
|
"#2DD4BF",
|
|
2532
2651
|
"#FB923C",
|
|
@@ -2539,70 +2658,67 @@ var O = {
|
|
|
2539
2658
|
"#A3E635 ",
|
|
2540
2659
|
"#38BDF8",
|
|
2541
2660
|
"#FB7185"
|
|
2542
|
-
], this.bkgColorArray = [], this.filterColor = "#FFFFFF";
|
|
2661
|
+
], this.bkgColorArray = [], this.usecaseActorBorder = "#A78BFA", this.usecaseBorder = "#2DD4BF", this.usecaseBoundaryBorder = "#BDBCCC", this.usecaseIncludeLine = "#38BDF8", this.usecaseExtendLine = "#FB923C", this.filterColor = "#FFFFFF";
|
|
2543
2662
|
}
|
|
2544
2663
|
updateColors() {
|
|
2545
|
-
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor ||
|
|
2664
|
+
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || P(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || P(this.primaryColor, {
|
|
2546
2665
|
h: 180,
|
|
2547
2666
|
l: 5
|
|
2548
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
2549
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] ||
|
|
2550
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] ||
|
|
2667
|
+
}), this.primaryBorderColor = this.primaryBorderColor || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || F(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || F(this.tertiaryColor), this.lineColor = this.lineColor || F(this.background), this.arrowheadColor = this.arrowheadColor || F(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.secondBkg = this.secondBkg === "calculated" ? M(this.mainBkg, 16) : this.secondBkg, 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 ? N(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.flowContainerStroke = this.flowContainerStroke || this.secondaryBorderColor, 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 || N(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || F(this.lineColor), this.rectBkgColor = this.rectBkgColor || this.tertiaryColor, this.rootLabelColor = "#FFFFFF", 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 || M(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || this.secondBkg, 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.stateEdgeLabelBackground = this.stateEdgeLabelBackground || "#16141F", this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || "#16141F", this.altBackground = this.altBackground || "#16141F", this.compositeTitleBackground = this.compositeTitleBackground || "#16141F", 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", this.sectionBkgColor = this.sectionBkgColor || this.cScale0, this.sectionBkgColor2 = this.sectionBkgColor2 || this.cScale1, this.altSectionBkgColor = this.altSectionBkgColor || this.background;
|
|
2668
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || F(this["cScale" + e]);
|
|
2669
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || M(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || N(this["cScale" + e], 10);
|
|
2551
2670
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
2552
|
-
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] =
|
|
2671
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = N(this["cScale" + e], 75);
|
|
2553
2672
|
let e = this.darkMode ? -4 : -1;
|
|
2554
|
-
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] ||
|
|
2673
|
+
for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || P(this.mainBkg, {
|
|
2555
2674
|
h: 180,
|
|
2556
2675
|
s: -15,
|
|
2557
2676
|
l: e * (5 + t * 3)
|
|
2558
|
-
}), this["surfacePeer" + t] = this["surfacePeer" + t] ||
|
|
2677
|
+
}), this["surfacePeer" + t] = this["surfacePeer" + t] || P(this.mainBkg, {
|
|
2559
2678
|
h: 180,
|
|
2560
2679
|
s: -15,
|
|
2561
2680
|
l: e * (8 + t * 3)
|
|
2562
2681
|
});
|
|
2563
|
-
this.classText = this.classText || this.textColor,
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
h: 120,
|
|
2580
|
-
l: -10
|
|
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, {
|
|
2682
|
+
this.classText = this.classText || this.textColor, [
|
|
2683
|
+
"#701a75",
|
|
2684
|
+
"#134e4a",
|
|
2685
|
+
"#7c2d12",
|
|
2686
|
+
"#581c87",
|
|
2687
|
+
"#14532d",
|
|
2688
|
+
"#4c1d95",
|
|
2689
|
+
"#7f1d1d",
|
|
2690
|
+
"#713f12"
|
|
2691
|
+
].forEach((e, t) => {
|
|
2692
|
+
this["fillType" + t] = this["fillType" + t] || e;
|
|
2693
|
+
});
|
|
2694
|
+
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + (e + 1)] = this["pie" + (e + 1)] || this["cScale" + e];
|
|
2695
|
+
this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || "#28253D", 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";
|
|
2696
|
+
for (let e = 0; e < 8; e++) this["venn" + (e + 1)] = this["venn" + (e + 1)] ?? this.borderColorArray[e % this.borderColorArray.length];
|
|
2697
|
+
this.vennTitleTextColor = this.vennTitleTextColor ?? this.titleColor, this.vennSetTextColor = this.vennSetTextColor ?? this.textColor, this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || P(this.primaryColor, {
|
|
2582
2698
|
r: 5,
|
|
2583
2699
|
g: 5,
|
|
2584
2700
|
b: 5
|
|
2585
|
-
}), this.quadrant3Fill = this.quadrant3Fill ||
|
|
2701
|
+
}), this.quadrant3Fill = this.quadrant3Fill || P(this.primaryColor, {
|
|
2586
2702
|
r: 10,
|
|
2587
2703
|
g: 10,
|
|
2588
2704
|
b: 10
|
|
2589
|
-
}), this.quadrant4Fill = this.quadrant4Fill ||
|
|
2705
|
+
}), this.quadrant4Fill = this.quadrant4Fill || P(this.primaryColor, {
|
|
2590
2706
|
r: 15,
|
|
2591
2707
|
g: 15,
|
|
2592
2708
|
b: 15
|
|
2593
|
-
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill ||
|
|
2709
|
+
}), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || P(this.primaryTextColor, {
|
|
2594
2710
|
r: -5,
|
|
2595
2711
|
g: -5,
|
|
2596
2712
|
b: -5
|
|
2597
|
-
}), this.quadrant3TextFill = this.quadrant3TextFill ||
|
|
2713
|
+
}), this.quadrant3TextFill = this.quadrant3TextFill || P(this.primaryTextColor, {
|
|
2598
2714
|
r: -10,
|
|
2599
2715
|
g: -10,
|
|
2600
2716
|
b: -10
|
|
2601
|
-
}), this.quadrant4TextFill = this.quadrant4TextFill ||
|
|
2717
|
+
}), this.quadrant4TextFill = this.quadrant4TextFill || P(this.primaryTextColor, {
|
|
2602
2718
|
r: -15,
|
|
2603
2719
|
g: -15,
|
|
2604
2720
|
b: -15
|
|
2605
|
-
}), this.quadrantPointFill = this.quadrantPointFill ||
|
|
2721
|
+
}), this.quadrantPointFill = this.quadrantPointFill || j(this.quadrant1Fill) ? M(this.quadrant1Fill) : N(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 = {
|
|
2606
2722
|
backgroundColor: this.xyChart?.backgroundColor || this.background,
|
|
2607
2723
|
titleColor: this.xyChart?.titleColor || this.primaryTextColor,
|
|
2608
2724
|
legendTextColor: this.xyChart?.legendTextColor || this.primaryTextColor,
|
|
@@ -2615,7 +2731,7 @@ var O = {
|
|
|
2615
2731
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2616
2732
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2617
2733
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
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 ?
|
|
2734
|
+
}, 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 ? N(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 || P(this.primaryColor, { h: -30 }), this.git4 = this.git4 || P(this.primaryColor, { h: -60 }), this.git5 = this.git5 || P(this.primaryColor, { h: -90 }), this.git6 = this.git6 || P(this.primaryColor, { h: 60 }), this.git7 = this.git7 || P(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = M(this.git0, 25), this.git1 = M(this.git1, 25), this.git2 = M(this.git2, 25), this.git3 = M(this.git3, 25), this.git4 = M(this.git4, 25), this.git5 = M(this.git5, 25), this.git6 = M(this.git6, 25), this.git7 = M(this.git7, 25)) : (this.git0 = N(this.git0, 25), this.git1 = N(this.git1, 25), this.git2 = N(this.git2, 25), this.git3 = N(this.git3, 25), this.git4 = N(this.git4, 25), this.git5 = N(this.git5, 25), this.git6 = N(this.git6, 25), this.git7 = N(this.git7, 25)), this.gitInv0 = this.gitInv0 || F(this.git0), this.gitInv1 = this.gitInv1 || F(this.git1), this.gitInv2 = this.gitInv2 || F(this.git2), this.gitInv3 = this.gitInv3 || F(this.git3), this.gitInv4 = this.gitInv4 || F(this.git4), this.gitInv5 = this.gitInv5 || F(this.git5), this.gitInv6 = this.gitInv6 || F(this.git6), this.gitInv7 = this.gitInv7 || F(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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
|
|
2619
2735
|
}
|
|
2620
2736
|
calculate(e) {
|
|
2621
2737
|
if (typeof e != "object") {
|
|
@@ -2626,27 +2742,29 @@ var O = {
|
|
|
2626
2742
|
t.forEach((t) => {
|
|
2627
2743
|
this[t] = e[t];
|
|
2628
2744
|
}), this.updateColors(), t.forEach((t) => {
|
|
2629
|
-
this[t] = e[t];
|
|
2745
|
+
this[t] = W(this[t], e[t]);
|
|
2630
2746
|
});
|
|
2631
2747
|
}
|
|
2632
|
-
},
|
|
2633
|
-
base: { getThemeVariables:
|
|
2634
|
-
dark: { getThemeVariables:
|
|
2635
|
-
default: { getThemeVariables:
|
|
2636
|
-
forest: { getThemeVariables:
|
|
2637
|
-
neutral: { getThemeVariables:
|
|
2638
|
-
neo: { getThemeVariables:
|
|
2639
|
-
"neo-dark": { getThemeVariables:
|
|
2640
|
-
redux: { getThemeVariables:
|
|
2641
|
-
"redux-dark": { getThemeVariables:
|
|
2642
|
-
"redux-color": { getThemeVariables:
|
|
2643
|
-
"redux-dark-color": { getThemeVariables: /* @__PURE__ */
|
|
2644
|
-
let t = new
|
|
2748
|
+
}, K = {
|
|
2749
|
+
base: { getThemeVariables: Nt },
|
|
2750
|
+
dark: { getThemeVariables: Ft },
|
|
2751
|
+
default: { getThemeVariables: Lt },
|
|
2752
|
+
forest: { getThemeVariables: zt },
|
|
2753
|
+
neutral: { getThemeVariables: Vt },
|
|
2754
|
+
neo: { getThemeVariables: Ut },
|
|
2755
|
+
"neo-dark": { getThemeVariables: Gt },
|
|
2756
|
+
redux: { getThemeVariables: qt },
|
|
2757
|
+
"redux-dark": { getThemeVariables: Yt },
|
|
2758
|
+
"redux-color": { getThemeVariables: Zt },
|
|
2759
|
+
"redux-dark-color": { getThemeVariables: /* @__PURE__ */ e((e) => {
|
|
2760
|
+
let t = new G();
|
|
2645
2761
|
return t.calculate(e), t;
|
|
2646
2762
|
}, "getThemeVariables") }
|
|
2647
|
-
},
|
|
2763
|
+
}, q = {
|
|
2648
2764
|
flowchart: {
|
|
2649
2765
|
useMaxWidth: !0,
|
|
2766
|
+
theme: "redux-color",
|
|
2767
|
+
look: "neo",
|
|
2650
2768
|
titleTopMargin: 25,
|
|
2651
2769
|
subGraphTitleMargin: {
|
|
2652
2770
|
top: 0,
|
|
@@ -2658,19 +2776,35 @@ var O = {
|
|
|
2658
2776
|
rankSpacing: 50,
|
|
2659
2777
|
curve: "basis",
|
|
2660
2778
|
padding: 15,
|
|
2661
|
-
|
|
2662
|
-
|
|
2779
|
+
wrappingWidth: 120,
|
|
2780
|
+
minNodeWidth: 120,
|
|
2663
2781
|
inheritDir: !1
|
|
2664
2782
|
},
|
|
2665
2783
|
swimlane: {
|
|
2666
2784
|
useMaxWidth: !0,
|
|
2785
|
+
theme: "redux-color",
|
|
2786
|
+
look: "neo",
|
|
2787
|
+
layout: "swimlane",
|
|
2667
2788
|
lineHops: "arc",
|
|
2668
2789
|
ignoreCrossLaneEdges: !0,
|
|
2669
2790
|
optimizeRanksByCrossings: !0,
|
|
2670
2791
|
automaticLaneOrdering: !1
|
|
2671
2792
|
},
|
|
2793
|
+
agentflow: {
|
|
2794
|
+
useMaxWidth: !0,
|
|
2795
|
+
theme: "redux-color",
|
|
2796
|
+
look: "neo",
|
|
2797
|
+
titleTopMargin: 25,
|
|
2798
|
+
diagramPadding: 8,
|
|
2799
|
+
nodeSpacing: 50,
|
|
2800
|
+
rankSpacing: 50,
|
|
2801
|
+
wrappingWidth: 120,
|
|
2802
|
+
minNodeWidth: 120
|
|
2803
|
+
},
|
|
2672
2804
|
sequence: {
|
|
2673
2805
|
useMaxWidth: !0,
|
|
2806
|
+
theme: "redux-color",
|
|
2807
|
+
look: "neo",
|
|
2674
2808
|
hideUnusedParticipants: !1,
|
|
2675
2809
|
activationWidth: 10,
|
|
2676
2810
|
diagramMarginX: 50,
|
|
@@ -2764,18 +2898,24 @@ var O = {
|
|
|
2764
2898
|
},
|
|
2765
2899
|
class: {
|
|
2766
2900
|
useMaxWidth: !0,
|
|
2901
|
+
theme: "redux-color",
|
|
2902
|
+
look: "neo",
|
|
2767
2903
|
titleTopMargin: 25,
|
|
2768
2904
|
arrowMarkerAbsolute: !1,
|
|
2769
2905
|
dividerMargin: 10,
|
|
2770
2906
|
padding: 5,
|
|
2771
2907
|
textHeight: 10,
|
|
2772
|
-
defaultRenderer: "dagre-wrapper",
|
|
2773
2908
|
htmlLabels: !1,
|
|
2774
2909
|
hideEmptyMembersBox: !1,
|
|
2775
2910
|
hierarchicalNamespaces: !0
|
|
2776
2911
|
},
|
|
2777
2912
|
state: {
|
|
2778
2913
|
useMaxWidth: !0,
|
|
2914
|
+
theme: "redux-color",
|
|
2915
|
+
look: "neo",
|
|
2916
|
+
layout: "elk",
|
|
2917
|
+
wrappingWidth: 120,
|
|
2918
|
+
minNodeWidth: 120,
|
|
2779
2919
|
titleTopMargin: 25,
|
|
2780
2920
|
dividerMargin: 10,
|
|
2781
2921
|
sizeUnit: 5,
|
|
@@ -2791,11 +2931,12 @@ var O = {
|
|
|
2791
2931
|
labelHeight: 16,
|
|
2792
2932
|
edgeLengthFactor: "20",
|
|
2793
2933
|
compositTitleSize: 35,
|
|
2794
|
-
radius: 5
|
|
2795
|
-
defaultRenderer: "dagre-wrapper"
|
|
2934
|
+
radius: 5
|
|
2796
2935
|
},
|
|
2797
2936
|
er: {
|
|
2798
2937
|
useMaxWidth: !0,
|
|
2938
|
+
theme: "redux-color",
|
|
2939
|
+
look: "neo",
|
|
2799
2940
|
titleTopMargin: 25,
|
|
2800
2941
|
diagramPadding: 20,
|
|
2801
2942
|
layoutDirection: "TB",
|
|
@@ -2883,6 +3024,8 @@ var O = {
|
|
|
2883
3024
|
},
|
|
2884
3025
|
requirement: {
|
|
2885
3026
|
useMaxWidth: !0,
|
|
3027
|
+
theme: "redux-color",
|
|
3028
|
+
look: "neo",
|
|
2886
3029
|
rect_fill: "#f9f9f9",
|
|
2887
3030
|
text_color: "#333",
|
|
2888
3031
|
rect_border_size: "0.5px",
|
|
@@ -2895,6 +3038,7 @@ var O = {
|
|
|
2895
3038
|
},
|
|
2896
3039
|
mindmap: {
|
|
2897
3040
|
useMaxWidth: !0,
|
|
3041
|
+
colorBy: "branch",
|
|
2898
3042
|
padding: 10,
|
|
2899
3043
|
maxNodeWidth: 200,
|
|
2900
3044
|
layoutAlgorithm: "cose-bilkent"
|
|
@@ -3110,6 +3254,7 @@ var O = {
|
|
|
3110
3254
|
bitWidth: 32,
|
|
3111
3255
|
bitsPerRow: 32,
|
|
3112
3256
|
showBits: !0,
|
|
3257
|
+
bitOrder: "ascending",
|
|
3113
3258
|
paddingX: 5,
|
|
3114
3259
|
paddingY: 5
|
|
3115
3260
|
},
|
|
@@ -3153,8 +3298,27 @@ var O = {
|
|
|
3153
3298
|
axisLabelFactor: 1.05,
|
|
3154
3299
|
curveTension: .17
|
|
3155
3300
|
},
|
|
3301
|
+
usecase: {
|
|
3302
|
+
useMaxWidth: !0,
|
|
3303
|
+
theme: "redux-color",
|
|
3304
|
+
look: "neo",
|
|
3305
|
+
wrappingWidth: 120,
|
|
3306
|
+
minNodeWidth: 120,
|
|
3307
|
+
actorFontSize: 14,
|
|
3308
|
+
actorFontFamily: "\"Open Sans\", sans-serif",
|
|
3309
|
+
actorFontWeight: "normal",
|
|
3310
|
+
usecaseFontSize: 12,
|
|
3311
|
+
usecaseFontFamily: "\"Open Sans\", sans-serif",
|
|
3312
|
+
usecaseFontWeight: "normal",
|
|
3313
|
+
nodeSpacing: 50,
|
|
3314
|
+
rankSpacing: 50,
|
|
3315
|
+
diagramPadding: 20,
|
|
3316
|
+
colorScheme: "role"
|
|
3317
|
+
},
|
|
3156
3318
|
venn: {
|
|
3157
3319
|
useMaxWidth: !0,
|
|
3320
|
+
theme: "redux-color",
|
|
3321
|
+
look: "neo",
|
|
3158
3322
|
width: 800,
|
|
3159
3323
|
height: 450,
|
|
3160
3324
|
padding: 8,
|
|
@@ -3172,7 +3336,7 @@ var O = {
|
|
|
3172
3336
|
theme: "default",
|
|
3173
3337
|
look: "classic",
|
|
3174
3338
|
handDrawnSeed: 0,
|
|
3175
|
-
layout: "
|
|
3339
|
+
layout: "elk",
|
|
3176
3340
|
maxTextSize: 5e4,
|
|
3177
3341
|
maxEdges: 500,
|
|
3178
3342
|
darkMode: !1,
|
|
@@ -3195,36 +3359,43 @@ var O = {
|
|
|
3195
3359
|
fontSize: 16,
|
|
3196
3360
|
markdownAutoWrap: !0,
|
|
3197
3361
|
suppressErrorRendering: !1
|
|
3198
|
-
},
|
|
3199
|
-
...
|
|
3362
|
+
}, Qt = {
|
|
3363
|
+
...q,
|
|
3200
3364
|
deterministicIDSeed: void 0,
|
|
3201
3365
|
elk: {
|
|
3202
3366
|
mergeEdges: !1,
|
|
3203
|
-
|
|
3204
|
-
|
|
3367
|
+
straightenEdges: !0,
|
|
3368
|
+
lineHops: !0,
|
|
3369
|
+
preset: "default",
|
|
3370
|
+
nodePlacementStrategy: void 0,
|
|
3371
|
+
layeringStrategy: void 0,
|
|
3372
|
+
cycleBreakingStrategy: void 0,
|
|
3373
|
+
layeringLayerBound: 4,
|
|
3374
|
+
nodePlacementAlignment: void 0,
|
|
3205
3375
|
forceNodeModelOrder: !1,
|
|
3206
3376
|
considerModelOrder: "NODES_AND_EDGES",
|
|
3207
|
-
keepEntryNodeOnTop: !1
|
|
3377
|
+
keepEntryNodeOnTop: !1,
|
|
3378
|
+
orientFeedbackEdges: !0
|
|
3208
3379
|
},
|
|
3209
3380
|
themeCSS: void 0,
|
|
3210
|
-
themeVariables:
|
|
3381
|
+
themeVariables: K.default.getThemeVariables(),
|
|
3211
3382
|
sequence: {
|
|
3212
|
-
...
|
|
3213
|
-
messageFont: /* @__PURE__ */
|
|
3383
|
+
...q.sequence,
|
|
3384
|
+
messageFont: /* @__PURE__ */ e(function() {
|
|
3214
3385
|
return {
|
|
3215
3386
|
fontFamily: this.messageFontFamily,
|
|
3216
3387
|
fontSize: this.messageFontSize,
|
|
3217
3388
|
fontWeight: this.messageFontWeight
|
|
3218
3389
|
};
|
|
3219
3390
|
}, "messageFont"),
|
|
3220
|
-
noteFont: /* @__PURE__ */
|
|
3391
|
+
noteFont: /* @__PURE__ */ e(function() {
|
|
3221
3392
|
return {
|
|
3222
3393
|
fontFamily: this.noteFontFamily,
|
|
3223
3394
|
fontSize: this.noteFontSize,
|
|
3224
3395
|
fontWeight: this.noteFontWeight
|
|
3225
3396
|
};
|
|
3226
3397
|
}, "noteFont"),
|
|
3227
|
-
actorFont: /* @__PURE__ */
|
|
3398
|
+
actorFont: /* @__PURE__ */ e(function() {
|
|
3228
3399
|
return {
|
|
3229
3400
|
fontFamily: this.actorFontFamily,
|
|
3230
3401
|
fontSize: this.actorFontSize,
|
|
@@ -3233,19 +3404,21 @@ var O = {
|
|
|
3233
3404
|
}, "actorFont")
|
|
3234
3405
|
},
|
|
3235
3406
|
class: {
|
|
3236
|
-
|
|
3407
|
+
theme: q.class?.theme,
|
|
3408
|
+
look: q.class?.look,
|
|
3409
|
+
layout: q.class?.layout,
|
|
3237
3410
|
hideEmptyMembersBox: !1,
|
|
3238
3411
|
hierarchicalNamespaces: !0
|
|
3239
3412
|
},
|
|
3240
3413
|
gantt: {
|
|
3241
|
-
...
|
|
3414
|
+
...q.gantt,
|
|
3242
3415
|
tickInterval: void 0,
|
|
3243
3416
|
useWidth: void 0
|
|
3244
3417
|
},
|
|
3245
3418
|
c4: {
|
|
3246
|
-
...
|
|
3419
|
+
...q.c4,
|
|
3247
3420
|
useWidth: void 0,
|
|
3248
|
-
personFont: /* @__PURE__ */
|
|
3421
|
+
personFont: /* @__PURE__ */ e(function() {
|
|
3249
3422
|
return {
|
|
3250
3423
|
fontFamily: this.personFontFamily,
|
|
3251
3424
|
fontSize: this.personFontSize,
|
|
@@ -3253,150 +3426,150 @@ var O = {
|
|
|
3253
3426
|
};
|
|
3254
3427
|
}, "personFont"),
|
|
3255
3428
|
flowchart: {
|
|
3256
|
-
...
|
|
3429
|
+
...q.flowchart,
|
|
3257
3430
|
inheritDir: !1
|
|
3258
3431
|
},
|
|
3259
|
-
external_personFont: /* @__PURE__ */
|
|
3432
|
+
external_personFont: /* @__PURE__ */ e(function() {
|
|
3260
3433
|
return {
|
|
3261
3434
|
fontFamily: this.external_personFontFamily,
|
|
3262
3435
|
fontSize: this.external_personFontSize,
|
|
3263
3436
|
fontWeight: this.external_personFontWeight
|
|
3264
3437
|
};
|
|
3265
3438
|
}, "external_personFont"),
|
|
3266
|
-
systemFont: /* @__PURE__ */
|
|
3439
|
+
systemFont: /* @__PURE__ */ e(function() {
|
|
3267
3440
|
return {
|
|
3268
3441
|
fontFamily: this.systemFontFamily,
|
|
3269
3442
|
fontSize: this.systemFontSize,
|
|
3270
3443
|
fontWeight: this.systemFontWeight
|
|
3271
3444
|
};
|
|
3272
3445
|
}, "systemFont"),
|
|
3273
|
-
external_systemFont: /* @__PURE__ */
|
|
3446
|
+
external_systemFont: /* @__PURE__ */ e(function() {
|
|
3274
3447
|
return {
|
|
3275
3448
|
fontFamily: this.external_systemFontFamily,
|
|
3276
3449
|
fontSize: this.external_systemFontSize,
|
|
3277
3450
|
fontWeight: this.external_systemFontWeight
|
|
3278
3451
|
};
|
|
3279
3452
|
}, "external_systemFont"),
|
|
3280
|
-
system_dbFont: /* @__PURE__ */
|
|
3453
|
+
system_dbFont: /* @__PURE__ */ e(function() {
|
|
3281
3454
|
return {
|
|
3282
3455
|
fontFamily: this.system_dbFontFamily,
|
|
3283
3456
|
fontSize: this.system_dbFontSize,
|
|
3284
3457
|
fontWeight: this.system_dbFontWeight
|
|
3285
3458
|
};
|
|
3286
3459
|
}, "system_dbFont"),
|
|
3287
|
-
external_system_dbFont: /* @__PURE__ */
|
|
3460
|
+
external_system_dbFont: /* @__PURE__ */ e(function() {
|
|
3288
3461
|
return {
|
|
3289
3462
|
fontFamily: this.external_system_dbFontFamily,
|
|
3290
3463
|
fontSize: this.external_system_dbFontSize,
|
|
3291
3464
|
fontWeight: this.external_system_dbFontWeight
|
|
3292
3465
|
};
|
|
3293
3466
|
}, "external_system_dbFont"),
|
|
3294
|
-
system_queueFont: /* @__PURE__ */
|
|
3467
|
+
system_queueFont: /* @__PURE__ */ e(function() {
|
|
3295
3468
|
return {
|
|
3296
3469
|
fontFamily: this.system_queueFontFamily,
|
|
3297
3470
|
fontSize: this.system_queueFontSize,
|
|
3298
3471
|
fontWeight: this.system_queueFontWeight
|
|
3299
3472
|
};
|
|
3300
3473
|
}, "system_queueFont"),
|
|
3301
|
-
external_system_queueFont: /* @__PURE__ */
|
|
3474
|
+
external_system_queueFont: /* @__PURE__ */ e(function() {
|
|
3302
3475
|
return {
|
|
3303
3476
|
fontFamily: this.external_system_queueFontFamily,
|
|
3304
3477
|
fontSize: this.external_system_queueFontSize,
|
|
3305
3478
|
fontWeight: this.external_system_queueFontWeight
|
|
3306
3479
|
};
|
|
3307
3480
|
}, "external_system_queueFont"),
|
|
3308
|
-
containerFont: /* @__PURE__ */
|
|
3481
|
+
containerFont: /* @__PURE__ */ e(function() {
|
|
3309
3482
|
return {
|
|
3310
3483
|
fontFamily: this.containerFontFamily,
|
|
3311
3484
|
fontSize: this.containerFontSize,
|
|
3312
3485
|
fontWeight: this.containerFontWeight
|
|
3313
3486
|
};
|
|
3314
3487
|
}, "containerFont"),
|
|
3315
|
-
external_containerFont: /* @__PURE__ */
|
|
3488
|
+
external_containerFont: /* @__PURE__ */ e(function() {
|
|
3316
3489
|
return {
|
|
3317
3490
|
fontFamily: this.external_containerFontFamily,
|
|
3318
3491
|
fontSize: this.external_containerFontSize,
|
|
3319
3492
|
fontWeight: this.external_containerFontWeight
|
|
3320
3493
|
};
|
|
3321
3494
|
}, "external_containerFont"),
|
|
3322
|
-
container_dbFont: /* @__PURE__ */
|
|
3495
|
+
container_dbFont: /* @__PURE__ */ e(function() {
|
|
3323
3496
|
return {
|
|
3324
3497
|
fontFamily: this.container_dbFontFamily,
|
|
3325
3498
|
fontSize: this.container_dbFontSize,
|
|
3326
3499
|
fontWeight: this.container_dbFontWeight
|
|
3327
3500
|
};
|
|
3328
3501
|
}, "container_dbFont"),
|
|
3329
|
-
external_container_dbFont: /* @__PURE__ */
|
|
3502
|
+
external_container_dbFont: /* @__PURE__ */ e(function() {
|
|
3330
3503
|
return {
|
|
3331
3504
|
fontFamily: this.external_container_dbFontFamily,
|
|
3332
3505
|
fontSize: this.external_container_dbFontSize,
|
|
3333
3506
|
fontWeight: this.external_container_dbFontWeight
|
|
3334
3507
|
};
|
|
3335
3508
|
}, "external_container_dbFont"),
|
|
3336
|
-
container_queueFont: /* @__PURE__ */
|
|
3509
|
+
container_queueFont: /* @__PURE__ */ e(function() {
|
|
3337
3510
|
return {
|
|
3338
3511
|
fontFamily: this.container_queueFontFamily,
|
|
3339
3512
|
fontSize: this.container_queueFontSize,
|
|
3340
3513
|
fontWeight: this.container_queueFontWeight
|
|
3341
3514
|
};
|
|
3342
3515
|
}, "container_queueFont"),
|
|
3343
|
-
external_container_queueFont: /* @__PURE__ */
|
|
3516
|
+
external_container_queueFont: /* @__PURE__ */ e(function() {
|
|
3344
3517
|
return {
|
|
3345
3518
|
fontFamily: this.external_container_queueFontFamily,
|
|
3346
3519
|
fontSize: this.external_container_queueFontSize,
|
|
3347
3520
|
fontWeight: this.external_container_queueFontWeight
|
|
3348
3521
|
};
|
|
3349
3522
|
}, "external_container_queueFont"),
|
|
3350
|
-
componentFont: /* @__PURE__ */
|
|
3523
|
+
componentFont: /* @__PURE__ */ e(function() {
|
|
3351
3524
|
return {
|
|
3352
3525
|
fontFamily: this.componentFontFamily,
|
|
3353
3526
|
fontSize: this.componentFontSize,
|
|
3354
3527
|
fontWeight: this.componentFontWeight
|
|
3355
3528
|
};
|
|
3356
3529
|
}, "componentFont"),
|
|
3357
|
-
external_componentFont: /* @__PURE__ */
|
|
3530
|
+
external_componentFont: /* @__PURE__ */ e(function() {
|
|
3358
3531
|
return {
|
|
3359
3532
|
fontFamily: this.external_componentFontFamily,
|
|
3360
3533
|
fontSize: this.external_componentFontSize,
|
|
3361
3534
|
fontWeight: this.external_componentFontWeight
|
|
3362
3535
|
};
|
|
3363
3536
|
}, "external_componentFont"),
|
|
3364
|
-
component_dbFont: /* @__PURE__ */
|
|
3537
|
+
component_dbFont: /* @__PURE__ */ e(function() {
|
|
3365
3538
|
return {
|
|
3366
3539
|
fontFamily: this.component_dbFontFamily,
|
|
3367
3540
|
fontSize: this.component_dbFontSize,
|
|
3368
3541
|
fontWeight: this.component_dbFontWeight
|
|
3369
3542
|
};
|
|
3370
3543
|
}, "component_dbFont"),
|
|
3371
|
-
external_component_dbFont: /* @__PURE__ */
|
|
3544
|
+
external_component_dbFont: /* @__PURE__ */ e(function() {
|
|
3372
3545
|
return {
|
|
3373
3546
|
fontFamily: this.external_component_dbFontFamily,
|
|
3374
3547
|
fontSize: this.external_component_dbFontSize,
|
|
3375
3548
|
fontWeight: this.external_component_dbFontWeight
|
|
3376
3549
|
};
|
|
3377
3550
|
}, "external_component_dbFont"),
|
|
3378
|
-
component_queueFont: /* @__PURE__ */
|
|
3551
|
+
component_queueFont: /* @__PURE__ */ e(function() {
|
|
3379
3552
|
return {
|
|
3380
3553
|
fontFamily: this.component_queueFontFamily,
|
|
3381
3554
|
fontSize: this.component_queueFontSize,
|
|
3382
3555
|
fontWeight: this.component_queueFontWeight
|
|
3383
3556
|
};
|
|
3384
3557
|
}, "component_queueFont"),
|
|
3385
|
-
external_component_queueFont: /* @__PURE__ */
|
|
3558
|
+
external_component_queueFont: /* @__PURE__ */ e(function() {
|
|
3386
3559
|
return {
|
|
3387
3560
|
fontFamily: this.external_component_queueFontFamily,
|
|
3388
3561
|
fontSize: this.external_component_queueFontSize,
|
|
3389
3562
|
fontWeight: this.external_component_queueFontWeight
|
|
3390
3563
|
};
|
|
3391
3564
|
}, "external_component_queueFont"),
|
|
3392
|
-
boundaryFont: /* @__PURE__ */
|
|
3565
|
+
boundaryFont: /* @__PURE__ */ e(function() {
|
|
3393
3566
|
return {
|
|
3394
3567
|
fontFamily: this.boundaryFontFamily,
|
|
3395
3568
|
fontSize: this.boundaryFontSize,
|
|
3396
3569
|
fontWeight: this.boundaryFontWeight
|
|
3397
3570
|
};
|
|
3398
3571
|
}, "boundaryFont"),
|
|
3399
|
-
messageFont: /* @__PURE__ */
|
|
3572
|
+
messageFont: /* @__PURE__ */ e(function() {
|
|
3400
3573
|
return {
|
|
3401
3574
|
fontFamily: this.messageFontFamily,
|
|
3402
3575
|
fontSize: this.messageFontSize,
|
|
@@ -3405,26 +3578,27 @@ var O = {
|
|
|
3405
3578
|
}, "messageFont")
|
|
3406
3579
|
},
|
|
3407
3580
|
pie: {
|
|
3408
|
-
...
|
|
3581
|
+
...q.pie,
|
|
3409
3582
|
useWidth: 984
|
|
3410
3583
|
},
|
|
3411
3584
|
xyChart: {
|
|
3412
|
-
...
|
|
3585
|
+
...q.xyChart,
|
|
3413
3586
|
useWidth: void 0
|
|
3414
3587
|
},
|
|
3415
3588
|
requirement: {
|
|
3416
|
-
...
|
|
3589
|
+
...q.requirement,
|
|
3417
3590
|
useWidth: void 0
|
|
3418
3591
|
},
|
|
3419
|
-
packet: { ...
|
|
3420
|
-
eventmodeling: { ...
|
|
3592
|
+
packet: { ...q.packet },
|
|
3593
|
+
eventmodeling: { ...q.eventmodeling },
|
|
3421
3594
|
treeView: {
|
|
3422
|
-
...
|
|
3595
|
+
...q.treeView,
|
|
3423
3596
|
useWidth: void 0
|
|
3424
3597
|
},
|
|
3425
|
-
radar: { ...
|
|
3598
|
+
radar: { ...q.radar },
|
|
3599
|
+
usecase: { ...q.usecase },
|
|
3426
3600
|
railroad: {
|
|
3427
|
-
...
|
|
3601
|
+
...q.railroad,
|
|
3428
3602
|
fontSize: void 0,
|
|
3429
3603
|
fontFamily: void 0,
|
|
3430
3604
|
terminalFill: void 0,
|
|
@@ -3442,9 +3616,9 @@ var O = {
|
|
|
3442
3616
|
specialStroke: void 0,
|
|
3443
3617
|
ruleNameColor: void 0
|
|
3444
3618
|
},
|
|
3445
|
-
ishikawa: { ...
|
|
3619
|
+
ishikawa: { ...q.ishikawa },
|
|
3446
3620
|
sankey: {
|
|
3447
|
-
...
|
|
3621
|
+
...q.sankey,
|
|
3448
3622
|
nodeColors: void 0
|
|
3449
3623
|
},
|
|
3450
3624
|
treemap: {
|
|
@@ -3459,225 +3633,235 @@ var O = {
|
|
|
3459
3633
|
labelFontSize: 14,
|
|
3460
3634
|
valueFormat: ","
|
|
3461
3635
|
},
|
|
3462
|
-
venn: { ...
|
|
3463
|
-
cynefin: { ...
|
|
3464
|
-
},
|
|
3636
|
+
venn: { ...q.venn },
|
|
3637
|
+
cynefin: { ...q.cynefin }
|
|
3638
|
+
}, $t = /* @__PURE__ */ e((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
|
|
3465
3639
|
...n,
|
|
3466
3640
|
t + r,
|
|
3467
|
-
|
|
3468
|
-
] : [...n, t + r], []), "keyify"),
|
|
3641
|
+
...$t(e[r], "")
|
|
3642
|
+
] : [...n, t + r], []), "keyify"), en = new Set($t(Qt, "")), tn = Qt, nn = {
|
|
3643
|
+
"flowchart-v2": "flowchart",
|
|
3644
|
+
"flowchart-elk": "flowchart",
|
|
3645
|
+
classDiagram: "class",
|
|
3646
|
+
stateDiagram: "state",
|
|
3647
|
+
xychart: "xyChart",
|
|
3648
|
+
railroadAbnf: "railroad",
|
|
3649
|
+
railroadEbnf: "railroad",
|
|
3650
|
+
railroadPeg: "railroad"
|
|
3651
|
+
}, rn = /* @__PURE__ */ e((e) => nn[e] ?? e, "getDiagramConfigKey"), an = {
|
|
3469
3652
|
nodeColors: /^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,
|
|
3470
3653
|
filenameIcons: /^[\w-]+(?::[\w-]+)?$/,
|
|
3471
3654
|
extensionIcons: /^[\w-]+(?::[\w-]+)?$/
|
|
3472
|
-
},
|
|
3473
|
-
for (let
|
|
3474
|
-
let i = e[
|
|
3475
|
-
(
|
|
3476
|
-
}
|
|
3477
|
-
}, "sanitizeDictionaryConfig"),
|
|
3478
|
-
if (
|
|
3479
|
-
if (Array.isArray(e))
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
continue;
|
|
3487
|
-
}
|
|
3488
|
-
if (typeof e[n] == "object") {
|
|
3489
|
-
let r = zt[n];
|
|
3490
|
-
r ? Bt(e[n], r) : (t.debug("sanitizing object", n), Vt(e[n]));
|
|
3491
|
-
continue;
|
|
3492
|
-
}
|
|
3493
|
-
for (let r of [
|
|
3655
|
+
}, on = /* @__PURE__ */ e((e, t) => {
|
|
3656
|
+
for (let n of Object.keys(e)) {
|
|
3657
|
+
let i = e[n];
|
|
3658
|
+
(n.startsWith("__") || n.includes("proto") || n.includes("constr") || typeof i != "string" || !t.test(i)) && (r.debug("sanitize deleting dictionary entry:", n, i), delete e[n]);
|
|
3659
|
+
}
|
|
3660
|
+
}, "sanitizeDictionaryConfig"), sn = /* @__PURE__ */ e((e) => {
|
|
3661
|
+
if (r.debug("sanitizeDirective called with", e), typeof e == "object" && e) {
|
|
3662
|
+
if (Array.isArray(e)) e.forEach((e) => sn(e));
|
|
3663
|
+
else {
|
|
3664
|
+
for (let t of Object.keys(e)) if (r.debug("Checking key", t), t.startsWith("__") || t.includes("proto") || t.includes("constr") || !en.has(t) || e[t] == null) r.debug("sanitize deleting key: ", t), delete e[t];
|
|
3665
|
+
else if (typeof e[t] == "object") {
|
|
3666
|
+
let n = an[t];
|
|
3667
|
+
n ? on(e[t], n) : (r.debug("sanitizing object", t), sn(e[t]));
|
|
3668
|
+
} else for (let n of [
|
|
3494
3669
|
"themeCSS",
|
|
3495
3670
|
"fontFamily",
|
|
3496
3671
|
"altFontFamily"
|
|
3497
|
-
])
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3672
|
+
]) t.includes(n) && (r.debug("sanitizing css option", t), e[t] = J(e[t]));
|
|
3673
|
+
if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
|
|
3674
|
+
let n = e.themeVariables[t];
|
|
3675
|
+
n?.match && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = "");
|
|
3676
|
+
}
|
|
3677
|
+
r.debug("After sanitization", e);
|
|
3502
3678
|
}
|
|
3503
|
-
t.debug("After sanitization", e);
|
|
3504
3679
|
}
|
|
3505
|
-
}, "sanitizeDirective"),
|
|
3680
|
+
}, "sanitizeDirective"), J = /* @__PURE__ */ e((e) => {
|
|
3506
3681
|
let t = 0, n = 0;
|
|
3507
3682
|
for (let r of e) {
|
|
3508
3683
|
if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
|
|
3509
3684
|
r === "{" ? t++ : r === "}" && n++;
|
|
3510
3685
|
}
|
|
3511
3686
|
return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
|
|
3512
|
-
}, "sanitizeCss"),
|
|
3687
|
+
}, "sanitizeCss"), Y = Object.freeze(tn), cn = [
|
|
3688
|
+
"theme",
|
|
3689
|
+
"look",
|
|
3690
|
+
"layout"
|
|
3691
|
+
], ln = /* @__PURE__ */ new Set([
|
|
3692
|
+
"classic",
|
|
3693
|
+
"handDrawn",
|
|
3694
|
+
"neo"
|
|
3695
|
+
]), un = /* @__PURE__ */ e((e, t) => e === "theme" ? t === "null" || Object.hasOwn(K, t) : e !== "look" || ln.has(t), "isUsableAppearance"), dn = /* @__PURE__ */ e((e, t, n) => {
|
|
3696
|
+
if (e) return [e[t]?.[n], e[n]].find((e) => e !== void 0 && un(n, e));
|
|
3697
|
+
}, "readAppearance"), fn = /* @__PURE__ */ e((e) => !(e === !1 || [
|
|
3513
3698
|
"false",
|
|
3514
3699
|
"null",
|
|
3515
3700
|
"0"
|
|
3516
|
-
].includes(String(e).trim().toLowerCase())), "evaluate"),
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3701
|
+
].includes(String(e).trim().toLowerCase())), "evaluate"), X = B({}, Y), pn, mn = {}, hn = [], Z = B({}, Y), gn, _n = /* @__PURE__ */ e((e, t) => {
|
|
3702
|
+
if (!gn) return;
|
|
3703
|
+
let n = [
|
|
3704
|
+
t,
|
|
3705
|
+
...[...hn].reverse(),
|
|
3706
|
+
mn,
|
|
3707
|
+
Y
|
|
3708
|
+
], r = e[gn];
|
|
3709
|
+
for (let t of cn) for (let i of n) {
|
|
3710
|
+
let n = dn(i, gn, t);
|
|
3711
|
+
if (n !== void 0) {
|
|
3712
|
+
e[t] = n, r?.[t] !== void 0 && (r[t] = n);
|
|
3713
|
+
break;
|
|
3714
|
+
}
|
|
3715
|
+
}
|
|
3716
|
+
}, "resolveAppearance"), Q = /* @__PURE__ */ e((e, t) => {
|
|
3717
|
+
let n = B({}, e), r = {};
|
|
3718
|
+
for (let e of t) Tn(e), r = B(r, e);
|
|
3719
|
+
if (n = B(n, r), _n(n, r), (r.theme || n.theme !== e.theme) && n.theme && Object.hasOwn(K, n.theme)) {
|
|
3720
|
+
let e = B(B({}, pn).themeVariables || {}, r.themeVariables);
|
|
3721
|
+
n.themeVariables = K[n.theme].getThemeVariables(e);
|
|
3722
|
+
}
|
|
3723
|
+
return Z = n, jn(Z), Z;
|
|
3724
|
+
}, "updateCurrentConfig"), vn = /* @__PURE__ */ e((e) => {
|
|
3725
|
+
gn = e === void 0 ? void 0 : rn(e), Q(X, hn);
|
|
3726
|
+
}, "setDiagramConfigScope"), yn = /* @__PURE__ */ e((e) => (X = B({}, Y), X = B(X, e), mn = B({}, e), e.theme && Object.hasOwn(K, e.theme) && (X.themeVariables = K[e.theme].getThemeVariables(e.themeVariables)), Q(X, hn), X), "setSiteConfig"), bn = /* @__PURE__ */ e((e) => {
|
|
3727
|
+
pn = B({}, e);
|
|
3728
|
+
}, "saveConfigFromInitialize"), xn = /* @__PURE__ */ e((e) => (X = B(X, e), mn = B(mn, e), Q(X, hn), X), "updateSiteConfig"), Sn = /* @__PURE__ */ e(() => B({}, X), "getSiteConfig"), Cn = /* @__PURE__ */ e((e) => (Q(Z, [e]), wn()), "setConfig"), wn = /* @__PURE__ */ e(() => B({}, Z), "getConfig"), Tn = /* @__PURE__ */ e((e) => {
|
|
3729
|
+
e && (["secure", ...X.secure ?? []].forEach((t) => {
|
|
3730
|
+
Object.hasOwn(e, t) && (r.debug(`Denied attempt to modify a secure key ${t}`, e[t]), delete e[t]);
|
|
3529
3731
|
}), Object.keys(e).forEach((t) => {
|
|
3530
3732
|
t.startsWith("__") && delete e[t];
|
|
3531
3733
|
}), Object.keys(e).forEach((t) => {
|
|
3532
|
-
typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" &&
|
|
3734
|
+
typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && Tn(e[t]);
|
|
3533
3735
|
}));
|
|
3534
|
-
}, "sanitize"),
|
|
3535
|
-
|
|
3736
|
+
}, "sanitize"), En = /* @__PURE__ */ e((e) => {
|
|
3737
|
+
sn(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
|
|
3536
3738
|
...e.themeVariables,
|
|
3537
3739
|
fontFamily: e.fontFamily
|
|
3538
|
-
}),
|
|
3539
|
-
}, "addDirective"),
|
|
3540
|
-
|
|
3541
|
-
}, "reset"),
|
|
3740
|
+
}), hn.push(e), Q(X, hn);
|
|
3741
|
+
}, "addDirective"), Dn = /* @__PURE__ */ e((e = X) => {
|
|
3742
|
+
hn = [], gn = void 0, Q(e, hn);
|
|
3743
|
+
}, "reset"), On = {
|
|
3542
3744
|
LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
|
|
3543
3745
|
FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
|
|
3544
|
-
},
|
|
3545
|
-
|
|
3546
|
-
}, "issueWarning"),
|
|
3547
|
-
e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) &&
|
|
3548
|
-
}, "checkConfig"),
|
|
3746
|
+
}, kn = {}, An = /* @__PURE__ */ e((e) => {
|
|
3747
|
+
kn[e] || (r.warn(On[e]), kn[e] = !0);
|
|
3748
|
+
}, "issueWarning"), jn = /* @__PURE__ */ e((e) => {
|
|
3749
|
+
e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && An("LAZY_LOAD_DEPRECATED");
|
|
3750
|
+
}, "checkConfig"), Mn = /* @__PURE__ */ e(() => {
|
|
3549
3751
|
let e = {};
|
|
3550
|
-
|
|
3551
|
-
for (let t of
|
|
3752
|
+
pn && (e = B(e, pn));
|
|
3753
|
+
for (let t of hn) e = B(e, t);
|
|
3552
3754
|
return e;
|
|
3553
|
-
}, "getUserDefinedConfig"),
|
|
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__ */ (() => {
|
|
3755
|
+
}, "getUserDefinedConfig"), Nn = /* @__PURE__ */ e((e) => (e.flowchart?.htmlLabels != null && An("FLOWCHART_HTML_LABELS_DEPRECATED"), fn(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), Pn = /<\/?br\s*\/?>/gi, Fn = new RegExp(Pn.source, "i"), In = /* @__PURE__ */ e((e) => e ? Gn(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), $ = /* @__PURE__ */ (() => {
|
|
3572
3756
|
let e = !1;
|
|
3573
3757
|
return () => {
|
|
3574
|
-
e ||= (
|
|
3758
|
+
e ||= (Ln(), !0);
|
|
3575
3759
|
};
|
|
3576
3760
|
})();
|
|
3577
|
-
function
|
|
3761
|
+
function Ln() {
|
|
3578
3762
|
let e = "data-temp-href-target";
|
|
3579
|
-
|
|
3763
|
+
C.addHook("beforeSanitizeAttributes", (t) => {
|
|
3580
3764
|
t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
|
|
3581
|
-
}),
|
|
3765
|
+
}), C.addHook("afterSanitizeAttributes", (t) => {
|
|
3582
3766
|
t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
|
|
3583
3767
|
});
|
|
3584
3768
|
}
|
|
3585
|
-
|
|
3586
|
-
var
|
|
3587
|
-
if (
|
|
3769
|
+
e(Ln, "setupDompurifyHooks");
|
|
3770
|
+
var Rn = /* @__PURE__ */ e((e) => ($(), C.sanitize(e)), "removeScript"), zn = /* @__PURE__ */ e((e, t) => {
|
|
3771
|
+
if (Nn(t)) {
|
|
3588
3772
|
let n = t.securityLevel;
|
|
3589
|
-
n === "antiscript" || n === "strict" || n === "sandbox" ? e =
|
|
3773
|
+
n === "antiscript" || n === "strict" || n === "sandbox" ? e = Rn(e) : n !== "loose" && (e = Gn(e), e = e.replace(/</g, "<").replace(/>/g, ">"), e = e.replace(/=/g, "="), e = Wn(e));
|
|
3590
3774
|
}
|
|
3591
3775
|
return e;
|
|
3592
|
-
}, "sanitizeMore"),
|
|
3776
|
+
}, "sanitizeMore"), Bn = /* @__PURE__ */ e((e, t) => e && (e = t.dompurifyConfig ? C.sanitize(zn(e, t), t.dompurifyConfig).toString() : C.sanitize(zn(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), Vn = /* @__PURE__ */ e((e, t) => typeof e == "string" ? Bn(e, t) : e.flat().map((e) => Bn(e, t)), "sanitizeTextOrArray"), Hn = /* @__PURE__ */ e((e) => Fn.test(e), "hasBreaks"), Un = /* @__PURE__ */ e((e) => e.split(Pn), "splitBreaks"), Wn = /* @__PURE__ */ e((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), Gn = /* @__PURE__ */ e((e) => e.replace(Pn, "#br#"), "breakToPlaceholder"), Kn = /* @__PURE__ */ e((e) => {
|
|
3593
3777
|
let t = "";
|
|
3594
3778
|
return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
|
|
3595
|
-
}, "getUrl"),
|
|
3779
|
+
}, "getUrl"), qn = /* @__PURE__ */ e(function(...e) {
|
|
3596
3780
|
let t = e.filter((e) => !isNaN(e));
|
|
3597
3781
|
return Math.max(...t);
|
|
3598
|
-
}, "getMax"),
|
|
3782
|
+
}, "getMax"), Jn = /* @__PURE__ */ e(function(...e) {
|
|
3599
3783
|
let t = e.filter((e) => !isNaN(e));
|
|
3600
3784
|
return Math.min(...t);
|
|
3601
|
-
}, "getMin"),
|
|
3785
|
+
}, "getMin"), Yn = /* @__PURE__ */ e(function(e) {
|
|
3602
3786
|
let t = e.split(/(,)/), n = [];
|
|
3603
3787
|
for (let e = 0; e < t.length; e++) {
|
|
3604
3788
|
let r = t[e];
|
|
3605
3789
|
if (r === "," && e > 0 && e + 1 < t.length) {
|
|
3606
3790
|
let i = t[e - 1], a = t[e + 1];
|
|
3607
|
-
|
|
3791
|
+
Zn(i, a) && (r = i + "," + a, e++, n.pop());
|
|
3608
3792
|
}
|
|
3609
|
-
n.push(
|
|
3793
|
+
n.push(Qn(r));
|
|
3610
3794
|
}
|
|
3611
3795
|
return n.join("");
|
|
3612
|
-
}, "parseGenericTypes"),
|
|
3613
|
-
let n =
|
|
3796
|
+
}, "parseGenericTypes"), Xn = /* @__PURE__ */ e((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), Zn = /* @__PURE__ */ e((e, t) => {
|
|
3797
|
+
let n = Xn(e, "~"), r = Xn(t, "~");
|
|
3614
3798
|
return n === 1 && r === 1;
|
|
3615
|
-
}, "shouldCombineSets"),
|
|
3616
|
-
let t =
|
|
3799
|
+
}, "shouldCombineSets"), Qn = /* @__PURE__ */ e((e) => {
|
|
3800
|
+
let t = Xn(e, "~"), n = !1;
|
|
3617
3801
|
if (t <= 1) return e;
|
|
3618
3802
|
t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
|
|
3619
3803
|
let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
|
|
3620
3804
|
for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
|
|
3621
3805
|
return n && r.unshift("~"), r.join("");
|
|
3622
|
-
}, "processSet"),
|
|
3806
|
+
}, "processSet"), $n = /* @__PURE__ */ e(() => window.MathMLElement !== void 0, "isMathMLSupported"), er = /\$\$(.*?)\$\$/g, tr = /* @__PURE__ */ e((e) => (e.match(er)?.length ?? 0) > 0, "hasKatex"), nr = /* @__PURE__ */ e(async (e, t) => {
|
|
3623
3807
|
let n = document.createElement("div");
|
|
3624
|
-
n.innerHTML = await
|
|
3808
|
+
n.innerHTML = await ir(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
|
|
3625
3809
|
let r = {
|
|
3626
3810
|
width: n.clientWidth,
|
|
3627
3811
|
height: n.clientHeight
|
|
3628
3812
|
};
|
|
3629
3813
|
return n.remove(), r;
|
|
3630
|
-
}, "calculateMathMLDimensions"),
|
|
3631
|
-
if (!
|
|
3632
|
-
if (!(
|
|
3814
|
+
}, "calculateMathMLDimensions"), rr = /* @__PURE__ */ e(async (e, t) => {
|
|
3815
|
+
if (!tr(e)) return e;
|
|
3816
|
+
if (!($n() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(er, "MathML is unsupported in this environment.");
|
|
3633
3817
|
{
|
|
3634
|
-
let { default: n } = await import("./katex-
|
|
3635
|
-
return e.split(
|
|
3818
|
+
let { default: n } = await import("./katex-CDhNh-ZQ.js"), r = t.forceLegacyMathML || !$n() && t.legacyMathML ? "htmlAndMathml" : "mathml";
|
|
3819
|
+
return e.split(Pn).map((e) => tr(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(er, (e, t) => n.renderToString(t, {
|
|
3636
3820
|
throwOnError: !0,
|
|
3637
3821
|
displayMode: !0,
|
|
3638
3822
|
output: r
|
|
3639
3823
|
}).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
|
|
3640
3824
|
}
|
|
3641
|
-
}, "renderKatexUnsanitized"),
|
|
3642
|
-
getRows:
|
|
3643
|
-
sanitizeText:
|
|
3644
|
-
sanitizeTextOrArray:
|
|
3645
|
-
hasBreaks:
|
|
3646
|
-
splitBreaks:
|
|
3647
|
-
lineBreakRegex:
|
|
3648
|
-
removeScript:
|
|
3649
|
-
getUrl:
|
|
3650
|
-
evaluate:
|
|
3651
|
-
getMax:
|
|
3652
|
-
getMin:
|
|
3653
|
-
},
|
|
3825
|
+
}, "renderKatexUnsanitized"), ir = /* @__PURE__ */ e(async (e, t) => Bn(await rr(e, t), t), "renderKatexSanitized"), ar = {
|
|
3826
|
+
getRows: In,
|
|
3827
|
+
sanitizeText: Bn,
|
|
3828
|
+
sanitizeTextOrArray: Vn,
|
|
3829
|
+
hasBreaks: Hn,
|
|
3830
|
+
splitBreaks: Un,
|
|
3831
|
+
lineBreakRegex: Pn,
|
|
3832
|
+
removeScript: Rn,
|
|
3833
|
+
getUrl: Kn,
|
|
3834
|
+
evaluate: fn,
|
|
3835
|
+
getMax: qn,
|
|
3836
|
+
getMin: Jn
|
|
3837
|
+
}, or = /* @__PURE__ */ e(function(e, t) {
|
|
3654
3838
|
for (let n of t) e.attr(n[0], n[1]);
|
|
3655
|
-
}, "d3Attrs"),
|
|
3839
|
+
}, "d3Attrs"), sr = /* @__PURE__ */ e(function(e, t, n) {
|
|
3656
3840
|
let r = /* @__PURE__ */ new Map();
|
|
3657
3841
|
return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
|
|
3658
|
-
}, "calculateSvgSizeAttrs"),
|
|
3659
|
-
|
|
3660
|
-
}, "configureSvgSize"),
|
|
3661
|
-
let a =
|
|
3662
|
-
|
|
3842
|
+
}, "calculateSvgSizeAttrs"), cr = /* @__PURE__ */ e(function(e, t, n, r) {
|
|
3843
|
+
or(e, sr(t, n, r));
|
|
3844
|
+
}, "configureSvgSize"), lr = /* @__PURE__ */ e(function(e, t, n, i) {
|
|
3845
|
+
let a = t.node().getBBox(), o = a.width, s = a.height;
|
|
3846
|
+
r.info(`SVG bounds: ${o}x${s}`, a);
|
|
3663
3847
|
let c = 0, l = 0;
|
|
3664
|
-
|
|
3665
|
-
let u = `${a.x -
|
|
3666
|
-
|
|
3667
|
-
}, "setupGraphViewbox"),
|
|
3668
|
-
function
|
|
3848
|
+
r.info(`Graph bounds: ${c}x${l}`, e), c = o + n * 2, l = s + n * 2, r.info(`Calculated bounds: ${c}x${l}`), cr(t, l, c, i);
|
|
3849
|
+
let u = `${a.x - n} ${a.y - n} ${a.width + 2 * n} ${a.height + 2 * n}`;
|
|
3850
|
+
t.attr("viewBox", u);
|
|
3851
|
+
}, "setupGraphViewbox"), ur = {};
|
|
3852
|
+
function dr(e) {
|
|
3669
3853
|
return [...e.cssRules].map((e) => e.cssText).join("\n");
|
|
3670
3854
|
}
|
|
3671
|
-
|
|
3672
|
-
var
|
|
3855
|
+
e(dr, "cssStyleSheetToString");
|
|
3856
|
+
var fr = /* @__PURE__ */ e((e, t, n, i) => {
|
|
3673
3857
|
let a = "";
|
|
3674
|
-
return e in
|
|
3675
|
-
...
|
|
3858
|
+
return e in ur && ur[e] ? a = ur[e]({
|
|
3859
|
+
...n,
|
|
3676
3860
|
svgId: i
|
|
3677
|
-
}) :
|
|
3678
|
-
font-family: ${
|
|
3679
|
-
font-size: ${
|
|
3680
|
-
fill: ${
|
|
3861
|
+
}) : r.warn(`No theme found for ${e}`), `& {
|
|
3862
|
+
font-family: ${n.fontFamily};
|
|
3863
|
+
font-size: ${n.fontSize};
|
|
3864
|
+
fill: ${n.textColor}
|
|
3681
3865
|
}
|
|
3682
3866
|
@keyframes edge-animation-frame {
|
|
3683
3867
|
from {
|
|
@@ -3704,15 +3888,15 @@ var Gn = /* @__PURE__ */ n((e, n, r, i) => {
|
|
|
3704
3888
|
/* Classes common for multiple diagrams */
|
|
3705
3889
|
|
|
3706
3890
|
& .error-icon {
|
|
3707
|
-
fill: ${
|
|
3891
|
+
fill: ${n.errorBkgColor};
|
|
3708
3892
|
}
|
|
3709
3893
|
& .error-text {
|
|
3710
|
-
fill: ${
|
|
3711
|
-
stroke: ${
|
|
3894
|
+
fill: ${n.errorTextColor};
|
|
3895
|
+
stroke: ${n.errorTextColor};
|
|
3712
3896
|
}
|
|
3713
3897
|
|
|
3714
3898
|
& .edge-thickness-normal {
|
|
3715
|
-
stroke-width: ${
|
|
3899
|
+
stroke-width: ${n.strokeWidth ?? 1}px;
|
|
3716
3900
|
}
|
|
3717
3901
|
& .edge-thickness-thick {
|
|
3718
3902
|
stroke-width: 3.5px
|
|
@@ -3732,16 +3916,16 @@ var Gn = /* @__PURE__ */ n((e, n, r, i) => {
|
|
|
3732
3916
|
}
|
|
3733
3917
|
|
|
3734
3918
|
& .marker {
|
|
3735
|
-
fill: ${
|
|
3736
|
-
stroke: ${
|
|
3919
|
+
fill: ${n.lineColor};
|
|
3920
|
+
stroke: ${n.lineColor};
|
|
3737
3921
|
}
|
|
3738
3922
|
& .marker.cross {
|
|
3739
|
-
stroke: ${
|
|
3923
|
+
stroke: ${n.lineColor};
|
|
3740
3924
|
}
|
|
3741
3925
|
|
|
3742
3926
|
& svg {
|
|
3743
|
-
font-family: ${
|
|
3744
|
-
font-size: ${
|
|
3927
|
+
font-family: ${n.fontFamily};
|
|
3928
|
+
font-size: ${n.fontSize};
|
|
3745
3929
|
}
|
|
3746
3930
|
& p {
|
|
3747
3931
|
margin: 0
|
|
@@ -3749,12 +3933,12 @@ var Gn = /* @__PURE__ */ n((e, n, r, i) => {
|
|
|
3749
3933
|
|
|
3750
3934
|
${a}
|
|
3751
3935
|
.node .neo-node {
|
|
3752
|
-
stroke: ${
|
|
3936
|
+
stroke: ${n.nodeBorder};
|
|
3753
3937
|
}
|
|
3754
3938
|
|
|
3755
3939
|
[data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
|
|
3756
|
-
stroke: ${
|
|
3757
|
-
filter: ${
|
|
3940
|
+
stroke: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
|
|
3941
|
+
filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
|
|
3758
3942
|
}
|
|
3759
3943
|
[data-look="neo"].swimlane.cluster rect {
|
|
3760
3944
|
filter: none;
|
|
@@ -3762,22 +3946,22 @@ var Gn = /* @__PURE__ */ n((e, n, r, i) => {
|
|
|
3762
3946
|
|
|
3763
3947
|
|
|
3764
3948
|
[data-look="neo"].node path {
|
|
3765
|
-
stroke: ${
|
|
3766
|
-
stroke-width: ${
|
|
3949
|
+
stroke: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
|
|
3950
|
+
stroke-width: ${n.strokeWidth ?? 1}px;
|
|
3767
3951
|
}
|
|
3768
3952
|
|
|
3769
3953
|
[data-look="neo"].node .outer-path {
|
|
3770
|
-
filter: ${
|
|
3954
|
+
filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
|
|
3771
3955
|
}
|
|
3772
3956
|
|
|
3773
3957
|
[data-look="neo"].node .neo-line path {
|
|
3774
|
-
stroke: ${
|
|
3958
|
+
stroke: ${n.nodeBorder};
|
|
3775
3959
|
filter: none;
|
|
3776
3960
|
}
|
|
3777
3961
|
|
|
3778
3962
|
[data-look="neo"].node circle{
|
|
3779
|
-
stroke: ${
|
|
3780
|
-
filter: ${
|
|
3963
|
+
stroke: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
|
|
3964
|
+
filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
|
|
3781
3965
|
}
|
|
3782
3966
|
|
|
3783
3967
|
[data-look="neo"].node circle .state-start{
|
|
@@ -3785,49 +3969,49 @@ var Gn = /* @__PURE__ */ n((e, n, r, i) => {
|
|
|
3785
3969
|
}
|
|
3786
3970
|
|
|
3787
3971
|
[data-look="neo"].icon-shape .icon {
|
|
3788
|
-
fill: ${
|
|
3789
|
-
filter: ${
|
|
3972
|
+
fill: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
|
|
3973
|
+
filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
|
|
3790
3974
|
}
|
|
3791
3975
|
|
|
3792
3976
|
[data-look="neo"].icon-shape .icon-neo path {
|
|
3793
|
-
stroke: ${
|
|
3794
|
-
filter: ${
|
|
3977
|
+
stroke: ${n.useGradient ? "url(" + i + "-gradient)" : n.nodeBorder};
|
|
3978
|
+
filter: ${n.dropShadow ? n.dropShadow.replace("url(#drop-shadow)", `url(${i}-drop-shadow)`) : "none"};
|
|
3795
3979
|
}
|
|
3796
3980
|
|
|
3797
|
-
${
|
|
3981
|
+
${t}
|
|
3798
3982
|
`;
|
|
3799
|
-
}, "getStyles"),
|
|
3800
|
-
t !== void 0 && (
|
|
3801
|
-
}, "addStylesForDiagram"),
|
|
3802
|
-
|
|
3803
|
-
clear: () =>
|
|
3804
|
-
getAccDescription: () =>
|
|
3805
|
-
getAccTitle: () =>
|
|
3806
|
-
getDiagramTitle: () =>
|
|
3807
|
-
setAccDescription: () =>
|
|
3808
|
-
setAccTitle: () =>
|
|
3809
|
-
setDiagramTitle: () =>
|
|
3983
|
+
}, "getStyles"), pr = /* @__PURE__ */ e((e, t) => {
|
|
3984
|
+
t !== void 0 && (ur[e] = t);
|
|
3985
|
+
}, "addStylesForDiagram"), mr = fr, hr = {};
|
|
3986
|
+
t(hr, {
|
|
3987
|
+
clear: () => br,
|
|
3988
|
+
getAccDescription: () => wr,
|
|
3989
|
+
getAccTitle: () => Sr,
|
|
3990
|
+
getDiagramTitle: () => Er,
|
|
3991
|
+
setAccDescription: () => Cr,
|
|
3992
|
+
setAccTitle: () => xr,
|
|
3993
|
+
setDiagramTitle: () => Tr
|
|
3810
3994
|
});
|
|
3811
|
-
var
|
|
3812
|
-
|
|
3813
|
-
}, "clear"),
|
|
3814
|
-
|
|
3815
|
-
}, "setAccTitle"),
|
|
3816
|
-
|
|
3817
|
-
}, "setAccDescription"),
|
|
3818
|
-
|
|
3819
|
-
}, "setDiagramTitle"),
|
|
3820
|
-
|
|
3821
|
-
}, "registerDiagram"),
|
|
3822
|
-
if (e in
|
|
3823
|
-
throw new
|
|
3824
|
-
}, "getDiagram"),
|
|
3995
|
+
var gr = "", _r = "", vr = "", yr = /* @__PURE__ */ e((e) => Bn(e, wn()), "sanitizeText"), br = /* @__PURE__ */ e(() => {
|
|
3996
|
+
gr = "", vr = "", _r = "";
|
|
3997
|
+
}, "clear"), xr = /* @__PURE__ */ e((e) => {
|
|
3998
|
+
gr = yr(e).replace(/^\s+/g, "");
|
|
3999
|
+
}, "setAccTitle"), Sr = /* @__PURE__ */ e(() => gr, "getAccTitle"), Cr = /* @__PURE__ */ e((e) => {
|
|
4000
|
+
vr = yr(e).replace(/\n\s+/g, "\n");
|
|
4001
|
+
}, "setAccDescription"), wr = /* @__PURE__ */ e(() => vr, "getAccDescription"), Tr = /* @__PURE__ */ e((e) => {
|
|
4002
|
+
_r = yr(e);
|
|
4003
|
+
}, "setDiagramTitle"), Er = /* @__PURE__ */ e(() => _r, "getDiagramTitle"), Dr = r, Or = n, kr = wn, Ar = Cn, jr = Y, Mr = /* @__PURE__ */ e((e) => Bn(e, kr()), "sanitizeText"), Nr = lr, Pr = /* @__PURE__ */ e(() => hr, "getCommonDb"), Fr = {}, Ir = /* @__PURE__ */ e((e, t, n) => {
|
|
4004
|
+
Fr[e] && Dr.warn(`Diagram with id ${e} already registered. Overwriting.`), Fr[e] = t, n && Ot(e, n), pr(e, t.styles), t.injectUtils?.(Dr, Or, kr, Mr, Nr, Pr(), () => {});
|
|
4005
|
+
}, "registerDiagram"), Lr = /* @__PURE__ */ e((e) => {
|
|
4006
|
+
if (e in Fr) return Fr[e];
|
|
4007
|
+
throw new Rr(e);
|
|
4008
|
+
}, "getDiagram"), Rr = class extends Error {
|
|
3825
4009
|
static {
|
|
3826
|
-
|
|
4010
|
+
e(this, "DiagramNotFoundError");
|
|
3827
4011
|
}
|
|
3828
4012
|
constructor(e) {
|
|
3829
4013
|
super(`Diagram ${e} not found.`);
|
|
3830
4014
|
}
|
|
3831
4015
|
};
|
|
3832
4016
|
//#endregion
|
|
3833
|
-
export {
|
|
4017
|
+
export { xn as $, Pn as A, Mr as B, Er as C, Kn as D, Lt as E, ir as F, Ar as G, Cr as H, Dn as I, yn as J, vn as K, J as L, Yn as M, Ir as N, Mn as O, Dt as P, K as Q, sn as R, kt as S, Sn as T, xr as U, bn as V, Cn as W, Nr as X, lr as Y, mr as Z, wr as _, br as a, O as at, kr as b, cr as c, jr as d, N as et, tn as f, fn as g, St as h, nr as i, k as it, Tt as j, tr as k, dr as l, z as m, En as n, bt as nt, hr as o, T as ot, Et as p, Tr as q, B as r, j as rt, ar as s, C as st, R as t, M as tt, Y as u, Sr as v, Nn as w, Lr as x, wn as y, Bn as z };
|