@pi-outpost/embed 0.32.4 → 0.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. package/dist/{abnfDiagram-VCTEODGH-SjZtzoAs.cjs → abnfDiagram-YUKMZFIV-CgM8_qF6.cjs} +1 -1
  2. package/dist/{abnfDiagram-VCTEODGH-BX4P82Y6.js → abnfDiagram-YUKMZFIV-dNHR2FX4.js} +5 -5
  3. package/dist/architecture-WOLXFQ4H-DupyKILn.cjs +1 -0
  4. package/dist/architecture-WOLXFQ4H-X4ZWxzi-.js +3 -0
  5. package/dist/{architectureDiagram-5GKGNRK7-BRdxCCja.js → architectureDiagram-47P4ROYG-C_rUoWaO.js} +31 -31
  6. package/dist/{architectureDiagram-5GKGNRK7-wrDPdf3y.cjs → architectureDiagram-47P4ROYG-bflaQP1L.cjs} +3 -3
  7. package/dist/{blockDiagram-OSKFZWR5-Boo8WJyt.cjs → blockDiagram-E7TT5TSB-BKw9FE2U.cjs} +19 -8
  8. package/dist/{blockDiagram-OSKFZWR5-B1pU8Z2f.js → blockDiagram-E7TT5TSB-CEa2A5E9.js} +217 -193
  9. package/dist/c4Diagram-CRA5TL53-C-PuMGA5.cjs +38 -0
  10. package/dist/{c4Diagram-7LVT6UL2-WfERxhw2.js → c4Diagram-CRA5TL53-CtJh9DsO.js} +283 -273
  11. package/dist/channel-BjC1TKrU.cjs +1 -0
  12. package/dist/{channel-Cf_XiG-0.js → channel-DCXZw5aW.js} +1 -1
  13. package/dist/{chunk-OSK3NFVY-BUXOUgUl.js → chunk-2BW5OAIV-DWtmlmt_.js} +178 -154
  14. package/dist/chunk-2BW5OAIV-FkhgcL6B.cjs +10 -0
  15. package/dist/{chunk-75Z2AOVW-DoA8rENV.js → chunk-3YJQHVM4-BNbfg-7y.js} +235 -231
  16. package/dist/chunk-3YJQHVM4-ChvNe1M8.cjs +2 -0
  17. package/dist/chunk-4EA7E6EY-3OELTJ93.cjs +1 -0
  18. package/dist/{chunk-P2QGCYS3-BoMkrMIF.js → chunk-4EA7E6EY-B5P7n2an.js} +6 -6
  19. package/dist/{chunk-F27PBJKO-s9M3oGHp.js → chunk-7TKQ45FW-CD1KuemG.js} +2 -2
  20. package/dist/{chunk-F27PBJKO-3UPgzIlN.cjs → chunk-7TKQ45FW-Djscho_M.cjs} +1 -1
  21. package/dist/{chunk-SVP7TREG-CTKSOFlx.cjs → chunk-AW2ZBBNX-C4uNh90t.cjs} +3 -3
  22. package/dist/{chunk-SVP7TREG-weNUySou.js → chunk-AW2ZBBNX-CVsDDdv5.js} +33 -33
  23. package/dist/{chunk-GVQU2GXP-iZT_vNLp.cjs → chunk-DBDB3WZW-DSRcln4l.cjs} +1 -1
  24. package/dist/{chunk-GVQU2GXP-BhLneNgJ.js → chunk-DBDB3WZW-DpEOsLsQ.js} +3 -3
  25. package/dist/chunk-DUW6YSOI-2RXTEh_8.cjs +1 -0
  26. package/dist/chunk-DUW6YSOI-CVhxvrBO.js +10 -0
  27. package/dist/{chunk-GMAD6QVW-DZ2r0pLj.js → chunk-E2ZNV5FY-Bu796yUY.js} +354 -361
  28. package/dist/chunk-E2ZNV5FY-DIRTchKA.cjs +72 -0
  29. package/dist/chunk-EU5HNXII-DNBbmfcI.cjs +213 -0
  30. package/dist/{chunk-3NF5O7KM-DQV4G__C.js → chunk-EU5HNXII-DW-QTb0f.js} +426 -357
  31. package/dist/chunk-FVRAUYC3-Crqd-lTD.cjs +1 -0
  32. package/dist/chunk-FVRAUYC3-tiT7dtx-.js +356 -0
  33. package/dist/{chunk-PWAF6VOD-9dCi1q-p.js → chunk-HJ2JQQFS-CgYTXthn.js} +2 -2
  34. package/dist/{chunk-PWAF6VOD-CZZKCekP.cjs → chunk-HJ2JQQFS-DnrogIdt.cjs} +1 -1
  35. package/dist/chunk-HTAEGDNF-D4u24-lD.js +236 -0
  36. package/dist/chunk-HTAEGDNF-I4JlqwMr.cjs +1 -0
  37. package/dist/chunk-J5ZVWO5B-CK5HGA-t.cjs +1 -0
  38. package/dist/chunk-J5ZVWO5B-DEP-pB-1.js +12 -0
  39. package/dist/{chunk-POPQ4Y6H-BRQPB1-9.cjs → chunk-KQW6MTUR-C_XQxsme.cjs} +1 -1
  40. package/dist/{chunk-POPQ4Y6H-vLTNjxsT.js → chunk-KQW6MTUR-c0XOjr_c.js} +2 -2
  41. package/dist/chunk-NGNAAXSQ-DM0DL2MX.js +19836 -0
  42. package/dist/chunk-NGNAAXSQ-kHtfTQLE.cjs +136 -0
  43. package/dist/chunk-NTY3LDVX-CvRtOCpm.js +363 -0
  44. package/dist/chunk-NTY3LDVX-DBVRlnMJ.cjs +1 -0
  45. package/dist/chunk-VPRB5NB3-CT204jN6.cjs +129 -0
  46. package/dist/{chunk-DU6HZSFF-BW30DVuW.js → chunk-VPRB5NB3-DJh7spRO.js} +791 -611
  47. package/dist/chunk-XC4XBNZT-BTUjiQhE.cjs +62 -0
  48. package/dist/{chunk-4HAMMTFA-C2YXJpQw.js → chunk-XC4XBNZT-CSiWBPH9.js} +1378 -1079
  49. package/dist/classDiagram-v2-K4WV4PDN-BndXIwai.cjs +217 -0
  50. package/dist/{chunk-HLEWEB6X-BrzeadBj.js → classDiagram-v2-K4WV4PDN-C39xKke0.js} +254 -214
  51. package/dist/{conversationExport-QWEGKkKB.js → conversationExport-0aa7tXBv.js} +2 -2
  52. package/dist/{conversationExport-D2ekPeYe.cjs → conversationExport-BVHvnvh5.cjs} +1 -1
  53. package/dist/conversationHistory-CNfOwM8H.cjs +287 -0
  54. package/dist/{conversationHistory-BylZCAb1.js → conversationHistory-D-hT7EvD.js} +9066 -6513
  55. package/dist/cynefin-EF2NZ3EQ-BB_WO8YQ.js +3 -0
  56. package/dist/cynefin-EF2NZ3EQ-Du3-s5Z7.cjs +1 -0
  57. package/dist/{cynefinDiagram-5FMLGOSQ-GvGZco52.cjs → cynefinDiagram-3GCD6N5R-Bmvj-sQO.cjs} +1 -1
  58. package/dist/{cynefinDiagram-5FMLGOSQ-BEFzUfsd.js → cynefinDiagram-3GCD6N5R-C2CRSeJl.js} +14 -14
  59. package/dist/dagre-W4DXFKR2-ECmxkO0T.js +2356 -0
  60. package/dist/dagre-W4DXFKR2-aPKdYPEj.cjs +4 -0
  61. package/dist/diagram-2UJZ2QOL-B1JKtFHG.cjs +200 -0
  62. package/dist/diagram-2UJZ2QOL-CJRsGDwn.js +5081 -0
  63. package/dist/{diagram-VX7I27RA-Bx9fEhR0.cjs → diagram-OVF4WLC6-CwZeVpHT.cjs} +1 -1
  64. package/dist/{diagram-VX7I27RA-BK8jsKkD.js → diagram-OVF4WLC6-D6r6aTeO.js} +61 -61
  65. package/dist/{diagram-S7CK7UJ4-BH8mrGrv.js → diagram-PFPMY2P6-BpOJbdZ5.js} +15 -15
  66. package/dist/{diagram-S7CK7UJ4-BA67ZpiO.cjs → diagram-PFPMY2P6-DlLbGc_k.cjs} +3 -3
  67. package/dist/{diagram-Z3DM3KII-jy895UiZ.cjs → diagram-UMYRVEAY-BE-t_ZdV.cjs} +1 -1
  68. package/dist/{diagram-Z3DM3KII-CqouFf3D.js → diagram-UMYRVEAY-blW7NpUU.js} +14 -14
  69. package/dist/{diagram-UQ7AKVKN-Bvz7faiB.js → diagram-YEKJPTXX-BOgf87BN.js} +15 -15
  70. package/dist/{diagram-UQ7AKVKN-OteiyKD9.cjs → diagram-YEKJPTXX-CeQjir5H.cjs} +2 -2
  71. package/dist/diagram-ZIFT7M5P-BHePHmHl.cjs +3 -0
  72. package/dist/{diagram-VSXAHHWV-l9f6spkp.js → diagram-ZIFT7M5P-CZOnEYez.js} +40 -25
  73. package/dist/{docxExport-DK8uhXvT.js → docxExport-Cyk5ToUi.js} +1 -1
  74. package/dist/{docxExport-Dt55TJ2h.cjs → docxExport-DF-PXilo.cjs} +1 -1
  75. package/dist/{ebnfDiagram-PWID7BFC-Bwmmg23f.js → ebnfDiagram-VR2GEFS7-Cr0a3Ho_.js} +5 -5
  76. package/dist/{ebnfDiagram-PWID7BFC-BQZKHpUr.cjs → ebnfDiagram-VR2GEFS7-cgyTJ-Xs.cjs} +1 -1
  77. package/dist/elk-IJKZMXRS-NO3xNT-V.cjs +27 -0
  78. package/dist/elk-IJKZMXRS-V31is6hS.js +47984 -0
  79. package/dist/{erDiagram-2YWLMYGG-RTHTTqyH.js → erDiagram-O2IAPWRE-CP06GjjM.js} +60 -56
  80. package/dist/{erDiagram-2YWLMYGG-CuEEIv1I.cjs → erDiagram-O2IAPWRE-CnkFrABC.cjs} +13 -13
  81. package/dist/eventmodeling-K75KTNOO-CMoz0K5S.js +3 -0
  82. package/dist/eventmodeling-K75KTNOO-DZdZrgwl.cjs +1 -0
  83. package/dist/flowDiagram-OXPTDLAJ-BdYr7Idm.cjs +1 -0
  84. package/dist/flowDiagram-OXPTDLAJ-R_xf7pNW.js +16 -0
  85. package/dist/{ganttDiagram-EL5Y4UJY-PTWIufq8.cjs → ganttDiagram-R7TSEDQI-Jhax10tw.cjs} +3 -3
  86. package/dist/{ganttDiagram-EL5Y4UJY-BTvevd1z.js → ganttDiagram-R7TSEDQI-y1bDU8Ba.js} +103 -92
  87. package/dist/gitGraph-VSP46ZUC-DoTshgkY.js +3 -0
  88. package/dist/gitGraph-VSP46ZUC-lawIO6K6.cjs +1 -0
  89. package/dist/{gitGraphDiagram-WWUBYQGX-D5yozoaq.cjs → gitGraphDiagram-XJZIOB7I-CLZLQcPk.cjs} +5 -5
  90. package/dist/{gitGraphDiagram-WWUBYQGX-Bh9F7wif.js → gitGraphDiagram-XJZIOB7I-CYZa0-Ct.js} +45 -45
  91. package/dist/info-OHQRW6UA-DPTZOb30.js +3 -0
  92. package/dist/info-OHQRW6UA-deop1PPz.cjs +1 -0
  93. package/dist/infoDiagram-5W2HQ5XZ-D8fJK3ph.cjs +2 -0
  94. package/dist/{infoDiagram-FKFFQAWI-D6en39j4.js → infoDiagram-5W2HQ5XZ-Dw_D4zI1.js} +5 -5
  95. package/dist/{ishikawaDiagram-5VMMS53U-CvVqTWku.js → ishikawaDiagram-K3B6WC7H-BeLiZFVY.js} +25 -25
  96. package/dist/{ishikawaDiagram-5VMMS53U-DN23jmFw.cjs → ishikawaDiagram-K3B6WC7H-DtjgiZAB.cjs} +2 -2
  97. package/dist/{journeyDiagram-EYS64GPL-CqhBN0KZ.js → journeyDiagram-COXZFDF6-B-qvdudB.js} +31 -31
  98. package/dist/{journeyDiagram-EYS64GPL-Co9rp-Q1.cjs → journeyDiagram-COXZFDF6-Dge2AV0B.cjs} +4 -4
  99. package/dist/{kanban-definition-UXKFOSKX-DzKPVjAq.cjs → kanban-definition-P3RFRI5V-C02YfFZv.cjs} +4 -4
  100. package/dist/{kanban-definition-UXKFOSKX-CWx_Y40t.js → kanban-definition-P3RFRI5V-D0XAXDl8.js} +42 -42
  101. package/dist/{line-D6gR53Af.cjs → line-5eGinYgh.cjs} +1 -1
  102. package/dist/{line-CwYnx9Ke.js → line-BTenwQwq.js} +1 -1
  103. package/dist/loadReferencedImage-C60bzMNm.cjs +1 -0
  104. package/dist/{loadReferencedImage-BKEDAhWQ.js → loadReferencedImage-XQS67fhR.js} +3 -1
  105. package/dist/mermaid-parser.core-BHBS1DqP.cjs +6 -0
  106. package/dist/{mermaid-parser.core-DLNlSmfj.js → mermaid-parser.core-CI12FMcX.js} +163 -163
  107. package/dist/mermaid.core-4MZ-Iwu7.cjs +43 -0
  108. package/dist/{mermaid.core-DI1iFk6G.js → mermaid.core-BJkDCzqA.js} +875 -1150
  109. package/dist/{mindmap-definition-THT77NOG-Bo3D8RRT.cjs → mindmap-definition-LZFPQGKD-CXV1hV3a.cjs} +3 -3
  110. package/dist/{mindmap-definition-THT77NOG-B9hdpQgy.js → mindmap-definition-LZFPQGKD-gYumvdwo.js} +78 -78
  111. package/dist/packet-JDAUHWVQ-Bcik24Kz.js +3 -0
  112. package/dist/packet-JDAUHWVQ-CrY7ylWJ.cjs +1 -0
  113. package/dist/{pegDiagram-XKGWAZYB-Cx-wZf4B.cjs → pegDiagram-BGZESJAR-BICf3jMN.cjs} +1 -1
  114. package/dist/{pegDiagram-XKGWAZYB-CIBfY2Ob.js → pegDiagram-BGZESJAR-Dw9pRv5d.js} +5 -5
  115. package/dist/pi-outpost-embed.cjs +9 -10
  116. package/dist/pi-outpost-embed.js +2833 -2786
  117. package/dist/pie-XZMESJXO-BYQC-ufi.js +3 -0
  118. package/dist/pie-XZMESJXO-WjCBboSE.cjs +1 -0
  119. package/dist/{pieDiagram-E7YTZNPT-BC-pW4cK.cjs → pieDiagram-CAPJLFHJ-CF8cTQpC.cjs} +2 -2
  120. package/dist/{pieDiagram-E7YTZNPT-SG9oy_nV.js → pieDiagram-CAPJLFHJ-uz37FR9I.js} +18 -18
  121. package/dist/{quadrantDiagram-AXDQQJYC-C65HQ6gT.js → quadrantDiagram-GDMTTRAM-C4rt8LIh.js} +40 -40
  122. package/dist/{quadrantDiagram-AXDQQJYC-zPfqM9Q4.cjs → quadrantDiagram-GDMTTRAM-D9SYFJ_P.cjs} +2 -2
  123. package/dist/radar-ABXABTNO-BoQ7hH7Z.cjs +1 -0
  124. package/dist/radar-ABXABTNO-MxbyaZja.js +3 -0
  125. package/dist/railroad-I3PHUGI6-DckUArT-.js +3 -0
  126. package/dist/railroad-I3PHUGI6-DuGTlHry.cjs +1 -0
  127. package/dist/railroad-abnf-LNEFI6M7-DmAJaMEu.js +3 -0
  128. package/dist/railroad-abnf-LNEFI6M7-DoWf9u55.cjs +1 -0
  129. package/dist/railroad-ebnf-DWYD2UWJ-Bf05ZyW1.cjs +1 -0
  130. package/dist/railroad-ebnf-DWYD2UWJ-CS2AUYSv.js +3 -0
  131. package/dist/railroad-peg-JR7BVNR7-B-nctVbV.js +3 -0
  132. package/dist/railroad-peg-JR7BVNR7-CcV5KH4m.cjs +1 -0
  133. package/dist/{railroadDiagram-O6MQD6OU-3JsgWyLe.cjs → railroadDiagram-SM67HX2B-GgesxX7v.cjs} +1 -1
  134. package/dist/{railroadDiagram-O6MQD6OU-DLBEWyaH.js → railroadDiagram-SM67HX2B-T5SG0kEf.js} +5 -5
  135. package/dist/{requirementDiagram-IS5BZ75X-DwrHgMzq.js → requirementDiagram-X7JNWC4A-BEeCszC1.js} +49 -45
  136. package/dist/{requirementDiagram-IS5BZ75X-D1BMLxZg.cjs → requirementDiagram-X7JNWC4A-BVzf-VRr.cjs} +11 -11
  137. package/dist/{sankeyDiagram-P5KCCOFB-D5BHxcxB.cjs → sankeyDiagram-UM26HJRW-CdBXqklJ.cjs} +3 -3
  138. package/dist/{sankeyDiagram-P5KCCOFB-CcT0ZbW6.js → sankeyDiagram-UM26HJRW-DLDVzhPm.js} +16 -16
  139. package/dist/{sequenceDiagram-WJ2MYXX4-DM6BpXMT.js → sequenceDiagram-ZO4K6R2Y-B8wM6a-A.js} +704 -619
  140. package/dist/sequenceDiagram-ZO4K6R2Y-ytX57BES.cjs +169 -0
  141. package/dist/stateDiagram-v2-TBUQTH76-BTuAbG28.cjs +291 -0
  142. package/dist/{chunk-ZLD2IHE6-CqnVd2rq.js → stateDiagram-v2-TBUQTH76-PRnBJSrY.js} +271 -174
  143. package/dist/swimlanes-N4OXWK64-41SBE_L2.cjs +1 -0
  144. package/dist/{swimlanes-V6O3JKXN-BR7rwPmC.js → swimlanes-N4OXWK64-DipLcZla.js} +1006 -1219
  145. package/dist/swimlanesDiagram-K3J5GTZL-D6tIMgkj.cjs +8 -0
  146. package/dist/swimlanesDiagram-K3J5GTZL-_MehEHMi.js +27 -0
  147. package/dist/timeline-definition-YOQAKGHF-D_LWHCSA.cjs +120 -0
  148. package/dist/{timeline-definition-24CTP7MA-BQmq-H07.js → timeline-definition-YOQAKGHF-h8_spxIb.js} +210 -206
  149. package/dist/treeView-D4JQ5SDB-C3ticT1s.cjs +1 -0
  150. package/dist/treeView-D4JQ5SDB-CEuRf8gK.js +3 -0
  151. package/dist/treemap-SAJKECNS-BwIfwvl-.cjs +1 -0
  152. package/dist/treemap-SAJKECNS-DiC0668-.js +3 -0
  153. package/dist/usecaseDiagram-VIAY4XPW-DCfwvERR.js +7187 -0
  154. package/dist/usecaseDiagram-VIAY4XPW-PJHZiyJN.cjs +328 -0
  155. package/dist/{vennDiagram-4TSXK5OY-BdzbrV6i.js → vennDiagram-BLWOH2XV-_zHkfDVB.js} +43 -43
  156. package/dist/{vennDiagram-4TSXK5OY-D5MMYyff.cjs → vennDiagram-BLWOH2XV-niExkaFk.cjs} +3 -3
  157. package/dist/wardley-7MLQ67FV-BoIyQQ0E.cjs +1 -0
  158. package/dist/wardley-7MLQ67FV-CFF6IT1d.js +3 -0
  159. package/dist/{wardleyDiagram-VM6X3IG4-Ccz1enMd.js → wardleyDiagram-YMQ3BMBF-BKvQkiZP.js} +17 -17
  160. package/dist/{wardleyDiagram-VM6X3IG4-DzZNzmB8.cjs → wardleyDiagram-YMQ3BMBF-btlDrKA6.cjs} +3 -3
  161. package/dist/xychartDiagram-TAQBALBS-CkNZcyIi.cjs +7 -0
  162. package/dist/{xychartDiagram-S5SC5T6Z-B-sQkN_B.js → xychartDiagram-TAQBALBS-DlfKpBG9.js} +34 -30
  163. package/package.json +2 -2
  164. package/dist/architecture-7GRP2DOG-BtgYGXkq.cjs +0 -1
  165. package/dist/architecture-7GRP2DOG-DBQ9eYgM.js +0 -3
  166. package/dist/c4Diagram-7LVT6UL2-BCrC0RQo.cjs +0 -38
  167. package/dist/channel-DcrLLvcO.cjs +0 -1
  168. package/dist/chunk-3NF5O7KM-B-DpUW2r.cjs +0 -168
  169. package/dist/chunk-4HAMMTFA-CtkrBT7X.cjs +0 -62
  170. package/dist/chunk-75Z2AOVW-DOXS9ORa.cjs +0 -2
  171. package/dist/chunk-DU6HZSFF-3Hhp3Fo5.cjs +0 -127
  172. package/dist/chunk-FOHPRMQF-BNNbqxGX.js +0 -21456
  173. package/dist/chunk-FOHPRMQF-tmTlwTeH.cjs +0 -161
  174. package/dist/chunk-GMAD6QVW-B6uvB_wz.cjs +0 -72
  175. package/dist/chunk-HLEWEB6X-aqFoPl02.cjs +0 -206
  176. package/dist/chunk-L3NEJ4N5-BaR_9rF3.js +0 -245
  177. package/dist/chunk-L3NEJ4N5-vW3qRjIb.cjs +0 -1
  178. package/dist/chunk-OSK3NFVY-DU2FGOlI.cjs +0 -10
  179. package/dist/chunk-P2QGCYS3-DWeL9spl.cjs +0 -1
  180. package/dist/chunk-ZLD2IHE6-BZxKwfuv.cjs +0 -231
  181. package/dist/classDiagram-CYGNFDIV-CQLOfBmz.cjs +0 -1
  182. package/dist/classDiagram-CYGNFDIV-DsnY_WNO.js +0 -30
  183. package/dist/classDiagram-v2-TLXNO2FR-CQLOfBmz.cjs +0 -1
  184. package/dist/classDiagram-v2-TLXNO2FR-DeNpu9ZP.js +0 -30
  185. package/dist/conversationHistory-BmpdU77I.cjs +0 -286
  186. package/dist/cynefin-OW5HDTMX-BmLJra-4.cjs +0 -1
  187. package/dist/cynefin-OW5HDTMX-CfYr_cVN.js +0 -3
  188. package/dist/dagre-BMKbPnPh.js +0 -1934
  189. package/dist/dagre-EEW2OxRU.cjs +0 -1
  190. package/dist/dagre-OS7QT2EB-BtJ6v_Nc.js +0 -425
  191. package/dist/dagre-OS7QT2EB-DFi6nnZc.cjs +0 -4
  192. package/dist/diagram-VSXAHHWV-BjsZz1JJ.cjs +0 -3
  193. package/dist/eventmodeling-NTZA5JFV-D57pc07U.cjs +0 -1
  194. package/dist/eventmodeling-NTZA5JFV-DUbGOrrF.js +0 -3
  195. package/dist/flowDiagram-T62WH6J4-YyzE7N5Z.cjs +0 -1
  196. package/dist/flowDiagram-T62WH6J4-ptBWC6KI.js +0 -16
  197. package/dist/gitGraph-4MIJSDKK-CY4IuhXZ.js +0 -3
  198. package/dist/gitGraph-4MIJSDKK-D97vaDci.cjs +0 -1
  199. package/dist/info-A6RAGUB7-Cx39sHYM.js +0 -3
  200. package/dist/info-A6RAGUB7-DT06-FB3.cjs +0 -1
  201. package/dist/infoDiagram-FKFFQAWI-NPtQF4vB.cjs +0 -2
  202. package/dist/loadReferencedImage-DlRgJ4vm.cjs +0 -1
  203. package/dist/mermaid-parser.core-CBiDgMLi.cjs +0 -6
  204. package/dist/mermaid.core-B3QcBB1O.cjs +0 -43
  205. package/dist/packet-AYTQ26CC-BGX2McoE.cjs +0 -1
  206. package/dist/packet-AYTQ26CC-IgkU2VYK.js +0 -3
  207. package/dist/pie-WAS4IAKB-CEyPj3UJ.cjs +0 -1
  208. package/dist/pie-WAS4IAKB-odE0A7fM.js +0 -3
  209. package/dist/radar-RG4KPBEZ-ClYJNseM.cjs +0 -1
  210. package/dist/radar-RG4KPBEZ-DqbNqlJH.js +0 -3
  211. package/dist/railroad-74A4TZTK-Dzt4afqg.js +0 -3
  212. package/dist/railroad-74A4TZTK-hSKcr2y6.cjs +0 -1
  213. package/dist/railroad-abnf-HS5TGJTU-gq2RybTO.js +0 -3
  214. package/dist/railroad-abnf-HS5TGJTU-irEXz0eI.cjs +0 -1
  215. package/dist/railroad-ebnf-LZEXJU2U-CG19A1Xj.cjs +0 -1
  216. package/dist/railroad-ebnf-LZEXJU2U-D-pNpFrj.js +0 -3
  217. package/dist/railroad-peg-WCYAUIDC-BLdK3QCV.cjs +0 -1
  218. package/dist/railroad-peg-WCYAUIDC-Bo7wfe--.js +0 -3
  219. package/dist/sequenceDiagram-WJ2MYXX4-DlVJIIIl.cjs +0 -162
  220. package/dist/stateDiagram-XQSTLZYL-BhzcW44q.js +0 -220
  221. package/dist/stateDiagram-XQSTLZYL-mSOJx_Wv.cjs +0 -1
  222. package/dist/stateDiagram-v2-IH3M54BS-BE5CXOTu.js +0 -30
  223. package/dist/stateDiagram-v2-IH3M54BS-DAa6SuH4.cjs +0 -1
  224. package/dist/swimlanes-V6O3JKXN-BooYLGtP.cjs +0 -1
  225. package/dist/swimlanesDiagram-JKAHXJPX-BaMCBEUQ.cjs +0 -8
  226. package/dist/swimlanesDiagram-JKAHXJPX-lIPwQ8Mc.js +0 -30
  227. package/dist/timeline-definition-24CTP7MA-D6sSmprF.cjs +0 -120
  228. package/dist/treeView-Q6P3EWNA-BmkQxkVU.cjs +0 -1
  229. package/dist/treeView-Q6P3EWNA-CPEEGmNv.js +0 -3
  230. package/dist/treemap-WGGIJYW6-CGULpntJ.js +0 -3
  231. package/dist/treemap-WGGIJYW6-Dmi9HAR8.cjs +0 -1
  232. package/dist/wardley-WFR3VGLG-9zHZLKh9.js +0 -3
  233. package/dist/wardley-WFR3VGLG-B6YvLPJA.cjs +0 -1
  234. package/dist/xychartDiagram-S5SC5T6Z-BOsjfYJh.cjs +0 -7
@@ -1,19 +1,19 @@
1
1
  import { n as e } from "./rolldown-runtime-DArdT4gl.js";
2
2
  import { n as t } from "./chunk-Y2CYZVJY-CwsV_8W4.js";
3
3
  import { h as n, m as r, p as i } from "./src-Dkp7vqs8.js";
4
- import { $ as a, C as o, E as s, I as c, L as l, N as u, P as d, Q as f, S as p, T as m, V as h, W as g, X as _, Z as v, _ as y, b, c as x, g as S, l as C, m as w, n as T, p as E, q as D, r as O, s as k, t as ee, u as A, x as j } from "./chunk-DU6HZSFF-BW30DVuW.js";
5
- import { S as M, a as te, d as N, f as P, g as F, h as I, i as L, o as ne, v as re, x as ie, y as ae } from "./chunk-75Z2AOVW-DoA8rENV.js";
6
- import { r as oe } from "./chunk-PWAF6VOD-9dCi1q-p.js";
7
- import { i as se } from "./chunk-GMAD6QVW-DZ2r0pLj.js";
8
- import "./chunk-P2QGCYS3-BoMkrMIF.js";
9
- import { a as ce } from "./chunk-4HAMMTFA-C2YXJpQw.js";
10
- import { i as le, n as ue, r as de, t as fe } from "./chunk-GVQU2GXP-BhLneNgJ.js";
11
- import { a as pe, c as me, i as R, l as z, n as he, r as ge, s as _e, t as ve } from "./chunk-OSK3NFVY-BUXOUgUl.js";
12
- import { t as ye } from "./graphlib-CQa_B3rm.js";
13
- import { n as be, t as xe } from "./chunk-L3NEJ4N5-BaR_9rF3.js";
14
- //#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-CLGD4ZFX.mjs
15
- var Se = /* @__PURE__ */ t((e) => {
16
- let { securityLevel: t } = j(), n = i("body");
4
+ import { $ as a, I as o, J as s, K as c, L as l, N as u, P as d, Q as f, S as p, T as m, V as h, W as g, Z as _, b as v, c as y, et as b, f as x, g as S, j as C, l as w, m as T, n as E, p as D, r as O, s as k, t as A, u as j, w as M, x as N, y as P } from "./chunk-VPRB5NB3-DJh7spRO.js";
5
+ import { C as F, S as I, _ as L, a as R, b as z, f as ee, g as te, i as ne, l as re, o as ie, p as ae, y as oe } from "./chunk-3YJQHVM4-BNbfg-7y.js";
6
+ import { r as se } from "./chunk-HJ2JQQFS-CgYTXthn.js";
7
+ import { a as ce } from "./chunk-E2ZNV5FY-Bu796yUY.js";
8
+ import { t as le } from "./chunk-DUW6YSOI-CVhxvrBO.js";
9
+ import "./chunk-4EA7E6EY-B5P7n2an.js";
10
+ import { o as ue } from "./chunk-XC4XBNZT-CSiWBPH9.js";
11
+ import { r as de } from "./chunk-DBDB3WZW-DpEOsLsQ.js";
12
+ import { a as fe, c as B, i as pe, l as me } from "./chunk-2BW5OAIV-DWtmlmt_.js";
13
+ import { r as he } from "./chunk-NTY3LDVX-CvRtOCpm.js";
14
+ //#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-Z6ETV63D.mjs
15
+ var ge = /* @__PURE__ */ t((e) => {
16
+ let { securityLevel: t } = v(), n = i("body");
17
17
  if (t === "sandbox") {
18
18
  let t = i(`#i${e}`).node()?.contentDocument ?? document;
19
19
  n = i(t.body);
@@ -22,420 +22,97 @@ var Se = /* @__PURE__ */ t((e) => {
22
22
  }, "selectSvgElement");
23
23
  //#endregion
24
24
  //#region ../node_modules/es-toolkit/dist/compat/_internal/isPrototype.mjs
25
- function Ce(e) {
25
+ function _e(e) {
26
26
  let t = e?.constructor;
27
27
  return e === (typeof t == "function" ? t.prototype : Object.prototype);
28
28
  }
29
29
  //#endregion
30
30
  //#region ../node_modules/es-toolkit/dist/compat/predicate/isEmpty.mjs
31
- function we(e) {
31
+ function ve(e) {
32
32
  if (e == null) return !0;
33
- if (ie(e)) return typeof e.splice != "function" && typeof e != "string" && !M(e) && !re(e) && !ae(e) ? !1 : e.length === 0;
33
+ if (I(e)) return typeof e.splice != "function" && typeof e != "string" && !F(e) && !oe(e) && !z(e) ? !1 : e.length === 0;
34
34
  if (typeof e == "object" || typeof e == "function") {
35
35
  if (e instanceof Map || e instanceof Set) return e.size === 0;
36
36
  let t = Object.keys(e);
37
- return Ce(e) ? t.filter((e) => e !== "constructor").length === 0 : t.length === 0;
37
+ return _e(e) ? t.filter((e) => e !== "constructor").length === 0 : t.length === 0;
38
38
  }
39
39
  return !0;
40
40
  }
41
41
  //#endregion
42
- //#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-LQGUR6SS.mjs
43
- var Te = {
42
+ //#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-SVEVUXB4.mjs
43
+ var ye = {
44
44
  common: k,
45
- getConfig: b,
46
- insertCluster: be,
47
- insertEdge: R,
48
- insertEdgeLabel: pe,
49
- insertMarkers: _e,
45
+ getConfig: P,
46
+ insertCluster: he,
47
+ insertEdge: pe,
48
+ insertEdgeLabel: fe,
49
+ insertMarkers: B,
50
50
  insertNode: de,
51
- interpolateToCurve: N,
52
- labelHelper: ce,
51
+ interpolateToCurve: ee,
52
+ labelHelper: ue,
53
53
  log: r,
54
54
  positionEdgeLabel: me
55
- }, Ee = {}, De = /* @__PURE__ */ t((e) => {
56
- for (let t of e) Ee[t.name] = t;
57
- }, "registerLayoutLoaders");
55
+ }, be = [
56
+ "elk.stress",
57
+ "elk.force",
58
+ "elk.mrtree",
59
+ "elk.sporeOverlap",
60
+ "elk.box",
61
+ "elk.rectpacking"
62
+ ], xe = /* @__PURE__ */ Object.create(null), Se = /* @__PURE__ */ t((e) => {
63
+ for (let t of e) xe[t.name] = t;
64
+ }, "registerLayoutLoaders"), Ce = /* @__PURE__ */ t(() => {
65
+ let e = /* @__PURE__ */ t(async () => await import("./elk-IJKZMXRS-V31is6hS.js"), "loader");
66
+ return [{
67
+ name: "elk",
68
+ loader: e,
69
+ algorithm: "elk.layered"
70
+ }, ...be.map((t) => ({
71
+ name: t,
72
+ loader: e,
73
+ algorithm: t
74
+ }))];
75
+ }, "elkLayoutLoaders");
58
76
  (/* @__PURE__ */ t(() => {
59
- De([
77
+ Se([
60
78
  {
61
79
  name: "dagre",
62
- loader: /* @__PURE__ */ t(async () => await import("./dagre-OS7QT2EB-BtJ6v_Nc.js"), "loader")
80
+ loader: /* @__PURE__ */ t(async () => await import("./dagre-W4DXFKR2-ECmxkO0T.js"), "loader")
63
81
  },
64
82
  {
65
83
  name: "swimlane",
66
- loader: /* @__PURE__ */ t(async () => await import("./swimlanes-V6O3JKXN-BR7rwPmC.js"), "loader")
84
+ loader: /* @__PURE__ */ t(async () => await import("./swimlanes-N4OXWK64-DipLcZla.js"), "loader")
67
85
  },
68
86
  {
69
87
  name: "cose-bilkent",
70
88
  loader: /* @__PURE__ */ t(async () => await import("./cose-bilkent-JH36ORCC-qPjrc3_9.js"), "loader")
71
- }
89
+ },
90
+ ...Ce()
72
91
  ]);
73
92
  }, "registerDefaultLayoutLoaders"))();
74
- var Oe = /* @__PURE__ */ t(async (e, t) => {
75
- if (!(e.layoutAlgorithm in Ee)) throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);
93
+ var we = /* @__PURE__ */ t(async (e, t) => {
94
+ if (!Object.hasOwn(xe, e.layoutAlgorithm)) throw Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);
76
95
  if (e.diagramId) for (let t of e.nodes) {
77
96
  let n = t.domId || t.id;
78
97
  t.domId = `${e.diagramId}-${n}`;
79
98
  }
80
- let n = Ee[e.layoutAlgorithm], r = await n.loader(), { theme: i, themeVariables: a } = e.config, { useGradient: o, gradientStart: s, gradientStop: c } = a, l = t.attr("id");
81
- if (t.append("defs").append("filter").attr("id", `${l}-drop-shadow`).attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", `${i?.includes("dark") ? "#FFFFFF" : "#000000"}`), t.append("defs").append("filter").attr("id", `${l}-drop-shadow-small`).attr("height", "150%").attr("width", "150%").append("feDropShadow").attr("dx", "2").attr("dy", "2").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", `${i?.includes("dark") ? "#FFFFFF" : "#000000"}`), o) {
82
- let e = t.append("linearGradient").attr("id", t.attr("id") + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
83
- e.append("svg:stop").attr("offset", "0%").attr("stop-color", s).attr("stop-opacity", 1), e.append("svg:stop").attr("offset", "100%").attr("stop-color", c).attr("stop-opacity", 1);
84
- }
85
- return r.render(e, t, Te, { algorithm: n.algorithm });
86
- }, "render"), ke = /* @__PURE__ */ t((e = "", { fallback: t = "dagre" } = {}) => {
87
- if (e in Ee) return e;
88
- if (t in Ee) return r.warn(`Layout algorithm ${e} is not registered. Using ${t} as fallback.`), t;
89
- throw Error(`Both layout algorithms ${e} and ${t} are not registered.`);
99
+ let n = xe[e.layoutAlgorithm], r = await n.loader();
100
+ return le(t, e.config), r.render(e, t, ye, { algorithm: n.algorithm });
101
+ }, "render"), Te = "dagre", Ee = /* @__PURE__ */ t((e = "", { fallback: t = Te } = {}) => {
102
+ if (Object.hasOwn(xe, e)) return e;
103
+ for (let n of [t, Te]) if (Object.hasOwn(xe, n)) return r.warn(`Layout algorithm ${e} is not registered. Using ${n} as fallback.`), n;
104
+ throw Error(`Neither layout algorithm ${e}, ${t}, nor ${Te} is registered.`);
90
105
  }, "getRegisteredLayoutAlgorithm");
91
106
  //#endregion
92
- //#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-H2I77ZZE.mjs
93
- function Ae(e, { edgePathsClass: t = "edges edgePath" } = {}) {
94
- let n = e.insert("g").attr("class", "root");
95
- return {
96
- clusters: n.insert("g").attr("class", "clusters"),
97
- edgePaths: n.insert("g").attr("class", t),
98
- edgeLabels: n.insert("g").attr("class", "edgeLabels"),
99
- nodes: n.insert("g").attr("class", "nodes"),
100
- rootGroups: n
101
- };
102
- }
103
- t(Ae, "createLayoutElementGroups");
104
- async function je(e, t) {
105
- if (t.label) {
106
- let { shapeSvg: n, bbox: r } = await ce(e, t);
107
- t.labelBBox = {
108
- width: r.width,
109
- height: r.height
110
- }, n.remove();
111
- } else t.labelBBox = {
112
- width: 0,
113
- height: 0
114
- };
115
- }
116
- t(je, "measureGroupLabel");
117
- async function Me(e, t, n) {
118
- let r = await de(e, t, n), i = r.node()?.getBBox() ?? {
119
- width: 0,
120
- height: 0
121
- };
122
- return t.width = i.width, t.height = i.height, r;
123
- }
124
- t(Me, "insertMeasuredNode");
125
- async function Ne(e, t) {
126
- let n = new ye({
127
- multigraph: !0,
128
- compound: !0
129
- }), r = [...t.edges], i = j(), a = Ae(e), { edgeLabels: o, nodes: s } = a, c = /* @__PURE__ */ new Map(), l = e.node() != null;
130
- await Promise.all(t.nodes.map(async (e) => {
131
- if (e.isGroup) l && await je(s, e), n.setNode(e.id, { ...e });
132
- else {
133
- if (l) {
134
- let t = await Me(s, e, {
135
- config: i,
136
- dir: e.dir
137
- });
138
- c.set(e.id, t);
139
- }
140
- n.setNode(e.id, { ...e });
141
- }
142
- }));
143
- for (let e of r) l && ge(e) && await pe(o, e), n.setEdge(e.start, e.end, { ...e }, e.id), t.edges.some((t) => t.id === e.id) || t.edges.push(e);
144
- if (globalThis.mermaidCaptureSizes) {
145
- let { captureNodeSizes: n } = await import("./sizeCapture-INFHLROL-B5Lg3qGn.js");
146
- n(e, t);
147
- }
148
- return {
149
- graph: n,
150
- groups: a,
151
- nodeElements: c
152
- };
153
- }
154
- t(Ne, "createGraphWithElements");
155
- var B = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), Pe = /* @__PURE__ */ new Map(), Fe = /* @__PURE__ */ t(() => {
156
- V.clear(), Pe.clear(), B.clear();
157
- }, "clear"), Ie = /* @__PURE__ */ t((e, t) => {
158
- let n = V.get(t) || [];
159
- return r.trace("In isDescendant", t, " ", e, " = ", n.includes(e)), n.includes(e);
160
- }, "isDescendant"), Le = /* @__PURE__ */ t((e, t) => {
161
- let n = V.get(t) || [];
162
- return r.info("Descendants of ", t, " is ", n), r.info("Edge is ", e), e.v === t || e.w === t ? !1 : n ? n.includes(e.v) || Ie(e.v, t) || Ie(e.w, t) || n.includes(e.w) : (r.debug("Tilt, ", t, ",not in descendants"), !1);
163
- }, "edgeInCluster"), Re = /* @__PURE__ */ t((e, t, n, i) => {
164
- r.debug("Copying children of ", e, "root", i, "data", t.node(e), i);
165
- let a = t.children(e) || [];
166
- e !== i && a.push(e), r.debug("Copying (nodes) clusterId", e, "nodes", a), a.forEach((a) => {
167
- if (t.children(a).length > 0) Re(a, t, n, i);
168
- else {
169
- let o = t.node(a);
170
- r.info("cp ", a, " to ", i, " with parent ", e), n.setNode(a, o), i !== t.parent(a) && (r.debug("Setting parent", a, t.parent(a)), n.setParent(a, t.parent(a))), e !== i && a !== e ? (r.debug("Setting parent", a, e), n.setParent(a, e)) : (r.info("In copy ", e, "root", i, "data", t.node(e), i), r.debug("Not Setting parent for node=", a, "cluster!==rootId", e !== i, "node!==clusterId", a !== e));
171
- let s = t.edges(a);
172
- r.debug("Copying Edges", s), s.forEach((a) => {
173
- r.info("Edge", a);
174
- let o = t.edge(a.v, a.w, a.name);
175
- r.info("Edge data", o, i);
176
- try {
177
- Le(a, i) ? (r.info("Copying as ", a.v, a.w, o, a.name), n.setEdge(a.v, a.w, o, a.name), r.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]))) : r.info("Skipping copy of edge ", a.v, "-->", a.w, " rootId: ", i, " clusterId:", e);
178
- } catch (e) {
179
- r.error(e);
180
- }
181
- });
182
- }
183
- r.debug("Removing node", a), t.removeNode(a);
184
- });
185
- }, "copy"), ze = /* @__PURE__ */ t((e, t) => {
186
- let n = t.children(e), r = [...n];
187
- for (let i of n) Pe.set(i, e), r = [...r, ...ze(i, t)];
188
- return r;
189
- }, "extractDescendants"), Be = /* @__PURE__ */ t((e, t, n) => {
190
- let r = e.edges().filter((e) => e.v === t || e.w === t), i = e.edges().filter((e) => e.v === n || e.w === n), a = r.map((e) => ({
191
- v: e.v === t ? n : e.v,
192
- w: e.w === t ? t : e.w
193
- })), o = i.map((e) => ({
194
- v: e.v,
195
- w: e.w
196
- }));
197
- return a.filter((e) => o.some((t) => e.v === t.v && e.w === t.w));
198
- }, "findCommonEdges"), Ve = /* @__PURE__ */ t((e, t, n) => {
199
- let i = t.children(e);
200
- if (r.trace("Searching children of id ", e, i), i.length < 1) return e;
201
- let a;
202
- for (let e of i) {
203
- let r = Ve(e, t, n), i = Be(t, n, r);
204
- if (r) {
205
- if (i.length > 0) a = r;
206
- else return r;
207
- }
208
- }
209
- return a;
210
- }, "findNonClusterChild"), He = /* @__PURE__ */ t((e) => !B.has(e) || !B.get(e).externalConnections ? e : B.has(e) ? B.get(e).id : e, "getAnchorId"), Ue = /* @__PURE__ */ t((e, t) => {
211
- if (!e || t > 10) {
212
- r.debug("Opting out, no graph ");
213
- return;
214
- }
215
- r.debug("Opting in, graph "), e.nodes().forEach(function(t) {
216
- e.children(t).length > 0 && (r.debug("Cluster identified", t, " Replacement id in edges: ", Ve(t, e, t)), V.set(t, ze(t, e)), B.set(t, {
217
- id: Ve(t, e, t),
218
- clusterData: e.node(t)
219
- }));
220
- }), e.nodes().forEach(function(t) {
221
- let n = e.children(t), i = e.edges();
222
- n.length > 0 ? (r.debug("Cluster identified", t, V), i.forEach((e) => {
223
- Ie(e.v, t) ^ Ie(e.w, t) && (r.debug("Edge: ", e, " leaves cluster ", t), r.debug("Descendants of XXX ", t, ": ", V.get(t)), B.get(t).externalConnections = !0);
224
- })) : r.debug("Not a cluster ", t, V);
225
- });
226
- for (let t of B.keys()) {
227
- let n = B.get(t).id, r = e.parent(n);
228
- r !== t && B.has(r) && !B.get(r).externalConnections && (B.get(t).id = r);
229
- let i = e.edges().some((e) => e.v === t);
230
- if (n && B.get(t)?.externalConnections && i && qe(e, n, t)) {
231
- let r = Je(e, t, e.parent(n));
232
- r && (B.get(t).id = r);
233
- }
234
- }
235
- e.edges().forEach(function(t) {
236
- let n = e.edge(t);
237
- r.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(t)), r.debug("Edge " + t.v + " -> " + t.w + ": " + JSON.stringify(e.edge(t)));
238
- let i = t.v, a = t.w;
239
- if (r.debug("Fix XXX", B, "ids:", t.v, t.w, "Translating: ", B.get(t.v), " --- ", B.get(t.w)), B.get(t.v) || B.get(t.w)) {
240
- if (r.debug("Fixing and trying - removing XXX", t.v, t.w, t.name), i = He(t.v), a = He(t.w), e.removeEdge(t.v, t.w, t.name), i !== t.v) {
241
- let r = e.parent(i);
242
- B.get(r).externalConnections = !0, n.fromCluster = t.v;
243
- }
244
- if (a !== t.w) {
245
- let r = e.parent(a);
246
- B.get(r).externalConnections = !0, n.toCluster = t.w;
247
- }
248
- r.debug("Fix Replacing with XXX", i, a, t.name), e.setEdge(i, a, n, t.name);
249
- }
250
- }), We(e, 0), r.trace(B);
251
- }, "adjustClustersAndEdges"), We = /* @__PURE__ */ t((e, t) => {
252
- if (t > 10) {
253
- r.error("Bailing out");
254
- return;
255
- }
256
- let n = e.nodes(), i = !1;
257
- for (let t of n) {
258
- let n = e.children(t);
259
- i ||= n.length > 0;
260
- }
261
- if (!i) {
262
- r.debug("Done, no node has children", e.nodes());
263
- return;
264
- }
265
- r.debug("Nodes = ", n, t);
266
- for (let i of n) if (r.debug("Extracting node", i, B, B.has(i) && !B.get(i).externalConnections, !e.parent(i), e.node(i), e.children("D"), " Depth ", t), !B.has(i)) r.debug("Not a cluster", i, t);
267
- else if (!B.get(i).externalConnections && e.children(i) && e.children(i).length > 0) {
268
- r.debug("Cluster without external connections, without a parent and with children", i, t);
269
- let n = e.graph().rankdir === "TB" ? "LR" : "TB";
270
- B.get(i)?.clusterData?.dir && (n = B.get(i).clusterData.dir, r.debug("Fixing dir", B.get(i).clusterData.dir, n));
271
- let a = new ye({
272
- multigraph: !0,
273
- compound: !0
274
- }).setGraph({
275
- rankdir: n,
276
- nodesep: 50,
277
- ranksep: 50,
278
- marginx: 8,
279
- marginy: 8
280
- }).setDefaultEdgeLabel(function() {
281
- return {};
282
- });
283
- Re(i, e, a, i), e.setNode(i, {
284
- clusterNode: !0,
285
- id: i,
286
- clusterData: B.get(i).clusterData,
287
- label: B.get(i).label,
288
- graph: a
289
- });
290
- } else r.debug("Cluster ** ", i, " **not meeting the criteria !externalConnections:", !B.get(i).externalConnections, " no parent: ", !e.parent(i), " children ", e.children(i) && e.children(i).length > 0, e.children("D"), t), r.debug(B);
291
- n = e.nodes(), r.debug("New list of nodes", n);
292
- for (let i of n) {
293
- let n = e.node(i);
294
- r.debug(" Now next level", i, n), n?.clusterNode && We(n.graph, t + 1);
295
- }
296
- }, "extractor"), Ge = /* @__PURE__ */ t((e, t) => {
297
- if (t.length === 0) return [];
298
- let n = Object.assign([], t);
299
- return t.forEach((t) => {
300
- let r = Ge(e, e.children(t));
301
- n = [...n, ...r];
302
- }), n;
303
- }, "sorter"), Ke = /* @__PURE__ */ t((e) => Ge(e, e.children()), "sortNodesByHierarchy"), qe = /* @__PURE__ */ t((e, t, n) => {
304
- let r = e.parent(t);
305
- for (; r && r !== n;) {
306
- let t = B.get(r);
307
- if (t && !t.externalConnections) return !0;
308
- r = e.parent(r);
309
- }
310
- return !1;
311
- }, "isNodeInExtractableCluster"), Je = /* @__PURE__ */ t((e, t, n) => {
312
- let r = e.children(t) ?? [];
313
- for (let i of r) {
314
- if (i === n || Ie(i, n)) continue;
315
- let r = Ve(i, e, t);
316
- if (r && !qe(e, r, t)) return r;
317
- }
318
- return null;
319
- }, "findSafeAnchorNode");
320
- function Ye({ prepareLayout: e, measureLayout: n, runLayoutCore: r, paintLayout: i, afterPaint: a, paintOptions: o }) {
321
- let s = n ?? Ze;
322
- return /* @__PURE__ */ t(async function(t, n, c, l) {
323
- let u = n.select("g");
324
- (c?.insertMarkers ?? _e)(u, t.markers, t.type, t.diagramId), Xe();
325
- let d = {
326
- element: u,
327
- helpers: c,
328
- options: l
329
- };
330
- d.preparedLayout = await e?.(t, d);
331
- let f = await s(t, d), p = await r(t, d), m = {
332
- ...d,
333
- measure: f
334
- };
335
- i ? await i(t, m, p) : await Qe(t, m, o), await a?.(t, m, p);
336
- }, "render");
337
- }
338
- t(Ye, "createCommonLayoutRenderer");
339
- function Xe() {
340
- fe(), ve(), xe(), Fe();
341
- }
342
- t(Xe, "clearLayoutRenderState");
343
- async function Ze(e, { element: t }) {
344
- return await Ne(t, e);
345
- }
346
- t(Ze, "defaultMeasureLayout");
347
- async function Qe(e, t, n = {}) {
348
- let { measure: r } = t, { groups: i } = r;
349
- for (let r of n.getNodes?.(e, t) ?? e.nodes) n.skipNode?.(r, t) || await $e(i, r, t, n);
350
- let a = tt(e.nodes);
351
- for (let r of e.edges) nt(r, n) || await rt(i, r, a, e, n, t);
352
- }
353
- t(Qe, "paintLayoutData");
354
- async function $e(e, t, n, r) {
355
- t.clusterNode ? le(t) : et(t, n, r) ? await be(e.clusters, t) : le(t);
356
- }
357
- t($e, "paintLayoutNode");
358
- function et(e, t, n) {
359
- return e.isGroup === !0 && (n.isCluster?.(e, t) ?? !0);
360
- }
361
- t(et, "shouldPaintAsCluster");
362
- function tt(e) {
363
- let t = /* @__PURE__ */ new Map();
364
- for (let n of e) n?.id && t.set(n.id, n);
365
- return t;
366
- }
367
- t(tt, "buildNodeLookup");
368
- function nt(e, t) {
369
- return e.isLayoutOnly || !!t.skipEdge?.(e);
370
- }
371
- t(nt, "shouldSkipPaintEdge");
372
- async function rt(e, t, n, r, i, a) {
373
- let o = R(e.edgePaths, { ...t }, i.clusterDb ?? /* @__PURE__ */ new Map(), r.type, it(t.start, t, n, a, i), it(t.end, t, n, a, i), r.diagramId, at(t, i));
374
- ge(t) && (he.has(t.id) || await pe(e.edgeLabels, t), ot(t, o));
375
- }
376
- t(rt, "paintLayoutEdge");
377
- function it(e, t, n, r, i) {
378
- return i.getEdgeNode?.(e, t, r) ?? (e ? n.get(e) ?? {} : {});
379
- }
380
- t(it, "getRenderedNode");
381
- function at(e, t) {
382
- return typeof t.skipIntersect == "function" ? t.skipIntersect(e) : t.skipIntersect ?? !1;
383
- }
384
- t(at, "shouldSkipIntersect");
385
- function ot(e, t) {
386
- let n = t?.updatedPath ?? t?.originalPath, i = b(), { subGraphTitleTotalMargin: a } = ue({ flowchart: i.flowchart ?? {} });
387
- if (e.label) {
388
- let i = he.get(e.id), o = e.x, s = e.y;
389
- if (n) {
390
- let i = F.calcLabelPosition(n);
391
- r.debug("Moving label " + e.label + " from (", o, ",", s, ") to (", i.x, ",", i.y, ") abc88"), t?.updatedPath && (o = i.x, s = i.y);
392
- }
393
- i.attr("transform", `translate(${o}, ${s + a / 2})`);
394
- }
395
- if (e?.startLabelLeft) {
396
- let t = z.get(e.id).startLeft, r = e?.x, i = e?.y;
397
- if (n) {
398
- let t = F.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", n);
399
- r = t.x, i = t.y;
400
- }
401
- t.attr("transform", `translate(${r}, ${i})`);
402
- }
403
- if (e.startLabelRight) {
404
- let t = z.get(e.id).startRight, r = e.x, i = e.y;
405
- if (n) {
406
- let t = F.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", n);
407
- r = t.x, i = t.y;
408
- }
409
- t.attr("transform", `translate(${r}, ${i})`);
410
- }
411
- if (e.endLabelLeft) {
412
- let t = z.get(e.id).endLeft, r = e.x, i = e.y;
413
- if (n) {
414
- let t = F.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", n);
415
- r = t.x, i = t.y;
416
- }
417
- t.attr("transform", `translate(${r}, ${i})`);
418
- }
419
- if (e.endLabelRight) {
420
- let t = z.get(e.id).endRight, r = e.x, i = e.y;
421
- if (n) {
422
- let t = F.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", n);
423
- r = t.x, i = t.y;
424
- }
425
- t.attr("transform", `translate(${r}, ${i})`);
426
- }
427
- }
428
- t(ot, "positionRenderedEdgeLabel");
429
- //#endregion
430
107
  //#region ../node_modules/mermaid/dist/chunks/mermaid.core/chunk-LNGE3PJU.mjs
431
- function st(e) {
108
+ function De(e) {
432
109
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
433
110
  }
434
- t(st, "getDefaultExportFromCjs");
435
- var H = {}, ct = {}, U = {}, lt;
436
- function W() {
437
- if (lt) return U;
438
- lt = 1;
111
+ t(De, "getDefaultExportFromCjs");
112
+ var V = {}, Oe = {}, H = {}, ke;
113
+ function U() {
114
+ if (ke) return H;
115
+ ke = 1;
439
116
  function e(e) {
440
117
  return e == null;
441
118
  }
@@ -468,13 +145,13 @@ function W() {
468
145
  function o(e) {
469
146
  return e === 0 && 1 / e == -Infinity;
470
147
  }
471
- return t(o, "isNegativeZero"), U.isNothing = e, U.isObject = n, U.toArray = r, U.repeat = a, U.isNegativeZero = o, U.extend = i, U;
148
+ return t(o, "isNegativeZero"), H.isNothing = e, H.isObject = n, H.toArray = r, H.repeat = a, H.isNegativeZero = o, H.extend = i, H;
472
149
  }
473
- t(W, "requireCommon");
474
- var ut, dt;
475
- function G() {
476
- if (dt) return ut;
477
- dt = 1;
150
+ t(U, "requireCommon");
151
+ var Ae, je;
152
+ function W() {
153
+ if (je) return Ae;
154
+ je = 1;
478
155
  function e(e, t) {
479
156
  let n = "", r = e.reason || "(unknown reason)";
480
157
  return e.mark ? (e.mark.name && (n += "in \"" + e.mark.name + "\" "), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += "\n\n" + e.mark.snippet), r + " " + n) : r;
@@ -485,14 +162,14 @@ function G() {
485
162
  }
486
163
  return t(n, "YAMLException2"), n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n.prototype.toString = /* @__PURE__ */ t(function(t) {
487
164
  return this.name + ": " + e(this, t);
488
- }, "toString"), ut = n, ut;
489
- }
490
- t(G, "requireException");
491
- var ft, pt;
492
- function mt() {
493
- if (pt) return ft;
494
- pt = 1;
495
- let e = W();
165
+ }, "toString"), Ae = n, Ae;
166
+ }
167
+ t(W, "requireException");
168
+ var Me, Ne;
169
+ function Pe() {
170
+ if (Ne) return Me;
171
+ Ne = 1;
172
+ let e = U();
496
173
  function n(e, t, n, r, i) {
497
174
  let a = "", o = "", s = Math.floor(i / 2) - 1;
498
175
  return r - t > s && (a = " ... ", t = r - s + a.length), n - r > s && (o = " ...", n = r + s - o.length), {
@@ -524,14 +201,14 @@ function mt() {
524
201
  }
525
202
  return u.replace(/\n$/, "");
526
203
  }
527
- return t(i, "makeSnippet"), ft = i, ft;
204
+ return t(i, "makeSnippet"), Me = i, Me;
528
205
  }
529
- t(mt, "requireSnippet");
530
- var ht, gt;
531
- function K() {
532
- if (gt) return ht;
533
- gt = 1;
534
- let e = G(), n = [
206
+ t(Pe, "requireSnippet");
207
+ var Fe, Ie;
208
+ function G() {
209
+ if (Ie) return Fe;
210
+ Ie = 1;
211
+ let e = W(), n = [
535
212
  "kind",
536
213
  "multi",
537
214
  "resolve",
@@ -565,14 +242,14 @@ function K() {
565
242
  return e;
566
243
  }, this.instanceOf = a.instanceOf || null, this.predicate = a.predicate || null, this.represent = a.represent || null, this.representName = a.representName || null, this.defaultStyle = a.defaultStyle || null, this.multi = a.multi || !1, this.styleAliases = i(a.styleAliases || null), r.indexOf(this.kind) === -1) throw new e("Unknown kind \"" + this.kind + "\" is specified for \"" + t + "\" YAML type.");
567
244
  }
568
- return t(a, "Type2"), ht = a, ht;
245
+ return t(a, "Type2"), Fe = a, Fe;
569
246
  }
570
- t(K, "requireType");
571
- var _t, vt;
572
- function yt() {
573
- if (vt) return _t;
574
- vt = 1;
575
- let e = G(), n = K();
247
+ t(G, "requireType");
248
+ var Le, Re;
249
+ function ze() {
250
+ if (Re) return Le;
251
+ Re = 1;
252
+ let e = W(), n = G();
576
253
  function r(e, t) {
577
254
  let n = [];
578
255
  return e[t].forEach(function(e) {
@@ -622,53 +299,53 @@ function yt() {
622
299
  });
623
300
  let c = Object.create(a.prototype);
624
301
  return c.implicit = (this.implicit || []).concat(o), c.explicit = (this.explicit || []).concat(s), c.compiledImplicit = r(c, "implicit"), c.compiledExplicit = r(c, "explicit"), c.compiledTypeMap = i(c.compiledImplicit, c.compiledExplicit), c;
625
- }, "extend"), _t = a, _t;
302
+ }, "extend"), Le = a, Le;
626
303
  }
627
- t(yt, "requireSchema");
628
- var bt, xt;
629
- function St() {
630
- return xt ? bt : (xt = 1, bt = new (K())("tag:yaml.org,2002:str", {
304
+ t(ze, "requireSchema");
305
+ var Be, Ve;
306
+ function He() {
307
+ return Ve ? Be : (Ve = 1, Be = new (G())("tag:yaml.org,2002:str", {
631
308
  kind: "scalar",
632
309
  construct: /* @__PURE__ */ t(function(e) {
633
310
  return e === null ? "" : e;
634
311
  }, "construct")
635
- }), bt);
312
+ }), Be);
636
313
  }
637
- t(St, "requireStr");
638
- var Ct, wt;
639
- function Tt() {
640
- return wt ? Ct : (wt = 1, Ct = new (K())("tag:yaml.org,2002:seq", {
314
+ t(He, "requireStr");
315
+ var Ue, We;
316
+ function Ge() {
317
+ return We ? Ue : (We = 1, Ue = new (G())("tag:yaml.org,2002:seq", {
641
318
  kind: "sequence",
642
319
  construct: /* @__PURE__ */ t(function(e) {
643
320
  return e === null ? [] : e;
644
321
  }, "construct")
645
- }), Ct);
322
+ }), Ue);
646
323
  }
647
- t(Tt, "requireSeq");
648
- var Et, Dt;
649
- function Ot() {
650
- return Dt ? Et : (Dt = 1, Et = new (K())("tag:yaml.org,2002:map", {
324
+ t(Ge, "requireSeq");
325
+ var Ke, qe;
326
+ function Je() {
327
+ return qe ? Ke : (qe = 1, Ke = new (G())("tag:yaml.org,2002:map", {
651
328
  kind: "mapping",
652
329
  construct: /* @__PURE__ */ t(function(e) {
653
330
  return e === null ? {} : e;
654
331
  }, "construct")
655
- }), Et);
656
- }
657
- t(Ot, "requireMap");
658
- var kt, At;
659
- function jt() {
660
- return At ? kt : (At = 1, kt = new (yt())({ explicit: [
661
- St(),
662
- Tt(),
663
- Ot()
664
- ] }), kt);
665
- }
666
- t(jt, "requireFailsafe");
667
- var Mt, Nt;
668
- function Pt() {
669
- if (Nt) return Mt;
670
- Nt = 1;
671
- let e = K();
332
+ }), Ke);
333
+ }
334
+ t(Je, "requireMap");
335
+ var Ye, Xe;
336
+ function Ze() {
337
+ return Xe ? Ye : (Xe = 1, Ye = new (ze())({ explicit: [
338
+ He(),
339
+ Ge(),
340
+ Je()
341
+ ] }), Ye);
342
+ }
343
+ t(Ze, "requireFailsafe");
344
+ var Qe, $e;
345
+ function et() {
346
+ if ($e) return Qe;
347
+ $e = 1;
348
+ let e = G();
672
349
  function n(e) {
673
350
  if (e === null) return !0;
674
351
  let t = e.length;
@@ -682,7 +359,7 @@ function Pt() {
682
359
  function i(e) {
683
360
  return e === null;
684
361
  }
685
- return t(i, "isNull"), Mt = new e("tag:yaml.org,2002:null", {
362
+ return t(i, "isNull"), Qe = new e("tag:yaml.org,2002:null", {
686
363
  kind: "scalar",
687
364
  resolve: n,
688
365
  construct: r,
@@ -705,14 +382,14 @@ function Pt() {
705
382
  }, "empty")
706
383
  },
707
384
  defaultStyle: "lowercase"
708
- }), Mt;
709
- }
710
- t(Pt, "require_null");
711
- var Ft, It;
712
- function Lt() {
713
- if (It) return Ft;
714
- It = 1;
715
- let e = K();
385
+ }), Qe;
386
+ }
387
+ t(et, "require_null");
388
+ var tt, nt;
389
+ function rt() {
390
+ if (nt) return tt;
391
+ nt = 1;
392
+ let e = G();
716
393
  function n(e) {
717
394
  if (e === null) return !1;
718
395
  let t = e.length;
@@ -726,7 +403,7 @@ function Lt() {
726
403
  function i(e) {
727
404
  return Object.prototype.toString.call(e) === "[object Boolean]";
728
405
  }
729
- return t(i, "isBoolean"), Ft = new e("tag:yaml.org,2002:bool", {
406
+ return t(i, "isBoolean"), tt = new e("tag:yaml.org,2002:bool", {
730
407
  kind: "scalar",
731
408
  resolve: n,
732
409
  construct: r,
@@ -743,14 +420,14 @@ function Lt() {
743
420
  }, "camelcase")
744
421
  },
745
422
  defaultStyle: "lowercase"
746
- }), Ft;
747
- }
748
- t(Lt, "requireBool");
749
- var Rt, zt;
750
- function Bt() {
751
- if (zt) return Rt;
752
- zt = 1;
753
- let e = W(), n = K();
423
+ }), tt;
424
+ }
425
+ t(rt, "requireBool");
426
+ var it, at;
427
+ function ot() {
428
+ if (at) return it;
429
+ at = 1;
430
+ let e = U(), n = G();
754
431
  function r(e) {
755
432
  return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
756
433
  }
@@ -817,7 +494,7 @@ function Bt() {
817
494
  function l(t) {
818
495
  return Object.prototype.toString.call(t) === "[object Number]" && t % 1 == 0 && !e.isNegativeZero(t);
819
496
  }
820
- return t(l, "isInteger"), Rt = new n("tag:yaml.org,2002:int", {
497
+ return t(l, "isInteger"), it = new n("tag:yaml.org,2002:int", {
821
498
  kind: "scalar",
822
499
  resolve: o,
823
500
  construct: c,
@@ -843,14 +520,14 @@ function Bt() {
843
520
  decimal: [10, "dec"],
844
521
  hexadecimal: [16, "hex"]
845
522
  }
846
- }), Rt;
523
+ }), it;
847
524
  }
848
- t(Bt, "requireInt");
849
- var Vt, Ht;
850
- function Ut() {
851
- if (Ht) return Vt;
852
- Ht = 1;
853
- let e = W(), n = K(), r = /* @__PURE__ */ RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), i = /* @__PURE__ */ RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
525
+ t(ot, "requireInt");
526
+ var st, ct;
527
+ function lt() {
528
+ if (ct) return st;
529
+ ct = 1;
530
+ let e = U(), n = G(), r = /* @__PURE__ */ RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), i = /* @__PURE__ */ RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
854
531
  function a(e) {
855
532
  return e === null || !r.test(e) ? !1 : isFinite(parseFloat(e, 10)) ? !0 : i.test(e);
856
533
  }
@@ -885,36 +562,36 @@ function Ut() {
885
562
  function l(t) {
886
563
  return Object.prototype.toString.call(t) === "[object Number]" && (t % 1 != 0 || e.isNegativeZero(t));
887
564
  }
888
- return t(l, "isFloat"), Vt = new n("tag:yaml.org,2002:float", {
565
+ return t(l, "isFloat"), st = new n("tag:yaml.org,2002:float", {
889
566
  kind: "scalar",
890
567
  resolve: a,
891
568
  construct: o,
892
569
  predicate: l,
893
570
  represent: c,
894
571
  defaultStyle: "lowercase"
895
- }), Vt;
896
- }
897
- t(Ut, "requireFloat");
898
- var Wt, Gt;
899
- function Kt() {
900
- return Gt ? Wt : (Gt = 1, Wt = jt().extend({ implicit: [
901
- Pt(),
902
- Lt(),
903
- Bt(),
904
- Ut()
905
- ] }), Wt);
906
- }
907
- t(Kt, "requireJson");
908
- var qt, Jt;
909
- function Yt() {
910
- return Jt ? qt : (Jt = 1, qt = Kt(), qt);
911
- }
912
- t(Yt, "requireCore");
913
- var Xt, Zt;
914
- function Qt() {
915
- if (Zt) return Xt;
916
- Zt = 1;
917
- let e = K(), n = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), r = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
572
+ }), st;
573
+ }
574
+ t(lt, "requireFloat");
575
+ var ut, dt;
576
+ function ft() {
577
+ return dt ? ut : (dt = 1, ut = Ze().extend({ implicit: [
578
+ et(),
579
+ rt(),
580
+ ot(),
581
+ lt()
582
+ ] }), ut);
583
+ }
584
+ t(ft, "requireJson");
585
+ var pt, mt;
586
+ function ht() {
587
+ return mt ? pt : (mt = 1, pt = ft(), pt);
588
+ }
589
+ t(ht, "requireCore");
590
+ var gt, _t;
591
+ function vt() {
592
+ if (_t) return gt;
593
+ _t = 1;
594
+ let e = G(), n = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), r = /* @__PURE__ */ RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
918
595
  function i(e) {
919
596
  return e === null ? !1 : n.exec(e) !== null || r.exec(e) !== null;
920
597
  }
@@ -940,34 +617,34 @@ function Qt() {
940
617
  function o(e) {
941
618
  return e.toISOString();
942
619
  }
943
- return t(o, "representYamlTimestamp"), Xt = new e("tag:yaml.org,2002:timestamp", {
620
+ return t(o, "representYamlTimestamp"), gt = new e("tag:yaml.org,2002:timestamp", {
944
621
  kind: "scalar",
945
622
  resolve: i,
946
623
  construct: a,
947
624
  instanceOf: Date,
948
625
  represent: o
949
- }), Xt;
950
- }
951
- t(Qt, "requireTimestamp");
952
- var $t, en;
953
- function tn() {
954
- if (en) return $t;
955
- en = 1;
956
- let e = K();
626
+ }), gt;
627
+ }
628
+ t(vt, "requireTimestamp");
629
+ var yt, bt;
630
+ function xt() {
631
+ if (bt) return yt;
632
+ bt = 1;
633
+ let e = G();
957
634
  function n(e) {
958
635
  return e === "<<" || e === null;
959
636
  }
960
- return t(n, "resolveYamlMerge"), $t = new e("tag:yaml.org,2002:merge", {
637
+ return t(n, "resolveYamlMerge"), yt = new e("tag:yaml.org,2002:merge", {
961
638
  kind: "scalar",
962
639
  resolve: n
963
- }), $t;
964
- }
965
- t(tn, "requireMerge");
966
- var nn, rn;
967
- function an() {
968
- if (rn) return nn;
969
- rn = 1;
970
- let e = K();
640
+ }), yt;
641
+ }
642
+ t(xt, "requireMerge");
643
+ var St, Ct;
644
+ function wt() {
645
+ if (Ct) return St;
646
+ Ct = 1;
647
+ let e = G();
971
648
  function n(e) {
972
649
  if (e === null) return !1;
973
650
  let t = 0, n = e.length;
@@ -998,20 +675,20 @@ function an() {
998
675
  function a(e) {
999
676
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
1000
677
  }
1001
- return t(a, "isBinary"), nn = new e("tag:yaml.org,2002:binary", {
678
+ return t(a, "isBinary"), St = new e("tag:yaml.org,2002:binary", {
1002
679
  kind: "scalar",
1003
680
  resolve: n,
1004
681
  construct: r,
1005
682
  predicate: a,
1006
683
  represent: i
1007
- }), nn;
1008
- }
1009
- t(an, "requireBinary");
1010
- var on, sn;
1011
- function cn() {
1012
- if (sn) return on;
1013
- sn = 1;
1014
- let e = K(), n = Object.prototype.hasOwnProperty, r = Object.prototype.toString;
684
+ }), St;
685
+ }
686
+ t(wt, "requireBinary");
687
+ var Tt, Et;
688
+ function Dt() {
689
+ if (Et) return Tt;
690
+ Et = 1;
691
+ let e = G(), n = Object.prototype.hasOwnProperty, r = Object.prototype.toString;
1015
692
  function i(e) {
1016
693
  if (e === null) return !0;
1017
694
  let t = [], i = e;
@@ -1033,18 +710,18 @@ function cn() {
1033
710
  function a(e) {
1034
711
  return e === null ? [] : e;
1035
712
  }
1036
- return t(a, "constructYamlOmap"), on = new e("tag:yaml.org,2002:omap", {
713
+ return t(a, "constructYamlOmap"), Tt = new e("tag:yaml.org,2002:omap", {
1037
714
  kind: "sequence",
1038
715
  resolve: i,
1039
716
  construct: a
1040
- }), on;
1041
- }
1042
- t(cn, "requireOmap");
1043
- var ln, un;
1044
- function dn() {
1045
- if (un) return ln;
1046
- un = 1;
1047
- let e = K(), n = Object.prototype.toString;
717
+ }), Tt;
718
+ }
719
+ t(Dt, "requireOmap");
720
+ var Ot, kt;
721
+ function At() {
722
+ if (kt) return Ot;
723
+ kt = 1;
724
+ let e = G(), n = Object.prototype.toString;
1048
725
  function r(e) {
1049
726
  if (e === null) return !0;
1050
727
  let t = e, r = Array(t.length);
@@ -1067,18 +744,18 @@ function dn() {
1067
744
  }
1068
745
  return n;
1069
746
  }
1070
- return t(i, "constructYamlPairs"), ln = new e("tag:yaml.org,2002:pairs", {
747
+ return t(i, "constructYamlPairs"), Ot = new e("tag:yaml.org,2002:pairs", {
1071
748
  kind: "sequence",
1072
749
  resolve: r,
1073
750
  construct: i
1074
- }), ln;
1075
- }
1076
- t(dn, "requirePairs");
1077
- var fn, pn;
1078
- function mn() {
1079
- if (pn) return fn;
1080
- pn = 1;
1081
- let e = K(), n = Object.prototype.hasOwnProperty;
751
+ }), Ot;
752
+ }
753
+ t(At, "requirePairs");
754
+ var jt, Mt;
755
+ function Nt() {
756
+ if (Mt) return jt;
757
+ Mt = 1;
758
+ let e = G(), n = Object.prototype.hasOwnProperty;
1082
759
  function r(e) {
1083
760
  if (e === null) return !0;
1084
761
  let t = e;
@@ -1089,31 +766,31 @@ function mn() {
1089
766
  function i(e) {
1090
767
  return e === null ? {} : e;
1091
768
  }
1092
- return t(i, "constructYamlSet"), fn = new e("tag:yaml.org,2002:set", {
769
+ return t(i, "constructYamlSet"), jt = new e("tag:yaml.org,2002:set", {
1093
770
  kind: "mapping",
1094
771
  resolve: r,
1095
772
  construct: i
1096
- }), fn;
773
+ }), jt;
1097
774
  }
1098
- t(mn, "requireSet");
1099
- var hn, gn;
1100
- function _n() {
1101
- return gn ? hn : (gn = 1, hn = Yt().extend({
1102
- implicit: [Qt(), tn()],
775
+ t(Nt, "requireSet");
776
+ var Pt, Ft;
777
+ function It() {
778
+ return Ft ? Pt : (Ft = 1, Pt = ht().extend({
779
+ implicit: [vt(), xt()],
1103
780
  explicit: [
1104
- an(),
1105
- cn(),
1106
- dn(),
1107
- mn()
781
+ wt(),
782
+ Dt(),
783
+ At(),
784
+ Nt()
1108
785
  ]
1109
- }), hn);
1110
- }
1111
- t(_n, "require_default");
1112
- var vn;
1113
- function yn() {
1114
- if (vn) return ct;
1115
- vn = 1;
1116
- let e = W(), n = G(), r = mt(), i = _n(), a = Object.prototype.hasOwnProperty, o = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, s = /[\x85\u2028\u2029]/, c = /[,\[\]{}]/, l = /^(?:!|!!|![0-9A-Za-z-]+!)$/, u = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
786
+ }), Pt);
787
+ }
788
+ t(It, "require_default");
789
+ var Lt;
790
+ function Rt() {
791
+ if (Lt) return Oe;
792
+ Lt = 1;
793
+ let e = U(), n = W(), r = Pe(), i = It(), a = Object.prototype.hasOwnProperty, o = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, s = /[\x85\u2028\u2029]/, c = /[,\[\]{}]/, l = /^(?:!|!!|![0-9A-Za-z-]+!)$/, u = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
1117
794
  function d(e) {
1118
795
  return Object.prototype.toString.call(e);
1119
796
  }
@@ -1226,7 +903,7 @@ function yn() {
1226
903
  e.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
1227
904
  }
1228
905
  t(k, "beginAnchorTransaction");
1229
- function ee(e) {
906
+ function A(e) {
1230
907
  let t = e.anchorMapTransactions.pop(), n = e.anchorMapTransactions;
1231
908
  if (n.length === 0) return;
1232
909
  let r = n[n.length - 1], i = Object.keys(t);
@@ -1235,16 +912,16 @@ function yn() {
1235
912
  a.call(r, n) || (r[n] = t[n]);
1236
913
  }
1237
914
  }
1238
- t(ee, "commitAnchorTransaction");
1239
- function A(e) {
915
+ t(A, "commitAnchorTransaction");
916
+ function j(e) {
1240
917
  let t = e.anchorMapTransactions.pop(), n = Object.keys(t);
1241
918
  for (let r = n.length - 1; r >= 0; --r) {
1242
919
  let i = t[n[r]];
1243
920
  i.existed ? e.anchorMap[n[r]] = i.value : delete e.anchorMap[n[r]];
1244
921
  }
1245
922
  }
1246
- t(A, "rollbackAnchorTransaction");
1247
- function j(e) {
923
+ t(j, "rollbackAnchorTransaction");
924
+ function M(e) {
1248
925
  return {
1249
926
  position: e.position,
1250
927
  line: e.line,
@@ -1257,12 +934,12 @@ function yn() {
1257
934
  result: e.result
1258
935
  };
1259
936
  }
1260
- t(j, "snapshotState");
1261
- function M(e, t) {
937
+ t(M, "snapshotState");
938
+ function N(e, t) {
1262
939
  e.position = t.position, e.line = t.line, e.lineStart = t.lineStart, e.lineIndent = t.lineIndent, e.firstTabInLine = t.firstTabInLine, e.tag = t.tag, e.anchor = t.anchor, e.kind = t.kind, e.result = t.result;
1263
940
  }
1264
- t(M, "restoreState");
1265
- let te = {
941
+ t(N, "restoreState");
942
+ let P = {
1266
943
  YAML: /* @__PURE__ */ t(function(e, t, n) {
1267
944
  e.version !== null && E(e, "duplication of %YAML directive"), n.length !== 1 && E(e, "YAML directive accepts exactly one argument");
1268
945
  let r = /^([0-9]+)\.([0-9]+)$/.exec(n[0]);
@@ -1283,7 +960,7 @@ function yn() {
1283
960
  e.tagMap[i] = r;
1284
961
  }, "handleTagDirective")
1285
962
  };
1286
- function N(e, t, n, r) {
963
+ function F(e, t, n, r) {
1287
964
  if (t < n) {
1288
965
  let i = e.input.slice(t, n);
1289
966
  if (r) for (let t = 0, n = i.length; t < n; t += 1) {
@@ -1294,8 +971,8 @@ function yn() {
1294
971
  e.result += i;
1295
972
  }
1296
973
  }
1297
- t(N, "captureSegment");
1298
- function P(t, n, r, i) {
974
+ t(F, "captureSegment");
975
+ function I(t, n, r, i) {
1299
976
  e.isObject(r) || E(t, "cannot merge mappings; the provided source object is unacceptable");
1300
977
  let o = Object.keys(r);
1301
978
  for (let e = 0, s = o.length; e < s; e += 1) {
@@ -1303,47 +980,47 @@ function yn() {
1303
980
  t.maxTotalMergeKeys !== -1 && ++t.totalMergeKeys > t.maxTotalMergeKeys && E(t, "merge keys exceeded maxTotalMergeKeys (" + t.maxTotalMergeKeys + ")"), a.call(n, s) || (x(n, s, r[s]), i[s] = !0);
1304
981
  }
1305
982
  }
1306
- t(P, "mergeMappings");
1307
- function F(e, t, n, r, i, o, s, c, l) {
983
+ t(I, "mergeMappings");
984
+ function L(e, t, n, r, i, o, s, c, l) {
1308
985
  if (Array.isArray(i)) {
1309
986
  i = Array.prototype.slice.call(i);
1310
987
  for (let t = 0, n = i.length; t < n; t += 1) Array.isArray(i[t]) && E(e, "nested arrays are not supported inside keys"), typeof i == "object" && d(i[t]) === "[object Object]" && (i[t] = "[object Object]");
1311
988
  }
1312
989
  if (typeof i == "object" && d(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge") {
1313
- if (Array.isArray(o)) for (let r = 0, i = o.length; r < i; r += 1) P(e, t, o[r], n);
1314
- else P(e, t, o, n);
990
+ if (Array.isArray(o)) for (let r = 0, i = o.length; r < i; r += 1) I(e, t, o[r], n);
991
+ else I(e, t, o, n);
1315
992
  } else !e.json && !a.call(n, i) && a.call(t, i) && (e.line = s || e.line, e.lineStart = c || e.lineStart, e.position = l || e.position, E(e, "duplicated mapping key")), x(t, i, o), delete n[i];
1316
993
  return t;
1317
994
  }
1318
- t(F, "storeMappingPair");
1319
- function I(e) {
995
+ t(L, "storeMappingPair");
996
+ function R(e) {
1320
997
  let t = e.input.charCodeAt(e.position);
1321
998
  t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : E(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1322
999
  }
1323
- t(I, "readLineBreak");
1324
- function L(e, t, n) {
1000
+ t(R, "readLineBreak");
1001
+ function z(e, t, n) {
1325
1002
  let r = 0, i = e.input.charCodeAt(e.position);
1326
1003
  for (; i !== 0;) {
1327
1004
  for (; p(i);) i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
1328
1005
  if (t && i === 35) do
1329
1006
  i = e.input.charCodeAt(++e.position);
1330
1007
  while (i !== 10 && i !== 13 && i !== 0);
1331
- if (f(i)) for (I(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
1008
+ if (f(i)) for (R(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32;) e.lineIndent++, i = e.input.charCodeAt(++e.position);
1332
1009
  else break;
1333
1010
  }
1334
1011
  return n !== -1 && r !== 0 && e.lineIndent < n && D(e, "deficient indentation"), r;
1335
1012
  }
1336
- t(L, "skipSeparationSpace");
1337
- function ne(e) {
1013
+ t(z, "skipSeparationSpace");
1014
+ function ee(e) {
1338
1015
  let t = e.position, n = e.input.charCodeAt(t);
1339
1016
  return !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || m(n)));
1340
1017
  }
1341
- t(ne, "testDocumentSeparator");
1342
- function re(t, n) {
1018
+ t(ee, "testDocumentSeparator");
1019
+ function te(t, n) {
1343
1020
  n === 1 ? t.result += " " : n > 1 && (t.result += e.repeat("\n", n - 1));
1344
1021
  }
1345
- t(re, "writeFoldedLines");
1346
- function ie(e, t, n) {
1022
+ t(te, "writeFoldedLines");
1023
+ function ne(e, t, n) {
1347
1024
  let r, i, a, o, s, c, l = e.kind, u = e.result, d = e.input.charCodeAt(e.position);
1348
1025
  if (m(d) || h(d) || d === 35 || d === 38 || d === 42 || d === 33 || d === 124 || d === 62 || d === 39 || d === 34 || d === 37 || d === 64 || d === 96) return !1;
1349
1026
  if (d === 63 || d === 45) {
@@ -1356,36 +1033,36 @@ function yn() {
1356
1033
  if (m(t) || n && h(t)) break;
1357
1034
  } else if (d === 35) {
1358
1035
  if (m(e.input.charCodeAt(e.position - 1))) break;
1359
- } else if (e.position === e.lineStart && ne(e) || n && h(d)) break;
1036
+ } else if (e.position === e.lineStart && ee(e) || n && h(d)) break;
1360
1037
  else if (f(d)) {
1361
- if (o = e.line, s = e.lineStart, c = e.lineIndent, L(e, !1, -1), e.lineIndent >= t) {
1038
+ if (o = e.line, s = e.lineStart, c = e.lineIndent, z(e, !1, -1), e.lineIndent >= t) {
1362
1039
  a = !0, d = e.input.charCodeAt(e.position);
1363
1040
  continue;
1364
1041
  }
1365
1042
  e.position = i, e.line = o, e.lineStart = s, e.lineIndent = c;
1366
1043
  break;
1367
1044
  }
1368
- a &&= (N(e, r, i, !1), re(e, e.line - o), r = i = e.position, !1), p(d) || (i = e.position + 1), d = e.input.charCodeAt(++e.position);
1045
+ a &&= (F(e, r, i, !1), te(e, e.line - o), r = i = e.position, !1), p(d) || (i = e.position + 1), d = e.input.charCodeAt(++e.position);
1369
1046
  }
1370
- return N(e, r, i, !1), e.result ? !0 : (e.kind = l, e.result = u, !1);
1047
+ return F(e, r, i, !1), e.result ? !0 : (e.kind = l, e.result = u, !1);
1371
1048
  }
1372
- t(ie, "readPlainScalar");
1373
- function ae(e, t) {
1049
+ t(ne, "readPlainScalar");
1050
+ function re(e, t) {
1374
1051
  let n, r, i = e.input.charCodeAt(e.position);
1375
1052
  if (i !== 39) return !1;
1376
1053
  for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (i = e.input.charCodeAt(e.position)) !== 0;) if (i === 39) {
1377
- if (N(e, n, e.position, !0), i = e.input.charCodeAt(++e.position), i === 39) n = e.position, e.position++, r = e.position;
1054
+ if (F(e, n, e.position, !0), i = e.input.charCodeAt(++e.position), i === 39) n = e.position, e.position++, r = e.position;
1378
1055
  else return !0;
1379
- } else f(i) ? (N(e, n, r, !0), re(e, L(e, !1, t)), n = r = e.position) : e.position === e.lineStart && ne(e) ? E(e, "unexpected end of the document within a single quoted scalar") : (e.position++, p(i) || (r = e.position));
1056
+ } else f(i) ? (F(e, n, r, !0), te(e, z(e, !1, t)), n = r = e.position) : e.position === e.lineStart && ee(e) ? E(e, "unexpected end of the document within a single quoted scalar") : (e.position++, p(i) || (r = e.position));
1380
1057
  E(e, "unexpected end of the stream within a single quoted scalar");
1381
1058
  }
1382
- t(ae, "readSingleQuotedScalar");
1383
- function oe(e, t) {
1059
+ t(re, "readSingleQuotedScalar");
1060
+ function ie(e, t) {
1384
1061
  let n, r, i, a = e.input.charCodeAt(e.position);
1385
1062
  if (a !== 34) return !1;
1386
- for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (a = e.input.charCodeAt(e.position)) !== 0;) if (a === 34) return N(e, n, e.position, !0), e.position++, !0;
1063
+ for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (a = e.input.charCodeAt(e.position)) !== 0;) if (a === 34) return F(e, n, e.position, !0), e.position++, !0;
1387
1064
  else if (a === 92) {
1388
- if (N(e, n, e.position, !0), a = e.input.charCodeAt(++e.position), f(a)) L(e, !1, t);
1065
+ if (F(e, n, e.position, !0), a = e.input.charCodeAt(++e.position), f(a)) z(e, !1, t);
1389
1066
  else if (a < 256 && S[a]) e.result += C[a], e.position++;
1390
1067
  else if ((i = _(a)) > 0) {
1391
1068
  let t = i, n = 0;
@@ -1393,23 +1070,23 @@ function yn() {
1393
1070
  e.result += b(n), e.position++;
1394
1071
  } else E(e, "unknown escape sequence");
1395
1072
  n = r = e.position;
1396
- } else f(a) ? (N(e, n, r, !0), re(e, L(e, !1, t)), n = r = e.position) : e.position === e.lineStart && ne(e) ? E(e, "unexpected end of the document within a double quoted scalar") : (e.position++, p(a) || (r = e.position));
1073
+ } else f(a) ? (F(e, n, r, !0), te(e, z(e, !1, t)), n = r = e.position) : e.position === e.lineStart && ee(e) ? E(e, "unexpected end of the document within a double quoted scalar") : (e.position++, p(a) || (r = e.position));
1397
1074
  E(e, "unexpected end of the stream within a double quoted scalar");
1398
1075
  }
1399
- t(oe, "readDoubleQuotedScalar");
1400
- function se(e, t) {
1076
+ t(ie, "readDoubleQuotedScalar");
1077
+ function ae(e, t) {
1401
1078
  let n = !0, r, i, a, o = e.tag, s, c = e.anchor, l, u, d, f, p = /* @__PURE__ */ Object.create(null), h, g, _, v = e.input.charCodeAt(e.position);
1402
1079
  if (v === 91) l = 93, f = !1, s = [];
1403
1080
  else if (v === 123) l = 125, f = !0, s = {};
1404
1081
  else return !1;
1405
1082
  for (e.anchor !== null && O(e, e.anchor, s), v = e.input.charCodeAt(++e.position); v !== 0;) {
1406
- if (L(e, !0, t), v = e.input.charCodeAt(e.position), v === l) return e.position++, e.tag = o, e.anchor = c, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
1407
- n ? v === 44 && E(e, "expected the node content, but found ','") : E(e, "missed comma between flow collection entries"), g = h = _ = null, u = d = !1, v === 63 && m(e.input.charCodeAt(e.position + 1)) && (u = d = !0, e.position++, L(e, !0, t)), r = e.line, i = e.lineStart, a = e.position, R(e, t, 1, !1, !0), g = e.tag, h = e.result, L(e, !0, t), v = e.input.charCodeAt(e.position), (d || e.line === r) && v === 58 && (u = !0, v = e.input.charCodeAt(++e.position), L(e, !0, t), R(e, t, 1, !1, !0), _ = e.result), f ? F(e, s, p, g, h, _, r, i, a) : u ? s.push(F(e, null, p, g, h, _, r, i, a)) : s.push(h), L(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
1083
+ if (z(e, !0, t), v = e.input.charCodeAt(e.position), v === l) return e.position++, e.tag = o, e.anchor = c, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
1084
+ n ? v === 44 && E(e, "expected the node content, but found ','") : E(e, "missed comma between flow collection entries"), g = h = _ = null, u = d = !1, v === 63 && m(e.input.charCodeAt(e.position + 1)) && (u = d = !0, e.position++, z(e, !0, t)), r = e.line, i = e.lineStart, a = e.position, B(e, t, 1, !1, !0), g = e.tag, h = e.result, z(e, !0, t), v = e.input.charCodeAt(e.position), (d || e.line === r) && v === 58 && (u = !0, v = e.input.charCodeAt(++e.position), z(e, !0, t), B(e, t, 1, !1, !0), _ = e.result), f ? L(e, s, p, g, h, _, r, i, a) : u ? s.push(L(e, null, p, g, h, _, r, i, a)) : s.push(h), z(e, !0, t), v = e.input.charCodeAt(e.position), v === 44 ? (n = !0, v = e.input.charCodeAt(++e.position)) : n = !1;
1408
1085
  }
1409
1086
  E(e, "unexpected end of the stream within a flow collection");
1410
1087
  }
1411
- t(se, "readFlowCollection");
1412
- function ce(t, n) {
1088
+ t(ae, "readFlowCollection");
1089
+ function oe(t, n) {
1413
1090
  let r, i = 1, a = !1, o = !1, s = n, c = 0, l = !1, u, d = t.input.charCodeAt(t.position);
1414
1091
  if (d === 124) r = !1;
1415
1092
  else if (d === 62) r = !0;
@@ -1426,7 +1103,7 @@ function yn() {
1426
1103
  while (!f(d) && d !== 0);
1427
1104
  }
1428
1105
  for (; d !== 0;) {
1429
- for (I(t), t.lineIndent = 0, d = t.input.charCodeAt(t.position); (!o || t.lineIndent < s) && d === 32;) t.lineIndent++, d = t.input.charCodeAt(++t.position);
1106
+ for (R(t), t.lineIndent = 0, d = t.input.charCodeAt(t.position); (!o || t.lineIndent < s) && d === 32;) t.lineIndent++, d = t.input.charCodeAt(++t.position);
1430
1107
  if (!o && t.lineIndent > s && (s = t.lineIndent), f(d)) {
1431
1108
  c++;
1432
1109
  continue;
@@ -1438,29 +1115,29 @@ function yn() {
1438
1115
  r ? p(d) ? (l = !0, t.result += e.repeat("\n", a ? 1 + c : c)) : l ? (l = !1, t.result += e.repeat("\n", c + 1)) : c === 0 ? a && (t.result += " ") : t.result += e.repeat("\n", c) : t.result += e.repeat("\n", a ? 1 + c : c), a = !0, o = !0, c = 0;
1439
1116
  let n = t.position;
1440
1117
  for (; !f(d) && d !== 0;) d = t.input.charCodeAt(++t.position);
1441
- N(t, n, t.position, !1);
1118
+ F(t, n, t.position, !1);
1442
1119
  }
1443
1120
  return !0;
1444
1121
  }
1445
- t(ce, "readBlockScalar");
1446
- function le(e, t) {
1122
+ t(oe, "readBlockScalar");
1123
+ function se(e, t) {
1447
1124
  let n = e.tag, r = e.anchor, i = [], a = !1;
1448
1125
  if (e.firstTabInLine !== -1) return !1;
1449
1126
  e.anchor !== null && O(e, e.anchor, i);
1450
1127
  let o = e.input.charCodeAt(e.position);
1451
1128
  for (; o !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, E(e, "tab characters must not be used in indentation")), !(o !== 45 || !m(e.input.charCodeAt(e.position + 1))));) {
1452
- if (a = !0, e.position++, L(e, !0, -1) && e.lineIndent <= t) {
1129
+ if (a = !0, e.position++, z(e, !0, -1) && e.lineIndent <= t) {
1453
1130
  i.push(null), o = e.input.charCodeAt(e.position);
1454
1131
  continue;
1455
1132
  }
1456
1133
  let n = e.line;
1457
- if (R(e, t, 3, !1, !0), i.push(e.result), L(e, !0, -1), o = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && o !== 0) E(e, "bad indentation of a sequence entry");
1134
+ if (B(e, t, 3, !1, !0), i.push(e.result), z(e, !0, -1), o = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && o !== 0) E(e, "bad indentation of a sequence entry");
1458
1135
  else if (e.lineIndent < t) break;
1459
1136
  }
1460
1137
  return a ? (e.tag = n, e.anchor = r, e.kind = "sequence", e.result = i, !0) : !1;
1461
1138
  }
1462
- t(le, "readBlockSequence");
1463
- function ue(e, t, n) {
1139
+ t(se, "readBlockSequence");
1140
+ function ce(e, t, n) {
1464
1141
  let r, i, a, o, s = e.tag, c = e.anchor, l = {}, u = /* @__PURE__ */ Object.create(null), d = null, f = null, h = null, g = !1, _ = !1;
1465
1142
  if (e.firstTabInLine !== -1) return !1;
1466
1143
  e.anchor !== null && O(e, e.anchor, l);
@@ -1468,24 +1145,24 @@ function yn() {
1468
1145
  for (; v !== 0;) {
1469
1146
  !g && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, E(e, "tab characters must not be used in indentation"));
1470
1147
  let y = e.input.charCodeAt(e.position + 1), b = e.line;
1471
- if ((v === 63 || v === 58) && m(y)) v === 63 ? (g && (F(e, l, u, d, f, null, i, a, o), d = f = h = null), _ = !0, g = !0, r = !0) : g ? (g = !1, r = !0) : E(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = y;
1148
+ if ((v === 63 || v === 58) && m(y)) v === 63 ? (g && (L(e, l, u, d, f, null, i, a, o), d = f = h = null), _ = !0, g = !0, r = !0) : g ? (g = !1, r = !0) : E(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = y;
1472
1149
  else {
1473
- if (i = e.line, a = e.lineStart, o = e.position, !R(e, n, 2, !1, !0)) break;
1150
+ if (i = e.line, a = e.lineStart, o = e.position, !B(e, n, 2, !1, !0)) break;
1474
1151
  if (e.line === b) {
1475
1152
  for (v = e.input.charCodeAt(e.position); p(v);) v = e.input.charCodeAt(++e.position);
1476
- if (v === 58) v = e.input.charCodeAt(++e.position), m(v) || E(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (F(e, l, u, d, f, null, i, a, o), d = f = h = null), _ = !0, g = !1, r = !1, d = e.tag, f = e.result;
1153
+ if (v === 58) v = e.input.charCodeAt(++e.position), m(v) || E(e, "a whitespace character is expected after the key-value separator within a block mapping"), g && (L(e, l, u, d, f, null, i, a, o), d = f = h = null), _ = !0, g = !1, r = !1, d = e.tag, f = e.result;
1477
1154
  else if (_) E(e, "can not read an implicit mapping pair; a colon is missed");
1478
1155
  else return e.tag = s, e.anchor = c, !0;
1479
1156
  } else if (_) E(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
1480
1157
  else return e.tag = s, e.anchor = c, !0;
1481
1158
  }
1482
- if ((e.line === b || e.lineIndent > t) && (g && (i = e.line, a = e.lineStart, o = e.position), R(e, t, 4, !0, r) && (g ? f = e.result : h = e.result), g || (F(e, l, u, d, f, h, i, a, o), d = f = h = null), L(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === b || e.lineIndent > t) && v !== 0) E(e, "bad indentation of a mapping entry");
1159
+ if ((e.line === b || e.lineIndent > t) && (g && (i = e.line, a = e.lineStart, o = e.position), B(e, t, 4, !0, r) && (g ? f = e.result : h = e.result), g || (L(e, l, u, d, f, h, i, a, o), d = f = h = null), z(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === b || e.lineIndent > t) && v !== 0) E(e, "bad indentation of a mapping entry");
1483
1160
  else if (e.lineIndent < t) break;
1484
1161
  }
1485
- return g && F(e, l, u, d, f, null, i, a, o), _ && (e.tag = s, e.anchor = c, e.kind = "mapping", e.result = l), _;
1162
+ return g && L(e, l, u, d, f, null, i, a, o), _ && (e.tag = s, e.anchor = c, e.kind = "mapping", e.result = l), _;
1486
1163
  }
1487
- t(ue, "readBlockMapping");
1488
- function de(e) {
1164
+ t(ce, "readBlockMapping");
1165
+ function le(e) {
1489
1166
  let t = !1, n = !1, r, i, o = e.input.charCodeAt(e.position);
1490
1167
  if (o !== 33) return !1;
1491
1168
  e.tag !== null && E(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (t = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (n = !0, r = "!!", o = e.input.charCodeAt(++e.position)) : r = "!";
@@ -1507,8 +1184,8 @@ function yn() {
1507
1184
  }
1508
1185
  return t ? e.tag = i : a.call(e.tagMap, r) ? e.tag = e.tagMap[r] + i : r === "!" ? e.tag = "!" + i : r === "!!" ? e.tag = "tag:yaml.org,2002:" + i : E(e, "undeclared tag handle \"" + r + "\""), !0;
1509
1186
  }
1510
- t(de, "readTagProperty");
1511
- function fe(e) {
1187
+ t(le, "readTagProperty");
1188
+ function ue(e) {
1512
1189
  let t = e.input.charCodeAt(e.position);
1513
1190
  if (t !== 38) return !1;
1514
1191
  e.anchor !== null && E(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position);
@@ -1516,8 +1193,8 @@ function yn() {
1516
1193
  for (; t !== 0 && !m(t) && !h(t);) t = e.input.charCodeAt(++e.position);
1517
1194
  return e.position === n && E(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
1518
1195
  }
1519
- t(fe, "readAnchorProperty");
1520
- function pe(e) {
1196
+ t(ue, "readAnchorProperty");
1197
+ function de(e) {
1521
1198
  let t = e.input.charCodeAt(e.position);
1522
1199
  if (t !== 42) return !1;
1523
1200
  t = e.input.charCodeAt(++e.position);
@@ -1525,31 +1202,31 @@ function yn() {
1525
1202
  for (; t !== 0 && !m(t) && !h(t);) t = e.input.charCodeAt(++e.position);
1526
1203
  e.position === n && E(e, "name of an alias node must contain at least one character");
1527
1204
  let r = e.input.slice(n, e.position);
1528
- return a.call(e.anchorMap, r) || E(e, "unidentified alias \"" + r + "\""), e.result = e.anchorMap[r], L(e, !0, -1), !0;
1205
+ return a.call(e.anchorMap, r) || E(e, "unidentified alias \"" + r + "\""), e.result = e.anchorMap[r], z(e, !0, -1), !0;
1529
1206
  }
1530
- t(pe, "readAlias");
1531
- function me(e, t, n, r) {
1532
- let i = j(e);
1533
- return k(e), M(e, t), e.tag = null, e.anchor = null, e.kind = null, e.result = null, ue(e, n, r) && e.kind === "mapping" ? (ee(e), !0) : (A(e), M(e, i), !1);
1207
+ t(de, "readAlias");
1208
+ function fe(e, t, n, r) {
1209
+ let i = M(e);
1210
+ return k(e), N(e, t), e.tag = null, e.anchor = null, e.kind = null, e.result = null, ce(e, n, r) && e.kind === "mapping" ? (A(e), !0) : (j(e), N(e, i), !1);
1534
1211
  }
1535
- t(me, "tryReadBlockMappingFromProperty");
1536
- function R(e, t, n, r, i) {
1212
+ t(fe, "tryReadBlockMappingFromProperty");
1213
+ function B(e, t, n, r, i) {
1537
1214
  let o, s, c = 1, l = !1, u = !1, d = null, f, p, m;
1538
1215
  e.depth >= e.maxDepth && E(e, "nesting exceeded maxDepth (" + e.maxDepth + ")"), e.depth += 1, e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null;
1539
1216
  let h = o = s = n === 4 || n === 3;
1540
- if (r && L(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (;;) {
1541
- let n = e.input.charCodeAt(e.position), r = j(e);
1542
- if (l && (n === 33 && e.tag !== null || n === 38 && e.anchor !== null) || !de(e) && !fe(e)) break;
1543
- d === null && (d = r), L(e, !0, -1) ? (l = !0, s = h, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
1217
+ if (r && z(e, !0, -1) && (l = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1) for (;;) {
1218
+ let n = e.input.charCodeAt(e.position), r = M(e);
1219
+ if (l && (n === 33 && e.tag !== null || n === 38 && e.anchor !== null) || !le(e) && !ue(e)) break;
1220
+ d === null && (d = r), z(e, !0, -1) ? (l = !0, s = h, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : s = !1;
1544
1221
  }
1545
1222
  if (s &&= l || i, c === 1 || n === 4) {
1546
1223
  if (p = n === 1 || n === 2 ? t : t + 1, m = e.position - e.lineStart, c === 1) {
1547
- if (s && (le(e, m) || ue(e, m, p)) || se(e, p)) u = !0;
1224
+ if (s && (se(e, m) || ce(e, m, p)) || ae(e, p)) u = !0;
1548
1225
  else {
1549
1226
  let t = e.input.charCodeAt(e.position);
1550
- d !== null && h && !s && t !== 124 && t !== 62 && me(e, d, d.position - d.lineStart, p) || o && ce(e, p) || ae(e, p) || oe(e, p) ? u = !0 : pe(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && E(e, "alias node should not have any properties")) : ie(e, p, n === 1) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && O(e, e.anchor, e.result);
1227
+ d !== null && h && !s && t !== 124 && t !== 62 && fe(e, d, d.position - d.lineStart, p) || o && oe(e, p) || re(e, p) || ie(e, p) ? u = !0 : de(e) ? (u = !0, (e.tag !== null || e.anchor !== null) && E(e, "alias node should not have any properties")) : ne(e, p, n === 1) && (u = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && O(e, e.anchor, e.result);
1551
1228
  }
1552
- } else c === 0 && (u = s && le(e, m));
1229
+ } else c === 0 && (u = s && se(e, m));
1553
1230
  }
1554
1231
  if (e.tag === null) e.anchor !== null && O(e, e.anchor, e.result);
1555
1232
  else if (e.tag === "?") {
@@ -1572,10 +1249,10 @@ function yn() {
1572
1249
  }
1573
1250
  return e.listener !== null && e.listener("close", e), --e.depth, e.tag !== null || e.anchor !== null || u;
1574
1251
  }
1575
- t(R, "composeNode");
1576
- function z(e) {
1252
+ t(B, "composeNode");
1253
+ function pe(e) {
1577
1254
  let t = e.position, n = !1, r;
1578
- for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (r = e.input.charCodeAt(e.position)) !== 0 && (L(e, !0, -1), r = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || r !== 37));) {
1255
+ for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (r = e.input.charCodeAt(e.position)) !== 0 && (z(e, !0, -1), r = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || r !== 37));) {
1579
1256
  n = !0, r = e.input.charCodeAt(++e.position);
1580
1257
  let t = e.position;
1581
1258
  for (; r !== 0 && !m(r);) r = e.input.charCodeAt(++e.position);
@@ -1592,45 +1269,45 @@ function yn() {
1592
1269
  for (t = e.position; r !== 0 && !m(r);) r = e.input.charCodeAt(++e.position);
1593
1270
  o.push(e.input.slice(t, e.position));
1594
1271
  }
1595
- r !== 0 && I(e), a.call(te, i) ? te[i](e, i, o) : D(e, "unknown document directive \"" + i + "\"");
1272
+ r !== 0 && R(e), a.call(P, i) ? P[i](e, i, o) : D(e, "unknown document directive \"" + i + "\"");
1596
1273
  }
1597
- if (L(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, L(e, !0, -1)) : n && E(e, "directives end mark is expected"), R(e, e.lineIndent - 1, 4, !1, !0), L(e, !0, -1), e.checkLineBreaks && s.test(e.input.slice(t, e.position)) && D(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && ne(e)) {
1598
- e.input.charCodeAt(e.position) === 46 && (e.position += 3, L(e, !0, -1));
1274
+ if (z(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, z(e, !0, -1)) : n && E(e, "directives end mark is expected"), B(e, e.lineIndent - 1, 4, !1, !0), z(e, !0, -1), e.checkLineBreaks && s.test(e.input.slice(t, e.position)) && D(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && ee(e)) {
1275
+ e.input.charCodeAt(e.position) === 46 && (e.position += 3, z(e, !0, -1));
1599
1276
  return;
1600
1277
  }
1601
1278
  e.position < e.length - 1 && E(e, "end of the stream or a document separator is expected");
1602
1279
  }
1603
- t(z, "readDocument");
1604
- function he(e, t) {
1280
+ t(pe, "readDocument");
1281
+ function me(e, t) {
1605
1282
  e = String(e), t ||= {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += "\n"), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
1606
1283
  let n = new w(e, t), r = e.indexOf("\0");
1607
1284
  for (r !== -1 && (n.position = r, E(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32;) n.lineIndent += 1, n.position += 1;
1608
- for (; n.position < n.length - 1;) z(n);
1285
+ for (; n.position < n.length - 1;) pe(n);
1609
1286
  return n.documents;
1610
1287
  }
1611
- t(he, "loadDocuments");
1612
- function ge(e, t, n) {
1288
+ t(me, "loadDocuments");
1289
+ function he(e, t, n) {
1613
1290
  typeof t == "object" && t && n === void 0 && (n = t, t = null);
1614
- let r = he(e, n);
1291
+ let r = me(e, n);
1615
1292
  if (typeof t != "function") return r;
1616
1293
  for (let e = 0, n = r.length; e < n; e += 1) t(r[e]);
1617
1294
  }
1618
- t(ge, "loadAll2");
1619
- function _e(e, t) {
1620
- let r = he(e, t);
1295
+ t(he, "loadAll2");
1296
+ function ge(e, t) {
1297
+ let r = me(e, t);
1621
1298
  if (r.length !== 0) {
1622
1299
  if (r.length === 1) return r[0];
1623
1300
  throw new n("expected a single document in the stream, but found more");
1624
1301
  }
1625
1302
  }
1626
- return t(_e, "load2"), ct.loadAll = ge, ct.load = _e, ct;
1303
+ return t(ge, "load2"), Oe.loadAll = he, Oe.load = ge, Oe;
1627
1304
  }
1628
- t(yn, "requireLoader");
1629
- var bn = {}, xn;
1630
- function Sn() {
1631
- if (xn) return bn;
1632
- xn = 1;
1633
- let e = W(), n = G(), r = _n(), i = Object.prototype.toString, a = Object.prototype.hasOwnProperty, o = 65279, s = {};
1305
+ t(Rt, "requireLoader");
1306
+ var zt = {}, Bt;
1307
+ function Vt() {
1308
+ if (Bt) return zt;
1309
+ Bt = 1;
1310
+ let e = U(), n = W(), r = It(), i = Object.prototype.toString, a = Object.prototype.hasOwnProperty, o = 65279, s = {};
1634
1311
  s[0] = "\\0", s[7] = "\\a", s[8] = "\\b", s[9] = "\\t", s[10] = "\\n", s[11] = "\\v", s[12] = "\\f", s[13] = "\\r", s[27] = "\\e", s[34] = "\\\"", s[92] = "\\\\", s[133] = "\\N", s[160] = "\\_", s[8232] = "\\L", s[8233] = "\\P";
1635
1312
  let c = [
1636
1313
  "y",
@@ -1757,7 +1434,7 @@ function Sn() {
1757
1434
  case 2: return "'" + r.replace(/'/g, "''") + "'";
1758
1435
  case 3: return "|" + E(r, e.indent) + D(p(r, s));
1759
1436
  case 4: return ">" + E(r, e.indent) + D(p(O(r, u), s));
1760
- case 5: return "\"" + ee(r) + "\"";
1437
+ case 5: return "\"" + A(r) + "\"";
1761
1438
  default: throw new n("impossible error: invalid scalar style");
1762
1439
  }
1763
1440
  })();
@@ -1791,7 +1468,7 @@ function Sn() {
1791
1468
  return c += "\n", e.length - i > t && o > i ? c += e.slice(i, o) + "\n" + e.slice(o + 1) : c += e.slice(i), c.slice(1);
1792
1469
  }
1793
1470
  t(k, "foldLine");
1794
- function ee(e) {
1471
+ function A(e) {
1795
1472
  let t = "", n = 0;
1796
1473
  for (let r = 0; r < e.length; n >= 65536 ? r += 2 : r++) {
1797
1474
  n = S(e, r);
@@ -1800,37 +1477,37 @@ function Sn() {
1800
1477
  }
1801
1478
  return t;
1802
1479
  }
1803
- t(ee, "escapeString");
1804
- function A(e, t, n) {
1480
+ t(A, "escapeString");
1481
+ function j(e, t, n) {
1805
1482
  let r = "", i = e.tag;
1806
1483
  for (let i = 0, a = n.length; i < a; i += 1) {
1807
1484
  let a = n[i];
1808
- e.replacer && (a = e.replacer.call(n, String(i), a)), (P(e, t, a, !1, !1) || a === void 0 && P(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
1485
+ e.replacer && (a = e.replacer.call(n, String(i), a)), (I(e, t, a, !1, !1) || a === void 0 && I(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
1809
1486
  }
1810
1487
  e.tag = i, e.dump = "[" + r + "]";
1811
1488
  }
1812
- t(A, "writeFlowSequence");
1813
- function j(e, t, n, r) {
1489
+ t(j, "writeFlowSequence");
1490
+ function M(e, t, n, r) {
1814
1491
  let i = "", a = e.tag;
1815
1492
  for (let a = 0, o = n.length; a < o; a += 1) {
1816
1493
  let o = n[a];
1817
- e.replacer && (o = e.replacer.call(n, String(a), o)), (P(e, t + 1, o, !0, !0, !1, !0) || o === void 0 && P(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += m(e, t)), e.dump && e.dump.charCodeAt(0) === 10 ? i += "-" : i += "- ", i += e.dump);
1494
+ e.replacer && (o = e.replacer.call(n, String(a), o)), (I(e, t + 1, o, !0, !0, !1, !0) || o === void 0 && I(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += m(e, t)), e.dump && e.dump.charCodeAt(0) === 10 ? i += "-" : i += "- ", i += e.dump);
1818
1495
  }
1819
1496
  e.tag = a, e.dump = i || "[]";
1820
1497
  }
1821
- t(j, "writeBlockSequence");
1822
- function M(e, t, n) {
1498
+ t(M, "writeBlockSequence");
1499
+ function N(e, t, n) {
1823
1500
  let r = "", i = e.tag, a = Object.keys(n);
1824
1501
  for (let i = 0, o = a.length; i < o; i += 1) {
1825
1502
  let o = "";
1826
1503
  r !== "" && (o += ", "), e.condenseFlow && (o += "\"");
1827
1504
  let s = a[i], c = n[s];
1828
- e.replacer && (c = e.replacer.call(n, s, c)), P(e, t, s, !1, !1) && (e.dump.length > 1024 && (o += "? "), o += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), P(e, t, c, !1, !1) && (o += e.dump, r += o));
1505
+ e.replacer && (c = e.replacer.call(n, s, c)), I(e, t, s, !1, !1) && (e.dump.length > 1024 && (o += "? "), o += e.dump + (e.condenseFlow ? "\"" : "") + ":" + (e.condenseFlow ? "" : " "), I(e, t, c, !1, !1) && (o += e.dump, r += o));
1829
1506
  }
1830
1507
  e.tag = i, e.dump = "{" + r + "}";
1831
1508
  }
1832
- t(M, "writeFlowMapping");
1833
- function te(e, t, r, i) {
1509
+ t(N, "writeFlowMapping");
1510
+ function P(e, t, r, i) {
1834
1511
  let a = "", o = e.tag, s = Object.keys(r);
1835
1512
  if (e.sortKeys === !0) s.sort();
1836
1513
  else if (typeof e.sortKeys == "function") s.sort(e.sortKeys);
@@ -1839,14 +1516,14 @@ function Sn() {
1839
1516
  let o = "";
1840
1517
  (!i || a !== "") && (o += m(e, t));
1841
1518
  let c = s[n], l = r[c];
1842
- if (e.replacer && (l = e.replacer.call(r, c, l)), !P(e, t + 1, c, !0, !0, !0)) continue;
1519
+ if (e.replacer && (l = e.replacer.call(r, c, l)), !I(e, t + 1, c, !0, !0, !0)) continue;
1843
1520
  let u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024;
1844
- u && (e.dump && e.dump.charCodeAt(0) === 10 ? o += "?" : o += "? "), o += e.dump, u && (o += m(e, t)), P(e, t + 1, l, !0, u) && (e.dump && e.dump.charCodeAt(0) === 10 ? o += ":" : o += ": ", o += e.dump, a += o);
1521
+ u && (e.dump && e.dump.charCodeAt(0) === 10 ? o += "?" : o += "? "), o += e.dump, u && (o += m(e, t)), I(e, t + 1, l, !0, u) && (e.dump && e.dump.charCodeAt(0) === 10 ? o += ":" : o += ": ", o += e.dump, a += o);
1845
1522
  }
1846
1523
  e.tag = o, e.dump = a || "{}";
1847
1524
  }
1848
- t(te, "writeBlockMapping");
1849
- function N(e, t, r) {
1525
+ t(P, "writeBlockMapping");
1526
+ function F(e, t, r) {
1850
1527
  let o = r ? e.explicitTypes : e.implicitTypes;
1851
1528
  for (let s = 0, c = o.length; s < c; s += 1) {
1852
1529
  let c = o[s];
@@ -1863,16 +1540,16 @@ function Sn() {
1863
1540
  }
1864
1541
  return !1;
1865
1542
  }
1866
- t(N, "detectType");
1867
- function P(e, t, r, a, o, s, c) {
1868
- e.tag = null, e.dump = r, N(e, r, !1) || N(e, r, !0);
1543
+ t(F, "detectType");
1544
+ function I(e, t, r, a, o, s, c) {
1545
+ e.tag = null, e.dump = r, F(e, r, !1) || F(e, r, !0);
1869
1546
  let l = i.call(e.dump), u = a;
1870
1547
  a &&= e.flowLevel < 0 || e.flowLevel > t;
1871
1548
  let d = l === "[object Object]" || l === "[object Array]", f, p;
1872
1549
  if (d && (f = e.duplicates.indexOf(r), p = f !== -1), (e.tag !== null && e.tag !== "?" || p || e.indent !== 2 && t > 0) && (o = !1), p && e.usedDuplicates[f]) e.dump = "*ref_" + f;
1873
1550
  else {
1874
- if (d && p && !e.usedDuplicates[f] && (e.usedDuplicates[f] = !0), l === "[object Object]") a && Object.keys(e.dump).length !== 0 ? (te(e, t, e.dump, o), p && (e.dump = "&ref_" + f + e.dump)) : (M(e, t, e.dump), p && (e.dump = "&ref_" + f + " " + e.dump));
1875
- else if (l === "[object Array]") a && e.dump.length !== 0 ? (e.noArrayIndent && !c && t > 0 ? j(e, t - 1, e.dump, o) : j(e, t, e.dump, o), p && (e.dump = "&ref_" + f + e.dump)) : (A(e, t, e.dump), p && (e.dump = "&ref_" + f + " " + e.dump));
1551
+ if (d && p && !e.usedDuplicates[f] && (e.usedDuplicates[f] = !0), l === "[object Object]") a && Object.keys(e.dump).length !== 0 ? (P(e, t, e.dump, o), p && (e.dump = "&ref_" + f + e.dump)) : (N(e, t, e.dump), p && (e.dump = "&ref_" + f + " " + e.dump));
1552
+ else if (l === "[object Array]") a && e.dump.length !== 0 ? (e.noArrayIndent && !c && t > 0 ? M(e, t - 1, e.dump, o) : M(e, t, e.dump, o), p && (e.dump = "&ref_" + f + e.dump)) : (j(e, t, e.dump), p && (e.dump = "&ref_" + f + " " + e.dump));
1876
1553
  else if (l === "[object String]") e.tag !== "?" && T(e, e.dump, t, s, u);
1877
1554
  else if (l === "[object Undefined]") return !1;
1878
1555
  else {
@@ -1886,90 +1563,90 @@ function Sn() {
1886
1563
  }
1887
1564
  return !0;
1888
1565
  }
1889
- t(P, "writeNode");
1890
- function F(e, t) {
1566
+ t(I, "writeNode");
1567
+ function L(e, t) {
1891
1568
  let n = [], r = [];
1892
- I(e, n, r);
1569
+ R(e, n, r);
1893
1570
  let i = r.length;
1894
1571
  for (let e = 0; e < i; e += 1) t.duplicates.push(n[r[e]]);
1895
1572
  t.usedDuplicates = Array(i);
1896
1573
  }
1897
- t(F, "getDuplicateReferences");
1898
- function I(e, t, n) {
1574
+ t(L, "getDuplicateReferences");
1575
+ function R(e, t, n) {
1899
1576
  if (typeof e == "object" && e) {
1900
1577
  let r = t.indexOf(e);
1901
1578
  if (r !== -1) n.indexOf(r) === -1 && n.push(r);
1902
- else if (t.push(e), Array.isArray(e)) for (let r = 0, i = e.length; r < i; r += 1) I(e[r], t, n);
1579
+ else if (t.push(e), Array.isArray(e)) for (let r = 0, i = e.length; r < i; r += 1) R(e[r], t, n);
1903
1580
  else {
1904
1581
  let r = Object.keys(e);
1905
- for (let i = 0, a = r.length; i < a; i += 1) I(e[r[i]], t, n);
1582
+ for (let i = 0, a = r.length; i < a; i += 1) R(e[r[i]], t, n);
1906
1583
  }
1907
1584
  }
1908
1585
  }
1909
- t(I, "inspectNode");
1910
- function L(e, t) {
1586
+ t(R, "inspectNode");
1587
+ function z(e, t) {
1911
1588
  t ||= {};
1912
1589
  let n = new f(t);
1913
- n.noRefs || F(e, n);
1590
+ n.noRefs || L(e, n);
1914
1591
  let r = e;
1915
- return n.replacer && (r = n.replacer.call({ "": r }, "", r)), P(n, 0, r, !0, !0) ? n.dump + "\n" : "";
1592
+ return n.replacer && (r = n.replacer.call({ "": r }, "", r)), I(n, 0, r, !0, !0) ? n.dump + "\n" : "";
1916
1593
  }
1917
- return t(L, "dump2"), bn.dump = L, bn;
1594
+ return t(z, "dump2"), zt.dump = z, zt;
1918
1595
  }
1919
- t(Sn, "requireDumper");
1920
- var Cn;
1921
- function wn() {
1922
- if (Cn) return H;
1923
- Cn = 1;
1924
- let e = yn(), n = Sn();
1596
+ t(Vt, "requireDumper");
1597
+ var Ht;
1598
+ function Ut() {
1599
+ if (Ht) return V;
1600
+ Ht = 1;
1601
+ let e = Rt(), n = Vt();
1925
1602
  function r(e, t) {
1926
1603
  return function() {
1927
1604
  throw Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
1928
1605
  };
1929
1606
  }
1930
- return t(r, "renamed"), H.Type = K(), H.Schema = yt(), H.FAILSAFE_SCHEMA = jt(), H.JSON_SCHEMA = Kt(), H.CORE_SCHEMA = Yt(), H.DEFAULT_SCHEMA = _n(), H.load = e.load, H.loadAll = e.loadAll, H.dump = n.dump, H.YAMLException = G(), H.types = {
1931
- binary: an(),
1932
- float: Ut(),
1933
- map: Ot(),
1934
- null: Pt(),
1935
- pairs: dn(),
1936
- set: mn(),
1937
- timestamp: Qt(),
1938
- bool: Lt(),
1939
- int: Bt(),
1940
- merge: tn(),
1941
- omap: cn(),
1942
- seq: Tt(),
1943
- str: St()
1944
- }, H.safeLoad = r("safeLoad", "load"), H.safeLoadAll = r("safeLoadAll", "loadAll"), H.safeDump = r("safeDump", "dump"), H;
1945
- }
1946
- t(wn, "requireJsYaml");
1947
- var { Type: Tn, Schema: En, FAILSAFE_SCHEMA: Dn, JSON_SCHEMA: On, CORE_SCHEMA: kn, DEFAULT_SCHEMA: An, load: jn, loadAll: Mn, dump: Nn, YAMLException: Pn, types: Fn, safeLoad: In, safeLoadAll: Ln, safeDump: Rn } = /* @__PURE__ */ st(wn()), zn = "comm", Bn = "rule", Vn = "decl", Hn = "@import", Un = "@namespace", Wn = "@keyframes", Gn = "@layer", Kn = Math.abs, qn = String.fromCharCode;
1948
- function Jn(e) {
1607
+ return t(r, "renamed"), V.Type = G(), V.Schema = ze(), V.FAILSAFE_SCHEMA = Ze(), V.JSON_SCHEMA = ft(), V.CORE_SCHEMA = ht(), V.DEFAULT_SCHEMA = It(), V.load = e.load, V.loadAll = e.loadAll, V.dump = n.dump, V.YAMLException = W(), V.types = {
1608
+ binary: wt(),
1609
+ float: lt(),
1610
+ map: Je(),
1611
+ null: et(),
1612
+ pairs: At(),
1613
+ set: Nt(),
1614
+ timestamp: vt(),
1615
+ bool: rt(),
1616
+ int: ot(),
1617
+ merge: xt(),
1618
+ omap: Dt(),
1619
+ seq: Ge(),
1620
+ str: He()
1621
+ }, V.safeLoad = r("safeLoad", "load"), V.safeLoadAll = r("safeLoadAll", "loadAll"), V.safeDump = r("safeDump", "dump"), V;
1622
+ }
1623
+ t(Ut, "requireJsYaml");
1624
+ var { Type: Wt, Schema: Gt, FAILSAFE_SCHEMA: Kt, JSON_SCHEMA: qt, CORE_SCHEMA: Jt, DEFAULT_SCHEMA: Yt, load: Xt, loadAll: Zt, dump: Qt, YAMLException: $t, types: en, safeLoad: tn, safeLoadAll: nn, safeDump: rn } = /* @__PURE__ */ De(Ut()), an = "comm", on = "rule", sn = "decl", cn = "@import", ln = "@namespace", un = "@keyframes", dn = "@layer", fn = Math.abs, pn = String.fromCharCode;
1625
+ function mn(e) {
1949
1626
  return e.trim();
1950
1627
  }
1951
- function Yn(e, t, n) {
1628
+ function hn(e, t, n) {
1952
1629
  return e.replace(t, n);
1953
1630
  }
1954
- function Xn(e, t) {
1631
+ function K(e, t) {
1955
1632
  return e.charCodeAt(t) | 0;
1956
1633
  }
1957
- function Zn(e, t, n) {
1634
+ function gn(e, t, n) {
1958
1635
  return e.slice(t, n);
1959
1636
  }
1960
1637
  function q(e) {
1961
1638
  return e.length;
1962
1639
  }
1963
- function Qn(e) {
1640
+ function _n(e) {
1964
1641
  return e.length;
1965
1642
  }
1966
- function $n(e, t) {
1643
+ function vn(e, t) {
1967
1644
  return t.push(e), e;
1968
1645
  }
1969
1646
  //#endregion
1970
1647
  //#region ../node_modules/stylis/src/Tokenizer.js
1971
- var er = 1, tr = 1, nr = 0, J = 0, Y = 0, rr = "";
1972
- function ir(e, t, n, r, i, a, o, s) {
1648
+ var yn = 1, bn = 1, xn = 0, J = 0, Y = 0, Sn = "";
1649
+ function Cn(e, t, n, r, i, a, o, s) {
1973
1650
  return {
1974
1651
  value: e,
1975
1652
  root: t,
@@ -1977,32 +1654,32 @@ function ir(e, t, n, r, i, a, o, s) {
1977
1654
  type: r,
1978
1655
  props: i,
1979
1656
  children: a,
1980
- line: er,
1981
- column: tr,
1657
+ line: yn,
1658
+ column: bn,
1982
1659
  length: o,
1983
1660
  return: "",
1984
1661
  siblings: s
1985
1662
  };
1986
1663
  }
1987
- function ar() {
1664
+ function wn() {
1988
1665
  return Y;
1989
1666
  }
1990
- function or() {
1991
- return Y = J > 0 ? Xn(rr, --J) : 0, tr--, Y === 10 && (tr = 1, er--), Y;
1667
+ function Tn() {
1668
+ return Y = J > 0 ? K(Sn, --J) : 0, bn--, Y === 10 && (bn = 1, yn--), Y;
1992
1669
  }
1993
1670
  function X() {
1994
- return Y = J < nr ? Xn(rr, J++) : 0, tr++, Y === 10 && (tr = 1, er++), Y;
1671
+ return Y = J < xn ? K(Sn, J++) : 0, bn++, Y === 10 && (bn = 1, yn++), Y;
1995
1672
  }
1996
1673
  function Z() {
1997
- return Xn(rr, J);
1674
+ return K(Sn, J);
1998
1675
  }
1999
- function sr() {
1676
+ function En() {
2000
1677
  return J;
2001
1678
  }
2002
- function cr(e, t) {
2003
- return Zn(rr, e, t);
1679
+ function Dn(e, t) {
1680
+ return gn(Sn, e, t);
2004
1681
  }
2005
- function lr(e) {
1682
+ function On(e) {
2006
1683
  switch (e) {
2007
1684
  case 0:
2008
1685
  case 9:
@@ -2029,32 +1706,32 @@ function lr(e) {
2029
1706
  }
2030
1707
  return 0;
2031
1708
  }
2032
- function ur(e) {
2033
- return er = tr = 1, nr = q(rr = e), J = 0, [];
1709
+ function kn(e) {
1710
+ return yn = bn = 1, xn = q(Sn = e), J = 0, [];
2034
1711
  }
2035
- function dr(e) {
2036
- return rr = "", e;
1712
+ function An(e) {
1713
+ return Sn = "", e;
2037
1714
  }
2038
- function fr(e) {
2039
- return Jn(cr(J - 1, hr(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
1715
+ function jn(e) {
1716
+ return mn(Dn(J - 1, Pn(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
2040
1717
  }
2041
- function pr(e) {
1718
+ function Mn(e) {
2042
1719
  for (; (Y = Z()) && Y < 33;) X();
2043
- return lr(e) > 2 || lr(Y) > 3 ? "" : " ";
1720
+ return On(e) > 2 || On(Y) > 3 ? "" : " ";
2044
1721
  }
2045
- function mr(e, t) {
1722
+ function Nn(e, t) {
2046
1723
  for (; --t && X() && !(Y < 48 || Y > 102 || Y > 57 && Y < 65 || Y > 70 && Y < 97););
2047
- return cr(e, sr() + (t < 6 && Z() == 32 && X() == 32));
1724
+ return Dn(e, En() + (t < 6 && Z() == 32 && X() == 32));
2048
1725
  }
2049
- function hr(e) {
1726
+ function Pn(e) {
2050
1727
  for (; X();) switch (Y) {
2051
1728
  case e: return J;
2052
1729
  case 34:
2053
1730
  case 39:
2054
- e !== 34 && e !== 39 && hr(Y);
1731
+ e !== 34 && e !== 39 && Pn(Y);
2055
1732
  break;
2056
1733
  case 40:
2057
- e === 41 && hr(e);
1734
+ e === 41 && Pn(e);
2058
1735
  break;
2059
1736
  case 92:
2060
1737
  X();
@@ -2062,23 +1739,23 @@ function hr(e) {
2062
1739
  }
2063
1740
  return J;
2064
1741
  }
2065
- function gr(e, t) {
1742
+ function Fn(e, t) {
2066
1743
  for (; X() && e + Y !== 57 && (e + Y !== 84 || Z() !== 47););
2067
- return "/*" + cr(t, J - 1) + "*" + qn(e === 47 ? e : X());
1744
+ return "/*" + Dn(t, J - 1) + "*" + pn(e === 47 ? e : X());
2068
1745
  }
2069
- function _r(e) {
2070
- for (; !lr(Z());) X();
2071
- return cr(e, J);
1746
+ function In(e) {
1747
+ for (; !On(Z());) X();
1748
+ return Dn(e, J);
2072
1749
  }
2073
1750
  //#endregion
2074
1751
  //#region ../node_modules/stylis/src/Parser.js
2075
- function vr(e) {
2076
- return dr(yr("", null, null, null, [""], e = ur(e), 0, [0], e));
1752
+ function Ln(e) {
1753
+ return An(Rn("", null, null, null, [""], e = kn(e), 0, [0], e));
2077
1754
  }
2078
- function yr(e, t, n, r, i, a, o, s, c) {
1755
+ function Rn(e, t, n, r, i, a, o, s, c) {
2079
1756
  for (var l = 0, u = 0, d = o, f = 0, p = 0, m = 0, h = 1, g = 1, _ = 1, v = 0, y = 0, b = "", x = i, S = a, C = r, w = b; g;) switch (m = y, y = X()) {
2080
1757
  case 40:
2081
- m != 108 && Xn(w, d - 1) == 58 ? (v++, w += "(") : w += fr(y);
1758
+ m != 108 && K(w, d - 1) == 58 ? (v++, w += "(") : w += jn(y);
2082
1759
  break;
2083
1760
  case 41:
2084
1761
  v--, w += ")";
@@ -2086,26 +1763,26 @@ function yr(e, t, n, r, i, a, o, s, c) {
2086
1763
  case 34:
2087
1764
  case 39:
2088
1765
  case 91:
2089
- w += fr(y);
1766
+ w += jn(y);
2090
1767
  break;
2091
1768
  case 9:
2092
1769
  case 10:
2093
1770
  case 13:
2094
1771
  case 32:
2095
1772
  if (v > 0) {
2096
- w += qn(y);
1773
+ w += pn(y);
2097
1774
  break;
2098
1775
  }
2099
- w += pr(m);
1776
+ w += Mn(m);
2100
1777
  break;
2101
1778
  case 92:
2102
- w += mr(sr() - 1, 7);
1779
+ w += Nn(En() - 1, 7);
2103
1780
  continue;
2104
1781
  case 47:
2105
1782
  switch (Z()) {
2106
1783
  case 42:
2107
1784
  case 47:
2108
- $n(xr(gr(X(), sr()), t, n, c), c), (lr(m || 1) == 5 || lr(Z() || 1) == 5) && q(w) && Zn(w, -1, void 0) !== " " && (w += " ");
1785
+ vn(Bn(Fn(X(), En()), t, n, c), c), (On(m || 1) == 5 || On(Z() || 1) == 5) && q(w) && gn(w, -1, void 0) !== " " && (w += " ");
2109
1786
  break;
2110
1787
  default: w += "/";
2111
1788
  }
@@ -2115,28 +1792,28 @@ function yr(e, t, n, r, i, a, o, s, c) {
2115
1792
  case 59:
2116
1793
  case 0:
2117
1794
  if (v > 0 && y) {
2118
- w += qn(y);
1795
+ w += pn(y);
2119
1796
  break;
2120
1797
  }
2121
1798
  switch (y) {
2122
1799
  case 0:
2123
1800
  case 125: g = 0;
2124
1801
  case 59 + u:
2125
- _ == -1 && (w = Yn(w, /\f/g, "")), p > 0 && (q(w) - d || h === 0) && $n(p > 32 ? Sr(w + ";", r, n, d - 1, c) : Sr(Yn(w, " ", "") + ";", r, n, d - 2, c), c);
1802
+ _ == -1 && (w = hn(w, /\f/g, "")), p > 0 && (q(w) - d || h === 0) && vn(p > 32 ? Vn(w + ";", r, n, d - 1, c) : Vn(hn(w, " ", "") + ";", r, n, d - 2, c), c);
2126
1803
  break;
2127
1804
  case 59: w += ";";
2128
- default: if ($n(C = br(w, t, n, l, u, i, s, b, x = [], S = [], d, a), a), y === 123) {
2129
- if (u === 0) yr(w, t, C, C, x, a, d, s, S);
1805
+ default: if (vn(C = zn(w, t, n, l, u, i, s, b, x = [], S = [], d, a), a), y === 123) {
1806
+ if (u === 0) Rn(w, t, C, C, x, a, d, s, S);
2130
1807
  else {
2131
1808
  switch (f) {
2132
- case 99: if (Xn(w, 3) === 110) break;
2133
- case 108: if (Xn(w, 2) === 97) break;
1809
+ case 99: if (K(w, 3) === 110) break;
1810
+ case 108: if (K(w, 2) === 97) break;
2134
1811
  default: u = 0;
2135
1812
  case 100:
2136
1813
  case 109:
2137
1814
  case 115:
2138
1815
  }
2139
- u ? yr(e, C, C, r && $n(br(e, C, C, 0, 0, i, s, b, i, x = [], d, S), S), i, S, d, s, r ? x : S) : yr(w, C, C, C, [""], S, 0, s, S);
1816
+ u ? Rn(e, C, C, r && vn(zn(e, C, C, 0, 0, i, s, b, i, x = [], d, S), S), i, S, d, s, r ? x : S) : Rn(w, C, C, C, [""], S, 0, s, S);
2140
1817
  }
2141
1818
  }
2142
1819
  }
@@ -2146,9 +1823,9 @@ function yr(e, t, n, r, i, a, o, s, c) {
2146
1823
  default:
2147
1824
  if (h < 1) {
2148
1825
  if (y == 123) --h;
2149
- else if (y == 125 && h++ == 0 && or() == 125) continue;
1826
+ else if (y == 125 && h++ == 0 && Tn() == 125) continue;
2150
1827
  }
2151
- switch (w += qn(y), y * h) {
1828
+ switch (w += pn(y), y * h) {
2152
1829
  case 38:
2153
1830
  _ = u > 0 ? 1 : (w += "\f", -1);
2154
1831
  break;
@@ -2157,45 +1834,45 @@ function yr(e, t, n, r, i, a, o, s, c) {
2157
1834
  s[l++] = (q(w) - 1) * _, _ = 1;
2158
1835
  break;
2159
1836
  case 64:
2160
- Z() === 45 && (w += fr(X())), f = Z(), u = d = q(b = w += _r(sr())), y++;
1837
+ Z() === 45 && (w += jn(X())), f = Z(), u = d = q(b = w += In(En())), y++;
2161
1838
  break;
2162
1839
  case 45: m === 45 && q(w) == 2 && (h = 0);
2163
1840
  }
2164
1841
  }
2165
1842
  return a;
2166
1843
  }
2167
- function br(e, t, n, r, i, a, o, s, c, l, u, d) {
2168
- for (var f = i - 1, p = i === 0 ? a : [""], m = Qn(p), h = 0, g = 0, _ = 0; h < r; ++h) for (var v = 0, y = Zn(e, f + 1, f = Kn(g = o[h])), b = e; v < m; ++v) (b = Jn(g > 0 ? p[v] + " " + y : Yn(y, /&\f/g, p[v]))) && (c[_++] = b);
2169
- return ir(e, t, n, i === 0 ? Bn : s, c, l, u, d);
1844
+ function zn(e, t, n, r, i, a, o, s, c, l, u, d) {
1845
+ for (var f = i - 1, p = i === 0 ? a : [""], m = _n(p), h = 0, g = 0, _ = 0; h < r; ++h) for (var v = 0, y = gn(e, f + 1, f = fn(g = o[h])), b = e; v < m; ++v) (b = mn(g > 0 ? p[v] + " " + y : hn(y, /&\f/g, p[v]))) && (c[_++] = b);
1846
+ return Cn(e, t, n, i === 0 ? on : s, c, l, u, d);
2170
1847
  }
2171
- function xr(e, t, n, r) {
2172
- return ir(e, t, n, zn, qn(ar()), Zn(e, 2, -2), 0, r);
1848
+ function Bn(e, t, n, r) {
1849
+ return Cn(e, t, n, an, pn(wn()), gn(e, 2, -2), 0, r);
2173
1850
  }
2174
- function Sr(e, t, n, r, i) {
2175
- return ir(e, t, n, Vn, Zn(e, 0, r), Zn(e, r + 1, -1), r, i);
1851
+ function Vn(e, t, n, r, i) {
1852
+ return Cn(e, t, n, sn, gn(e, 0, r), gn(e, r + 1, -1), r, i);
2176
1853
  }
2177
1854
  //#endregion
2178
1855
  //#region ../node_modules/stylis/src/Serializer.js
2179
- function Cr(e, t) {
1856
+ function Hn(e, t) {
2180
1857
  for (var n = "", r = 0; r < e.length; r++) n += t(e[r], r, e, t) || "";
2181
1858
  return n;
2182
1859
  }
2183
- function wr(e, t, n, r) {
1860
+ function Un(e, t, n, r) {
2184
1861
  switch (e.type) {
2185
- case Gn: if (e.children.length) break;
2186
- case Hn:
2187
- case Un:
2188
- case Vn: return e.return = e.return || e.value;
2189
- case zn: return "";
2190
- case Wn: return e.return = e.value + "{" + Cr(e.children, r) + "}";
2191
- case Bn: if (!q(e.value = e.props.join(","))) return "";
1862
+ case dn: if (e.children.length) break;
1863
+ case cn:
1864
+ case ln:
1865
+ case sn: return e.return = e.return || e.value;
1866
+ case an: return "";
1867
+ case un: return e.return = e.value + "{" + Hn(e.children, r) + "}";
1868
+ case on: if (!q(e.value = e.props.join(","))) return "";
2192
1869
  }
2193
- return q(n = Cr(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
1870
+ return q(n = Hn(e.children, r)) ? e.return = e.value + "{" + n + "}" : "";
2194
1871
  }
2195
1872
  //#endregion
2196
1873
  //#region ../node_modules/stylis/src/Middleware.js
2197
- function Tr(e) {
2198
- var t = Qn(e);
1874
+ function Wn(e) {
1875
+ var t = _n(e);
2199
1876
  return function(n, r, i, a) {
2200
1877
  for (var o = "", s = 0; s < t; s++) o += e[s](n, r, i, a) || "";
2201
1878
  return o;
@@ -2203,402 +1880,416 @@ function Tr(e) {
2203
1880
  }
2204
1881
  //#endregion
2205
1882
  //#region ../node_modules/mermaid/dist/mermaid.core.mjs
2206
- var Er = /* @__PURE__ */ e({
2207
- clearLayoutRenderState: () => Xe,
2208
- createCommonLayoutRenderer: () => Ye,
2209
- default: () => ro,
2210
- defaultMeasureLayout: () => Ze,
2211
- paintLayoutData: () => Qe
2212
- }), Dr = "c4", Or = {
2213
- id: Dr,
1883
+ var Gn = /* @__PURE__ */ e({ default: () => Ta }), Kn = "c4", qn = {
1884
+ id: Kn,
2214
1885
  detector: /* @__PURE__ */ t((e) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e), "detector"),
2215
1886
  loader: /* @__PURE__ */ t(async () => {
2216
- let { diagram: e } = await import("./c4Diagram-7LVT6UL2-WfERxhw2.js");
1887
+ let { diagram: e } = await import("./c4Diagram-CRA5TL53-CtJh9DsO.js");
2217
1888
  return {
2218
- id: Dr,
1889
+ id: Kn,
2219
1890
  diagram: e
2220
1891
  };
2221
1892
  }, "loader")
2222
- }, kr = "flowchart", Ar = {
2223
- id: kr,
2224
- detector: /* @__PURE__ */ t((e, t) => t?.flowchart?.defaultRenderer === "dagre-wrapper" || t?.flowchart?.defaultRenderer === "elk" ? !1 : /^\s*graph/.test(e), "detector"),
1893
+ }, Jn = "flowchart-v2", Yn = {
1894
+ id: Jn,
1895
+ detector: /* @__PURE__ */ t((e) => /^\s*(graph|flowchart)/.test(e), "detector"),
2225
1896
  loader: /* @__PURE__ */ t(async () => {
2226
- let { diagram: e } = await import("./flowDiagram-T62WH6J4-ptBWC6KI.js");
1897
+ let { diagram: e } = await import("./flowDiagram-OXPTDLAJ-R_xf7pNW.js");
2227
1898
  return {
2228
- id: kr,
1899
+ id: Jn,
2229
1900
  diagram: e
2230
1901
  };
2231
1902
  }, "loader")
2232
- }, jr = "flowchart-v2", Mr = {
2233
- id: jr,
2234
- detector: /* @__PURE__ */ t((e, t) => t?.flowchart?.defaultRenderer !== "dagre-d3" && (t?.flowchart?.defaultRenderer === "elk" && (t.layout = "elk"), /^\s*graph/.test(e) && t?.flowchart?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*flowchart/.test(e)), "detector"),
1903
+ }, Xn = "agentflow", Zn = {
1904
+ id: Xn,
1905
+ detector: /* @__PURE__ */ t((e) => /^\s*agentflow-beta\b/.test(e), "detector"),
2235
1906
  loader: /* @__PURE__ */ t(async () => {
2236
- let { diagram: e } = await import("./flowDiagram-T62WH6J4-ptBWC6KI.js");
1907
+ let { diagram: e } = await import("./diagram-2UJZ2QOL-CJRsGDwn.js");
2237
1908
  return {
2238
- id: jr,
1909
+ id: Xn,
2239
1910
  diagram: e
2240
1911
  };
2241
1912
  }, "loader")
2242
- }, Nr = "swimlane", Pr = {
2243
- id: Nr,
1913
+ }, Qn = "swimlane", $n = {
1914
+ id: Qn,
2244
1915
  detector: /* @__PURE__ */ t((e) => /^\s*swimlane-beta\b/.test(e), "detector"),
2245
1916
  loader: /* @__PURE__ */ t(async () => {
2246
- let { diagram: e } = await import("./swimlanesDiagram-JKAHXJPX-lIPwQ8Mc.js");
1917
+ let { diagram: e } = await import("./swimlanesDiagram-K3J5GTZL-_MehEHMi.js");
2247
1918
  return {
2248
- id: Nr,
1919
+ id: Qn,
2249
1920
  diagram: e
2250
1921
  };
2251
1922
  }, "loader")
2252
- }, Fr = "er", Ir = {
2253
- id: Fr,
1923
+ }, er = "er", tr = {
1924
+ id: er,
2254
1925
  detector: /* @__PURE__ */ t((e) => /^\s*erDiagram/.test(e), "detector"),
2255
1926
  loader: /* @__PURE__ */ t(async () => {
2256
- let { diagram: e } = await import("./erDiagram-2YWLMYGG-RTHTTqyH.js");
1927
+ let { diagram: e } = await import("./erDiagram-O2IAPWRE-CP06GjjM.js");
2257
1928
  return {
2258
- id: Fr,
1929
+ id: er,
2259
1930
  diagram: e
2260
1931
  };
2261
1932
  }, "loader")
2262
- }, Lr = "gitGraph", Rr = {
2263
- id: Lr,
1933
+ }, nr = "gitGraph", rr = {
1934
+ id: nr,
2264
1935
  detector: /* @__PURE__ */ t((e) => /^\s*gitGraph/.test(e), "detector"),
2265
1936
  loader: /* @__PURE__ */ t(async () => {
2266
- let { diagram: e } = await import("./gitGraphDiagram-WWUBYQGX-Bh9F7wif.js");
1937
+ let { diagram: e } = await import("./gitGraphDiagram-XJZIOB7I-CYZa0-Ct.js");
2267
1938
  return {
2268
- id: Lr,
1939
+ id: nr,
2269
1940
  diagram: e
2270
1941
  };
2271
1942
  }, "loader")
2272
- }, zr = "gantt", Br = {
2273
- id: zr,
1943
+ }, ir = "gantt", ar = {
1944
+ id: ir,
2274
1945
  detector: /* @__PURE__ */ t((e) => /^\s*gantt/.test(e), "detector"),
2275
1946
  loader: /* @__PURE__ */ t(async () => {
2276
- let { diagram: e } = await import("./ganttDiagram-EL5Y4UJY-BTvevd1z.js");
1947
+ let { diagram: e } = await import("./ganttDiagram-R7TSEDQI-y1bDU8Ba.js");
2277
1948
  return {
2278
- id: zr,
1949
+ id: ir,
2279
1950
  diagram: e
2280
1951
  };
2281
1952
  }, "loader")
2282
- }, Vr = "info", Hr = {
2283
- id: Vr,
1953
+ }, or = "info", sr = {
1954
+ id: or,
2284
1955
  detector: /* @__PURE__ */ t((e) => /^\s*info/.test(e), "detector"),
2285
1956
  loader: /* @__PURE__ */ t(async () => {
2286
- let { diagram: e } = await import("./infoDiagram-FKFFQAWI-D6en39j4.js");
1957
+ let { diagram: e } = await import("./infoDiagram-5W2HQ5XZ-Dw_D4zI1.js");
2287
1958
  return {
2288
- id: Vr,
1959
+ id: or,
2289
1960
  diagram: e
2290
1961
  };
2291
1962
  }, "loader")
2292
- }, Ur = "pie", Wr = {
2293
- id: Ur,
1963
+ }, cr = "pie", lr = {
1964
+ id: cr,
2294
1965
  detector: /* @__PURE__ */ t((e) => /^\s*pie/.test(e), "detector"),
2295
1966
  loader: /* @__PURE__ */ t(async () => {
2296
- let { diagram: e } = await import("./pieDiagram-E7YTZNPT-SG9oy_nV.js");
1967
+ let { diagram: e } = await import("./pieDiagram-CAPJLFHJ-uz37FR9I.js");
2297
1968
  return {
2298
- id: Ur,
1969
+ id: cr,
2299
1970
  diagram: e
2300
1971
  };
2301
1972
  }, "loader")
2302
- }, Gr = "quadrantChart", Kr = {
2303
- id: Gr,
1973
+ }, ur = "quadrantChart", dr = {
1974
+ id: ur,
2304
1975
  detector: /* @__PURE__ */ t((e) => /^\s*quadrantChart/.test(e), "detector"),
2305
1976
  loader: /* @__PURE__ */ t(async () => {
2306
- let { diagram: e } = await import("./quadrantDiagram-AXDQQJYC-C65HQ6gT.js");
1977
+ let { diagram: e } = await import("./quadrantDiagram-GDMTTRAM-C4rt8LIh.js");
2307
1978
  return {
2308
- id: Gr,
1979
+ id: ur,
2309
1980
  diagram: e
2310
1981
  };
2311
1982
  }, "loader")
2312
- }, qr = "xychart", Jr = {
2313
- id: qr,
1983
+ }, fr = "xychart", pr = {
1984
+ id: fr,
2314
1985
  detector: /* @__PURE__ */ t((e) => /^\s*xychart(-beta)?/.test(e), "detector"),
2315
1986
  loader: /* @__PURE__ */ t(async () => {
2316
- let { diagram: e } = await import("./xychartDiagram-S5SC5T6Z-B-sQkN_B.js");
1987
+ let { diagram: e } = await import("./xychartDiagram-TAQBALBS-DlfKpBG9.js");
2317
1988
  return {
2318
- id: qr,
1989
+ id: fr,
2319
1990
  diagram: e
2320
1991
  };
2321
1992
  }, "loader")
2322
- }, Yr = "requirement", Xr = {
2323
- id: Yr,
1993
+ }, mr = "requirement", hr = {
1994
+ id: mr,
2324
1995
  detector: /* @__PURE__ */ t((e) => /^\s*requirement(Diagram)?/.test(e), "detector"),
2325
1996
  loader: /* @__PURE__ */ t(async () => {
2326
- let { diagram: e } = await import("./requirementDiagram-IS5BZ75X-DwrHgMzq.js");
1997
+ let { diagram: e } = await import("./requirementDiagram-X7JNWC4A-BEeCszC1.js");
2327
1998
  return {
2328
- id: Yr,
1999
+ id: mr,
2329
2000
  diagram: e
2330
2001
  };
2331
2002
  }, "loader")
2332
- }, Zr = "sequence", Qr = {
2333
- id: Zr,
2003
+ }, gr = "sequence", _r = {
2004
+ id: gr,
2334
2005
  detector: /* @__PURE__ */ t((e) => /^\s*sequenceDiagram/.test(e), "detector"),
2335
2006
  loader: /* @__PURE__ */ t(async () => {
2336
- let { diagram: e } = await import("./sequenceDiagram-WJ2MYXX4-DM6BpXMT.js");
2007
+ let { diagram: e } = await import("./sequenceDiagram-ZO4K6R2Y-B8wM6a-A.js");
2337
2008
  return {
2338
- id: Zr,
2009
+ id: gr,
2339
2010
  diagram: e
2340
2011
  };
2341
2012
  }, "loader")
2342
- }, $r = "class", ei = {
2343
- id: $r,
2344
- detector: /* @__PURE__ */ t((e, t) => t?.class?.defaultRenderer !== "dagre-wrapper" && /^\s*classDiagram/.test(e), "detector"),
2013
+ }, vr = "classDiagram", yr = {
2014
+ id: vr,
2015
+ detector: /* @__PURE__ */ t((e) => /^\s*classDiagram/.test(e), "detector"),
2345
2016
  loader: /* @__PURE__ */ t(async () => {
2346
- let { diagram: e } = await import("./classDiagram-CYGNFDIV-DsnY_WNO.js");
2017
+ let { diagram: e } = await import("./classDiagram-v2-K4WV4PDN-C39xKke0.js");
2347
2018
  return {
2348
- id: $r,
2019
+ id: vr,
2349
2020
  diagram: e
2350
2021
  };
2351
2022
  }, "loader")
2352
- }, ti = "classDiagram", ni = {
2353
- id: ti,
2354
- detector: /* @__PURE__ */ t((e, t) => /^\s*classDiagram/.test(e) && t?.class?.defaultRenderer === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(e), "detector"),
2023
+ }, br = "stateDiagram", xr = {
2024
+ id: br,
2025
+ detector: /* @__PURE__ */ t((e) => /^\s*stateDiagram/.test(e), "detector"),
2355
2026
  loader: /* @__PURE__ */ t(async () => {
2356
- let { diagram: e } = await import("./classDiagram-v2-TLXNO2FR-DeNpu9ZP.js");
2027
+ let { diagram: e } = await import("./stateDiagram-v2-TBUQTH76-PRnBJSrY.js");
2357
2028
  return {
2358
- id: ti,
2029
+ id: br,
2359
2030
  diagram: e
2360
2031
  };
2361
2032
  }, "loader")
2362
- }, ri = "state", ii = {
2363
- id: ri,
2364
- detector: /* @__PURE__ */ t((e, t) => t?.state?.defaultRenderer !== "dagre-wrapper" && /^\s*stateDiagram/.test(e), "detector"),
2365
- loader: /* @__PURE__ */ t(async () => {
2366
- let { diagram: e } = await import("./stateDiagram-XQSTLZYL-BhzcW44q.js");
2367
- return {
2368
- id: ri,
2369
- diagram: e
2370
- };
2371
- }, "loader")
2372
- }, ai = "stateDiagram", oi = {
2373
- id: ai,
2374
- detector: /* @__PURE__ */ t((e, t) => !!(/^\s*stateDiagram-v2/.test(e) || /^\s*stateDiagram/.test(e) && t?.state?.defaultRenderer === "dagre-wrapper"), "detector"),
2375
- loader: /* @__PURE__ */ t(async () => {
2376
- let { diagram: e } = await import("./stateDiagram-v2-IH3M54BS-BE5CXOTu.js");
2377
- return {
2378
- id: ai,
2379
- diagram: e
2380
- };
2381
- }, "loader")
2382
- }, si = "journey", ci = {
2383
- id: si,
2033
+ }, Sr = "journey", Cr = {
2034
+ id: Sr,
2384
2035
  detector: /* @__PURE__ */ t((e) => /^\s*journey/.test(e), "detector"),
2385
2036
  loader: /* @__PURE__ */ t(async () => {
2386
- let { diagram: e } = await import("./journeyDiagram-EYS64GPL-CqhBN0KZ.js");
2037
+ let { diagram: e } = await import("./journeyDiagram-COXZFDF6-B-qvdudB.js");
2387
2038
  return {
2388
- id: si,
2039
+ id: Sr,
2389
2040
  diagram: e
2390
2041
  };
2391
2042
  }, "loader")
2392
- }, li = { draw: /* @__PURE__ */ t((e, t, n) => {
2043
+ }, wr = 4, Tr = 75, Er = /* @__PURE__ */ t((e) => {
2044
+ let t = [];
2045
+ for (let n of e.split(/\s+/)) {
2046
+ let e = [...n];
2047
+ for (; e.length > Tr;) t.push(e.slice(0, Tr).join("")), e = e.slice(Tr);
2048
+ e.length > 0 && t.push(e.join(""));
2049
+ }
2050
+ let n = [], r = "";
2051
+ for (let e of t) {
2052
+ let t = r ? `${r} ${e}` : e;
2053
+ [...t].length > Tr ? (n.push(r), r = e) : r = t;
2054
+ }
2055
+ if (r && n.push(r), n.length > wr) {
2056
+ n.length = wr;
2057
+ let e = n[wr - 1] ?? "";
2058
+ n[wr - 1] = `${[...e].slice(0, Tr - 3).join("")}...`;
2059
+ }
2060
+ return n;
2061
+ }, "wrapErrorMessage"), Dr = { draw: /* @__PURE__ */ t((e, t, n, i) => {
2393
2062
  r.debug("rendering svg for syntax error\n");
2394
- let i = Se(t), a = i.append("g");
2395
- i.attr("viewBox", "0 0 2412 512"), x(i, 100, 512, !0), a.append("path").attr("class", "error-icon").attr("d", "m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"), a.append("path").attr("class", "error-icon").attr("d", "m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"), a.append("path").attr("class", "error-icon").attr("d", "m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"), a.append("path").attr("class", "error-icon").attr("d", "m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"), a.append("path").attr("class", "error-icon").attr("d", "m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"), a.append("path").attr("class", "error-icon").attr("d", "m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"), a.append("text").attr("class", "error-text").attr("x", 1440).attr("y", 250).attr("font-size", "150px").style("text-anchor", "middle").text("Syntax error in text"), a.append("text").attr("class", "error-text").attr("x", 1250).attr("y", 400).attr("font-size", "100px").style("text-anchor", "middle").text(`mermaid version ${n}`);
2396
- }, "draw") }, ui = li, di = {
2397
- db: {},
2398
- renderer: li,
2063
+ let a = ge(t), o = a.append("g"), s = Er(i?.db.getErrorMessage?.() ?? ""), c = s.length > 0 ? 500 + s.length * 56 : 512;
2064
+ a.attr("viewBox", `0 0 2412 ${c}`), y(a, 100, c, !0), o.append("path").attr("class", "error-icon").attr("d", "m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"), o.append("path").attr("class", "error-icon").attr("d", "m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"), o.append("path").attr("class", "error-icon").attr("d", "m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"), o.append("path").attr("class", "error-icon").attr("d", "m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"), o.append("path").attr("class", "error-icon").attr("d", "m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"), o.append("path").attr("class", "error-icon").attr("d", "m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"), o.append("text").attr("class", "error-text").attr("x", 1440).attr("y", 250).attr("font-size", "150px").style("text-anchor", "middle").text("Syntax error in text"), o.append("text").attr("class", "error-text").attr("x", 1250).attr("y", 400).attr("font-size", "100px").style("text-anchor", "middle").text(`mermaid version ${n}`), s.forEach((e, t) => {
2065
+ o.append("text").attr("class", "error-text").attr("x", 1440).attr("y", 510 + t * 56).attr("font-size", "42px").style("text-anchor", "middle").text(e);
2066
+ });
2067
+ }, "draw") }, Or = Dr, kr, Ar = {
2068
+ db: {
2069
+ clear() {
2070
+ kr = void 0;
2071
+ },
2072
+ setErrorMessage(e) {
2073
+ kr = e;
2074
+ },
2075
+ getErrorMessage() {
2076
+ return kr;
2077
+ }
2078
+ },
2079
+ renderer: Dr,
2399
2080
  parser: { parse: /* @__PURE__ */ t(() => {}, "parse") }
2400
- }, fi = "flowchart-elk", pi = {
2401
- id: fi,
2402
- detector: /* @__PURE__ */ t((e, t = {}) => /^\s*flowchart-elk/.test(e) || /^\s*(flowchart|graph)/.test(e) && t?.flowchart?.defaultRenderer === "elk" ? (t.layout = "elk", !0) : !1, "detector"),
2081
+ }, jr = "flowchart-elk", Mr = {
2082
+ id: jr,
2083
+ detector: /* @__PURE__ */ t((e, t = {}) => /^\s*flowchart-elk/.test(e) ? (t.layout = "elk", !0) : !1, "detector"),
2403
2084
  loader: /* @__PURE__ */ t(async () => {
2404
- let { diagram: e } = await import("./flowDiagram-T62WH6J4-ptBWC6KI.js");
2085
+ let { diagram: e } = await import("./flowDiagram-OXPTDLAJ-R_xf7pNW.js");
2405
2086
  return {
2406
- id: fi,
2087
+ id: jr,
2407
2088
  diagram: e
2408
2089
  };
2409
2090
  }, "loader")
2410
- }, mi = "timeline", hi = {
2411
- id: mi,
2091
+ }, Nr = "timeline", Pr = {
2092
+ id: Nr,
2412
2093
  detector: /* @__PURE__ */ t((e) => /^\s*timeline/.test(e), "detector"),
2413
2094
  loader: /* @__PURE__ */ t(async () => {
2414
- let { diagram: e } = await import("./timeline-definition-24CTP7MA-BQmq-H07.js");
2095
+ let { diagram: e } = await import("./timeline-definition-YOQAKGHF-h8_spxIb.js");
2415
2096
  return {
2416
- id: mi,
2097
+ id: Nr,
2417
2098
  diagram: e
2418
2099
  };
2419
2100
  }, "loader")
2420
- }, gi = "mindmap", _i = {
2421
- id: gi,
2101
+ }, Fr = "mindmap", Ir = {
2102
+ id: Fr,
2422
2103
  detector: /* @__PURE__ */ t((e) => /^\s*mindmap/.test(e), "detector"),
2423
2104
  loader: /* @__PURE__ */ t(async () => {
2424
- let { diagram: e } = await import("./mindmap-definition-THT77NOG-B9hdpQgy.js");
2105
+ let { diagram: e } = await import("./mindmap-definition-LZFPQGKD-gYumvdwo.js");
2425
2106
  return {
2426
- id: gi,
2107
+ id: Fr,
2427
2108
  diagram: e
2428
2109
  };
2429
2110
  }, "loader")
2430
- }, vi = "kanban", yi = {
2431
- id: vi,
2111
+ }, Lr = "kanban", Rr = {
2112
+ id: Lr,
2432
2113
  detector: /* @__PURE__ */ t((e) => /^\s*kanban/.test(e), "detector"),
2433
2114
  loader: /* @__PURE__ */ t(async () => {
2434
- let { diagram: e } = await import("./kanban-definition-UXKFOSKX-CWx_Y40t.js");
2115
+ let { diagram: e } = await import("./kanban-definition-P3RFRI5V-D0XAXDl8.js");
2435
2116
  return {
2436
- id: vi,
2117
+ id: Lr,
2437
2118
  diagram: e
2438
2119
  };
2439
2120
  }, "loader")
2440
- }, bi = "sankey", xi = {
2441
- id: bi,
2121
+ }, zr = "sankey", Br = {
2122
+ id: zr,
2442
2123
  detector: /* @__PURE__ */ t((e) => /^\s*sankey(-beta)?/.test(e), "detector"),
2443
2124
  loader: /* @__PURE__ */ t(async () => {
2444
- let { diagram: e } = await import("./sankeyDiagram-P5KCCOFB-CcT0ZbW6.js");
2125
+ let { diagram: e } = await import("./sankeyDiagram-UM26HJRW-DLDVzhPm.js");
2445
2126
  return {
2446
- id: bi,
2127
+ id: zr,
2447
2128
  diagram: e
2448
2129
  };
2449
2130
  }, "loader")
2450
- }, Si = "packet", Ci = {
2451
- id: Si,
2131
+ }, Vr = "packet", Hr = {
2132
+ id: Vr,
2452
2133
  detector: /* @__PURE__ */ t((e) => /^\s*packet(-beta)?/.test(e), "detector"),
2453
2134
  loader: /* @__PURE__ */ t(async () => {
2454
- let { diagram: e } = await import("./diagram-Z3DM3KII-CqouFf3D.js");
2135
+ let { diagram: e } = await import("./diagram-UMYRVEAY-blW7NpUU.js");
2455
2136
  return {
2456
- id: Si,
2137
+ id: Vr,
2457
2138
  diagram: e
2458
2139
  };
2459
2140
  }, "loader")
2460
- }, wi = "radar", Ti = {
2461
- id: wi,
2141
+ }, Ur = "radar", Wr = {
2142
+ id: Ur,
2462
2143
  detector: /* @__PURE__ */ t((e) => /^\s*radar-beta/.test(e), "detector"),
2463
2144
  loader: /* @__PURE__ */ t(async () => {
2464
- let { diagram: e } = await import("./diagram-UQ7AKVKN-Bvz7faiB.js");
2145
+ let { diagram: e } = await import("./diagram-YEKJPTXX-BOgf87BN.js");
2465
2146
  return {
2466
- id: wi,
2147
+ id: Ur,
2467
2148
  diagram: e
2468
2149
  };
2469
2150
  }, "loader")
2470
- }, Ei = "block", Di = {
2471
- id: Ei,
2151
+ }, Gr = "block", Kr = {
2152
+ id: Gr,
2472
2153
  detector: /* @__PURE__ */ t((e) => /^\s*block(-beta)?/.test(e), "detector"),
2473
2154
  loader: /* @__PURE__ */ t(async () => {
2474
- let { diagram: e } = await import("./blockDiagram-OSKFZWR5-B1pU8Z2f.js");
2155
+ let { diagram: e } = await import("./blockDiagram-E7TT5TSB-CEa2A5E9.js");
2475
2156
  return {
2476
- id: Ei,
2157
+ id: Gr,
2477
2158
  diagram: e
2478
2159
  };
2479
2160
  }, "loader")
2480
- }, Oi = "treeView", ki = {
2481
- id: Oi,
2161
+ }, qr = "treeView", Jr = {
2162
+ id: qr,
2482
2163
  detector: /* @__PURE__ */ t((e) => /^\s*treeView-beta/.test(e), "detector"),
2483
2164
  loader: /* @__PURE__ */ t(async () => {
2484
- let { diagram: e } = await import("./diagram-S7CK7UJ4-BH8mrGrv.js");
2165
+ let { diagram: e } = await import("./diagram-PFPMY2P6-BpOJbdZ5.js");
2485
2166
  return {
2486
- id: Oi,
2167
+ id: qr,
2487
2168
  diagram: e
2488
2169
  };
2489
2170
  }, "loader")
2490
- }, Ai = "architecture", ji = {
2491
- id: Ai,
2171
+ }, Yr = "architecture", Xr = {
2172
+ id: Yr,
2492
2173
  detector: /* @__PURE__ */ t((e) => /^\s*architecture/.test(e), "detector"),
2493
2174
  loader: /* @__PURE__ */ t(async () => {
2494
- let { diagram: e } = await import("./architectureDiagram-5GKGNRK7-BRdxCCja.js");
2175
+ let { diagram: e } = await import("./architectureDiagram-47P4ROYG-C_rUoWaO.js");
2495
2176
  return {
2496
- id: Ai,
2177
+ id: Yr,
2497
2178
  diagram: e
2498
2179
  };
2499
2180
  }, "loader")
2500
- }, Mi = "eventmodeling", Ni = {
2501
- id: Mi,
2181
+ }, Zr = "eventmodeling", Qr = {
2182
+ id: Zr,
2502
2183
  detector: /* @__PURE__ */ t((e) => /^\s*eventmodeling/.test(e), "detector"),
2503
2184
  loader: /* @__PURE__ */ t(async () => {
2504
- let { diagram: e } = await import("./diagram-VSXAHHWV-l9f6spkp.js");
2185
+ let { diagram: e } = await import("./diagram-ZIFT7M5P-CZOnEYez.js");
2505
2186
  return {
2506
- id: Mi,
2187
+ id: Zr,
2507
2188
  diagram: e
2508
2189
  };
2509
2190
  }, "loader")
2510
- }, Pi = "ishikawa", Fi = {
2511
- id: Pi,
2191
+ }, $r = "ishikawa", ei = {
2192
+ id: $r,
2512
2193
  detector: /* @__PURE__ */ t((e) => /^\s*ishikawa(-beta)?\b/i.test(e), "detector"),
2513
2194
  loader: /* @__PURE__ */ t(async () => {
2514
- let { diagram: e } = await import("./ishikawaDiagram-5VMMS53U-CvVqTWku.js");
2195
+ let { diagram: e } = await import("./ishikawaDiagram-K3B6WC7H-BeLiZFVY.js");
2515
2196
  return {
2516
- id: Pi,
2197
+ id: $r,
2517
2198
  diagram: e
2518
2199
  };
2519
2200
  }, "loader")
2520
- }, Ii = "venn", Li = {
2521
- id: Ii,
2201
+ }, ti = "venn", ni = {
2202
+ id: ti,
2522
2203
  detector: /* @__PURE__ */ t((e) => /^\s*venn-beta/.test(e), "detector"),
2523
2204
  loader: /* @__PURE__ */ t(async () => {
2524
- let { diagram: e } = await import("./vennDiagram-4TSXK5OY-BdzbrV6i.js");
2205
+ let { diagram: e } = await import("./vennDiagram-BLWOH2XV-_zHkfDVB.js");
2525
2206
  return {
2526
- id: Ii,
2207
+ id: ti,
2527
2208
  diagram: e
2528
2209
  };
2529
2210
  }, "loader")
2530
- }, Ri = "treemap", zi = {
2531
- id: Ri,
2211
+ }, ri = "treemap", ii = {
2212
+ id: ri,
2532
2213
  detector: /* @__PURE__ */ t((e) => /^\s*treemap/.test(e), "detector"),
2533
2214
  loader: /* @__PURE__ */ t(async () => {
2534
- let { diagram: e } = await import("./diagram-VX7I27RA-BK8jsKkD.js");
2215
+ let { diagram: e } = await import("./diagram-OVF4WLC6-D6r6aTeO.js");
2216
+ return {
2217
+ id: ri,
2218
+ diagram: e
2219
+ };
2220
+ }, "loader")
2221
+ }, ai = "usecase", oi = {
2222
+ id: ai,
2223
+ detector: /* @__PURE__ */ t((e) => /^\s*usecase-beta(?:\s|$)/.test(e), "detector"),
2224
+ loader: /* @__PURE__ */ t(async () => {
2225
+ let { diagram: e } = await import("./usecaseDiagram-VIAY4XPW-DCfwvERR.js");
2535
2226
  return {
2536
- id: Ri,
2227
+ id: ai,
2537
2228
  diagram: e
2538
2229
  };
2539
2230
  }, "loader")
2540
- }, Bi = "wardley", Vi = {
2541
- id: Bi,
2231
+ }, si = "wardley", ci = {
2232
+ id: si,
2542
2233
  detector: /* @__PURE__ */ t((e) => /^\s*wardley-beta/i.test(e), "detector"),
2543
2234
  loader: /* @__PURE__ */ t(async () => {
2544
- let { diagram: e } = await import("./wardleyDiagram-VM6X3IG4-Ccz1enMd.js");
2235
+ let { diagram: e } = await import("./wardleyDiagram-YMQ3BMBF-BKvQkiZP.js");
2545
2236
  return {
2546
- id: Bi,
2237
+ id: si,
2547
2238
  diagram: e
2548
2239
  };
2549
2240
  }, "loader")
2550
- }, Hi = "cynefin", Ui = {
2551
- id: Hi,
2241
+ }, li = "cynefin", ui = {
2242
+ id: li,
2552
2243
  detector: /* @__PURE__ */ t((e) => /^\s*cynefin-beta(?:[\s:]|$)/.test(e), "detector"),
2553
2244
  loader: /* @__PURE__ */ t(async () => {
2554
- let { diagram: e } = await import("./cynefinDiagram-5FMLGOSQ-BEFzUfsd.js");
2245
+ let { diagram: e } = await import("./cynefinDiagram-3GCD6N5R-C2CRSeJl.js");
2555
2246
  return {
2556
- id: Hi,
2247
+ id: li,
2557
2248
  diagram: e
2558
2249
  };
2559
2250
  }, "loader")
2560
- }, Wi = "railroad", Gi = {
2561
- id: Wi,
2251
+ }, di = "railroad", fi = {
2252
+ id: di,
2562
2253
  detector: /* @__PURE__ */ t((e) => /^\s*railroad-beta/i.test(e), "detector"),
2563
2254
  loader: /* @__PURE__ */ t(async () => {
2564
- let { diagram: e } = await import("./railroadDiagram-O6MQD6OU-DLBEWyaH.js");
2255
+ let { diagram: e } = await import("./railroadDiagram-SM67HX2B-T5SG0kEf.js");
2565
2256
  return {
2566
- id: Wi,
2257
+ id: di,
2567
2258
  diagram: e
2568
2259
  };
2569
2260
  }, "loader")
2570
- }, Ki = "railroadEbnf", qi = {
2571
- id: Ki,
2261
+ }, pi = "railroadEbnf", mi = {
2262
+ id: pi,
2572
2263
  detector: /* @__PURE__ */ t((e) => /^\s*railroad-ebnf-beta/i.test(e), "detector"),
2573
2264
  loader: /* @__PURE__ */ t(async () => {
2574
- let { diagram: e } = await import("./ebnfDiagram-PWID7BFC-Bwmmg23f.js");
2265
+ let { diagram: e } = await import("./ebnfDiagram-VR2GEFS7-Cr0a3Ho_.js");
2575
2266
  return {
2576
- id: Ki,
2267
+ id: pi,
2577
2268
  diagram: e
2578
2269
  };
2579
2270
  }, "loader")
2580
- }, Ji = "railroadAbnf", Yi = {
2581
- id: Ji,
2271
+ }, hi = "railroadAbnf", gi = {
2272
+ id: hi,
2582
2273
  detector: /* @__PURE__ */ t((e) => /^\s*railroad-abnf-beta/i.test(e), "detector"),
2583
2274
  loader: /* @__PURE__ */ t(async () => {
2584
- let { diagram: e } = await import("./abnfDiagram-VCTEODGH-BX4P82Y6.js");
2275
+ let { diagram: e } = await import("./abnfDiagram-YUKMZFIV-dNHR2FX4.js");
2585
2276
  return {
2586
- id: Ji,
2277
+ id: hi,
2587
2278
  diagram: e
2588
2279
  };
2589
2280
  }, "loader")
2590
- }, Xi = "railroadPeg", Zi = {
2591
- id: Xi,
2281
+ }, _i = "railroadPeg", vi = {
2282
+ id: _i,
2592
2283
  detector: /* @__PURE__ */ t((e) => /^\s*railroad-peg-beta/i.test(e), "detector"),
2593
2284
  loader: /* @__PURE__ */ t(async () => {
2594
- let { diagram: e } = await import("./pegDiagram-XKGWAZYB-CIBfY2Ob.js");
2285
+ let { diagram: e } = await import("./pegDiagram-BGZESJAR-Dw9pRv5d.js");
2595
2286
  return {
2596
- id: Xi,
2287
+ id: _i,
2597
2288
  diagram: e
2598
2289
  };
2599
2290
  }, "loader")
2600
- }, Qi = !1, $i = /* @__PURE__ */ t(() => {
2601
- Qi || (Qi = !0, u("error", di, (e) => e.toLowerCase().trim() === "error"), u("---", {
2291
+ }, yi = !1, bi = /* @__PURE__ */ t(() => {
2292
+ yi || (yi = !0, u("error", Ar, (e) => e.toLowerCase().trim() === "error"), u("---", {
2602
2293
  db: { clear: /* @__PURE__ */ t(() => {}, "clear") },
2603
2294
  styles: {},
2604
2295
  renderer: { draw: /* @__PURE__ */ t(() => {}, "draw") },
@@ -2606,18 +2297,18 @@ var Er = /* @__PURE__ */ e({
2606
2297
  throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks");
2607
2298
  }, "parse") },
2608
2299
  init: /* @__PURE__ */ t(() => null, "init")
2609
- }, (e) => e.toLowerCase().trimStart().startsWith("---")), d(pi, _i, ji), d(Or, yi, ni, ei, Ir, Br, Hr, Wr, Xr, Qr, Pr, Mr, Ar, hi, Rr, oi, ii, ci, Kr, xi, Ci, Jr, Di, Ni, ki, Ti, Fi, zi, Gi, qi, Yi, Zi, Li, Vi, Ui));
2610
- }, "addDiagrams"), ea = /* @__PURE__ */ t(async () => {
2300
+ }, (e) => e.toLowerCase().trimStart().startsWith("---")), d(Mr, Ir, Xr), d(Zn, qn, Rr, yr, tr, ar, sr, lr, hr, _r, $n, Yn, Pr, rr, xr, Cr, dr, Br, Hr, pr, Kr, Qr, Jr, Wr, ei, ii, fi, mi, gi, vi, ni, ci, ui, oi));
2301
+ }, "addDiagrams"), xi = /* @__PURE__ */ t(async () => {
2611
2302
  r.debug("Loading registered diagrams");
2612
- let e = (await Promise.allSettled(Object.entries(w).map(async ([e, { detector: t, loader: n }]) => {
2303
+ let e = (await Promise.allSettled(Object.entries(T).map(async ([e, { detector: t, loader: n }]) => {
2613
2304
  if (n) try {
2614
- p(e);
2305
+ N(e);
2615
2306
  } catch {
2616
2307
  try {
2617
2308
  let { diagram: e, id: r } = await n();
2618
2309
  u(r, e, t);
2619
2310
  } catch (t) {
2620
- throw r.error(`Failed to load external diagram with key ${e}. Removing from detectors.`), delete w[e], t;
2311
+ throw r.error(`Failed to load external diagram with key ${e}. Removing from detectors.`), delete T[e], t;
2621
2312
  }
2622
2313
  }
2623
2314
  }))).filter((e) => e.status === "rejected");
@@ -2626,12 +2317,12 @@ var Er = /* @__PURE__ */ e({
2626
2317
  for (let t of e) r.error(t);
2627
2318
  throw Error(`Failed to load ${e.length} external diagrams`);
2628
2319
  }
2629
- }, "loadRegisteredDiagrams"), ta = "graphics-document document";
2630
- function na(e, t) {
2631
- e.attr("role", ta), t !== "" && e.attr("aria-roledescription", t);
2320
+ }, "loadRegisteredDiagrams"), Si = "graphics-document document";
2321
+ function Ci(e, t) {
2322
+ e.attr("role", Si), t !== "" && e.attr("aria-roledescription", t);
2632
2323
  }
2633
- t(na, "setA11yDiagramInfo");
2634
- function ra(e, t, n, r) {
2324
+ t(Ci, "setA11yDiagramInfo");
2325
+ function wi(e, t, n, r) {
2635
2326
  if (e.insert !== void 0) {
2636
2327
  if (n) {
2637
2328
  let t = `chart-desc-${r}`;
@@ -2643,8 +2334,8 @@ function ra(e, t, n, r) {
2643
2334
  }
2644
2335
  }
2645
2336
  }
2646
- t(ra, "addSVGa11yTitleDescription");
2647
- var ia = class e {
2337
+ t(wi, "addSVGa11yTitleDescription");
2338
+ var Ti = class e {
2648
2339
  constructor(e, t, n, r, i) {
2649
2340
  this.type = e, this.text = t, this.db = n, this.parser = r, this.renderer = i;
2650
2341
  }
@@ -2652,18 +2343,27 @@ var ia = class e {
2652
2343
  t(this, "Diagram");
2653
2344
  }
2654
2345
  static async fromText(t, n = {}) {
2655
- let r = b(), i = E(t, r);
2656
- t = ne(t) + "\n";
2346
+ let i = typeof t == "string" ? {
2347
+ raw: t,
2348
+ cleaned: t
2349
+ } : t, a = P(), o = D(i.cleaned, a);
2657
2350
  try {
2658
- p(i);
2351
+ N(o);
2659
2352
  } catch {
2660
- let e = o(i);
2661
- if (!e) throw new ee(`Diagram ${i} not found.`);
2353
+ let e = p(o);
2354
+ if (!e) throw new A(`Diagram ${o} not found.`);
2662
2355
  let { id: t, diagram: n } = await e();
2663
2356
  u(t, n);
2664
2357
  }
2665
- let { db: a, parser: s, renderer: c, init: l } = p(i);
2666
- return s.parser && (s.parser.yy = a), a.clear?.(), l?.(r), n.title && a.setDiagramTitle?.(n.title), await s.parse(t), new e(i, t, a, s, c);
2358
+ let { db: s, parser: c, renderer: l, init: d } = N(o);
2359
+ c.parser && (c.parser.yy = s), s.clear?.(), d?.(a), n.title && s.setDiagramTitle?.(n.title);
2360
+ let f = i.cleaned;
2361
+ if (s.preserveCommentsWhenParsing && i.withComments) {
2362
+ let e = a.maxTextSize ?? x.maxTextSize;
2363
+ i.withComments.length > e ? r.warn(`Comment-preserving source exceeds maxTextSize (${i.withComments.length} > ${e}); parsing the comment-stripped text instead. Reported source positions will not account for comment lines.`) : f = i.withComments;
2364
+ }
2365
+ let m = ie(f) + "\n";
2366
+ return i.frontmatterLineOffset && s.setFrontmatterLineOffset?.(i.frontmatterLineOffset), await c.parse(m), new e(o, m, s, c, l);
2667
2367
  }
2668
2368
  async render(e, t) {
2669
2369
  await this.renderer.draw(this.text, e, t, this);
@@ -2674,78 +2374,92 @@ var ia = class e {
2674
2374
  getType() {
2675
2375
  return this.type;
2676
2376
  }
2677
- }, aa = [], oa = /* @__PURE__ */ t(() => {
2678
- aa.forEach((e) => {
2377
+ }, Ei = [], Di = /* @__PURE__ */ t(() => {
2378
+ Ei.forEach((e) => {
2679
2379
  e();
2680
- }), aa = [];
2681
- }, "attachFunctions"), sa = /* @__PURE__ */ t((e) => e.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart(), "cleanupComments");
2682
- function ca(e) {
2683
- let t = e.match(y);
2380
+ }), Ei = [];
2381
+ }, "attachFunctions"), Oi = /* @__PURE__ */ t((e) => e.replace(/^\s*%%(?!{)[^\n]+\n?/gm, "").trimStart(), "cleanupComments");
2382
+ function ki(e) {
2383
+ let t = C(e);
2684
2384
  if (!t) return {
2685
2385
  text: e,
2686
2386
  metadata: {}
2687
2387
  };
2688
- let n = t[1], r = jn(n ? t[2].split("\n").map((e) => e.startsWith(n) ? e.slice(n.length) : e).join("\n") : t[2], { schema: On }) ?? {};
2388
+ let n = t.indent, r = Xt(n ? t.body.split("\n").map((e) => e.startsWith(n) ? e.slice(n.length) : e).join("\n") : t.body, { schema: qt }) ?? {};
2689
2389
  r = typeof r == "object" && !Array.isArray(r) ? r : {};
2690
2390
  let i = {};
2691
2391
  return r.displayMode && (i.displayMode = r.displayMode.toString()), r.title && (i.title = r.title.toString()), r.config && (i.config = r.config), {
2692
- text: e.slice(t[0].length),
2392
+ text: e.slice(t.length),
2693
2393
  metadata: i
2694
2394
  };
2695
2395
  }
2696
- t(ca, "extractFrontMatter");
2697
- var la = /* @__PURE__ */ t((e) => e.replace(/\r\n?/g, "\n").replace(/<(\w+)([^>]*)>/g, (e, t, n) => "<" + t + n.replace(/="([^"]*)"/g, "='$1'") + ">"), "cleanupText"), ua = /* @__PURE__ */ t((e) => {
2698
- let { text: t, metadata: n } = ca(e), { displayMode: r, title: i, config: a = {} } = n;
2396
+ t(ki, "extractFrontMatter");
2397
+ var Ai = /* @__PURE__ */ t((e) => e.replace(/\r\n?/g, "\n").replace(/<(\w+)([^>]*)>/g, (e, t, n) => "<" + t + n.replace(/="([^"]*)"/g, "='$1'") + ">"), "cleanupText"), ji = /* @__PURE__ */ t((e) => {
2398
+ let { text: t, metadata: n } = ki(e), { displayMode: r, title: i, config: a = {} } = n;
2699
2399
  return r && (a.gantt ||= {}, a.gantt.displayMode = r), {
2700
2400
  title: i,
2701
2401
  config: a,
2702
2402
  text: t
2703
2403
  };
2704
- }, "processFrontmatter"), da = /* @__PURE__ */ t((e) => {
2705
- let t = F.detectInit(e) ?? {}, n = F.detectDirective(e, "wrap");
2404
+ }, "processFrontmatter"), Mi = /* @__PURE__ */ t((e) => {
2405
+ let t = L.detectInit(e) ?? {}, n = L.detectDirective(e, "wrap");
2706
2406
  return Array.isArray(n) ? t.wrap = n.some(({ type: e }) => e === "wrap") : n?.type === "wrap" && (t.wrap = !0), {
2707
- text: I(e),
2407
+ text: te(e),
2708
2408
  directive: t
2709
2409
  };
2710
2410
  }, "processDirectives");
2711
- function fa(e) {
2712
- let t = ua(la(e)), n = da(t.text), r = L(t.config, n.directive);
2713
- return e = sa(n.text), {
2714
- code: e,
2715
- title: t.title,
2716
- config: r
2411
+ function Ni(e) {
2412
+ let t = e, n = Ai(e), r = ji(n), i = Mi(r.text), a = ne(r.config, i.directive), o = i.text;
2413
+ return {
2414
+ code: {
2415
+ raw: t,
2416
+ cleaned: Oi(o),
2417
+ withComments: o,
2418
+ frontmatterLineOffset: n.length > r.text.length ? (n.substring(0, n.length - r.text.length).match(/\n/g) ?? []).length : 0
2419
+ },
2420
+ title: r.title,
2421
+ config: a
2717
2422
  };
2718
2423
  }
2719
- t(fa, "preprocessDiagram");
2720
- function pa(e) {
2424
+ t(Ni, "preprocessDiagram");
2425
+ function Pi(e) {
2721
2426
  let t = new TextEncoder().encode(e), n = Array.from(t, (e) => String.fromCodePoint(e)).join("");
2722
2427
  return btoa(n);
2723
2428
  }
2724
- t(pa, "toBase64");
2725
- var ma = 5e4, ha = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", ga = "sandbox", _a = "loose", va = "http://www.w3.org/2000/svg", ya = "http://www.w3.org/1999/xlink", ba = "http://www.w3.org/1999/xhtml", xa = "100%", Sa = "100%", Ca = "border:0;margin:0;", wa = "margin:0", Ta = "allow-top-navigation-by-user-activation allow-popups", Ea = "The \"iframe\" tag is not supported by your browser.", Da = ["foreignobject"], Oa = ["dominant-baseline"];
2726
- function ka(e) {
2727
- let t = fa(e);
2728
- return c(), T(t.config ?? {}), t;
2429
+ t(Pi, "toBase64");
2430
+ var Fi = 5e4, Ii = "graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa", Li = "sandbox", Ri = "loose", zi = "http://www.w3.org/2000/svg", Bi = "http://www.w3.org/1999/xlink", Vi = "http://www.w3.org/1999/xhtml", Hi = "100%", Ui = "100%", Wi = "border:0;margin:0;", Gi = "margin:0", Ki = "allow-top-navigation-by-user-activation allow-popups", qi = "The \"iframe\" tag is not supported by your browser.", Ji = ["foreignobject"], Yi = ["dominant-baseline"];
2431
+ function Xi(e) {
2432
+ let t = Ni(e);
2433
+ o();
2434
+ let n;
2435
+ try {
2436
+ n = D(t.code.cleaned, P());
2437
+ } catch {
2438
+ n = void 0;
2439
+ }
2440
+ return c(n), E(t.config ?? {}), t;
2729
2441
  }
2730
- t(ka, "processAndSetConfigs");
2731
- async function Aa(e, t) {
2732
- $i();
2442
+ t(Xi, "processAndSetConfigs");
2443
+ async function Zi(e, t) {
2444
+ bi();
2733
2445
  try {
2734
- let { code: t, config: n } = ka(e);
2446
+ let { code: t, config: n } = Xi(e);
2735
2447
  return {
2736
- diagramType: (await Ha(t)).type,
2448
+ diagramType: (await Ti.fromText(t)).type,
2737
2449
  config: n
2738
2450
  };
2739
2451
  } catch (e) {
2740
2452
  if (t?.suppressErrors) return !1;
2741
2453
  throw e;
2454
+ } finally {
2455
+ c(void 0);
2742
2456
  }
2743
2457
  }
2744
- t(Aa, "parse");
2745
- var ja = /* @__PURE__ */ t((e, t, n = []) => `.${e} ${t} ${l(`{ ${n.join(" !important; ")} !important; }`)}`, "cssImportantStyles"), Ma = /* @__PURE__ */ t((e, t = /* @__PURE__ */ new Map()) => {
2458
+ t(Zi, "parse");
2459
+ var Qi = /* @__PURE__ */ t((e, t, n = []) => `.${e} ${t} ${l(`{ ${n.join(" !important; ")} !important; }`)}`, "cssImportantStyles"), $i = /* @__PURE__ */ t((e, t = /* @__PURE__ */ new Map()) => {
2746
2460
  let n = new CSSStyleSheet();
2747
2461
  if (e.fontFamily !== void 0 && n.insertRule(`:root { --mermaid-font-family: ${e.fontFamily}}`, n.cssRules.length), e.altFontFamily !== void 0 && n.insertRule(`:root { --mermaid-alt-font-family: ${e.altFontFamily}}`, n.cssRules.length), t instanceof Map) {
2748
- let r = m(e) ? ["> *", "span"] : [
2462
+ let r = M(e) ? ["> *", "span"] : [
2749
2463
  "rect",
2750
2464
  "polygon",
2751
2465
  "ellipse",
@@ -2753,21 +2467,21 @@ var ja = /* @__PURE__ */ t((e, t, n = []) => `.${e} ${t} ${l(`{ ${n.join(" !impo
2753
2467
  "path"
2754
2468
  ];
2755
2469
  t.forEach((e) => {
2756
- we(e.styles) || r.forEach((t) => {
2757
- n.insertRule(ja(e.id, t, e.styles), n.cssRules.length);
2758
- }), we(e.textStyles) || n.insertRule(ja(e.id, "tspan", (e?.textStyles || []).map((e) => e.replace("color", "fill"))), n.cssRules.length);
2470
+ ve(e.styles) || r.forEach((t) => {
2471
+ n.insertRule(Qi(e.id, t, e.styles), n.cssRules.length);
2472
+ }), ve(e.textStyles) || n.insertRule(Qi(e.id, "tspan", (e?.textStyles || []).map((e) => e.replace("color", "fill"))), n.cssRules.length);
2759
2473
  });
2760
2474
  }
2761
2475
  let r = "";
2762
2476
  if (e.themeCSS !== void 0) {
2763
2477
  if (typeof n.replaceSync == "function") {
2764
2478
  let t = new CSSStyleSheet();
2765
- t.replaceSync(e.themeCSS), r = C(t) + "\n";
2479
+ t.replaceSync(e.themeCSS), r = w(t) + "\n";
2766
2480
  } else r += `${e.themeCSS}
2767
2481
  `;
2768
2482
  }
2769
- return r + C(n);
2770
- }, "createCssStyles"), Na = /* @__PURE__ */ t((e, n) => Cr(vr(`${e}{${n}}`), Tr([/* @__PURE__ */ t(function(t, n, i, a) {
2483
+ return r + w(n);
2484
+ }, "createCssStyles"), ea = /* @__PURE__ */ t((e, n) => Hn(Ln(`${e}{${n}}`), Wn([/* @__PURE__ */ t(function(t, n, i, a) {
2771
2485
  if (t.type === "rule" && Array.isArray(t.props)) {
2772
2486
  if (t.parent && t.parent.type === "@keyframes") return;
2773
2487
  t.props = t.props.map((n) => n === e && Array.isArray(t.children) && t.children.every((e) => e.type === "decl" && (/* @__PURE__ */ new Set([
@@ -2783,125 +2497,136 @@ var ja = /* @__PURE__ */ t((e, t, n = []) => `.${e} ${t} ${l(`{ ${n.join(" !impo
2783
2497
  "@container",
2784
2498
  "@starting-style",
2785
2499
  "@keyframes"
2786
- ].includes(t.type) || (r.warn(`Removing unsupported at-rule ${t.type} from CSS`), t.type = zn));
2787
- }, "addNamespace"), wr])), "compileCSS"), Pa = /* @__PURE__ */ t((e, t, n, r) => {
2788
- let i = Ma(e, n);
2789
- return Na(r, _(t, i, {
2500
+ ].includes(t.type) || (r.warn(`Removing unsupported at-rule ${t.type} from CSS`), t.type = an));
2501
+ }, "addNamespace"), Un])), "compileCSS"), ta = /* @__PURE__ */ t((e, t, n, r) => {
2502
+ let i = $i(e, n);
2503
+ return ea(r, _(t, i, {
2790
2504
  ...e.themeVariables,
2791
2505
  theme: e.theme,
2792
2506
  look: e.look
2793
2507
  }, r));
2794
- }, "createUserStyles"), Fa = /* @__PURE__ */ t((e = "", t, n) => {
2508
+ }, "createUserStyles"), na = /* @__PURE__ */ t((e = "", t, n) => {
2795
2509
  let r = e;
2796
- return !n && !t && (r = r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g, "marker-end=\"url(#")), r = te(r), r = r.replace(/<br>/g, "<br/>"), r;
2797
- }, "cleanUpSvgCode"), Ia = /* @__PURE__ */ t((e = "", t) => `<iframe style="width:${xa};height:${t?.viewBox?.baseVal?.height ? t.viewBox.baseVal.height + "px" : Sa};${Ca}" src="data:text/html;charset=UTF-8;base64,${pa(`<body style="${wa}">${e}</body>`)}" sandbox="${Ta}">
2798
- ${Ea}
2799
- </iframe>`, "putIntoIFrame"), La = /* @__PURE__ */ t((e, t, n, r, i) => {
2510
+ return !n && !t && (r = r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g, "marker-end=\"url(#")), r = R(r), r = r.replace(/<br>/g, "<br/>"), r;
2511
+ }, "cleanUpSvgCode"), ra = /* @__PURE__ */ t((e = "", t) => `<iframe style="width:${Hi};height:${t?.viewBox?.baseVal?.height ? t.viewBox.baseVal.height + "px" : Ui};${Wi}" src="data:text/html;charset=UTF-8;base64,${Pi(`<body style="${Gi}">${e}</body>`)}" sandbox="${Ki}">
2512
+ ${qi}
2513
+ </iframe>`, "putIntoIFrame"), ia = /* @__PURE__ */ t((e, t, n, r, i) => {
2800
2514
  let a = e.append("div");
2801
2515
  a.attr("id", n), r && a.attr("style", r);
2802
- let o = a.append("svg").attr("id", t).attr("width", "100%").attr("xmlns", va);
2516
+ let o = a.append("svg").attr("id", t).attr("width", "100%").attr("xmlns", zi);
2803
2517
  return i && o.attr("xmlns:xlink", i), o.append("g"), e;
2804
2518
  }, "appendDivSvgG");
2805
- function Ra(e, t) {
2519
+ function aa(e, t) {
2806
2520
  return e.append("iframe").attr("id", t).attr("style", "width: 100%; height: 100%;").attr("sandbox", "");
2807
2521
  }
2808
- t(Ra, "sandboxedIframe");
2809
- var za = /* @__PURE__ */ t((e, t, n, r) => {
2522
+ t(aa, "sandboxedIframe");
2523
+ var oa = /* @__PURE__ */ t((e, t, n, r) => {
2810
2524
  e.getElementById(t)?.remove(), e.getElementById(n)?.remove(), e.getElementById(r)?.remove();
2811
- }, "removeExistingElements"), Ba = /* @__PURE__ */ t(async function(e, n, o) {
2812
- $i();
2813
- let s = ka(n);
2814
- n = s.code;
2815
- let c = b();
2816
- r.debug(c), n.length > (c?.maxTextSize ?? ma) && (n = ha);
2525
+ }, "removeExistingElements"), sa = /* @__PURE__ */ t(async function(e, n, a) {
2526
+ bi();
2527
+ let o = Xi(n), s = o.code;
2528
+ n = s.cleaned;
2529
+ let c = P();
2530
+ r.debug(c), n.length > (c?.maxTextSize ?? Fi) && (n = Ii, s = {
2531
+ raw: n,
2532
+ cleaned: n
2533
+ });
2817
2534
  let l = `#${e}`, u = "i" + e, d = "#" + u, f = "d" + e, p = "#" + f, m = /* @__PURE__ */ t(() => {
2818
2535
  let e = i(g ? d : p).node();
2819
2536
  e && "remove" in e && e.remove();
2820
- }, "removeTempElements"), h = i(document.body), g = c.securityLevel === ga, _ = c.securityLevel === _a, v = c.fontFamily;
2821
- if (o !== void 0) {
2822
- if (o && (o.innerHTML = ""), g) {
2823
- let e = Ra(i(o), u);
2537
+ }, "removeTempElements"), h = i(document.body), g = c.securityLevel === Li, _ = c.securityLevel === Ri, v = c.fontFamily;
2538
+ if (a !== void 0) {
2539
+ if (a && (a.innerHTML = ""), g) {
2540
+ let e = aa(i(a), u);
2824
2541
  h = i(e.nodes()[0].contentDocument.body), h.node().style.margin = "0";
2825
- } else h = i(o);
2826
- La(h, e, f, `font-family: ${v}`, ya);
2542
+ } else h = i(a);
2543
+ ia(h, e, f, `font-family: ${v}`, Bi);
2827
2544
  } else {
2828
- if (za(document, e, f, u), g) {
2829
- let e = Ra(i(document.body), u);
2545
+ if (oa(document, e, f, u), g) {
2546
+ let e = aa(i(document.body), u);
2830
2547
  h = i(e.nodes()[0].contentDocument.body), h.node().style.margin = "0";
2831
2548
  } else h = i("body");
2832
- La(h, e, f);
2549
+ ia(h, e, f);
2833
2550
  }
2834
2551
  let y, x;
2835
2552
  try {
2836
- y = await ia.fromText(n, { title: s.title });
2553
+ y = await Ti.fromText(s, { title: o.title });
2837
2554
  } catch (e) {
2838
2555
  if (c.suppressErrorRendering) throw m(), e;
2839
- y = await ia.fromText("error"), x = e;
2556
+ y = await Ti.fromText("error"), x = e, y.db.setErrorMessage?.(re(e));
2840
2557
  }
2841
- let C = h.select(p).node(), w = y.type, T = C.firstChild, E = T.firstChild, D = y.renderer.getClasses?.(n, y), O = Pa(c, w, D, l), k = document.createElement("style");
2558
+ let C = h.select(p).node(), w = y.type, T = C.firstChild, E = T.firstChild, D = y.renderer.getClasses?.(n, y), O = ta(c, w, D, l), k = document.createElement("style");
2842
2559
  k.innerHTML = O, T.insertBefore(k, E);
2843
2560
  try {
2844
- await y.renderer.draw(n, e, "11.17.1", y);
2561
+ await y.renderer.draw(n, e, "12.1.0", y);
2845
2562
  } catch (t) {
2846
- throw c.suppressErrorRendering ? m() : ui.draw(n, e, "11.17.1"), t;
2563
+ throw c.suppressErrorRendering ? m() : Or.draw(n, e, "12.1.0"), t;
2847
2564
  }
2848
- let ee = h.select(`${p} svg`), A = y.db.getAccTitle?.(), j = y.db.getAccDescription?.();
2849
- Ua(w, ee, A, j);
2850
- let M = (/* @__PURE__ */ t(() => {
2851
- h.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns", ba);
2565
+ let A = h.select(`${p} svg`), j = y.db.getAccTitle?.(), M = y.db.getAccDescription?.();
2566
+ da(w, A, j, M);
2567
+ let N = (/* @__PURE__ */ t(() => {
2568
+ h.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns", Vi);
2852
2569
  let t = h.select(p).node().innerHTML;
2853
- if (r.debug("config.arrowMarkerAbsolute", c.arrowMarkerAbsolute), t = Fa(t, g, S(c.arrowMarkerAbsolute)), g) {
2570
+ if (r.debug("config.arrowMarkerAbsolute", c.arrowMarkerAbsolute), t = na(t, g, S(c.arrowMarkerAbsolute)), g) {
2854
2571
  let e = h.select(p + " svg").node();
2855
- t = Ia(t, e);
2856
- } else _ || (t = a.sanitize(t, {
2857
- ADD_TAGS: Da,
2858
- ADD_ATTR: Oa,
2572
+ t = ra(t, e);
2573
+ } else _ || (t = b.sanitize(t, {
2574
+ ADD_TAGS: Ji,
2575
+ ADD_ATTR: Yi,
2859
2576
  HTML_INTEGRATION_POINTS: { foreignobject: !0 }
2860
2577
  }));
2861
- return oa(), t;
2578
+ return Di(), t;
2862
2579
  }, "serializeSvg"))();
2863
2580
  if (x) throw x;
2864
2581
  return m(), {
2865
2582
  diagramType: w,
2866
- svg: M,
2583
+ svg: N,
2867
2584
  bindFunctions: y.db.bindFunctions
2868
2585
  };
2586
+ }, "renderDiagram"), ca = /* @__PURE__ */ t(async function(e, t, n) {
2587
+ try {
2588
+ return await sa(e, t, n);
2589
+ } finally {
2590
+ c(void 0);
2591
+ }
2869
2592
  }, "render");
2870
- function Va(e = {}) {
2593
+ function la(e = {}) {
2871
2594
  let t = O({}, e);
2872
- t?.fontFamily && !t.themeVariables?.fontFamily && (t.themeVariables ||= {}, t.themeVariables.fontFamily = t.fontFamily), h(t), t?.theme && t.theme in v ? t.themeVariables = v[t.theme].getThemeVariables(t.themeVariables) : t && (t.themeVariables = v.default.getThemeVariables(t.themeVariables));
2873
- let r = typeof t == "object" ? D(t) : s();
2874
- n(r.logLevel), $i();
2875
- }
2876
- t(Va, "initialize");
2877
- var Ha = /* @__PURE__ */ t((e, t = {}) => {
2878
- let { code: n } = fa(e);
2879
- return ia.fromText(n, t);
2595
+ t?.fontFamily && !t.themeVariables?.fontFamily && (t.themeVariables ||= {}, t.themeVariables.fontFamily = t.fontFamily), h(t);
2596
+ let r = j.theme;
2597
+ t?.theme && Object.hasOwn(f, t.theme) ? t.themeVariables = f[t.theme].getThemeVariables(t.themeVariables) : t && (t.theme != null && t.theme !== "null" && (t.theme = r), t.themeVariables = f[r].getThemeVariables(t.themeVariables));
2598
+ let i = typeof t == "object" ? s(t) : m();
2599
+ n(i.logLevel), bi();
2600
+ }
2601
+ t(la, "initialize");
2602
+ var ua = /* @__PURE__ */ t((e, t = {}) => {
2603
+ let { code: n } = Ni(e);
2604
+ return Ti.fromText(n, t);
2880
2605
  }, "getDiagramFromText");
2881
- function Ua(e, t, n, r) {
2882
- na(t, e), ra(t, n, r, t.attr("id"));
2606
+ function da(e, t, n, r) {
2607
+ Ci(t, e), wi(t, n, r, t.attr("id"));
2883
2608
  }
2884
- t(Ua, "addA11yInfo");
2609
+ t(da, "addA11yInfo");
2885
2610
  var Q = Object.freeze({
2886
- render: Ba,
2887
- parse: Aa,
2888
- getDiagramFromText: Ha,
2889
- initialize: Va,
2890
- getConfig: b,
2611
+ render: ca,
2612
+ parse: Zi,
2613
+ getDiagramFromText: ua,
2614
+ initialize: la,
2615
+ getConfig: P,
2891
2616
  setConfig: g,
2892
- getSiteConfig: s,
2893
- updateSiteConfig: f,
2617
+ getSiteConfig: m,
2618
+ updateSiteConfig: a,
2894
2619
  reset: /* @__PURE__ */ t(() => {
2895
- c();
2620
+ o();
2896
2621
  }, "reset"),
2897
2622
  globalReset: /* @__PURE__ */ t(() => {
2898
- c(A);
2623
+ o(j);
2899
2624
  }, "globalReset"),
2900
- defaultConfig: A
2625
+ defaultConfig: j
2901
2626
  });
2902
- n(b().logLevel), c(b());
2903
- var Wa = /* @__PURE__ */ t((e, t, n) => {
2904
- r.warn(e), P(e) ? (n && n(e.str, e.hash), t.push({
2627
+ n(P().logLevel), o(P());
2628
+ var fa = /* @__PURE__ */ t((e, t, n) => {
2629
+ r.warn(e), ae(e) ? (n && n(e.str, e.hash), t.push({
2905
2630
  ...e,
2906
2631
  message: e.str,
2907
2632
  error: e
@@ -2911,13 +2636,13 @@ var Wa = /* @__PURE__ */ t((e, t, n) => {
2911
2636
  hash: e.name,
2912
2637
  error: e
2913
2638
  }));
2914
- }, "handleError"), Ga = /* @__PURE__ */ t(async function(e = { querySelector: ".mermaid" }) {
2639
+ }, "handleError"), pa = /* @__PURE__ */ t(async function(e = { querySelector: ".mermaid" }) {
2915
2640
  try {
2916
- await Ka(e);
2641
+ await ma(e);
2917
2642
  } catch (t) {
2918
- if (P(t) && r.error(t.str), $.parseError && $.parseError(t), !e.suppressErrors) throw r.error("Use the suppressErrors option to suppress these errors"), t;
2643
+ if (ae(t) && r.error(t.str), $.parseError && $.parseError(t), !e.suppressErrors) throw r.error("Use the suppressErrors option to suppress these errors"), t;
2919
2644
  }
2920
- }, "run"), Ka = /* @__PURE__ */ t(async function({ postRenderCallback: e, querySelector: t, nodes: n } = { querySelector: ".mermaid" }) {
2645
+ }, "run"), ma = /* @__PURE__ */ t(async function({ postRenderCallback: e, querySelector: t, nodes: n } = { querySelector: ".mermaid" }) {
2921
2646
  let i = Q.getConfig();
2922
2647
  r.debug(`${e ? "" : "No "}Callback function found`);
2923
2648
  let a;
@@ -2925,55 +2650,55 @@ var Wa = /* @__PURE__ */ t((e, t, n) => {
2925
2650
  else if (t) a = document.querySelectorAll(t);
2926
2651
  else throw Error("Nodes and querySelector are both undefined");
2927
2652
  r.debug(`Found ${a.length} diagrams`), i?.startOnLoad !== void 0 && (r.debug("Start On Load: " + i?.startOnLoad), Q.updateSiteConfig({ startOnLoad: i?.startOnLoad }));
2928
- let o = new F.InitIDGenerator(i.deterministicIds, i.deterministicIDSeed), s, c = [];
2653
+ let o = new L.InitIDGenerator(i.deterministicIds, i.deterministicIDSeed), s, c = [];
2929
2654
  for (let t of Array.from(a)) {
2930
2655
  if (r.info("Rendering diagram: " + t.id), t.getAttribute("data-processed")) continue;
2931
2656
  t.setAttribute("data-processed", "true");
2932
2657
  let n = `mermaid-${o.next()}`;
2933
- s = t.innerHTML, s = se(F.entityDecode(s)).trim().replace(/<br\s*\/?>/gi, "<br/>");
2934
- let i = F.detectInit(s);
2658
+ s = t.innerHTML, s = ce(L.entityDecode(s)).trim().replace(/<br\s*\/?>/gi, "<br/>");
2659
+ let i = L.detectInit(s);
2935
2660
  i && r.debug("Detected early reinit: ", i);
2936
2661
  try {
2937
- let { svg: r, bindFunctions: i } = await no(n, s, t);
2662
+ let { svg: r, bindFunctions: i } = await wa(n, s, t);
2938
2663
  t.innerHTML = r, e && await e(n), i && i(t);
2939
2664
  } catch (e) {
2940
- Wa(e, c, $.parseError);
2665
+ fa(e, c, $.parseError);
2941
2666
  }
2942
2667
  }
2943
2668
  if (c.length > 0) throw c[0];
2944
- }, "runThrowsErrors"), qa = /* @__PURE__ */ t(function(e) {
2669
+ }, "runThrowsErrors"), ha = /* @__PURE__ */ t(function(e) {
2945
2670
  Q.initialize(e);
2946
- }, "initialize"), Ja = /* @__PURE__ */ t(async function(e, t, n) {
2947
- r.warn("mermaid.init is deprecated. Please use run instead."), e && qa(e);
2671
+ }, "initialize"), ga = /* @__PURE__ */ t(async function(e, t, n) {
2672
+ r.warn("mermaid.init is deprecated. Please use run instead."), e && ha(e);
2948
2673
  let i = {
2949
2674
  postRenderCallback: n,
2950
2675
  querySelector: ".mermaid"
2951
2676
  };
2952
- typeof t == "string" ? i.querySelector = t : t && (i.nodes = t instanceof HTMLElement ? [t] : t), await Ga(i);
2953
- }, "init"), Ya = /* @__PURE__ */ t(async (e, { lazyLoad: t = !0 } = {}) => {
2954
- $i(), d(...e), t === !1 && await ea();
2955
- }, "registerExternalDiagrams"), Xa = /* @__PURE__ */ t(function() {
2677
+ typeof t == "string" ? i.querySelector = t : t && (i.nodes = t instanceof HTMLElement ? [t] : t), await pa(i);
2678
+ }, "init"), _a = /* @__PURE__ */ t(async (e, { lazyLoad: t = !0 } = {}) => {
2679
+ bi(), d(...e), t === !1 && await xi();
2680
+ }, "registerExternalDiagrams"), va = /* @__PURE__ */ t(function() {
2956
2681
  if ($.startOnLoad) {
2957
2682
  let { startOnLoad: e } = Q.getConfig();
2958
2683
  e && $.run().catch((e) => r.error("Mermaid failed to initialize", e));
2959
2684
  }
2960
2685
  }, "contentLoaded");
2961
- typeof document < "u" && window.addEventListener("load", Xa, !1);
2962
- var Za = /* @__PURE__ */ t(function(e) {
2686
+ typeof document < "u" && window.addEventListener("load", va, !1);
2687
+ var ya = /* @__PURE__ */ t(function(e) {
2963
2688
  $.parseError = e;
2964
- }, "setParseErrorHandler"), Qa = [], $a = !1, eo = /* @__PURE__ */ t(async () => {
2965
- if (!$a) {
2966
- for ($a = !0; Qa.length > 0;) {
2967
- let e = Qa.shift();
2689
+ }, "setParseErrorHandler"), ba = [], xa = !1, Sa = /* @__PURE__ */ t(async () => {
2690
+ if (!xa) {
2691
+ for (xa = !0; ba.length > 0;) {
2692
+ let e = ba.shift();
2968
2693
  if (e) try {
2969
2694
  await e();
2970
2695
  } catch (e) {
2971
2696
  r.error("Error executing queue", e);
2972
2697
  }
2973
2698
  }
2974
- $a = !1;
2699
+ xa = !1;
2975
2700
  }
2976
- }, "executeQueue"), to = /* @__PURE__ */ t(async (e, n) => new Promise((i, a) => {
2701
+ }, "executeQueue"), Ca = /* @__PURE__ */ t(async (e, n) => new Promise((i, a) => {
2977
2702
  let o = /* @__PURE__ */ t(() => new Promise((t, o) => {
2978
2703
  Q.parse(e, n).then((e) => {
2979
2704
  t(e), i(e);
@@ -2981,8 +2706,8 @@ var Za = /* @__PURE__ */ t(function(e) {
2981
2706
  r.error("Error parsing", e), $.parseError?.(e), o(e), a(e);
2982
2707
  });
2983
2708
  }), "performCall");
2984
- Qa.push(o), eo().catch(a);
2985
- }), "parse"), no = /* @__PURE__ */ t((e, n, i) => new Promise((a, o) => {
2709
+ ba.push(o), Sa().catch(a);
2710
+ }), "parse"), wa = /* @__PURE__ */ t((e, n, i) => new Promise((a, o) => {
2986
2711
  let s = /* @__PURE__ */ t(() => new Promise((t, s) => {
2987
2712
  Q.render(e, n, i).then((e) => {
2988
2713
  t(e), a(e);
@@ -2990,23 +2715,23 @@ var Za = /* @__PURE__ */ t(function(e) {
2990
2715
  r.error("Error parsing", e), $.parseError?.(e), s(e), o(e);
2991
2716
  });
2992
2717
  }), "performCall");
2993
- Qa.push(s), eo().catch(o);
2718
+ ba.push(s), Sa().catch(o);
2994
2719
  }), "render"), $ = {
2995
2720
  startOnLoad: !0,
2996
2721
  mermaidAPI: Q,
2997
- parse: to,
2998
- render: no,
2999
- init: Ja,
3000
- run: Ga,
3001
- registerExternalDiagrams: Ya,
3002
- registerLayoutLoaders: De,
3003
- initialize: qa,
2722
+ parse: Ca,
2723
+ render: wa,
2724
+ init: ga,
2725
+ run: pa,
2726
+ registerExternalDiagrams: _a,
2727
+ registerLayoutLoaders: Se,
2728
+ initialize: ha,
3004
2729
  parseError: void 0,
3005
- contentLoaded: Xa,
3006
- setParseErrorHandler: Za,
3007
- detectType: E,
3008
- registerIconPacks: oe,
3009
- getRegisteredDiagramsMetadata: /* @__PURE__ */ t(() => Object.keys(w).map((e) => ({ id: e })), "getRegisteredDiagramsMetadata")
3010
- }, ro = $;
2730
+ contentLoaded: va,
2731
+ setParseErrorHandler: ya,
2732
+ detectType: D,
2733
+ registerIconPacks: se,
2734
+ getRegisteredDiagramsMetadata: /* @__PURE__ */ t(() => Object.keys(T).map((e) => ({ id: e })), "getRegisteredDiagramsMetadata")
2735
+ }, Ta = $;
3011
2736
  //#endregion
3012
- export { B as a, Me as c, Xe as clearLayoutRenderState, Ye as createCommonLayoutRenderer, Oe as d, ro as default, Ze as defaultMeasureLayout, Se as f, Ue as i, Ke as l, On as n, Ae as o, Qe as paintLayoutData, jn as r, Ve as s, Er as t, ke as u };
2737
+ export { we as a, Ta as default, Ee as i, qt as n, ge as o, Xt as r, Gn as t };