@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.
Files changed (290) hide show
  1. package/dist/{CodeEditor-Cb6i9oIs.cjs → CodeEditor-B699PZlx.cjs} +1 -1
  2. package/dist/{CodeEditor-2Vx8PHAy.js → CodeEditor-CxKTvrhG.js} +5 -5
  3. package/dist/PdfViewer-COOgvLyp.js +428 -0
  4. package/dist/PdfViewer-Dyou2VMw.cjs +1 -0
  5. package/dist/{abnfDiagram-WEYOIA3C-B2ss_Vsq.js → abnfDiagram-WEYOIA3C-B_dTFm2g.js} +5 -5
  6. package/dist/{abnfDiagram-WEYOIA3C-DMn87p58.cjs → abnfDiagram-WEYOIA3C-Dk2VD3Iw.cjs} +1 -1
  7. package/dist/{arc-CLGGhOeW.js → arc-37kcMiGl.js} +1 -1
  8. package/dist/{arc-Dh2Zrypi.cjs → arc-C7P0rHQr.cjs} +1 -1
  9. package/dist/architecture-WOLXFQ4H-Dg4VU8sZ.js +2 -0
  10. package/dist/architecture-WOLXFQ4H-u_y_0ZVC.cjs +1 -0
  11. package/dist/architectureDiagram-ZHVYKT53-Bud-mHjo.cjs +36 -0
  12. package/dist/{architectureDiagram-ZHVYKT53-C5QppHvM.js → architectureDiagram-ZHVYKT53-CslNYmQN.js} +48 -64
  13. package/dist/{blockDiagram-RJAE7QA3-DOvlohR9.js → blockDiagram-RJAE7QA3-Dgm9J6pS.js} +27 -38
  14. package/dist/{blockDiagram-RJAE7QA3-CODM9GdZ.cjs → blockDiagram-RJAE7QA3-lEBn-_Yn.cjs} +2 -2
  15. package/dist/{c4Diagram-XDPPPE54-eTVK3Kzy.cjs → c4Diagram-XDPPPE54-BKNqVY-U.cjs} +1 -1
  16. package/dist/{c4Diagram-XDPPPE54-8dwnUpAO.js → c4Diagram-XDPPPE54-rbzhqhW5.js} +8 -8
  17. package/dist/channel-AESWk0Yw.cjs +1 -0
  18. package/dist/{channel-B1lf-ehw.js → channel-CEoRf1uz.js} +1 -1
  19. package/dist/{chunk-2E7WHVMD-DkV-cet-.cjs → chunk-2E7WHVMD-BNsJOdNP.cjs} +1 -1
  20. package/dist/{chunk-2E7WHVMD-Dg_Sckag.js → chunk-2E7WHVMD-Vo-POJc_.js} +3 -3
  21. package/dist/{chunk-4EMNKR2T-C2XrT3x_.js → chunk-4EMNKR2T-BIO9veC4.js} +1 -1
  22. package/dist/{chunk-4EMNKR2T-DfeN909d.cjs → chunk-4EMNKR2T-CGAdq4EA.cjs} +1 -1
  23. package/dist/{chunk-55XCU76K-d9D4PS_7.cjs → chunk-55XCU76K-IpMfjRYv.cjs} +1 -1
  24. package/dist/{chunk-55XCU76K-CADZXRVb.js → chunk-55XCU76K-o8OgDLPD.js} +3 -3
  25. package/dist/{chunk-7S6XSTFO-DV8etStf.js → chunk-7S6XSTFO-DrDRohsE.js} +4 -4
  26. package/dist/{chunk-7S6XSTFO-DJ37SdG5.cjs → chunk-7S6XSTFO-ejBVk-tI.cjs} +1 -1
  27. package/dist/{chunk-AQDTSKZB-DElrkKED.cjs → chunk-AQDTSKZB-B-MpZ-y2.cjs} +7 -7
  28. package/dist/{chunk-AQDTSKZB-CUCC855j.js → chunk-AQDTSKZB-DUZx386i.js} +14 -73
  29. package/dist/chunk-DSNLSHJZ-BxQ7lMXY.cjs +129 -0
  30. package/dist/{chunk-DSNLSHJZ-Bicto10E.js → chunk-DSNLSHJZ-DPpiuUZK.js} +627 -624
  31. package/dist/{chunk-HAGFOTED-Dykk1LyE.cjs → chunk-HAGFOTED-BUPxFGdn.cjs} +1 -1
  32. package/dist/{chunk-HAGFOTED-BjDmRfgG.js → chunk-HAGFOTED-ceXO12G4.js} +6 -6
  33. package/dist/{chunk-HNE4Q36P-C-j5Nn9f.cjs → chunk-HNE4Q36P-CCHAgwa3.cjs} +1 -1
  34. package/dist/{chunk-HNE4Q36P-5u7dvjgt.js → chunk-HNE4Q36P-uON_vFhT.js} +6 -6
  35. package/dist/{chunk-NGNAAXSQ-kHtfTQLE.cjs → chunk-NGNAAXSQ-BaBpWF2S.cjs} +6 -6
  36. package/dist/{chunk-NGNAAXSQ-DM0DL2MX.js → chunk-NGNAAXSQ-uUWLDjAm.js} +46 -50
  37. package/dist/{chunk-NQOKRVIF-CpOc5MEh.cjs → chunk-NQOKRVIF-DcZqKWzv.cjs} +1 -1
  38. package/dist/{chunk-NQOKRVIF-DUgN94ic.js → chunk-NQOKRVIF-DmOxzSOQ.js} +9 -9
  39. package/dist/{chunk-UHW7PFBP-NbzzxkEP.js → chunk-UHW7PFBP-BTk1ZC8L.js} +1 -1
  40. package/dist/{chunk-UHW7PFBP-SZ8KvGM0.cjs → chunk-UHW7PFBP-Bays5Zi8.cjs} +1 -1
  41. package/dist/{chunk-VQ5W62QI-D3c9tcDC.js → chunk-VQ5W62QI-Bvcxpp51.js} +2 -2
  42. package/dist/{chunk-VQ5W62QI-CsW6i5Ev.cjs → chunk-VQ5W62QI-Dw9Kffnl.cjs} +1 -1
  43. package/dist/{chunk-WQQL4CDK-l3Yf4SAX.js → chunk-WQQL4CDK-C3yDIFZ3.js} +8 -8
  44. package/dist/{chunk-WQQL4CDK-TvwGUFeE.cjs → chunk-WQQL4CDK-DxEEyQzx.cjs} +1 -1
  45. package/dist/{chunk-XXDRQBXY-IzhWXllg.js → chunk-XXDRQBXY-CNtMgRT_.js} +1 -1
  46. package/dist/{chunk-XXDRQBXY-yMT3rT5Y.cjs → chunk-XXDRQBXY-DfReYcER.cjs} +1 -1
  47. package/dist/{chunk-YZO67HFG-CLf5aoHk.cjs → chunk-YZO67HFG-DCQIFG8j.cjs} +1 -1
  48. package/dist/{chunk-YZO67HFG-DWHo0c6-.js → chunk-YZO67HFG-WF3jklBn.js} +2 -2
  49. package/dist/{chunk-ZAUX2LTX-BwjEPfG0.cjs → chunk-ZAUX2LTX-DIQkgUFr.cjs} +1 -1
  50. package/dist/{chunk-ZAUX2LTX-COHXRsvU.js → chunk-ZAUX2LTX-P8LAwm_U.js} +3 -3
  51. package/dist/{chunk-ZCHMQSOR-Cw-9SNln.js → chunk-ZCHMQSOR-BbO7eY2w.js} +78 -80
  52. package/dist/chunk-ZCHMQSOR-Cg8zPt0w.cjs +1 -0
  53. package/dist/{classDiagram-v2-4MYWR3UA-vsmkJ0Cx.js → classDiagram-v2-4MYWR3UA-DIjHIULx.js} +16 -16
  54. package/dist/{classDiagram-v2-4MYWR3UA-wLbwKHvU.cjs → classDiagram-v2-4MYWR3UA-DyMM0DMP.cjs} +2 -2
  55. package/dist/{clike-8rZWBES0.cjs → clike-I-fVVl3d.cjs} +1 -1
  56. package/dist/{clike-D-dOQnrm.js → clike-VB7owi7S.js} +1 -5
  57. package/dist/{conversationExport-BmvGyAf-.cjs → conversationExport-Co-E1-fF.cjs} +1 -1
  58. package/dist/{conversationExport-CBiBLWVk.js → conversationExport-KyCOByU5.js} +7 -8
  59. package/dist/conversationHistory-BYekdNUk.cjs +31 -0
  60. package/dist/conversationHistory-DPZF00Qz.js +21639 -0
  61. package/dist/{core-D_MCdR2m.js → core-BGZbe1UJ.js} +2 -6
  62. package/dist/{core-BrupIPpc.cjs → core-CmCLKhYZ.cjs} +2 -2
  63. package/dist/{cose-bilkent-JH36ORCC-qPjrc3_9.js → cose-bilkent-JH36ORCC-DjbvRWCz.js} +58 -71
  64. package/dist/cose-bilkent-JH36ORCC-KeNQ2SMA.cjs +1 -0
  65. package/dist/cynefin-EF2NZ3EQ-BBhIrDKD.cjs +1 -0
  66. package/dist/cynefin-EF2NZ3EQ-DDZjUykJ.js +2 -0
  67. package/dist/{cynefinDiagram-WF24UDRP-CHBmFbqk.cjs → cynefinDiagram-WF24UDRP-BC09SRT2.cjs} +1 -1
  68. package/dist/{cynefinDiagram-WF24UDRP-BhWkOxCi.js → cynefinDiagram-WF24UDRP-DEFG-MNh.js} +5 -5
  69. package/dist/cytoscape.esm-BN8NndIc.cjs +321 -0
  70. package/dist/{cytoscape.esm-Cq7KPj0t.js → cytoscape.esm-BmhLauwj.js} +412 -513
  71. package/dist/dagre-NK4GIZVX-D0_oLrA9.cjs +4 -0
  72. package/dist/{dagre-NK4GIZVX-CJfLDa-C.js → dagre-NK4GIZVX-D6Xuc_Nw.js} +43 -47
  73. package/dist/{diagram-CBK3MWTC-2pAHlnGJ.js → diagram-CBK3MWTC-CuUrHQAz.js} +7 -7
  74. package/dist/{diagram-CBK3MWTC-B_5GBGbb.cjs → diagram-CBK3MWTC-DbXGbFMz.cjs} +1 -1
  75. package/dist/{diagram-I5XIIV2D-CQ_Y9NJs.js → diagram-I5XIIV2D-DbwsxgDf.js} +5 -5
  76. package/dist/{diagram-I5XIIV2D-BPxYY-Kp.cjs → diagram-I5XIIV2D-Dom9usNq.cjs} +1 -1
  77. package/dist/{diagram-ODIL2UCW-pyDNtrY0.cjs → diagram-ODIL2UCW-CLSAtgxG.cjs} +2 -2
  78. package/dist/{diagram-ODIL2UCW-BJL-7QWJ.js → diagram-ODIL2UCW-CSnuo9bJ.js} +7 -15
  79. package/dist/{diagram-PFBEJUXE-CXd3x3TA.js → diagram-PFBEJUXE-ChA6KYWw.js} +6 -6
  80. package/dist/{diagram-PFBEJUXE-BUvTWvw5.cjs → diagram-PFBEJUXE-DAIw33Bx.cjs} +1 -1
  81. package/dist/{diagram-RJA3I4VV-T3Hd1koB.cjs → diagram-RJA3I4VV-Bt-BxYua.cjs} +1 -1
  82. package/dist/{diagram-RJA3I4VV-eMNhs7pW.js → diagram-RJA3I4VV-DCygetH_.js} +5 -5
  83. package/dist/{diagram-TYUNFSNR-CWpFSB2K.js → diagram-TYUNFSNR-BSq4ni3b.js} +22 -35
  84. package/dist/diagram-TYUNFSNR-Dy2nkVin.cjs +200 -0
  85. package/dist/{dist-Dvqp7T4I.cjs → dist-2ynRxsSC.cjs} +1 -1
  86. package/dist/{dist-B7I27gkN.cjs → dist-AeGgfThs.cjs} +1 -1
  87. package/dist/{dist-Dwv2VYAL.cjs → dist-BB5r6V4R.cjs} +1 -1
  88. package/dist/{dist-BvsCdwbL.cjs → dist-BDenKBYL.cjs} +1 -1
  89. package/dist/{dist-BhXQJ0x3.js → dist-BJHB0x8Y.js} +12 -18
  90. package/dist/{dist-BWlGU9XM.js → dist-BTD5L343.js} +3 -3
  91. package/dist/{dist-Dr4zY56l.js → dist-BWEDf1a-.js} +2 -2
  92. package/dist/{dist-BlD6NhiG.js → dist-BWVp6Da-.js} +4 -7
  93. package/dist/{dist-B8gmxwh-.cjs → dist-C6eKaA9j.cjs} +1 -1
  94. package/dist/{dist-C0_uLrCb.cjs → dist-CCIM600Y.cjs} +1 -1
  95. package/dist/{dist-BZcglaBe.cjs → dist-CFf_g4kk.cjs} +1 -1
  96. package/dist/{dist-DPXHxuWb.js → dist-CGZbBQje.js} +2 -2
  97. package/dist/{dist-Xjm88mbq.js → dist-CIBKGNWD.js} +4 -4
  98. package/dist/{dist-DqbI0un6.cjs → dist-CQNYwGEy.cjs} +1 -1
  99. package/dist/{dist-CyFPTQ2l.cjs → dist-CT7H4C9g.cjs} +1 -1
  100. package/dist/{dist-BBUKMRrs.js → dist-CYUF5YPj.js} +2 -2
  101. package/dist/{dist-DWv23S35.js → dist-CZhfI1u7.js} +1 -1
  102. package/dist/{dist-CHKg1Qb9.js → dist-ChWDi62w.js} +3 -3
  103. package/dist/dist-CmF-TINl.cjs +1 -0
  104. package/dist/{dist-C8jjSrIs.cjs → dist-Cz8GulTe.cjs} +1 -1
  105. package/dist/{dist-qNFo_ASR.cjs → dist-D6LkseRA.cjs} +1 -1
  106. package/dist/{dist-BZjcsPqi.cjs → dist-DEZD35IP.cjs} +7 -7
  107. package/dist/{dist-DZrtSp8H.js → dist-DNg4hNu7.js} +3 -3
  108. package/dist/dist-D_oMTxAl.cjs +2 -0
  109. package/dist/{dist-BfQGuM1r.js → dist-DaJf_JYz.js} +4 -4
  110. package/dist/dist-Dpu_aN4m.cjs +1 -0
  111. package/dist/{dist-CA6ERWRG.js → dist-DszFZlYh.js} +2 -2
  112. package/dist/{dist-qq9a_ch2.js → dist-Kg2QsUg8.js} +4 -4
  113. package/dist/{dist-FSzij9Rn.js → dist-LM11INLG.js} +2 -2
  114. package/dist/{dist-C9dtxVRR.cjs → dist-M4fo1U45.cjs} +1 -1
  115. package/dist/{dist-BhNvvg0I.js → dist-gn9y7Yb8.js} +116 -119
  116. package/dist/{dist-B0lO3k1f.js → dist-hv72z6I6.js} +3 -3
  117. package/dist/{dist-Bppoi_v9.js → dist-lPCEVnGX.js} +2 -2
  118. package/dist/{dist-D8I4FQ-Q.cjs → dist-rfjaCa2V.cjs} +1 -1
  119. package/dist/{docxExport-BGYavEI-.js → docxExport-DpgcioIA.js} +2 -2
  120. package/dist/{docxExport-B24fOHFl.cjs → docxExport-ZYp4tZ7k.cjs} +1 -1
  121. package/dist/{ebnfDiagram-V4P3TTPT-DAoJZ85k.cjs → ebnfDiagram-V4P3TTPT-6xhHNshj.cjs} +1 -1
  122. package/dist/{ebnfDiagram-V4P3TTPT-B7cCNP3X.js → ebnfDiagram-V4P3TTPT-e4I3Otpa.js} +5 -5
  123. package/dist/{elk-QONTBCTQ-BYnAuRAH.js → elk-QONTBCTQ-B8RYU1Ay.js} +746 -1241
  124. package/dist/elk-QONTBCTQ-hBYUI6Nr.cjs +27 -0
  125. package/dist/{erDiagram-KYQIGQAA-BKkxORU3.js → erDiagram-KYQIGQAA-BTNANm6p.js} +14 -14
  126. package/dist/{erDiagram-KYQIGQAA-BIlejnVi.cjs → erDiagram-KYQIGQAA-DsqyoDOz.cjs} +1 -1
  127. package/dist/eventmodeling-K75KTNOO-Ckh9Djrw.js +2 -0
  128. package/dist/eventmodeling-K75KTNOO-DKYlYG2c.cjs +1 -0
  129. package/dist/flowDiagram-IUGLLWBU-BJlVRCj8.js +15 -0
  130. package/dist/flowDiagram-IUGLLWBU-CsC_IEV_.cjs +1 -0
  131. package/dist/{ganttDiagram-R7GPNTJY-BGcXo1KA.cjs → ganttDiagram-R7GPNTJY-B1juClwW.cjs} +2 -2
  132. package/dist/{ganttDiagram-R7GPNTJY-dcubAqZI.js → ganttDiagram-R7GPNTJY-CEGQ6hzi.js} +18 -26
  133. package/dist/gitGraph-VSP46ZUC-5x2CrP9e.js +2 -0
  134. package/dist/gitGraph-VSP46ZUC-Cgx_wrMl.cjs +1 -0
  135. package/dist/{gitGraphDiagram-PDYL7XHY-BoJsALki.cjs → gitGraphDiagram-PDYL7XHY-6cCNinUi.cjs} +1 -1
  136. package/dist/{gitGraphDiagram-PDYL7XHY-CfRYMd3w.js → gitGraphDiagram-PDYL7XHY-D_ADFBrL.js} +4 -4
  137. package/dist/info-OHQRW6UA-DDzA9eXN.cjs +1 -0
  138. package/dist/info-OHQRW6UA-DkaWmfEE.js +2 -0
  139. package/dist/{infoDiagram-MVDRKAX5-B1QBSTSo.cjs → infoDiagram-MVDRKAX5-CVeFOzof.cjs} +1 -1
  140. package/dist/{infoDiagram-MVDRKAX5-BYGrp2QT.js → infoDiagram-MVDRKAX5-Dkuw3h5s.js} +4 -4
  141. package/dist/{ishikawaDiagram-HPEHV2GE-BWJo3pFM.cjs → ishikawaDiagram-HPEHV2GE-92CAbMpi.cjs} +2 -2
  142. package/dist/{ishikawaDiagram-HPEHV2GE-C32LoFQd.js → ishikawaDiagram-HPEHV2GE-oTSoKUOA.js} +5 -7
  143. package/dist/{javascript-CIP6I0eT.js → javascript-BSRoJWCv.js} +1 -8
  144. package/dist/javascript-B_OkdA1F.cjs +1 -0
  145. package/dist/{journeyDiagram-BOSHW7O7-DJ9OKW8H.js → journeyDiagram-BOSHW7O7-CMbGxPLA.js} +4 -4
  146. package/dist/{journeyDiagram-BOSHW7O7-090H5NM8.cjs → journeyDiagram-BOSHW7O7-Cb_yTQWF.cjs} +1 -1
  147. package/dist/{kanban-definition-FNSA4HC5-BhC2u-9L.cjs → kanban-definition-FNSA4HC5-DlUMoAIT.cjs} +1 -1
  148. package/dist/{kanban-definition-FNSA4HC5-FqIvMKJw.js → kanban-definition-FNSA4HC5-DzEQcVPw.js} +10 -10
  149. package/dist/{katex-DTnCNBYg.js → katex-BOYcAQ2I.js} +17 -26
  150. package/dist/{katex-DBUQi-HZ.cjs → katex-C-T_oEhv.cjs} +5 -5
  151. package/dist/lib-CRTt_FoR.cjs +26 -0
  152. package/dist/{lib-DILNlJGg.js → lib-CSMo4o20.js} +1522 -1452
  153. package/dist/{line-CJjnW4T-.js → line-0VTxwDiV.js} +1 -1
  154. package/dist/{line-DjYp3Ff8.cjs → line-ZwhMGa3_.cjs} +1 -1
  155. package/dist/linear-Bh2vuvAF.cjs +1 -0
  156. package/dist/{linear-DVFZQF4V.js → linear-CxE0kir0.js} +2 -3
  157. package/dist/{loadReferencedImage-CkvnSeQi.js → loadReferencedImage-2qNdVVhQ.js} +2 -2
  158. package/dist/{loadReferencedImage-CHTgZKAP.cjs → loadReferencedImage-qVqyIGz2.cjs} +1 -1
  159. package/dist/mermaid-parser.core-DKJw9lm9.cjs +6 -0
  160. package/dist/{mermaid-parser.core-CI12FMcX.js → mermaid-parser.core-IoY9gmm6.js} +19 -25
  161. package/dist/{mermaid.core-2PafqU96.cjs → mermaid.core-73kk5oPm.cjs} +7 -7
  162. package/dist/{mermaid.core-BxQmR6RW.js → mermaid.core-C8dp1dnD.js} +69 -75
  163. package/dist/{mermaidToImage-DowDuCUe.js → mermaidToImage-B2aJB9x8.js} +4900 -2274
  164. package/dist/mermaidToImage-qujM0Ggp.cjs +28 -0
  165. package/dist/{mindmap-definition-6OY57UG3-C0JXAaiI.js → mindmap-definition-6OY57UG3-CXobmoZM.js} +13 -13
  166. package/dist/{mindmap-definition-6OY57UG3-QMaMZxqJ.cjs → mindmap-definition-6OY57UG3-DLx3d1V6.cjs} +1 -1
  167. package/dist/packet-JDAUHWVQ-7Kdl1aNj.js +2 -0
  168. package/dist/packet-JDAUHWVQ-BB_DuPiR.cjs +1 -0
  169. package/dist/{pdf-D6MygsxO.js → pdf-CL7gVGT1.js} +3278 -3383
  170. package/dist/pdf-HcLHRelN.cjs +54 -0
  171. package/dist/{pegDiagram-ECIUJNBX-agFLe55J.cjs → pegDiagram-ECIUJNBX-B-eSDSQK.cjs} +1 -1
  172. package/dist/{pegDiagram-ECIUJNBX-BluDPMz-.js → pegDiagram-ECIUJNBX-ODBWqs1V.js} +5 -5
  173. package/dist/pi-outpost-embed.cjs +15 -15
  174. package/dist/pi-outpost-embed.js +160 -325
  175. package/dist/pie-XZMESJXO-CxP1ntAS.cjs +1 -0
  176. package/dist/pie-XZMESJXO-vkOzPeYA.js +2 -0
  177. package/dist/{pieDiagram-GNMPY74T-Bkt6LXIr.cjs → pieDiagram-GNMPY74T-BtYyKCrf.cjs} +1 -1
  178. package/dist/{pieDiagram-GNMPY74T-D2Dlw9oL.js → pieDiagram-GNMPY74T-DYDC5z2D.js} +7 -7
  179. package/dist/{quadrantDiagram-D57K4MC3-vbdBbRAF.js → quadrantDiagram-D57K4MC3-BfQWcg-D.js} +3 -3
  180. package/dist/{quadrantDiagram-D57K4MC3-BwUPO-ri.cjs → quadrantDiagram-D57K4MC3-Cu6JmzPE.cjs} +1 -1
  181. package/dist/radar-ABXABTNO-BIDY5R4F.cjs +1 -0
  182. package/dist/radar-ABXABTNO-DvS23EDt.js +2 -0
  183. package/dist/railroad-I3PHUGI6-BRbLa2w3.cjs +1 -0
  184. package/dist/railroad-I3PHUGI6-DH5Ttw2P.js +2 -0
  185. package/dist/railroad-abnf-LNEFI6M7-Qj3WuV4C.cjs +1 -0
  186. package/dist/railroad-abnf-LNEFI6M7-wA0DIfJr.js +2 -0
  187. package/dist/railroad-ebnf-DWYD2UWJ-C7YCjuXb.cjs +1 -0
  188. package/dist/railroad-ebnf-DWYD2UWJ-CkakbyYF.js +2 -0
  189. package/dist/railroad-peg-JR7BVNR7-CpVGf7CG.cjs +1 -0
  190. package/dist/railroad-peg-JR7BVNR7-Kw2gXekA.js +2 -0
  191. package/dist/{railroadDiagram-Y72NRBL7-CJ9MP3wV.cjs → railroadDiagram-Y72NRBL7-BdHmqKV_.cjs} +1 -1
  192. package/dist/{railroadDiagram-Y72NRBL7-B2x_q8pa.js → railroadDiagram-Y72NRBL7-ChQwG3mZ.js} +5 -5
  193. package/dist/{requirementDiagram-EQYSW5RA-CP0M11vC.cjs → requirementDiagram-EQYSW5RA-CDQ6Nza1.cjs} +1 -1
  194. package/dist/{requirementDiagram-EQYSW5RA-j7VZ-e65.js → requirementDiagram-EQYSW5RA-Dj4E0fE3.js} +13 -13
  195. package/dist/{rolldown-runtime-DArdT4gl.js → rolldown-runtime-5HNE8Q1r.js} +1 -1
  196. package/dist/rolldown-runtime-DbbDpzbe.cjs +1 -0
  197. package/dist/{sankeyDiagram-SY24JHO5-B7NuxaKG.cjs → sankeyDiagram-SY24JHO5-BPFkmPzT.cjs} +1 -1
  198. package/dist/{sankeyDiagram-SY24JHO5-Cgewgbc8.js → sankeyDiagram-SY24JHO5-luxVW4uf.js} +2 -2
  199. package/dist/{sequenceDiagram-BLEHNHQU-B5THoiqW.cjs → sequenceDiagram-BLEHNHQU-DX51aIRY.cjs} +1 -1
  200. package/dist/{sequenceDiagram-BLEHNHQU-DsjvHcWN.js → sequenceDiagram-BLEHNHQU-H4rQDzp-.js} +6 -6
  201. package/dist/{sizeCapture-INFHLROL-B5Lg3qGn.js → sizeCapture-INFHLROL-Uzko9_4n.js} +1 -1
  202. package/dist/sizeCapture-INFHLROL-bi8MyHwB.cjs +1 -0
  203. package/dist/{src-Dkp7vqs8.js → src-65Lfw03T.js} +12 -18
  204. package/dist/src-BN1VgXwj.cjs +1 -0
  205. package/dist/{stateDiagram-v2-A6IESKWZ-BD0FNkiB.js → stateDiagram-v2-A6IESKWZ-DBJ11U2p.js} +14 -14
  206. package/dist/{stateDiagram-v2-A6IESKWZ-Dqzvdrv1.cjs → stateDiagram-v2-A6IESKWZ-Dbp783Hd.cjs} +1 -1
  207. package/dist/{swimlanes-B3ENRKFQ-Do-xntE9.js → swimlanes-B3ENRKFQ-Bp3vZCmK.js} +38 -60
  208. package/dist/swimlanes-B3ENRKFQ-DY1V--Rq.cjs +1 -0
  209. package/dist/swimlanesDiagram-AYQRV4AK-COavJcG4.js +27 -0
  210. package/dist/swimlanesDiagram-AYQRV4AK-dUd5QjxZ.cjs +8 -0
  211. package/dist/{timeline-definition-JXYKGLGB-Cxi2ay-W.js → timeline-definition-JXYKGLGB-BE6iAj4r.js} +5 -5
  212. package/dist/{timeline-definition-JXYKGLGB-B_QITrmE.cjs → timeline-definition-JXYKGLGB-DKhMPFBi.cjs} +1 -1
  213. package/dist/treeView-D4JQ5SDB-BAXbN8Bf.cjs +1 -0
  214. package/dist/treeView-D4JQ5SDB-BAub6u3e.js +2 -0
  215. package/dist/treemap-SAJKECNS-DlyYa6yd.js +2 -0
  216. package/dist/treemap-SAJKECNS-EjU-hEqB.cjs +1 -0
  217. package/dist/{typescript-C93MG6Zk.js → typescript-4QjI-Ug2.js} +1 -8
  218. package/dist/typescript-CUdTaGTg.cjs +1 -0
  219. package/dist/{usecaseDiagram-WPOLBNNX-_GFZAFdK.cjs → usecaseDiagram-WPOLBNNX-BRWufOTq.cjs} +6 -6
  220. package/dist/{usecaseDiagram-WPOLBNNX-C5u6uogx.js → usecaseDiagram-WPOLBNNX-DY9Md_AG.js} +36 -48
  221. package/dist/{vennDiagram-Q3Y3IDCW-CircfM4o.js → vennDiagram-Q3Y3IDCW-DbPGt27W.js} +4 -4
  222. package/dist/{vennDiagram-Q3Y3IDCW-Bf1i94bS.cjs → vennDiagram-Q3Y3IDCW-NYVHk5sI.cjs} +1 -1
  223. package/dist/wardley-7MLQ67FV-BDYz-MEd.js +2 -0
  224. package/dist/wardley-7MLQ67FV-BdwutaJ8.cjs +1 -0
  225. package/dist/{wardleyDiagram-IVAIDKWA-BOSseRAa.js → wardleyDiagram-IVAIDKWA-BHkJFpfC.js} +5 -5
  226. package/dist/{wardleyDiagram-IVAIDKWA-Cr5LS-u2.cjs → wardleyDiagram-IVAIDKWA-DsYJNlmX.cjs} +1 -1
  227. package/dist/{xychartDiagram-4URNHDU4-DOUN6alM.cjs → xychartDiagram-4URNHDU4-B_g46bSg.cjs} +1 -1
  228. package/dist/{xychartDiagram-4URNHDU4-C4X8LFY4.js → xychartDiagram-4URNHDU4-IvFjWG-y.js} +8 -8
  229. package/package.json +14 -14
  230. package/dist/PdfViewer-BJfC4rzg.js +0 -428
  231. package/dist/PdfViewer-D6C-NAyn.cjs +0 -1
  232. package/dist/architecture-WOLXFQ4H-DupyKILn.cjs +0 -1
  233. package/dist/architecture-WOLXFQ4H-X4ZWxzi-.js +0 -3
  234. package/dist/architectureDiagram-ZHVYKT53-DBfdIpyr.cjs +0 -36
  235. package/dist/channel-BRczbI_M.cjs +0 -1
  236. package/dist/chunk-DSNLSHJZ-DZO9xahH.cjs +0 -129
  237. package/dist/chunk-ZCHMQSOR-7slscxYq.cjs +0 -1
  238. package/dist/conversationHistory-DN1r7WZT.cjs +0 -287
  239. package/dist/conversationHistory-DwB6hasI.js +0 -43647
  240. package/dist/cose-bilkent-JH36ORCC-Cc2qvpLA.cjs +0 -1
  241. package/dist/cynefin-EF2NZ3EQ-BB_WO8YQ.js +0 -3
  242. package/dist/cynefin-EF2NZ3EQ-Du3-s5Z7.cjs +0 -1
  243. package/dist/cytoscape.esm-uHsEX1XI.cjs +0 -321
  244. package/dist/dagre-NK4GIZVX-BI_akQkH.cjs +0 -4
  245. package/dist/diagram-TYUNFSNR-B_p2UHsR.cjs +0 -200
  246. package/dist/dist-DEl2Ze0j.cjs +0 -2
  247. package/dist/dist-DJbgM591.cjs +0 -1
  248. package/dist/dist-Dja2VlN5.cjs +0 -1
  249. package/dist/elk-QONTBCTQ-BDAptnPT.cjs +0 -27
  250. package/dist/eventmodeling-K75KTNOO-CMoz0K5S.js +0 -3
  251. package/dist/eventmodeling-K75KTNOO-DZdZrgwl.cjs +0 -1
  252. package/dist/flowDiagram-IUGLLWBU-BSiCLGuL.cjs +0 -1
  253. package/dist/flowDiagram-IUGLLWBU-DL_I6QCE.js +0 -16
  254. package/dist/gitGraph-VSP46ZUC-DoTshgkY.js +0 -3
  255. package/dist/gitGraph-VSP46ZUC-lawIO6K6.cjs +0 -1
  256. package/dist/info-OHQRW6UA-DPTZOb30.js +0 -3
  257. package/dist/info-OHQRW6UA-deop1PPz.cjs +0 -1
  258. package/dist/javascript-Gn0piXHk.cjs +0 -1
  259. package/dist/lib-BDkAiWI9.cjs +0 -26
  260. package/dist/linear-Nt9BuHfn.cjs +0 -1
  261. package/dist/mermaid-parser.core-BHBS1DqP.cjs +0 -6
  262. package/dist/mermaidToImage-CSR5Vyvs.cjs +0 -25
  263. package/dist/packet-JDAUHWVQ-Bcik24Kz.js +0 -3
  264. package/dist/packet-JDAUHWVQ-CrY7ylWJ.cjs +0 -1
  265. package/dist/pdf-BcvU2rBV.cjs +0 -54
  266. package/dist/pie-XZMESJXO-BYQC-ufi.js +0 -3
  267. package/dist/pie-XZMESJXO-WjCBboSE.cjs +0 -1
  268. package/dist/radar-ABXABTNO-BoQ7hH7Z.cjs +0 -1
  269. package/dist/radar-ABXABTNO-MxbyaZja.js +0 -3
  270. package/dist/railroad-I3PHUGI6-DckUArT-.js +0 -3
  271. package/dist/railroad-I3PHUGI6-DuGTlHry.cjs +0 -1
  272. package/dist/railroad-abnf-LNEFI6M7-DmAJaMEu.js +0 -3
  273. package/dist/railroad-abnf-LNEFI6M7-DoWf9u55.cjs +0 -1
  274. package/dist/railroad-ebnf-DWYD2UWJ-Bf05ZyW1.cjs +0 -1
  275. package/dist/railroad-ebnf-DWYD2UWJ-CS2AUYSv.js +0 -3
  276. package/dist/railroad-peg-JR7BVNR7-B-nctVbV.js +0 -3
  277. package/dist/railroad-peg-JR7BVNR7-CcV5KH4m.cjs +0 -1
  278. package/dist/rolldown-runtime-DF3sbh8G.cjs +0 -1
  279. package/dist/sizeCapture-INFHLROL-bJ2ZX4Du.cjs +0 -1
  280. package/dist/src-D9o9TOtH.cjs +0 -1
  281. package/dist/swimlanes-B3ENRKFQ-DEsfJ_Va.cjs +0 -1
  282. package/dist/swimlanesDiagram-AYQRV4AK-CU4USE4p.cjs +0 -8
  283. package/dist/swimlanesDiagram-AYQRV4AK-ora_Y3LB.js +0 -27
  284. package/dist/treeView-D4JQ5SDB-C3ticT1s.cjs +0 -1
  285. package/dist/treeView-D4JQ5SDB-CEuRf8gK.js +0 -3
  286. package/dist/treemap-SAJKECNS-BwIfwvl-.cjs +0 -1
  287. package/dist/treemap-SAJKECNS-DiC0668-.js +0 -3
  288. package/dist/typescript-BarIi8q9.cjs +0 -1
  289. package/dist/wardley-7MLQ67FV-BoIyQQ0E.cjs +0 -1
  290. 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-Dkp7vqs8.js";
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 ie(e, t) {
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 ae(e) {
445
+ function ie(e) {
446
446
  if (Array.isArray(e)) return e;
447
447
  }
448
- function oe(e, t) {
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 se() {
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 ce(e, t) {
473
- return ae(e) || oe(e, t) || le(e, t) || se();
472
+ function se(e, t) {
473
+ return ie(e) || ae(e, t) || ce(e, t) || oe();
474
474
  }
475
- function le(e, t) {
475
+ function ce(e, t) {
476
476
  if (e) {
477
- if (typeof e == "string") return ie(e, t);
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) ? ie(e, t) : void 0;
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 ue(e) {
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
- ue.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
520
+ w.prototype[typeof Symbol == "function" && Symbol.asyncIterator || "@@asyncIterator"] = function() {
521
521
  return this;
522
- }, ue.prototype.next = function(e) {
522
+ }, w.prototype.next = function(e) {
523
523
  return this._invoke("next", e);
524
- }, ue.prototype.throw = function(e) {
524
+ }, w.prototype.throw = function(e) {
525
525
  return this._invoke("throw", e);
526
- }, ue.prototype.return = function(e) {
526
+ }, w.prototype.return = function(e) {
527
527
  return this._invoke("return", e);
528
528
  };
529
- var de = Object.entries, fe = Object.setPrototypeOf, pe = Object.isFrozen, me = Object.getPrototypeOf, he = Object.getOwnPropertyDescriptor, C = Object.freeze, w = Object.seal, ge = Object.create, _e = typeof Reflect < "u" && Reflect, ve = _e.apply, T = _e.construct;
530
- C ||= function(e) {
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
- }, w ||= function(e) {
532
+ }, E ||= function(e) {
533
533
  return e;
534
- }, ve ||= function(e, t) {
534
+ }, ge ||= function(e, t) {
535
535
  var n = [...arguments].slice(2);
536
536
  return e.apply(t, n);
537
- }, T ||= function(e) {
537
+ }, _e ||= function(e) {
538
538
  return new e(...[...arguments].slice(1));
539
539
  };
540
- var ye = O(Array.prototype.forEach);
540
+ var ve = A(Array.prototype.forEach);
541
541
  Array.prototype.indexOf;
542
- var be = O(Array.prototype.lastIndexOf), xe = O(Array.prototype.pop), Se = O(Array.prototype.push);
543
- Array.prototype.slice;
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 ve(e, t, n);
547
+ return ge(e, t, n);
550
548
  };
551
549
  }
552
- function Le(e) {
550
+ function ze(e) {
553
551
  return function() {
554
- return T(e, [...arguments]);
552
+ return _e(e, [...arguments]);
555
553
  };
556
554
  }
557
- function k(e, t) {
558
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Te;
559
- if (fe && fe(e, null), !we(t)) return e;
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 && (pe(t) || (t[r] = e), i = e);
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 Re(e) {
572
- for (let t = 0; t < e.length; t++) E(e, t) || (e[t] = null);
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 A(e) {
576
- let t = ge(null);
577
- for (let r of de(e)) {
578
- var n = ce(r, 2);
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
- E(e, i) && (t[i] = we(a) ? Re(a) : a && typeof a == "object" && a.constructor === Object ? A(a) : a);
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 ze(e) {
582
+ function Ve(e) {
585
583
  switch (typeof e) {
586
584
  case "string": return e;
587
- case "number": return je(e);
588
- case "boolean": return Me(e);
589
- case "bigint": return Ne ? Ne(e) : "0";
590
- case "symbol": return Pe ? Pe(e) : "Symbol()";
591
- case "undefined": return Fe(e);
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 Fe(e);
595
- let t = e, n = j(t, "toString");
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 : Fe(e);
596
+ return typeof e == "string" ? e : Le(e);
599
597
  }
600
- return Fe(e);
598
+ return Le(e);
601
599
  }
602
- default: return Fe(e);
600
+ default: return Le(e);
603
601
  }
604
602
  }
605
- function j(e, t) {
603
+ function N(e, t) {
606
604
  for (; e !== null;) {
607
- let n = he(e, t);
605
+ let n = pe(e, t);
608
606
  if (n) {
609
- if (n.get) return O(n.get);
610
- if (typeof n.value == "function") return O(n.value);
607
+ if (n.get) return A(n.get);
608
+ if (typeof n.value == "function") return A(n.value);
611
609
  }
612
- e = me(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 Be(e) {
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 D(e, ""), !0;
627
+ return k(e, ""), !0;
622
628
  } catch {
623
629
  return !1;
624
630
  }
625
631
  }
626
- var Ve = C(/* @__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(".")), He = C(/* @__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(".")), Ue = C([
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
- ]), We = C([
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
- ]), Ge = C(/* @__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(".")), Ke = C([
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
- ]), qe = C(["#text"]), Je = C(/* @__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(".")), Ye = C(/* @__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(".")), Xe = C(/* @__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(".")), Ze = C([
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
- ]), Qe = w(/{{[\w\W]*|^[\w\W]*}}/g), $e = w(/<%[\w\W]*|^[\w\W]*%>/g), et = w(/\${[\w\W]*/g), tt = w(/^data-[\-\w.\u00B7-\uFFFF]+$/), nt = w(/^aria-[\-\w]+$/), rt = w(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), it = w(/^(?:\w+script|data):/i), at = w(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), ot = w(/^html$/i), st = w(/^[a-z][.\w]*(-[.\w]+)+$/i), ct = w(/<[/\w!]/g), lt = w(/<[/\w]/g), ut = w(/<\/no(script|embed|frames)/i), dt = w(/\/>/i), M = {
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
- }, ft = [
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
- ], pt = C(k({}, ft)), mt = function() {
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
- }, gt = function(e, t) {
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
- }, _t = function() {
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
- }, N = function(e, t, n, r) {
756
- return E(e, t) && we(e[t]) ? k(r.base ? A(r.base) : {}, e[t], r.transform) : n;
757
- }, vt = function(e, t, n) {
758
- let r = E(e, t) ? e[t] : void 0;
759
- return r && typeof r == "object" ? A(r) : n();
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 yt() {
762
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ht(), t = (e) => yt(e);
763
- if (t.version = "3.4.16", t.removed = [], !e || !e.document || e.document.nodeType !== M.document || !e.Element) return t.isSupported = !1, t;
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 = j(d, "cloneNode"), p = j(d, "remove"), m = j(d, "removeAttributeNode"), ee = j(d, "nextSibling"), h = j(d, "childNodes"), g = j(d, "parentNode"), te = j(d, "shadowRoot"), _ = j(d, "attributes"), v = o && o.prototype ? j(o.prototype, "nodeType") : null, y = o && o.prototype ? j(o.prototype, "nodeName") : null, b = o && o.prototype ? j(o.prototype, "ownerDocument") : null, x = function(e) {
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 S, re = "", ie, ae = !1, oe = 0, se = function() {
778
- if (oe > 0) throw Ie("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.");
779
- }, ce = function(e) {
780
- se(), oe++;
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 S.createHTML(e);
785
+ return C.createHTML(e);
783
786
  } finally {
784
- oe--;
787
+ se--;
785
788
  }
786
- }, le = function(e) {
787
- se(), oe++;
789
+ }, ue = function(e) {
790
+ ce(), se++;
788
791
  try {
789
- return S.createScriptURL(e);
792
+ return C.createScriptURL(e);
790
793
  } finally {
791
- oe--;
794
+ se--;
792
795
  }
793
- }, ue = function() {
794
- return ae ||= (ie = gt(u, i), !0), ie;
795
- }, fe = n, pe = fe.implementation, me = fe.createNodeIterator, he = fe.createDocumentFragment, _e = fe.getElementsByTagName, ve = r.importNode, T = _t();
796
- t.isSupported = typeof de == "function" && typeof g == "function" && pe && pe.createHTMLDocument !== void 0;
797
- let je = Qe, Me = $e, Ne = et, Pe = tt, Fe = nt, O = it, Le = at, Re = st, ft = rt, P = null, bt = k({}, [
798
- ...Ve,
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
- ...qe
803
- ]), F = null, xt = k({}, [
803
+ ...Ke,
804
804
  ...Je,
805
- ...Ye,
806
- ...Xe,
807
- ...Ze
808
- ]), I = Object.seal(ge(null, {
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
- })), St = null, Ct = null, L = Object.seal(ge(null, {
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
- })), wt = !0, Tt = !0, Et = !1, Dt = !0, R = !1, z = !0, B = !1, V = !1, H = null, U = null, Ot = !1, W = !1, kt = !1, At = !1, jt = !0, Mt = !1, Nt = "user-content-", Pt = !0, Ft = !1, It = {}, Lt = null, Rt = k({}, /* @__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(".")), zt = null, Bt = k({}, [
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
- ]), Vt = null, Ht = k({}, [
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
- ]), Ut = "http://www.w3.org/1998/Math/MathML", Wt = "http://www.w3.org/2000/svg", G = "http://www.w3.org/1999/xhtml", Gt = G, Kt = !1, qt = null, Jt = k({}, [
863
- Ut,
864
- Wt,
865
- G
866
- ], Ee), K = C([
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
- ]), q = k({}, K), Yt = C(["annotation-xml"]), Xt = k({}, Yt), Zt = k({}, [
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
- ]), Qt = null, $t = ["application/xhtml+xml", "text/html"], J = null, en = null, tn = n.createElement("form"), nn = function(e) {
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
- }, rn = function() {
883
+ }, dn = function() {
881
884
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
882
- if (en && en === e) return;
883
- (!e || typeof e != "object") && (e = {}), e = A(e), Qt = $t.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = Qt === "application/xhtml+xml" ? Ee : Te, P = N(e, "ALLOWED_TAGS", bt, { transform: J }), F = N(e, "ALLOWED_ATTR", xt, { transform: J }), qt = N(e, "ALLOWED_NAMESPACES", Jt, { transform: Ee }), Vt = N(e, "ADD_URI_SAFE_ATTR", Ht, {
884
- transform: J,
885
- base: Ht
886
- }), zt = N(e, "ADD_DATA_URI_TAGS", Bt, {
887
- transform: J,
888
- base: Bt
889
- }), Lt = N(e, "FORBID_CONTENTS", Rt, { transform: J }), St = N(e, "FORBID_TAGS", A({}), { transform: J }), Ct = N(e, "FORBID_ATTR", A({}), { transform: J }), It = E(e, "USE_PROFILES") ? e.USE_PROFILES && typeof e.USE_PROFILES == "object" ? A(e.USE_PROFILES) : e.USE_PROFILES : !1, wt = e.ALLOW_ARIA_ATTR !== !1, Tt = e.ALLOW_DATA_ATTR !== !1, Et = e.ALLOW_UNKNOWN_PROTOCOLS || !1, Dt = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, R = e.SAFE_FOR_TEMPLATES || !1, z = e.SAFE_FOR_XML !== !1, B = e.WHOLE_DOCUMENT || !1, W = e.RETURN_DOM || !1, kt = e.RETURN_DOM_FRAGMENT || !1, At = e.RETURN_TRUSTED_TYPE || !1, Ot = e.FORCE_BODY || !1, jt = e.SANITIZE_DOM !== !1, Mt = e.SANITIZE_NAMED_PROPS || !1, Pt = e.KEEP_CONTENT !== !1, Ft = e.IN_PLACE || !1, ft = Be(e.ALLOWED_URI_REGEXP) ? e.ALLOWED_URI_REGEXP : rt, Gt = typeof e.NAMESPACE == "string" ? e.NAMESPACE : G, q = vt(e, "MATHML_TEXT_INTEGRATION_POINTS", () => k({}, K)), Xt = vt(e, "HTML_INTEGRATION_POINTS", () => k({}, Yt));
890
- let t = vt(e, "CUSTOM_ELEMENT_HANDLING", () => ge(null));
891
- if (I = ge(null), E(t, "tagNameCheck") && nn(t.tagNameCheck) && (I.tagNameCheck = t.tagNameCheck), E(t, "attributeNameCheck") && nn(t.attributeNameCheck) && (I.attributeNameCheck = t.attributeNameCheck), E(t, "allowCustomizedBuiltInElements") && typeof t.allowCustomizedBuiltInElements == "boolean" && (I.allowCustomizedBuiltInElements = t.allowCustomizedBuiltInElements), w(I), R && (Tt = !1), kt && (W = !0), It && (P = k({}, qe), F = ge(null), It.html === !0 && (k(P, Ve), k(F, Je)), It.svg === !0 && (k(P, He), k(F, Ye), k(F, Ze)), It.svgFilters === !0 && (k(P, Ue), k(F, Ye), k(F, Ze)), It.mathMl === !0 && (k(P, Ge), k(F, Xe), k(F, Ze))), L.tagCheck = null, L.attributeCheck = null, E(e, "ADD_TAGS") && (typeof e.ADD_TAGS == "function" ? L.tagCheck = e.ADD_TAGS : we(e.ADD_TAGS) && (P === bt && (P = A(P)), k(P, e.ADD_TAGS, J))), E(e, "ADD_ATTR") && (typeof e.ADD_ATTR == "function" ? L.attributeCheck = e.ADD_ATTR : we(e.ADD_ATTR) && (F === xt && (F = A(F)), k(F, e.ADD_ATTR, J))), E(e, "ADD_FORBID_CONTENTS") && we(e.ADD_FORBID_CONTENTS) && (Lt === Rt && (Lt = A(Lt)), k(Lt, e.ADD_FORBID_CONTENTS, J)), Pt && (P["#text"] = !0), B && k(P, [
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
- ]), P.table && (k(P, ["tbody"]), delete St.tbody), e.TRUSTED_TYPES_POLICY) {
896
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw Ie("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
897
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Ie("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
898
- let t = S;
899
- S = e.TRUSTED_TYPES_POLICY;
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
- re = ce("");
904
+ ie = w("");
902
905
  } catch (e) {
903
- throw S = t, e;
906
+ throw C = t, e;
904
907
  }
905
- } else e.TRUSTED_TYPES_POLICY === null ? (S = void 0, re = "") : (S === void 0 && (S = ue()), S && typeof re == "string" && (re = ce("")));
906
- C && C(e), en = e;
907
- }, an = k({}, [
908
- ...He,
909
- ...Ue,
910
- ...We
911
- ]), on = k({}, [...Ge, ...Ke]), sn = function(e, t, n) {
912
- return t.namespaceURI === G ? e === "svg" : t.namespaceURI === Ut ? e === "svg" && (n === "annotation-xml" || q[n]) : !!an[e];
913
- }, cn = function(e, t, n) {
914
- return t.namespaceURI === G ? e === "math" : t.namespaceURI === Wt ? e === "math" && Xt[n] : !!on[e];
915
- }, ln = function(e, t, n) {
916
- return t.namespaceURI === Wt && !Xt[n] || t.namespaceURI === Ut && !q[n] ? !1 : !on[e] && (Zt[e] || !an[e]);
917
- }, un = function(e) {
918
- let t = g(e);
919
- (!t || !t.tagName) && (t = {
920
- namespaceURI: Gt,
921
- tagName: "template"
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 Ie("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
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
- }, dn = function(e, t, n) {
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
- }, fn = function(e) {
941
- Z(e);
938
+ }, _n = function(e) {
939
+ bn(e);
942
940
  let t = h(e);
943
- if (t) {
944
- let e = [];
945
- ye(t, (t) => {
946
- Se(e, t);
947
- }), ye(e, (e) => {
948
- try {
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" && dn(e, r, i);
949
+ typeof i == "string" && gn(e, r, i);
957
950
  }
958
- }, X = function(e, n, r) {
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
- Se(t.removed, {
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 (W || kt) try {
977
- Y(n);
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
- }, pn = function(e) {
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" || F[J(i)] || dn(e, r, i);
980
+ typeof i != "string" || I[q(i)] || gn(e, r, i);
988
981
  }
989
- }, Z = function(e) {
990
- let t = [e];
991
- for (; t.length > 0;) {
992
- let e = t.pop();
993
- x(e) === M.element && pn(e);
994
- let n = h(e);
995
- if (n) for (let e = n.length - 1; e >= 0; --e) t.push(n[e]);
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
- }, mn = function(e, t) {
998
- return z ? e === "patchsrc" || e === "for" && t !== "label" && t !== "output" : !1;
999
- }, hn = function(e) {
1000
- if (!z) return;
1001
- let t = [e];
1002
- for (; t.length > 0;) {
1003
- let e = t.pop(), n = x(e);
1004
- if (n === M.processingInstruction || n === M.comment && D(lt, e.data)) {
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
- continue;
1043
+ return !1;
1009
1044
  }
1010
- if (n === M.element) {
1011
- let t = e, n = J(ne(e));
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") && mn("for", n) && t.removeAttribute("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
- let r = h(e);
1017
- if (r) for (let e = r.length - 1; e >= 0; --e) t.push(r[e]);
1018
- }
1019
- }, gn = function(e) {
1051
+ return !0;
1052
+ });
1053
+ }, kn = function(e) {
1020
1054
  let t = null, r = null;
1021
- if (Ot) e = "<remove></remove>" + e;
1055
+ if (Pt) e = "<remove></remove>" + e;
1022
1056
  else {
1023
- let t = De(e, /^[\r\n\t ]+/);
1057
+ let t = Ae(e, /^[\r\n\t ]+/);
1024
1058
  r = t && t[0];
1025
1059
  }
1026
- Qt === "application/xhtml+xml" && Gt === G && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
1027
- let i = S ? ce(e) : e;
1028
- if (Gt === G) try {
1029
- t = new l().parseFromString(i, Qt);
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(Gt, "template", null);
1066
+ t = pe.createDocument(G, "template", null);
1033
1067
  try {
1034
- t.documentElement.innerHTML = Kt ? re : i;
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), Gt === G ? _e.call(t, B ? "html" : "body")[0] : B ? t.documentElement : a;
1039
- }, _n = function(e) {
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 me.call(t || e, e, c.SHOW_ELEMENT | c.SHOW_COMMENT | c.SHOW_TEXT | c.SHOW_PROCESSING_INSTRUCTION | c.SHOW_CDATA_SECTION, null);
1042
- }, vn = function(e) {
1043
- return e = Oe(e, je, " "), e = Oe(e, Me, " "), e = Oe(e, Ne, " "), e;
1044
- }, yn = function(e) {
1045
- e.normalize();
1046
- let t = b ? b(e) : e.ownerDocument, n = me.call(t || e, e, c.SHOW_TEXT | c.SHOW_COMMENT | c.SHOW_CDATA_SECTION | c.SHOW_PROCESSING_INSTRUCTION, null), r = n.nextNode();
1047
- for (; r;) r.data = vn(r.data), r = n.nextNode();
1048
- let i = e.querySelectorAll?.call(e, "template");
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
- }, bn = function(e) {
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" || J(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);
1055
- }, xn = function(e) {
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) === M.documentFragment;
1094
+ return v(e) === P.documentFragment;
1059
1095
  } catch {
1060
1096
  return !1;
1061
1097
  }
1062
- }, Q = function(e) {
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 && ye(e, (e) => {
1072
- e.call(t, n, r, en);
1107
+ e.length !== 0 && ve(e, (e) => {
1108
+ e.call(t, n, r, J);
1073
1109
  });
1074
1110
  }
1075
- let Sn = function(e, t) {
1076
- return !!(z && e.hasChildNodes() && !Q(e.firstElementChild) && D(ct, e.textContent) && D(ct, e.innerHTML) || z && e.namespaceURI === G && pt[t] && (Q(e.firstElementChild) || typeof e.textContent == "string" && D(mt[t], e.textContent)) || e.nodeType === M.processingInstruction || z && e.nodeType === M.comment && D(lt, e.data));
1077
- }, Cn = function(e, t) {
1078
- return e instanceof RegExp ? D(e, t) : e instanceof Function && !!e(t, ...[...arguments].slice(2));
1079
- }, wn = function(e, t, n) {
1080
- if (!St[t] && An(t) && Cn(I.tagNameCheck, t)) return !1;
1081
- if (Pt && !Lt[t]) {
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 Y(e), !0;
1092
- }, Tn = function(e, t, n, r) {
1093
- return e.length === 0 ? t : t === n || t === r ? A(t) : t;
1094
- }, En = function(e, t) {
1095
- return e === t || g(e) !== null ? !1 : (Ft && Z(e), !0);
1096
- }, Dn = function(e, n) {
1097
- if ($(T.beforeSanitizeElements, e, null), En(e, n)) return !0;
1098
- if (bn(e)) return Y(e), !0;
1099
- let r = J(ne(e));
1100
- if (P = Tn(T.uponSanitizeElement, P, bt, H), $(T.uponSanitizeElement, e, {
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: P
1103
- }), En(e, n)) return !0;
1104
- if (Sn(e, r)) return Y(e), !0;
1105
- if (St[r] || !(L.tagCheck instanceof Function && L.tagCheck(r)) && !P[r]) {
1106
- let t = wn(e, r, n);
1107
- return t === !1 && ($(T.afterSanitizeElements, e, null), En(e, n)) ? !0 : t;
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) === M.element && !un(e) || (r === "noscript" || r === "noembed" || r === "noframes") && D(ut, e.innerHTML)) return Y(e), !0;
1110
- if (R && e.nodeType === M.text) {
1111
- let n = vn(e.textContent);
1112
- e.textContent !== n && (Se(t.removed, { element: e.cloneNode() }), 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 $(T.afterSanitizeElements, e, null), En(e, n);
1115
- }, On = function(e, t, r) {
1116
- if (Ct[t] || mn(t, e) || jt && (t === "id" || t === "name") && (r in n || r in tn)) return !1;
1117
- let i = F[t] || L.attributeCheck instanceof Function && L.attributeCheck(t, e);
1118
- return Tt && D(Pe, t) || wt && D(Fe, t) ? !0 : i ? Vt[t] || D(ft, Oe(r, Le, "")) || (t === "src" || t === "xlink:href" || t === "href") && e !== "script" && ke(r, "data:") === 0 && zt[e] || Et && !D(O, Oe(r, Le, "")) ? !0 : !r : An(e) && Cn(I.tagNameCheck, e) && Cn(I.attributeNameCheck, t, e) || t === "is" && I.allowCustomizedBuiltInElements && Cn(I.tagNameCheck, r);
1119
- }, kn = k({}, [
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
- ]), An = function(e) {
1129
- return !kn[Te(e)] && D(Re, e);
1130
- }, jn = function(e, t, n, r) {
1131
- if (S && typeof u == "object" && typeof u.getAttributeType == "function" && !n) switch (u.getAttributeType(e, t)) {
1132
- case "TrustedHTML": return ce(r);
1133
- case "TrustedScriptURL": return le(r);
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
- }, Mn = function(e, t, n, r) {
1172
+ }, qn = function(e, t, n, r) {
1137
1173
  try {
1138
- return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !bn(e) || (Y(e), !1);
1174
+ return n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r), !Pn(e) || (Z(e), !1);
1139
1175
  } catch {
1140
- return X(t, e), !1;
1176
+ return Q(t, e), !1;
1141
1177
  }
1142
- }, Nn = function(e, n) {
1143
- if ($(T.beforeSanitizeAttributes, e, null), En(e, n)) return;
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 || bn(e)) return;
1146
- F = Tn(T.uponSanitizeAttribute, F, xt, U);
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: F,
1189
+ allowedAttributes: I,
1152
1190
  forceKeepAttr: void 0
1153
- }, a = r.length, o = J(e.nodeName);
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 = J(s), d = l, f = s === "value" ? d : Ae(d), p = !1;
1156
- if (i.attrName = u, i.attrValue = f, i.keepAttr = !0, i.forceKeepAttr = void 0, $(T.uponSanitizeAttribute, e, i), f = i.attrValue, Mt && (u === "id" || u === "name") && ke(f, Nt) !== 0 && (X(s, e, n), f = Nt + f, p = !0), z && D(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, f)) {
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
- $(T.afterSanitizeAttributes, e, null), En(e, n);
1181
- }, Pn = function(e) {
1182
- let t = null, n = _n(e);
1183
- for ($(T.beforeSanitizeShadowDOM, e, null); t = n.nextNode();) if ($(T.uponSanitizeShadowNode, t, null), Dn(t, e), Nn(t, e), xn(t.content) && Pn(t.content), x(t) === M.element) {
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
- xn(e) && (Fn(e), Pn(e));
1201
+ Fn(e) && (Zn(e), Xn(e));
1186
1202
  }
1187
- $(T.afterSanitizeShadowDOM, e, null);
1188
- }, Fn = function(e) {
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
- Pn(e.shadow);
1212
+ Xn(e.shadow);
1197
1213
  continue;
1198
1214
  }
1199
- let n = e.node, r = x(n) === M.element, i = h(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" && J(e) === "template") {
1222
+ if (typeof e == "string" && q(e) === "template") {
1207
1223
  let e = n.content;
1208
- xn(e) && t.push({
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
- xn(e) && t.push({
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 (Kt = !e, Kt && (e = "<!-->"), typeof e != "string" && !Q(e) && (e = ze(e), typeof e != "string")) throw Ie("dirty is not a string, aborting");
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
- V ? (P = H, F = U) : rn(n), (T.uponSanitizeElement.length > 0 || T.uponSanitizeAttribute.length > 0) && (P = A(P)), T.uponSanitizeAttribute.length > 0 && (F = A(F)), t.removed = [];
1231
- let c = Ft && typeof e != "string" && Q(e);
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
- hn(e);
1249
+ On(e);
1234
1250
  let t = ne(e);
1235
1251
  if (typeof t == "string") {
1236
- let n = J(t);
1237
- if (!P[n] || St[n]) throw fn(e), Ie("root node is forbidden and cannot be sanitized in-place");
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
- } else if (Q(e)) i = gn("<!---->"), a = i.ownerDocument.importNode(e, !0), a.nodeType === M.element && a.nodeName === "BODY" || a.nodeName === "HTML" ? i = a : i.appendChild(a), Fn(i);
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 (!W && !R && !B && e.indexOf("<") === -1) return S && At ? ce(e) : e;
1248
- if (i = gn(e), !i) return W ? null : At ? re : "";
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 && Ot && Y(i.firstChild);
1251
- let l = c ? e : i;
1262
+ i && Pt && Z(i.firstChild);
1263
+ let d = c ? e : i;
1252
1264
  try {
1253
- let e = _n(l);
1254
- for (; o = e.nextNode();) Dn(o, l), Nn(o, l), xn(o.content) && Pn(o.content);
1255
- } catch (n) {
1256
- throw c && (fn(e), ye(t.removed, (e) => {
1257
- e.element && Z(e.element);
1258
- })), n;
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
- let n = !1;
1262
- if (ye(t.removed, (t) => {
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 (W) {
1268
- if (R && yn(i), kt) for (s = he.call(i.ownerDocument); i.firstChild;) s.appendChild(i.firstChild);
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 (F.shadowroot || F.shadowrootmode) && (s = ve.call(r, s, !0)), s;
1281
+ return (I.shadowroot || I.shadowrootmode) && (s = Pe.call(r, s, !0)), s;
1271
1282
  }
1272
- let u = B ? i.outerHTML : i.innerHTML;
1273
- return B && P["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && D(ot, i.ownerDocument.doctype.name) && (u = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + u), R && (u = vn(u)), S && At ? ce(u) : u;
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
- rn(e), V = !0, H = P, U = F;
1287
+ dn(e), Mt = !0, U = F, Nt = I;
1277
1288
  }, t.clearConfig = function() {
1278
- en = null, V = !1, H = null, U = null, S = ie, re = "";
1289
+ J = null, Mt = !1, U = null, Nt = null, C = ae, ie = "";
1279
1290
  }, t.isValidAttribute = function(e, t, n) {
1280
- en || rn({});
1281
- let r = J(e), i = J(t);
1282
- return On(r, i, n);
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" && E(T, e) && Se(T[e], t);
1295
+ typeof t == "function" && O(D, e) && xe(D[e], t);
1285
1296
  }, t.removeHook = function(e, t) {
1286
- if (E(T, e)) {
1297
+ if (O(D, e)) {
1287
1298
  if (t !== void 0) {
1288
- let n = be(T[e], t);
1289
- return n === -1 ? void 0 : Ce(T[e], n, 1)[0];
1299
+ let n = ye(D[e], t);
1300
+ return n === -1 ? void 0 : Ce(D[e], n, 1)[0];
1290
1301
  }
1291
- return xe(T[e]);
1302
+ return be(D[e]);
1292
1303
  }
1293
1304
  }, t.removeHooks = function(e) {
1294
- E(T, e) && (T[e] = []);
1305
+ O(D, e) && (D[e] = []);
1295
1306
  }, t.removeAllHooks = function() {
1296
- T = _t();
1307
+ D = vt();
1297
1308
  }, t;
1298
1309
  }
1299
- var P = yt(), bt = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, F = /\s/, xt = /* @__PURE__ */ e((e) => {
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 && F.test(e[o - 1]);) o--;
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"), I = /* @__PURE__ */ e((e) => e === "\n" || e === "\r", "isLineBreak"), St = /* @__PURE__ */ e((e, t) => {
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 && F.test(e[r]); r++) I(e[r]) && (n = r);
1324
+ for (let r = t; r < e.length && wt.test(e[r]); r++) Tt(e[r]) && (n = r);
1314
1325
  return n;
1315
- }, "lastLineBreakInWhitespaceRun"), Ct = /* @__PURE__ */ e((t) => {
1326
+ }, "lastLineBreakInWhitespaceRun"), Et = /* @__PURE__ */ e((t) => {
1316
1327
  let n = 0;
1317
- for (; n < t.length && F.test(t[n]) && !I(t[n]);) n++;
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 && F.test(t[e]); e++) I(t[e]) && i.push(e);
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) => I(t[e]) && t.startsWith(a, e + 1) ? St(t, e + 1 + a.length) : -1, "closingEnd"), s = i[0] + 1, c = -1;
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
- }, wt = {}, Tt = /* @__PURE__ */ e(function(e, t) {
1345
- let n = Ct(e);
1346
- e = xt((n ? e.slice(n.length) : e).replace(bt, ""));
1347
- for (let [n, { detector: r }] of Object.entries(wt)) if (r(e, t)) return n;
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"), Et = /* @__PURE__ */ e((...e) => {
1350
- for (let { id: t, detector: n, loader: r } of e) Dt(t, n, r);
1351
- }, "registerLazyLoadedDiagrams"), Dt = /* @__PURE__ */ e((e, t, n) => {
1352
- wt[e] && r.warn(`Detector with key ${e} already exists. Overwriting.`), wt[e] = {
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"), R = /* @__PURE__ */ e((e) => wt[e].loader, "getDiagramLoader"), z = /* @__PURE__ */ e((e, t, { depth: n = 2 } = {}) => {
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) => z(e, t, r)), e;
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] = z(r[t], i, { depth: n - 1 }));
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"), B = z, V = "#ffffff", H = "#f2f2f2", U = /* @__PURE__ */ e((e, t) => t ? x(e, {
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"), Ot = /* @__PURE__ */ e((e) => typeof e == "object" && !!e && !Array.isArray(e), "isPlainObject"), W = /* @__PURE__ */ e((e, t) => Ot(e) && Ot(t) ? {
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"), kt = class {
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 || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || 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, {
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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H, this.gradientStart = this.primaryBorderColor, this.gradientStop = this.secondaryBorderColor;
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] = W(this[t], e[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
- }, At = /* @__PURE__ */ e((e) => {
1548
- let t = new kt();
1558
+ }, Pt = /* @__PURE__ */ e((e) => {
1559
+ let t = new Nt();
1549
1560
  return t.calculate(e), t;
1550
- }, "getThemeVariables"), jt = class {
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 = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(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";
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] = W(this[t], e[t]);
1682
+ this[t] = U(this[t], e[t]);
1672
1683
  });
1673
1684
  }
1674
- }, Mt = /* @__PURE__ */ e((e) => {
1675
- let t = new jt();
1685
+ }, It = /* @__PURE__ */ e((e) => {
1686
+ let t = new Ft();
1676
1687
  return t.calculate(e), t;
1677
- }, "getThemeVariables"), Nt = class {
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 = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(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 = U(this.primaryColor, this.darkMode), this.border2 = "#aaaa33", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "rgba(232,232,232, 0.8)", this.textColor = "#333", this.THEME_COLOR_LIMIT = 12, this.radius = 5, this.strokeWidth = 1, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.clusterBkg = "#FBFBFF", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = this.taskTextDarkColor, this.taskTextClickableColor = "calculated", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBorderColor = "calculated", this.critBkgColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.sectionBkgColor = 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();
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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
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] = W(this[t], e[t]);
1834
+ this[t] = U(this[t], e[t]);
1824
1835
  });
1825
1836
  }
1826
- }, Pt = /* @__PURE__ */ e((e) => {
1827
- let t = new Nt();
1837
+ }, Rt = /* @__PURE__ */ e((e) => {
1838
+ let t = new Lt();
1828
1839
  return t.calculate(e), t;
1829
- }, "getThemeVariables"), Ft = class {
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 = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(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))";
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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
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] = W(this[t], e[t]);
1994
+ this[t] = U(this[t], e[t]);
1984
1995
  });
1985
1996
  }
1986
- }, It = /* @__PURE__ */ e((e) => {
1987
- let t = new Ft();
1997
+ }, Bt = /* @__PURE__ */ e((e) => {
1998
+ let t = new zt();
1988
1999
  return t.calculate(e), t;
1989
- }, "getThemeVariables"), Lt = class {
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 = U(this.primaryColor, this.darkMode), this.secondaryBorderColor = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(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))";
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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
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] = W(this[t], e[t]);
2107
+ this[t] = U(this[t], e[t]);
2097
2108
  });
2098
2109
  }
2099
- }, Rt = /* @__PURE__ */ e((e) => {
2100
- let t = new Lt();
2110
+ }, Ht = /* @__PURE__ */ e((e) => {
2111
+ let t = new Vt();
2101
2112
  return t.calculate(e), t;
2102
- }, "getThemeVariables"), zt = class {
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 = U(this.primaryColor, this.darkMode), this.fontFamily = "arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#000000", this.stateBorder = "#000000", this.useGradient = !0, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "drop-shadow( 0px 1px 2px rgba(0, 0, 0, 0.25));", this.tertiaryColor = "#ffffff", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.noteFontWeight = "normal", this.fontWeight = "normal";
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 || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || 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));
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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
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] = W(this[t], e[t]);
2214
+ this[t] = U(this[t], e[t]);
2204
2215
  });
2205
2216
  }
2206
- }, Bt = /* @__PURE__ */ e((e) => {
2207
- let t = new zt();
2217
+ }, Wt = /* @__PURE__ */ e((e) => {
2218
+ let t = new Ut();
2208
2219
  return t.calculate(e), t;
2209
- }, "getThemeVariables"), Vt = class {
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 = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(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";
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 || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || 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, {
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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
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] = W(this[t], e[t]);
2316
+ this[t] = U(this[t], e[t]);
2306
2317
  });
2307
2318
  }
2308
- }, Ht = /* @__PURE__ */ e((e) => {
2309
- let t = new Vt();
2319
+ }, Kt = /* @__PURE__ */ e((e) => {
2320
+ let t = new Gt();
2310
2321
  return t.calculate(e), t;
2311
- }, "getThemeVariables"), Ut = class {
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 = U("#28253D", this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.clusterBkg = "#F9F9FB", this.clusterBorder = "#BDBCCC", this.noteBorderColor = "#FACC15", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.filterColor = "#000000";
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 || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#FEF9C3", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || 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));
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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
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] = W(this[t], e[t]);
2422
+ this[t] = U(this[t], e[t]);
2412
2423
  });
2413
2424
  }
2414
- }, Wt = /* @__PURE__ */ e((e) => {
2415
- let t = new Ut();
2425
+ }, Jt = /* @__PURE__ */ e((e) => {
2426
+ let t = new qt();
2416
2427
  return t.calculate(e), t;
2417
- }, "getThemeVariables"), G = class {
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 = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(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";
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 || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || 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, {
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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
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] = W(this[t], e[t]);
2524
+ this[t] = U(this[t], e[t]);
2514
2525
  });
2515
2526
  }
2516
- }, Gt = /* @__PURE__ */ e((e) => {
2517
- let t = new G();
2527
+ }, Xt = /* @__PURE__ */ e((e) => {
2528
+ let t = new Yt();
2518
2529
  return t.calculate(e), t;
2519
- }, "getThemeVariables"), Kt = class {
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 = U("#28253D", this.darkMode), this.fontFamily = "\"Recursive Variable\", arial, sans-serif", this.fontSize = "14px", this.nodeBorder = "#28253D", this.stateBorder = "#28253D", this.useGradient = !1, this.gradientStart = "#0042eb", this.gradientStop = "#eb0042", this.dropShadow = "url(#drop-shadow)", this.nodeShadow = !0, this.tertiaryColor = "#ffffff", this.clusterBkg = "#F9F9FB", this.clusterBorder = "#BDBCCC", this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.actorBorder = "#28253D", this.noteBorderColor = "#FACC15", this.noteFontWeight = 600, this.borderColorArray = [
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 || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#28253D", this.secondaryTextColor = this.secondaryTextColor || 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));
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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
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] = W(this[t], e[t]);
2640
+ this[t] = U(this[t], e[t]);
2630
2641
  });
2631
2642
  }
2632
- }, qt = /* @__PURE__ */ e((e) => {
2633
- let t = new Kt();
2643
+ }, Qt = /* @__PURE__ */ e((e) => {
2644
+ let t = new Zt();
2634
2645
  return t.calculate(e), t;
2635
- }, "getThemeVariables"), Jt = class {
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 = U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = U(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 = [
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 || U(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || U(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || U(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || U(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#FFFFFF", this.secondaryTextColor = this.secondaryTextColor || 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;
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 || V, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || H;
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] = W(this[t], e[t]);
2748
+ this[t] = U(this[t], e[t]);
2738
2749
  });
2739
2750
  }
2740
- }, K = {
2741
- base: { getThemeVariables: At },
2742
- dark: { getThemeVariables: Mt },
2743
- default: { getThemeVariables: Pt },
2744
- forest: { getThemeVariables: It },
2745
- neutral: { getThemeVariables: Rt },
2746
- neo: { getThemeVariables: Bt },
2747
- "neo-dark": { getThemeVariables: Ht },
2748
- redux: { getThemeVariables: Wt },
2749
- "redux-dark": { getThemeVariables: Gt },
2750
- "redux-color": { getThemeVariables: qt },
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 Jt();
2763
+ let t = new W();
2753
2764
  return t.calculate(e), t;
2754
2765
  }, "getThemeVariables") }
2755
- }, q = {
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
- }, Yt = {
3355
- ...q,
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: K.default.getThemeVariables(),
3384
+ themeVariables: G.default.getThemeVariables(),
3374
3385
  sequence: {
3375
- ...q.sequence,
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: q.class?.theme,
3400
- look: q.class?.look,
3401
- layout: q.class?.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
- ...q.gantt,
3417
+ ...K.gantt,
3407
3418
  tickInterval: void 0,
3408
3419
  useWidth: void 0
3409
3420
  },
3410
3421
  c4: {
3411
- ...q.c4,
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
- ...q.flowchart,
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
- ...q.pie,
3584
+ ...K.pie,
3574
3585
  useWidth: 984
3575
3586
  },
3576
3587
  xyChart: {
3577
- ...q.xyChart,
3588
+ ...K.xyChart,
3578
3589
  useWidth: void 0
3579
3590
  },
3580
3591
  requirement: {
3581
- ...q.requirement,
3592
+ ...K.requirement,
3582
3593
  useWidth: void 0
3583
3594
  },
3584
- packet: { ...q.packet },
3585
- eventmodeling: { ...q.eventmodeling },
3595
+ packet: { ...K.packet },
3596
+ eventmodeling: { ...K.eventmodeling },
3586
3597
  treeView: {
3587
- ...q.treeView,
3598
+ ...K.treeView,
3588
3599
  useWidth: void 0
3589
3600
  },
3590
- radar: { ...q.radar },
3591
- usecase: { ...q.usecase },
3601
+ radar: { ...K.radar },
3602
+ usecase: { ...K.usecase },
3592
3603
  railroad: {
3593
- ...q.railroad,
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: { ...q.ishikawa },
3622
+ ishikawa: { ...K.ishikawa },
3612
3623
  sankey: {
3613
- ...q.sankey,
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: { ...q.venn },
3629
- cynefin: { ...q.cynefin }
3630
- }, Xt = /* @__PURE__ */ e((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
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
- ...Xt(e[r], "")
3634
- ] : [...n, t + r], []), "keyify"), Zt = new Set(Xt(Yt, "")), Qt = Yt, $t = {
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
- }, J = /* @__PURE__ */ e((e) => $t[e] ?? e, "getDiagramConfigKey"), en = {
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
- }, tn = /* @__PURE__ */ e((e, t) => {
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"), nn = /* @__PURE__ */ e((e) => {
3653
- if (r.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
3654
- if (Array.isArray(e)) {
3655
- e.forEach((e) => nn(e));
3656
- return;
3657
- }
3658
- for (let t of Object.keys(e)) {
3659
- if (r.debug("Checking key", t), t.startsWith("__") || t.includes("proto") || t.includes("constr") || !Zt.has(t) || e[t] == null) {
3660
- r.debug("sanitize deleting key: ", t), delete e[t];
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] = rn(e[t]));
3673
- }
3674
- if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
3675
- let n = e.themeVariables[t];
3676
- n?.match && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = "");
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"), rn = /* @__PURE__ */ e((e) => {
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"), an = Object.freeze(Qt), on = [
3690
+ }, "sanitizeCss"), J = Object.freeze(nn), ln = [
3688
3691
  "theme",
3689
3692
  "look",
3690
3693
  "layout"
3691
- ], sn = /* @__PURE__ */ new Set([
3694
+ ], un = /* @__PURE__ */ new Set([
3692
3695
  "classic",
3693
3696
  "handDrawn",
3694
3697
  "neo"
3695
- ]), cn = /* @__PURE__ */ e((e, t) => e === "theme" ? t === "null" || Object.hasOwn(K, t) : e !== "look" || sn.has(t), "isUsableAppearance"), ln = /* @__PURE__ */ e((e, t, n) => {
3696
- if (e) return [e[t]?.[n], e[n]].find((e) => e !== void 0 && cn(n, e));
3697
- }, "readAppearance"), un = /* @__PURE__ */ e((e) => !(e === !1 || [
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 = B({}, an), dn, fn = {}, X = [], pn = B({}, an), Z, mn = /* @__PURE__ */ e((e, t) => {
3702
- if (!Z) return;
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
- fn,
3707
- an
3708
- ], r = e[Z];
3709
- for (let t of on) for (let i of n) {
3710
- let n = ln(i, Z, t);
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"), hn = /* @__PURE__ */ e((e, t) => {
3717
- let n = B({}, e), r = {};
3718
- for (let e of t) $(e), r = B(r, e);
3719
- if (n = B(n, r), mn(n, r), (r.theme || n.theme !== e.theme) && n.theme && Object.hasOwn(K, n.theme)) {
3720
- let e = B(B({}, dn).themeVariables || {}, r.themeVariables);
3721
- n.themeVariables = K[n.theme].getThemeVariables(e);
3722
- }
3723
- return pn = n, Dn(pn), pn;
3724
- }, "updateCurrentConfig"), gn = /* @__PURE__ */ e((e) => {
3725
- Z = e === void 0 ? void 0 : J(e), hn(Y, X);
3726
- }, "setDiagramConfigScope"), _n = /* @__PURE__ */ e((e) => (Y = B({}, an), Y = B(Y, e), fn = B({}, e), e.theme && Object.hasOwn(K, e.theme) && (Y.themeVariables = K[e.theme].getThemeVariables(e.themeVariables)), hn(Y, X), Y), "setSiteConfig"), vn = /* @__PURE__ */ e((e) => {
3727
- dn = B({}, e);
3728
- }, "saveConfigFromInitialize"), yn = /* @__PURE__ */ e((e) => (Y = B(Y, e), fn = B(fn, e), hn(Y, X), Y), "updateSiteConfig"), bn = /* @__PURE__ */ e(() => B({}, Y), "getSiteConfig"), xn = /* @__PURE__ */ e((e) => (hn(pn, [e]), Q()), "setConfig"), Q = /* @__PURE__ */ e(() => B({}, pn), "getConfig"), $ = /* @__PURE__ */ e((e) => {
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" && $(e[t]);
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"), Sn = /* @__PURE__ */ e((e) => {
3737
- nn(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
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), hn(Y, X);
3741
- }, "addDirective"), Cn = /* @__PURE__ */ e((e = Y) => {
3742
- X = [], Z = void 0, hn(e, X);
3743
- }, "reset"), wn = {
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
- }, Tn = {}, En = /* @__PURE__ */ e((e) => {
3747
- Tn[e] || (r.warn(wn[e]), Tn[e] = !0);
3748
- }, "issueWarning"), Dn = /* @__PURE__ */ e((e) => {
3749
- e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && En("LAZY_LOAD_DEPRECATED");
3750
- }, "checkConfig"), On = /* @__PURE__ */ e(() => {
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
- dn && (e = B(e, dn));
3753
- for (let t of X) e = B(e, t);
3755
+ mn && (e = z(e, mn));
3756
+ for (let t of X) e = z(e, t);
3754
3757
  return e;
3755
- }, "getUserDefinedConfig"), kn = /* @__PURE__ */ e((e) => (e.flowchart?.htmlLabels != null && En("FLOWCHART_HTML_LABELS_DEPRECATED"), un(e.htmlLabels ?? e.flowchart?.htmlLabels ?? !0)), "getEffectiveHtmlLabels"), An = /<\/?br\s*\/?>/gi, jn = new RegExp(An.source, "i"), Mn = /* @__PURE__ */ e((e) => e ? Hn(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), Nn = /* @__PURE__ */ (() => {
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 ||= (Pn(), !0);
3761
+ e ||= (Ln(), !0);
3759
3762
  };
3760
3763
  })();
3761
- function Pn() {
3764
+ function Ln() {
3762
3765
  let e = "data-temp-href-target";
3763
- P.addHook("beforeSanitizeAttributes", (t) => {
3766
+ St.addHook("beforeSanitizeAttributes", (t) => {
3764
3767
  t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
3765
- }), P.addHook("afterSanitizeAttributes", (t) => {
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(Pn, "setupDompurifyHooks");
3770
- var Fn = /* @__PURE__ */ e((e) => (Nn(), P.sanitize(e)), "removeScript"), In = /* @__PURE__ */ e((e, t) => {
3771
- if (kn(t)) {
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 = Fn(e) : n !== "loose" && (e = Hn(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = Vn(e));
3776
+ n === "antiscript" || n === "strict" || n === "sandbox" ? e = Rn(e) : n !== "loose" && (e = Gn(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = Wn(e));
3774
3777
  }
3775
3778
  return e;
3776
- }, "sanitizeMore"), Ln = /* @__PURE__ */ e((e, t) => e && (e = t.dompurifyConfig ? P.sanitize(In(e, t), t.dompurifyConfig).toString() : P.sanitize(In(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), Rn = /* @__PURE__ */ e((e, t) => typeof e == "string" ? Ln(e, t) : e.flat().map((e) => Ln(e, t)), "sanitizeTextOrArray"), zn = /* @__PURE__ */ e((e) => jn.test(e), "hasBreaks"), Bn = /* @__PURE__ */ e((e) => e.split(An), "splitBreaks"), Vn = /* @__PURE__ */ e((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), Hn = /* @__PURE__ */ e((e) => e.replace(An, "#br#"), "breakToPlaceholder"), Un = /* @__PURE__ */ e((e) => {
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"), Wn = /* @__PURE__ */ e(function(...e) {
3782
+ }, "getUrl"), qn = /* @__PURE__ */ e(function(...e) {
3780
3783
  let t = e.filter((e) => !isNaN(e));
3781
3784
  return Math.max(...t);
3782
- }, "getMax"), Gn = /* @__PURE__ */ e(function(...e) {
3785
+ }, "getMax"), Jn = /* @__PURE__ */ e(function(...e) {
3783
3786
  let t = e.filter((e) => !isNaN(e));
3784
3787
  return Math.min(...t);
3785
- }, "getMin"), Kn = /* @__PURE__ */ e(function(e) {
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
- Jn(i, a) && (r = i + "," + a, e++, n.pop());
3794
+ Zn(i, a) && (r = i + "," + a, e++, n.pop());
3792
3795
  }
3793
- n.push(Yn(r));
3796
+ n.push(Qn(r));
3794
3797
  }
3795
3798
  return n.join("");
3796
- }, "parseGenericTypes"), qn = /* @__PURE__ */ e((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), Jn = /* @__PURE__ */ e((e, t) => {
3797
- let n = qn(e, "~"), r = qn(t, "~");
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"), Yn = /* @__PURE__ */ e((e) => {
3800
- let t = qn(e, "~"), n = !1;
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"), Xn = /* @__PURE__ */ e(() => window.MathMLElement !== void 0, "isMathMLSupported"), Zn = /\$\$(.*?)\$\$/g, Qn = /* @__PURE__ */ e((e) => (e.match(Zn)?.length ?? 0) > 0, "hasKatex"), $n = /* @__PURE__ */ e(async (e, t) => {
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 tr(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
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"), er = /* @__PURE__ */ e(async (e, t) => {
3815
- if (!Qn(e)) return e;
3816
- if (!(Xn() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(Zn, "MathML is unsupported in this environment.");
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-DTnCNBYg.js").then((e) => e.n), r = t.forceLegacyMathML || !Xn() && t.legacyMathML ? "htmlAndMathml" : "mathml";
3819
- return e.split(An).map((e) => Qn(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(Zn, (e, t) => n.renderToString(t, {
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"), tr = /* @__PURE__ */ e(async (e, t) => Ln(await er(e, t), t), "renderKatexSanitized"), nr = {
3826
- getRows: Mn,
3827
- sanitizeText: Ln,
3828
- sanitizeTextOrArray: Rn,
3829
- hasBreaks: zn,
3830
- splitBreaks: Bn,
3831
- lineBreakRegex: An,
3832
- removeScript: Fn,
3833
- getUrl: Un,
3834
- evaluate: un,
3835
- getMax: Wn,
3836
- getMin: Gn
3837
- }, rr = /* @__PURE__ */ e(function(e, t) {
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"), ir = /* @__PURE__ */ e(function(e, t, n) {
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"), ar = /* @__PURE__ */ e(function(e, t, n, r) {
3843
- rr(e, ir(t, n, r));
3844
- }, "configureSvgSize"), or = /* @__PURE__ */ e(function(e, t, n, i) {
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}`), ar(t, l, c, i);
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"), sr = {};
3852
- function cr(e) {
3854
+ }, "setupGraphViewbox"), ur = {};
3855
+ function dr(e) {
3853
3856
  return [...e.cssRules].map((e) => e.cssText).join("\n");
3854
3857
  }
3855
- e(cr, "cssStyleSheetToString");
3856
- var lr = /* @__PURE__ */ e((e, t, n, i) => {
3858
+ e(dr, "cssStyleSheetToString");
3859
+ var fr = /* @__PURE__ */ e((e, t, n, i) => {
3857
3860
  let a = "";
3858
- return e in sr && sr[e] ? a = sr[e]({
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"), ur = /* @__PURE__ */ e((e, t) => {
3984
- t !== void 0 && (sr[e] = t);
3985
- }, "addStylesForDiagram"), dr = lr, fr = {};
3986
- t(fr, {
3987
- clear: () => _r,
3988
- getAccDescription: () => xr,
3989
- getAccTitle: () => yr,
3990
- getDiagramTitle: () => Cr,
3991
- setAccDescription: () => br,
3992
- setAccTitle: () => vr,
3993
- setDiagramTitle: () => Sr
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 pr = "", mr = "", hr = "", gr = /* @__PURE__ */ e((e) => Ln(e, Q()), "sanitizeText"), _r = /* @__PURE__ */ e(() => {
3996
- pr = "", hr = "", mr = "";
3997
- }, "clear"), vr = /* @__PURE__ */ e((e) => {
3998
- pr = gr(e).replace(/^\s+/g, "");
3999
- }, "setAccTitle"), yr = /* @__PURE__ */ e(() => pr, "getAccTitle"), br = /* @__PURE__ */ e((e) => {
4000
- hr = gr(e).replace(/\n\s+/g, "\n");
4001
- }, "setAccDescription"), xr = /* @__PURE__ */ e(() => hr, "getAccDescription"), Sr = /* @__PURE__ */ e((e) => {
4002
- mr = gr(e);
4003
- }, "setDiagramTitle"), Cr = /* @__PURE__ */ e(() => mr, "getDiagramTitle"), wr = r, Tr = n, Er = Q, Dr = xn, Or = an, kr = /* @__PURE__ */ e((e) => Ln(e, Er()), "sanitizeText"), Ar = or, jr = /* @__PURE__ */ e(() => fr, "getCommonDb"), Mr = {}, Nr = /* @__PURE__ */ e((e, t, n) => {
4004
- Mr[e] && wr.warn(`Diagram with id ${e} already registered. Overwriting.`), Mr[e] = t, n && Dt(e, n), ur(e, t.styles), t.injectUtils?.(wr, Tr, Er, kr, Ar, jr(), () => {});
4005
- }, "registerDiagram"), Pr = /* @__PURE__ */ e((e) => {
4006
- if (e in Mr) return Mr[e];
4007
- throw new Fr(e);
4008
- }, "getDiagram"), Fr = class extends Error {
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 { yn as $, An as A, kr as B, Cr as C, Un as D, Pt as E, tr as F, Dr as G, br as H, Cn as I, _n as J, gn as K, rn as L, Kn as M, Nr as N, On as O, Et as P, K as Q, nn as R, R as S, bn as T, vr as U, vn as V, xn as W, Ar as X, or as Y, dr as Z, xr as _, _r as a, h as at, Er as b, ar as c, Or as d, P as et, Qt as f, un as g, bt as h, $n as i, _ as it, Ct as j, Qn as k, cr as l, wt as m, Sn as n, y as nt, fr as o, m as ot, Tt as p, Sr as q, B as r, v as rt, nr as s, a as st, L as t, b as tt, an as u, yr as v, kn as w, Pr as x, Q as y, Ln as z };
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 };