@pi-outpost/embed 0.40.0 → 0.40.2
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/{CodeEditor-Cb6i9oIs.cjs → CodeEditor-B699PZlx.cjs} +1 -1
- package/dist/{CodeEditor-2Vx8PHAy.js → CodeEditor-CxKTvrhG.js} +5 -5
- package/dist/PdfViewer-COOgvLyp.js +428 -0
- package/dist/PdfViewer-Dyou2VMw.cjs +1 -0
- package/dist/{abnfDiagram-WEYOIA3C-B2ss_Vsq.js → abnfDiagram-WEYOIA3C-B_dTFm2g.js} +5 -5
- package/dist/{abnfDiagram-WEYOIA3C-DMn87p58.cjs → abnfDiagram-WEYOIA3C-Dk2VD3Iw.cjs} +1 -1
- package/dist/{arc-CLGGhOeW.js → arc-37kcMiGl.js} +1 -1
- package/dist/{arc-Dh2Zrypi.cjs → arc-C7P0rHQr.cjs} +1 -1
- package/dist/architecture-WOLXFQ4H-Dg4VU8sZ.js +2 -0
- package/dist/architecture-WOLXFQ4H-u_y_0ZVC.cjs +1 -0
- package/dist/architectureDiagram-ZHVYKT53-Bud-mHjo.cjs +36 -0
- package/dist/{architectureDiagram-ZHVYKT53-C5QppHvM.js → architectureDiagram-ZHVYKT53-CslNYmQN.js} +48 -64
- package/dist/{blockDiagram-RJAE7QA3-DOvlohR9.js → blockDiagram-RJAE7QA3-Dgm9J6pS.js} +27 -38
- package/dist/{blockDiagram-RJAE7QA3-CODM9GdZ.cjs → blockDiagram-RJAE7QA3-lEBn-_Yn.cjs} +2 -2
- package/dist/{c4Diagram-XDPPPE54-eTVK3Kzy.cjs → c4Diagram-XDPPPE54-BKNqVY-U.cjs} +1 -1
- package/dist/{c4Diagram-XDPPPE54-8dwnUpAO.js → c4Diagram-XDPPPE54-rbzhqhW5.js} +8 -8
- package/dist/channel-AESWk0Yw.cjs +1 -0
- package/dist/{channel-B1lf-ehw.js → channel-CEoRf1uz.js} +1 -1
- package/dist/{chunk-2E7WHVMD-DkV-cet-.cjs → chunk-2E7WHVMD-BNsJOdNP.cjs} +1 -1
- package/dist/{chunk-2E7WHVMD-Dg_Sckag.js → chunk-2E7WHVMD-Vo-POJc_.js} +3 -3
- package/dist/{chunk-4EMNKR2T-C2XrT3x_.js → chunk-4EMNKR2T-BIO9veC4.js} +1 -1
- package/dist/{chunk-4EMNKR2T-DfeN909d.cjs → chunk-4EMNKR2T-CGAdq4EA.cjs} +1 -1
- package/dist/{chunk-55XCU76K-d9D4PS_7.cjs → chunk-55XCU76K-IpMfjRYv.cjs} +1 -1
- package/dist/{chunk-55XCU76K-CADZXRVb.js → chunk-55XCU76K-o8OgDLPD.js} +3 -3
- package/dist/{chunk-7S6XSTFO-DV8etStf.js → chunk-7S6XSTFO-DrDRohsE.js} +4 -4
- package/dist/{chunk-7S6XSTFO-DJ37SdG5.cjs → chunk-7S6XSTFO-ejBVk-tI.cjs} +1 -1
- package/dist/{chunk-AQDTSKZB-DElrkKED.cjs → chunk-AQDTSKZB-B-MpZ-y2.cjs} +7 -7
- package/dist/{chunk-AQDTSKZB-CUCC855j.js → chunk-AQDTSKZB-DUZx386i.js} +14 -73
- package/dist/chunk-DSNLSHJZ-BxQ7lMXY.cjs +129 -0
- package/dist/{chunk-DSNLSHJZ-Bicto10E.js → chunk-DSNLSHJZ-DPpiuUZK.js} +627 -624
- package/dist/{chunk-HAGFOTED-Dykk1LyE.cjs → chunk-HAGFOTED-BUPxFGdn.cjs} +1 -1
- package/dist/{chunk-HAGFOTED-BjDmRfgG.js → chunk-HAGFOTED-ceXO12G4.js} +6 -6
- package/dist/{chunk-HNE4Q36P-C-j5Nn9f.cjs → chunk-HNE4Q36P-CCHAgwa3.cjs} +1 -1
- package/dist/{chunk-HNE4Q36P-5u7dvjgt.js → chunk-HNE4Q36P-uON_vFhT.js} +6 -6
- package/dist/{chunk-NGNAAXSQ-kHtfTQLE.cjs → chunk-NGNAAXSQ-BaBpWF2S.cjs} +6 -6
- package/dist/{chunk-NGNAAXSQ-DM0DL2MX.js → chunk-NGNAAXSQ-uUWLDjAm.js} +46 -50
- package/dist/{chunk-NQOKRVIF-CpOc5MEh.cjs → chunk-NQOKRVIF-DcZqKWzv.cjs} +1 -1
- package/dist/{chunk-NQOKRVIF-DUgN94ic.js → chunk-NQOKRVIF-DmOxzSOQ.js} +9 -9
- package/dist/{chunk-UHW7PFBP-NbzzxkEP.js → chunk-UHW7PFBP-BTk1ZC8L.js} +1 -1
- package/dist/{chunk-UHW7PFBP-SZ8KvGM0.cjs → chunk-UHW7PFBP-Bays5Zi8.cjs} +1 -1
- package/dist/{chunk-VQ5W62QI-D3c9tcDC.js → chunk-VQ5W62QI-Bvcxpp51.js} +2 -2
- package/dist/{chunk-VQ5W62QI-CsW6i5Ev.cjs → chunk-VQ5W62QI-Dw9Kffnl.cjs} +1 -1
- package/dist/{chunk-WQQL4CDK-l3Yf4SAX.js → chunk-WQQL4CDK-C3yDIFZ3.js} +8 -8
- package/dist/{chunk-WQQL4CDK-TvwGUFeE.cjs → chunk-WQQL4CDK-DxEEyQzx.cjs} +1 -1
- package/dist/{chunk-XXDRQBXY-IzhWXllg.js → chunk-XXDRQBXY-CNtMgRT_.js} +1 -1
- package/dist/{chunk-XXDRQBXY-yMT3rT5Y.cjs → chunk-XXDRQBXY-DfReYcER.cjs} +1 -1
- package/dist/{chunk-YZO67HFG-CLf5aoHk.cjs → chunk-YZO67HFG-DCQIFG8j.cjs} +1 -1
- package/dist/{chunk-YZO67HFG-DWHo0c6-.js → chunk-YZO67HFG-WF3jklBn.js} +2 -2
- package/dist/{chunk-ZAUX2LTX-BwjEPfG0.cjs → chunk-ZAUX2LTX-DIQkgUFr.cjs} +1 -1
- package/dist/{chunk-ZAUX2LTX-COHXRsvU.js → chunk-ZAUX2LTX-P8LAwm_U.js} +3 -3
- package/dist/{chunk-ZCHMQSOR-Cw-9SNln.js → chunk-ZCHMQSOR-BbO7eY2w.js} +78 -80
- package/dist/chunk-ZCHMQSOR-Cg8zPt0w.cjs +1 -0
- package/dist/{classDiagram-v2-4MYWR3UA-vsmkJ0Cx.js → classDiagram-v2-4MYWR3UA-DIjHIULx.js} +16 -16
- package/dist/{classDiagram-v2-4MYWR3UA-wLbwKHvU.cjs → classDiagram-v2-4MYWR3UA-DyMM0DMP.cjs} +2 -2
- package/dist/{clike-8rZWBES0.cjs → clike-I-fVVl3d.cjs} +1 -1
- package/dist/{clike-D-dOQnrm.js → clike-VB7owi7S.js} +1 -5
- package/dist/{conversationExport-BmvGyAf-.cjs → conversationExport-Co-E1-fF.cjs} +1 -1
- package/dist/{conversationExport-CBiBLWVk.js → conversationExport-KyCOByU5.js} +7 -8
- package/dist/conversationHistory-BYekdNUk.cjs +31 -0
- package/dist/conversationHistory-DPZF00Qz.js +21639 -0
- package/dist/{core-D_MCdR2m.js → core-BGZbe1UJ.js} +2 -6
- package/dist/{core-BrupIPpc.cjs → core-CmCLKhYZ.cjs} +2 -2
- package/dist/{cose-bilkent-JH36ORCC-qPjrc3_9.js → cose-bilkent-JH36ORCC-DjbvRWCz.js} +58 -71
- package/dist/cose-bilkent-JH36ORCC-KeNQ2SMA.cjs +1 -0
- package/dist/cynefin-EF2NZ3EQ-BBhIrDKD.cjs +1 -0
- package/dist/cynefin-EF2NZ3EQ-DDZjUykJ.js +2 -0
- package/dist/{cynefinDiagram-WF24UDRP-CHBmFbqk.cjs → cynefinDiagram-WF24UDRP-BC09SRT2.cjs} +1 -1
- package/dist/{cynefinDiagram-WF24UDRP-BhWkOxCi.js → cynefinDiagram-WF24UDRP-DEFG-MNh.js} +5 -5
- package/dist/cytoscape.esm-BN8NndIc.cjs +321 -0
- package/dist/{cytoscape.esm-Cq7KPj0t.js → cytoscape.esm-BmhLauwj.js} +412 -513
- package/dist/dagre-NK4GIZVX-D0_oLrA9.cjs +4 -0
- package/dist/{dagre-NK4GIZVX-CJfLDa-C.js → dagre-NK4GIZVX-D6Xuc_Nw.js} +43 -47
- package/dist/{diagram-CBK3MWTC-2pAHlnGJ.js → diagram-CBK3MWTC-CuUrHQAz.js} +7 -7
- package/dist/{diagram-CBK3MWTC-B_5GBGbb.cjs → diagram-CBK3MWTC-DbXGbFMz.cjs} +1 -1
- package/dist/{diagram-I5XIIV2D-CQ_Y9NJs.js → diagram-I5XIIV2D-DbwsxgDf.js} +5 -5
- package/dist/{diagram-I5XIIV2D-BPxYY-Kp.cjs → diagram-I5XIIV2D-Dom9usNq.cjs} +1 -1
- package/dist/{diagram-ODIL2UCW-pyDNtrY0.cjs → diagram-ODIL2UCW-CLSAtgxG.cjs} +2 -2
- package/dist/{diagram-ODIL2UCW-BJL-7QWJ.js → diagram-ODIL2UCW-CSnuo9bJ.js} +7 -15
- package/dist/{diagram-PFBEJUXE-CXd3x3TA.js → diagram-PFBEJUXE-ChA6KYWw.js} +6 -6
- package/dist/{diagram-PFBEJUXE-BUvTWvw5.cjs → diagram-PFBEJUXE-DAIw33Bx.cjs} +1 -1
- package/dist/{diagram-RJA3I4VV-T3Hd1koB.cjs → diagram-RJA3I4VV-Bt-BxYua.cjs} +1 -1
- package/dist/{diagram-RJA3I4VV-eMNhs7pW.js → diagram-RJA3I4VV-DCygetH_.js} +5 -5
- package/dist/{diagram-TYUNFSNR-CWpFSB2K.js → diagram-TYUNFSNR-BSq4ni3b.js} +22 -35
- package/dist/diagram-TYUNFSNR-Dy2nkVin.cjs +200 -0
- package/dist/{dist-Dvqp7T4I.cjs → dist-2ynRxsSC.cjs} +1 -1
- package/dist/{dist-B7I27gkN.cjs → dist-AeGgfThs.cjs} +1 -1
- package/dist/{dist-Dwv2VYAL.cjs → dist-BB5r6V4R.cjs} +1 -1
- package/dist/{dist-BvsCdwbL.cjs → dist-BDenKBYL.cjs} +1 -1
- package/dist/{dist-BhXQJ0x3.js → dist-BJHB0x8Y.js} +12 -18
- package/dist/{dist-BWlGU9XM.js → dist-BTD5L343.js} +3 -3
- package/dist/{dist-Dr4zY56l.js → dist-BWEDf1a-.js} +2 -2
- package/dist/{dist-BlD6NhiG.js → dist-BWVp6Da-.js} +4 -7
- package/dist/{dist-B8gmxwh-.cjs → dist-C6eKaA9j.cjs} +1 -1
- package/dist/{dist-C0_uLrCb.cjs → dist-CCIM600Y.cjs} +1 -1
- package/dist/{dist-BZcglaBe.cjs → dist-CFf_g4kk.cjs} +1 -1
- package/dist/{dist-DPXHxuWb.js → dist-CGZbBQje.js} +2 -2
- package/dist/{dist-Xjm88mbq.js → dist-CIBKGNWD.js} +4 -4
- package/dist/{dist-DqbI0un6.cjs → dist-CQNYwGEy.cjs} +1 -1
- package/dist/{dist-CyFPTQ2l.cjs → dist-CT7H4C9g.cjs} +1 -1
- package/dist/{dist-BBUKMRrs.js → dist-CYUF5YPj.js} +2 -2
- package/dist/{dist-DWv23S35.js → dist-CZhfI1u7.js} +1 -1
- package/dist/{dist-CHKg1Qb9.js → dist-ChWDi62w.js} +3 -3
- package/dist/dist-CmF-TINl.cjs +1 -0
- package/dist/{dist-C8jjSrIs.cjs → dist-Cz8GulTe.cjs} +1 -1
- package/dist/{dist-qNFo_ASR.cjs → dist-D6LkseRA.cjs} +1 -1
- package/dist/{dist-BZjcsPqi.cjs → dist-DEZD35IP.cjs} +7 -7
- package/dist/{dist-DZrtSp8H.js → dist-DNg4hNu7.js} +3 -3
- package/dist/dist-D_oMTxAl.cjs +2 -0
- package/dist/{dist-BfQGuM1r.js → dist-DaJf_JYz.js} +4 -4
- package/dist/dist-Dpu_aN4m.cjs +1 -0
- package/dist/{dist-CA6ERWRG.js → dist-DszFZlYh.js} +2 -2
- package/dist/{dist-qq9a_ch2.js → dist-Kg2QsUg8.js} +4 -4
- package/dist/{dist-FSzij9Rn.js → dist-LM11INLG.js} +2 -2
- package/dist/{dist-C9dtxVRR.cjs → dist-M4fo1U45.cjs} +1 -1
- package/dist/{dist-BhNvvg0I.js → dist-gn9y7Yb8.js} +116 -119
- package/dist/{dist-B0lO3k1f.js → dist-hv72z6I6.js} +3 -3
- package/dist/{dist-Bppoi_v9.js → dist-lPCEVnGX.js} +2 -2
- package/dist/{dist-D8I4FQ-Q.cjs → dist-rfjaCa2V.cjs} +1 -1
- package/dist/{docxExport-BGYavEI-.js → docxExport-DpgcioIA.js} +2 -2
- package/dist/{docxExport-B24fOHFl.cjs → docxExport-ZYp4tZ7k.cjs} +1 -1
- package/dist/{ebnfDiagram-V4P3TTPT-DAoJZ85k.cjs → ebnfDiagram-V4P3TTPT-6xhHNshj.cjs} +1 -1
- package/dist/{ebnfDiagram-V4P3TTPT-B7cCNP3X.js → ebnfDiagram-V4P3TTPT-e4I3Otpa.js} +5 -5
- package/dist/{elk-QONTBCTQ-BYnAuRAH.js → elk-QONTBCTQ-B8RYU1Ay.js} +746 -1241
- package/dist/elk-QONTBCTQ-hBYUI6Nr.cjs +27 -0
- package/dist/{erDiagram-KYQIGQAA-BKkxORU3.js → erDiagram-KYQIGQAA-BTNANm6p.js} +14 -14
- package/dist/{erDiagram-KYQIGQAA-BIlejnVi.cjs → erDiagram-KYQIGQAA-DsqyoDOz.cjs} +1 -1
- package/dist/eventmodeling-K75KTNOO-Ckh9Djrw.js +2 -0
- package/dist/eventmodeling-K75KTNOO-DKYlYG2c.cjs +1 -0
- package/dist/flowDiagram-IUGLLWBU-BJlVRCj8.js +15 -0
- package/dist/flowDiagram-IUGLLWBU-CsC_IEV_.cjs +1 -0
- package/dist/{ganttDiagram-R7GPNTJY-BGcXo1KA.cjs → ganttDiagram-R7GPNTJY-B1juClwW.cjs} +2 -2
- package/dist/{ganttDiagram-R7GPNTJY-dcubAqZI.js → ganttDiagram-R7GPNTJY-CEGQ6hzi.js} +18 -26
- package/dist/gitGraph-VSP46ZUC-5x2CrP9e.js +2 -0
- package/dist/gitGraph-VSP46ZUC-Cgx_wrMl.cjs +1 -0
- package/dist/{gitGraphDiagram-PDYL7XHY-BoJsALki.cjs → gitGraphDiagram-PDYL7XHY-6cCNinUi.cjs} +1 -1
- package/dist/{gitGraphDiagram-PDYL7XHY-CfRYMd3w.js → gitGraphDiagram-PDYL7XHY-D_ADFBrL.js} +4 -4
- package/dist/info-OHQRW6UA-DDzA9eXN.cjs +1 -0
- package/dist/info-OHQRW6UA-DkaWmfEE.js +2 -0
- package/dist/{infoDiagram-MVDRKAX5-B1QBSTSo.cjs → infoDiagram-MVDRKAX5-CVeFOzof.cjs} +1 -1
- package/dist/{infoDiagram-MVDRKAX5-BYGrp2QT.js → infoDiagram-MVDRKAX5-Dkuw3h5s.js} +4 -4
- package/dist/{ishikawaDiagram-HPEHV2GE-BWJo3pFM.cjs → ishikawaDiagram-HPEHV2GE-92CAbMpi.cjs} +2 -2
- package/dist/{ishikawaDiagram-HPEHV2GE-C32LoFQd.js → ishikawaDiagram-HPEHV2GE-oTSoKUOA.js} +5 -7
- package/dist/{javascript-CIP6I0eT.js → javascript-BSRoJWCv.js} +1 -8
- package/dist/javascript-B_OkdA1F.cjs +1 -0
- package/dist/{journeyDiagram-BOSHW7O7-DJ9OKW8H.js → journeyDiagram-BOSHW7O7-CMbGxPLA.js} +4 -4
- package/dist/{journeyDiagram-BOSHW7O7-090H5NM8.cjs → journeyDiagram-BOSHW7O7-Cb_yTQWF.cjs} +1 -1
- package/dist/{kanban-definition-FNSA4HC5-BhC2u-9L.cjs → kanban-definition-FNSA4HC5-DlUMoAIT.cjs} +1 -1
- package/dist/{kanban-definition-FNSA4HC5-FqIvMKJw.js → kanban-definition-FNSA4HC5-DzEQcVPw.js} +10 -10
- package/dist/{katex-DTnCNBYg.js → katex-BOYcAQ2I.js} +17 -26
- package/dist/{katex-DBUQi-HZ.cjs → katex-C-T_oEhv.cjs} +5 -5
- package/dist/lib-CRTt_FoR.cjs +26 -0
- package/dist/{lib-DILNlJGg.js → lib-CSMo4o20.js} +1522 -1452
- package/dist/{line-CJjnW4T-.js → line-0VTxwDiV.js} +1 -1
- package/dist/{line-DjYp3Ff8.cjs → line-ZwhMGa3_.cjs} +1 -1
- package/dist/linear-Bh2vuvAF.cjs +1 -0
- package/dist/{linear-DVFZQF4V.js → linear-CxE0kir0.js} +2 -3
- package/dist/{loadReferencedImage-CkvnSeQi.js → loadReferencedImage-2qNdVVhQ.js} +2 -2
- package/dist/{loadReferencedImage-CHTgZKAP.cjs → loadReferencedImage-qVqyIGz2.cjs} +1 -1
- package/dist/mermaid-parser.core-DKJw9lm9.cjs +6 -0
- package/dist/{mermaid-parser.core-CI12FMcX.js → mermaid-parser.core-IoY9gmm6.js} +19 -25
- package/dist/{mermaid.core-2PafqU96.cjs → mermaid.core-73kk5oPm.cjs} +7 -7
- package/dist/{mermaid.core-BxQmR6RW.js → mermaid.core-C8dp1dnD.js} +69 -75
- package/dist/{mermaidToImage-DowDuCUe.js → mermaidToImage-B2aJB9x8.js} +4900 -2274
- package/dist/mermaidToImage-qujM0Ggp.cjs +28 -0
- package/dist/{mindmap-definition-6OY57UG3-C0JXAaiI.js → mindmap-definition-6OY57UG3-CXobmoZM.js} +13 -13
- package/dist/{mindmap-definition-6OY57UG3-QMaMZxqJ.cjs → mindmap-definition-6OY57UG3-DLx3d1V6.cjs} +1 -1
- package/dist/packet-JDAUHWVQ-7Kdl1aNj.js +2 -0
- package/dist/packet-JDAUHWVQ-BB_DuPiR.cjs +1 -0
- package/dist/{pdf-D6MygsxO.js → pdf-CL7gVGT1.js} +3278 -3383
- package/dist/pdf-HcLHRelN.cjs +54 -0
- package/dist/{pegDiagram-ECIUJNBX-agFLe55J.cjs → pegDiagram-ECIUJNBX-B-eSDSQK.cjs} +1 -1
- package/dist/{pegDiagram-ECIUJNBX-BluDPMz-.js → pegDiagram-ECIUJNBX-ODBWqs1V.js} +5 -5
- package/dist/pi-outpost-embed.cjs +15 -15
- package/dist/pi-outpost-embed.js +160 -325
- package/dist/pie-XZMESJXO-CxP1ntAS.cjs +1 -0
- package/dist/pie-XZMESJXO-vkOzPeYA.js +2 -0
- package/dist/{pieDiagram-GNMPY74T-Bkt6LXIr.cjs → pieDiagram-GNMPY74T-BtYyKCrf.cjs} +1 -1
- package/dist/{pieDiagram-GNMPY74T-D2Dlw9oL.js → pieDiagram-GNMPY74T-DYDC5z2D.js} +7 -7
- package/dist/{quadrantDiagram-D57K4MC3-vbdBbRAF.js → quadrantDiagram-D57K4MC3-BfQWcg-D.js} +3 -3
- package/dist/{quadrantDiagram-D57K4MC3-BwUPO-ri.cjs → quadrantDiagram-D57K4MC3-Cu6JmzPE.cjs} +1 -1
- package/dist/radar-ABXABTNO-BIDY5R4F.cjs +1 -0
- package/dist/radar-ABXABTNO-DvS23EDt.js +2 -0
- package/dist/railroad-I3PHUGI6-BRbLa2w3.cjs +1 -0
- package/dist/railroad-I3PHUGI6-DH5Ttw2P.js +2 -0
- package/dist/railroad-abnf-LNEFI6M7-Qj3WuV4C.cjs +1 -0
- package/dist/railroad-abnf-LNEFI6M7-wA0DIfJr.js +2 -0
- package/dist/railroad-ebnf-DWYD2UWJ-C7YCjuXb.cjs +1 -0
- package/dist/railroad-ebnf-DWYD2UWJ-CkakbyYF.js +2 -0
- package/dist/railroad-peg-JR7BVNR7-CpVGf7CG.cjs +1 -0
- package/dist/railroad-peg-JR7BVNR7-Kw2gXekA.js +2 -0
- package/dist/{railroadDiagram-Y72NRBL7-CJ9MP3wV.cjs → railroadDiagram-Y72NRBL7-BdHmqKV_.cjs} +1 -1
- package/dist/{railroadDiagram-Y72NRBL7-B2x_q8pa.js → railroadDiagram-Y72NRBL7-ChQwG3mZ.js} +5 -5
- package/dist/{requirementDiagram-EQYSW5RA-CP0M11vC.cjs → requirementDiagram-EQYSW5RA-CDQ6Nza1.cjs} +1 -1
- package/dist/{requirementDiagram-EQYSW5RA-j7VZ-e65.js → requirementDiagram-EQYSW5RA-Dj4E0fE3.js} +13 -13
- package/dist/{rolldown-runtime-DArdT4gl.js → rolldown-runtime-5HNE8Q1r.js} +1 -1
- package/dist/rolldown-runtime-DbbDpzbe.cjs +1 -0
- package/dist/{sankeyDiagram-SY24JHO5-B7NuxaKG.cjs → sankeyDiagram-SY24JHO5-BPFkmPzT.cjs} +1 -1
- package/dist/{sankeyDiagram-SY24JHO5-Cgewgbc8.js → sankeyDiagram-SY24JHO5-luxVW4uf.js} +2 -2
- package/dist/{sequenceDiagram-BLEHNHQU-B5THoiqW.cjs → sequenceDiagram-BLEHNHQU-DX51aIRY.cjs} +1 -1
- package/dist/{sequenceDiagram-BLEHNHQU-DsjvHcWN.js → sequenceDiagram-BLEHNHQU-H4rQDzp-.js} +6 -6
- package/dist/{sizeCapture-INFHLROL-B5Lg3qGn.js → sizeCapture-INFHLROL-Uzko9_4n.js} +1 -1
- package/dist/sizeCapture-INFHLROL-bi8MyHwB.cjs +1 -0
- package/dist/{src-Dkp7vqs8.js → src-65Lfw03T.js} +12 -18
- package/dist/src-BN1VgXwj.cjs +1 -0
- package/dist/{stateDiagram-v2-A6IESKWZ-BD0FNkiB.js → stateDiagram-v2-A6IESKWZ-DBJ11U2p.js} +14 -14
- package/dist/{stateDiagram-v2-A6IESKWZ-Dqzvdrv1.cjs → stateDiagram-v2-A6IESKWZ-Dbp783Hd.cjs} +1 -1
- package/dist/{swimlanes-B3ENRKFQ-Do-xntE9.js → swimlanes-B3ENRKFQ-Bp3vZCmK.js} +38 -60
- package/dist/swimlanes-B3ENRKFQ-DY1V--Rq.cjs +1 -0
- package/dist/swimlanesDiagram-AYQRV4AK-COavJcG4.js +27 -0
- package/dist/swimlanesDiagram-AYQRV4AK-dUd5QjxZ.cjs +8 -0
- package/dist/{timeline-definition-JXYKGLGB-Cxi2ay-W.js → timeline-definition-JXYKGLGB-BE6iAj4r.js} +5 -5
- package/dist/{timeline-definition-JXYKGLGB-B_QITrmE.cjs → timeline-definition-JXYKGLGB-DKhMPFBi.cjs} +1 -1
- package/dist/treeView-D4JQ5SDB-BAXbN8Bf.cjs +1 -0
- package/dist/treeView-D4JQ5SDB-BAub6u3e.js +2 -0
- package/dist/treemap-SAJKECNS-DlyYa6yd.js +2 -0
- package/dist/treemap-SAJKECNS-EjU-hEqB.cjs +1 -0
- package/dist/{typescript-C93MG6Zk.js → typescript-4QjI-Ug2.js} +1 -8
- package/dist/typescript-CUdTaGTg.cjs +1 -0
- package/dist/{usecaseDiagram-WPOLBNNX-_GFZAFdK.cjs → usecaseDiagram-WPOLBNNX-BRWufOTq.cjs} +6 -6
- package/dist/{usecaseDiagram-WPOLBNNX-C5u6uogx.js → usecaseDiagram-WPOLBNNX-DY9Md_AG.js} +36 -48
- package/dist/{vennDiagram-Q3Y3IDCW-CircfM4o.js → vennDiagram-Q3Y3IDCW-DbPGt27W.js} +4 -4
- package/dist/{vennDiagram-Q3Y3IDCW-Bf1i94bS.cjs → vennDiagram-Q3Y3IDCW-NYVHk5sI.cjs} +1 -1
- package/dist/wardley-7MLQ67FV-BDYz-MEd.js +2 -0
- package/dist/wardley-7MLQ67FV-BdwutaJ8.cjs +1 -0
- package/dist/{wardleyDiagram-IVAIDKWA-BOSseRAa.js → wardleyDiagram-IVAIDKWA-BHkJFpfC.js} +5 -5
- package/dist/{wardleyDiagram-IVAIDKWA-Cr5LS-u2.cjs → wardleyDiagram-IVAIDKWA-DsYJNlmX.cjs} +1 -1
- package/dist/{xychartDiagram-4URNHDU4-DOUN6alM.cjs → xychartDiagram-4URNHDU4-B_g46bSg.cjs} +1 -1
- package/dist/{xychartDiagram-4URNHDU4-C4X8LFY4.js → xychartDiagram-4URNHDU4-IvFjWG-y.js} +8 -8
- package/package.json +14 -14
- package/dist/PdfViewer-BJfC4rzg.js +0 -428
- package/dist/PdfViewer-D6C-NAyn.cjs +0 -1
- package/dist/architecture-WOLXFQ4H-DupyKILn.cjs +0 -1
- package/dist/architecture-WOLXFQ4H-X4ZWxzi-.js +0 -3
- package/dist/architectureDiagram-ZHVYKT53-DBfdIpyr.cjs +0 -36
- package/dist/channel-BRczbI_M.cjs +0 -1
- package/dist/chunk-DSNLSHJZ-DZO9xahH.cjs +0 -129
- package/dist/chunk-ZCHMQSOR-7slscxYq.cjs +0 -1
- package/dist/conversationHistory-DN1r7WZT.cjs +0 -287
- package/dist/conversationHistory-DwB6hasI.js +0 -43647
- package/dist/cose-bilkent-JH36ORCC-Cc2qvpLA.cjs +0 -1
- package/dist/cynefin-EF2NZ3EQ-BB_WO8YQ.js +0 -3
- package/dist/cynefin-EF2NZ3EQ-Du3-s5Z7.cjs +0 -1
- package/dist/cytoscape.esm-uHsEX1XI.cjs +0 -321
- package/dist/dagre-NK4GIZVX-BI_akQkH.cjs +0 -4
- package/dist/diagram-TYUNFSNR-B_p2UHsR.cjs +0 -200
- package/dist/dist-DEl2Ze0j.cjs +0 -2
- package/dist/dist-DJbgM591.cjs +0 -1
- package/dist/dist-Dja2VlN5.cjs +0 -1
- package/dist/elk-QONTBCTQ-BDAptnPT.cjs +0 -27
- package/dist/eventmodeling-K75KTNOO-CMoz0K5S.js +0 -3
- package/dist/eventmodeling-K75KTNOO-DZdZrgwl.cjs +0 -1
- package/dist/flowDiagram-IUGLLWBU-BSiCLGuL.cjs +0 -1
- package/dist/flowDiagram-IUGLLWBU-DL_I6QCE.js +0 -16
- package/dist/gitGraph-VSP46ZUC-DoTshgkY.js +0 -3
- package/dist/gitGraph-VSP46ZUC-lawIO6K6.cjs +0 -1
- package/dist/info-OHQRW6UA-DPTZOb30.js +0 -3
- package/dist/info-OHQRW6UA-deop1PPz.cjs +0 -1
- package/dist/javascript-Gn0piXHk.cjs +0 -1
- package/dist/lib-BDkAiWI9.cjs +0 -26
- package/dist/linear-Nt9BuHfn.cjs +0 -1
- package/dist/mermaid-parser.core-BHBS1DqP.cjs +0 -6
- package/dist/mermaidToImage-CSR5Vyvs.cjs +0 -25
- package/dist/packet-JDAUHWVQ-Bcik24Kz.js +0 -3
- package/dist/packet-JDAUHWVQ-CrY7ylWJ.cjs +0 -1
- package/dist/pdf-BcvU2rBV.cjs +0 -54
- package/dist/pie-XZMESJXO-BYQC-ufi.js +0 -3
- package/dist/pie-XZMESJXO-WjCBboSE.cjs +0 -1
- package/dist/radar-ABXABTNO-BoQ7hH7Z.cjs +0 -1
- package/dist/radar-ABXABTNO-MxbyaZja.js +0 -3
- package/dist/railroad-I3PHUGI6-DckUArT-.js +0 -3
- package/dist/railroad-I3PHUGI6-DuGTlHry.cjs +0 -1
- package/dist/railroad-abnf-LNEFI6M7-DmAJaMEu.js +0 -3
- package/dist/railroad-abnf-LNEFI6M7-DoWf9u55.cjs +0 -1
- package/dist/railroad-ebnf-DWYD2UWJ-Bf05ZyW1.cjs +0 -1
- package/dist/railroad-ebnf-DWYD2UWJ-CS2AUYSv.js +0 -3
- package/dist/railroad-peg-JR7BVNR7-B-nctVbV.js +0 -3
- package/dist/railroad-peg-JR7BVNR7-CcV5KH4m.cjs +0 -1
- package/dist/rolldown-runtime-DF3sbh8G.cjs +0 -1
- package/dist/sizeCapture-INFHLROL-bJ2ZX4Du.cjs +0 -1
- package/dist/src-D9o9TOtH.cjs +0 -1
- package/dist/swimlanes-B3ENRKFQ-DEsfJ_Va.cjs +0 -1
- package/dist/swimlanesDiagram-AYQRV4AK-CU4USE4p.cjs +0 -8
- package/dist/swimlanesDiagram-AYQRV4AK-ora_Y3LB.js +0 -27
- package/dist/treeView-D4JQ5SDB-C3ticT1s.cjs +0 -1
- package/dist/treeView-D4JQ5SDB-CEuRf8gK.js +0 -3
- package/dist/treemap-SAJKECNS-BwIfwvl-.cjs +0 -1
- package/dist/treemap-SAJKECNS-DiC0668-.js +0 -3
- package/dist/typescript-BarIi8q9.cjs +0 -1
- package/dist/wardley-7MLQ67FV-BoIyQQ0E.cjs +0 -1
- package/dist/wardley-7MLQ67FV-CFF6IT1d.js +0 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as e, t } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
|
|
2
|
-
import { h as n, m as r } from "./src-
|
|
2
|
+
import { h as n, m as r } from "./src-65Lfw03T.js";
|
|
3
3
|
//#region ../node_modules/khroma/dist/utils/channel.js
|
|
4
4
|
var i = {
|
|
5
5
|
min: {
|
|
@@ -437,15 +437,15 @@ var s = {
|
|
|
437
437
|
function re(e, t) {
|
|
438
438
|
this.v = e, this.k = t;
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function C(e, t) {
|
|
441
441
|
(t == null || t > e.length) && (t = e.length);
|
|
442
442
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
443
443
|
return r;
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function ie(e) {
|
|
446
446
|
if (Array.isArray(e)) return e;
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function ae(e, t) {
|
|
449
449
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
450
450
|
if (n != null) {
|
|
451
451
|
var r, i, a, o, s = [], c = !0, l = !1;
|
|
@@ -466,20 +466,20 @@ function oe(e, t) {
|
|
|
466
466
|
return s;
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function oe() {
|
|
470
470
|
throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
471
471
|
}
|
|
472
|
-
function
|
|
473
|
-
return
|
|
472
|
+
function se(e, t) {
|
|
473
|
+
return ie(e) || ae(e, t) || ce(e, t) || oe();
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function ce(e, t) {
|
|
476
476
|
if (e) {
|
|
477
|
-
if (typeof e == "string") return
|
|
477
|
+
if (typeof e == "string") return C(e, t);
|
|
478
478
|
var n = {}.toString.call(e).slice(8, -1);
|
|
479
|
-
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) ?
|
|
479
|
+
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) ? C(e, t) : void 0;
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function w(e) {
|
|
483
483
|
var t, n;
|
|
484
484
|
function r(t, n) {
|
|
485
485
|
try {
|
|
@@ -517,113 +517,119 @@ function ue(e) {
|
|
|
517
517
|
});
|
|
518
518
|
}, typeof e.return != "function" && (this.return = void 0);
|
|
519
519
|
}
|
|
520
|
-
|
|
520
|
+
w.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
|
|
521
521
|
return this;
|
|
522
|
-
},
|
|
522
|
+
}, w.prototype.next = function(e) {
|
|
523
523
|
return this._invoke("next", e);
|
|
524
|
-
},
|
|
524
|
+
}, w.prototype.throw = function(e) {
|
|
525
525
|
return this._invoke("throw", e);
|
|
526
|
-
},
|
|
526
|
+
}, w.prototype.return = function(e) {
|
|
527
527
|
return this._invoke("return", e);
|
|
528
528
|
};
|
|
529
|
-
var
|
|
530
|
-
|
|
529
|
+
var le = Object.entries, ue = Object.setPrototypeOf, de = Object.isFrozen, fe = Object.getPrototypeOf, pe = Object.getOwnPropertyDescriptor, T = Object.freeze, E = Object.seal, me = Object.create, he = typeof Reflect < "u" && Reflect, ge = he.apply, _e = he.construct;
|
|
530
|
+
T ||= function(e) {
|
|
531
531
|
return e;
|
|
532
|
-
},
|
|
532
|
+
}, E ||= function(e) {
|
|
533
533
|
return e;
|
|
534
|
-
},
|
|
534
|
+
}, ge ||= function(e, t) {
|
|
535
535
|
var n = [...arguments].slice(2);
|
|
536
536
|
return e.apply(t, n);
|
|
537
|
-
},
|
|
537
|
+
}, _e ||= function(e) {
|
|
538
538
|
return new e(...[...arguments].slice(1));
|
|
539
539
|
};
|
|
540
|
-
var
|
|
540
|
+
var ve = A(Array.prototype.forEach);
|
|
541
541
|
Array.prototype.indexOf;
|
|
542
|
-
var
|
|
543
|
-
|
|
544
|
-
var Ce = O(Array.prototype.splice), we = Array.isArray, Te = O(String.prototype.toLowerCase), Ee = O(String.prototype.toString), De = O(String.prototype.match), Oe = O(String.prototype.replace), ke = O(String.prototype.indexOf), Ae = O(String.prototype.trim), je = O(Number.prototype.toString), Me = O(Boolean.prototype.toString), Ne = typeof BigInt > "u" ? null : O(BigInt.prototype.toString), Pe = typeof Symbol > "u" ? null : O(Symbol.prototype.toString), E = O(Object.prototype.hasOwnProperty), Fe = O(Object.prototype.toString), D = O(RegExp.prototype.test), Ie = Le(TypeError);
|
|
545
|
-
function O(e) {
|
|
542
|
+
var ye = A(Array.prototype.lastIndexOf), be = A(Array.prototype.pop), xe = A(Array.prototype.push), Se = A(Array.prototype.slice), Ce = A(Array.prototype.splice), we = Array.isArray, Te = ze(Set), Ee = A(Set.prototype.add), De = A(Set.prototype.has), Oe = A(String.prototype.toLowerCase), ke = A(String.prototype.toString), Ae = A(String.prototype.match), je = A(String.prototype.replace), Me = A(String.prototype.indexOf), Ne = A(String.prototype.trim), Pe = A(Number.prototype.toString), D = A(Boolean.prototype.toString), Fe = typeof BigInt > "u" ? null : A(BigInt.prototype.toString), Ie = typeof Symbol > "u" ? null : A(Symbol.prototype.toString), O = A(Object.prototype.hasOwnProperty), Le = A(Object.prototype.toString), k = A(RegExp.prototype.test), Re = ze(TypeError);
|
|
543
|
+
function A(e) {
|
|
546
544
|
return function(t) {
|
|
547
545
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
548
546
|
var n = [...arguments].slice(1);
|
|
549
|
-
return
|
|
547
|
+
return ge(e, t, n);
|
|
550
548
|
};
|
|
551
549
|
}
|
|
552
|
-
function
|
|
550
|
+
function ze(e) {
|
|
553
551
|
return function() {
|
|
554
|
-
return
|
|
552
|
+
return _e(e, [...arguments]);
|
|
555
553
|
};
|
|
556
554
|
}
|
|
557
|
-
function
|
|
558
|
-
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] :
|
|
559
|
-
if (
|
|
555
|
+
function j(e, t) {
|
|
556
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Oe;
|
|
557
|
+
if (ue && ue(e, null), !we(t)) return e;
|
|
560
558
|
let r = t.length;
|
|
561
559
|
for (; r--;) {
|
|
562
560
|
let i = t[r];
|
|
563
561
|
if (typeof i == "string") {
|
|
564
562
|
let e = n(i);
|
|
565
|
-
e !== i && (
|
|
563
|
+
e !== i && (de(t) || (t[r] = e), i = e);
|
|
566
564
|
}
|
|
567
565
|
e[i] = !0;
|
|
568
566
|
}
|
|
569
567
|
return e;
|
|
570
568
|
}
|
|
571
|
-
function
|
|
572
|
-
for (let t = 0; t < e.length; t++)
|
|
569
|
+
function Be(e) {
|
|
570
|
+
for (let t = 0; t < e.length; t++) O(e, t) || (e[t] = null);
|
|
573
571
|
return e;
|
|
574
572
|
}
|
|
575
|
-
function
|
|
576
|
-
let t =
|
|
577
|
-
for (let r of
|
|
578
|
-
var n =
|
|
573
|
+
function M(e) {
|
|
574
|
+
let t = me(null);
|
|
575
|
+
for (let r of le(e)) {
|
|
576
|
+
var n = se(r, 2);
|
|
579
577
|
let i = n[0], a = n[1];
|
|
580
|
-
|
|
578
|
+
O(e, i) && (t[i] = we(a) ? Be(a) : a && typeof a == "object" && a.constructor === Object ? M(a) : a);
|
|
581
579
|
}
|
|
582
580
|
return t;
|
|
583
581
|
}
|
|
584
|
-
function
|
|
582
|
+
function Ve(e) {
|
|
585
583
|
switch (typeof e) {
|
|
586
584
|
case "string": return e;
|
|
587
|
-
case "number": return
|
|
588
|
-
case "boolean": return
|
|
589
|
-
case "bigint": return
|
|
590
|
-
case "symbol": return
|
|
591
|
-
case "undefined": return
|
|
585
|
+
case "number": return Pe(e);
|
|
586
|
+
case "boolean": return D(e);
|
|
587
|
+
case "bigint": return Fe ? Fe(e) : "0";
|
|
588
|
+
case "symbol": return Ie ? Ie(e) : "Symbol()";
|
|
589
|
+
case "undefined": return Le(e);
|
|
592
590
|
case "function":
|
|
593
591
|
case "object": {
|
|
594
|
-
if (e === null) return
|
|
595
|
-
let t = e, n =
|
|
592
|
+
if (e === null) return Le(e);
|
|
593
|
+
let t = e, n = N(t, "toString");
|
|
596
594
|
if (typeof n == "function") {
|
|
597
595
|
let e = n(t);
|
|
598
|
-
return typeof e == "string" ? e :
|
|
596
|
+
return typeof e == "string" ? e : Le(e);
|
|
599
597
|
}
|
|
600
|
-
return
|
|
598
|
+
return Le(e);
|
|
601
599
|
}
|
|
602
|
-
default: return
|
|
600
|
+
default: return Le(e);
|
|
603
601
|
}
|
|
604
602
|
}
|
|
605
|
-
function
|
|
603
|
+
function N(e, t) {
|
|
606
604
|
for (; e !== null;) {
|
|
607
|
-
let n =
|
|
605
|
+
let n = pe(e, t);
|
|
608
606
|
if (n) {
|
|
609
|
-
if (n.get) return
|
|
610
|
-
if (typeof n.value == "function") return
|
|
607
|
+
if (n.get) return A(n.get);
|
|
608
|
+
if (typeof n.value == "function") return A(n.value);
|
|
611
609
|
}
|
|
612
|
-
e =
|
|
610
|
+
e = fe(e);
|
|
613
611
|
}
|
|
614
612
|
function n() {
|
|
615
613
|
return null;
|
|
616
614
|
}
|
|
617
615
|
return n;
|
|
618
616
|
}
|
|
619
|
-
function
|
|
617
|
+
function He(e, t) {
|
|
618
|
+
for (; e !== null;) {
|
|
619
|
+
let n = pe(e, t);
|
|
620
|
+
if (n) return n.get ? A(n.get) : null;
|
|
621
|
+
e = fe(e);
|
|
622
|
+
}
|
|
623
|
+
return null;
|
|
624
|
+
}
|
|
625
|
+
function Ue(e) {
|
|
620
626
|
try {
|
|
621
|
-
return
|
|
627
|
+
return k(e, ""), !0;
|
|
622
628
|
} catch {
|
|
623
629
|
return !1;
|
|
624
630
|
}
|
|
625
631
|
}
|
|
626
|
-
var
|
|
632
|
+
var We = T(/* @__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(".")), Ge = T(/* @__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(".")), Ke = T([
|
|
627
633
|
"feBlend",
|
|
628
634
|
"feColorMatrix",
|
|
629
635
|
"feComponentTransfer",
|
|
@@ -649,7 +655,7 @@ var Ve = C(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
649
655
|
"feSpotLight",
|
|
650
656
|
"feTile",
|
|
651
657
|
"feTurbulence"
|
|
652
|
-
]),
|
|
658
|
+
]), qe = T([
|
|
653
659
|
"animate",
|
|
654
660
|
"color-profile",
|
|
655
661
|
"cursor",
|
|
@@ -672,7 +678,7 @@ var Ve = C(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
672
678
|
"solidcolor",
|
|
673
679
|
"unknown",
|
|
674
680
|
"use"
|
|
675
|
-
]),
|
|
681
|
+
]), Je = T(/* @__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(".")), Ye = T([
|
|
676
682
|
"maction",
|
|
677
683
|
"maligngroup",
|
|
678
684
|
"malignmark",
|
|
@@ -688,13 +694,13 @@ var Ve = C(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
688
694
|
"annotation-xml",
|
|
689
695
|
"mprescripts",
|
|
690
696
|
"none"
|
|
691
|
-
]),
|
|
697
|
+
]), Xe = T(["#text"]), Ze = T(/* @__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(".")), Qe = T(/* @__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(".")), $e = T(/* @__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(".")), et = T([
|
|
692
698
|
"xlink:href",
|
|
693
699
|
"xml:id",
|
|
694
700
|
"xlink:title",
|
|
695
701
|
"xml:space",
|
|
696
702
|
"xmlns:xlink"
|
|
697
|
-
]),
|
|
703
|
+
]), tt = E(/{{[\w\W]*|^[\w\W]*}}/g), nt = E(/<%[\w\W]*|^[\w\W]*%>/g), rt = E(/\${[\w\W]*/g), it = E(/^data-[\-\w.\u00B7-\uFFFF]+$/), at = E(/^aria-[\-\w]+$/), ot = E(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), st = E(/^(?:\w+script|data):/i), ct = E(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), lt = E(/^html$/i), ut = E(/^[a-z][.\w]*(-[.\w]+)+$/i), dt = E(/<[/\w!]/g), ft = E(/<[/\w]/g), pt = E(/<\/no(script|embed|frames)/i), mt = E(/\/>/i), P = {
|
|
698
704
|
element: 1,
|
|
699
705
|
attribute: 2,
|
|
700
706
|
text: 3,
|
|
@@ -707,7 +713,7 @@ var Ve = C(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
707
713
|
documentType: 10,
|
|
708
714
|
documentFragment: 11,
|
|
709
715
|
notation: 12
|
|
710
|
-
},
|
|
716
|
+
}, ht = T(j({}, [
|
|
711
717
|
"style",
|
|
712
718
|
"script",
|
|
713
719
|
"xmp",
|
|
@@ -716,14 +722,9 @@ var Ve = C(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
716
722
|
"noframes",
|
|
717
723
|
"plaintext",
|
|
718
724
|
"noscript"
|
|
719
|
-
]
|
|
720
|
-
let e = {};
|
|
721
|
-
return ye(ft, (t) => {
|
|
722
|
-
e[t] = w(RegExp("</" + t + "(?=[\\t\\n\\f\\r />])", "i"));
|
|
723
|
-
}), C(e);
|
|
724
|
-
}(), ht = function() {
|
|
725
|
+
])), gt = function() {
|
|
725
726
|
return typeof window > "u" ? null : window;
|
|
726
|
-
},
|
|
727
|
+
}, _t = function(e, t) {
|
|
727
728
|
if (typeof e != "object" || typeof e.createPolicy != "function") return null;
|
|
728
729
|
let n = null, r = "data-tt-policy-suffix";
|
|
729
730
|
t && t.hasAttribute(r) && (n = t.getAttribute(r));
|
|
@@ -740,7 +741,7 @@ var Ve = C(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
740
741
|
} catch {
|
|
741
742
|
return console.warn("TrustedTypes policy " + i + " could not be created."), null;
|
|
742
743
|
}
|
|
743
|
-
},
|
|
744
|
+
}, vt = function() {
|
|
744
745
|
return {
|
|
745
746
|
afterSanitizeAttributes: [],
|
|
746
747
|
afterSanitizeElements: [],
|
|
@@ -752,60 +753,62 @@ var Ve = C(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bd
|
|
|
752
753
|
uponSanitizeElement: [],
|
|
753
754
|
uponSanitizeShadowNode: []
|
|
754
755
|
};
|
|
755
|
-
},
|
|
756
|
-
return
|
|
757
|
-
},
|
|
758
|
-
let r =
|
|
759
|
-
return r && typeof r == "object" ?
|
|
756
|
+
}, yt = function(e, t, n, r) {
|
|
757
|
+
return O(e, t) && we(e[t]) ? j(r.base ? M(r.base) : {}, e[t], r.transform) : n;
|
|
758
|
+
}, bt = function(e, t, n) {
|
|
759
|
+
let r = O(e, t) ? e[t] : void 0;
|
|
760
|
+
return r && typeof r == "object" ? M(r) : n();
|
|
760
761
|
};
|
|
761
|
-
function
|
|
762
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
763
|
-
if (t.version = "3.4.
|
|
762
|
+
function xt() {
|
|
763
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : gt(), t = (e) => xt(e);
|
|
764
|
+
if (t.version = "3.4.17", t.removed = [], !e || !e.document || e.document.nodeType !== P.document || !e.Element) return t.isSupported = !1, t;
|
|
764
765
|
let n = e.document, r = n, i = r.currentScript;
|
|
765
766
|
e.DocumentFragment;
|
|
766
767
|
let a = e.HTMLTemplateElement, o = e.Node, s = e.Element, c = e.NodeFilter;
|
|
767
768
|
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
768
|
-
let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f =
|
|
769
|
+
let l = e.DOMParser, u = e.trustedTypes, d = s.prototype, f = N(d, "cloneNode"), p = N(d, "remove"), m = N(d, "removeAttributeNode"), ee = N(d, "nextSibling"), h = N(d, "childNodes"), g = N(d, "parentNode"), te = N(d, "shadowRoot"), _ = N(d, "attributes"), v = o && o.prototype ? N(o.prototype, "nodeType") : null, y = o && o.prototype ? N(o.prototype, "nodeName") : null, b = o && o.prototype ? N(o.prototype, "ownerDocument") : null, x = function(e) {
|
|
769
770
|
return v ? v(e) : e.nodeType;
|
|
770
771
|
}, ne = function(e) {
|
|
771
772
|
return y ? y(e) : e.nodeName;
|
|
773
|
+
}, S = He(d, "namespaceURI"), re = function(e) {
|
|
774
|
+
return S ? S(e) : e.namespaceURI;
|
|
772
775
|
};
|
|
773
776
|
if (typeof a == "function") {
|
|
774
777
|
let e = n.createElement("template");
|
|
775
778
|
e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
|
|
776
779
|
}
|
|
777
|
-
let
|
|
778
|
-
if (
|
|
779
|
-
},
|
|
780
|
-
|
|
780
|
+
let C, ie = "", ae, oe = !1, se = 0, ce = function() {
|
|
781
|
+
if (se > 0) throw Re("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.");
|
|
782
|
+
}, w = function(e) {
|
|
783
|
+
ce(), se++;
|
|
781
784
|
try {
|
|
782
|
-
return
|
|
785
|
+
return C.createHTML(e);
|
|
783
786
|
} finally {
|
|
784
|
-
|
|
787
|
+
se--;
|
|
785
788
|
}
|
|
786
|
-
},
|
|
787
|
-
|
|
789
|
+
}, ue = function(e) {
|
|
790
|
+
ce(), se++;
|
|
788
791
|
try {
|
|
789
|
-
return
|
|
792
|
+
return C.createScriptURL(e);
|
|
790
793
|
} finally {
|
|
791
|
-
|
|
794
|
+
se--;
|
|
792
795
|
}
|
|
793
|
-
},
|
|
794
|
-
return
|
|
795
|
-
}, fe = n, pe = fe.implementation,
|
|
796
|
-
t.isSupported = typeof
|
|
797
|
-
let
|
|
798
|
-
...
|
|
799
|
-
...He,
|
|
800
|
-
...Ue,
|
|
796
|
+
}, de = function() {
|
|
797
|
+
return oe ||= (ae = _t(u, i), !0), ae;
|
|
798
|
+
}, fe = n, pe = fe.implementation, he = fe.createNodeIterator, ge = fe.createDocumentFragment, _e = fe.getElementsByTagName, Pe = r.importNode, D = vt();
|
|
799
|
+
t.isSupported = typeof le == "function" && typeof g == "function" && pe && pe.createHTMLDocument !== void 0;
|
|
800
|
+
let Fe = tt, Ie = nt, Le = rt, A = it, ze = at, Be = st, St = ct, Ct = ut, wt = ot, F = null, Tt = j({}, [
|
|
801
|
+
...We,
|
|
801
802
|
...Ge,
|
|
802
|
-
...
|
|
803
|
-
]), F = null, xt = k({}, [
|
|
803
|
+
...Ke,
|
|
804
804
|
...Je,
|
|
805
|
-
...
|
|
806
|
-
|
|
807
|
-
...Ze
|
|
808
|
-
|
|
805
|
+
...Xe
|
|
806
|
+
]), I = null, Et = j({}, [
|
|
807
|
+
...Ze,
|
|
808
|
+
...Qe,
|
|
809
|
+
...$e,
|
|
810
|
+
...et
|
|
811
|
+
]), L = Object.seal(me(null, {
|
|
809
812
|
tagNameCheck: {
|
|
810
813
|
writable: !0,
|
|
811
814
|
configurable: !1,
|
|
@@ -824,7 +827,7 @@ function yt() {
|
|
|
824
827
|
enumerable: !0,
|
|
825
828
|
value: !1
|
|
826
829
|
}
|
|
827
|
-
})),
|
|
830
|
+
})), R = null, Dt = null, Ot = Object.seal(me(null, {
|
|
828
831
|
tagCheck: {
|
|
829
832
|
writable: !0,
|
|
830
833
|
configurable: !1,
|
|
@@ -837,14 +840,14 @@ function yt() {
|
|
|
837
840
|
enumerable: !0,
|
|
838
841
|
value: null
|
|
839
842
|
}
|
|
840
|
-
})),
|
|
843
|
+
})), kt = !0, At = !0, jt = !1, z = !0, B = !1, V = !0, H = !1, Mt = !1, U = null, Nt = null, Pt = !1, Ft = !1, It = !1, Lt = !1, Rt = !0, zt = !1, Bt = "user-content-", Vt = !0, Ht = !1, Ut = null, Wt = {}, Gt = null, Kt = j({}, /* @__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(".")), qt = null, Jt = j({}, [
|
|
841
844
|
"audio",
|
|
842
845
|
"video",
|
|
843
846
|
"img",
|
|
844
847
|
"source",
|
|
845
848
|
"image",
|
|
846
849
|
"track"
|
|
847
|
-
]),
|
|
850
|
+
]), Yt = null, Xt = j({}, [
|
|
848
851
|
"alt",
|
|
849
852
|
"class",
|
|
850
853
|
"for",
|
|
@@ -859,77 +862,72 @@ function yt() {
|
|
|
859
862
|
"value",
|
|
860
863
|
"style",
|
|
861
864
|
"xmlns"
|
|
862
|
-
]),
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
],
|
|
865
|
+
]), Zt = "http://www.w3.org/1998/Math/MathML", Qt = "http://www.w3.org/2000/svg", W = "http://www.w3.org/1999/xhtml", G = W, K = !1, $t = null, en = j({}, [
|
|
866
|
+
Zt,
|
|
867
|
+
Qt,
|
|
868
|
+
W
|
|
869
|
+
], ke), tn = T([
|
|
867
870
|
"mi",
|
|
868
871
|
"mo",
|
|
869
872
|
"mn",
|
|
870
873
|
"ms",
|
|
871
874
|
"mtext"
|
|
872
|
-
]),
|
|
875
|
+
]), nn = j({}, tn), rn = T(["annotation-xml"]), an = j({}, rn), on = j({}, [
|
|
873
876
|
"title",
|
|
874
877
|
"style",
|
|
875
878
|
"font",
|
|
876
879
|
"a",
|
|
877
880
|
"script"
|
|
878
|
-
]),
|
|
881
|
+
]), sn = null, cn = ["application/xhtml+xml", "text/html"], q = null, J = null, ln = n.createElement("form"), un = function(e) {
|
|
879
882
|
return e instanceof RegExp || e instanceof Function;
|
|
880
|
-
},
|
|
883
|
+
}, dn = function() {
|
|
881
884
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
882
|
-
if (
|
|
883
|
-
(!e || typeof e != "object") && (e = {}), e =
|
|
884
|
-
transform:
|
|
885
|
-
base:
|
|
886
|
-
}),
|
|
887
|
-
transform:
|
|
888
|
-
base:
|
|
889
|
-
}),
|
|
890
|
-
let t =
|
|
891
|
-
if (
|
|
885
|
+
if (J && J === e) return;
|
|
886
|
+
(!e || typeof e != "object") && (e = {}), e = M(e), sn = cn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, q = sn === "application/xhtml+xml" ? ke : Oe, F = yt(e, "ALLOWED_TAGS", Tt, { transform: q }), I = yt(e, "ALLOWED_ATTR", Et, { transform: q }), $t = yt(e, "ALLOWED_NAMESPACES", en, { transform: ke }), Yt = yt(e, "ADD_URI_SAFE_ATTR", Xt, {
|
|
887
|
+
transform: q,
|
|
888
|
+
base: Xt
|
|
889
|
+
}), qt = yt(e, "ADD_DATA_URI_TAGS", Jt, {
|
|
890
|
+
transform: q,
|
|
891
|
+
base: Jt
|
|
892
|
+
}), Gt = yt(e, "FORBID_CONTENTS", Kt, { transform: q }), R = yt(e, "FORBID_TAGS", M({}), { transform: q }), Dt = yt(e, "FORBID_ATTR", M({}), { transform: q }), Wt = O(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? M(e.USE_PROFILES) : e.USE_PROFILES : !1, kt = e.ALLOW_ARIA_ATTR !== !1, At = e.ALLOW_DATA_ATTR !== !1, jt = e.ALLOW_UNKNOWN_PROTOCOLS || !1, z = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, B = e.SAFE_FOR_TEMPLATES || !1, V = e.SAFE_FOR_XML !== !1, H = e.WHOLE_DOCUMENT || !1, Ft = e.RETURN_DOM || !1, It = e.RETURN_DOM_FRAGMENT || !1, Lt = e.RETURN_TRUSTED_TYPE || !1, Pt = e.FORCE_BODY || !1, Rt = e.SANITIZE_DOM !== !1, zt = e.SANITIZE_NAMED_PROPS || !1, Vt = e.KEEP_CONTENT !== !1, Ht = e.IN_PLACE || !1, wt = Ue(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : ot, G = typeof e.NAMESPACE == "string" ? e.NAMESPACE : W, nn = bt(e, "MATHML_TEXT_INTEGRATION_POINTS", () => j({}, tn)), an = bt(e, "HTML_INTEGRATION_POINTS", () => j({}, rn));
|
|
893
|
+
let t = bt(e, "CUSTOM_ELEMENT_HANDLING", () => me(null));
|
|
894
|
+
if (L = me(null), O(t, "tagNameCheck") && un(t.tagNameCheck) && (L.tagNameCheck = t.tagNameCheck), O(t, "attributeNameCheck") && un(t.attributeNameCheck) && (L.attributeNameCheck = t.attributeNameCheck), O(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (L.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), E(L), B && (At = !1), It && (Ft = !0), Wt && (F = j({}, Xe), I = me(null), Wt.html === !0 && (j(F, We), j(I, Ze)), Wt.svg === !0 && (j(F, Ge), j(I, Qe), j(I, et)), Wt.svgFilters === !0 && (j(F, Ke), j(I, Qe), j(I, et)), Wt.mathMl === !0 && (j(F, Je), j(I, $e), j(I, et))), Ot.tagCheck = null, Ot.attributeCheck = null, O(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? Ot.tagCheck = e.ADD_TAGS : we(e.ADD_TAGS) && (F === Tt && (F = M(F)), j(F, e.ADD_TAGS, q))), O(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? Ot.attributeCheck = e.ADD_ATTR : we(e.ADD_ATTR) && (I === Et && (I = M(I)), j(I, e.ADD_ATTR, q))), O(e, "ADD_FORBID_CONTENTS") && we(e.ADD_FORBID_CONTENTS) && (Gt === Kt && (Gt = M(Gt)), j(Gt, e.ADD_FORBID_CONTENTS, q)), Vt && (F["#text"] = !0), H && j(F, [
|
|
892
895
|
"html",
|
|
893
896
|
"head",
|
|
894
897
|
"body"
|
|
895
|
-
]),
|
|
896
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw
|
|
897
|
-
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw
|
|
898
|
-
let t =
|
|
899
|
-
|
|
898
|
+
]), F.table && (j(F, ["tbody"]), delete R.tbody), e.TRUSTED_TYPES_POLICY) {
|
|
899
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Re("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
|
|
900
|
+
if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Re("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
|
|
901
|
+
let t = C;
|
|
902
|
+
C = e.TRUSTED_TYPES_POLICY;
|
|
900
903
|
try {
|
|
901
|
-
|
|
904
|
+
ie = w("");
|
|
902
905
|
} catch (e) {
|
|
903
|
-
throw
|
|
906
|
+
throw C = t, e;
|
|
904
907
|
}
|
|
905
|
-
} else e.TRUSTED_TYPES_POLICY === null ? (
|
|
906
|
-
|
|
907
|
-
},
|
|
908
|
-
...
|
|
909
|
-
...
|
|
910
|
-
...
|
|
911
|
-
]),
|
|
912
|
-
return t.namespaceURI ===
|
|
913
|
-
},
|
|
914
|
-
return t.namespaceURI ===
|
|
915
|
-
},
|
|
916
|
-
return t.namespaceURI ===
|
|
917
|
-
},
|
|
918
|
-
let t = g(e);
|
|
919
|
-
(
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
});
|
|
923
|
-
let n = Te(e.tagName), r = Te(t.tagName);
|
|
924
|
-
return qt[e.namespaceURI] ? e.namespaceURI === Wt ? sn(n, t, r) : e.namespaceURI === Ut ? cn(n, t, r) : e.namespaceURI === G ? ln(n, t, r) : !!(Qt === "application/xhtml+xml" && qt[e.namespaceURI]) : !1;
|
|
925
|
-
}, Y = function(e) {
|
|
926
|
-
Se(t.removed, { element: e });
|
|
908
|
+
} else e.TRUSTED_TYPES_POLICY === null ? (C = void 0, ie = "") : (C === void 0 && (C = de()), C && typeof ie == "string" && (ie = w("")));
|
|
909
|
+
T && T(e), J = e;
|
|
910
|
+
}, fn = j({}, [
|
|
911
|
+
...Ge,
|
|
912
|
+
...Ke,
|
|
913
|
+
...qe
|
|
914
|
+
]), pn = j({}, [...Je, ...Ye]), Y = function(e, t, n) {
|
|
915
|
+
return t.namespaceURI === W ? e === "svg" : t.namespaceURI === Zt ? e === "svg" && (n === "annotation-xml" || nn[n]) : !!fn[e];
|
|
916
|
+
}, mn = function(e, t, n) {
|
|
917
|
+
return t.namespaceURI === W ? e === "math" : t.namespaceURI === Qt ? e === "math" && an[n] : !!pn[e];
|
|
918
|
+
}, hn = function(e, t, n) {
|
|
919
|
+
return t.namespaceURI === Qt && !an[n] || t.namespaceURI === Zt && !nn[n] ? !1 : !pn[e] && (on[e] || !fn[e]);
|
|
920
|
+
}, X = function(e) {
|
|
921
|
+
let t = re(e), n = Oe(ne(e)), r = g(e), i, a;
|
|
922
|
+
return r && x(r) === P.element ? (i = { namespaceURI: re(r) }, a = Oe(ne(r))) : (i = { namespaceURI: G }, a = "template"), $t[t] ? t === Qt ? Y(n, i, a) : t === Zt ? mn(n, i, a) : t === W ? hn(n, i, a) : !!(sn === "application/xhtml+xml" && $t[t]) : !1;
|
|
923
|
+
}, Z = function(e) {
|
|
924
|
+
xe(t.removed, { element: e });
|
|
927
925
|
try {
|
|
928
926
|
g(e).removeChild(e);
|
|
929
927
|
} catch {
|
|
930
|
-
if (p(e), !g(e)) throw
|
|
928
|
+
if (p(e), !g(e)) throw Re("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
931
929
|
}
|
|
932
|
-
},
|
|
930
|
+
}, gn = function(e, t, n) {
|
|
933
931
|
try {
|
|
934
932
|
m(e, t);
|
|
935
933
|
} catch {
|
|
@@ -937,31 +935,26 @@ function yt() {
|
|
|
937
935
|
e.removeAttribute(n);
|
|
938
936
|
} catch {}
|
|
939
937
|
}
|
|
940
|
-
},
|
|
941
|
-
|
|
938
|
+
}, _n = function(e) {
|
|
939
|
+
bn(e);
|
|
942
940
|
let t = h(e);
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
p(e);
|
|
950
|
-
} catch {}
|
|
951
|
-
});
|
|
952
|
-
}
|
|
953
|
-
let n = _(e);
|
|
941
|
+
t && ve(Se(t), (e) => {
|
|
942
|
+
try {
|
|
943
|
+
p(e);
|
|
944
|
+
} catch {}
|
|
945
|
+
});
|
|
946
|
+
let n = x(e) === P.element ? _(e) : null;
|
|
954
947
|
if (n) for (let t = n.length - 1; t >= 0; --t) {
|
|
955
948
|
let r = n[t], i = r && r.name;
|
|
956
|
-
typeof i == "string" &&
|
|
949
|
+
typeof i == "string" && gn(e, r, i);
|
|
957
950
|
}
|
|
958
|
-
},
|
|
951
|
+
}, Q = function(e, n, r) {
|
|
959
952
|
if (!r) try {
|
|
960
953
|
r = n.getAttributeNode(e);
|
|
961
954
|
} catch {
|
|
962
955
|
r = null;
|
|
963
956
|
}
|
|
964
|
-
|
|
957
|
+
xe(t.removed, {
|
|
965
958
|
attribute: r || null,
|
|
966
959
|
from: n
|
|
967
960
|
});
|
|
@@ -973,93 +966,136 @@ function yt() {
|
|
|
973
966
|
} catch {}
|
|
974
967
|
}
|
|
975
968
|
if (e === "is") {
|
|
976
|
-
if (
|
|
977
|
-
|
|
969
|
+
if (Ft || It) try {
|
|
970
|
+
Z(n);
|
|
978
971
|
} catch {}
|
|
979
972
|
else try {
|
|
980
973
|
n.setAttribute(e, "");
|
|
981
974
|
} catch {}
|
|
982
975
|
}
|
|
983
|
-
},
|
|
976
|
+
}, vn = function(e) {
|
|
984
977
|
let t = _(e);
|
|
985
978
|
if (t) for (let n = t.length - 1; n >= 0; --n) {
|
|
986
979
|
let r = t[n], i = r && r.name;
|
|
987
|
-
typeof i != "string" ||
|
|
980
|
+
typeof i != "string" || I[q(i)] || gn(e, r, i);
|
|
988
981
|
}
|
|
989
|
-
},
|
|
990
|
-
let
|
|
991
|
-
for (;
|
|
992
|
-
let e =
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
982
|
+
}, yn = function(e, t) {
|
|
983
|
+
let n = arguments.length > 2 && arguments[2] !== void 0 && arguments[2], r = [e];
|
|
984
|
+
for (; r.length > 0;) {
|
|
985
|
+
let e = r.pop();
|
|
986
|
+
if (t(e) === !1) continue;
|
|
987
|
+
if (n && x(e) === P.element) {
|
|
988
|
+
let t = te(e);
|
|
989
|
+
Fn(t) && r.push(t);
|
|
990
|
+
}
|
|
991
|
+
let i = h(e);
|
|
992
|
+
if (i) for (let e = i.length - 1; e >= 0; --e) r.push(i[e]);
|
|
996
993
|
}
|
|
997
|
-
},
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
994
|
+
}, bn = function(e) {
|
|
995
|
+
yn(e, (e) => {
|
|
996
|
+
x(e) === P.element && vn(e);
|
|
997
|
+
});
|
|
998
|
+
}, xn = function(e) {
|
|
999
|
+
let t = [];
|
|
1000
|
+
return yn(e, (e) => {
|
|
1001
|
+
t.push(e);
|
|
1002
|
+
}, !0), t;
|
|
1003
|
+
}, Sn = function(e, t) {
|
|
1004
|
+
let n = Te();
|
|
1005
|
+
ve(xn(e), (e) => {
|
|
1006
|
+
x(e) === P.element && Ee(n, e);
|
|
1007
|
+
}), ve(t, (e) => {
|
|
1008
|
+
x(e) === P.element && !De(n, e) && vn(e);
|
|
1009
|
+
});
|
|
1010
|
+
}, Cn = function(e, n) {
|
|
1011
|
+
let r = !1;
|
|
1012
|
+
return ve(t.removed, (t) => {
|
|
1013
|
+
t.element && (r ||= t.element === e, bn(t.element));
|
|
1014
|
+
}), Sn(e, n), r;
|
|
1015
|
+
}, wn = function(e, t) {
|
|
1016
|
+
let n = Ut, r = null, i = () => (r || (r = Te(), ve(t, (e) => {
|
|
1017
|
+
Ee(r, e);
|
|
1018
|
+
})), r);
|
|
1019
|
+
for (let t = 0;; t++) {
|
|
1020
|
+
let r = xn(e), a = [e], o = !1;
|
|
1021
|
+
if (ve(r, (e) => {
|
|
1022
|
+
x(e) === P.documentFragment ? xe(a, e) : !o && !De(n, e) && (o = De(i(), e));
|
|
1023
|
+
}), !o) return;
|
|
1024
|
+
if (t >= 8) throw Re("the tree kept changing during in-place sanitization; refusing to return it");
|
|
1025
|
+
ve(a, (t, n) => {
|
|
1026
|
+
Tn(t, n > 0, e, i());
|
|
1027
|
+
});
|
|
1028
|
+
}
|
|
1029
|
+
}, Tn = function(e, t, n, r) {
|
|
1030
|
+
let i = An(e), a;
|
|
1031
|
+
for (; a = i.nextNode();) De(r, a) && !De(Ut, a) && (t && $(D.uponSanitizeShadowNode, a, null), Hn(a, n), Yn(a, n), Fn(a.content) && Xn(a.content));
|
|
1032
|
+
}, En = function(e) {
|
|
1033
|
+
Ut && Ee(Ut, e);
|
|
1034
|
+
}, Dn = function(e, t) {
|
|
1035
|
+
return V ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
|
|
1036
|
+
}, On = function(e) {
|
|
1037
|
+
V && yn(e, (e) => {
|
|
1038
|
+
let t = x(e);
|
|
1039
|
+
if (t === P.processingInstruction || t === P.comment && k(ft, e.data)) {
|
|
1005
1040
|
try {
|
|
1006
1041
|
p(e);
|
|
1007
1042
|
} catch {}
|
|
1008
|
-
|
|
1043
|
+
return !1;
|
|
1009
1044
|
}
|
|
1010
|
-
if (
|
|
1011
|
-
let t = e, n =
|
|
1045
|
+
if (t === P.element) {
|
|
1046
|
+
let t = e, n = q(ne(e));
|
|
1012
1047
|
try {
|
|
1013
|
-
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") &&
|
|
1048
|
+
t.hasAttribute && t.hasAttribute("patchsrc") && t.removeAttribute("patchsrc"), t.hasAttribute && t.hasAttribute("for") && Dn("for", n) && t.removeAttribute("for");
|
|
1014
1049
|
} catch {}
|
|
1015
1050
|
}
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
}, gn = function(e) {
|
|
1051
|
+
return !0;
|
|
1052
|
+
});
|
|
1053
|
+
}, kn = function(e) {
|
|
1020
1054
|
let t = null, r = null;
|
|
1021
|
-
if (
|
|
1055
|
+
if (Pt) e = "<remove></remove>" + e;
|
|
1022
1056
|
else {
|
|
1023
|
-
let t =
|
|
1057
|
+
let t = Ae(e, /^[\r\n\t ]+/);
|
|
1024
1058
|
r = t && t[0];
|
|
1025
1059
|
}
|
|
1026
|
-
|
|
1027
|
-
let i =
|
|
1028
|
-
if (
|
|
1029
|
-
t = new l().parseFromString(i,
|
|
1060
|
+
sn === "application/xhtml+xml" && G === W && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
|
|
1061
|
+
let i = C ? w(e) : e;
|
|
1062
|
+
if (G === W) try {
|
|
1063
|
+
t = new l().parseFromString(i, sn);
|
|
1030
1064
|
} catch {}
|
|
1031
1065
|
if (!t || !t.documentElement) {
|
|
1032
|
-
t = pe.createDocument(
|
|
1066
|
+
t = pe.createDocument(G, "template", null);
|
|
1033
1067
|
try {
|
|
1034
|
-
t.documentElement.innerHTML =
|
|
1068
|
+
t.documentElement.innerHTML = K ? ie : i;
|
|
1035
1069
|
} catch {}
|
|
1036
1070
|
}
|
|
1037
1071
|
let a = t.body || t.documentElement;
|
|
1038
|
-
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null),
|
|
1039
|
-
},
|
|
1072
|
+
return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), G === W ? _e.call(t, H ? "html" : "body")[0] : H ? t.documentElement : a;
|
|
1073
|
+
}, An = function(e) {
|
|
1040
1074
|
let t = b ? b(e) : e.ownerDocument;
|
|
1041
|
-
return
|
|
1042
|
-
},
|
|
1043
|
-
return e =
|
|
1044
|
-
},
|
|
1045
|
-
e
|
|
1046
|
-
let t =
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
i && ye(i, (e) => {
|
|
1050
|
-
xn(e.content) && yn(e.content);
|
|
1075
|
+
return he.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
|
|
1076
|
+
}, jn = function(e) {
|
|
1077
|
+
return e = je(e, Fe, " "), e = je(e, Ie, " "), e = je(e, Le, " "), e;
|
|
1078
|
+
}, Mn = function(e) {
|
|
1079
|
+
Nn(e);
|
|
1080
|
+
let t = e.querySelectorAll?.call(e, "template");
|
|
1081
|
+
t && ve(t, (e) => {
|
|
1082
|
+
Fn(e.content) && Mn(e.content);
|
|
1051
1083
|
});
|
|
1052
|
-
},
|
|
1084
|
+
}, Nn = function(e) {
|
|
1085
|
+
e.normalize();
|
|
1086
|
+
let t = b ? b(e) : e.ownerDocument, n = he.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
|
|
1087
|
+
for (; r;) r.data = jn(r.data), r = n.nextNode();
|
|
1088
|
+
}, Pn = function(e) {
|
|
1053
1089
|
let t = y ? y(e) : null;
|
|
1054
|
-
return typeof t != "string" ||
|
|
1055
|
-
},
|
|
1090
|
+
return typeof t != "string" || q(t) !== "form" ? !1 : typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || e.attributes !== _(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 !== v(e) || e.childNodes !== h(e);
|
|
1091
|
+
}, Fn = function(e) {
|
|
1056
1092
|
if (!v || typeof e != "object" || !e) return !1;
|
|
1057
1093
|
try {
|
|
1058
|
-
return v(e) ===
|
|
1094
|
+
return v(e) === P.documentFragment;
|
|
1059
1095
|
} catch {
|
|
1060
1096
|
return !1;
|
|
1061
1097
|
}
|
|
1062
|
-
},
|
|
1098
|
+
}, In = function(e) {
|
|
1063
1099
|
if (!v || typeof e != "object" || !e) return !1;
|
|
1064
1100
|
try {
|
|
1065
1101
|
return typeof v(e) == "number";
|
|
@@ -1068,17 +1104,17 @@ function yt() {
|
|
|
1068
1104
|
}
|
|
1069
1105
|
};
|
|
1070
1106
|
function $(e, n, r) {
|
|
1071
|
-
e.length !== 0 &&
|
|
1072
|
-
e.call(t, n, r,
|
|
1107
|
+
e.length !== 0 && ve(e, (e) => {
|
|
1108
|
+
e.call(t, n, r, J);
|
|
1073
1109
|
});
|
|
1074
1110
|
}
|
|
1075
|
-
let
|
|
1076
|
-
return !!(
|
|
1077
|
-
},
|
|
1078
|
-
return e instanceof RegExp ?
|
|
1079
|
-
},
|
|
1080
|
-
if (!
|
|
1081
|
-
if (
|
|
1111
|
+
let Ln = function(e, t) {
|
|
1112
|
+
return !!(V && e.hasChildNodes() && !In(e.firstElementChild) && k(dt, e.textContent) && k(dt, e.innerHTML) || V && ht[t] && x(e) === P.element && re(e) === W && (In(e.firstElementChild) || typeof e.textContent == "string" && k(dt, e.textContent)) || e.nodeType === P.processingInstruction || V && e.nodeType === P.comment && k(ft, e.data));
|
|
1113
|
+
}, Rn = function(e, t) {
|
|
1114
|
+
return e instanceof RegExp ? k(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
|
|
1115
|
+
}, zn = function(e, t, n) {
|
|
1116
|
+
if (!R[t] && Gn(t) && Rn(L.tagNameCheck, t)) return !1;
|
|
1117
|
+
if (Vt && !Gt[t] && !Gt[Oe(t)]) {
|
|
1082
1118
|
let t = g(e), r = h(e);
|
|
1083
1119
|
if (r && t) {
|
|
1084
1120
|
let i = r.length;
|
|
@@ -1088,35 +1124,35 @@ function yt() {
|
|
|
1088
1124
|
}
|
|
1089
1125
|
}
|
|
1090
1126
|
}
|
|
1091
|
-
return
|
|
1092
|
-
},
|
|
1093
|
-
return e.length === 0 ? t : t === n || t === r ?
|
|
1094
|
-
},
|
|
1095
|
-
return e === t || g(e) !== null ? !1 : (
|
|
1096
|
-
},
|
|
1097
|
-
if ($(
|
|
1098
|
-
if (
|
|
1099
|
-
let r =
|
|
1100
|
-
if (
|
|
1127
|
+
return Z(e), !0;
|
|
1128
|
+
}, Bn = function(e, t, n, r) {
|
|
1129
|
+
return e.length === 0 ? t : t === n || t === r ? M(t) : t;
|
|
1130
|
+
}, Vn = function(e, t) {
|
|
1131
|
+
return e === t || g(e) !== null ? !1 : (Ht && bn(e), !0);
|
|
1132
|
+
}, Hn = function(e, n) {
|
|
1133
|
+
if (En(e), $(D.beforeSanitizeElements, e, null), Vn(e, n)) return !0;
|
|
1134
|
+
if (Pn(e)) return Z(e), !0;
|
|
1135
|
+
let r = q(ne(e));
|
|
1136
|
+
if (F = Bn(D.uponSanitizeElement, F, Tt, U), $(D.uponSanitizeElement, e, {
|
|
1101
1137
|
tagName: r,
|
|
1102
|
-
allowedTags:
|
|
1103
|
-
}),
|
|
1104
|
-
if (
|
|
1105
|
-
if (
|
|
1106
|
-
let t =
|
|
1107
|
-
return t === !1 && ($(
|
|
1138
|
+
allowedTags: F
|
|
1139
|
+
}), Vn(e, n)) return !0;
|
|
1140
|
+
if (Ln(e, r)) return Z(e), !0;
|
|
1141
|
+
if (R[r] || !(Ot.tagCheck instanceof Function && Ot.tagCheck(r)) && !F[r]) {
|
|
1142
|
+
let t = zn(e, r, n);
|
|
1143
|
+
return t === !1 && ($(D.afterSanitizeElements, e, null), Vn(e, n)) ? !0 : t;
|
|
1108
1144
|
}
|
|
1109
|
-
if (x(e) ===
|
|
1110
|
-
if (
|
|
1111
|
-
let n =
|
|
1112
|
-
e.textContent !== n && (
|
|
1145
|
+
if (x(e) === P.element && !X(e) || (r === "noscript" || r === "noembed" || r === "noframes") && k(pt, e.innerHTML)) return Z(e), !0;
|
|
1146
|
+
if (B && e.nodeType === P.text) {
|
|
1147
|
+
let n = jn(e.textContent);
|
|
1148
|
+
e.textContent !== n && (xe(t.removed, { element: e.cloneNode() }), e.textContent = n);
|
|
1113
1149
|
}
|
|
1114
|
-
return $(
|
|
1115
|
-
},
|
|
1116
|
-
if (
|
|
1117
|
-
let i =
|
|
1118
|
-
return
|
|
1119
|
-
},
|
|
1150
|
+
return $(D.afterSanitizeElements, e, null), Vn(e, n);
|
|
1151
|
+
}, Un = function(e, t, r) {
|
|
1152
|
+
if (Dt[t] || Dn(t, e) || Rt && (t === "id" || t === "name") && (r in n || r in ln)) return !1;
|
|
1153
|
+
let i = I[t] || Ot.attributeCheck instanceof Function && Ot.attributeCheck(t, e);
|
|
1154
|
+
return At && k(A, t) || kt && k(ze, t) ? !0 : i ? Yt[t] || k(wt, je(r, St, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && Me(r, "data:") === 0 && qt[e] || jt && !k(Be, je(r, St, "")) ? !0 : !r : Gn(e) && Rn(L.tagNameCheck, e) && Rn(L.attributeNameCheck, t, e) || t === "is" && L.allowCustomizedBuiltInElements && Rn(L.tagNameCheck, r);
|
|
1155
|
+
}, Wn = j({}, [
|
|
1120
1156
|
"annotation-xml",
|
|
1121
1157
|
"color-profile",
|
|
1122
1158
|
"font-face",
|
|
@@ -1125,67 +1161,47 @@ function yt() {
|
|
|
1125
1161
|
"font-face-src",
|
|
1126
1162
|
"font-face-uri",
|
|
1127
1163
|
"missing-glyph"
|
|
1128
|
-
]),
|
|
1129
|
-
return !
|
|
1130
|
-
},
|
|
1131
|
-
if (
|
|
1132
|
-
case "TrustedHTML": return
|
|
1133
|
-
case "TrustedScriptURL": return
|
|
1164
|
+
]), Gn = function(e) {
|
|
1165
|
+
return !Wn[Oe(e)] && k(Ct, e);
|
|
1166
|
+
}, Kn = function(e, t, n, r) {
|
|
1167
|
+
if (C && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
|
|
1168
|
+
case "TrustedHTML": return w(r);
|
|
1169
|
+
case "TrustedScriptURL": return ue(r);
|
|
1134
1170
|
}
|
|
1135
1171
|
return r;
|
|
1136
|
-
},
|
|
1172
|
+
}, qn = function(e, t, n, r) {
|
|
1137
1173
|
try {
|
|
1138
|
-
return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !
|
|
1174
|
+
return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !Pn(e) || (Z(e), !1);
|
|
1139
1175
|
} catch {
|
|
1140
|
-
return
|
|
1176
|
+
return Q(t, e), !1;
|
|
1141
1177
|
}
|
|
1142
|
-
},
|
|
1143
|
-
|
|
1178
|
+
}, Jn = function(e, t) {
|
|
1179
|
+
return V && k(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, t) ? !0 : Oe(e) === "attributename" && Ae(t, "href") !== null;
|
|
1180
|
+
}, Yn = function(e, n) {
|
|
1181
|
+
if ($(D.beforeSanitizeAttributes, e, null), Vn(e, n)) return;
|
|
1144
1182
|
let r = e.attributes;
|
|
1145
|
-
if (!r ||
|
|
1146
|
-
|
|
1183
|
+
if (!r || Pn(e)) return;
|
|
1184
|
+
I = Bn(D.uponSanitizeAttribute, I, Et, Nt);
|
|
1147
1185
|
let i = {
|
|
1148
1186
|
attrName: "",
|
|
1149
1187
|
attrValue: "",
|
|
1150
1188
|
keepAttr: !0,
|
|
1151
|
-
allowedAttributes:
|
|
1189
|
+
allowedAttributes: I,
|
|
1152
1190
|
forceKeepAttr: void 0
|
|
1153
|
-
}, a = r.length, o =
|
|
1191
|
+
}, a = r.length, o = q(e.nodeName);
|
|
1154
1192
|
for (; a--;) {
|
|
1155
|
-
let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u =
|
|
1156
|
-
|
|
1157
|
-
X(s, e, n);
|
|
1158
|
-
continue;
|
|
1159
|
-
}
|
|
1160
|
-
if (u === "attributename" && De(f, "href")) {
|
|
1161
|
-
X(s, e, n);
|
|
1162
|
-
continue;
|
|
1163
|
-
}
|
|
1164
|
-
if (!i.forceKeepAttr) {
|
|
1165
|
-
if (!i.keepAttr) {
|
|
1166
|
-
X(s, e, n);
|
|
1167
|
-
continue;
|
|
1168
|
-
}
|
|
1169
|
-
if (!Dt && D(dt, f)) {
|
|
1170
|
-
X(s, e, n);
|
|
1171
|
-
continue;
|
|
1172
|
-
}
|
|
1173
|
-
if (R && (f = vn(f)), !On(o, u, f)) {
|
|
1174
|
-
X(s, e, n);
|
|
1175
|
-
continue;
|
|
1176
|
-
}
|
|
1177
|
-
f = jn(o, u, c, f), f !== d && Mn(e, s, c, f) && p && xe(t.removed);
|
|
1178
|
-
}
|
|
1193
|
+
let n = r[a], s = n.name, c = n.namespaceURI, l = n.value, u = q(s), d = l, f = s === "value" ? d : Ne(d), p = !1;
|
|
1194
|
+
i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, $(D.uponSanitizeAttribute, e, i), f = i.attrValue, zt && (u === "id" || u === "name") && Me(f, Bt) !== 0 && (Q(s, e, n), f = Bt + f, p = !0), Jn(s, f) ? Q(s, e, n) : i.forceKeepAttr || (i.keepAttr ? !z && k(mt, f) ? Q(s, e, n) : (B && (f = jn(f)), Un(o, u, f) ? (f = Kn(o, u, c, f), f !== d && qn(e, s, c, f) && p && be(t.removed)) : Q(s, e, n)) : Q(s, e, n));
|
|
1179
1195
|
}
|
|
1180
|
-
$(
|
|
1181
|
-
},
|
|
1182
|
-
let t = null, n =
|
|
1183
|
-
for ($(
|
|
1196
|
+
$(D.afterSanitizeAttributes, e, null), Vn(e, n);
|
|
1197
|
+
}, Xn = function(e) {
|
|
1198
|
+
let t = null, n = An(e);
|
|
1199
|
+
for ($(D.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(D.uponSanitizeShadowNode, t, null), Hn(t, e), Yn(t, e), Fn(t.content) && Xn(t.content), x(t) === P.element) {
|
|
1184
1200
|
let e = te(t);
|
|
1185
|
-
|
|
1201
|
+
Fn(e) && (Zn(e), Xn(e));
|
|
1186
1202
|
}
|
|
1187
|
-
$(
|
|
1188
|
-
},
|
|
1203
|
+
B && Nn(e), $(D.afterSanitizeShadowDOM, e, null);
|
|
1204
|
+
}, Zn = function(e) {
|
|
1189
1205
|
let t = [{
|
|
1190
1206
|
node: e,
|
|
1191
1207
|
shadow: null
|
|
@@ -1193,19 +1209,19 @@ function yt() {
|
|
|
1193
1209
|
for (; t.length > 0;) {
|
|
1194
1210
|
let e = t.pop();
|
|
1195
1211
|
if (e.shadow) {
|
|
1196
|
-
|
|
1212
|
+
Xn(e.shadow);
|
|
1197
1213
|
continue;
|
|
1198
1214
|
}
|
|
1199
|
-
let n = e.node, r = x(n) ===
|
|
1215
|
+
let n = e.node, r = x(n) === P.element, i = h(n);
|
|
1200
1216
|
if (i) for (let e = i.length - 1; e >= 0; --e) t.push({
|
|
1201
1217
|
node: i[e],
|
|
1202
1218
|
shadow: null
|
|
1203
1219
|
});
|
|
1204
1220
|
if (r) {
|
|
1205
1221
|
let e = y ? y(n) : null;
|
|
1206
|
-
if (typeof e == "string" &&
|
|
1222
|
+
if (typeof e == "string" && q(e) === "template") {
|
|
1207
1223
|
let e = n.content;
|
|
1208
|
-
|
|
1224
|
+
Fn(e) && t.push({
|
|
1209
1225
|
node: e,
|
|
1210
1226
|
shadow: null
|
|
1211
1227
|
});
|
|
@@ -1213,7 +1229,7 @@ function yt() {
|
|
|
1213
1229
|
}
|
|
1214
1230
|
if (r) {
|
|
1215
1231
|
let e = te(n);
|
|
1216
|
-
|
|
1232
|
+
Fn(e) && t.push({
|
|
1217
1233
|
node: null,
|
|
1218
1234
|
shadow: e
|
|
1219
1235
|
}, {
|
|
@@ -1225,78 +1241,73 @@ function yt() {
|
|
|
1225
1241
|
};
|
|
1226
1242
|
return t.sanitize = function(e) {
|
|
1227
1243
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, a = null, o = null, s = null;
|
|
1228
|
-
if (
|
|
1244
|
+
if (K = !e, K && (e = "<!-->"), typeof e != "string" && !In(e) && (e = Ve(e), typeof e != "string")) throw Re("dirty is not a string, aborting");
|
|
1229
1245
|
if (!t.isSupported) return e;
|
|
1230
|
-
|
|
1231
|
-
let c =
|
|
1246
|
+
Mt ? (F = U, I = Nt) : dn(n), (D.uponSanitizeElement.length > 0 || D.uponSanitizeAttribute.length > 0) && (F = M(F)), D.uponSanitizeAttribute.length > 0 && (I = M(I)), t.removed = [];
|
|
1247
|
+
let c = Ht && typeof e != "string" && In(e), l = [], u = Ut;
|
|
1232
1248
|
if (c) {
|
|
1233
|
-
|
|
1249
|
+
On(e);
|
|
1234
1250
|
let t = ne(e);
|
|
1235
1251
|
if (typeof t == "string") {
|
|
1236
|
-
let n =
|
|
1237
|
-
if (!
|
|
1238
|
-
}
|
|
1239
|
-
if (bn(e)) throw fn(e), Ie("root node is clobbered and cannot be sanitized in-place");
|
|
1240
|
-
try {
|
|
1241
|
-
Fn(e);
|
|
1242
|
-
} catch (t) {
|
|
1243
|
-
throw fn(e), t;
|
|
1252
|
+
let n = q(t);
|
|
1253
|
+
if (!F[n] || R[n]) throw _n(e), Re("root node is forbidden and cannot be sanitized in-place");
|
|
1244
1254
|
}
|
|
1245
|
-
|
|
1255
|
+
if (Pn(e)) throw _n(e), Re("root node is clobbered and cannot be sanitized in-place");
|
|
1256
|
+
l = xn(e), Ut = Te();
|
|
1257
|
+
} else if (In(e)) i = kn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === P.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Zn(i);
|
|
1246
1258
|
else {
|
|
1247
|
-
if (!
|
|
1248
|
-
if (i =
|
|
1259
|
+
if (!Ft && !B && !H && e.indexOf("<") === -1) return C && Lt ? w(e) : e;
|
|
1260
|
+
if (i = kn(e), !i) return Ft ? null : Lt ? ie : "";
|
|
1249
1261
|
}
|
|
1250
|
-
i &&
|
|
1251
|
-
let
|
|
1262
|
+
i && Pt && Z(i.firstChild);
|
|
1263
|
+
let d = c ? e : i;
|
|
1252
1264
|
try {
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1265
|
+
c && Zn(e);
|
|
1266
|
+
let t = An(d);
|
|
1267
|
+
for (; o = t.nextNode();) Hn(o, d), Yn(o, d), Fn(o.content) && Xn(o.content);
|
|
1268
|
+
c && wn(e, l);
|
|
1269
|
+
} catch (t) {
|
|
1270
|
+
throw c && (_n(e), Cn(e, l)), t;
|
|
1271
|
+
} finally {
|
|
1272
|
+
Ut = u;
|
|
1259
1273
|
}
|
|
1260
1274
|
if (c) {
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
t.element && (t.element === e && (n = !0), Z(t.element));
|
|
1264
|
-
}), n) throw Ie("a node selected for removal could not be safely returned; refusing to sanitize in place");
|
|
1265
|
-
return R && yn(e), e;
|
|
1275
|
+
if (Cn(e, l)) throw Re("a node selected for removal could not be safely returned; refusing to sanitize in place");
|
|
1276
|
+
return B && Mn(e), e;
|
|
1266
1277
|
}
|
|
1267
|
-
if (
|
|
1268
|
-
if (
|
|
1278
|
+
if (Ft) {
|
|
1279
|
+
if (B && Mn(i), It) for (s = ge.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
|
|
1269
1280
|
else s = i;
|
|
1270
|
-
return (
|
|
1281
|
+
return (I.shadowroot || I.shadowrootmode) && (s = Pe.call(r, s, !0)), s;
|
|
1271
1282
|
}
|
|
1272
|
-
let
|
|
1273
|
-
return
|
|
1283
|
+
let f = H ? i.outerHTML : i.innerHTML;
|
|
1284
|
+
return H && F["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && k(lt, i.ownerDocument.doctype.name) && (f = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + f), B && (f = jn(f)), C && Lt ? w(f) : f;
|
|
1274
1285
|
}, t.setConfig = function() {
|
|
1275
1286
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1276
|
-
|
|
1287
|
+
dn(e), Mt = !0, U = F, Nt = I;
|
|
1277
1288
|
}, t.clearConfig = function() {
|
|
1278
|
-
|
|
1289
|
+
J = null, Mt = !1, U = null, Nt = null, C = ae, ie = "";
|
|
1279
1290
|
}, t.isValidAttribute = function(e, t, n) {
|
|
1280
|
-
|
|
1281
|
-
let r =
|
|
1282
|
-
return
|
|
1291
|
+
J || dn({});
|
|
1292
|
+
let r = q(e), i = q(t);
|
|
1293
|
+
return typeof n == "string" && (Jn(t, n) || !z && k(mt, n)) ? !1 : Un(r, i, n);
|
|
1283
1294
|
}, t.addHook = function(e, t) {
|
|
1284
|
-
typeof t == "function" &&
|
|
1295
|
+
typeof t == "function" && O(D, e) && xe(D[e], t);
|
|
1285
1296
|
}, t.removeHook = function(e, t) {
|
|
1286
|
-
if (
|
|
1297
|
+
if (O(D, e)) {
|
|
1287
1298
|
if (t !== void 0) {
|
|
1288
|
-
let n =
|
|
1289
|
-
return n === -1 ? void 0 : Ce(
|
|
1299
|
+
let n = ye(D[e], t);
|
|
1300
|
+
return n === -1 ? void 0 : Ce(D[e], n, 1)[0];
|
|
1290
1301
|
}
|
|
1291
|
-
return
|
|
1302
|
+
return be(D[e]);
|
|
1292
1303
|
}
|
|
1293
1304
|
}, t.removeHooks = function(e) {
|
|
1294
|
-
|
|
1305
|
+
O(D, e) && (D[e] = []);
|
|
1295
1306
|
}, t.removeAllHooks = function() {
|
|
1296
|
-
|
|
1307
|
+
D = vt();
|
|
1297
1308
|
}, t;
|
|
1298
1309
|
}
|
|
1299
|
-
var
|
|
1310
|
+
var St = xt(), Ct = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, wt = /\s/, F = /* @__PURE__ */ e((e) => {
|
|
1300
1311
|
let t = "", n = 0, r = 0;
|
|
1301
1312
|
for (; r < e.length;) {
|
|
1302
1313
|
let i = e.indexOf("%%", r);
|
|
@@ -1304,23 +1315,23 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
1304
1315
|
let a = e.indexOf("\n", i);
|
|
1305
1316
|
if (a === -1) break;
|
|
1306
1317
|
let o = i;
|
|
1307
|
-
for (; o > n &&
|
|
1318
|
+
for (; o > n && wt.test(e[o - 1]);) o--;
|
|
1308
1319
|
t += e.slice(n, o) + "\n", n = a + 1, r = n;
|
|
1309
1320
|
}
|
|
1310
1321
|
return t + e.slice(n);
|
|
1311
|
-
}, "stripAnyComments"),
|
|
1322
|
+
}, "stripAnyComments"), Tt = /* @__PURE__ */ e((e) => e === "\n" || e === "\r", "isLineBreak"), I = /* @__PURE__ */ e((e, t) => {
|
|
1312
1323
|
let n = -1;
|
|
1313
|
-
for (let r = t; r < e.length &&
|
|
1324
|
+
for (let r = t; r < e.length && wt.test(e[r]); r++) Tt(e[r]) && (n = r);
|
|
1314
1325
|
return n;
|
|
1315
|
-
}, "lastLineBreakInWhitespaceRun"),
|
|
1326
|
+
}, "lastLineBreakInWhitespaceRun"), Et = /* @__PURE__ */ e((t) => {
|
|
1316
1327
|
let n = 0;
|
|
1317
|
-
for (; n < t.length &&
|
|
1328
|
+
for (; n < t.length && wt.test(t[n]) && !Tt(t[n]);) n++;
|
|
1318
1329
|
let r = t.slice(0, n);
|
|
1319
1330
|
if (!t.startsWith("---", n)) return;
|
|
1320
1331
|
let i = [];
|
|
1321
|
-
for (let e = n + 3; e < t.length &&
|
|
1332
|
+
for (let e = n + 3; e < t.length && wt.test(t[e]); e++) Tt(t[e]) && i.push(e);
|
|
1322
1333
|
if (i.length === 0) return;
|
|
1323
|
-
let a = `${r}---`, o = /* @__PURE__ */ e((e) =>
|
|
1334
|
+
let a = `${r}---`, o = /* @__PURE__ */ e((e) => Tt(t[e]) && t.startsWith(a, e + 1) ? I(t, e + 1 + a.length) : -1, "closingEnd"), s = i[0] + 1, c = -1;
|
|
1324
1335
|
for (let e = s; e < t.length; e++) o(e) !== -1 && (c = e);
|
|
1325
1336
|
if (c === -1) return;
|
|
1326
1337
|
let l = i[0];
|
|
@@ -1341,21 +1352,21 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
1341
1352
|
constructor(e) {
|
|
1342
1353
|
super(e), this.name = "UnknownDiagramError";
|
|
1343
1354
|
}
|
|
1344
|
-
},
|
|
1345
|
-
let n =
|
|
1346
|
-
e =
|
|
1347
|
-
for (let [n, { detector: r }] of Object.entries(
|
|
1355
|
+
}, R = {}, Dt = /* @__PURE__ */ e(function(e, t) {
|
|
1356
|
+
let n = Et(e);
|
|
1357
|
+
e = F((n ? e.slice(n.length) : e).replace(Ct, ""));
|
|
1358
|
+
for (let [n, { detector: r }] of Object.entries(R)) if (r(e, t)) return n;
|
|
1348
1359
|
throw new L(`No diagram type detected matching given configuration for text: ${e}`);
|
|
1349
|
-
}, "detectType"),
|
|
1350
|
-
for (let { id: t, detector: n, loader: r } of e)
|
|
1351
|
-
}, "registerLazyLoadedDiagrams"),
|
|
1352
|
-
|
|
1360
|
+
}, "detectType"), Ot = /* @__PURE__ */ e((...e) => {
|
|
1361
|
+
for (let { id: t, detector: n, loader: r } of e) kt(t, n, r);
|
|
1362
|
+
}, "registerLazyLoadedDiagrams"), kt = /* @__PURE__ */ e((e, t, n) => {
|
|
1363
|
+
R[e] && r.warn(`Detector with key ${e} already exists. Overwriting.`), R[e] = {
|
|
1353
1364
|
detector: t,
|
|
1354
1365
|
loader: n
|
|
1355
1366
|
}, r.debug(`Detector with key ${e} added${n ? " with loader" : ""}`);
|
|
1356
|
-
}, "addDetector"),
|
|
1367
|
+
}, "addDetector"), At = /* @__PURE__ */ e((e) => R[e].loader, "getDiagramLoader"), jt = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
|
|
1357
1368
|
let r = { depth: n };
|
|
1358
|
-
if (Array.isArray(t) && !Array.isArray(e)) return t.forEach((t) =>
|
|
1369
|
+
if (Array.isArray(t) && !Array.isArray(e)) return t.forEach((t) => jt(e, t, r)), e;
|
|
1359
1370
|
if (Array.isArray(t) && Array.isArray(e)) return t.forEach((t) => {
|
|
1360
1371
|
e.includes(t) || e.push(t);
|
|
1361
1372
|
}), e;
|
|
@@ -1370,7 +1381,7 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
1370
1381
|
writable: !0,
|
|
1371
1382
|
enumerable: !0,
|
|
1372
1383
|
configurable: !0
|
|
1373
|
-
}), r[t] === void 0 && (r[t] = Array.isArray(i) ? [] : {}), typeof r[t] == "object" && (r[t] =
|
|
1384
|
+
}), r[t] === void 0 && (r[t] = Array.isArray(i) ? [] : {}), typeof r[t] == "object" && (r[t] = jt(r[t], i, { depth: n - 1 }));
|
|
1374
1385
|
} else typeof r[t] != "object" && (Object.hasOwn(e, t) ? r[t] = i : Object.defineProperty(e, t, {
|
|
1375
1386
|
value: i,
|
|
1376
1387
|
writable: !0,
|
|
@@ -1380,16 +1391,16 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
1380
1391
|
});
|
|
1381
1392
|
}
|
|
1382
1393
|
return e;
|
|
1383
|
-
}, "assignWithDepth"),
|
|
1394
|
+
}, "assignWithDepth"), z = jt, B = "#ffffff", V = "#f2f2f2", H = /* @__PURE__ */ e((e, t) => t ? x(e, {
|
|
1384
1395
|
s: -40,
|
|
1385
1396
|
l: 10
|
|
1386
1397
|
}) : x(e, {
|
|
1387
1398
|
s: -40,
|
|
1388
1399
|
l: -10
|
|
1389
|
-
}), "mkBorder"),
|
|
1400
|
+
}), "mkBorder"), Mt = /* @__PURE__ */ e((e) => typeof e == "object" && !!e && !Array.isArray(e), "isPlainObject"), U = /* @__PURE__ */ e((e, t) => Mt(e) && Mt(t) ? {
|
|
1390
1401
|
...e,
|
|
1391
1402
|
...t
|
|
1392
|
-
} : t, "applyOverride"),
|
|
1403
|
+
} : t, "applyOverride"), Nt = class {
|
|
1393
1404
|
static {
|
|
1394
1405
|
e(this, "Theme");
|
|
1395
1406
|
}
|
|
@@ -1400,7 +1411,7 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
1400
1411
|
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
|
|
1401
1412
|
h: 180,
|
|
1402
1413
|
l: 5
|
|
1403
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
1414
|
+
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(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 || y(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 || b(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || b(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || y(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || y(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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
|
|
1404
1415
|
h: 210,
|
|
1405
1416
|
l: 150
|
|
1406
1417
|
}), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
|
|
@@ -1530,7 +1541,7 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
1530
1541
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1531
1542
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1532
1543
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
1533
|
-
}, 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 ? b(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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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 ||
|
|
1544
|
+
}, 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 ? b(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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
|
|
1534
1545
|
}
|
|
1535
1546
|
calculate(e) {
|
|
1536
1547
|
if (typeof e != "object") {
|
|
@@ -1541,18 +1552,18 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
1541
1552
|
t.forEach((t) => {
|
|
1542
1553
|
this[t] = e[t];
|
|
1543
1554
|
}), this.updateColors(), t.forEach((t) => {
|
|
1544
|
-
this[t] =
|
|
1555
|
+
this[t] = U(this[t], e[t]);
|
|
1545
1556
|
}), Object.hasOwn(e, "nodeBorder") && !Object.hasOwn(e, "useGradient") && (this.useGradient = !1);
|
|
1546
1557
|
}
|
|
1547
|
-
},
|
|
1548
|
-
let t = new
|
|
1558
|
+
}, Pt = /* @__PURE__ */ e((e) => {
|
|
1559
|
+
let t = new Nt();
|
|
1549
1560
|
return t.calculate(e), t;
|
|
1550
|
-
}, "getThemeVariables"),
|
|
1561
|
+
}, "getThemeVariables"), Ft = class {
|
|
1551
1562
|
static {
|
|
1552
1563
|
e(this, "Theme");
|
|
1553
1564
|
}
|
|
1554
1565
|
constructor() {
|
|
1555
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor =
|
|
1566
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = h(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 = b("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = b(this.sectionBkgColor, 10), this.taskBorderColor = h(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = h(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 || y(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || b(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";
|
|
1556
1567
|
}
|
|
1557
1568
|
updateColors() {
|
|
1558
1569
|
this.secondBkg = y(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 = y(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 = y(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 = S(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 = x(this.primaryColor, { h: 64 }), this.fillType3 = x(this.secondaryColor, { h: 64 }), this.fillType4 = x(this.primaryColor, { h: -64 }), this.fillType5 = x(this.secondaryColor, { h: -64 }), this.fillType6 = x(this.primaryColor, { h: 128 }), this.fillType7 = x(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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 });
|
|
@@ -1668,18 +1679,18 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
1668
1679
|
t.forEach((t) => {
|
|
1669
1680
|
this[t] = e[t];
|
|
1670
1681
|
}), this.updateColors(), t.forEach((t) => {
|
|
1671
|
-
this[t] =
|
|
1682
|
+
this[t] = U(this[t], e[t]);
|
|
1672
1683
|
});
|
|
1673
1684
|
}
|
|
1674
|
-
},
|
|
1675
|
-
let t = new
|
|
1685
|
+
}, It = /* @__PURE__ */ e((e) => {
|
|
1686
|
+
let t = new Ft();
|
|
1676
1687
|
return t.calculate(e), t;
|
|
1677
|
-
}, "getThemeVariables"),
|
|
1688
|
+
}, "getThemeVariables"), Lt = class {
|
|
1678
1689
|
static {
|
|
1679
1690
|
e(this, "Theme");
|
|
1680
1691
|
}
|
|
1681
1692
|
constructor() {
|
|
1682
|
-
this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = x(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor =
|
|
1693
|
+
this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = x(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.border2 = "#aaaa33", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "rgba(232,232,232, 0.8)", this.textColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.clusterBkg = "#FBFBFF", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = this.taskTextDarkColor, this.taskTextClickableColor = "calculated", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBorderColor = "calculated", this.critBkgColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.sectionBkgColor = h(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();
|
|
1683
1694
|
}
|
|
1684
1695
|
updateColors() {
|
|
1685
1696
|
this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || b(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || b(this.tertiaryColor, 40);
|
|
@@ -1807,7 +1818,7 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
1807
1818
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1808
1819
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1809
1820
|
plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
|
|
1810
|
-
}, 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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || b(S(this.git0), 25), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(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 ||
|
|
1821
|
+
}, 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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || b(S(this.git0), 25), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
1811
1822
|
}
|
|
1812
1823
|
calculate(e) {
|
|
1813
1824
|
if (Object.keys(this).forEach((e) => {
|
|
@@ -1820,18 +1831,18 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
1820
1831
|
t.forEach((t) => {
|
|
1821
1832
|
this[t] = e[t];
|
|
1822
1833
|
}), this.updateColors(), t.forEach((t) => {
|
|
1823
|
-
this[t] =
|
|
1834
|
+
this[t] = U(this[t], e[t]);
|
|
1824
1835
|
});
|
|
1825
1836
|
}
|
|
1826
|
-
},
|
|
1827
|
-
let t = new
|
|
1837
|
+
}, Rt = /* @__PURE__ */ e((e) => {
|
|
1838
|
+
let t = new Lt();
|
|
1828
1839
|
return t.calculate(e), t;
|
|
1829
|
-
}, "getThemeVariables"),
|
|
1840
|
+
}, "getThemeVariables"), zt = class {
|
|
1830
1841
|
static {
|
|
1831
1842
|
e(this, "Theme");
|
|
1832
1843
|
}
|
|
1833
1844
|
constructor() {
|
|
1834
|
-
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 = y("#cde498", 10), this.primaryBorderColor =
|
|
1845
|
+
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 = y("#cde498", 10), this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.primaryColor), this.lineColor = S(this.background), this.textColor = S(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))";
|
|
1835
1846
|
}
|
|
1836
1847
|
updateColors() {
|
|
1837
1848
|
this.actorBorder = b(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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || b(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || b(this.tertiaryColor, 40);
|
|
@@ -1969,7 +1980,7 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
1969
1980
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
1970
1981
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
1971
1982
|
plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
|
|
1972
|
-
}, 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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(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 ||
|
|
1983
|
+
}, 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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || S(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || S(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
1973
1984
|
}
|
|
1974
1985
|
calculate(e) {
|
|
1975
1986
|
if (typeof e != "object") {
|
|
@@ -1980,18 +1991,18 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
1980
1991
|
t.forEach((t) => {
|
|
1981
1992
|
this[t] = e[t];
|
|
1982
1993
|
}), this.updateColors(), t.forEach((t) => {
|
|
1983
|
-
this[t] =
|
|
1994
|
+
this[t] = U(this[t], e[t]);
|
|
1984
1995
|
});
|
|
1985
1996
|
}
|
|
1986
|
-
},
|
|
1987
|
-
let t = new
|
|
1997
|
+
}, Bt = /* @__PURE__ */ e((e) => {
|
|
1998
|
+
let t = new zt();
|
|
1988
1999
|
return t.calculate(e), t;
|
|
1989
|
-
}, "getThemeVariables"),
|
|
2000
|
+
}, "getThemeVariables"), Vt = class {
|
|
1990
2001
|
static {
|
|
1991
2002
|
e(this, "Theme");
|
|
1992
2003
|
}
|
|
1993
2004
|
constructor() {
|
|
1994
|
-
this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = y(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor =
|
|
2005
|
+
this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = y(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.lineColor = S(this.background), this.textColor = S(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 || y(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))";
|
|
1995
2006
|
}
|
|
1996
2007
|
updateColors() {
|
|
1997
2008
|
this.secondBkg = y(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = y(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";
|
|
@@ -2082,7 +2093,7 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
2082
2093
|
annotationStroke: this.wardley?.annotationStroke || this.lineColor,
|
|
2083
2094
|
annotationTextColor: this.wardley?.annotationTextColor || this.primaryTextColor,
|
|
2084
2095
|
annotationFill: this.wardley?.annotationFill || this.background
|
|
2085
|
-
}, 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 = b(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || x(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || x(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || x(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || x(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || x(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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 ||
|
|
2096
|
+
}, 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 = b(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || x(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || x(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || x(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || x(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || x(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.emUiFill = this.emUiFill || "white", this.emUiStroke = this.emUiStroke || "#dbdada", this.emProcessorFill = this.emProcessorFill || "#edb3f6", this.emProcessorStroke = this.emProcessorStroke || "#b88cbf", this.emReadModelFill = this.emReadModelFill || "#d3f1a2", this.emReadModelStroke = this.emReadModelStroke || "#a3b732", this.emCommandFill = this.emCommandFill || "#bcd6fe", this.emCommandStroke = this.emCommandStroke || "#679ac3", this.emEventFill = this.emEventFill || "#ffb778", this.emEventStroke = this.emEventStroke || "#c19a0f", this.emSwimlaneBackgroundOdd = this.emSwimlaneBackgroundOdd || "rgb(250,250,250)", this.emSwimlaneBackgroundStroke = this.emSwimlaneBackgroundStroke || "rgb(240,240,240)", this.emArrowhead = this.emArrowhead || this.lineColor, this.emRelationStroke = this.emRelationStroke || this.lineColor, this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
2086
2097
|
}
|
|
2087
2098
|
calculate(e) {
|
|
2088
2099
|
if (typeof e != "object") {
|
|
@@ -2093,24 +2104,24 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
2093
2104
|
t.forEach((t) => {
|
|
2094
2105
|
this[t] = e[t];
|
|
2095
2106
|
}), this.updateColors(), t.forEach((t) => {
|
|
2096
|
-
this[t] =
|
|
2107
|
+
this[t] = U(this[t], e[t]);
|
|
2097
2108
|
});
|
|
2098
2109
|
}
|
|
2099
|
-
},
|
|
2100
|
-
let t = new
|
|
2110
|
+
}, Ht = /* @__PURE__ */ e((e) => {
|
|
2111
|
+
let t = new Vt();
|
|
2101
2112
|
return t.calculate(e), t;
|
|
2102
|
-
}, "getThemeVariables"),
|
|
2113
|
+
}, "getThemeVariables"), Ut = class {
|
|
2103
2114
|
static {
|
|
2104
2115
|
e(this, "Theme");
|
|
2105
2116
|
}
|
|
2106
2117
|
constructor() {
|
|
2107
|
-
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 =
|
|
2118
|
+
this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 3, this.strokeWidth = 2, this.primaryBorderColor = H(this.primaryColor, this.darkMode), this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#000000", this.stateBorder = "#000000", this.useGradient = !0, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));", this.tertiaryColor = "#ffffff", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal";
|
|
2108
2119
|
}
|
|
2109
2120
|
updateColors() {
|
|
2110
2121
|
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
|
|
2111
2122
|
h: 180,
|
|
2112
2123
|
l: 5
|
|
2113
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
2124
|
+
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || (_(this.background) ? y(this.background, 4) : b(this.background, 4));
|
|
2114
2125
|
let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
|
|
2115
2126
|
h: 180,
|
|
2116
2127
|
l: 5
|
|
@@ -2189,7 +2200,7 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
2189
2200
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2190
2201
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2191
2202
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2192
|
-
}, 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 ? b(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 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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 ||
|
|
2203
|
+
}, 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 ? b(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 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
2193
2204
|
}
|
|
2194
2205
|
calculate(e) {
|
|
2195
2206
|
if (typeof e != "object") {
|
|
@@ -2200,24 +2211,24 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
2200
2211
|
t.forEach((t) => {
|
|
2201
2212
|
this[t] = e[t];
|
|
2202
2213
|
}), this.updateColors(), t.forEach((t) => {
|
|
2203
|
-
this[t] =
|
|
2214
|
+
this[t] = U(this[t], e[t]);
|
|
2204
2215
|
});
|
|
2205
2216
|
}
|
|
2206
|
-
},
|
|
2207
|
-
let t = new
|
|
2217
|
+
}, Wt = /* @__PURE__ */ e((e) => {
|
|
2218
|
+
let t = new Ut();
|
|
2208
2219
|
return t.calculate(e), t;
|
|
2209
|
-
}, "getThemeVariables"),
|
|
2220
|
+
}, "getThemeVariables"), Gt = class {
|
|
2210
2221
|
static {
|
|
2211
2222
|
e(this, "Theme");
|
|
2212
2223
|
}
|
|
2213
2224
|
constructor() {
|
|
2214
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor =
|
|
2225
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#2a2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = h(255, 255, 255, .25), this.arrowheadColor = S(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";
|
|
2215
2226
|
}
|
|
2216
2227
|
updateColors() {
|
|
2217
2228
|
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
|
|
2218
2229
|
h: 180,
|
|
2219
2230
|
l: 5
|
|
2220
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
2231
|
+
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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" ? y(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(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 || y(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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
|
|
2221
2232
|
h: 210,
|
|
2222
2233
|
l: 150
|
|
2223
2234
|
}), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
|
|
@@ -2291,7 +2302,7 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
2291
2302
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2292
2303
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2293
2304
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2294
|
-
}, 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 ? b(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 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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 ||
|
|
2305
|
+
}, 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 ? b(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 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
2295
2306
|
}
|
|
2296
2307
|
calculate(e) {
|
|
2297
2308
|
if (typeof e != "object") {
|
|
@@ -2302,24 +2313,24 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
2302
2313
|
t.forEach((t) => {
|
|
2303
2314
|
this[t] = e[t];
|
|
2304
2315
|
}), this.updateColors(), t.forEach((t) => {
|
|
2305
|
-
this[t] =
|
|
2316
|
+
this[t] = U(this[t], e[t]);
|
|
2306
2317
|
});
|
|
2307
2318
|
}
|
|
2308
|
-
},
|
|
2309
|
-
let t = new
|
|
2319
|
+
}, Kt = /* @__PURE__ */ e((e) => {
|
|
2320
|
+
let t = new Gt();
|
|
2310
2321
|
return t.calculate(e), t;
|
|
2311
|
-
}, "getThemeVariables"),
|
|
2322
|
+
}, "getThemeVariables"), qt = class {
|
|
2312
2323
|
static {
|
|
2313
2324
|
e(this, "Theme");
|
|
2314
2325
|
}
|
|
2315
2326
|
constructor() {
|
|
2316
|
-
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 =
|
|
2327
|
+
this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor = H("#28253D", this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.clusterBkg = "#F9F9FB", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.filterColor = "#000000";
|
|
2317
2328
|
}
|
|
2318
2329
|
updateColors() {
|
|
2319
2330
|
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
|
|
2320
2331
|
h: 180,
|
|
2321
2332
|
l: 5
|
|
2322
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
2333
|
+
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || (_(this.background) ? y(this.background, 4) : b(this.background, 4));
|
|
2323
2334
|
let e = "#ECECFE", t = "#E9E9F1", n = x(e, {
|
|
2324
2335
|
h: 180,
|
|
2325
2336
|
l: 5
|
|
@@ -2397,7 +2408,7 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
2397
2408
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2398
2409
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2399
2410
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2400
|
-
}, 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 ? b(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 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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 ||
|
|
2411
|
+
}, 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 ? b(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 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
2401
2412
|
}
|
|
2402
2413
|
calculate(e) {
|
|
2403
2414
|
if (typeof e != "object") {
|
|
@@ -2408,24 +2419,24 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
2408
2419
|
t.forEach((t) => {
|
|
2409
2420
|
this[t] = e[t];
|
|
2410
2421
|
}), this.updateColors(), t.forEach((t) => {
|
|
2411
|
-
this[t] =
|
|
2422
|
+
this[t] = U(this[t], e[t]);
|
|
2412
2423
|
});
|
|
2413
2424
|
}
|
|
2414
|
-
},
|
|
2415
|
-
let t = new
|
|
2425
|
+
}, Jt = /* @__PURE__ */ e((e) => {
|
|
2426
|
+
let t = new qt();
|
|
2416
2427
|
return t.calculate(e), t;
|
|
2417
|
-
}, "getThemeVariables"),
|
|
2428
|
+
}, "getThemeVariables"), Yt = class {
|
|
2418
2429
|
static {
|
|
2419
2430
|
e(this, "Theme");
|
|
2420
2431
|
}
|
|
2421
2432
|
constructor() {
|
|
2422
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor =
|
|
2433
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = h(255, 255, 255, .25), this.arrowheadColor = S(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";
|
|
2423
2434
|
}
|
|
2424
2435
|
updateColors() {
|
|
2425
2436
|
if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
|
|
2426
2437
|
h: 180,
|
|
2427
2438
|
l: 5
|
|
2428
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
2439
|
+
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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" ? y(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(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 || y(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 || x(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || x(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || x(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || x(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || x(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || x(this.primaryColor, {
|
|
2429
2440
|
h: 210,
|
|
2430
2441
|
l: 150
|
|
2431
2442
|
}), this.cScale9 = this.cScale9 || x(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || x(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || x(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = b(this["cScale" + e], 75);
|
|
@@ -2499,7 +2510,7 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
2499
2510
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2500
2511
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2501
2512
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2502
|
-
}, 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 ? b(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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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 ||
|
|
2513
|
+
}, 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 ? b(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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
2503
2514
|
}
|
|
2504
2515
|
calculate(e) {
|
|
2505
2516
|
if (typeof e != "object") {
|
|
@@ -2510,18 +2521,18 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
2510
2521
|
t.forEach((t) => {
|
|
2511
2522
|
this[t] = e[t];
|
|
2512
2523
|
}), this.updateColors(), t.forEach((t) => {
|
|
2513
|
-
this[t] =
|
|
2524
|
+
this[t] = U(this[t], e[t]);
|
|
2514
2525
|
});
|
|
2515
2526
|
}
|
|
2516
|
-
},
|
|
2517
|
-
let t = new
|
|
2527
|
+
}, Xt = /* @__PURE__ */ e((e) => {
|
|
2528
|
+
let t = new Yt();
|
|
2518
2529
|
return t.calculate(e), t;
|
|
2519
|
-
}, "getThemeVariables"),
|
|
2530
|
+
}, "getThemeVariables"), Zt = class {
|
|
2520
2531
|
static {
|
|
2521
2532
|
e(this, "Theme");
|
|
2522
2533
|
}
|
|
2523
2534
|
constructor() {
|
|
2524
|
-
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 =
|
|
2535
|
+
this.background = "#ffffff", this.primaryColor = "#cccccc", this.mainBkg = "#ffffff", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#28253D", this.THEME_COLOR_LIMIT = 12, this.radius = 12, this.strokeWidth = 2, this.primaryBorderColor = H("#28253D", this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.clusterBkg = "#F9F9FB", this.clusterBorder = "#BDBCCC", this.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 = [
|
|
2525
2536
|
"#E879F9",
|
|
2526
2537
|
"#2DD4BF",
|
|
2527
2538
|
"#FB923C",
|
|
@@ -2553,7 +2564,7 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
2553
2564
|
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#28253D"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
|
|
2554
2565
|
h: 180,
|
|
2555
2566
|
l: 5
|
|
2556
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
2567
|
+
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(this.lineColor), this.rectBkgColor = this.rectBkgColor || (_(this.background) ? y(this.background, 4) : b(this.background, 4));
|
|
2557
2568
|
let e = "#ECECFE", t = x(e, {
|
|
2558
2569
|
h: 180,
|
|
2559
2570
|
l: 5
|
|
@@ -2615,7 +2626,7 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
2615
2626
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2616
2627
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2617
2628
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2618
|
-
}, 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 ? b(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 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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 ||
|
|
2629
|
+
}, 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 ? b(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 || x(e, { h: -30 }), this.git4 = this.git4 || x(e, { h: -60 }), this.git5 = this.git5 || x(e, { h: -90 }), this.git6 = this.git6 || x(e, { h: 60 }), this.git7 = this.git7 || x(e, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.fontWeight = 600, this.erEdgeLabelBackground = "#FFFFFF", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
2619
2630
|
}
|
|
2620
2631
|
calculate(e) {
|
|
2621
2632
|
if (typeof e != "object") {
|
|
@@ -2626,18 +2637,18 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
2626
2637
|
t.forEach((t) => {
|
|
2627
2638
|
this[t] = e[t];
|
|
2628
2639
|
}), this.updateColors(), t.forEach((t) => {
|
|
2629
|
-
this[t] =
|
|
2640
|
+
this[t] = U(this[t], e[t]);
|
|
2630
2641
|
});
|
|
2631
2642
|
}
|
|
2632
|
-
},
|
|
2633
|
-
let t = new
|
|
2643
|
+
}, Qt = /* @__PURE__ */ e((e) => {
|
|
2644
|
+
let t = new Zt();
|
|
2634
2645
|
return t.calculate(e), t;
|
|
2635
|
-
}, "getThemeVariables"),
|
|
2646
|
+
}, "getThemeVariables"), W = class {
|
|
2636
2647
|
static {
|
|
2637
2648
|
e(this, "Theme");
|
|
2638
2649
|
}
|
|
2639
2650
|
constructor() {
|
|
2640
|
-
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor =
|
|
2651
|
+
this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = y(this.primaryColor, 16), this.tertiaryColor = x(this.primaryColor, { h: -160 }), this.primaryBorderColor = S(this.background), this.secondaryBorderColor = H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = H(this.tertiaryColor, this.darkMode), this.primaryTextColor = S(this.primaryColor), this.secondaryTextColor = S(this.secondaryColor), this.tertiaryTextColor = S(this.tertiaryColor), this.mainBkg = "#111113", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = y(S("#323D47"), 10), this.border1 = "#ccc", this.border2 = h(255, 255, 255, .25), this.arrowheadColor = S(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 = [
|
|
2641
2652
|
"#E879F9",
|
|
2642
2653
|
"#2DD4BF",
|
|
2643
2654
|
"#FB923C",
|
|
@@ -2656,7 +2667,7 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
2656
2667
|
this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#FFFFFF"), this.secondaryColor = this.secondaryColor || x(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || x(this.primaryColor, {
|
|
2657
2668
|
h: 180,
|
|
2658
2669
|
l: 5
|
|
2659
|
-
}), this.primaryBorderColor = this.primaryBorderColor ||
|
|
2670
|
+
}), this.primaryBorderColor = this.primaryBorderColor || H(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || H(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || H(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || H(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || S(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || S(this.tertiaryColor), this.lineColor = this.lineColor || S(this.background), this.arrowheadColor = this.arrowheadColor || S(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" ? y(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 ? b(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 || b(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || S(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 || y(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;
|
|
2660
2671
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || S(this["cScale" + e]);
|
|
2661
2672
|
for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || y(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || b(this["cScale" + e], 10);
|
|
2662
2673
|
this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
|
|
@@ -2723,7 +2734,7 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
2723
2734
|
yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
|
|
2724
2735
|
yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
|
|
2725
2736
|
plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
|
|
2726
|
-
}, 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 ? b(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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(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 ||
|
|
2737
|
+
}, 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 ? b(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 || x(this.primaryColor, { h: -30 }), this.git4 = this.git4 || x(this.primaryColor, { h: -60 }), this.git5 = this.git5 || x(this.primaryColor, { h: -90 }), this.git6 = this.git6 || x(this.primaryColor, { h: 60 }), this.git7 = this.git7 || x(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = y(this.git0, 25), this.git1 = y(this.git1, 25), this.git2 = y(this.git2, 25), this.git3 = y(this.git3, 25), this.git4 = y(this.git4, 25), this.git5 = y(this.git5, 25), this.git6 = y(this.git6, 25), this.git7 = y(this.git7, 25)) : (this.git0 = b(this.git0, 25), this.git1 = b(this.git1, 25), this.git2 = b(this.git2, 25), this.git3 = b(this.git3, 25), this.git4 = b(this.git4, 25), this.git5 = b(this.git5, 25), this.git6 = b(this.git6, 25), this.git7 = b(this.git7, 25)), this.gitInv0 = this.gitInv0 || S(this.git0), this.gitInv1 = this.gitInv1 || S(this.git1), this.gitInv2 = this.gitInv2 || S(this.git2), this.gitInv3 = this.gitInv3 || S(this.git3), this.gitInv4 = this.gitInv4 || S(this.git4), this.gitInv5 = this.gitInv5 || S(this.git5), this.gitInv6 = this.gitInv6 || S(this.git6), this.gitInv7 = this.gitInv7 || S(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.commitLineColor = this.commitLineColor ?? "#BDBCCC", this.fontWeight = 600, this.erEdgeLabelBackground = "#16141F", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || B, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || V;
|
|
2727
2738
|
}
|
|
2728
2739
|
calculate(e) {
|
|
2729
2740
|
if (typeof e != "object") {
|
|
@@ -2734,25 +2745,25 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
2734
2745
|
t.forEach((t) => {
|
|
2735
2746
|
this[t] = e[t];
|
|
2736
2747
|
}), this.updateColors(), t.forEach((t) => {
|
|
2737
|
-
this[t] =
|
|
2748
|
+
this[t] = U(this[t], e[t]);
|
|
2738
2749
|
});
|
|
2739
2750
|
}
|
|
2740
|
-
},
|
|
2741
|
-
base: { getThemeVariables:
|
|
2742
|
-
dark: { getThemeVariables:
|
|
2743
|
-
default: { getThemeVariables:
|
|
2744
|
-
forest: { getThemeVariables:
|
|
2745
|
-
neutral: { getThemeVariables:
|
|
2746
|
-
neo: { getThemeVariables:
|
|
2747
|
-
"neo-dark": { getThemeVariables:
|
|
2748
|
-
redux: { getThemeVariables:
|
|
2749
|
-
"redux-dark": { getThemeVariables:
|
|
2750
|
-
"redux-color": { getThemeVariables:
|
|
2751
|
+
}, G = {
|
|
2752
|
+
base: { getThemeVariables: Pt },
|
|
2753
|
+
dark: { getThemeVariables: It },
|
|
2754
|
+
default: { getThemeVariables: Rt },
|
|
2755
|
+
forest: { getThemeVariables: Bt },
|
|
2756
|
+
neutral: { getThemeVariables: Ht },
|
|
2757
|
+
neo: { getThemeVariables: Wt },
|
|
2758
|
+
"neo-dark": { getThemeVariables: Kt },
|
|
2759
|
+
redux: { getThemeVariables: Jt },
|
|
2760
|
+
"redux-dark": { getThemeVariables: Xt },
|
|
2761
|
+
"redux-color": { getThemeVariables: Qt },
|
|
2751
2762
|
"redux-dark-color": { getThemeVariables: /* @__PURE__ */ e((e) => {
|
|
2752
|
-
let t = new
|
|
2763
|
+
let t = new W();
|
|
2753
2764
|
return t.calculate(e), t;
|
|
2754
2765
|
}, "getThemeVariables") }
|
|
2755
|
-
},
|
|
2766
|
+
}, K = {
|
|
2756
2767
|
flowchart: {
|
|
2757
2768
|
useMaxWidth: !0,
|
|
2758
2769
|
theme: "redux-color",
|
|
@@ -3351,8 +3362,8 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
3351
3362
|
fontSize: 16,
|
|
3352
3363
|
markdownAutoWrap: !0,
|
|
3353
3364
|
suppressErrorRendering: !1
|
|
3354
|
-
},
|
|
3355
|
-
...
|
|
3365
|
+
}, $t = {
|
|
3366
|
+
...K,
|
|
3356
3367
|
deterministicIDSeed: void 0,
|
|
3357
3368
|
elk: {
|
|
3358
3369
|
mergeEdges: !1,
|
|
@@ -3370,9 +3381,9 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
3370
3381
|
orientFeedbackEdges: !0
|
|
3371
3382
|
},
|
|
3372
3383
|
themeCSS: void 0,
|
|
3373
|
-
themeVariables:
|
|
3384
|
+
themeVariables: G.default.getThemeVariables(),
|
|
3374
3385
|
sequence: {
|
|
3375
|
-
...
|
|
3386
|
+
...K.sequence,
|
|
3376
3387
|
messageFont: /* @__PURE__ */ e(function() {
|
|
3377
3388
|
return {
|
|
3378
3389
|
fontFamily: this.messageFontFamily,
|
|
@@ -3396,19 +3407,19 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
3396
3407
|
}, "actorFont")
|
|
3397
3408
|
},
|
|
3398
3409
|
class: {
|
|
3399
|
-
theme:
|
|
3400
|
-
look:
|
|
3401
|
-
layout:
|
|
3410
|
+
theme: K.class?.theme,
|
|
3411
|
+
look: K.class?.look,
|
|
3412
|
+
layout: K.class?.layout,
|
|
3402
3413
|
hideEmptyMembersBox: !1,
|
|
3403
3414
|
hierarchicalNamespaces: !0
|
|
3404
3415
|
},
|
|
3405
3416
|
gantt: {
|
|
3406
|
-
...
|
|
3417
|
+
...K.gantt,
|
|
3407
3418
|
tickInterval: void 0,
|
|
3408
3419
|
useWidth: void 0
|
|
3409
3420
|
},
|
|
3410
3421
|
c4: {
|
|
3411
|
-
...
|
|
3422
|
+
...K.c4,
|
|
3412
3423
|
useWidth: void 0,
|
|
3413
3424
|
personFont: /* @__PURE__ */ e(function() {
|
|
3414
3425
|
return {
|
|
@@ -3418,7 +3429,7 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
3418
3429
|
};
|
|
3419
3430
|
}, "personFont"),
|
|
3420
3431
|
flowchart: {
|
|
3421
|
-
...
|
|
3432
|
+
...K.flowchart,
|
|
3422
3433
|
inheritDir: !1
|
|
3423
3434
|
},
|
|
3424
3435
|
external_personFont: /* @__PURE__ */ e(function() {
|
|
@@ -3570,27 +3581,27 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
3570
3581
|
}, "messageFont")
|
|
3571
3582
|
},
|
|
3572
3583
|
pie: {
|
|
3573
|
-
...
|
|
3584
|
+
...K.pie,
|
|
3574
3585
|
useWidth: 984
|
|
3575
3586
|
},
|
|
3576
3587
|
xyChart: {
|
|
3577
|
-
...
|
|
3588
|
+
...K.xyChart,
|
|
3578
3589
|
useWidth: void 0
|
|
3579
3590
|
},
|
|
3580
3591
|
requirement: {
|
|
3581
|
-
...
|
|
3592
|
+
...K.requirement,
|
|
3582
3593
|
useWidth: void 0
|
|
3583
3594
|
},
|
|
3584
|
-
packet: { ...
|
|
3585
|
-
eventmodeling: { ...
|
|
3595
|
+
packet: { ...K.packet },
|
|
3596
|
+
eventmodeling: { ...K.eventmodeling },
|
|
3586
3597
|
treeView: {
|
|
3587
|
-
...
|
|
3598
|
+
...K.treeView,
|
|
3588
3599
|
useWidth: void 0
|
|
3589
3600
|
},
|
|
3590
|
-
radar: { ...
|
|
3591
|
-
usecase: { ...
|
|
3601
|
+
radar: { ...K.radar },
|
|
3602
|
+
usecase: { ...K.usecase },
|
|
3592
3603
|
railroad: {
|
|
3593
|
-
...
|
|
3604
|
+
...K.railroad,
|
|
3594
3605
|
fontSize: void 0,
|
|
3595
3606
|
fontFamily: void 0,
|
|
3596
3607
|
terminalFill: void 0,
|
|
@@ -3608,9 +3619,9 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
3608
3619
|
specialStroke: void 0,
|
|
3609
3620
|
ruleNameColor: void 0
|
|
3610
3621
|
},
|
|
3611
|
-
ishikawa: { ...
|
|
3622
|
+
ishikawa: { ...K.ishikawa },
|
|
3612
3623
|
sankey: {
|
|
3613
|
-
...
|
|
3624
|
+
...K.sankey,
|
|
3614
3625
|
nodeColors: void 0
|
|
3615
3626
|
},
|
|
3616
3627
|
treemap: {
|
|
@@ -3625,13 +3636,13 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
3625
3636
|
labelFontSize: 14,
|
|
3626
3637
|
valueFormat: ","
|
|
3627
3638
|
},
|
|
3628
|
-
venn: { ...
|
|
3629
|
-
cynefin: { ...
|
|
3630
|
-
},
|
|
3639
|
+
venn: { ...K.venn },
|
|
3640
|
+
cynefin: { ...K.cynefin }
|
|
3641
|
+
}, en = /* @__PURE__ */ e((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
|
|
3631
3642
|
...n,
|
|
3632
3643
|
t + r,
|
|
3633
|
-
...
|
|
3634
|
-
] : [...n, t + r], []), "keyify"),
|
|
3644
|
+
...en(e[r], "")
|
|
3645
|
+
] : [...n, t + r], []), "keyify"), tn = new Set(en($t, "")), nn = $t, rn = {
|
|
3635
3646
|
"flowchart-v2": "flowchart",
|
|
3636
3647
|
"flowchart-elk": "flowchart",
|
|
3637
3648
|
classDiagram: "class",
|
|
@@ -3640,222 +3651,214 @@ var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)
|
|
|
3640
3651
|
railroadAbnf: "railroad",
|
|
3641
3652
|
railroadEbnf: "railroad",
|
|
3642
3653
|
railroadPeg: "railroad"
|
|
3643
|
-
},
|
|
3654
|
+
}, an = /* @__PURE__ */ e((e) => rn[e] ?? e, "getDiagramConfigKey"), on = {
|
|
3644
3655
|
nodeColors: /^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,
|
|
3645
3656
|
filenameIcons: /^[\w-]+(?::[\w-]+)?$/,
|
|
3646
3657
|
extensionIcons: /^[\w-]+(?::[\w-]+)?$/
|
|
3647
|
-
},
|
|
3658
|
+
}, sn = /* @__PURE__ */ e((e, t) => {
|
|
3648
3659
|
for (let n of Object.keys(e)) {
|
|
3649
3660
|
let i = e[n];
|
|
3650
3661
|
(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]);
|
|
3651
3662
|
}
|
|
3652
|
-
}, "sanitizeDictionaryConfig"),
|
|
3653
|
-
if (r.debug("sanitizeDirective called with", e),
|
|
3654
|
-
if (Array.isArray(e))
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
continue;
|
|
3662
|
-
}
|
|
3663
|
-
if (typeof e[t] == "object") {
|
|
3664
|
-
let n = en[t];
|
|
3665
|
-
n ? tn(e[t], n) : (r.debug("sanitizing object", t), nn(e[t]));
|
|
3666
|
-
continue;
|
|
3667
|
-
}
|
|
3668
|
-
for (let n of [
|
|
3663
|
+
}, "sanitizeDictionaryConfig"), cn = /* @__PURE__ */ e((e) => {
|
|
3664
|
+
if (r.debug("sanitizeDirective called with", e), typeof e == "object" && e) {
|
|
3665
|
+
if (Array.isArray(e)) e.forEach((e) => cn(e));
|
|
3666
|
+
else {
|
|
3667
|
+
for (let t of Object.keys(e)) if (r.debug("Checking key", t), t.startsWith("__") || t.includes("proto") || t.includes("constr") || !tn.has(t) || e[t] == null) r.debug("sanitize deleting key: ", t), delete e[t];
|
|
3668
|
+
else if (typeof e[t] == "object") {
|
|
3669
|
+
let n = on[t];
|
|
3670
|
+
n ? sn(e[t], n) : (r.debug("sanitizing object", t), cn(e[t]));
|
|
3671
|
+
} else for (let n of [
|
|
3669
3672
|
"themeCSS",
|
|
3670
3673
|
"fontFamily",
|
|
3671
3674
|
"altFontFamily"
|
|
3672
|
-
]) t.includes(n) && (r.debug("sanitizing css option", t), e[t] =
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3675
|
+
]) t.includes(n) && (r.debug("sanitizing css option", t), e[t] = q(e[t]));
|
|
3676
|
+
if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
|
|
3677
|
+
let n = e.themeVariables[t];
|
|
3678
|
+
n?.match && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = "");
|
|
3679
|
+
}
|
|
3680
|
+
r.debug("After sanitization", e);
|
|
3677
3681
|
}
|
|
3678
|
-
r.debug("After sanitization", e);
|
|
3679
3682
|
}
|
|
3680
|
-
}, "sanitizeDirective"),
|
|
3683
|
+
}, "sanitizeDirective"), q = /* @__PURE__ */ e((e) => {
|
|
3681
3684
|
let t = 0, n = 0;
|
|
3682
3685
|
for (let r of e) {
|
|
3683
3686
|
if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
|
|
3684
3687
|
r === "{" ? t++ : r === "}" && n++;
|
|
3685
3688
|
}
|
|
3686
3689
|
return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
|
|
3687
|
-
}, "sanitizeCss"),
|
|
3690
|
+
}, "sanitizeCss"), J = Object.freeze(nn), ln = [
|
|
3688
3691
|
"theme",
|
|
3689
3692
|
"look",
|
|
3690
3693
|
"layout"
|
|
3691
|
-
],
|
|
3694
|
+
], un = /* @__PURE__ */ new Set([
|
|
3692
3695
|
"classic",
|
|
3693
3696
|
"handDrawn",
|
|
3694
3697
|
"neo"
|
|
3695
|
-
]),
|
|
3696
|
-
if (e) return [e[t]?.[n], e[n]].find((e) => e !== void 0 &&
|
|
3697
|
-
}, "readAppearance"),
|
|
3698
|
+
]), dn = /* @__PURE__ */ e((e, t) => e === "theme" ? t === "null" || Object.hasOwn(G, t) : e !== "look" || un.has(t), "isUsableAppearance"), fn = /* @__PURE__ */ e((e, t, n) => {
|
|
3699
|
+
if (e) return [e[t]?.[n], e[n]].find((e) => e !== void 0 && dn(n, e));
|
|
3700
|
+
}, "readAppearance"), pn = /* @__PURE__ */ e((e) => !(e === !1 || [
|
|
3698
3701
|
"false",
|
|
3699
3702
|
"null",
|
|
3700
3703
|
"0"
|
|
3701
|
-
].includes(String(e).trim().toLowerCase())), "evaluate"), Y =
|
|
3702
|
-
if (!
|
|
3704
|
+
].includes(String(e).trim().toLowerCase())), "evaluate"), Y = z({}, J), mn, hn = {}, X = [], Z = z({}, J), gn, _n = /* @__PURE__ */ e((e, t) => {
|
|
3705
|
+
if (!gn) return;
|
|
3703
3706
|
let n = [
|
|
3704
3707
|
t,
|
|
3705
3708
|
...[...X].reverse(),
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
], r = e[
|
|
3709
|
-
for (let t of
|
|
3710
|
-
let n =
|
|
3709
|
+
hn,
|
|
3710
|
+
J
|
|
3711
|
+
], r = e[gn];
|
|
3712
|
+
for (let t of ln) for (let i of n) {
|
|
3713
|
+
let n = fn(i, gn, t);
|
|
3711
3714
|
if (n !== void 0) {
|
|
3712
3715
|
e[t] = n, r?.[t] !== void 0 && (r[t] = n);
|
|
3713
3716
|
break;
|
|
3714
3717
|
}
|
|
3715
3718
|
}
|
|
3716
|
-
}, "resolveAppearance"),
|
|
3717
|
-
let n =
|
|
3718
|
-
for (let e of t)
|
|
3719
|
-
if (n =
|
|
3720
|
-
let e =
|
|
3721
|
-
n.themeVariables =
|
|
3722
|
-
}
|
|
3723
|
-
return
|
|
3724
|
-
}, "updateCurrentConfig"),
|
|
3725
|
-
|
|
3726
|
-
}, "setDiagramConfigScope"),
|
|
3727
|
-
|
|
3728
|
-
}, "saveConfigFromInitialize"),
|
|
3719
|
+
}, "resolveAppearance"), Q = /* @__PURE__ */ e((e, t) => {
|
|
3720
|
+
let n = z({}, e), r = {};
|
|
3721
|
+
for (let e of t) Tn(e), r = z(r, e);
|
|
3722
|
+
if (n = z(n, r), _n(n, r), (r.theme || n.theme !== e.theme) && n.theme && Object.hasOwn(G, n.theme)) {
|
|
3723
|
+
let e = z(z({}, mn).themeVariables || {}, r.themeVariables);
|
|
3724
|
+
n.themeVariables = G[n.theme].getThemeVariables(e);
|
|
3725
|
+
}
|
|
3726
|
+
return Z = n, jn(Z), Z;
|
|
3727
|
+
}, "updateCurrentConfig"), vn = /* @__PURE__ */ e((e) => {
|
|
3728
|
+
gn = e === void 0 ? void 0 : an(e), Q(Y, X);
|
|
3729
|
+
}, "setDiagramConfigScope"), yn = /* @__PURE__ */ e((e) => (Y = z({}, J), Y = z(Y, e), hn = z({}, e), e.theme && Object.hasOwn(G, e.theme) && (Y.themeVariables = G[e.theme].getThemeVariables(e.themeVariables)), Q(Y, X), Y), "setSiteConfig"), bn = /* @__PURE__ */ e((e) => {
|
|
3730
|
+
mn = z({}, e);
|
|
3731
|
+
}, "saveConfigFromInitialize"), xn = /* @__PURE__ */ e((e) => (Y = z(Y, e), hn = z(hn, e), Q(Y, X), Y), "updateSiteConfig"), Sn = /* @__PURE__ */ e(() => z({}, Y), "getSiteConfig"), Cn = /* @__PURE__ */ e((e) => (Q(Z, [e]), wn()), "setConfig"), wn = /* @__PURE__ */ e(() => z({}, Z), "getConfig"), Tn = /* @__PURE__ */ e((e) => {
|
|
3729
3732
|
e && (["secure", ...Y.secure ?? []].forEach((t) => {
|
|
3730
3733
|
Object.hasOwn(e, t) && (r.debug(`Denied attempt to modify a secure key ${t}`, e[t]), delete e[t]);
|
|
3731
3734
|
}), Object.keys(e).forEach((t) => {
|
|
3732
3735
|
t.startsWith("__") && delete e[t];
|
|
3733
3736
|
}), Object.keys(e).forEach((t) => {
|
|
3734
|
-
typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" &&
|
|
3737
|
+
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]);
|
|
3735
3738
|
}));
|
|
3736
|
-
}, "sanitize"),
|
|
3737
|
-
|
|
3739
|
+
}, "sanitize"), En = /* @__PURE__ */ e((e) => {
|
|
3740
|
+
cn(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
|
|
3738
3741
|
...e.themeVariables,
|
|
3739
3742
|
fontFamily: e.fontFamily
|
|
3740
|
-
}), X.push(e),
|
|
3741
|
-
}, "addDirective"),
|
|
3742
|
-
X = [],
|
|
3743
|
-
}, "reset"),
|
|
3743
|
+
}), X.push(e), Q(Y, X);
|
|
3744
|
+
}, "addDirective"), Dn = /* @__PURE__ */ e((e = Y) => {
|
|
3745
|
+
X = [], gn = void 0, Q(e, X);
|
|
3746
|
+
}, "reset"), On = {
|
|
3744
3747
|
LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead.",
|
|
3745
3748
|
FLOWCHART_HTML_LABELS_DEPRECATED: "flowchart.htmlLabels is deprecated. Please use global htmlLabels instead."
|
|
3746
|
-
},
|
|
3747
|
-
|
|
3748
|
-
}, "issueWarning"),
|
|
3749
|
-
e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) &&
|
|
3750
|
-
}, "checkConfig"),
|
|
3749
|
+
}, kn = {}, An = /* @__PURE__ */ e((e) => {
|
|
3750
|
+
kn[e] || (r.warn(On[e]), kn[e] = !0);
|
|
3751
|
+
}, "issueWarning"), jn = /* @__PURE__ */ e((e) => {
|
|
3752
|
+
e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && An("LAZY_LOAD_DEPRECATED");
|
|
3753
|
+
}, "checkConfig"), Mn = /* @__PURE__ */ e(() => {
|
|
3751
3754
|
let e = {};
|
|
3752
|
-
|
|
3753
|
-
for (let t of X) e =
|
|
3755
|
+
mn && (e = z(e, mn));
|
|
3756
|
+
for (let t of X) e = z(e, t);
|
|
3754
3757
|
return e;
|
|
3755
|
-
}, "getUserDefinedConfig"),
|
|
3758
|
+
}, "getUserDefinedConfig"), Nn = /* @__PURE__ */ e((e) => (e.flowchart?.htmlLabels != null && An("FLOWCHART_HTML_LABELS_DEPRECATED"), pn(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__ */ (() => {
|
|
3756
3759
|
let e = !1;
|
|
3757
3760
|
return () => {
|
|
3758
|
-
e ||= (
|
|
3761
|
+
e ||= (Ln(), !0);
|
|
3759
3762
|
};
|
|
3760
3763
|
})();
|
|
3761
|
-
function
|
|
3764
|
+
function Ln() {
|
|
3762
3765
|
let e = "data-temp-href-target";
|
|
3763
|
-
|
|
3766
|
+
St.addHook("beforeSanitizeAttributes", (t) => {
|
|
3764
3767
|
t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
|
|
3765
|
-
}),
|
|
3768
|
+
}), St.addHook("afterSanitizeAttributes", (t) => {
|
|
3766
3769
|
t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
|
|
3767
3770
|
});
|
|
3768
3771
|
}
|
|
3769
|
-
e(
|
|
3770
|
-
var
|
|
3771
|
-
if (
|
|
3772
|
+
e(Ln, "setupDompurifyHooks");
|
|
3773
|
+
var Rn = /* @__PURE__ */ e((e) => ($(), St.sanitize(e)), "removeScript"), zn = /* @__PURE__ */ e((e, t) => {
|
|
3774
|
+
if (Nn(t)) {
|
|
3772
3775
|
let n = t.securityLevel;
|
|
3773
|
-
n === "antiscript" || n === "strict" || n === "sandbox" ? e =
|
|
3776
|
+
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));
|
|
3774
3777
|
}
|
|
3775
3778
|
return e;
|
|
3776
|
-
}, "sanitizeMore"),
|
|
3779
|
+
}, "sanitizeMore"), Bn = /* @__PURE__ */ e((e, t) => e && (e = t.dompurifyConfig ? St.sanitize(zn(e, t), t.dompurifyConfig).toString() : St.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) => {
|
|
3777
3780
|
let t = "";
|
|
3778
3781
|
return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
|
|
3779
|
-
}, "getUrl"),
|
|
3782
|
+
}, "getUrl"), qn = /* @__PURE__ */ e(function(...e) {
|
|
3780
3783
|
let t = e.filter((e) => !isNaN(e));
|
|
3781
3784
|
return Math.max(...t);
|
|
3782
|
-
}, "getMax"),
|
|
3785
|
+
}, "getMax"), Jn = /* @__PURE__ */ e(function(...e) {
|
|
3783
3786
|
let t = e.filter((e) => !isNaN(e));
|
|
3784
3787
|
return Math.min(...t);
|
|
3785
|
-
}, "getMin"),
|
|
3788
|
+
}, "getMin"), Yn = /* @__PURE__ */ e(function(e) {
|
|
3786
3789
|
let t = e.split(/(,)/), n = [];
|
|
3787
3790
|
for (let e = 0; e < t.length; e++) {
|
|
3788
3791
|
let r = t[e];
|
|
3789
3792
|
if (r === "," && e > 0 && e + 1 < t.length) {
|
|
3790
3793
|
let i = t[e - 1], a = t[e + 1];
|
|
3791
|
-
|
|
3794
|
+
Zn(i, a) && (r = i + "," + a, e++, n.pop());
|
|
3792
3795
|
}
|
|
3793
|
-
n.push(
|
|
3796
|
+
n.push(Qn(r));
|
|
3794
3797
|
}
|
|
3795
3798
|
return n.join("");
|
|
3796
|
-
}, "parseGenericTypes"),
|
|
3797
|
-
let n =
|
|
3799
|
+
}, "parseGenericTypes"), Xn = /* @__PURE__ */ e((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), Zn = /* @__PURE__ */ e((e, t) => {
|
|
3800
|
+
let n = Xn(e, "~"), r = Xn(t, "~");
|
|
3798
3801
|
return n === 1 && r === 1;
|
|
3799
|
-
}, "shouldCombineSets"),
|
|
3800
|
-
let t =
|
|
3802
|
+
}, "shouldCombineSets"), Qn = /* @__PURE__ */ e((e) => {
|
|
3803
|
+
let t = Xn(e, "~"), n = !1;
|
|
3801
3804
|
if (t <= 1) return e;
|
|
3802
3805
|
t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
|
|
3803
3806
|
let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
|
|
3804
3807
|
for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
|
|
3805
3808
|
return n && r.unshift("~"), r.join("");
|
|
3806
|
-
}, "processSet"),
|
|
3809
|
+
}, "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) => {
|
|
3807
3810
|
let n = document.createElement("div");
|
|
3808
|
-
n.innerHTML = await
|
|
3811
|
+
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);
|
|
3809
3812
|
let r = {
|
|
3810
3813
|
width: n.clientWidth,
|
|
3811
3814
|
height: n.clientHeight
|
|
3812
3815
|
};
|
|
3813
3816
|
return n.remove(), r;
|
|
3814
|
-
}, "calculateMathMLDimensions"),
|
|
3815
|
-
if (!
|
|
3816
|
-
if (!(
|
|
3817
|
+
}, "calculateMathMLDimensions"), rr = /* @__PURE__ */ e(async (e, t) => {
|
|
3818
|
+
if (!tr(e)) return e;
|
|
3819
|
+
if (!($n() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(er, "MathML is unsupported in this environment.");
|
|
3817
3820
|
{
|
|
3818
|
-
let { default: n } = await import("./katex-
|
|
3819
|
-
return e.split(
|
|
3821
|
+
let { default: n } = await import("./katex-BOYcAQ2I.js").then((e) => e.n), r = t.forceLegacyMathML || !$n() && t.legacyMathML ? "htmlAndMathml" : "mathml";
|
|
3822
|
+
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, {
|
|
3820
3823
|
throwOnError: !0,
|
|
3821
3824
|
displayMode: !0,
|
|
3822
3825
|
output: r
|
|
3823
3826
|
}).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
|
|
3824
3827
|
}
|
|
3825
|
-
}, "renderKatexUnsanitized"),
|
|
3826
|
-
getRows:
|
|
3827
|
-
sanitizeText:
|
|
3828
|
-
sanitizeTextOrArray:
|
|
3829
|
-
hasBreaks:
|
|
3830
|
-
splitBreaks:
|
|
3831
|
-
lineBreakRegex:
|
|
3832
|
-
removeScript:
|
|
3833
|
-
getUrl:
|
|
3834
|
-
evaluate:
|
|
3835
|
-
getMax:
|
|
3836
|
-
getMin:
|
|
3837
|
-
},
|
|
3828
|
+
}, "renderKatexUnsanitized"), ir = /* @__PURE__ */ e(async (e, t) => Bn(await rr(e, t), t), "renderKatexSanitized"), ar = {
|
|
3829
|
+
getRows: In,
|
|
3830
|
+
sanitizeText: Bn,
|
|
3831
|
+
sanitizeTextOrArray: Vn,
|
|
3832
|
+
hasBreaks: Hn,
|
|
3833
|
+
splitBreaks: Un,
|
|
3834
|
+
lineBreakRegex: Pn,
|
|
3835
|
+
removeScript: Rn,
|
|
3836
|
+
getUrl: Kn,
|
|
3837
|
+
evaluate: pn,
|
|
3838
|
+
getMax: qn,
|
|
3839
|
+
getMin: Jn
|
|
3840
|
+
}, or = /* @__PURE__ */ e(function(e, t) {
|
|
3838
3841
|
for (let n of t) e.attr(n[0], n[1]);
|
|
3839
|
-
}, "d3Attrs"),
|
|
3842
|
+
}, "d3Attrs"), sr = /* @__PURE__ */ e(function(e, t, n) {
|
|
3840
3843
|
let r = /* @__PURE__ */ new Map();
|
|
3841
3844
|
return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
|
|
3842
|
-
}, "calculateSvgSizeAttrs"),
|
|
3843
|
-
|
|
3844
|
-
}, "configureSvgSize"),
|
|
3845
|
+
}, "calculateSvgSizeAttrs"), cr = /* @__PURE__ */ e(function(e, t, n, r) {
|
|
3846
|
+
or(e, sr(t, n, r));
|
|
3847
|
+
}, "configureSvgSize"), lr = /* @__PURE__ */ e(function(e, t, n, i) {
|
|
3845
3848
|
let a = t.node().getBBox(), o = a.width, s = a.height;
|
|
3846
3849
|
r.info(`SVG bounds: ${o}x${s}`, a);
|
|
3847
3850
|
let c = 0, l = 0;
|
|
3848
|
-
r.info(`Graph bounds: ${c}x${l}`, e), c = o + n * 2, l = s + n * 2, r.info(`Calculated bounds: ${c}x${l}`),
|
|
3851
|
+
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
3852
|
let u = `${a.x - n} ${a.y - n} ${a.width + 2 * n} ${a.height + 2 * n}`;
|
|
3850
3853
|
t.attr("viewBox", u);
|
|
3851
|
-
}, "setupGraphViewbox"),
|
|
3852
|
-
function
|
|
3854
|
+
}, "setupGraphViewbox"), ur = {};
|
|
3855
|
+
function dr(e) {
|
|
3853
3856
|
return [...e.cssRules].map((e) => e.cssText).join("\n");
|
|
3854
3857
|
}
|
|
3855
|
-
e(
|
|
3856
|
-
var
|
|
3858
|
+
e(dr, "cssStyleSheetToString");
|
|
3859
|
+
var fr = /* @__PURE__ */ e((e, t, n, i) => {
|
|
3857
3860
|
let a = "";
|
|
3858
|
-
return e in
|
|
3861
|
+
return e in ur && ur[e] ? a = ur[e]({
|
|
3859
3862
|
...n,
|
|
3860
3863
|
svgId: i
|
|
3861
3864
|
}) : r.warn(`No theme found for ${e}`), `& {
|
|
@@ -3980,32 +3983,32 @@ var lr = /* @__PURE__ */ e((e, t, n, i) => {
|
|
|
3980
3983
|
|
|
3981
3984
|
${t}
|
|
3982
3985
|
`;
|
|
3983
|
-
}, "getStyles"),
|
|
3984
|
-
t !== void 0 && (
|
|
3985
|
-
}, "addStylesForDiagram"),
|
|
3986
|
-
t(
|
|
3987
|
-
clear: () =>
|
|
3988
|
-
getAccDescription: () =>
|
|
3989
|
-
getAccTitle: () =>
|
|
3990
|
-
getDiagramTitle: () =>
|
|
3991
|
-
setAccDescription: () =>
|
|
3992
|
-
setAccTitle: () =>
|
|
3993
|
-
setDiagramTitle: () =>
|
|
3986
|
+
}, "getStyles"), pr = /* @__PURE__ */ e((e, t) => {
|
|
3987
|
+
t !== void 0 && (ur[e] = t);
|
|
3988
|
+
}, "addStylesForDiagram"), mr = fr, hr = {};
|
|
3989
|
+
t(hr, {
|
|
3990
|
+
clear: () => br,
|
|
3991
|
+
getAccDescription: () => wr,
|
|
3992
|
+
getAccTitle: () => Sr,
|
|
3993
|
+
getDiagramTitle: () => Er,
|
|
3994
|
+
setAccDescription: () => Cr,
|
|
3995
|
+
setAccTitle: () => xr,
|
|
3996
|
+
setDiagramTitle: () => Tr
|
|
3994
3997
|
});
|
|
3995
|
-
var
|
|
3996
|
-
|
|
3997
|
-
}, "clear"),
|
|
3998
|
-
|
|
3999
|
-
}, "setAccTitle"),
|
|
4000
|
-
|
|
4001
|
-
}, "setAccDescription"),
|
|
4002
|
-
|
|
4003
|
-
}, "setDiagramTitle"),
|
|
4004
|
-
|
|
4005
|
-
}, "registerDiagram"),
|
|
4006
|
-
if (e in
|
|
4007
|
-
throw new
|
|
4008
|
-
}, "getDiagram"),
|
|
3998
|
+
var gr = "", _r = "", vr = "", yr = /* @__PURE__ */ e((e) => Bn(e, wn()), "sanitizeText"), br = /* @__PURE__ */ e(() => {
|
|
3999
|
+
gr = "", vr = "", _r = "";
|
|
4000
|
+
}, "clear"), xr = /* @__PURE__ */ e((e) => {
|
|
4001
|
+
gr = yr(e).replace(/^\s+/g, "");
|
|
4002
|
+
}, "setAccTitle"), Sr = /* @__PURE__ */ e(() => gr, "getAccTitle"), Cr = /* @__PURE__ */ e((e) => {
|
|
4003
|
+
vr = yr(e).replace(/\n\s+/g, "\n");
|
|
4004
|
+
}, "setAccDescription"), wr = /* @__PURE__ */ e(() => vr, "getAccDescription"), Tr = /* @__PURE__ */ e((e) => {
|
|
4005
|
+
_r = yr(e);
|
|
4006
|
+
}, "setDiagramTitle"), Er = /* @__PURE__ */ e(() => _r, "getDiagramTitle"), Dr = r, Or = n, kr = wn, Ar = Cn, jr = J, Mr = /* @__PURE__ */ e((e) => Bn(e, kr()), "sanitizeText"), Nr = lr, Pr = /* @__PURE__ */ e(() => hr, "getCommonDb"), Fr = {}, Ir = /* @__PURE__ */ e((e, t, n) => {
|
|
4007
|
+
Fr[e] && Dr.warn(`Diagram with id ${e} already registered. Overwriting.`), Fr[e] = t, n && kt(e, n), pr(e, t.styles), t.injectUtils?.(Dr, Or, kr, Mr, Nr, Pr(), () => {});
|
|
4008
|
+
}, "registerDiagram"), Lr = /* @__PURE__ */ e((e) => {
|
|
4009
|
+
if (e in Fr) return Fr[e];
|
|
4010
|
+
throw new Rr(e);
|
|
4011
|
+
}, "getDiagram"), Rr = class extends Error {
|
|
4009
4012
|
static {
|
|
4010
4013
|
e(this, "DiagramNotFoundError");
|
|
4011
4014
|
}
|
|
@@ -4014,4 +4017,4 @@ var pr = "", mr = "", hr = "", gr = /* @__PURE__ */ e((e) => Ln(e, Q()), "saniti
|
|
|
4014
4017
|
}
|
|
4015
4018
|
};
|
|
4016
4019
|
//#endregion
|
|
4017
|
-
export {
|
|
4020
|
+
export { xn as $, Pn as A, Mr as B, Er as C, Kn as D, Rt as E, ir as F, Ar as G, Cr as H, Dn as I, yn as J, vn as K, q as L, Yn as M, Ir as N, Mn as O, Ot as P, G as Q, cn as R, At 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, h as at, kr as b, cr as c, jr as d, St as et, nn as f, pn as g, Ct as h, nr as i, _ as it, Et as j, tr as k, dr as l, R as m, En as n, y as nt, hr as o, m as ot, Dt as p, Tr as q, z as r, v as rt, ar as s, a as st, L as t, b as tt, J as u, Sr as v, Nn as w, Lr as x, wn as y, Bn as z };
|