collabmd 0.1.55 → 0.1.56

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 (503) hide show
  1. package/README.md +1 -1
  2. package/dist/client/assets/{CodeMirrorEditor-UCMRAMCV-cMeDxAEL.js → CodeMirrorEditor-UCMRAMCV-CW5HP9uy.js} +1 -1
  3. package/dist/client/assets/{Middleware-DUgFSleI.js → Middleware-DbxtuTyG.js} +1 -1
  4. package/dist/client/assets/{abnfDiagram-VCTEODGH-D2UdmYvj.js → abnfDiagram-VCTEODGH-DY5tILUg.js} +1 -1
  5. package/dist/client/assets/{abnfDiagram-YUKMZFIV-DbmU4Q-X.js → abnfDiagram-WEYOIA3C-BqtDVimc.js} +1 -1
  6. package/dist/client/assets/api-client-utils-DkW9xiiw.js +1 -0
  7. package/dist/client/assets/{ar-SA-5WIASEJP-Di7OimCN.js → ar-SA-5WIASEJP-DbGUC-Fx.js} +1 -1
  8. package/dist/client/assets/{arc-DgcGdgmL.js → arc-Y1ARJVZ4.js} +1 -1
  9. package/dist/client/assets/architecture-7GRP2DOG-DndzY1Hb.js +1 -0
  10. package/dist/client/assets/architecture-WOLXFQ4H-tER6YKVA.js +1 -0
  11. package/dist/client/assets/{architectureDiagram-5GKGNRK7-CSiUzzeN.js → architectureDiagram-5GKGNRK7-D_ZiDWLO.js} +2 -2
  12. package/dist/client/assets/{architectureDiagram-47P4ROYG-C7OjXK9S.js → architectureDiagram-ZHVYKT53-CCmYbVDm.js} +2 -2
  13. package/dist/client/assets/{az-AZ-V5EUQD6C-C19OGTT_.js → az-AZ-V5EUQD6C-qK0euR1T.js} +1 -1
  14. package/dist/client/assets/babel-BaOs8qJH.js +16 -0
  15. package/dist/client/assets/{bg-BG-EXASCMTR-BIt0xWyb.js → bg-BG-EXASCMTR-DHvN8nO_.js} +1 -1
  16. package/dist/client/assets/{blockDiagram-I7D4REHJ-sXfAgK2w.js → blockDiagram-I7D4REHJ-CeN7xDSG.js} +2 -2
  17. package/dist/client/assets/{blockDiagram-E7TT5TSB-DMG-YlZw.js → blockDiagram-RJAE7QA3-CsHpm8AL.js} +2 -2
  18. package/dist/client/assets/{bn-BD-U4SYNFCO-CdNaPy4Q.js → bn-BD-U4SYNFCO-BKKqqvJ1.js} +1 -1
  19. package/dist/client/assets/{bn-IN-HKDJIITE-CdNaPy4Q.js → bn-IN-HKDJIITE-BKKqqvJ1.js} +1 -1
  20. package/dist/client/assets/{browser-BKLM0ThC-BCLQGPD6-CcMAHZXi.js → browser-BKLM0ThC-BCLQGPD6-B6uxmOe1.js} +1 -1
  21. package/dist/client/assets/{c4Diagram-7LVT6UL2-C88V_K-8.js → c4Diagram-7LVT6UL2-Bezmsa8k.js} +1 -1
  22. package/dist/client/assets/{c4Diagram-CRA5TL53-D3F9ElJv.js → c4Diagram-XDPPPE54-COKPOr_O.js} +1 -1
  23. package/dist/client/assets/{ca-ES-2KGUU5XB-C9t-c0cH.js → ca-ES-2KGUU5XB-CYClUOgC.js} +1 -1
  24. package/dist/client/assets/canvasEditor-CWbY0cMf.js +1 -0
  25. package/dist/client/assets/channel-COwKkfba.js +1 -0
  26. package/dist/client/assets/{chunk-24IY7LWP-flnn6SWX.js → chunk-24IY7LWP-DUl0BbtV.js} +1 -1
  27. package/dist/client/assets/chunk-2E4U76K2-CPmbCsOa.js +1 -0
  28. package/dist/client/assets/{chunk-AW2ZBBNX-DL0KGAdi.js → chunk-2E7WHVMD-CnfGYKwC.js} +1 -1
  29. package/dist/client/assets/chunk-2ZTRR5NV-CowhtTwB.js +2 -0
  30. package/dist/client/assets/{chunk-3M4EKCLJ-D-sZGCtO.js → chunk-3M4EKCLJ-BeG5ZU4c.js} +1 -1
  31. package/dist/client/assets/{chunk-3Z5EZCMW-Yx4Q5AcN.js → chunk-3Z5EZCMW-DQ1fwqmG.js} +1 -1
  32. package/dist/client/assets/{chunk-HTAEGDNF-C0PA_N-c.js → chunk-4EMNKR2T-B97vb0rp.js} +1 -1
  33. package/dist/client/assets/{chunk-4HAMMTFA-CQy6Skzw.js → chunk-4HAMMTFA-B3s0XvP_.js} +1 -1
  34. package/dist/client/assets/{chunk-4S7OKTRW-BpUW13a3.js → chunk-4S7OKTRW-DIpJGzf1.js} +1 -1
  35. package/dist/client/assets/{chunk-53FOQ5SW-5lPdGYP4.js → chunk-53FOQ5SW-C3TQxbLr.js} +1 -1
  36. package/dist/client/assets/{chunk-7TKQ45FW-rA2u-WUl.js → chunk-55XCU76K-CZBj2eVM.js} +1 -1
  37. package/dist/client/assets/{chunk-5V3GS4D5-BR7kgIgJ.js → chunk-5V3GS4D5-CD51GF-u.js} +1 -1
  38. package/dist/client/assets/{chunk-6AZGARVD-CnZDr4Cj.js → chunk-6AZGARVD-BD9EvFmU.js} +1 -1
  39. package/dist/client/assets/{chunk-6EIED4P4-Bp8dpTvX.js → chunk-6EIED4P4-CZFyd-Ct.js} +1 -1
  40. package/dist/client/assets/{chunk-6K3QC6MW-DGVRzL6v.js → chunk-6K3QC6MW-BJWmnHdF.js} +1 -1
  41. package/dist/client/assets/{chunk-6TQVIW2G-DgBX-Pv0.js → chunk-6TQVIW2G-DaBcb454.js} +1 -1
  42. package/dist/client/assets/chunk-747NJXEK-D08Z0c6r.js +2 -0
  43. package/dist/client/assets/{chunk-75Z2AOVW-BRdhvVTZ.js → chunk-75Z2AOVW-DLVzmKuL.js} +1 -1
  44. package/dist/client/assets/{chunk-3YJQHVM4-Ctp__8EK.js → chunk-7S6XSTFO-CXBGoJ7Z.js} +1 -1
  45. package/dist/client/assets/{chunk-E2ZNV5FY-D_07zfWd.js → chunk-AQDTSKZB-BpOOnFv4.js} +1 -1
  46. package/dist/client/assets/chunk-BP2KR52E-yBDJ_0ib.js +2 -0
  47. package/dist/client/assets/{chunk-CLGD4ZFX-DJiSE0gD.js → chunk-CLGD4ZFX-BBNA_mHW.js} +1 -1
  48. package/dist/client/assets/{chunk-VPRB5NB3-BqaJfj_v.js → chunk-DSNLSHJZ-DkAaVKkN.js} +2 -2
  49. package/dist/client/assets/{chunk-DU6HZSFF-C-18UZkS.js → chunk-DU6HZSFF-Dz0Q7VKE.js} +2 -2
  50. package/dist/client/assets/{chunk-SVEVUXB4-BnM-LXop.js → chunk-EJLWFMJV-CxNRZ5Ez.js} +1 -1
  51. package/dist/client/assets/{chunk-F27PBJKO-_beIJos4.js → chunk-F27PBJKO-BziR3pku.js} +1 -1
  52. package/dist/client/assets/chunk-F6S3BTY2-Dw9FK6Vq.js +2 -0
  53. package/dist/client/assets/chunk-FBWCRPUE-PUG6Mjdg.js +12 -0
  54. package/dist/client/assets/{chunk-FOHPRMQF-DzxwRta7.js → chunk-FOHPRMQF-COOliuUh.js} +8 -8
  55. package/dist/client/assets/{chunk-GMAD6QVW-DnZH7DxV.js → chunk-GMAD6QVW-B6zS4VJx.js} +1 -1
  56. package/dist/client/assets/{chunk-GVQU2GXP-B0Vm415C.js → chunk-GVQU2GXP-BA8Vt-19.js} +1 -1
  57. package/dist/client/assets/chunk-HAGFOTED-miSk6HXc.js +62 -0
  58. package/dist/client/assets/chunk-HNE4Q36P-BTbX-t8_.js +1 -0
  59. package/dist/client/assets/{chunk-I5DQTOEV-B98XA8VK.js → chunk-I5DQTOEV-qgbr-MbI.js} +1 -1
  60. package/dist/client/assets/{chunk-ICYGCRZG-D97UeqJs.js → chunk-ICYGCRZG-Dv6Hl9ds.js} +1 -1
  61. package/dist/client/assets/{chunk-IH6LHLGP-CvXe34hB.js → chunk-IH6LHLGP-DCTJcBuf.js} +1 -1
  62. package/dist/client/assets/{chunk-IMKFNOWR-DoO8IHzF.js → chunk-IMKFNOWR-DN2Mwt1n.js} +1 -1
  63. package/dist/client/assets/{chunk-KI3K4JFJ-D5XCPRZv.js → chunk-KI3K4JFJ-Hb_e7W2X.js} +1 -1
  64. package/dist/client/assets/{chunk-KPI5JJXK-B2ld5-w4.js → chunk-KPI5JJXK-BoDlpdVM.js} +1 -1
  65. package/dist/client/assets/{chunk-L3NEJ4N5-CvHossEU.js → chunk-L3NEJ4N5-M6XySblQ.js} +1 -1
  66. package/dist/client/assets/{chunk-LNGE3PJU-5nWSl6jJ.js → chunk-LNGE3PJU-CxdyKuxt.js} +4 -4
  67. package/dist/client/assets/{chunk-LNGE3PJU-5-SxdO55.js → chunk-LNGE3PJU-DRjopGY8.js} +4 -4
  68. package/dist/client/assets/{chunk-NGNAAXSQ-DqoPQk1a.js → chunk-NGNAAXSQ-Bw6tHVuc.js} +6 -6
  69. package/dist/client/assets/{chunk-EU5HNXII-CETVNUXF.js → chunk-NQOKRVIF-B_sOt25u.js} +1 -1
  70. package/dist/client/assets/chunk-NZIJZ2A6-CmC5bqJr.js +42 -0
  71. package/dist/client/assets/{chunk-OD3NTWWA-Dz9nCUGX.js → chunk-OD3NTWWA-D7wmrqo1.js} +1 -1
  72. package/dist/client/assets/{chunk-OSK3NFVY-C3JOcBao.js → chunk-OSK3NFVY-DJyrXrea.js} +1 -1
  73. package/dist/client/assets/chunk-OUJLGHUK-DIWqBvm0.js +2 -0
  74. package/dist/client/assets/chunk-OYAV6JZA-kXOh375k.js +1 -0
  75. package/dist/client/assets/{chunk-P2QGCYS3-Bfo8qS8r.js → chunk-P2QGCYS3-DejntbnV.js} +1 -1
  76. package/dist/client/assets/{chunk-POPQ4Y6H-sv6rCftH.js → chunk-POPQ4Y6H-D3VayDzJ.js} +1 -1
  77. package/dist/client/assets/{chunk-PWAF6VOD-B-AT-L2H.js → chunk-PWAF6VOD-CmxcnYFJ.js} +1 -1
  78. package/dist/client/assets/{chunk-QNH66VMT-Cb9xxTwQ.js → chunk-QNH66VMT-De2vWRUE.js} +1 -1
  79. package/dist/client/assets/{chunk-SHT3W25Y-C1lu518T.js → chunk-SHT3W25Y-SAi_Zk5G.js} +1 -1
  80. package/dist/client/assets/{chunk-SRAX5OIU-KFQikY-4.js → chunk-SRAX5OIU-wzfotNc-.js} +1 -1
  81. package/dist/client/assets/{chunk-SVP7TREG-CKqt0syj.js → chunk-SVP7TREG-BtK2J628.js} +1 -1
  82. package/dist/client/assets/{chunk-TICWLB2K-D2ZnWAfF.js → chunk-TICWLB2K-wmAorf_a.js} +1 -1
  83. package/dist/client/assets/{chunk-TLUHSLCS-BMIhqv1X.js → chunk-TLUHSLCS-DA3Sq1kc.js} +1 -1
  84. package/dist/client/assets/{chunk-TPMEZKFX-DIPHIqGb.js → chunk-TPMEZKFX-CarinQak.js} +1 -1
  85. package/dist/client/assets/{chunk-4EA7E6EY-bU4wRJot.js → chunk-UHW7PFBP-ClLfHtva.js} +1 -1
  86. package/dist/client/assets/{chunk-UY3FDG6J-DqSM_0FB.js → chunk-UY3FDG6J-BT57Gakr.js} +1 -1
  87. package/dist/client/assets/{chunk-VPELOWWC-DXayM28-.js → chunk-VPELOWWC-Dk0xIrB-.js} +1 -1
  88. package/dist/client/assets/{chunk-KQW6MTUR-OQ4MyMr_.js → chunk-VQ5W62QI-CxUPWJRX.js} +1 -1
  89. package/dist/client/assets/{chunk-VTWWFHGB-SZnJiyWY.js → chunk-VTWWFHGB-BZsdnDPL.js} +1 -1
  90. package/dist/client/assets/{chunk-VZTHESGH-eHyXmK8W.js → chunk-VZTHESGH-D6CHzqGr.js} +1 -1
  91. package/dist/client/assets/chunk-WQQL4CDK-BiuwKtd-.js +10 -0
  92. package/dist/client/assets/{chunk-X3CZISLH-DwWpRaN8.js → chunk-X3CZISLH-Bwnh_YJ7.js} +1 -1
  93. package/dist/client/assets/{chunk-X3CZISLH-BixgQztF.js → chunk-X3CZISLH-DayjKu55.js} +1 -1
  94. package/dist/client/assets/{chunk-YK26KJH5-DVy3MGMd.js → chunk-XHIXRSVI-C0fC7dJN.js} +1 -1
  95. package/dist/client/assets/{chunk-XXDRQBXY-C7hQHDmQ.js → chunk-XXDRQBXY-BxVnmMBx.js} +1 -1
  96. package/dist/client/assets/{chunk-XXDRQBXY-CdRN9Akd.js → chunk-XXDRQBXY-DBb3y0NH.js} +1 -1
  97. package/dist/client/assets/{chunk-XHIXRSVI-BSN7JlfK.js → chunk-YK26KJH5-ywVSJDLS.js} +1 -1
  98. package/dist/client/assets/{chunk-HJ2JQQFS-DQX7RePR.js → chunk-YZO67HFG-Bg5cZX5R.js} +1 -1
  99. package/dist/client/assets/{chunk-Z5NKEFVG-q6fHH75m.js → chunk-Z5NKEFVG-BPqw37Lj.js} +3 -3
  100. package/dist/client/assets/{chunk-DBDB3WZW-CXleNlok.js → chunk-ZAUX2LTX-Yte1ozQc.js} +1 -1
  101. package/dist/client/assets/chunk-ZCHMQSOR-B3FSat8d.js +1 -0
  102. package/dist/client/assets/chunk-ZO67DCNQ-DnpDWW4I.js +2 -0
  103. package/dist/client/assets/classDiagram-ZZMXUADV-CLl-Ahxw.js +1 -0
  104. package/dist/client/assets/{classDiagram-v2-K4WV4PDN-eaadfJDB.js → classDiagram-v2-4MYWR3UA-rPd2Vhml.js} +1 -1
  105. package/dist/client/assets/classDiagram-v2-VYDZK3BY-CLl-Ahxw.js +1 -0
  106. package/dist/client/assets/{clike-D_6L3tnO.js → clike-xvONpD0Z.js} +1 -1
  107. package/dist/client/assets/{clone-C1hp9FUh.js → clone-BoYpPplK.js} +1 -1
  108. package/dist/client/assets/{comment-markdown-renderer-CpBKaj7H.js → comment-markdown-renderer-a1B3HT_T.js} +1 -1
  109. package/dist/client/assets/{comment-thread-store-DUQsWtnu.js → comment-thread-store-da3_1rfw.js} +1 -1
  110. package/dist/client/assets/{comment-threads-DnfkLVJA.js → comment-threads-mG1CkBKO.js} +1 -1
  111. package/dist/client/assets/{comment-ui-shared-D_pgPUti.js → comment-ui-shared-4bhpJQpv.js} +2 -2
  112. package/dist/client/assets/{cose-bilkent-JH36ORCC-Czr0rwGr.js → cose-bilkent-JH36ORCC-BMHIGaXC.js} +1 -1
  113. package/dist/client/assets/{cose-bilkent-JH36ORCC-DLmEf9HS.js → cose-bilkent-JH36ORCC-Chlyw-Nt.js} +1 -1
  114. package/dist/client/assets/crystal-Bl6YKCG_.js +1 -0
  115. package/dist/client/assets/{cs-CZ-VUCGPRML-BfCoYAgj.js → cs-CZ-VUCGPRML-KFMLw537.js} +1 -1
  116. package/dist/client/assets/cynefin-EF2NZ3EQ-CwzF3ccb.js +1 -0
  117. package/dist/client/assets/cynefin-OW5HDTMX-CeLVR4kL.js +1 -0
  118. package/dist/client/assets/{cynefinDiagram-5FMLGOSQ-D2rFQG67.js → cynefinDiagram-5FMLGOSQ-No5A0--Q.js} +1 -1
  119. package/dist/client/assets/{cynefinDiagram-3GCD6N5R-DjpAsBHC.js → cynefinDiagram-WF24UDRP-BvwG2vI4.js} +1 -1
  120. package/dist/client/assets/cytoscape-cose-bilkent-iiiP-uiT.js +1 -0
  121. package/dist/client/assets/cytoscape-fcose-CiCTciSr.js +1 -0
  122. package/dist/client/assets/cytoscape.esm-CCmQRb78.js +321 -0
  123. package/dist/client/assets/{da-DK-NNDP2IVP-DBw9ZNTR.js → da-DK-NNDP2IVP-BpM-jMGR.js} +1 -1
  124. package/dist/client/assets/dagre-D7JM2Yhv.js +1 -0
  125. package/dist/client/assets/dagre-GXQ25YYZ-B0VZWLr5.js +4 -0
  126. package/dist/client/assets/dagre-NK4GIZVX-DoXdmyVb.js +4 -0
  127. package/dist/client/assets/{de-DE-WBQ3DQLR-DYW18Vsr.js → de-CH-I7RAVIZN-BNkaUG5V.js} +1 -1
  128. package/dist/client/assets/{de-CH-I7RAVIZN-DYW18Vsr.js → de-DE-WBQ3DQLR-BNkaUG5V.js} +1 -1
  129. package/dist/client/assets/{diagram-OVF4WLC6-D8_escYE.js → diagram-CBK3MWTC-hfExzGJR.js} +1 -1
  130. package/dist/client/assets/{diagram-UMYRVEAY-Djf7WDjZ.js → diagram-I5XIIV2D-Diz84D6I.js} +1 -1
  131. package/dist/client/assets/{diagram-PFPMY2P6-B1izZfrN.js → diagram-ODIL2UCW-lVgTk1r8.js} +2 -2
  132. package/dist/client/assets/{diagram-ZIFT7M5P-BUUK0oNw.js → diagram-PFBEJUXE-Dm-wXUUU.js} +1 -1
  133. package/dist/client/assets/{diagram-YEKJPTXX-B40bP3Yr.js → diagram-RJA3I4VV-Bv4ZAy4v.js} +1 -1
  134. package/dist/client/assets/{diagram-S7CK7UJ4-BzicH2t-.js → diagram-S7CK7UJ4-ClAT_J6s.js} +2 -2
  135. package/dist/client/assets/diagram-TYUNFSNR-CN-Xc6z9.js +200 -0
  136. package/dist/client/assets/{diagram-UQ7AKVKN-DqX4zTtr.js → diagram-UQ7AKVKN-DJ6uTWCE.js} +1 -1
  137. package/dist/client/assets/{diagram-VSXAHHWV-DnVbfI4Y.js → diagram-VSXAHHWV-C2k4OYGw.js} +1 -1
  138. package/dist/client/assets/{diagram-VX7I27RA-D-Dj0TQC.js → diagram-VX7I27RA-CLX2KoMs.js} +1 -1
  139. package/dist/client/assets/{diagram-Z3DM3KII-_iT7Uz5p.js → diagram-Z3DM3KII-BZcZUF57.js} +1 -1
  140. package/dist/client/assets/{direct-engine-DVLMOJWp-DWtWIifK.js → direct-engine-DVLMOJWp-C_tInsJx.js} +1 -1
  141. package/dist/client/assets/dist-7kwQLW_E.js +1 -0
  142. package/dist/client/assets/dist-B-G-pifG.js +11 -0
  143. package/dist/client/assets/dist-B0vhBQTT.js +13 -0
  144. package/dist/client/assets/dist-BBVAlyPS.js +1 -0
  145. package/dist/client/assets/dist-BGDa8poZ.js +1 -0
  146. package/dist/client/assets/{dist-CqkAY6Ot.js → dist-BJ93nZVx.js} +2 -2
  147. package/dist/client/assets/dist-BS271jN_.js +1 -0
  148. package/dist/client/assets/{dist-DRYFMufe.js → dist-BUgvZKJ6.js} +13 -13
  149. package/dist/client/assets/{dist-CSHJthAI.js → dist-BXomWIuA.js} +1 -1
  150. package/dist/client/assets/dist-BbrmdpPb.js +1 -0
  151. package/dist/client/assets/dist-BfvzS-2t.js +1 -0
  152. package/dist/client/assets/dist-Bt7Xaqyp.js +1 -0
  153. package/dist/client/assets/dist-BtOSkvqt.js +1 -0
  154. package/dist/client/assets/{dist-CKxETpSC.js → dist-C150LLfi.js} +6 -6
  155. package/dist/client/assets/dist-C6YYSeP1.js +9 -0
  156. package/dist/client/assets/{dist-FUFeH5Cx.js → dist-CFzMlwAz.js} +1 -1
  157. package/dist/client/assets/dist-CH86sVcz.js +1 -0
  158. package/dist/client/assets/dist-CP97HJ4M.js +1 -0
  159. package/dist/client/assets/dist-CVDt4G0T.js +1 -0
  160. package/dist/client/assets/{dist-C2niyEh0.js → dist-CbwTIhZ4.js} +1 -1
  161. package/dist/client/assets/dist-CfwwN8_Y.js +1 -0
  162. package/dist/client/assets/{dist-B_J_HbC0.js → dist-CumnGVmJ.js} +1 -1
  163. package/dist/client/assets/dist-CvwwJhwr.js +1 -0
  164. package/dist/client/assets/{dist-It70ktCU.js → dist-D-detfUV.js} +1 -1
  165. package/dist/client/assets/dist-DCaysCNp.js +1 -0
  166. package/dist/client/assets/{dist-CHUI56fT.js → dist-DCgncsfc.js} +3 -3
  167. package/dist/client/assets/dist-DFWn8cbH.js +1 -0
  168. package/dist/client/assets/dist-DKBDZ7Fw.js +1 -0
  169. package/dist/client/assets/{dist-BXXPaoUV.js → dist-DUrzEppq.js} +1 -1
  170. package/dist/client/assets/dist-Db2OLA3a.js +1 -0
  171. package/dist/client/assets/dist-Dd0BffVR.js +1 -0
  172. package/dist/client/assets/dist-X-11q-Vc.js +1 -0
  173. package/dist/client/assets/dist-aNZ025fx.js +23 -0
  174. package/dist/client/assets/{dist-Amm5Pr1C.js → dist-ftwTHAfS.js} +1 -1
  175. package/dist/client/assets/{dist-Bl4yuUS9.js → dist-hiG7zUCa.js} +1 -1
  176. package/dist/client/assets/{document-formatter-DtXmKZcy.js → document-formatter-B_jrdFGJ.js} +1 -1
  177. package/dist/client/assets/{drawioEditor-DO6IOaJ1.js → drawioEditor-DhRXvyRT.js} +2 -2
  178. package/dist/client/assets/{duration-BiuFXtXd.js → duration-DPNtiFfE.js} +1 -1
  179. package/dist/client/assets/{dylan-BCDoL_-p.js → dylan-S7ucR4pR.js} +1 -1
  180. package/dist/client/assets/{ebnfDiagram-PWID7BFC-IemGPf9X.js → ebnfDiagram-PWID7BFC-B8zzvt1e.js} +1 -1
  181. package/dist/client/assets/{ebnfDiagram-VR2GEFS7-9fXqy1DI.js → ebnfDiagram-V4P3TTPT-PjRB23H_.js} +1 -1
  182. package/dist/client/assets/{editor-session-CPsqXY_A.js → editor-session-BnTvcvzz.js} +2 -2
  183. package/dist/client/assets/{el-GR-TYQHVGXW-Dx82YYAS.js → el-GR-TYQHVGXW-BHUJHVd3.js} +1 -1
  184. package/dist/client/assets/elk-QONTBCTQ-DknSb2FG.js +27 -0
  185. package/dist/client/assets/embedpdf-VVX-wFIh.js +1 -0
  186. package/dist/client/assets/{embedpdf-cl9qiF45-CLMxJTMP.js → embedpdf-cl9qiF45-Cv92w6Wn.js} +6 -6
  187. package/dist/client/assets/en-AUO4QW63-CgjNrgHv.js +1 -0
  188. package/dist/client/assets/{erDiagram-O2IAPWRE-Cdadm-HN.js → erDiagram-KYQIGQAA-BHguakEd.js} +1 -1
  189. package/dist/client/assets/{erDiagram-RLTQ6QDP-CGGmjm8t.js → erDiagram-RLTQ6QDP-YPD0-iRc.js} +1 -1
  190. package/dist/client/assets/{es-ES-JEUOREKJ-Rx0NUQDl.js → es-ES-JEUOREKJ-CeuoqqTN.js} +1 -1
  191. package/dist/client/assets/{esm-BzZ1JFVo.js → esm-nC3n5xMZ.js} +5 -5
  192. package/dist/client/assets/{estree-DGmLqopC.js → estree-Cw-tQG5d.js} +4 -4
  193. package/dist/client/assets/{eu-ES-SO5DEEAN-CDYm-BcK.js → eu-ES-SO5DEEAN-D_7bAcKh.js} +1 -1
  194. package/dist/client/assets/eventmodeling-K75KTNOO-BsPoof5R.js +1 -0
  195. package/dist/client/assets/eventmodeling-NTZA5JFV-Bwo1LIKP.js +1 -0
  196. package/dist/client/assets/{excalidraw-element-link-NQnskRkm.js → excalidraw-element-link-BduFAMXS.js} +1 -1
  197. package/dist/client/assets/{excalidraw-scene-DLlw4jyc.js → excalidraw-scene-DzfbvjqT.js} +1 -1
  198. package/dist/client/assets/excalidrawEditor-3jfVRVmE.js +9 -0
  199. package/dist/client/assets/export-page-BiB1AeMg.js +46 -0
  200. package/dist/client/assets/exportDocument-BwukVyB9.js +2 -0
  201. package/dist/client/assets/{fa-IR-I4JNTJHK-CFtHZqoT.js → fa-IR-I4JNTJHK-BeoSOVqB.js} +1 -1
  202. package/dist/client/assets/{fi-FI-REAEF6HQ-BIpjJqIb.js → fi-FI-REAEF6HQ-BqIp6GiK.js} +1 -1
  203. package/dist/client/assets/file-search-D2UfqaRv.js +1 -0
  204. package/dist/client/assets/flowDiagram-HODETNUW-CVKOAnD7.js +1 -0
  205. package/dist/client/assets/flowDiagram-IUGLLWBU-BjEyR0dW.js +1 -0
  206. package/dist/client/assets/{fr-FR-SUCL7J6B-DGAKE8jH.js → fr-FR-SUCL7J6B-Dl3EFjA3.js} +1 -1
  207. package/dist/client/assets/{ganttDiagram-EL5Y4UJY-Duu4KnsU.js → ganttDiagram-EL5Y4UJY-CCUwTKb4.js} +1 -1
  208. package/dist/client/assets/{ganttDiagram-R7TSEDQI-BWy52pjn.js → ganttDiagram-R7GPNTJY-CXLqT-aU.js} +2 -2
  209. package/dist/client/assets/gitGraph-4MIJSDKK-CWZptYrG.js +1 -0
  210. package/dist/client/assets/gitGraph-VSP46ZUC-x2Q42NFN.js +1 -0
  211. package/dist/client/assets/{gitGraphDiagram-XJZIOB7I-DJwp9ilx.js → gitGraphDiagram-PDYL7XHY-BJ9CsrRo.js} +1 -1
  212. package/dist/client/assets/{gitGraphDiagram-WWUBYQGX-CaJ0vC1a.js → gitGraphDiagram-WWUBYQGX-OqdVjcEn.js} +1 -1
  213. package/dist/client/assets/{gl-ES-KHCSOGVH-DWKh0CMu.js → gl-ES-KHCSOGVH-DGHdzXnJ.js} +1 -1
  214. package/dist/client/assets/groovy-CUrWKPia.js +1 -0
  215. package/dist/client/assets/{he-IL-JYXVXV2Q-zqbcM-4g.js → he-IL-JYXVXV2Q-DP8F40TD.js} +1 -1
  216. package/dist/client/assets/{hi-IN-BU52H3BO-CY8v6eG9.js → hi-IN-BU52H3BO-B1huAT2Y.js} +1 -1
  217. package/dist/client/assets/{html-BryNQ_yx.js → html-Drt7kOJE.js} +2 -2
  218. package/dist/client/assets/{hu-HU-OWADXDQ3-CEl6Udfh.js → hu-HU-OWADXDQ3-87zhVnWy.js} +1 -1
  219. package/dist/client/assets/{id-ID-2WY7E4VX-CCAeQpPr.js → id-ID-2WY7E4VX-BdFs5w71.js} +1 -1
  220. package/dist/client/assets/image-V6E7PHAZ-DSZxKLH0.js +1 -0
  221. package/dist/client/assets/image-blob-reduce.esm-ZiL83eII.js +2 -0
  222. package/dist/client/assets/image-lightbox-controller-DH39QMBp.js +184 -0
  223. package/dist/client/assets/index-BebSD0ym.js +960 -0
  224. package/dist/client/assets/info-A6RAGUB7-D_xaPiSc.js +1 -0
  225. package/dist/client/assets/info-OHQRW6UA-CBi78irM.js +1 -0
  226. package/dist/client/assets/{infoDiagram-27XIBGKW-DBJh7QOu.js → infoDiagram-27XIBGKW-Ck9hyDJb.js} +1 -1
  227. package/dist/client/assets/{infoDiagram-5W2HQ5XZ-DmWsqJ0w.js → infoDiagram-MVDRKAX5-DcpftzUS.js} +1 -1
  228. package/dist/client/assets/{ishikawaDiagram-5VMMS53U-CeEbSJem.js → ishikawaDiagram-5VMMS53U-CazBMMkQ.js} +2 -2
  229. package/dist/client/assets/{ishikawaDiagram-K3B6WC7H-DH1NI35G.js → ishikawaDiagram-HPEHV2GE-BG5PpI0A.js} +2 -2
  230. package/dist/client/assets/{it-IT-INVHSAJF-DytAgndh.js → it-IT-INVHSAJF-DnUnri32.js} +1 -1
  231. package/dist/client/assets/{ja-JP-JBNTKYP4-BflWlGhw.js → ja-JP-JBNTKYP4-DIs2dSob.js} +1 -1
  232. package/dist/client/assets/javascript-DZ4Qsoqy.js +1 -0
  233. package/dist/client/assets/javascript-lj9EKOz0.js +1 -0
  234. package/dist/client/assets/{journeyDiagram-3NMN7TZE-BoIEEr6U.js → journeyDiagram-3NMN7TZE-DJFGpA3F.js} +1 -1
  235. package/dist/client/assets/{journeyDiagram-COXZFDF6-CnHV2f9V.js → journeyDiagram-BOSHW7O7-CAdC3Sr9.js} +1 -1
  236. package/dist/client/assets/{jsx-runtime-DKj5X9O4.js → jsx-runtime-CldxteV5.js} +1 -1
  237. package/dist/client/assets/{kaa-TC3VIB7V-B-xtZfy0.js → kaa-TC3VIB7V-wP2hxPDI.js} +1 -1
  238. package/dist/client/assets/{kab-KAB-UOUDSQKM-BmO0O4Y4.js → kab-KAB-UOUDSQKM-CwUZUlMm.js} +1 -1
  239. package/dist/client/assets/{kanban-definition-P3RFRI5V-Cxvn5ZAG.js → kanban-definition-FNSA4HC5-DLzqpQsC.js} +1 -1
  240. package/dist/client/assets/{kanban-definition-UXKFOSKX-BY16Tgbr.js → kanban-definition-UXKFOSKX-R91H_Ua5.js} +1 -1
  241. package/dist/client/assets/katex-B_JcIwqj.js +257 -0
  242. package/dist/client/assets/{katex-ZlcWpGUi.js → katex-DJhrJSbw.js} +1 -1
  243. package/dist/client/assets/{kk-KZ-P5H2X7YS-CSQFB8IN.js → kk-KZ-P5H2X7YS-Q3XzFKqf.js} +1 -1
  244. package/dist/client/assets/{km-KH-IHMV2US7-BxrjuEzr.js → km-KH-IHMV2US7-CxtoNVOY.js} +1 -1
  245. package/dist/client/assets/{ko-KR-ZTMANIDF-BnNRXd5J.js → ko-KR-ZTMANIDF-CJeG69_5.js} +1 -1
  246. package/dist/client/assets/{ku-TR-GPJTRB5G-BZM7f2aT.js → ku-TR-GPJTRB5G-D4gY4ec8.js} +1 -1
  247. package/dist/client/assets/{line-DEbP8Ok6.js → line-CttJWsP1.js} +1 -1
  248. package/dist/client/assets/linear-DGppY5mt.js +1 -0
  249. package/dist/client/assets/{lobby-presence-DNNXcuwR.js → lobby-presence-DWGiwZgG.js} +1 -1
  250. package/dist/client/assets/{lt-LT-V3XDOK3P-MVQBOHmF.js → lt-LT-V3XDOK3P-DTiFqRKt.js} +1 -1
  251. package/dist/client/assets/{lv-LV-DVQ3FADO-CrenwAhS.js → lv-LV-DVQ3FADO-BDx0eM98.js} +1 -1
  252. package/dist/client/assets/{markdown-DU84620G.js → markdown-C7cnJl_Q.js} +11 -11
  253. package/dist/client/assets/markdown-headings-CHNl_tgP.js +41 -0
  254. package/dist/client/assets/markdown-it-DWMS_G3H.js +13 -0
  255. package/dist/client/assets/{markdown-math-B96cnrz1.js → markdown-math-CBhbNj1w.js} +8 -8
  256. package/dist/client/assets/{merge-CALoRt3l.js → merge-5Ig019a6.js} +1 -1
  257. package/dist/client/assets/{mermaid-parser.core-R-uwU5kf.js → mermaid-parser.core-B89UfKha.js} +1 -1
  258. package/dist/client/assets/{mermaid-parser.core-mE6t1qEO.js → mermaid-parser.core-Dns-W-xX.js} +1 -1
  259. package/dist/client/assets/{mermaid.core-D8Z6LN7O.js → mermaid.core-8OvaaBlM.js} +3 -3
  260. package/dist/client/assets/{mindmap-definition-LZFPQGKD-DVfFenfJ.js → mindmap-definition-6OY57UG3-0aQEcLTH.js} +11 -9
  261. package/dist/client/assets/{mindmap-definition-YA3MSWOX-DtiE80UJ.js → mindmap-definition-YA3MSWOX-CCSfi8SE.js} +1 -1
  262. package/dist/client/assets/{mr-IN-VZ6HH5FE-B-PHPglH.js → mr-IN-VZ6HH5FE-Cofn25fc.js} +1 -1
  263. package/dist/client/assets/{my-MM-XYKWHRK6-Be5sYp5q.js → my-MM-XYKWHRK6-lMTCoeax.js} +1 -1
  264. package/dist/client/assets/{nb-NO-UNO2GGZJ-BvSKGdja.js → nb-NO-UNO2GGZJ-CEFDplVi.js} +1 -1
  265. package/dist/client/assets/{nginx-8H7HVH4w.js → nginx-C-ORUuei.js} +1 -1
  266. package/dist/client/assets/{nl-NL-76EFHT4P-C2yNx1Cj.js → nl-NL-76EFHT4P-2WbCYdRT.js} +1 -1
  267. package/dist/client/assets/{nn-NO-CFKD7ABE-4NsqlDRP.js → nn-NO-CFKD7ABE-DfK-9yuu.js} +1 -1
  268. package/dist/client/assets/{ntriples-B9h1VB_g.js → ntriples-CzMBulkp.js} +1 -1
  269. package/dist/client/assets/{oc-FR-YBJTCJ3J-B4OTQsWW.js → oc-FR-YBJTCJ3J-BSWusGxV.js} +1 -1
  270. package/dist/client/assets/{pa-IN-SNOXSMRV-CKj_sOG7.js → pa-IN-SNOXSMRV-BYkNTWiO.js} +1 -1
  271. package/dist/client/assets/packet-AYTQ26CC-D6Y_lKZt.js +1 -0
  272. package/dist/client/assets/packet-JDAUHWVQ-DAR0r-Im.js +1 -0
  273. package/dist/client/assets/{pegDiagram-BGZESJAR-DxfvEcwv.js → pegDiagram-ECIUJNBX-VujrKWCK.js} +1 -1
  274. package/dist/client/assets/{pegDiagram-XKGWAZYB-CyozY-Kt.js → pegDiagram-XKGWAZYB-DTA3EjtF.js} +1 -1
  275. package/dist/client/assets/percentages-LWOC67ZH-BO-ZFv57.js +1 -0
  276. package/dist/client/assets/pica-CXv_OHDX.js +2 -0
  277. package/dist/client/assets/{pie-DzWLGKAD.js → pie-Ba_4rf3r.js} +1 -1
  278. package/dist/client/assets/pie-WAS4IAKB-DLhltotv.js +1 -0
  279. package/dist/client/assets/pie-XZMESJXO-5MOdYfI0.js +1 -0
  280. package/dist/client/assets/{pieDiagram-E7YTZNPT-BRdmTkDq.js → pieDiagram-E7YTZNPT-DBz-eVG3.js} +1 -1
  281. package/dist/client/assets/{pieDiagram-CAPJLFHJ-CRlMcrv3.js → pieDiagram-GNMPY74T-CjRzeDCN.js} +1 -1
  282. package/dist/client/assets/{pl-PL-BSY6YFZ3-CFuzA6L0.js → pl-PL-BSY6YFZ3-DQTYFenp.js} +1 -1
  283. package/dist/client/assets/{powershell-BcIto6Sf.js → powershell-D8WpQPaX.js} +1 -1
  284. package/dist/client/assets/preload-helper-khBccGFq.js +1 -0
  285. package/dist/client/assets/preview-diagram-utils-ByzpiwPu.js +3 -0
  286. package/dist/client/assets/preview-render-compiler-B_gyVIfk.js +3 -0
  287. package/dist/client/assets/preview-render-worker-DYGDgbKA.js +579 -0
  288. package/dist/client/assets/prod-BTPZlnru.js +1 -0
  289. package/dist/client/assets/prod-CUXkwl3E.js +144 -0
  290. package/dist/client/assets/{pt-BR-CZDV62R3-CkPMtyNx.js → pt-BR-CZDV62R3-qKOF4THL.js} +1 -1
  291. package/dist/client/assets/{pt-PT-JO57XJJW-CBSnfGtF.js → pt-PT-JO57XJJW-CVFFmqez.js} +1 -1
  292. package/dist/client/assets/pug-CGoiHVBP.js +1 -0
  293. package/dist/client/assets/purify.es-BP9p1Dbb.js +3 -0
  294. package/dist/client/assets/{quadrantDiagram-AXDQQJYC-7QyPIXkF.js → quadrantDiagram-AXDQQJYC-DaTj4J-B.js} +1 -1
  295. package/dist/client/assets/{quadrantDiagram-GDMTTRAM-DE30uqTl.js → quadrantDiagram-D57K4MC3-Bvy8uMKb.js} +1 -1
  296. package/dist/client/assets/quick-switcher-controller-m2gikuD-.js +1 -0
  297. package/dist/client/assets/radar-ABXABTNO-hhs6i-b1.js +1 -0
  298. package/dist/client/assets/radar-RG4KPBEZ-B-2eETsZ.js +1 -0
  299. package/dist/client/assets/railroad-74A4TZTK-B18ef5-Z.js +1 -0
  300. package/dist/client/assets/railroad-I3PHUGI6-v8Mk380c.js +1 -0
  301. package/dist/client/assets/railroad-abnf-HS5TGJTU-CTQaqjqj.js +1 -0
  302. package/dist/client/assets/railroad-abnf-LNEFI6M7-C3t6jbSY.js +1 -0
  303. package/dist/client/assets/railroad-ebnf-DWYD2UWJ-BvF5fO2B.js +1 -0
  304. package/dist/client/assets/railroad-ebnf-LZEXJU2U-BU_P5mpS.js +1 -0
  305. package/dist/client/assets/railroad-peg-JR7BVNR7-B90veE1n.js +1 -0
  306. package/dist/client/assets/railroad-peg-WCYAUIDC-CQCPL33M.js +1 -0
  307. package/dist/client/assets/{railroadDiagram-O6MQD6OU-BPk3RS2D.js → railroadDiagram-O6MQD6OU-DJRswcTS.js} +1 -1
  308. package/dist/client/assets/{railroadDiagram-SM67HX2B-CZRXJ647.js → railroadDiagram-Y72NRBL7-BNjzJfAu.js} +1 -1
  309. package/dist/client/assets/{requirementDiagram-BXWQKSXE-BRwfym6z.js → requirementDiagram-BXWQKSXE-DsljP03a.js} +1 -1
  310. package/dist/client/assets/{requirementDiagram-X7JNWC4A-BofCuLJA.js → requirementDiagram-EQYSW5RA-BKm3hJ3g.js} +1 -1
  311. package/dist/client/assets/{ro-RO-UZ5ICYYN-BOuntc_r.js → ro-RO-UZ5ICYYN-BgFoGyRb.js} +1 -1
  312. package/dist/client/assets/rolldown-runtime-COiEfhsA.js +1 -0
  313. package/dist/client/assets/{ru-RU-AN7JPREC-D-ow3SNR.js → ru-RU-AN7JPREC-C1Q9hhMw.js} +1 -1
  314. package/dist/client/assets/{sankeyDiagram-P5KCCOFB-D4LcrKpW.js → sankeyDiagram-P5KCCOFB-7e3snR42.js} +1 -1
  315. package/dist/client/assets/{sankeyDiagram-UM26HJRW-CLKMDbej.js → sankeyDiagram-SY24JHO5-X6282wPp.js} +1 -1
  316. package/dist/client/assets/{sequenceDiagram-ZO4K6R2Y-CDP_m6ma.js → sequenceDiagram-BLEHNHQU-BytEbBel.js} +4 -4
  317. package/dist/client/assets/{sequenceDiagram-WJ2MYXX4-DQjtv-Bs.js → sequenceDiagram-WJ2MYXX4-Fy1RHQht.js} +2 -2
  318. package/dist/client/assets/{si-LK-7CBLD6QQ-c91EepX0.js → si-LK-7CBLD6QQ-B0AJbYON.js} +1 -1
  319. package/dist/client/assets/{sk-SK-SWR6DKBI-D5vFMIL6.js → sk-SK-SWR6DKBI-BSd-r0Zi.js} +1 -1
  320. package/dist/client/assets/{sl-SI-QY5KCFGA-RZhwMpQL.js → sl-SI-QY5KCFGA-Dzrhm7-L.js} +1 -1
  321. package/dist/client/assets/src-C2pSFGeK.js +1 -0
  322. package/dist/client/assets/{src-D5mvpivG.js → src-GGgGZJfE.js} +2 -2
  323. package/dist/client/assets/{standalone-D_lg5NC9.js → standalone-YobQElH8.js} +3 -3
  324. package/dist/client/assets/{stateDiagram-D77RDMKH-DSMvV-kF.js → stateDiagram-D77RDMKH-CW2cSnDj.js} +1 -1
  325. package/dist/client/assets/{stateDiagram-v2-TBUQTH76-Dc5-FKzd.js → stateDiagram-v2-A6IESKWZ-DZU6pVog.js} +1 -1
  326. package/dist/client/assets/stateDiagram-v2-MP3YSRHH-iqEUZMAD.js +1 -0
  327. package/dist/client/assets/subset-shared.chunk-CL3Oizwd.js +1 -0
  328. package/dist/client/assets/{subset-worker.chunk-CoaGye2U.js → subset-worker.chunk-BdPjfgp2.js} +1 -1
  329. package/dist/client/assets/{sv-SE-O3OFCY3J-DnS86_7q.js → sv-SE-O3OFCY3J-6NoVnLTE.js} +1 -1
  330. package/dist/client/assets/swimlanes-42K2YHIH-8FngRMNT.js +1 -0
  331. package/dist/client/assets/swimlanes-B3ENRKFQ-D6BYdY9J.js +1 -0
  332. package/dist/client/assets/swimlanesDiagram-AYQRV4AK-hRw-7uL-.js +8 -0
  333. package/dist/client/assets/swimlanesDiagram-VR7AAH4N-DvDPHOsc.js +8 -0
  334. package/dist/client/assets/{ta-IN-V6NHHU6Z-D5jy7_AE.js → ta-IN-V6NHHU6Z-MAwuBBtS.js} +1 -1
  335. package/dist/client/assets/{th-TH-WLSZUSBX-DHehoYR2.js → th-TH-WLSZUSBX-D--o8vzw.js} +1 -1
  336. package/dist/client/assets/{tiki-AK6FwT8q.js → tiki-CvUEFusT.js} +1 -1
  337. package/dist/client/assets/{timeline-definition-24CTP7MA-BvqCvSjy.js → timeline-definition-24CTP7MA-C_Q-Br6X.js} +1 -1
  338. package/dist/client/assets/{timeline-definition-YOQAKGHF-D2XWPSLs.js → timeline-definition-JXYKGLGB-7HLQ94MK.js} +1 -1
  339. package/dist/client/assets/{tr-TR-GUFYG22B-ClVaf8h1.js → tr-TR-GUFYG22B-Bd-NNmz1.js} +1 -1
  340. package/dist/client/assets/treeView-D4JQ5SDB-BR1FV1TU.js +1 -0
  341. package/dist/client/assets/treeView-Q6P3EWNA-3N1U2hq1.js +1 -0
  342. package/dist/client/assets/treemap-SAJKECNS-yO7fe4dH.js +1 -0
  343. package/dist/client/assets/treemap-WGGIJYW6-BFO1obBW.js +1 -0
  344. package/dist/client/assets/{uk-UA-K6SV5NFQ-BLTTtyNB.js → uk-UA-K6SV5NFQ-_OJVmMT9.js} +1 -1
  345. package/dist/client/assets/{usecaseDiagram-VIAY4XPW-CDe-IMjS.js → usecaseDiagram-WPOLBNNX-uIlXI205.js} +6 -6
  346. package/dist/client/assets/{uz-UZ-TVKTZO2G-Bm02Eg3D.js → uz-UZ-TVKTZO2G-BPXzC1bJ.js} +1 -1
  347. package/dist/client/assets/{vault-api-client-DrRW0QwO.js → vault-api-client-DORNT49K.js} +24 -6
  348. package/dist/client/assets/{vault-paths-BT-6nztu.js → vault-paths-R2qcfmE0.js} +1 -1
  349. package/dist/client/assets/{venn.esm-C5rDfA9t.js → venn.esm-BxwF8YNp.js} +1 -1
  350. package/dist/client/assets/{vennDiagram-4TSXK5OY-BW6Qp12d.js → vennDiagram-4TSXK5OY-Cl6f16-U.js} +1 -1
  351. package/dist/client/assets/{vennDiagram-BLWOH2XV-KxIPKpHi.js → vennDiagram-Q3Y3IDCW-DZFF_ntk.js} +1 -1
  352. package/dist/client/assets/{vi-VN-7FKFXJNO-CL3WPhmG.js → vi-VN-7FKFXJNO-CjP0avHF.js} +1 -1
  353. package/dist/client/assets/wardley-7MLQ67FV-CCVlnR9Q.js +1 -0
  354. package/dist/client/assets/wardley-WFR3VGLG-BuSMKsul.js +1 -0
  355. package/dist/client/assets/{wardleyDiagram-YMQ3BMBF-BNYqEy7M.js → wardleyDiagram-IVAIDKWA-bwMSFCgK.js} +1 -1
  356. package/dist/client/assets/{wardleyDiagram-VM6X3IG4-BoCETVsK.js → wardleyDiagram-VM6X3IG4-BbU7rAxb.js} +1 -1
  357. package/dist/client/assets/{worker-engine-BCCrxWYm-1fphds7O.js → worker-engine-BCCrxWYm-BU5lrbSm.js} +1 -1
  358. package/dist/client/assets/workspace-sync-client-B7dmdJGR.js +1 -0
  359. package/dist/client/assets/{xychartDiagram-TAQBALBS-Sv6aaptV.js → xychartDiagram-4URNHDU4-AjWzA402.js} +1 -1
  360. package/dist/client/assets/{xychartDiagram-S5SC5T6Z-eB5Fu9P7.js → xychartDiagram-S5SC5T6Z-C5L6jReS.js} +1 -1
  361. package/dist/client/assets/{yaml-BcZaqAz8.js → yaml-Breo7DWT.js} +4 -4
  362. package/dist/client/assets/{yjs-Jd9fna_Y.js → yjs-ZDLwhBUu.js} +1 -1
  363. package/dist/client/assets/{yjs-provider-reset-guard-Cqu0Z6xH.js → yjs-provider-reset-guard-D5pm5yx8.js} +1 -1
  364. package/dist/client/assets/{zh-CN-AOKVLNNK-DGidDH2b.js → zh-CN-AOKVLNNK-CU0vKHKs.js} +1 -1
  365. package/dist/client/assets/{zh-HK-CDKPF5DC-CRcNR3rk.js → zh-HK-CDKPF5DC-BBhn88ei.js} +1 -1
  366. package/dist/client/assets/{zh-TW-ZVGYESGW-C7Qji1y6.js → zh-TW-ZVGYESGW-od6h3pTc.js} +1 -1
  367. package/dist/client/canvas-editor.html +1 -1
  368. package/dist/client/drawio-editor.html +4 -4
  369. package/dist/client/excalidraw-editor.html +37 -37
  370. package/dist/client/export-document.html +2 -2
  371. package/dist/client/index.html +1 -1
  372. package/package.json +22 -22
  373. package/src/client/application/diagram-preview-export.js +2 -1
  374. package/src/client/application/mermaid-preview-hydrator.js +2 -1
  375. package/src/client/domain/excalidraw-scene.js +13 -11
  376. package/src/client/domain/mermaid-source.js +44 -0
  377. package/src/client/export/export-pipeline.js +7 -6
  378. package/src/client/infrastructure/webmcp-tool-registry.js +5 -8
  379. package/src/client/presentation/git-diff-view-controller.js +3 -3
  380. package/src/domain/excalidraw-room-codec.js +11 -10
  381. package/src/server/domain/collaboration/collaboration-room.js +92 -61
  382. package/src/server/infrastructure/persistence/sidecar-store.js +5 -1
  383. package/dist/client/assets/api-client-utils-C5ESDKMG.js +0 -1
  384. package/dist/client/assets/architecture-7GRP2DOG-BBwRXFv3.js +0 -1
  385. package/dist/client/assets/architecture-WOLXFQ4H-C0NxYiG7.js +0 -1
  386. package/dist/client/assets/babel-Bi_28hhi.js +0 -16
  387. package/dist/client/assets/canvasEditor-sBK7KfrD.js +0 -1
  388. package/dist/client/assets/channel-CgcHBnmr.js +0 -1
  389. package/dist/client/assets/chunk-2BW5OAIV-CNFO1U_e.js +0 -10
  390. package/dist/client/assets/chunk-2E4U76K2-DEnS5IbF.js +0 -1
  391. package/dist/client/assets/chunk-2ZTRR5NV-CnDP55cn.js +0 -2
  392. package/dist/client/assets/chunk-747NJXEK-Cur1aosP.js +0 -2
  393. package/dist/client/assets/chunk-BP2KR52E-DAQ1pzDV.js +0 -2
  394. package/dist/client/assets/chunk-F6S3BTY2-DVWKCAHp.js +0 -2
  395. package/dist/client/assets/chunk-FLFP27SU-CydzbSsY.js +0 -12
  396. package/dist/client/assets/chunk-FVRAUYC3-C7b9SJ81.js +0 -1
  397. package/dist/client/assets/chunk-H5A3YXKD-ChP7mNJq.js +0 -41
  398. package/dist/client/assets/chunk-NTY3LDVX-CVWLK_fh.js +0 -1
  399. package/dist/client/assets/chunk-OUJLGHUK-DA95-S9B.js +0 -2
  400. package/dist/client/assets/chunk-XC4XBNZT-D9oehSn8.js +0 -62
  401. package/dist/client/assets/chunk-Z6ETV63D-DOcrnz-P.js +0 -1
  402. package/dist/client/assets/chunk-ZO67DCNQ-BAOMIkLF.js +0 -2
  403. package/dist/client/assets/classDiagram-ZZMXUADV-BmETdFmC.js +0 -1
  404. package/dist/client/assets/classDiagram-v2-VYDZK3BY-BmETdFmC.js +0 -1
  405. package/dist/client/assets/crystal-Bsdphhtm.js +0 -1
  406. package/dist/client/assets/cynefin-EF2NZ3EQ-DVkJeZ8i.js +0 -1
  407. package/dist/client/assets/cynefin-OW5HDTMX-CF3N9j1_.js +0 -1
  408. package/dist/client/assets/cytoscape-cose-bilkent-NdTYBUiT.js +0 -1
  409. package/dist/client/assets/cytoscape-fcose-DE9_QRG_.js +0 -1
  410. package/dist/client/assets/cytoscape.esm-EK2DW5Qr.js +0 -321
  411. package/dist/client/assets/dagre-C-rnJpZF.js +0 -1
  412. package/dist/client/assets/dagre-GXQ25YYZ-Cku9eia9.js +0 -4
  413. package/dist/client/assets/dagre-W4DXFKR2-DOMOIsPd.js +0 -4
  414. package/dist/client/assets/diagram-2UJZ2QOL-D8WvnEyx.js +0 -200
  415. package/dist/client/assets/dist-26Ce-5t4.js +0 -1
  416. package/dist/client/assets/dist-8MLNn-I6.js +0 -1
  417. package/dist/client/assets/dist-Bkb-_VdB.js +0 -1
  418. package/dist/client/assets/dist-C2CGvCPd.js +0 -1
  419. package/dist/client/assets/dist-CFCSUmJk.js +0 -1
  420. package/dist/client/assets/dist-CJh3Qrid.js +0 -13
  421. package/dist/client/assets/dist-CbKnZGN4.js +0 -1
  422. package/dist/client/assets/dist-Cik4RJXj.js +0 -1
  423. package/dist/client/assets/dist-D2ql2LCd.js +0 -1
  424. package/dist/client/assets/dist-D47MOYFN.js +0 -1
  425. package/dist/client/assets/dist-DBhUaexM.js +0 -1
  426. package/dist/client/assets/dist-DJux6Vc5.js +0 -1
  427. package/dist/client/assets/dist-DLNdMWPH.js +0 -1
  428. package/dist/client/assets/dist-DPJj-Y3l.js +0 -1
  429. package/dist/client/assets/dist-DTGcVSU8.js +0 -1
  430. package/dist/client/assets/dist-DlOxjzWi.js +0 -9
  431. package/dist/client/assets/dist-DogjjM_B.js +0 -1
  432. package/dist/client/assets/dist-Dyv_RvyB.js +0 -23
  433. package/dist/client/assets/dist-QMvcnJHf.js +0 -1
  434. package/dist/client/assets/dist-QN1K2czv.js +0 -11
  435. package/dist/client/assets/dist-W8ilOKl3.js +0 -1
  436. package/dist/client/assets/dist-_17-t9qP.js +0 -1
  437. package/dist/client/assets/dist-uE774WWs.js +0 -1
  438. package/dist/client/assets/elk-IJKZMXRS-DsbrbBYg.js +0 -27
  439. package/dist/client/assets/embedpdf-BfUI-3pv.js +0 -1
  440. package/dist/client/assets/en-7ZVUCEYH-C_VXKxxb.js +0 -1
  441. package/dist/client/assets/eventmodeling-K75KTNOO-BWBlZ5cR.js +0 -1
  442. package/dist/client/assets/eventmodeling-NTZA5JFV-CDy1bN6j.js +0 -1
  443. package/dist/client/assets/excalidrawEditor-W2lZ5Mej.js +0 -9
  444. package/dist/client/assets/export-page-Bomh9oEr.js +0 -46
  445. package/dist/client/assets/exportDocument-BFIOECJ3.js +0 -2
  446. package/dist/client/assets/file-search-Dk2O14Vw.js +0 -1
  447. package/dist/client/assets/flowDiagram-HODETNUW-DcVVYJUZ.js +0 -1
  448. package/dist/client/assets/flowDiagram-OXPTDLAJ-Dy6y46oF.js +0 -1
  449. package/dist/client/assets/gitGraph-4MIJSDKK-B-rpDYbz.js +0 -1
  450. package/dist/client/assets/gitGraph-VSP46ZUC-1499lQAI.js +0 -1
  451. package/dist/client/assets/groovy-CUpZ7dEl.js +0 -1
  452. package/dist/client/assets/image-6XY3GD3F-DCWbu6d4.js +0 -1
  453. package/dist/client/assets/image-blob-reduce.esm-BFq-Mx5V.js +0 -2
  454. package/dist/client/assets/image-lightbox-controller-DAcXEXxT.js +0 -184
  455. package/dist/client/assets/index-D3WGkxfI.js +0 -960
  456. package/dist/client/assets/info-A6RAGUB7-BlutK7BT.js +0 -1
  457. package/dist/client/assets/info-OHQRW6UA-BDFQOo4H.js +0 -1
  458. package/dist/client/assets/javascript-B9I2pbsP.js +0 -1
  459. package/dist/client/assets/javascript-DctB8BJo.js +0 -1
  460. package/dist/client/assets/katex-9NBMfU68.js +0 -257
  461. package/dist/client/assets/linear-DExL6ILt.js +0 -1
  462. package/dist/client/assets/markdown-headings-zYEUahfW.js +0 -41
  463. package/dist/client/assets/markdown-it-DpvIRaVq.js +0 -13
  464. package/dist/client/assets/packet-AYTQ26CC-DvbY8dI6.js +0 -1
  465. package/dist/client/assets/packet-JDAUHWVQ-DJ9K2MA4.js +0 -1
  466. package/dist/client/assets/percentages-LWOC67ZH-VhvllE7L.js +0 -1
  467. package/dist/client/assets/pica-BPrp-GK1.js +0 -2
  468. package/dist/client/assets/pie-WAS4IAKB-DWSm9SSD.js +0 -1
  469. package/dist/client/assets/pie-XZMESJXO-CQIQasY-.js +0 -1
  470. package/dist/client/assets/preload-helper-CYtfOYgs.js +0 -1
  471. package/dist/client/assets/preview-diagram-utils-txBCoW8d.js +0 -1
  472. package/dist/client/assets/preview-render-compiler-D_aJv7Ew.js +0 -3
  473. package/dist/client/assets/preview-render-worker-dFNyrVyB.js +0 -579
  474. package/dist/client/assets/prod-ItolaHmf.js +0 -145
  475. package/dist/client/assets/prod-rdly4JJQ.js +0 -1
  476. package/dist/client/assets/pug-CqqUmdG7.js +0 -1
  477. package/dist/client/assets/purify.es-go7v6Te-.js +0 -3
  478. package/dist/client/assets/quick-switcher-controller-DsK70I7K.js +0 -1
  479. package/dist/client/assets/radar-ABXABTNO-ByfpCXh9.js +0 -1
  480. package/dist/client/assets/radar-RG4KPBEZ-BfNQUEQy.js +0 -1
  481. package/dist/client/assets/railroad-74A4TZTK-BaQ6U6eJ.js +0 -1
  482. package/dist/client/assets/railroad-I3PHUGI6-CTUn9HhI.js +0 -1
  483. package/dist/client/assets/railroad-abnf-HS5TGJTU-BJ3KZw7J.js +0 -1
  484. package/dist/client/assets/railroad-abnf-LNEFI6M7-Ct-b-y0F.js +0 -1
  485. package/dist/client/assets/railroad-ebnf-DWYD2UWJ-BZMYMWOe.js +0 -1
  486. package/dist/client/assets/railroad-ebnf-LZEXJU2U-DA0sEq7w.js +0 -1
  487. package/dist/client/assets/railroad-peg-JR7BVNR7-Dj23PxYc.js +0 -1
  488. package/dist/client/assets/railroad-peg-WCYAUIDC-DCmlICzO.js +0 -1
  489. package/dist/client/assets/rolldown-runtime-Dd_uD5pT.js +0 -1
  490. package/dist/client/assets/src-XiVvaevx.js +0 -1
  491. package/dist/client/assets/stateDiagram-v2-MP3YSRHH-ClmOOUsT.js +0 -1
  492. package/dist/client/assets/subset-shared.chunk-BXlA-9CO.js +0 -1
  493. package/dist/client/assets/swimlanes-42K2YHIH-BUz31lO3.js +0 -1
  494. package/dist/client/assets/swimlanes-N4OXWK64-Dd3dFdPD.js +0 -1
  495. package/dist/client/assets/swimlanesDiagram-K3J5GTZL-Bz9gFdls.js +0 -8
  496. package/dist/client/assets/swimlanesDiagram-VR7AAH4N-DoDs3zod.js +0 -8
  497. package/dist/client/assets/treeView-D4JQ5SDB-DcX7Bx0H.js +0 -1
  498. package/dist/client/assets/treeView-Q6P3EWNA-BvHOzbu9.js +0 -1
  499. package/dist/client/assets/treemap-SAJKECNS-BcCHmcAX.js +0 -1
  500. package/dist/client/assets/treemap-WGGIJYW6-oety7paS.js +0 -1
  501. package/dist/client/assets/wardley-7MLQ67FV-DOahSwbZ.js +0 -1
  502. package/dist/client/assets/wardley-WFR3VGLG-BdwDpX_I.js +0 -1
  503. package/dist/client/assets/workspace-sync-client-C_P9wtjf.js +0 -1
@@ -13,7 +13,7 @@ ${e}`;function et(e,t){switch(e.type){case`comment`:if(Xe(e.value))return null;b
13
13
  `).map((e,t,n)=>t===0&&t===n.length-1?e:t!==0&&t!==n.length-1?e.trim():t===0?e.trimEnd():e.trimStart());if(n.proseWrap===`preserve`)return r.map(e=>e?[e]:[]);let i=[];for(let[t,n]of r.entries()){let o=mt(n);t>0&&r[t-1].length>0&&o.length>0&&!(e===`quoteDouble`&&a(0,a(0,i,-1),-1).endsWith(`\\`))?i[i.length-1]=[...a(0,i,-1),...o]:i.push(o)}return n.proseWrap===`never`?i.map(e=>[e.join(` `)]):i}function gt(e,{parentIndent:t,isLastDescendant:n,options:r}){let i=e.position.start.line===e.position.end.line?``:r.originalText.slice(e.position.start.offset,e.position.end.offset).match(/^[^\n]*\n(.*)$/s)[1];if(i===``)return[];let o;if(e.indent===null){let e=i.match(/^(?<leadingSpace> *)[^\n\r ]/m);o=e?e.groups.leadingSpace.length:1/0}else o=e.indent-1+t;let s=i.split(`
14
14
  `).map(e=>e.slice(o));if(r.proseWrap===`preserve`||e.type===`blockLiteral`)return l(s.map(e=>e?[e]:[]));let c=[];for(let[e,t]of s.entries()){let n=mt(t);e>0&&n.length>0&&s[e-1].length>0&&!/^\s/.test(n[0])&&!/^\s|\s$/.test(a(0,c,-1))?c[c.length-1]=[...a(0,c,-1),...n]:c.push(n)}return c=c.map(e=>{let t=[];for(let n of e)t.length>0&&/\s$/.test(a(0,t,-1))?t[t.length-1]+=` `+n:t.push(n);return t}),r.proseWrap===`never`&&(c=c.map(e=>[e.join(` `)])),l(c);function l(t){if(e.chomping===`keep`)return i.endsWith(`
15
15
  `)&&a(0,t,-1).length===0?t.slice(0,-1):t;let r=0;for(let e=t.length-1;e>=0&&t[e].every(e=>e.replace(/[ \t]+$/,``)===``);e--)r++;return r===0?t:r>=2&&!n?t.slice(0,-(r-1)):t.slice(0,-r)}}function _t(e){if(!e)return!0;switch(e.type){case`plain`:case`quoteDouble`:case`quoteSingle`:case`alias`:case`flowMapping`:case`flowSequence`:return!0;default:return!1}}var vt=new WeakMap;function yt(e,t){let{node:n,root:r}=e,i=ne(vt,r,()=>new Set);return!i.has(n.position.end.offset)&&(i.add(n.position.end.offset),at(n,t)&&!bt(e.parent))?we:``}function bt(e){return k(e)&&!E(e,[`documentHead`,`documentBody`,`flowMapping`,`flowSequence`])}function A(e,t){return me(` `.repeat(e),t)}function xt(e,t,n){let{node:r}=e,i=e.ancestors.filter(e=>e.type===`sequence`||e.type===`mapping`).length,a=ot(e),o=[r.type===`blockFolded`?`>`:`|`];r.indent!==null&&o.push(r.indent.toString()),r.chomping!==`clip`&&o.push(r.chomping===`keep`?`+`:`-`),pt(r)&&o.push(` `,n(`indicatorComment`));let s=gt(r,{parentIndent:i,isLastDescendant:a,options:t}),c=[];for(let[e,t]of s.entries())e===0&&c.push(w),c.push(ye(C(Ce,t))),e===s.length-1?r.chomping===`keep`&&a&&c.push(he(t.length===0?w:Te)):c.push(t.length===0?w:ge(Te));return r.indent===null?o.push(_e(A(t.tabWidth,c))):o.push(he(A(r.indent-1+i,c))),o}var St=xt;function Ct(e,t,n){let{node:r}=e,i=r.type===`flowMapping`,o=i?`{`:`[`,s=i?`}`:`]`,c=we;i&&r.children.length>0&&t.bracketSpacing&&(c=Ce);let l=a(0,r.children,-1),u=l?.type===`flowMappingItem`&&ut(l.key)&&ut(l.value);return[o,A(t.tabWidth,[c,wt(e,t,n),t.trailingComma===`none`?``:Se(`,`),k(r)?[w,C(w,e.map(n,`endComments`))]:``]),u?``:c,s]}function wt(e,t,n){return e.map(({isLast:r,node:i,next:a})=>[n(),r?``:[`,`,Ce,i.position.start.line===a.position.start.line?``:yt(e,t.originalText)]],`children`)}function Tt(e,t,n){let{node:r,parent:i}=e,{key:a,value:o}=r,s=ut(a),c=ut(o);if(s&&c)return`: `;let l=n(`key`),u=Dt(r)?` `:``;if(c)return r.type===`flowMappingItem`&&i.type===`flowMapping`?l:r.type===`mappingItem`&&Et(a.content,t)&&!O(a.content)&&i.tag?.value!==`tag:yaml.org,2002:set`?[l,u,`:`]:[`? `,A(2,l)];let d=n(`value`);if(s)return[`: `,A(2,d)];if(D(o)||!_t(a.content))return[`? `,A(2,l),w,...e.map(()=>[n(),w],`value`,`leadingComments`),`: `,A(2,d)];if(Ot(a.content)&&!D(a.content)&&!ft(a.content)&&!O(a.content)&&!k(a)&&!D(o.content)&&!ft(o.content)&&!k(o)&&Et(o.content,t)&&Et(a.content,t))return[l,u,`: `,d];let f=Symbol(`mappingKey`),p=be([Se(`? `),be(A(2,l),{id:f})]),m=[w,`: `,A(2,d)],h=[u,`:`];k(o)&&o.content&&E(o.content,[`flowMapping`,`flowSequence`])&&o.content.children.length===0?h.push(` `):D(o.content)||k(o)&&o.content&&!E(o.content,[`mapping`,`sequence`])||i.type===`mapping`&&O(a.content)&&_t(o.content)||E(o.content,[`mapping`,`sequence`])&&o.content.tag===null&&o.content.anchor===null?h.push(w):o.content?h.push(Ce):O(o)&&h.push(` `),h.push(d);let g=A(t.tabWidth,h);return Et(a.content,t)&&!D(a.content)&&!ft(a.content)&&!O(a.content)&&!k(a)?xe([[l,g]]):xe([[p,Se(m,g,{groupId:f})]])}function Et(e,t){if(!e)return!0;switch(e.type){case`plain`:case`quoteSingle`:case`quoteDouble`:break;case`alias`:return!0;default:return!1}if(t.proseWrap===`preserve`)return e.position.start.line===e.position.end.line;if(/\\$/m.test(t.originalText.slice(e.position.start.offset,e.position.end.offset)))return!1;switch(t.proseWrap){case`never`:return!e.value.includes(`
16
- `);case`always`:return!/[\n ]/.test(e.value);default:return!1}}function Dt(e){return e.key.content?.type===`alias`}function Ot(e){if(!e)return!0;switch(e.type){case`plain`:case`quoteDouble`:case`quoteSingle`:return e.position.start.line===e.position.end.line;case`alias`:return!0;default:return!1}}var kt=Tt;function At(e){return rt(e,jt)}function jt(e){switch(e.type){case`document`:it(e,`head`,()=>e.children[0]),it(e,`body`,()=>e.children[1]);break;case`documentBody`:case`sequenceItem`:case`flowSequenceItem`:case`mappingKey`:case`mappingValue`:it(e,`content`,()=>e.children[0]);break;case`mappingItem`:case`flowMappingItem`:it(e,`key`,()=>e.children[0]),it(e,`value`,()=>e.children[1])}return e}var Mt=At;function Nt(e,t,n){let{node:r}=e,i=[];r.type!==`mappingValue`&&D(r)&&i.push([C(w,e.map(n,`leadingComments`)),w]);let{tag:a,anchor:o}=r;a&&i.push(n(`tag`)),a&&o&&i.push(` `),o&&i.push(n(`anchor`));let s=``;return E(r,[`mapping`,`sequence`,`comment`,`directive`,`mappingItem`,`sequenceItem`])&&!ot(e)&&(s=yt(e,t.originalText)),(a||o)&&(E(r,[`sequence`,`mapping`])&&!ft(r)?i.push(w):i.push(` `)),ft(r)&&i.push([r.middleComments.length===1?``:w,C(w,e.map(n,`middleComments`)),w]),lt(e)?i.push(le(t.originalText.slice(r.position.start.offset,r.position.end.offset).trimEnd())):i.push(be(Pt(e,t,n))),O(r)&&!E(r,[`document`,`documentHead`])&&i.push(Ee([r.type===`mappingValue`&&!r.content?``:` `,e.parent.type===`mappingKey`&&e.getParentNode(2).type===`mapping`&&_t(r)?``:ve,n(`trailingComment`)])),bt(r)&&i.push(A(r.type===`sequenceItem`?2:0,[w,C(w,e.map(({node:e})=>[Ne(t.originalText,We(e))?w:``,n()],`endComments`))])),i.push(s),i}function Pt(e,t,n){let{node:r}=e;switch(r.type){case`root`:{let t=st(r),i=!(E(t,[`blockLiteral`,`blockFolded`])&&t.chomping===`keep`),a=[];return e.each(({node:t,isFirst:r})=>{r||a.push(w),a.push(n()),It(e)&&(i&&a.push(w),a.push(`...`),O(t)&&a.push(` `,n(`trailingComment`)))},`children`),i&&a.push(w),a}case`document`:{let t=[];return Lt(e)&&((r.head.children.length>0||r.head.endComments.length>0)&&t.push(n(`head`)),O(r.head)?t.push([`---`,` `,n([`head`,`trailingComment`])]):t.push(`---`)),Ft(r)&&t.push(n(`body`)),C(w,t)}case`documentHead`:return C(w,[...e.map(n,`children`),...e.map(n,`endComments`)]);case`documentBody`:{let{children:i,endComments:o}=r,s=``;if(i.length>0&&o.length>0){let e=st(r);E(e,[`blockFolded`,`blockLiteral`])?e.chomping!==`keep`&&(s=[w,w]):s=E(a(0,i,-1),[`mapping`])&&Ne(t.originalText,We(o[0]))?[w,w]:w}return[C(w,e.map(n,`children`)),s,C(w,e.map(n,`endComments`))]}case`directive`:return[`%`,C(` `,[r.name,...r.parameters])];case`comment`:return[`#`,r.value];case`alias`:return[`*`,r.value];case`tag`:return t.originalText.slice(r.position.start.offset,r.position.end.offset);case`anchor`:return[`&`,r.value];case`plain`:return Rt(r.type,t.originalText.slice(r.position.start.offset,r.position.end.offset),t);case`quoteDouble`:case`quoteSingle`:{let e=t.originalText.slice(r.position.start.offset+1,r.position.end.offset-1);if(r.type===`quoteSingle`&&e.includes(`\\`)||r.type===`quoteDouble`&&/\\[^"]/.test(e)){let n=r.type===`quoteDouble`?`"`:`'`;return[n,Rt(r.type,e,t),n]}if(e.includes(`"`))return[`'`,Rt(r.type,r.type===`quoteDouble`?s(0,s(0,e,`\\"`,`"`),`'`,`'`.repeat(2)):e,t),`'`];if(e.includes(`'`))return[`"`,Rt(r.type,r.type===`quoteSingle`?s(0,e,`''`,`'`):e,t),`"`];let n=t.singleQuote?`'`:`"`;return[n,Rt(r.type,e,t),n]}case`blockFolded`:case`blockLiteral`:return St(e,t,n);case`mapping`:case`sequence`:return C(w,e.map(n,`children`));case`sequenceItem`:return[`- `,A(2,r.content?n(`content`):``)];case`mappingKey`:case`mappingValue`:return r.content?n(`content`):``;case`mappingItem`:case`flowMappingItem`:return kt(e,t,n);case`flowMapping`:return Ct(e,t,n);case`flowSequence`:return Ct(e,t,n);case`flowSequenceItem`:return n(`content`);default:throw new Pe(r,`YAML`)}}function Ft(e){return e.body.children.length>0||k(e.body)}function It(e){let t=e.node;if(t.documentEndMarker||O(t))return!0;if(e.isLast)return!1;let n=e.next;return n.head.children.length>0||k(n.head)}function Lt(e){let t=e.node;return t.directivesEndMarker||t.head.children.length>0||k(t.head)||O(t.head)}function Rt(e,t,n){return C(w,ht(e,t,n).map(e=>ye(C(Ce,e))))}var zt={preprocess:Mt,embed:Ie,print:Nt,massageAstNode:et,insertPragma:$e,getVisitorKeys:Ue},Bt=[{name:`YAML`,type:`data`,aceMode:`yaml`,extensions:[`.yml`,`.mir`,`.reek`,`.rviz`,`.sublime-syntax`,`.syntax`,`.yaml`,`.yaml-tmlanguage`,`.yaml.sed`,`.yml.mysql`],filenames:[`.clang-format`,`.clang-tidy`,`.clangd`,`.gemrc`,`CITATION.cff`,`glide.lock`,`pixi.lock`,`.prettierrc`,`.stylelintrc`,`.lintstagedrc`],tmScope:`source.yaml`,aliases:[`yml`],codemirrorMode:`yaml`,codemirrorMimeType:`text/x-yaml`,parsers:[`yaml`],vscodeLanguageIds:[`yaml`,`ansible`,`dockercompose`,`github-actions-workflow`,`home-assistant`],linguistLanguageId:407}],Vt={bracketSpacing:{category:`Common`,type:`boolean`,default:!0,description:`Print spaces between brackets.`,oppositeDescription:`Do not print spaces between brackets.`},objectWrap:{category:`Common`,type:`choice`,default:`preserve`,description:`How to wrap object literals.`,choices:[{value:`preserve`,description:`Keep as multi-line, if there is a newline between the opening brace and first property.`},{value:`collapse`,description:`Fit to a single line when possible.`}]},singleQuote:{category:`Common`,type:`boolean`,default:!1,description:`Use single quotes instead of double quotes.`},proseWrap:{category:`Common`,type:`choice`,default:`preserve`,description:`How to wrap prose.`,choices:[{value:`always`,description:`Wrap prose if it exceeds the print width.`},{value:`never`,description:`Do not wrap prose.`},{value:`preserve`,description:`Wrap prose as-is.`}]},bracketSameLine:{category:`Common`,type:`boolean`,default:!1,description:`Put > of opening tags on the last line instead of on a new line.`},singleAttributePerLine:{category:`Common`,type:`boolean`,default:!1,description:`Enforce single attribute per line in HTML, Vue and JSX.`}},Ht={bracketSpacing:Vt.bracketSpacing,singleQuote:Vt.singleQuote,proseWrap:Vt.proseWrap},Ut={};t(Ut,{yaml:()=>vs});var Wt=class extends SyntaxError{name=`YAMLSyntaxError`;code;source;position;constructor(e,t){super(t.message,{cause:t}),this.cause??=t,this.code=t.code,this.source=e.text,this.position=e.transformRange(t.pos)}};function j(e,t=null){`children`in e&&e.children.forEach(t=>j(t,e)),`anchor`in e&&e.anchor&&j(e.anchor,e),`tag`in e&&e.tag&&j(e.tag,e),`leadingComments`in e&&e.leadingComments.forEach(t=>j(t,e)),`middleComments`in e&&e.middleComments.forEach(t=>j(t,e)),`indicatorComment`in e&&e.indicatorComment&&j(e.indicatorComment,e),`trailingComment`in e&&e.trailingComment&&j(e.trailingComment,e),`endComments`in e&&e.endComments.forEach(t=>j(t,e)),Object.defineProperty(e,"_parent",{value:t,enumerable:!1})}function Gt(e){return`${e.line}:${e.column}`}function Kt(e){j(e);let t=qt(e),n=e.children.slice();e.comments.filter(e=>!e._parent).forEach(e=>{for(;n.length>1&&e.position.start.line>n[0].position.end.line;)n.shift();Yt(e,t,n[0])})}function qt(e){let t=Array.from(Array(e.position.end.line),()=>({}));for(let n of e.comments)t[n.position.start.line-1].comment=n;return Jt(t,e),t}function Jt(e,t){if(t.position.start.offset!==t.position.end.offset){if(`leadingComments`in t){let{start:n}=t.position,{leadingAttachableNode:r}=e[n.line-1];(!r||n.column<r.position.start.column)&&(e[n.line-1].leadingAttachableNode=t)}if(`trailingComment`in t&&t.position.end.column>1&&t.type!==`document`&&t.type!==`documentHead`){let{end:n}=t.position,{trailingAttachableNode:r}=e[n.line-1];(!r||n.column>=r.position.end.column)&&(e[n.line-1].trailingAttachableNode=t)}if(t.type!==`root`&&t.type!==`document`&&t.type!==`documentHead`&&t.type!==`documentBody`){let{start:n,end:r}=t.position,i=[r.line].concat(n.line===r.line?[]:n.line);for(let n of i){let i=e[n-1].trailingNode;(!i||r.column>=i.position.end.column)&&(e[n-1].trailingNode=t)}}`children`in t&&t.children.forEach(t=>{Jt(e,t)})}}function Yt(e,t,n){let r=e.position.start.line,{trailingAttachableNode:i}=t[r-1];if(i){if(i.trailingComment)throw Error(`Unexpected multiple trailing comment at ${Gt(e.position.start)}`);j(e,i),i.trailingComment=e;return}for(let i=r;i>=n.position.start.line;i--){let{trailingNode:n}=t[i-1],a;if(n)a=n;else if(i!==r&&t[i-1].comment)a=t[i-1].comment._parent;else continue;if((a.type===`sequence`||a.type===`mapping`)&&(a=a.children[0]),a.type===`mappingItem`){let[e,t]=a.children;a=Zt(e)?e:t}for(;;){if(Xt(a,e)){j(e,a),a.endComments.push(e);return}if(!a._parent)break;a=a._parent}break}for(let i=r+1;i<=n.position.end.line;i++){let{leadingAttachableNode:n}=t[i-1];if(n){j(e,n),n.leadingComments.push(e);return}}let a=n.children[1];j(e,a),a.endComments.push(e)}function Xt(e,t){if(e.position.start.offset<t.position.start.offset&&e.position.end.offset>t.position.end.offset)switch(e.type){case`flowMapping`:case`flowSequence`:return e.children.length===0||t.position.start.line>e.children[e.children.length-1].position.end.line}if(t.position.end.offset<e.position.end.offset)return!1;switch(e.type){case`sequenceItem`:return t.position.start.column>e.position.start.column;case`mappingKey`:case`mappingValue`:return t.position.start.column>e._parent.position.start.column&&(e.children.length===0||e.children.length===1&&e.children[0].type!==`blockFolded`&&e.children[0].type!==`blockLiteral`)&&(e.type===`mappingValue`||Zt(e));default:return!1}}function Zt(e){return e.position.start!==e.position.end&&(e.children.length===0||e.position.start.offset!==e.children[0].position.start.offset)}function Qt(e,t,n){return{type:`root`,position:e,children:t,comments:n}}function $t(e,t){return{start:e,end:t}}function en(e){return{start:e,end:e}}function tn(e,t){return{type:`comment`,position:t.transformRange([e.offset,e.offset+e.source.length]),value:e.source.slice(1)}}function nn(e,t){return{type:`anchor`,position:e,value:t}}function rn(e,t,n){return{anchor:t,tag:e,middleComments:n}}function an(e,t){return{type:`tag`,position:e,value:t}}function on(e,t,n){let r=[],i=null,a=null,o=null;for(let s of t){let t=[s.offset,s.offset+s.source.length];switch(s.type){case`tag`:{i??=t;let r=e.tag??s.source.slice(s.source.startsWith(`!!`)?2:1);r===`!`&&(r=`tag:yaml.org,2002:str`),a=an(n.transformRange(t),r)}break;case`anchor`:i??=t,o=nn(n.transformRange(t),e.anchor);break;case`comment`:{let a=n.transformComment(s);i&&i[0]<=t[0]&&t[1]<=e.range[0]&&r.push(a);break}default:throw Error(`Unexpected content property token type: ${s.type}`)}}return rn(a,o,r)}function sn(e,t,n){return{type:`alias`,position:e,leadingComments:[],trailingComment:null,...t,value:n}}function*M(...e){for(let t of e)if(t)for(let e of t)cn(e)||(yield e)}function cn(e){return e.type===`space`||e.type===`newline`}function ln(e){return e.type===`comment`||e.type===`tag`||e.type===`anchor`}function N(e,t){let n=[];for(let r of M(e))r.type===`comment`?t.transformComment(r):n.push(r);return n}function un(e,t,n){let r=e.srcToken;for(let e of N(r.end,t))throw Error(`Unexpected token type in alias end: ${e.type}`);return sn(t.transformRange(e.range),t.transformContentProperties(e,n.tokens),e.source)}function dn(e){return{...e,type:`blockFolded`}}function fn(e,t,n,r,i,a){return{type:`blockValue`,position:e,leadingComments:[],...t,chomping:n,indent:r,value:i,indicatorComment:a}}function pn(e,t,n,r){let i=null,a=null;for(let e of M(t.props))if(e.type===`comment`)a=n.transformComment(e);else if(e.type===`block-scalar-header`)i=e;else throw Error(`Unexpected token type in block value end: ${e.type}`);if(!i)throw Error(`Expected block scalar header token`);let o=mn(i.source);return fn(n.transformRange(e.range),n.transformContentProperties(e,r.tokens),o.chomping,o.indent,e.source,a)}function mn(e){let t=/([+-]?)(\d*)([+-]?)$/u.exec(e),n=null,r=`clip`;if(t){n=t[2]?Number(t[2]):null;let e=t[3]||t[1];r=e===`+`?`keep`:e===`-`?`strip`:`clip`}return{chomping:r,indent:n}}function hn(e,t,n){let r=e.srcToken;if(!r||r.type!==`block-scalar`)throw Error(`Expected block scalar srcToken`);return dn(pn(e,r,t,n))}function gn(e){return{...e,type:`blockLiteral`}}function _n(e,t,n){let r=e.srcToken;if(!r||r.type!==`block-scalar`)throw Error(`Expected block scalar srcToken`);return gn(pn(e,r,t,n))}function vn(e,t,n){return{type:`flowCollection`,position:e,leadingComments:[],trailingComment:null,endComments:[],...t,children:n}}function yn(e,t,n){return{...vn(e,t,n),type:`flowMapping`}}function bn(e,t,n){return{type:`flowMappingItem`,position:e,leadingComments:[],children:[t,n]}}function xn(e,t){return{type:`mappingKey`,position:e,trailingComment:null,endComments:[],children:t?[t]:[]}}function Sn(e,t){return{type:`mappingValue`,position:e,leadingComments:[],trailingComment:null,endComments:[],children:t?[t]:[]}}function Cn(e,t,n,r){let i=[],a=null;for(let e of M(t.start)){if(ln(e)){i.push(e);continue}if(e.type===`explicit-key-ind`){a=e;continue}if(e.type!==`comma`)throw Error(`Unexpected token type in collection item start: ${e.type}`)}let o=[],s=null;for(let e of M(t.sep)){if(ln(e)){o.push(e);continue}if(e.type===`map-value-ind`){s=e;continue}throw Error(`Unexpected token type in collection item sep: ${e.type}`)}let c=a?.offset??t.key?.offset??s?.offset??t.value.offset,l=[c,t.key?e.key.range[1]:a?a.offset+a.source.length:c],u=null;if(e.value){let n=s?.offset??t.value?.offset??e.value.range[0];u=[n,t.value?e.value.range[1]:s?s.offset+s.source.length:n]}return wn(e,n,r,{range:l,props:{tokens:i}},{range:u,props:{tokens:o}})}function wn(e,t,n,r,i){let a=null;Uo(e.key,r.props)?N(r.props.tokens,t):a=t.transformNode(e.key,r.props);let o=null;Uo(e.value,i.props)?N(i.props.tokens,t):o=t.transformNode(e.value,i.props);let s=xn(t.transformRange([r.range?r.range[0]:a.position.start.offset,a?a.position.end.offset:r.range[1]]),a),c=o||i.range?Sn(t.transformRange([i.range?i.range[0]:o.position.start.offset,o?o.position.end.offset:i.range[0]+1]),o):null;return n($t(s.position.start,c?c.position.end:s.position.end),s,c||Sn(en(s.position.end),null))}function Tn(e,t,n){let r=e.srcToken;if(!r||r.type!==`flow-collection`)throw Error(`Expected flow-collection CST node for flow map`);let i=e.items.map((e,n)=>{let i=r.items[n];return Cn(e,i,t,bn)});if(e.items.length<r.items.length)for(let n=e.items.length;n<r.items.length;n++){let e=r.items[n];for(let n of N(e.start,t))if(n.type!==`comma`)throw Error(`Unexpected token type in collection item start: ${n.type}`)}let a=null;for(let e of N(r.end,t)){if(e.type===`flow-map-end`){a=e;continue}throw Error(`Unexpected token type in flow map end: ${e.type}`)}if(!a)throw Error(`Expected flow-map-end token`);return yn(t.transformRange([r.start.offset,a.offset+a.source.length]),t.transformContentProperties(e,n.tokens),i)}function En(e,t,n){return{...vn(e,t,n),type:`flowSequence`}}function Dn(e,t){return{type:`flowSequenceItem`,position:e,children:[t]}}function On(e){return e[e.length-1]}var kn={};t(kn,{Alias:()=>er,CST:()=>Na,Composer:()=>Ma,Document:()=>Gi,Lexer:()=>so,LineCounter:()=>co,Pair:()=>Y,Parser:()=>_o,Scalar:()=>K,Schema:()=>Ui,YAMLError:()=>qi,YAMLMap:()=>X,YAMLParseError:()=>Ji,YAMLSeq:()=>Z,YAMLWarning:()=>Yi,isAlias:()=>L,isCollection:()=>V,isDocument:()=>Pn,isMap:()=>R,isNode:()=>H,isPair:()=>z,isScalar:()=>B,isSeq:()=>Fn,parse:()=>xo,parseAllDocuments:()=>yo,parseDocument:()=>bo,stringify:()=>So,visit:()=>Rn,visitAsync:()=>Bn});var An=Symbol.for(`yaml.alias`),jn=Symbol.for(`yaml.document`),P=Symbol.for(`yaml.map`),Mn=Symbol.for(`yaml.pair`),F=Symbol.for(`yaml.scalar`),Nn=Symbol.for(`yaml.seq`),I=Symbol.for(`yaml.node.type`),L=e=>!!e&&typeof e==`object`&&e[I]===An,Pn=e=>!!e&&typeof e==`object`&&e[I]===jn,R=e=>!!e&&typeof e==`object`&&e[I]===P,z=e=>!!e&&typeof e==`object`&&e[I]===Mn,B=e=>!!e&&typeof e==`object`&&e[I]===F,Fn=e=>!!e&&typeof e==`object`&&e[I]===Nn;function V(e){if(e&&typeof e==`object`)switch(e[I]){case P:case Nn:return!0}return!1}function H(e){if(e&&typeof e==`object`)switch(e[I]){case An:case P:case F:case Nn:return!0}return!1}var In=e=>(B(e)||V(e))&&!!e.anchor,U=Symbol(`break visit`),Ln=Symbol(`skip children`),W=Symbol(`remove node`);function Rn(e,t){let n=Hn(t);Pn(e)?zn(null,e.contents,n,Object.freeze([e]))===W&&(e.contents=null):zn(null,e,n,Object.freeze([]))}Rn.BREAK=U,Rn.SKIP=Ln,Rn.REMOVE=W;function zn(e,t,n,r){let i=Un(e,t,n,r);if(H(i)||z(i))return Wn(e,r,i),zn(e,i,n,r);if(typeof i!=`symbol`){if(V(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=zn(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else{if(i===U)return U;i===W&&(t.items.splice(e,1),--e)}}}else if(z(t)){r=Object.freeze(r.concat(t));let e=zn(`key`,t.key,n,r);if(e===U)return U;e===W&&(t.key=null);let i=zn(`value`,t.value,n,r);if(i===U)return U;i===W&&(t.value=null)}}return i}async function Bn(e,t){let n=Hn(t);Pn(e)?await Vn(null,e.contents,n,Object.freeze([e]))===W&&(e.contents=null):await Vn(null,e,n,Object.freeze([]))}Bn.BREAK=U,Bn.SKIP=Ln,Bn.REMOVE=W;async function Vn(e,t,n,r){let i=await Un(e,t,n,r);if(H(i)||z(i))return Wn(e,r,i),Vn(e,i,n,r);if(typeof i!=`symbol`){if(V(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=await Vn(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else{if(i===U)return U;i===W&&(t.items.splice(e,1),--e)}}}else if(z(t)){r=Object.freeze(r.concat(t));let e=await Vn(`key`,t.key,n,r);if(e===U)return U;e===W&&(t.key=null);let i=await Vn(`value`,t.value,n,r);if(i===U)return U;i===W&&(t.value=null)}}return i}function Hn(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Un(e,t,n,r){if(typeof n==`function`)return n(e,t,r);if(R(t))return n.Map?.(e,t,r);if(Fn(t))return n.Seq?.(e,t,r);if(z(t))return n.Pair?.(e,t,r);if(B(t))return n.Scalar?.(e,t,r);if(L(t))return n.Alias?.(e,t,r)}function Wn(e,t,n){let r=t[t.length-1];if(V(r))r.items[e]=n;else if(z(r))e===`key`?r.key=n:r.value=n;else if(Pn(r))r.contents=n;else{let e=L(r)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}var Gn={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},Kn=e=>e.replace(/[!,[\]{}]/g,e=>Gn[e]),qn=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags)}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+Kn(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],n=Object.entries(this.tags),r;if(e&&n.length>0&&H(e.contents)){let t={};Rn(e.contents,(e,n)=>{H(n)&&n.tag&&(t[n.tag]=!0)}),r=Object.keys(t)}else r=[];for(let[i,a]of n)i===`!!`&&a===`tag:yaml.org,2002:`||(!e||r.some(e=>e.startsWith(a)))&&t.push(`%TAG ${i} ${a}`);return t.join(`
16
+ `);case`always`:return!/[\n ]/.test(e.value);default:return!1}}function Dt(e){return e.key.content?.type===`alias`}function Ot(e){if(!e)return!0;switch(e.type){case`plain`:case`quoteDouble`:case`quoteSingle`:return e.position.start.line===e.position.end.line;case`alias`:return!0;default:return!1}}var kt=Tt;function At(e){return rt(e,jt)}function jt(e){switch(e.type){case`document`:it(e,`head`,()=>e.children[0]),it(e,`body`,()=>e.children[1]);break;case`documentBody`:case`sequenceItem`:case`flowSequenceItem`:case`mappingKey`:case`mappingValue`:it(e,`content`,()=>e.children[0]);break;case`mappingItem`:case`flowMappingItem`:it(e,`key`,()=>e.children[0]),it(e,`value`,()=>e.children[1])}return e}var Mt=At;function Nt(e,t,n){let{node:r}=e,i=[];r.type!==`mappingValue`&&D(r)&&i.push([C(w,e.map(n,`leadingComments`)),w]);let{tag:a,anchor:o}=r;a&&i.push(n(`tag`)),a&&o&&i.push(` `),o&&i.push(n(`anchor`));let s=``;return E(r,[`mapping`,`sequence`,`comment`,`directive`,`mappingItem`,`sequenceItem`])&&!ot(e)&&(s=yt(e,t.originalText)),(a||o)&&(E(r,[`sequence`,`mapping`])&&!ft(r)?i.push(w):i.push(` `)),ft(r)&&i.push([r.middleComments.length===1?``:w,C(w,e.map(n,`middleComments`)),w]),lt(e)?i.push(le(t.originalText.slice(r.position.start.offset,r.position.end.offset).trimEnd())):i.push(be(Pt(e,t,n))),O(r)&&!E(r,[`document`,`documentHead`])&&i.push(Ee([r.type===`mappingValue`&&!r.content?``:` `,e.parent.type===`mappingKey`&&e.getParentNode(2).type===`mapping`&&_t(r)?``:ve,n(`trailingComment`)])),bt(r)&&i.push(A(r.type===`sequenceItem`?2:0,[w,C(w,e.map(({node:e})=>[Ne(t.originalText,We(e))?w:``,n()],`endComments`))])),i.push(s),i}function Pt(e,t,n){let{node:r}=e;switch(r.type){case`root`:{let t=st(r),i=!(E(t,[`blockLiteral`,`blockFolded`])&&t.chomping===`keep`),a=[];return e.each(({node:t,isFirst:r})=>{r||a.push(w),a.push(n()),It(e)&&(i&&a.push(w),a.push(`...`),O(t)&&a.push(` `,n(`trailingComment`)))},`children`),i&&a.push(w),a}case`document`:{let t=[];return Lt(e)&&((r.head.children.length>0||r.head.endComments.length>0)&&t.push(n(`head`)),O(r.head)?t.push([`---`,` `,n([`head`,`trailingComment`])]):t.push(`---`)),Ft(r)&&t.push(n(`body`)),C(w,t)}case`documentHead`:return C(w,[...e.map(n,`children`),...e.map(n,`endComments`)]);case`documentBody`:{let{children:i,endComments:o}=r,s=``;if(i.length>0&&o.length>0){let e=st(r);E(e,[`blockFolded`,`blockLiteral`])?e.chomping!==`keep`&&(s=[w,w]):s=E(a(0,i,-1),[`mapping`])&&Ne(t.originalText,We(o[0]))?[w,w]:w}return[C(w,e.map(n,`children`)),s,C(w,e.map(n,`endComments`))]}case`directive`:return[`%`,C(` `,[r.name,...r.parameters])];case`comment`:return[`#`,r.value];case`alias`:return[`*`,r.value];case`tag`:return t.originalText.slice(r.position.start.offset,r.position.end.offset);case`anchor`:return[`&`,r.value];case`plain`:return Rt(r.type,t.originalText.slice(r.position.start.offset,r.position.end.offset),t);case`quoteDouble`:case`quoteSingle`:{let e=t.originalText.slice(r.position.start.offset+1,r.position.end.offset-1);if(r.type===`quoteSingle`&&e.includes(`\\`)||r.type===`quoteDouble`&&/\\[^"]/.test(e)){let n=r.type===`quoteDouble`?`"`:`'`;return[n,Rt(r.type,e,t),n]}if(e.includes(`"`))return[`'`,Rt(r.type,r.type===`quoteDouble`?s(0,s(0,e,`\\"`,`"`),`'`,`'`.repeat(2)):e,t),`'`];if(e.includes(`'`))return[`"`,Rt(r.type,r.type===`quoteSingle`?s(0,e,`''`,`'`):e,t),`"`];let n=t.singleQuote?`'`:`"`;return[n,Rt(r.type,e,t),n]}case`blockFolded`:case`blockLiteral`:return St(e,t,n);case`mapping`:case`sequence`:return C(w,e.map(n,`children`));case`sequenceItem`:return[`- `,A(2,r.content?n(`content`):``)];case`mappingKey`:case`mappingValue`:return r.content?n(`content`):``;case`mappingItem`:case`flowMappingItem`:return kt(e,t,n);case`flowMapping`:return Ct(e,t,n);case`flowSequence`:return Ct(e,t,n);case`flowSequenceItem`:return n(`content`);default:throw new Pe(r,`YAML`)}}function Ft(e){return e.body.children.length>0||k(e.body)}function It(e){let t=e.node;if(t.documentEndMarker||O(t))return!0;if(e.isLast)return!1;let n=e.next;return n.head.children.length>0||k(n.head)}function Lt(e){let t=e.node;return t.directivesEndMarker||t.head.children.length>0||k(t.head)||O(t.head)}function Rt(e,t,n){return C(w,ht(e,t,n).map(e=>ye(C(Ce,e))))}var zt={preprocess:Mt,embed:Ie,print:Nt,massageAstNode:et,insertPragma:$e,getVisitorKeys:Ue},Bt=[{name:`YAML`,type:`data`,aceMode:`yaml`,extensions:[`.yml`,`.mir`,`.reek`,`.rviz`,`.sublime-syntax`,`.syntax`,`.yaml`,`.yaml-tmlanguage`,`.yaml.sed`,`.yml.mysql`],filenames:[`.clang-format`,`.clang-tidy`,`.clangd`,`.gemrc`,`CITATION.cff`,`glide.lock`,`pixi.lock`,`.prettierrc`,`.stylelintrc`,`.lintstagedrc`],tmScope:`source.yaml`,aliases:[`yml`],codemirrorMode:`yaml`,codemirrorMimeType:`text/x-yaml`,parsers:[`yaml`],vscodeLanguageIds:[`yaml`,`ansible`,`dockercompose`,`github-actions-workflow`,`home-assistant`],linguistLanguageId:407}],Vt={bracketSpacing:{category:`Common`,type:`boolean`,default:!0,description:`Print spaces between brackets.`,oppositeDescription:`Do not print spaces between brackets.`},objectWrap:{category:`Common`,type:`choice`,default:`preserve`,description:`How to wrap object literals.`,choices:[{value:`preserve`,description:`Keep as multi-line, if there is a newline between the opening brace and first property.`},{value:`collapse`,description:`Fit to a single line when possible.`}]},singleQuote:{category:`Common`,type:`boolean`,default:!1,description:`Use single quotes instead of double quotes.`},proseWrap:{category:`Common`,type:`choice`,default:`preserve`,description:`How to wrap prose.`,choices:[{value:`always`,description:`Wrap prose if it exceeds the print width.`},{value:`never`,description:`Do not wrap prose.`},{value:`preserve`,description:`Wrap prose as-is.`}]},bracketSameLine:{category:`Common`,type:`boolean`,default:!1,description:`Put > of opening tags on the last line instead of on a new line.`},singleAttributePerLine:{category:`Common`,type:`boolean`,default:!1,description:`Enforce single attribute per line in HTML, Vue and JSX.`}},Ht={bracketSpacing:Vt.bracketSpacing,singleQuote:Vt.singleQuote,proseWrap:Vt.proseWrap},Ut={};t(Ut,{yaml:()=>vs});var Wt=class extends SyntaxError{name=`YAMLSyntaxError`;code;source;position;constructor(e,t){super(t.message,{cause:t}),this.cause??=t,this.code=t.code,this.source=e.text,this.position=e.transformRange(t.pos)}};function j(e,t=null){`children`in e&&e.children.forEach(t=>j(t,e)),`anchor`in e&&e.anchor&&j(e.anchor,e),`tag`in e&&e.tag&&j(e.tag,e),`leadingComments`in e&&e.leadingComments.forEach(t=>j(t,e)),`middleComments`in e&&e.middleComments.forEach(t=>j(t,e)),`indicatorComment`in e&&e.indicatorComment&&j(e.indicatorComment,e),`trailingComment`in e&&e.trailingComment&&j(e.trailingComment,e),`endComments`in e&&e.endComments.forEach(t=>j(t,e)),Object.defineProperty(e,"_parent",{value:t,enumerable:!1})}function Gt(e){return`${e.line}:${e.column}`}function Kt(e){j(e);let t=qt(e),n=e.children.slice();e.comments.filter(e=>!e._parent).forEach(e=>{for(;n.length>1&&e.position.start.line>n[0].position.end.line;)n.shift();Yt(e,t,n[0])})}function qt(e){let t=Array.from(Array(e.position.end.line),()=>({}));for(let n of e.comments)t[n.position.start.line-1].comment=n;return Jt(t,e),t}function Jt(e,t){if(t.position.start.offset!==t.position.end.offset){if(`leadingComments`in t){let{start:n}=t.position,{leadingAttachableNode:r}=e[n.line-1];(!r||n.column<r.position.start.column)&&(e[n.line-1].leadingAttachableNode=t)}if(`trailingComment`in t&&t.position.end.column>1&&t.type!==`document`&&t.type!==`documentHead`){let{end:n}=t.position,{trailingAttachableNode:r}=e[n.line-1];(!r||n.column>=r.position.end.column)&&(e[n.line-1].trailingAttachableNode=t)}if(t.type!==`root`&&t.type!==`document`&&t.type!==`documentHead`&&t.type!==`documentBody`){let{start:n,end:r}=t.position,i=[r.line].concat(n.line===r.line?[]:n.line);for(let n of i){let i=e[n-1].trailingNode;(!i||r.column>=i.position.end.column)&&(e[n-1].trailingNode=t)}}`children`in t&&t.children.forEach(t=>{Jt(e,t)})}}function Yt(e,t,n){let r=e.position.start.line,{trailingAttachableNode:i}=t[r-1];if(i){if(i.trailingComment)throw Error(`Unexpected multiple trailing comment at ${Gt(e.position.start)}`);j(e,i),i.trailingComment=e;return}for(let i=r;i>=n.position.start.line;i--){let{trailingNode:n}=t[i-1],a;if(n)a=n;else if(i!==r&&t[i-1].comment)a=t[i-1].comment._parent;else continue;if((a.type===`sequence`||a.type===`mapping`)&&(a=a.children[0]),a.type===`mappingItem`){let[e,t]=a.children;a=Zt(e)?e:t}for(;;){if(Xt(a,e)){j(e,a),a.endComments.push(e);return}if(!a._parent)break;a=a._parent}break}for(let i=r+1;i<=n.position.end.line;i++){let{leadingAttachableNode:n}=t[i-1];if(n){j(e,n),n.leadingComments.push(e);return}}let a=n.children[1];j(e,a),a.endComments.push(e)}function Xt(e,t){if(e.position.start.offset<t.position.start.offset&&e.position.end.offset>t.position.end.offset)switch(e.type){case`flowMapping`:case`flowSequence`:return e.children.length===0||t.position.start.line>e.children[e.children.length-1].position.end.line}if(t.position.end.offset<e.position.end.offset)return!1;switch(e.type){case`sequenceItem`:return t.position.start.column>e.position.start.column;case`mappingKey`:case`mappingValue`:return t.position.start.column>e._parent.position.start.column&&(e.children.length===0||e.children.length===1&&e.children[0].type!==`blockFolded`&&e.children[0].type!==`blockLiteral`)&&(e.type===`mappingValue`||Zt(e));default:return!1}}function Zt(e){return e.position.start!==e.position.end&&(e.children.length===0||e.position.start.offset!==e.children[0].position.start.offset)}function Qt(e,t,n){return{type:`root`,position:e,children:t,comments:n}}function $t(e,t){return{start:e,end:t}}function en(e){return{start:e,end:e}}function tn(e,t){return{type:`comment`,position:t.transformRange([e.offset,e.offset+e.source.length]),value:e.source.slice(1)}}function nn(e,t){return{type:`anchor`,position:e,value:t}}function rn(e,t,n){return{anchor:t,tag:e,middleComments:n}}function an(e,t){return{type:`tag`,position:e,value:t}}function on(e,t,n){let r=[],i=null,a=null,o=null;for(let s of t){let t=[s.offset,s.offset+s.source.length];switch(s.type){case`tag`:{i??=t;let r=e.tag??s.source.slice(s.source.startsWith(`!!`)?2:1);r===`!`&&(r=`tag:yaml.org,2002:str`),a=an(n.transformRange(t),r)}break;case`anchor`:i??=t,o=nn(n.transformRange(t),e.anchor);break;case`comment`:{let a=n.transformComment(s);i&&i[0]<=t[0]&&t[1]<=e.range[0]&&r.push(a);break}default:throw Error(`Unexpected content property token type: ${s.type}`)}}return rn(a,o,r)}function sn(e,t,n){return{type:`alias`,position:e,leadingComments:[],trailingComment:null,...t,value:n}}function*M(...e){for(let t of e)if(t)for(let e of t)cn(e)||(yield e)}function cn(e){return e.type===`space`||e.type===`newline`}function ln(e){return e.type===`comment`||e.type===`tag`||e.type===`anchor`}function N(e,t){let n=[];for(let r of M(e))r.type===`comment`?t.transformComment(r):n.push(r);return n}function un(e,t,n){let r=e.srcToken;for(let e of N(r.end,t))throw Error(`Unexpected token type in alias end: ${e.type}`);return sn(t.transformRange(e.range),t.transformContentProperties(e,n.tokens),e.source)}function dn(e){return{...e,type:`blockFolded`}}function fn(e,t,n,r,i,a){return{type:`blockValue`,position:e,leadingComments:[],...t,chomping:n,indent:r,value:i,indicatorComment:a}}function pn(e,t,n,r){let i=null,a=null;for(let e of M(t.props))if(e.type===`comment`)a=n.transformComment(e);else if(e.type===`block-scalar-header`)i=e;else throw Error(`Unexpected token type in block value end: ${e.type}`);if(!i)throw Error(`Expected block scalar header token`);let o=mn(i.source);return fn(n.transformRange(e.range),n.transformContentProperties(e,r.tokens),o.chomping,o.indent,e.source,a)}function mn(e){let t=/([+-]?)(\d*)([+-]?)$/u.exec(e),n=null,r=`clip`;if(t){n=t[2]?Number(t[2]):null;let e=t[3]||t[1];r=e===`+`?`keep`:e===`-`?`strip`:`clip`}return{chomping:r,indent:n}}function hn(e,t,n){let r=e.srcToken;if(!r||r.type!==`block-scalar`)throw Error(`Expected block scalar srcToken`);return dn(pn(e,r,t,n))}function gn(e){return{...e,type:`blockLiteral`}}function _n(e,t,n){let r=e.srcToken;if(!r||r.type!==`block-scalar`)throw Error(`Expected block scalar srcToken`);return gn(pn(e,r,t,n))}function vn(e,t,n){return{type:`flowCollection`,position:e,leadingComments:[],trailingComment:null,endComments:[],...t,children:n}}function yn(e,t,n){return{...vn(e,t,n),type:`flowMapping`}}function bn(e,t,n){return{type:`flowMappingItem`,position:e,leadingComments:[],children:[t,n]}}function xn(e,t){return{type:`mappingKey`,position:e,trailingComment:null,endComments:[],children:t?[t]:[]}}function Sn(e,t){return{type:`mappingValue`,position:e,leadingComments:[],trailingComment:null,endComments:[],children:t?[t]:[]}}function Cn(e,t,n,r){let i=[],a=null;for(let e of M(t.start))if(ln(e))i.push(e);else if(e.type===`explicit-key-ind`)a=e;else if(e.type!==`comma`)throw Error(`Unexpected token type in collection item start: ${e.type}`);let o=[],s=null;for(let e of M(t.sep))if(ln(e))o.push(e);else if(e.type===`map-value-ind`)s=e;else throw Error(`Unexpected token type in collection item sep: ${e.type}`);let c=a?.offset??t.key?.offset??s?.offset??t.value.offset,l=[c,t.key?e.key.range[1]:a?a.offset+a.source.length:c],u=null;if(e.value){let n=s?.offset??t.value?.offset??e.value.range[0];u=[n,t.value?e.value.range[1]:s?s.offset+s.source.length:n]}return wn(e,n,r,{range:l,props:{tokens:i}},{range:u,props:{tokens:o}})}function wn(e,t,n,r,i){let a=null;Uo(e.key,r.props)?N(r.props.tokens,t):a=t.transformNode(e.key,r.props);let o=null;Uo(e.value,i.props)?N(i.props.tokens,t):o=t.transformNode(e.value,i.props);let s=xn(t.transformRange([r.range?r.range[0]:a.position.start.offset,a?a.position.end.offset:r.range[1]]),a),c=o||i.range?Sn(t.transformRange([i.range?i.range[0]:o.position.start.offset,o?o.position.end.offset:i.range[0]+1]),o):null;return n($t(s.position.start,c?c.position.end:s.position.end),s,c||Sn(en(s.position.end),null))}function Tn(e,t,n){let r=e.srcToken;if(!r||r.type!==`flow-collection`)throw Error(`Expected flow-collection CST node for flow map`);let i=e.items.map((e,n)=>{let i=r.items[n];return Cn(e,i,t,bn)});if(e.items.length<r.items.length)for(let n=e.items.length;n<r.items.length;n++){let e=r.items[n];for(let n of N(e.start,t))if(n.type!==`comma`)throw Error(`Unexpected token type in collection item start: ${n.type}`)}let a=null;for(let e of N(r.end,t))if(e.type===`flow-map-end`)a=e;else throw Error(`Unexpected token type in flow map end: ${e.type}`);if(!a)throw Error(`Expected flow-map-end token`);return yn(t.transformRange([r.start.offset,a.offset+a.source.length]),t.transformContentProperties(e,n.tokens),i)}function En(e,t,n){return{...vn(e,t,n),type:`flowSequence`}}function Dn(e,t){return{type:`flowSequenceItem`,position:e,children:[t]}}function On(e){return e[e.length-1]}var kn={};t(kn,{Alias:()=>er,CST:()=>Na,Composer:()=>Ma,Document:()=>Gi,Lexer:()=>so,LineCounter:()=>co,Pair:()=>Y,Parser:()=>_o,Scalar:()=>K,Schema:()=>Ui,YAMLError:()=>qi,YAMLMap:()=>X,YAMLParseError:()=>Ji,YAMLSeq:()=>Z,YAMLWarning:()=>Yi,isAlias:()=>L,isCollection:()=>V,isDocument:()=>Pn,isMap:()=>R,isNode:()=>H,isPair:()=>z,isScalar:()=>B,isSeq:()=>Fn,parse:()=>xo,parseAllDocuments:()=>yo,parseDocument:()=>bo,stringify:()=>So,visit:()=>Rn,visitAsync:()=>Bn});var An=Symbol.for(`yaml.alias`),jn=Symbol.for(`yaml.document`),P=Symbol.for(`yaml.map`),Mn=Symbol.for(`yaml.pair`),F=Symbol.for(`yaml.scalar`),Nn=Symbol.for(`yaml.seq`),I=Symbol.for(`yaml.node.type`),L=e=>!!e&&typeof e==`object`&&e[I]===An,Pn=e=>!!e&&typeof e==`object`&&e[I]===jn,R=e=>!!e&&typeof e==`object`&&e[I]===P,z=e=>!!e&&typeof e==`object`&&e[I]===Mn,B=e=>!!e&&typeof e==`object`&&e[I]===F,Fn=e=>!!e&&typeof e==`object`&&e[I]===Nn;function V(e){if(e&&typeof e==`object`)switch(e[I]){case P:case Nn:return!0}return!1}function H(e){if(e&&typeof e==`object`)switch(e[I]){case An:case P:case F:case Nn:return!0}return!1}var In=e=>(B(e)||V(e))&&!!e.anchor,U=Symbol(`break visit`),Ln=Symbol(`skip children`),W=Symbol(`remove node`);function Rn(e,t){let n=Hn(t);Pn(e)?zn(null,e.contents,n,Object.freeze([e]))===W&&(e.contents=null):zn(null,e,n,Object.freeze([]))}Rn.BREAK=U,Rn.SKIP=Ln,Rn.REMOVE=W;function zn(e,t,n,r){let i=Un(e,t,n,r);if(H(i)||z(i))return Wn(e,r,i),zn(e,i,n,r);if(typeof i!=`symbol`){if(V(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=zn(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else{if(i===U)return U;i===W&&(t.items.splice(e,1),--e)}}}else if(z(t)){r=Object.freeze(r.concat(t));let e=zn(`key`,t.key,n,r);if(e===U)return U;e===W&&(t.key=null);let i=zn(`value`,t.value,n,r);if(i===U)return U;i===W&&(t.value=null)}}return i}async function Bn(e,t){let n=Hn(t);Pn(e)?await Vn(null,e.contents,n,Object.freeze([e]))===W&&(e.contents=null):await Vn(null,e,n,Object.freeze([]))}Bn.BREAK=U,Bn.SKIP=Ln,Bn.REMOVE=W;async function Vn(e,t,n,r){let i=await Un(e,t,n,r);if(H(i)||z(i))return Wn(e,r,i),Vn(e,i,n,r);if(typeof i!=`symbol`){if(V(t)){r=Object.freeze(r.concat(t));for(let e=0;e<t.items.length;++e){let i=await Vn(e,t.items[e],n,r);if(typeof i==`number`)e=i-1;else{if(i===U)return U;i===W&&(t.items.splice(e,1),--e)}}}else if(z(t)){r=Object.freeze(r.concat(t));let e=await Vn(`key`,t.key,n,r);if(e===U)return U;e===W&&(t.key=null);let i=await Vn(`value`,t.value,n,r);if(i===U)return U;i===W&&(t.value=null)}}return i}function Hn(e){return typeof e==`object`&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Un(e,t,n,r){if(typeof n==`function`)return n(e,t,r);if(R(t))return n.Map?.(e,t,r);if(Fn(t))return n.Seq?.(e,t,r);if(z(t))return n.Pair?.(e,t,r);if(B(t))return n.Scalar?.(e,t,r);if(L(t))return n.Alias?.(e,t,r)}function Wn(e,t,n){let r=t[t.length-1];if(V(r))r.items[e]=n;else if(z(r))e===`key`?r.key=n:r.value=n;else if(Pn(r))r.contents=n;else{let e=L(r)?`alias`:`scalar`;throw Error(`Cannot replace node with ${e} parent`)}}var Gn={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},Kn=e=>e.replace(/[!,[\]{}]/g,e=>Gn[e]),qn=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags)}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+Kn(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],n=Object.entries(this.tags),r;if(e&&n.length>0&&H(e.contents)){let t={};Rn(e.contents,(e,n)=>{H(n)&&n.tag&&(t[n.tag]=!0)}),r=Object.keys(t)}else r=[];for(let[i,a]of n)i===`!!`&&a===`tag:yaml.org,2002:`||(!e||r.some(e=>e.startsWith(a)))&&t.push(`%TAG ${i} ${a}`);return t.join(`
17
17
  `)}};qn.defaultYaml={explicit:!1,version:`1.2`},qn.defaultTags={"!!":`tag:yaml.org,2002:`};function Jn(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function Yn(e){let t=new Set;return Rn(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function Xn(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function Zn(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i??=Yn(e);let a=Xn(t,i);return i.add(a),a},setAnchors:()=>{for(let e of n){let t=r.get(e);if(typeof t==`object`&&t.anchor&&(B(t.node)||V(t.node)))t.node.anchor=t.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:r}}function Qn(e,t,n,r){if(r&&typeof r==`object`){if(Array.isArray(r))for(let t=0,n=r.length;t<n;++t){let n=r[t],i=Qn(e,r,String(t),n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}else if(r instanceof Map)for(let t of Array.from(r.keys())){let n=r.get(t),i=Qn(e,r,t,n);i===void 0?r.delete(t):i!==n&&r.set(t,i)}else if(r instanceof Set)for(let t of Array.from(r)){let n=Qn(e,r,t,t);n===void 0?r.delete(t):n!==t&&(r.delete(t),r.add(n))}else for(let[t,n]of Object.entries(r)){let i=Qn(e,r,t,n);i===void 0?delete r[t]:i!==n&&(r[t]=i)}}return e.call(t,n,r)}function G(e,t,n){if(Array.isArray(e))return e.map((e,t)=>G(e,String(t),n));if(e&&typeof e.toJSON==`function`){if(!n||!In(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e==`bigint`&&!n?.keep?Number(e):e}var $n=class{constructor(e){Object.defineProperty(this,I,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!Pn(e))throw TypeError(`A document argument is required`);let a={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n==`number`?n:100},o=G(this,``,a);if(typeof r==`function`)for(let{count:e,res:t}of a.anchors.values())r(t,e);return typeof i==`function`?Qn(i,{"":o},``,o):o}},er=class extends $n{constructor(e){super(An),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],Rn(e,{Node:(e,t)=>{(L(t)||In(t))&&n.push(t)}}),t&&(t.aliasResolveCache=n));let r;for(let e of n){if(e===this)break;e.anchor===this.source&&(r=e)}return r}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,a=this.resolve(r,t);if(!a){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let o=n.get(a);if(o||=(G(a,null,t),n.get(a)),o?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=tr(r,a,n)),o.count*o.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return o.res}toString(e,t,n){let r=`*${this.source}`;if(e){if(Jn(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${r} `}return r}};function tr(e,t,n){if(L(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}if(V(t)){let r=0;for(let i of t.items){let t=tr(e,i,n);t>r&&(r=t)}return r}if(z(t)){let r=tr(e,t.key,n),i=tr(e,t.value,n);return Math.max(r,i)}return 1}var nr=e=>!e||typeof e!=`function`&&typeof e!=`object`,K=class extends $n{constructor(e){super(F),this.value=e}toJSON(e,t){return t?.keep?this.value:G(this.value,e,t)}toString(){return String(this.value)}};K.BLOCK_FOLDED=`BLOCK_FOLDED`,K.BLOCK_LITERAL=`BLOCK_LITERAL`,K.PLAIN=`PLAIN`,K.QUOTE_DOUBLE=`QUOTE_DOUBLE`,K.QUOTE_SINGLE=`QUOTE_SINGLE`;var rr=`tag:yaml.org,2002:`;function ir(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function ar(e,t,n){if(Pn(e)&&(e=e.contents),H(e))return e;if(z(e)){let t=n.schema[P].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:s}=n,c;if(r&&e&&typeof e==`object`){if(c=s.get(e),c)return c.anchor??(c.anchor=i(e)),new er(c.anchor);c={anchor:null,node:null},s.set(e,c)}t?.startsWith(`!!`)&&(t=rr+t.slice(2));let l=ir(e,t,o.tags);if(!l){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new K(e);return c&&(c.node=t),t}l=e instanceof Map?o[P]:Symbol.iterator in Object(e)?o[Nn]:o[P]}a&&(a(l),delete n.onTagObj);let u=l?.createNode?l.createNode(n.schema,e,n):typeof l?.nodeClass?.from==`function`?l.nodeClass.from(n.schema,e,n):new K(e);return t?u.tag=t:l.default||(u.tag=l.tag),c&&(c.node=u),u}function or(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if(typeof n==`number`&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return ar(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}var sr=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done,cr=class extends $n{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>H(t)||z(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(sr(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(V(i))i.addIn(r,t);else if(i===void 0&&this.schema)this.set(n,or(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let r=this.get(t,!0);if(V(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return r.length===0?!t&&B(i)?i.value:i:V(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!z(t))return!1;let n=t.value;return n==null||e&&B(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let r=this.get(t,!0);return V(r)?r.hasIn(n):!1}setIn(e,t){let[n,...r]=e;if(r.length===0)this.set(n,t);else{let e=this.get(n,!0);if(V(e))e.setIn(r,t);else if(e===void 0&&this.schema)this.set(n,or(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}},lr=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function q(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}var ur=(e,t,n)=>e.endsWith(`
18
18
  `)?q(n,t):n.includes(`
19
19
  `)?`
@@ -74,7 +74,7 @@ ${t.comment}`:r.comment}r=e}e.items[n]=z(r)?r:new Y(r)}}else t(`Expected a seque
74
74
 
75
75
  ${o}
76
76
  ${s}
77
- `}};function Zi(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),!1),h&&=(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(` `)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:(!b||n!==`seq-item-ind`)&&(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],ee=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:ee,start:x??ee}}function Qi(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(`
77
+ `}};function Zi(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),!1),h&&=(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(` `)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:b&&n===`seq-item-ind`||(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],ee=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:ee,start:x??ee}}function Qi(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(`
78
78
  `))return!0;if(e.end){for(let t of e.end)if(t.type===`newline`)return!0}return!1;case`flow-collection`:for(let t of e.items){for(let e of t.start)if(e.type===`newline`)return!0;if(t.sep){for(let e of t.sep)if(e.type===`newline`)return!0}if(Qi(t.key)||Qi(t.value))return!0}return!1;default:return!0}}function $i(e,t,n){if(t?.type===`flow-collection`){let r=t.end[0];r.indent===e&&(r.source===`]`||r.source===`}`)&&Qi(t)&&n(r,`BAD_INDENT`,`Flow end indicator should be more indented than parent`,!0)}}function ea(e,t,n){let{uniqueKeys:r}=e.options;if(r===!1)return!1;let i=typeof r==`function`?r:(e,t)=>e===t||B(e)&&B(t)&&e.value===t.value;return t.some(e=>i(e.key,n))}var ta=`All mapping items must start at the same column`;function na({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??X)(n.schema);n.atRoot&&=!1;let s=r.offset,c=null;for(let a of r.items){let{start:l,key:u,sep:d,value:f}=a,p=Zi(l,{indicator:`explicit-key-ind`,next:u??d?.[0],offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0}),m=!p.found;if(m){if(u&&(u.type===`block-seq`?i(s,`BLOCK_AS_IMPLICIT_KEY`,`A block sequence may not be used as an implicit map key`):`indent`in u&&u.indent!==r.indent&&i(s,`BAD_INDENT`,ta)),!p.anchor&&!p.tag&&!d){c=p.end,p.comment&&(o.comment?o.comment+=`
79
79
  `+p.comment:o.comment=p.comment);continue}(p.newlineAfterProp||Qi(u))&&i(u??l[l.length-1],`MULTILINE_IMPLICIT_KEY`,`Implicit keys need to be on a single line`)}else p.found?.indent!==r.indent&&i(s,`BAD_INDENT`,ta);n.atKey=!0;let h=p.end,g=u?e(n,u,p,i):t(n,h,l,null,p,i);n.schema.compat&&$i(r.indent,u,i),n.atKey=!1,ea(n,o.items,g)&&i(h,`DUPLICATE_KEY`,`Map keys must be unique`);let _=Zi(d??[],{indicator:`map-value-ind`,next:f,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!u||u.type===`block-scalar`});if(s=_.end,_.found){m&&(f?.type===`block-map`&&!_.hasNewline&&i(s,`BLOCK_AS_IMPLICIT_KEY`,`Nested mappings are not allowed in compact mappings`),n.options.strict&&p.start<_.found.offset-1024&&i(g.range,`KEY_OVER_1024_CHARS`,`The : indicator must be at most 1024 chars after the start of an implicit block mapping key`));let c=f?e(n,f,_,i):t(n,s,d,null,_,i);n.schema.compat&&$i(r.indent,f,i),s=c.range[2];let l=new Y(g,c);n.options.keepSourceTokens&&(l.srcToken=a),o.items.push(l)}else{m&&i(g.range,`MISSING_CHAR`,`Implicit map keys need to be followed by map values`),_.comment&&(g.comment?g.comment+=`
80
80
  `+_.comment:g.comment=_.comment);let e=new Y(g);n.options.keepSourceTokens&&(e.srcToken=a),o.items.push(e)}}return c&&c<s&&i(c,`IMPOSSIBLE`,`Map comment with trailing content`),o.range=[r.offset,s,c??s],o}function ra({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=new((a?.nodeClass)??Z)(n.schema);n.atRoot&&=!1,n.atKey&&=!1;let s=r.offset,c=null;for(let{start:a,value:l}of r.items){let u=Zi(a,{indicator:`seq-item-ind`,next:l,offset:s,onError:i,parentIndent:r.indent,startOnNewline:!0});if(!u.found){if(u.anchor||u.tag||l)l?.type===`block-seq`?i(u.end,`BAD_INDENT`,`All sequence items must start at the same column`):i(s,`MISSING_CHAR`,`Sequence item without - indicator`);else{c=u.end,u.comment&&(o.comment=u.comment);continue}}let d=l?e(n,l,u,i):t(n,u.end,a,null,u,i);n.schema.compat&&$i(r.indent,l,i),s=d.range[2],o.items.push(d)}return o.range=[r.offset,s,c??s],o}function ia(e,t,n,r){let i=``;if(e){let a=!1,o=``;for(let s of e){let{source:e,type:c}=s;switch(c){case`space`:a=!0;break;case`comment`:{n&&!a&&r(s,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let t=e.substring(1)||` `;i?i+=o+t:i=t,o=``;break}case`newline`:i&&(o+=e),a=!0;break;default:r(s,`UNEXPECTED_TOKEN`,`Unexpected ${c} at node end`)}t+=e.length}}return{comment:i,offset:t}}var aa=`Block collections are not allowed within flow collections`,oa=e=>e&&(e.type===`block-map`||e.type===`block-seq`);function sa({composeNode:e,composeEmptyNode:t},n,r,i,a){let o=r.start.source===`{`,s=o?`flow map`:`flow sequence`,c=new((a?.nodeClass)??(o?X:Z))(n.schema);c.flow=!0;let l=n.atRoot;l&&(n.atRoot=!1),n.atKey&&=!1;let u=r.offset+r.start.source.length;for(let a=0;a<r.items.length;++a){let l=r.items[a],{start:d,key:f,sep:p,value:m}=l,h=Zi(d,{flow:s,indicator:`explicit-key-ind`,next:f??p?.[0],offset:u,onError:i,parentIndent:r.indent,startOnNewline:!1});if(!h.found){if(!h.anchor&&!h.tag&&!p&&!m){a===0&&h.comma?i(h.comma,`UNEXPECTED_TOKEN`,`Unexpected , in ${s}`):a<r.items.length-1&&i(h.start,`UNEXPECTED_TOKEN`,`Unexpected empty item in ${s}`),h.comment&&(c.comment?c.comment+=`
@@ -147,8 +147,8 @@ ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.pus
147
147
  `,i=this.buffer[n+1]):t=n),i===`#`||e&&io.has(i))break;if(r===`
148
148
  `){let e=this.continueScalar(n+1);if(e===-1)break;n=Math.max(n,e-2)}}else{if(e&&io.has(r))break;t=n}return!r&&!this.atEnd?this.setNext(`plain-scalar`):(yield Za,yield*this.pushToIndex(t+1,!0),e?`flow`:`doc`)}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield``),0)}*pushIndicators(){let e=0;e:for(;;){switch(this.charAt(0)){case`!`:e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue e;case`&`:e+=yield*this.pushUntil(oo),e+=yield*this.pushSpaces(!0);continue e;case`-`:case`?`:case`:`:{let t=this.flowLevel>0,n=this.charAt(1);if($(n)||t&&io.has(n)){t?this.flowKey&&=!1:this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue e}}}break e}return e}*pushTag(){if(this.charAt(1)===`<`){let e=this.pos+2,t=this.buffer[e];for(;!$(t)&&t!==`>`;)t=this.buffer[++e];return yield*this.pushToIndex(t===`>`?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(ro.has(t))t=this.buffer[++e];else if(t===`%`&&no.has(this.buffer[e+1])&&no.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===`
149
149
  `?yield*this.pushCount(1):e===`\r`&&this.charAt(1)===`
150
- `?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===` `||e&&n===` `);let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}},co=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}};function lo(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function uo(e){for(let t=0;t<e.length;++t)switch(e[t].type){case`space`:case`comment`:case`newline`:break;default:return t}return-1}function fo(e){switch(e?.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`flow-collection`:return!0;default:return!1}}function po(e){switch(e.type){case`document`:return e.start;case`block-map`:{let t=e.items[e.items.length-1];return t.sep??t.start}case`block-seq`:return e.items[e.items.length-1].start;default:return[]}}function mo(e){if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break e}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}function ho(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n<t.length;++n)e.push(t[n])}function go(e){if(e.start.type===`flow-seq-start`)for(let t of e.items)t.sep&&!t.value&&!lo(t.start,`explicit-key-ind`)&&!lo(t.sep,`map-value-ind`)&&(t.key&&(t.value=t.key),delete t.key,fo(t.value)?t.value.end?ho(t.value.end,t.sep):t.value.end=t.sep:ho(t.start,t.sep),delete t.sep)}var _o=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source=``,this.type=``,this.lexer=new so,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=to(e);if(t){if(t===`scalar`)this.atNewLine=!1,this.atScalar=!0,this.type=`scalar`;else{switch(this.type=t,yield*this.step(),t){case`newline`:this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case`space`:this.atNewLine&&e[0]===` `&&(this.indent+=e.length);break;case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:this.atNewLine&&(this.indent+=e.length);break;case`doc-mode`:case`flow-error-end`:return;default:this.atNewLine=!1}this.offset+=e.length}}else{let t=`Not a YAML token: ${e}`;yield*this.pop({type:`error`,offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type===`doc-end`&&e?.type!==`doc-end`){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:`doc-end`,offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:`error`,offset:this.offset,source:``,message:`Tried to pop an empty stack`};else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&go(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&uo(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!==`comment`||e.indent<t.indent))&&(e.type===`document`?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}}*stream(){switch(this.type){case`directive-line`:yield{type:`directive`,offset:this.offset,source:this.source};return;case`byte-order-mark`:case`space`:case`comment`:case`newline`:yield this.sourceToken;return;case`doc-mode`:case`doc-start`:{let e={type:`document`,offset:this.offset,start:[]};this.type===`doc-start`&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case`doc-start`:uo(e.start)===-1?e.start.push(this.sourceToken):(yield*this.pop(),yield*this.step());return;case`anchor`:case`tag`:case`space`:case`comment`:case`newline`:e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type===`map-value-ind`){let t=mo(po(this.peek(2))),n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];let r={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case`space`:case`comment`:case`newline`:e.props.push(this.sourceToken);return;case`scalar`:if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf(`
150
+ `?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===` `||e&&n===` `);let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}},co=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let r=this.lineStarts[t-1];return{line:t,col:e-r+1}}}};function lo(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function uo(e){for(let t=0;t<e.length;++t)switch(e[t].type){case`space`:case`comment`:case`newline`:break;default:return t}return-1}function fo(e){switch(e?.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`flow-collection`:return!0;default:return!1}}function po(e){switch(e.type){case`document`:return e.start;case`block-map`:{let t=e.items[e.items.length-1];return t.sep??t.start}case`block-seq`:return e.items[e.items.length-1].start;default:return[]}}function mo(e){if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break e}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}function ho(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n<t.length;++n)e.push(t[n])}function go(e){if(e.start.type===`flow-seq-start`)for(let t of e.items)t.sep&&!t.value&&!lo(t.start,`explicit-key-ind`)&&!lo(t.sep,`map-value-ind`)&&(t.key&&(t.value=t.key),delete t.key,fo(t.value)?t.value.end?ho(t.value.end,t.sep):t.value.end=t.sep:ho(t.start,t.sep),delete t.sep)}var _o=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source=``,this.type=``,this.lexer=new so,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=to(e);if(t){if(t===`scalar`)this.atNewLine=!1,this.atScalar=!0,this.type=`scalar`;else{switch(this.type=t,yield*this.step(),t){case`newline`:this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case`space`:this.atNewLine&&e[0]===` `&&(this.indent+=e.length);break;case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:this.atNewLine&&(this.indent+=e.length);break;case`doc-mode`:case`flow-error-end`:return;default:this.atNewLine=!1}this.offset+=e.length}}else{let t=`Not a YAML token: ${e}`;yield*this.pop({type:`error`,offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type===`doc-end`&&e?.type!==`doc-end`){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:`doc-end`,offset:this.offset,source:this.source})}else{if(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:`error`,offset:this.offset,source:``,message:`Tried to pop an empty stack`};else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&go(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&uo(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!==`comment`||e.indent<t.indent))&&(e.type===`document`?e.end=n.start:e.items.push({start:n.start}),t.items.splice(-1,1))}}}*stream(){switch(this.type){case`directive-line`:yield{type:`directive`,offset:this.offset,source:this.source};return;case`byte-order-mark`:case`space`:case`comment`:case`newline`:yield this.sourceToken;return;case`doc-mode`:case`doc-start`:{let e={type:`document`,offset:this.offset,start:[]};this.type===`doc-start`&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case`doc-start`:uo(e.start)===-1?e.start.push(this.sourceToken):(yield*this.pop(),yield*this.step());return;case`anchor`:case`tag`:case`space`:case`comment`:case`newline`:e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:`error`,offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type===`map-value-ind`){let t=mo(po(this.peek(2))),n;e.end?(n=e.end,n.push(this.sourceToken),delete e.end):n=[this.sourceToken];let r={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:t,key:e,sep:n}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case`space`:case`comment`:case`newline`:e.props.push(this.sourceToken);return;case`scalar`:if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let e=this.source.indexOf(`
151
151
  `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
152
152
  `,e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(this.onKeyLine=!1,t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){ho(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,i=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;r<t.sep.length;++r){let i=t.sep[r];switch(i.type){case`newline`:n.push(r);break;case`space`:break;case`comment`:i.indent>e.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case`map-value-ind`:if(t.explicitKey){if(t.sep){if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(lo(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(fo(t.key)&&!lo(t.sep,`newline`)){let e=mo(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken)}else if(lo(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=mo(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):lo(t.sep,`map-value-ind`)?this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!lo(t.sep,`newline`)){yield*this.pop({type:`error`,offset:this.offset,message:`Unexpected block-seq-ind on same line with key`,source:this.source});return}}else n&&e.items.push({start:i});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){ho(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case`anchor`:case`tag`:if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case`seq-item-ind`:if(this.indent!==e.indent)break;t.value||lo(t.start,`seq-item-ind`)?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type===`flow-error-end`){let e;do yield*this.pop(),e=this.peek(1);while(e?.type===`flow-collection`)}else if(e.end.length===0){switch(this.type){case`comma`:case`explicit-key-ind`:!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case`map-value-ind`:!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case`space`:case`comment`:case`newline`:case`anchor`:case`tag`:!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case`flow-map-end`:case`flow-seq-end`:e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if(t.type===`block-map`&&(this.type===`map-value-ind`&&t.indent===e.indent||this.type===`newline`&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type===`map-value-ind`&&t.type!==`flow-collection`){let n=mo(po(t));go(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf(`
153
153
  `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(`
154
- `,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=mo(po(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=mo(po(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}};function vo(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new co||null,prettyErrors:t}}function yo(e,t={}){let{lineCounter:n,prettyErrors:r}=vo(t),i=new _o(n?.addNewLine),a=new Ma(t),o=Array.from(a.compose(i.parse(e)));if(r&&n)for(let t of o)t.errors.forEach(Xi(e,n)),t.warnings.forEach(Xi(e,n));return o.length>0?o:Object.assign([],{empty:!0},a.streamInfo())}function bo(e,t={}){let{lineCounter:n,prettyErrors:r}=vo(t),i=new _o(n?.addNewLine),a=new Ma(t),o=null;for(let t of a.compose(i.parse(e),!0,e.length))if(!o)o=t;else if(o.options.logLevel!==`silent`){o.errors.push(new Ji(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(Xi(e,n)),o.warnings.forEach(Xi(e,n))),o}function xo(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=bo(e,n);if(!i)return null;if(i.warnings.forEach(e=>jr(i.options.logLevel,e)),i.errors.length>0){if(i.options.logLevel!==`silent`)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function So(e,t,n){let r=null;if(typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n==`string`&&(n=n.length),typeof n==`number`){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=n??t??{};if(!e)return}return Pn(e)&&!r?e.toString(n):new Gi(e,r,n).toString(n)}var Co=kn;function wo(e,t,n){let r=e.srcToken;if(!r||r.type!==`flow-collection`)throw Error(`Expected flow-collection CST node for flow sequence`);let i=e.items.map((e,n)=>{let i=r.items[n];if(To(e,i))return Cn(On(e.items),i,t,bn);if(z(e))return Cn(e,i,t,bn);{let n=[];for(let e of M(i.start)){if(ln(e)){n.push(e);continue}if(e.type!==`comma`)throw Error(`Unexpected token type in sequence item start: ${e.type}`)}let r=t.transformNode(e,{tokens:n});return Dn($t(r.position.start,r.position.end),r)}});if(e.items.length<r.items.length)for(let n=e.items.length;n<r.items.length;n++){let e=r.items[n];for(let n of N(e.start,t))if(n.type!==`comma`)throw Error(`Unexpected token type in collection item start: ${n.type}`)}let a=null;for(let e of M(r.end)){if(e.type===`comment`){t.transformComment(e);continue}if(e.type===`flow-seq-end`){a=e;continue}throw Error(`Unexpected token type in flow seq end: ${e.type}`)}if(!a)throw Error(`Expected flow-seq-end token`);return En(t.transformRange([r.start.offset,a.offset+a.source.length]),t.transformContentProperties(e,n.tokens),i)}function To(e,t){return e.srcToken||!R(e)?!1:e.items.length===1&&e.items[0].srcToken===t}function Eo(e,t,n){return{type:`mapping`,position:e,leadingComments:[],...t,children:n}}function Do(e,t,n){return{type:`mappingItem`,position:e,leadingComments:[],children:[t,n]}}function Oo(e,t,n){let r=e.srcToken;if(!r||r.type!==`block-map`)throw Error(`Expected block mapping srcToken`);let i=e.items.map((e,n)=>{let i=r.items[n];return Cn(e,i,t,Do)});if(e.items.length<r.items.length)for(let n=e.items.length;n<r.items.length;n++){let e=r.items[n];for(let n of N(e.start,t))throw Error(`Unexpected token type in collection item start: ${n.type}`)}return Eo($t(i[0].position.start,On(i).position.end),t.transformContentProperties(e,n.tokens),i)}function ko(e,t,n){return{type:`plain`,position:e,leadingComments:[],trailingComment:null,...t,value:n}}function Ao(e,t,n){for(let r=t;r>=0;r--)if(n.test(e[r]))return r;return-1}function jo(e,t,n){if(e.range[0]===e.range[1]){let r=Ao(t.text,e.range[0]-1,/\S/u)+1;return ko(t.transformRange([r,r]),t.transformContentProperties(e,n.tokens),``)}let r=e.srcToken;if(!r||r.type!==`scalar`)throw Error(`Expected plain scalar srcToken`);for(let e of N(r.end,t))throw Error(`Unexpected token type in plain scalar end: ${e.type}`);return ko(t.transformRange(e.range),t.transformContentProperties(e,n.tokens),e.source)}function Mo(e){return{...e,type:`quoteDouble`}}function No(e,t,n){return{type:`quoteValue`,position:e,...t,leadingComments:[],trailingComment:null,value:n}}function Po(e,t,n,r){for(let e of N(t.end,n))throw Error(`Unexpected token type in quote value end: ${e.type}`);return No(n.transformRange(e.range),n.transformContentProperties(e,r.tokens),e.source)}function Fo(e,t,n){let r=e.srcToken;if(!r||r.type!==`double-quoted-scalar`)throw Error(`Expected double-quoted scalar srcToken`);return Mo(Po(e,r,t,n))}function Io(e){return{...e,type:`quoteSingle`}}function Lo(e,t,n){let r=e.srcToken;if(!r||r.type!==`single-quoted-scalar`)throw Error(`Expected single-quoted scalar srcToken`);return Io(Po(e,r,t,n))}function Ro(e,t,n){return{type:`sequence`,position:e,leadingComments:[],endComments:[],...t,children:n}}function zo(e,t){return{type:`sequenceItem`,position:e,leadingComments:[],trailingComment:null,endComments:[],children:t?[t]:[]}}function Bo(e,t,n){let r=e.srcToken;if(!r||r.type!==`block-seq`)throw Error(`Expected block sequence srcToken`);let i=e.items.map((e,n)=>{let i=r.items[n],a=[],o=null;for(let e of M(i.start)){if(ln(e)){a.push(e);continue}if(e.type===`seq-item-ind`){o=e;continue}throw Error(`Unexpected token type in sequence item start: ${e.type}`)}let s=Vo(e,t,{tokens:a});return zo($t(o?t.transformOffset(o.offset):s.position.start,s?.position.end??t.transformOffset(o.offset+o.source.length)),s)});if(e.items.length<r.items.length)for(let n=e.items.length;n<r.items.length;n++){let e=r.items[n];for(let n of N(e.start,t))throw Error(`Unexpected token type in collection item start: ${n.type}`)}return Ro($t(i[0].position.start,On(i).position.end),t.transformContentProperties(e,n.tokens),i)}function Vo(e,t,n){if(!z(e))return Uo(e,n)?(N(n.tokens,t),null):t.transformNode(e,n);let r=e.srcToken,i=Cn(e,r,t,Do);return Eo(i.position,t.transformContentProperties(e.key,n.tokens),[i])}function Ho(e,t,n){if(e==null)return null;if(L(e))return un(e,t,n);if(R(e))return e.flow?Tn(e,t,n):Oo(e,t,n);if(Fn(e))return e.flow?wo(e,t,n):Bo(e,t,n);if(B(e)){switch(e.type){case`BLOCK_FOLDED`:return hn(e,t,n);case`BLOCK_LITERAL`:return _n(e,t,n);case`PLAIN`:return jo(e,t,n);case`QUOTE_DOUBLE`:return Fo(e,t,n);case`QUOTE_SINGLE`:return Lo(e,t,n)}throw Error(`Unexpected scalar type: ${e.type}`)}throw Error(`Unexpected unknown node type`)}function Uo(e,t){return!e||e.range[0]===e.range[1]&&t.tokens.every(e=>e.type===`comment`)}var Wo=class{text;comments=[];#e;constructor(e,t){this.text=e,this.#e=t}transformOffset(e){let{line:t,col:n}=this.#e.linePos(e);return{line:t,column:n,offset:e}}transformRange(e){let[t,n]=e.map(e=>this.transformOffset(e));return $t(t,n)}transformNode(e,t){return Ho(e,this,t)}transformComment(e){let t=tn(e,this);return this.comments.push(t),t}transformContentProperties(e,t){return on(e,t,this)}};function Go(e,t,n,r,i,a){return{type:`document`,position:e,trailingComment:a,directivesEndMarker:t,documentEndMarker:n,children:[r,i]}}function Ko(e,t,n){return{type:`documentBody`,position:e,endComments:n,children:t?[t]:[]}}function qo(e,t,n){for(let r=t;r<e.length;r++)if(n.test(e[r]))return r;return null}function Jo(e,t,n,r,i,a,o){let{documentTrailingComment:s,endComments:c,propTokens:l}=Yo(t,n,i,a,o),u=r.contents&&(r.contents.range[0]<r.contents.range[1]||l.some(e=>e.type===`tag`||e.type===`anchor`)),d=u?o.transformNode(r.contents,{tokens:l}):null;if(!u)for(let e of N(l,o))throw Error(`Unexpected token type in empty document body: ${e.type}`);let{position:f,documentEndPoint:p}=Xo(e,r,d,a,o);return{documentBody:Ko(f,d,c),documentEndPoint:p,documentTrailingComment:s}}function Yo(e,t,n,r,i){let a=[],o=[],s=[];for(let t of e){if(ln(t)){s.push(t);continue}throw Error(`Unexpected token type: ${t.type}`)}for(let e of N(n,i))throw Error(`Unexpected token type: ${e.type}`);let c=r?i.transformOffset(r.offset):null;if(t)for(let e of M(t.end,r?.end)){if(e.type===`comment`){let t=i.transformComment(e);c?c.line===t.position.start.line?o.push(t):t.position.start.line<c.line&&a.push(t):a.push(t);continue}throw Error(`Unexpected token type: ${e.type}`)}if(o.length>1)throw Error(`Unexpected multiple document trailing comments at ${Gt(o[1].position.start)}`);return{propTokens:s,endComments:a,documentTrailingComment:On(o)||null}}function Xo(e,t,n,r,i){let a=r?Math.max(0,r.offset-1):qo(i.text,t.range[2],/\S/u)??i.text.length;i.text[a-1]===`\r`&&a--;let o=n===null?a:n.position.start.offset;if(e){let t=e.offset+e.source.length+1;o<t&&t<=a&&(o=t)}let s=i.transformRange([o,a]);return{position:s,documentEndPoint:r?i.transformOffset(r.offset+r.source.length):s.end}}function Zo(e,t,n,r){return{type:`documentHead`,position:e,endComments:n,trailingComment:r,children:t}}function Qo(e,t,n){return{type:`directive`,position:e,leadingComments:[],trailingComment:null,name:t,parameters:n}}function $o(e,t){let n=e.source.trim().split(/[\t ]+/),r=n.shift().replace(/^%/,``);return Qo(t.transformRange([e.offset,e.offset+e.source.length]),r,n)}function es(e,t,n,r){let{directives:i,endCommentCandidates:a}=ts(e,r),o=[],s=null;if(t){for(let e of M(t.start))if(o.push(e),!s&&e.type===`doc-start`){for(let e of o)if(e.type===`comment`){let t=r.transformComment(e);a.push(t)}o=[],s=e}}let c=ns(i,n,s,r),l=null;if(s&&o.length>0){let e=o[0];e.type===`comment`&&r.transformOffset(e.offset).line===c.end.line&&(l=r.transformComment(e),o.shift())}return{documentHead:Zo(c,i,s?a:[],l),docStart:s,tokensBeforeBody:o}}function ts(e,t){let n=[],r=[],i=null;for(let a of e)if(a.type===`comment`){let e=t.transformComment(a);i&&i.position.end.line===e.position.start.line&&!i.trailingComment?(i.trailingComment=e,i.position.end=e.position.end):r.push(e)}else{let e=$o(a,t);n.push(e),i=e,r=[]}return{directives:n,endCommentCandidates:r}}function ns(e,t,n,r){let i=n?[n.offset,n.offset+n.source.length]:t.contents?[t.contents.range[0],t.contents.range[0]]:[t.range[0],t.range[0]];return e.length!==0&&(i[0]=e[0].position.start.offset),r.transformRange(i)}function rs(e,t){let{documentHead:n,tokensBeforeBody:r,docStart:i}=es(e.tokensBeforeBody,e.cstNode,e.node,t),{documentBody:a,documentEndPoint:o,documentTrailingComment:s}=Jo(i,r,e.cstNode,e.node,e.tokensAfterBody,e.documentEnd,t);return Go($t(n.position.start,o),!!i,!!e.documentEnd,n,a,s)}function is(e,t,n){if(e.length===0)return[];let r=[],i=[],a=[],o=null,s=t=>{let n={tokensBeforeBody:[...a,...i],cstNode:t,node:e[r.length],tokensAfterBody:[],documentEnd:null};return r.push(n),a.length=0,i.length=0,n};for(let c of M(t)){if(c.type===`document`){if(r.length>=e.length)throw Error(`Unexpected 'document' token at ${Gt(n.transformOffset(c.offset))}`);o=s(c);continue}if(c.type===`comment`){i.push(c);continue}if(c.type===`directive`){a.push(...i,c),i.length=0;continue}if(c.type===`doc-end`){if(!o||o.documentEnd)throw Error(`Unexpected 'doc-end' token at ${Gt(n.transformOffset(c.offset))}`);o.tokensAfterBody=[...i],i.length=0,o.documentEnd=c;continue}}if(a.length>0){let[e]=a;throw Error(`Unexpected '${e.type}' token at ${Gt(n.transformOffset(e.offset))}`)}return i.length>0&&(o||=s(null),i.length>0&&(o.tokensAfterBody.push(...i),i.length=0)),r.map(e=>rs(e,n))}function as(e,t,n,r){let i=t(e);return t=>{r(i,t)&&n(e,i=t)}}function os(e){if(e===null||!(`children`in e))return;let t=e.children;if(t.forEach(os),e.type===`document`){let[t,n]=e.children;t.position.start.offset===t.position.end.offset?t.position.start=t.position.end=n.position.start:n.position.start.offset===n.position.end.offset&&(n.position.start=n.position.end=t.position.end)}let n=as(e.position,ss,cs,ds),r=as(e.position,ls,us,fs);`endComments`in e&&e.endComments.length!==0&&(n(e.endComments[0].position.start),r(On(e.endComments).position.end));let i=t.filter(e=>e!==null);if(i.length!==0){let e=i[0],t=On(i);n(e.position.start),r(t.position.end),`leadingComments`in e&&e.leadingComments.length!==0&&n(e.leadingComments[0].position.start),`tag`in e&&e.tag&&n(e.tag.position.start),`anchor`in e&&e.anchor&&n(e.anchor.position.start),`trailingComment`in t&&t.trailingComment&&r(t.trailingComment.position.end)}}function ss(e){return e.start}function cs(e,t){e.start=t}function ls(e){return e.end}function us(e,t){e.end=t}function ds(e,t){return t.offset<e.offset}function fs(e,t){return t.offset>e.offset}function ps(e,t){let n=new co,r=new Wo(e,n),i=new _o(n.addNewLine),a=new Ma({keepSourceTokens:!0,uniqueKeys:t?.uniqueKeys,lineCounter:n,merge:!0}),o=[],s=[...i.parse(e)];for(let t of a.compose(s,!0,e.length)){let{errors:e}=t;if(e.length>0)throw new Wt(r,e[0]);o.push(t)}let c=is(o,s,r),l=r.comments.sort((e,t)=>e.position.start.offset-t.position.end.offset),u=Qt(r.transformRange([0,e.length]),c,l);return Kt(u),os(u),u}function ms(e,t){let n=SyntaxError(e+` (`+t.loc.start.line+`:`+t.loc.start.column+`)`);return Object.assign(n,t)}var hs=ms,gs={uniqueKeys:!1};function _s(e){let t;try{t=ps(e,gs)}catch(e){throw e instanceof Wt?hs(e.message,{loc:e.position,cause:e}):e}return delete t.comments,t}var vs={astFormat:`yaml`,parse:_s,hasPragma:Ze,hasIgnorePragma:Qe,locStart:We,locEnd:Ge},ys={yaml:zt},bs=Co.parse;export{bs as __parsePrettierYamlConfig,n as default,Bt as languages,Ht as options,Ut as parsers,ys as printers};
154
+ `,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=mo(po(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=mo(po(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}};function vo(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new co||null,prettyErrors:t}}function yo(e,t={}){let{lineCounter:n,prettyErrors:r}=vo(t),i=new _o(n?.addNewLine),a=new Ma(t),o=Array.from(a.compose(i.parse(e)));if(r&&n)for(let t of o)t.errors.forEach(Xi(e,n)),t.warnings.forEach(Xi(e,n));return o.length>0?o:Object.assign([],{empty:!0},a.streamInfo())}function bo(e,t={}){let{lineCounter:n,prettyErrors:r}=vo(t),i=new _o(n?.addNewLine),a=new Ma(t),o=null;for(let t of a.compose(i.parse(e),!0,e.length))if(!o)o=t;else if(o.options.logLevel!==`silent`){o.errors.push(new Ji(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return r&&n&&(o.errors.forEach(Xi(e,n)),o.warnings.forEach(Xi(e,n))),o}function xo(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let i=bo(e,n);if(!i)return null;if(i.warnings.forEach(e=>jr(i.options.logLevel,e)),i.errors.length>0){if(i.options.logLevel!==`silent`)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function So(e,t,n){let r=null;if(typeof t==`function`||Array.isArray(t)?r=t:n===void 0&&t&&(n=t),typeof n==`string`&&(n=n.length),typeof n==`number`){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=n??t??{};if(!e)return}return Pn(e)&&!r?e.toString(n):new Gi(e,r,n).toString(n)}var Co=kn;function wo(e,t,n){let r=e.srcToken;if(!r||r.type!==`flow-collection`)throw Error(`Expected flow-collection CST node for flow sequence`);let i=e.items.map((e,n)=>{let i=r.items[n];if(To(e,i))return Cn(On(e.items),i,t,bn);if(z(e))return Cn(e,i,t,bn);{let n=[];for(let e of M(i.start))if(ln(e))n.push(e);else if(e.type!==`comma`)throw Error(`Unexpected token type in sequence item start: ${e.type}`);let r=t.transformNode(e,{tokens:n});return Dn($t(r.position.start,r.position.end),r)}});if(e.items.length<r.items.length)for(let n=e.items.length;n<r.items.length;n++){let e=r.items[n];for(let n of N(e.start,t))if(n.type!==`comma`)throw Error(`Unexpected token type in collection item start: ${n.type}`)}let a=null;for(let e of M(r.end))if(e.type===`comment`)t.transformComment(e);else if(e.type===`flow-seq-end`)a=e;else throw Error(`Unexpected token type in flow seq end: ${e.type}`);if(!a)throw Error(`Expected flow-seq-end token`);return En(t.transformRange([r.start.offset,a.offset+a.source.length]),t.transformContentProperties(e,n.tokens),i)}function To(e,t){return e.srcToken||!R(e)?!1:e.items.length===1&&e.items[0].srcToken===t}function Eo(e,t,n){return{type:`mapping`,position:e,leadingComments:[],...t,children:n}}function Do(e,t,n){return{type:`mappingItem`,position:e,leadingComments:[],children:[t,n]}}function Oo(e,t,n){let r=e.srcToken;if(!r||r.type!==`block-map`)throw Error(`Expected block mapping srcToken`);let i=e.items.map((e,n)=>{let i=r.items[n];return Cn(e,i,t,Do)});if(e.items.length<r.items.length)for(let n=e.items.length;n<r.items.length;n++){let e=r.items[n];for(let n of N(e.start,t))throw Error(`Unexpected token type in collection item start: ${n.type}`)}return Eo($t(i[0].position.start,On(i).position.end),t.transformContentProperties(e,n.tokens),i)}function ko(e,t,n){return{type:`plain`,position:e,leadingComments:[],trailingComment:null,...t,value:n}}function Ao(e,t,n){for(let r=t;r>=0;r--)if(n.test(e[r]))return r;return-1}function jo(e,t,n){if(e.range[0]===e.range[1]){let r=Ao(t.text,e.range[0]-1,/\S/u)+1;return ko(t.transformRange([r,r]),t.transformContentProperties(e,n.tokens),``)}let r=e.srcToken;if(!r||r.type!==`scalar`)throw Error(`Expected plain scalar srcToken`);for(let e of N(r.end,t))throw Error(`Unexpected token type in plain scalar end: ${e.type}`);return ko(t.transformRange(e.range),t.transformContentProperties(e,n.tokens),e.source)}function Mo(e){return{...e,type:`quoteDouble`}}function No(e,t,n){return{type:`quoteValue`,position:e,...t,leadingComments:[],trailingComment:null,value:n}}function Po(e,t,n,r){for(let e of N(t.end,n))throw Error(`Unexpected token type in quote value end: ${e.type}`);return No(n.transformRange(e.range),n.transformContentProperties(e,r.tokens),e.source)}function Fo(e,t,n){let r=e.srcToken;if(!r||r.type!==`double-quoted-scalar`)throw Error(`Expected double-quoted scalar srcToken`);return Mo(Po(e,r,t,n))}function Io(e){return{...e,type:`quoteSingle`}}function Lo(e,t,n){let r=e.srcToken;if(!r||r.type!==`single-quoted-scalar`)throw Error(`Expected single-quoted scalar srcToken`);return Io(Po(e,r,t,n))}function Ro(e,t,n){return{type:`sequence`,position:e,leadingComments:[],endComments:[],...t,children:n}}function zo(e,t){return{type:`sequenceItem`,position:e,leadingComments:[],trailingComment:null,endComments:[],children:t?[t]:[]}}function Bo(e,t,n){let r=e.srcToken;if(!r||r.type!==`block-seq`)throw Error(`Expected block sequence srcToken`);let i=e.items.map((e,n)=>{let i=r.items[n],a=[],o=null;for(let e of M(i.start))if(ln(e))a.push(e);else if(e.type===`seq-item-ind`)o=e;else throw Error(`Unexpected token type in sequence item start: ${e.type}`);let s=Vo(e,t,{tokens:a});return zo($t(o?t.transformOffset(o.offset):s.position.start,s?.position.end??t.transformOffset(o.offset+o.source.length)),s)});if(e.items.length<r.items.length)for(let n=e.items.length;n<r.items.length;n++){let e=r.items[n];for(let n of N(e.start,t))throw Error(`Unexpected token type in collection item start: ${n.type}`)}return Ro($t(i[0].position.start,On(i).position.end),t.transformContentProperties(e,n.tokens),i)}function Vo(e,t,n){if(!z(e))return Uo(e,n)?(N(n.tokens,t),null):t.transformNode(e,n);let r=e.srcToken,i=Cn(e,r,t,Do);return Eo(i.position,t.transformContentProperties(e.key,n.tokens),[i])}function Ho(e,t,n){if(e==null)return null;if(L(e))return un(e,t,n);if(R(e))return e.flow?Tn(e,t,n):Oo(e,t,n);if(Fn(e))return e.flow?wo(e,t,n):Bo(e,t,n);if(B(e)){switch(e.type){case`BLOCK_FOLDED`:return hn(e,t,n);case`BLOCK_LITERAL`:return _n(e,t,n);case`PLAIN`:return jo(e,t,n);case`QUOTE_DOUBLE`:return Fo(e,t,n);case`QUOTE_SINGLE`:return Lo(e,t,n)}throw Error(`Unexpected scalar type: ${e.type}`)}throw Error(`Unexpected unknown node type`)}function Uo(e,t){return!e||e.range[0]===e.range[1]&&t.tokens.every(e=>e.type===`comment`)}var Wo=class{text;comments=[];#e;constructor(e,t){this.text=e,this.#e=t}transformOffset(e){let{line:t,col:n}=this.#e.linePos(e);return{line:t,column:n,offset:e}}transformRange(e){let[t,n]=e.map(e=>this.transformOffset(e));return $t(t,n)}transformNode(e,t){return Ho(e,this,t)}transformComment(e){let t=tn(e,this);return this.comments.push(t),t}transformContentProperties(e,t){return on(e,t,this)}};function Go(e,t,n,r,i,a){return{type:`document`,position:e,trailingComment:a,directivesEndMarker:t,documentEndMarker:n,children:[r,i]}}function Ko(e,t,n){return{type:`documentBody`,position:e,endComments:n,children:t?[t]:[]}}function qo(e,t,n){for(let r=t;r<e.length;r++)if(n.test(e[r]))return r;return null}function Jo(e,t,n,r,i,a,o){let{documentTrailingComment:s,endComments:c,propTokens:l}=Yo(t,n,i,a,o),u=r.contents&&(r.contents.range[0]<r.contents.range[1]||l.some(e=>e.type===`tag`||e.type===`anchor`)),d=u?o.transformNode(r.contents,{tokens:l}):null;if(!u)for(let e of N(l,o))throw Error(`Unexpected token type in empty document body: ${e.type}`);let{position:f,documentEndPoint:p}=Xo(e,r,d,a,o);return{documentBody:Ko(f,d,c),documentEndPoint:p,documentTrailingComment:s}}function Yo(e,t,n,r,i){let a=[],o=[],s=[];for(let t of e)if(ln(t))s.push(t);else throw Error(`Unexpected token type: ${t.type}`);for(let e of N(n,i))throw Error(`Unexpected token type: ${e.type}`);let c=r?i.transformOffset(r.offset):null;if(t)for(let e of M(t.end,r?.end))if(e.type===`comment`){let t=i.transformComment(e);c?c.line===t.position.start.line?o.push(t):t.position.start.line<c.line&&a.push(t):a.push(t)}else throw Error(`Unexpected token type: ${e.type}`);if(o.length>1)throw Error(`Unexpected multiple document trailing comments at ${Gt(o[1].position.start)}`);return{propTokens:s,endComments:a,documentTrailingComment:On(o)||null}}function Xo(e,t,n,r,i){let a=r?Math.max(0,r.offset-1):qo(i.text,t.range[2],/\S/u)??i.text.length;i.text[a-1]===`\r`&&a--;let o=n===null?a:n.position.start.offset;if(e){let t=e.offset+e.source.length+1;o<t&&t<=a&&(o=t)}let s=i.transformRange([o,a]);return{position:s,documentEndPoint:r?i.transformOffset(r.offset+r.source.length):s.end}}function Zo(e,t,n,r){return{type:`documentHead`,position:e,endComments:n,trailingComment:r,children:t}}function Qo(e,t,n){return{type:`directive`,position:e,leadingComments:[],trailingComment:null,name:t,parameters:n}}function $o(e,t){let n=e.source.trim().split(/[\t ]+/),r=n.shift().replace(/^%/,``);return Qo(t.transformRange([e.offset,e.offset+e.source.length]),r,n)}function es(e,t,n,r){let{directives:i,endCommentCandidates:a}=ts(e,r),o=[],s=null;if(t){for(let e of M(t.start))if(o.push(e),!s&&e.type===`doc-start`){for(let e of o)if(e.type===`comment`){let t=r.transformComment(e);a.push(t)}o=[],s=e}}let c=ns(i,n,s,r),l=null;if(s&&o.length>0){let e=o[0];e.type===`comment`&&r.transformOffset(e.offset).line===c.end.line&&(l=r.transformComment(e),o.shift())}return{documentHead:Zo(c,i,s?a:[],l),docStart:s,tokensBeforeBody:o}}function ts(e,t){let n=[],r=[],i=null;for(let a of e)if(a.type===`comment`){let e=t.transformComment(a);i&&i.position.end.line===e.position.start.line&&!i.trailingComment?(i.trailingComment=e,i.position.end=e.position.end):r.push(e)}else{let e=$o(a,t);n.push(e),i=e,r=[]}return{directives:n,endCommentCandidates:r}}function ns(e,t,n,r){let i=n?[n.offset,n.offset+n.source.length]:t.contents?[t.contents.range[0],t.contents.range[0]]:[t.range[0],t.range[0]];return e.length!==0&&(i[0]=e[0].position.start.offset),r.transformRange(i)}function rs(e,t){let{documentHead:n,tokensBeforeBody:r,docStart:i}=es(e.tokensBeforeBody,e.cstNode,e.node,t),{documentBody:a,documentEndPoint:o,documentTrailingComment:s}=Jo(i,r,e.cstNode,e.node,e.tokensAfterBody,e.documentEnd,t);return Go($t(n.position.start,o),!!i,!!e.documentEnd,n,a,s)}function is(e,t,n){if(e.length===0)return[];let r=[],i=[],a=[],o=null,s=t=>{let n={tokensBeforeBody:[...a,...i],cstNode:t,node:e[r.length],tokensAfterBody:[],documentEnd:null};return r.push(n),a.length=0,i.length=0,n};for(let c of M(t))if(c.type===`document`){if(r.length>=e.length)throw Error(`Unexpected 'document' token at ${Gt(n.transformOffset(c.offset))}`);o=s(c)}else if(c.type===`comment`)i.push(c);else if(c.type===`directive`)a.push(...i,c),i.length=0;else if(c.type===`doc-end`){if(!o||o.documentEnd)throw Error(`Unexpected 'doc-end' token at ${Gt(n.transformOffset(c.offset))}`);o.tokensAfterBody=[...i],i.length=0,o.documentEnd=c}if(a.length>0){let[e]=a;throw Error(`Unexpected '${e.type}' token at ${Gt(n.transformOffset(e.offset))}`)}return i.length>0&&(o||=s(null),i.length>0&&(o.tokensAfterBody.push(...i),i.length=0)),r.map(e=>rs(e,n))}function as(e,t,n,r){let i=t(e);return t=>{r(i,t)&&n(e,i=t)}}function os(e){if(e===null||!(`children`in e))return;let t=e.children;if(t.forEach(os),e.type===`document`){let[t,n]=e.children;t.position.start.offset===t.position.end.offset?t.position.start=t.position.end=n.position.start:n.position.start.offset===n.position.end.offset&&(n.position.start=n.position.end=t.position.end)}let n=as(e.position,ss,cs,ds),r=as(e.position,ls,us,fs);`endComments`in e&&e.endComments.length!==0&&(n(e.endComments[0].position.start),r(On(e.endComments).position.end));let i=t.filter(e=>e!==null);if(i.length!==0){let e=i[0],t=On(i);n(e.position.start),r(t.position.end),`leadingComments`in e&&e.leadingComments.length!==0&&n(e.leadingComments[0].position.start),`tag`in e&&e.tag&&n(e.tag.position.start),`anchor`in e&&e.anchor&&n(e.anchor.position.start),`trailingComment`in t&&t.trailingComment&&r(t.trailingComment.position.end)}}function ss(e){return e.start}function cs(e,t){e.start=t}function ls(e){return e.end}function us(e,t){e.end=t}function ds(e,t){return t.offset<e.offset}function fs(e,t){return t.offset>e.offset}function ps(e,t){let n=new co,r=new Wo(e,n),i=new _o(n.addNewLine),a=new Ma({keepSourceTokens:!0,uniqueKeys:t?.uniqueKeys,lineCounter:n,merge:!0}),o=[],s=[...i.parse(e)];for(let t of a.compose(s,!0,e.length)){let{errors:e}=t;if(e.length>0)throw new Wt(r,e[0]);o.push(t)}let c=is(o,s,r),l=r.comments.sort((e,t)=>e.position.start.offset-t.position.end.offset),u=Qt(r.transformRange([0,e.length]),c,l);return Kt(u),os(u),u}function ms(e,t){let n=SyntaxError(e+` (`+t.loc.start.line+`:`+t.loc.start.column+`)`);return Object.assign(n,t)}var hs=ms,gs={uniqueKeys:!1};function _s(e){let t;try{t=ps(e,gs)}catch(e){throw e instanceof Wt?hs(e.message,{loc:e.position,cause:e}):e}return delete t.comments,t}var vs={astFormat:`yaml`,parse:_s,hasPragma:Ze,hasIgnorePragma:Qe,locStart:We,locEnd:Ge},ys={yaml:zt},bs=Co.parse;export{bs as __parsePrettierYamlConfig,n as default,Bt as languages,Ht as options,Ut as parsers,ys as printers};