collabmd 0.1.34 → 0.1.35

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 (266) hide show
  1. package/dist/client/assets/{CodeMirrorEditor-UCMRAMCV-Bg0dawOb.js → CodeMirrorEditor-UCMRAMCV-CvLFeHXu.js} +1 -1
  2. package/dist/client/assets/_baseFor-Bfo4esZ5.js +1 -0
  3. package/dist/client/assets/arc-tRoMuWFi.js +1 -0
  4. package/dist/client/assets/architecture-YZFGNWBL-CtU43_5T.js +1 -0
  5. package/dist/client/assets/{architectureDiagram-2XIMDMQ5-kYbOThe4.js → architectureDiagram-Q4EWVU46-CVdcOotN.js} +4 -4
  6. package/dist/client/assets/blockDiagram-DXYQGD6D-B_gNUKQ4.js +132 -0
  7. package/dist/client/assets/c4Diagram-AHTNJAMY-BSDwfduG.js +10 -0
  8. package/dist/client/assets/channel-BDb1g_mJ.js +1 -0
  9. package/dist/client/assets/chunk-2KRD3SAO-C6u8y11R.js +1 -0
  10. package/dist/client/assets/chunk-336JU56O-Ch9X5KoM.js +2 -0
  11. package/dist/client/assets/{chunk-HHEYEP7N-DlevL8bq.js → chunk-426QAEUC-CwJ7loGf.js} +1 -1
  12. package/dist/client/assets/chunk-4TB4RGXK-BEsauZP5.js +206 -0
  13. package/dist/client/assets/chunk-5FUZZQ4R-6x8SlhH9.js +62 -0
  14. package/dist/client/assets/chunk-5PVQY5BW-R5SE6dhE.js +2 -0
  15. package/dist/client/assets/chunk-67CJDMHE-CjXw5hFa.js +1 -0
  16. package/dist/client/assets/chunk-7N4EOEYR-DNHyuswJ.js +1 -0
  17. package/dist/client/assets/chunk-AA7GKIK3-DayE4IF_.js +1 -0
  18. package/dist/client/assets/chunk-BSJP7CBP-CexlYBxB.js +1 -0
  19. package/dist/client/assets/chunk-CIAEETIT-CkDJ4DYI.js +1 -0
  20. package/dist/client/assets/{chunk-KX2RTZJC-BTiOJb7N.js → chunk-EDXVE4YY-BVR_nF3y.js} +1 -1
  21. package/dist/client/assets/chunk-ENJZ2VHE-CFVWytAB.js +10 -0
  22. package/dist/client/assets/chunk-FOC6F5B3-DzCiCLGs.js +1 -0
  23. package/dist/client/assets/chunk-ICPOFSXX-B9LPHgU7.js +122 -0
  24. package/dist/client/assets/chunk-K5T4RW27-kmGSebVE.js +94 -0
  25. package/dist/client/assets/chunk-KGLVRYIC-DVjPRsaR.js +1 -0
  26. package/dist/client/assets/chunk-LIHQZDEY-DKFj13sC.js +1 -0
  27. package/dist/client/assets/chunk-NU2UP6EN-UVL-wkIc.js +35 -0
  28. package/dist/client/assets/chunk-ORNJ4GCN-D0uTAC-5.js +1 -0
  29. package/dist/client/assets/{chunk-NQ4KR5QH-CMJKI6Oj.js → chunk-OYMX7WX6-nWiNHNyD.js} +25 -14
  30. package/dist/client/assets/{chunk-PU5JKC2W-D_6N6t8f.js → chunk-U2HBQHQK-Bue4Ufzn.js} +6 -6
  31. package/dist/client/assets/{chunk-PQ6SQG4A-D1AbThjy.js → chunk-X2U36JSP-CRE6lp7n.js} +1 -1
  32. package/dist/client/assets/{chunk-XPW4576I-DJr4_4Yy.js → chunk-XPW4576I-BL5M-tF8.js} +1 -1
  33. package/dist/client/assets/{chunk-JSJVCQXG-DPQ9cPJt.js → chunk-YZCP3GAM-D7Z5wUWA.js} +1 -1
  34. package/dist/client/assets/chunk-ZZ45TVLE-CBbl1Qec.js +1 -0
  35. package/dist/client/assets/classDiagram-6PBFFD2Q-MIbgV5UL.js +1 -0
  36. package/dist/client/assets/classDiagram-v2-HSJHXN6E-Bb70vg2O.js +1 -0
  37. package/dist/client/assets/clike-BFTLRaGS.js +1 -0
  38. package/dist/client/assets/clone-D6JWrlxJ.js +1 -0
  39. package/dist/client/assets/{coffeescript-B_7eyHAa.js → coffeescript-B7GZajzV.js} +1 -1
  40. package/dist/client/assets/{cose-bilkent-S5V4N54A-DASO2hrk.js → cose-bilkent-S5V4N54A-xxgR5OJ-.js} +1 -1
  41. package/dist/client/assets/{cypher-DE6I2lIA.js → cypher-DEGl2llJ.js} +1 -1
  42. package/dist/client/assets/cytoscape.esm-B3PRdePO.js +321 -0
  43. package/dist/client/assets/{d-BNkKjn0o.js → d-BspB0dox.js} +1 -1
  44. package/dist/client/assets/dagre-KV5264BT-C2K9mFg1.js +4 -0
  45. package/dist/client/assets/dagre-VaFYRFbD.js +1 -0
  46. package/dist/client/assets/diagram-5BDNPKRD-DE0M0jaM.js +10 -0
  47. package/dist/client/assets/diagram-G4DWMVQ6-BfaRuSTT.js +24 -0
  48. package/dist/client/assets/diagram-MMDJMWI5-91Bly_hN.js +43 -0
  49. package/dist/client/assets/diagram-TYMM5635-fBkLwZGN.js +24 -0
  50. package/dist/client/assets/{dist-BzpfHRaE.js → dist-74GtnE06.js} +1 -1
  51. package/dist/client/assets/dist-B3lARV_e.js +1 -0
  52. package/dist/client/assets/{dist-O1z0Ayg0.js → dist-BCvzlTeb.js} +1 -1
  53. package/dist/client/assets/{dist-DsL7sqZR.js → dist-BMlUxhOz.js} +1 -1
  54. package/dist/client/assets/dist-BSED50tI.js +13 -0
  55. package/dist/client/assets/{dist-B-02vKOA.js → dist-Bkn7JaJv.js} +1 -1
  56. package/dist/client/assets/dist-Bq8Z0WUT.js +1 -0
  57. package/dist/client/assets/{dist-E_jPb93e.js → dist-Bzb9nPam.js} +1 -1
  58. package/dist/client/assets/{dist-CL-jjdvG.js → dist-C0e9kfNh.js} +1 -1
  59. package/dist/client/assets/dist-C8wdW7W4.js +1 -0
  60. package/dist/client/assets/dist-CDUQ5ELn.js +1 -0
  61. package/dist/client/assets/dist-CHSg_nUM.js +1 -0
  62. package/dist/client/assets/dist-CSAH9iuE.js +6 -0
  63. package/dist/client/assets/{dist-CxfohGIV.js → dist-CSNMpi-w.js} +1 -1
  64. package/dist/client/assets/dist-CZPTvk_g2.js +1 -0
  65. package/dist/client/assets/{dist-k47-Io7D.js → dist-Co8HE14w.js} +1 -1
  66. package/dist/client/assets/{dist-Bc2ND6i3.js → dist-CqU98NzX.js} +1 -1
  67. package/dist/client/assets/{dist-BzbYwa8m.js → dist-D0dQAc9b.js} +1 -1
  68. package/dist/client/assets/{dist-Dyt7n5Ui.js → dist-D1-dK0Dk.js} +1 -1
  69. package/dist/client/assets/{dist-B4uQVR_X.js → dist-DAKGEzm0.js} +1 -1
  70. package/dist/client/assets/dist-DBzteOlY.js +1 -0
  71. package/dist/client/assets/{dist-CjII8VDS.js → dist-DSRCADL9.js} +1 -1
  72. package/dist/client/assets/{dist-lDhnP-K1.js → dist-DdR2aYqj.js} +1 -1
  73. package/dist/client/assets/{dist-DUvaQ-Bj.js → dist-DidT3Jay.js} +1 -1
  74. package/dist/client/assets/dist-Doo91MTa.js +1 -0
  75. package/dist/client/assets/{dist-BLAlZer_.js → dist-Dwy75xI6.js} +1 -1
  76. package/dist/client/assets/{dist-3uAMa5w5.js → dist-FC9LftvP.js} +1 -1
  77. package/dist/client/assets/{dist-CGV1S_as.js → dist-PPAeaw4t.js} +1 -1
  78. package/dist/client/assets/{dist-BtnXjRx0.js → dist-VPEWg0Ob.js} +1 -1
  79. package/dist/client/assets/{dist-CXpKYW9s.js → dist-cQSK4Xor.js} +1 -1
  80. package/dist/client/assets/{dist-rMhng5DK.js → dist-r5I9Jgww.js} +1 -1
  81. package/dist/client/assets/drawio-editor-CWLEpwps.js +9 -0
  82. package/dist/client/assets/{drawioEditor-D6clB5OH.js → drawioEditor-5rJhxjA4.js} +2 -2
  83. package/dist/client/assets/{ecl-M7Iek4lq.js → ecl-D9rhJ9-u.js} +1 -1
  84. package/dist/client/assets/{editor-session-Dzy_85Wp.js → editor-session-CLOuvy37.js} +3 -3
  85. package/dist/client/assets/{erDiagram-INFDFZHY-DlIf-fb7.js → erDiagram-SMLLAGMA-DUQcqEQ1.js} +33 -18
  86. package/dist/client/assets/excalidraw-editor-ukEKPqGJ.js +9 -0
  87. package/dist/client/assets/{excalidraw-mermaid-stub-Bwe-bKcT.js → excalidraw-mermaid-stub-Df0Q2qkW.js} +1 -1
  88. package/dist/client/assets/excalidraw-scene-CDK3oDnm.js +176 -0
  89. package/dist/client/assets/excalidrawEditor-BJ8QLmWc.js +2 -0
  90. package/dist/client/assets/{export-page-PeexH2QK.js → export-page-D2rCmrUH.js} +2 -2
  91. package/dist/client/assets/exportDocument-Dunnjgii.js +2 -0
  92. package/dist/client/assets/{fcl-BWKK0S4-.js → fcl-CUXJFJn1.js} +1 -1
  93. package/dist/client/assets/flatten-CX_XvnUf.js +1 -0
  94. package/dist/client/assets/flowDiagram-DWJPFMVM-B_A5JyId.js +162 -0
  95. package/dist/client/assets/ganttDiagram-T4ZO3ILL-HM3CD7bk.js +292 -0
  96. package/dist/client/assets/gitGraph-7Q5UKJZL-BrBlB49D.js +1 -0
  97. package/dist/client/assets/gitGraphDiagram-UUTBAWPF-Dw7twZDm.js +106 -0
  98. package/dist/client/assets/graphlib-DDD4Vdye.js +1 -0
  99. package/dist/client/assets/{groovy-BEKazBrO.js → groovy-Di--Vb9Z.js} +1 -1
  100. package/dist/client/assets/{haxe-BY9d_5nB.js → haxe-CcPA1xnA.js} +1 -1
  101. package/dist/client/assets/image-XLNPCCAD-BFNybKza.js +1 -0
  102. package/dist/client/assets/{image-blob-reduce.esm-DriR2zT9.js → image-blob-reduce.esm-DiuPkovC.js} +1 -1
  103. package/dist/client/assets/{index-BLrtj9YM.js → index-BbziNMqE.js} +2 -2
  104. package/dist/client/assets/info-OMHHGYJF-BcmgcSx1.js +1 -0
  105. package/dist/client/assets/{infoDiagram-LFFYTUFH-DFTI0nfs.js → infoDiagram-42DDH7IO-DX-d3DMp.js} +1 -1
  106. package/dist/client/assets/isEmpty-BKDbo1FH.js +1 -0
  107. package/dist/client/assets/ishikawaDiagram-UXIWVN3A-BHmsxpMs.js +70 -0
  108. package/dist/client/assets/{javascript-CdiVhQeA.js → javascript-gTK9fxz6.js} +1 -1
  109. package/dist/client/assets/javascript-qUBHINSy.js +1 -0
  110. package/dist/client/assets/{journeyDiagram-4ABVD52K-DDur6iHm.js → journeyDiagram-VCZTEJTY-jxDSjgE1.js} +2 -2
  111. package/dist/client/assets/{jsx-runtime-C2p7wRmT.js → jsx-runtime-B_8UNt-W.js} +1 -1
  112. package/dist/client/assets/{kanban-definition-K7BYSVSG-dA6NPLsg.js → kanban-definition-6JOO6SKY-od3qY1mE.js} +2 -2
  113. package/dist/client/assets/line-CZsGUM4H.js +1 -0
  114. package/dist/client/assets/{lua-kutgyRGY.js → lua-Cg0FqIlO.js} +1 -1
  115. package/dist/client/assets/main-CN0kbtGk.js +1369 -0
  116. package/dist/client/assets/mermaid-parser.core-DtIbxv6L.js +4 -0
  117. package/dist/client/assets/mermaid-runtime-vVJfjscE.js +11 -0
  118. package/dist/client/assets/{mindmap-definition-YRQLILUH-DjQcsPoe.js → mindmap-definition-QFDTVHPH-C9qrdAqo.js} +39 -11
  119. package/dist/client/assets/packet-4T2RLAQJ-DYYSvRuJ.js +1 -0
  120. package/dist/client/assets/pica-BEurQXMu.js +2 -0
  121. package/dist/client/assets/pie-ZZUOXDRM-cG65Mc64.js +1 -0
  122. package/dist/client/assets/pieDiagram-DEJITSTG-BHXxj7wl.js +30 -0
  123. package/dist/client/assets/{preview-render-compiler-BjLlHmiQ.js → preview-render-compiler-BHeDhYho.js} +2 -2
  124. package/dist/client/assets/preview-render-compiler-D3QM1Ryz.js +1 -0
  125. package/dist/client/assets/{preview-render-profile-CR4dJZrp.js → preview-render-profile-BF6os3x9.js} +5 -5
  126. package/dist/client/assets/{preview-render-worker-B4dH2yxj.js → preview-render-worker-C4AFtMIr.js} +6 -6
  127. package/dist/client/assets/{pug-DkUcLYWt.js → pug-lkTEco3G.js} +1 -1
  128. package/dist/client/assets/{python-CZtTmYkS.js → python-BUyhM0Ew.js} +1 -1
  129. package/dist/client/assets/{q-I27iQntV.js → q-Dls1OX0D.js} +1 -1
  130. package/dist/client/assets/{quadrantDiagram-337W2JSQ-CYKgdx7K.js → quadrantDiagram-34T5L4WZ-CWW7LORF.js} +1 -1
  131. package/dist/client/assets/{quick-switcher-controller-DcyllYpm.js → quick-switcher-controller-B1erSgJ1.js} +1 -1
  132. package/dist/client/assets/{r-DN_EydfL.js → r-DeZ8Mdev.js} +1 -1
  133. package/dist/client/assets/radar-PYXPWWZC-Bmpup_xw.js +1 -0
  134. package/dist/client/assets/reduce-C6FuFJbE.js +1 -0
  135. package/dist/client/assets/requirementDiagram-MS252O5E-CTljNdQH.js +84 -0
  136. package/dist/client/assets/{room-yJaBAoEU.js → room-DI7DXGeS.js} +1 -1
  137. package/dist/client/assets/{sankeyDiagram-WA2Y5GQK-CfHe3D6R.js → sankeyDiagram-XADWPNL6-CCfFkC74.js} +1 -1
  138. package/dist/client/assets/sequenceDiagram-FGHM5R23-BD9vj6WG.js +157 -0
  139. package/dist/client/assets/{sparql-BOvq0dv7.js → sparql-vm8qNO8J.js} +1 -1
  140. package/dist/client/assets/sql-GL7dVWcd.js +1 -0
  141. package/dist/client/assets/stateDiagram-FHFEXIEX-CpiX3KPd.js +1 -0
  142. package/dist/client/assets/stateDiagram-v2-QKLJ7IA2-D_5ufPqT.js +1 -0
  143. package/dist/client/assets/{swift-BCxe4-cw.js → swift-CKcKnWv9.js} +1 -1
  144. package/dist/client/assets/timeline-definition-GMOUNBTQ-BafRAkSF.js +120 -0
  145. package/dist/client/assets/treeView-SZITEDCU-NbjhK5cw.js +1 -0
  146. package/dist/client/assets/treemap-W4RFUUIX-DJzRbb-x.js +1 -0
  147. package/dist/client/assets/{turtle-GBz_E4RG.js → turtle-BkP3ExOG.js} +1 -1
  148. package/dist/client/assets/{vault-api-client-p7h7cXKM.js → vault-api-client-DSx3mWkH.js} +1 -1
  149. package/dist/client/assets/{vault-utils-5Xr0MXCb.js → vault-utils-CRpy8MQz.js} +1 -1
  150. package/dist/client/assets/vennDiagram-DHZGUBPP-DSngq_Zj.js +34 -0
  151. package/dist/client/assets/{verilog-C4wTycyo.js → verilog-DSARZZPc.js} +1 -1
  152. package/dist/client/assets/{vhdl-Bwndeg44.js → vhdl-CnYyYTpa.js} +1 -1
  153. package/dist/client/assets/wardley-RL74JXVD-DTNoH_BY.js +1 -0
  154. package/dist/client/assets/wardleyDiagram-NUSXRM2D-CAEd2kJG.js +20 -0
  155. package/dist/client/assets/{xychartDiagram-JWTSCODW-C3vA70iJ.js → xychartDiagram-5P7HB3ND-BScQpnru.js} +6 -6
  156. package/dist/client/assets/{yjs-provider-reset-guard-CtERLBID.js → yjs-provider-reset-guard-_Q3mj6tP.js} +1 -1
  157. package/dist/client/drawio-editor.html +1 -1
  158. package/dist/client/excalidraw-editor.html +1 -1
  159. package/dist/client/export-document.html +1 -1
  160. package/dist/client/index.html +1 -1
  161. package/package.json +11 -11
  162. package/src/client/application/app-shell/ui-feature-shell.js +5 -2
  163. package/src/client/application/quick-switcher-loader.js +39 -0
  164. package/src/client/bootstrap/collabmd-app-shell.js +16 -20
  165. package/src/client/domain/keyboard-shortcuts.js +8 -0
  166. package/src/client/drawio-editor.js +13 -0
  167. package/src/client/excalidraw-editor.js +13 -0
  168. package/src/client/infrastructure/excalidraw-room-client.js +1 -1
  169. package/src/client/infrastructure/workspace-sync-client.js +26 -3
  170. package/src/client/presentation/comment-ui/comment-ui-card.js +83 -3
  171. package/src/client/presentation/comment-ui/comment-ui-state.js +25 -2
  172. package/src/client/presentation/drawio-embed-controller.js +18 -0
  173. package/src/client/presentation/excalidraw-embed-controller.js +7 -0
  174. package/src/client/presentation/git-panel-controller.js +2 -0
  175. package/src/server/domain/backlink-index.js +33 -72
  176. package/src/server/domain/bases/base-index-snapshot-store.js +46 -62
  177. package/src/server/domain/markdown-reference-extractor.js +233 -0
  178. package/src/server/infrastructure/persistence/vault-file-store.js +39 -4
  179. package/src/server/infrastructure/workspace/file-system-sync-service.js +37 -11
  180. package/dist/client/assets/_basePickBy-Dv0sK1l7.js +0 -1
  181. package/dist/client/assets/_baseUniq-DKYX57ji.js +0 -1
  182. package/dist/client/assets/arc-DrfYGhWk.js +0 -1
  183. package/dist/client/assets/architecture-PBZL5I3N-DiglIZi9.js +0 -1
  184. package/dist/client/assets/blockDiagram-WCTKOSBZ-GIgTqnhk.js +0 -132
  185. package/dist/client/assets/c4Diagram-IC4MRINW-CkHO1i_L.js +0 -10
  186. package/dist/client/assets/channel-CgsU9TSN.js +0 -1
  187. package/dist/client/assets/chunk-7E7YKBS2-TdU92i9i.js +0 -1
  188. package/dist/client/assets/chunk-7R4GIKGN-mqd2GwMg.js +0 -80
  189. package/dist/client/assets/chunk-C72U2L5F-CJKQWBtz.js +0 -1
  190. package/dist/client/assets/chunk-EGIJ26TM-C4nq20om.js +0 -1
  191. package/dist/client/assets/chunk-GEFDOKGD-Bs7FmFox.js +0 -2
  192. package/dist/client/assets/chunk-GLR3WWYH-qQe2O5VQ.js +0 -2
  193. package/dist/client/assets/chunk-KYZI473N-CTSCuqRb.js +0 -53
  194. package/dist/client/assets/chunk-L3YUKLVL-CJZMBtKF.js +0 -1
  195. package/dist/client/assets/chunk-MX3YWQON-DQpSwRf6.js +0 -1
  196. package/dist/client/assets/chunk-NU2UP6EN-DlUENSHU.js +0 -35
  197. package/dist/client/assets/chunk-O4XLMI2P-CcVxZh41.js +0 -7
  198. package/dist/client/assets/chunk-OZEHJAEY-DjBZbgu0.js +0 -1
  199. package/dist/client/assets/chunk-R5LLSJPH-CkjKXM73.js +0 -1
  200. package/dist/client/assets/chunk-WL4C6EOR-axcuKSup.js +0 -189
  201. package/dist/client/assets/chunk-XIRO2GV7-4wqVHjs_.js +0 -1
  202. package/dist/client/assets/chunk-XZSTWKYB-C8Y_hIKZ.js +0 -94
  203. package/dist/client/assets/chunk-YBOYWFTD-CKg4ymFF.js +0 -1
  204. package/dist/client/assets/classDiagram-VBA2DB6C-BHZpvOxK.js +0 -1
  205. package/dist/client/assets/classDiagram-v2-RAHNMMFH-DA7HMUUs.js +0 -1
  206. package/dist/client/assets/clike-1_ZsiVV8.js +0 -1
  207. package/dist/client/assets/clone-Dgi8Z4IL.js +0 -1
  208. package/dist/client/assets/cytoscape.esm-Czjc507F.js +0 -321
  209. package/dist/client/assets/dagre-CfB3Fw33.js +0 -1
  210. package/dist/client/assets/dagre-KLK3FWXG-CC7tq2Ky.js +0 -4
  211. package/dist/client/assets/diagram-E7M64L7V-CMt7BN5M.js +0 -24
  212. package/dist/client/assets/diagram-IFDJBPK2-BFMBUGpd.js +0 -43
  213. package/dist/client/assets/diagram-P4PSJMXO-CviA1xXr.js +0 -24
  214. package/dist/client/assets/dist-3bQB_we3.js +0 -1
  215. package/dist/client/assets/dist-8Igu3Ee_2.js +0 -1
  216. package/dist/client/assets/dist-BU8uusJX.js +0 -1
  217. package/dist/client/assets/dist-BVB8rn7o.js +0 -1
  218. package/dist/client/assets/dist-D5QOYy7y.js +0 -6
  219. package/dist/client/assets/dist-DIi0uqLJ.js +0 -1
  220. package/dist/client/assets/dist-DJ16N7ol.js +0 -1
  221. package/dist/client/assets/dist-DWJL3_bF.js +0 -13
  222. package/dist/client/assets/dist-OQE68wIX.js +0 -1
  223. package/dist/client/assets/dist-x7PIEmJu.js +0 -1
  224. package/dist/client/assets/drawio-editor-BMTwP5mD.js +0 -9
  225. package/dist/client/assets/excalidraw-editor-CAP9F8CB.js +0 -9
  226. package/dist/client/assets/excalidraw-scene-BF_bT1OL.js +0 -176
  227. package/dist/client/assets/excalidrawEditor-DD4AvzYP.js +0 -2
  228. package/dist/client/assets/exportDocument-Zfwq1XVx.js +0 -2
  229. package/dist/client/assets/flowDiagram-PKNHOUZH-C_t-mkwb.js +0 -162
  230. package/dist/client/assets/ganttDiagram-A5KZAMGK-BtK9Tb--.js +0 -292
  231. package/dist/client/assets/gitGraph-HDMCJU4V-CT7YfbD3.js +0 -1
  232. package/dist/client/assets/gitGraphDiagram-K3NZZRJ6-DULDLGiJ.js +0 -65
  233. package/dist/client/assets/graphlib-BgRST-Qg.js +0 -1
  234. package/dist/client/assets/image-XLNPCCAD-CFiKwiWK.js +0 -1
  235. package/dist/client/assets/info-3K5VOQVL-DUpNyDC-.js +0 -1
  236. package/dist/client/assets/isArrayLikeObject-BId_dPHM.js +0 -1
  237. package/dist/client/assets/isEmpty-CVvRj8fj.js +0 -1
  238. package/dist/client/assets/ishikawaDiagram-PHBUUO56-DpBuDpC6.js +0 -70
  239. package/dist/client/assets/javascript-UJe68_xi.js +0 -1
  240. package/dist/client/assets/line-B2GMovaI.js +0 -1
  241. package/dist/client/assets/main-CfSHaGes.js +0 -1368
  242. package/dist/client/assets/math-B-LMBwub.js +0 -1
  243. package/dist/client/assets/mermaid-parser.core-B1ogGcR8.js +0 -4
  244. package/dist/client/assets/mermaid-runtime-Bn8A6DGx.js +0 -11
  245. package/dist/client/assets/packet-RMMSAZCW-DEwNbIrA.js +0 -1
  246. package/dist/client/assets/pica-C1TdTz-C.js +0 -2
  247. package/dist/client/assets/pie-UPGHQEXC-D5M_lSjo.js +0 -1
  248. package/dist/client/assets/pieDiagram-SKSYHLDU-jhHouFpk.js +0 -30
  249. package/dist/client/assets/preview-render-compiler-Duy_3IcP.js +0 -1
  250. package/dist/client/assets/radar-KQ55EAFF-AU1qh3Bw.js +0 -1
  251. package/dist/client/assets/requirementDiagram-Z7DCOOCP-D9SHxoW7.js +0 -73
  252. package/dist/client/assets/sequenceDiagram-2WXFIKYE-CZsMMqAJ.js +0 -145
  253. package/dist/client/assets/sql-DDFeQNTK.js +0 -1
  254. package/dist/client/assets/stateDiagram-RAJIS63D-CoNZjTYV.js +0 -1
  255. package/dist/client/assets/stateDiagram-v2-FVOUBMTO-1zOw6NmQ.js +0 -1
  256. package/dist/client/assets/timeline-definition-YZTLITO2-DSe2mrG8.js +0 -61
  257. package/dist/client/assets/treemap-KZPCXAKY-C9UI2fwP.js +0 -1
  258. package/dist/client/assets/vennDiagram-LZ73GAT5-xSzaIpy1.js +0 -34
  259. /package/dist/client/assets/{chunk-55IACEB6-CpncB3ru.js → chunk-55IACEB6-DLqevMSj.js} +0 -0
  260. /package/dist/client/assets/{chunk-QZHKN3VN-CgLPFSk5.js → chunk-QZHKN3VN-BnOS2iQW.js} +0 -0
  261. /package/dist/client/assets/{drawio-room-DEivFyNV.js → drawio-room-1i6Nn0_Z.js} +0 -0
  262. /package/dist/client/assets/{excalidraw-mermaid-stub-BZPU4ZhU.js → excalidraw-mermaid-stub-DzxtBcQW.js} +0 -0
  263. /package/dist/client/assets/{file-kind-DBptLlF_.js → file-kind-DmKq2MvD.js} +0 -0
  264. /package/dist/client/assets/{preview-diagram-utils-COt-IYMD.js → preview-diagram-utils-D8VypUft.js} +0 -0
  265. /package/dist/client/assets/{rough.esm-DE_lJ5Ge.js → rough.esm-BU2knLt9.js} +0 -0
  266. /package/dist/client/assets/{runtime-config-CqhchMC4.js → runtime-config-DWTejofP.js} +0 -0
@@ -0,0 +1,4 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./info-OMHHGYJF-BcmgcSx1.js","./chunk-K5T4RW27-kmGSebVE.js","./chunk-DpHwWhuW.js","./isEmpty-BKDbo1FH.js","./_baseFor-Bfo4esZ5.js","./reduce-C6FuFJbE.js","./flatten-CX_XvnUf.js","./chunk-KGLVRYIC-DVjPRsaR.js","./packet-4T2RLAQJ-DYYSvRuJ.js","./chunk-FOC6F5B3-DzCiCLGs.js","./pie-ZZUOXDRM-cG65Mc64.js","./chunk-AA7GKIK3-DayE4IF_.js","./treeView-SZITEDCU-NbjhK5cw.js","./chunk-ORNJ4GCN-D0uTAC-5.js","./architecture-YZFGNWBL-CtU43_5T.js","./chunk-7N4EOEYR-DNHyuswJ.js","./gitGraph-7Q5UKJZL-BrBlB49D.js","./chunk-67CJDMHE-CjXw5hFa.js","./radar-PYXPWWZC-Bmpup_xw.js","./chunk-2KRD3SAO-C6u8y11R.js","./treemap-W4RFUUIX-DJzRbb-x.js","./chunk-LIHQZDEY-DKFj13sC.js","./wardley-RL74JXVD-DTNoH_BY.js","./chunk-CIAEETIT-CkDJ4DYI.js"])))=>i.map(i=>d[i]);
2
+ import{t as e}from"./preload-helper-Bo9GmnuQ.js";import{m as t}from"./chunk-K5T4RW27-kmGSebVE.js";import"./chunk-7N4EOEYR-DNHyuswJ.js";import"./chunk-67CJDMHE-CjXw5hFa.js";import"./chunk-KGLVRYIC-DVjPRsaR.js";import"./chunk-FOC6F5B3-DzCiCLGs.js";import"./chunk-AA7GKIK3-DayE4IF_.js";import"./chunk-2KRD3SAO-C6u8y11R.js";import"./chunk-ORNJ4GCN-D0uTAC-5.js";import"./chunk-LIHQZDEY-DKFj13sC.js";import"./chunk-CIAEETIT-CkDJ4DYI.js";var n={},r={info:t(async()=>{let{createInfoServices:t}=await e(async()=>{let{createInfoServices:e}=await import(`./info-OMHHGYJF-BcmgcSx1.js`);return{createInfoServices:e}},__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url);n.info=t().Info.parser.LangiumParser},`info`),packet:t(async()=>{let{createPacketServices:t}=await e(async()=>{let{createPacketServices:e}=await import(`./packet-4T2RLAQJ-DYYSvRuJ.js`);return{createPacketServices:e}},__vite__mapDeps([8,9,1,2,3,4,5,6]),import.meta.url);n.packet=t().Packet.parser.LangiumParser},`packet`),pie:t(async()=>{let{createPieServices:t}=await e(async()=>{let{createPieServices:e}=await import(`./pie-ZZUOXDRM-cG65Mc64.js`);return{createPieServices:e}},__vite__mapDeps([10,11,1,2,3,4,5,6]),import.meta.url);n.pie=t().Pie.parser.LangiumParser},`pie`),treeView:t(async()=>{let{createTreeViewServices:t}=await e(async()=>{let{createTreeViewServices:e}=await import(`./treeView-SZITEDCU-NbjhK5cw.js`);return{createTreeViewServices:e}},__vite__mapDeps([12,1,2,3,4,5,6,13]),import.meta.url);n.treeView=t().TreeView.parser.LangiumParser},`treeView`),architecture:t(async()=>{let{createArchitectureServices:t}=await e(async()=>{let{createArchitectureServices:e}=await import(`./architecture-YZFGNWBL-CtU43_5T.js`);return{createArchitectureServices:e}},__vite__mapDeps([14,15,1,2,3,4,5,6]),import.meta.url);n.architecture=t().Architecture.parser.LangiumParser},`architecture`),gitGraph:t(async()=>{let{createGitGraphServices:t}=await e(async()=>{let{createGitGraphServices:e}=await import(`./gitGraph-7Q5UKJZL-BrBlB49D.js`);return{createGitGraphServices:e}},__vite__mapDeps([16,17,1,2,3,4,5,6]),import.meta.url);n.gitGraph=t().GitGraph.parser.LangiumParser},`gitGraph`),radar:t(async()=>{let{createRadarServices:t}=await e(async()=>{let{createRadarServices:e}=await import(`./radar-PYXPWWZC-Bmpup_xw.js`);return{createRadarServices:e}},__vite__mapDeps([18,19,1,2,3,4,5,6]),import.meta.url);n.radar=t().Radar.parser.LangiumParser},`radar`),treemap:t(async()=>{let{createTreemapServices:t}=await e(async()=>{let{createTreemapServices:e}=await import(`./treemap-W4RFUUIX-DJzRbb-x.js`);return{createTreemapServices:e}},__vite__mapDeps([20,1,2,3,4,5,6,21]),import.meta.url);n.treemap=t().Treemap.parser.LangiumParser},`treemap`),wardley:t(async()=>{let{createWardleyServices:t}=await e(async()=>{let{createWardleyServices:e}=await import(`./wardley-RL74JXVD-DTNoH_BY.js`);return{createWardleyServices:e}},__vite__mapDeps([22,23,1,2,3,4,5,6]),import.meta.url);n.wardley=t().Wardley.parser.LangiumParser},`wardley`)};async function i(e,t){let i=r[e];if(!i)throw Error(`Unknown diagram type: ${e}`);n[e]||await i();let o=n[e].parse(t);if(o.lexerErrors.length>0||o.parserErrors.length>0)throw new a(o);return o.value}t(i,`parse`);var a=class extends Error{constructor(e){let t=e.lexerErrors.map(e=>`Lexer error on line ${e.line!==void 0&&!isNaN(e.line)?e.line:`?`}, column ${e.column!==void 0&&!isNaN(e.column)?e.column:`?`}: ${e.message}`).join(`
3
+ `),n=e.parserErrors.map(e=>`Parse error on line ${e.token.startLine!==void 0&&!isNaN(e.token.startLine)?e.token.startLine:`?`}, column ${e.token.startColumn!==void 0&&!isNaN(e.token.startColumn)?e.token.startColumn:`?`}: ${e.message}`).join(`
4
+ `);super(`Parsing failed: ${t} ${n}`),this.result=e}static{t(this,`MermaidParseError`)}};export{i as t};
@@ -0,0 +1,11 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./c4Diagram-AHTNJAMY-BSDwfduG.js","./dist-DBzteOlY.js","./chunk-DpHwWhuW.js","./src-Pgt9Gp65.js","./chunk-5PVQY5BW-R5SE6dhE.js","./chunk-ICPOFSXX-B9LPHgU7.js","./preload-helper-Bo9GmnuQ.js","./_baseFor-Bfo4esZ5.js","./chunk-YZCP3GAM-D7Z5wUWA.js","./flowDiagram-DWJPFMVM-B_A5JyId.js","./chunk-U2HBQHQK-Bue4Ufzn.js","./channel-BDb1g_mJ.js","./chunk-336JU56O-Ch9X5KoM.js","./chunk-5FUZZQ4R-6x8SlhH9.js","./chunk-X2U36JSP-CRE6lp7n.js","./chunk-ZZ45TVLE-CBbl1Qec.js","./rough.esm-BU2knLt9.js","./chunk-ENJZ2VHE-CFVWytAB.js","./line-CZsGUM4H.js","./path-DIlZIGue.js","./array-B3agRrCs.js","./chunk-BSJP7CBP-CexlYBxB.js","./chunk-55IACEB6-DLqevMSj.js","./chunk-EDXVE4YY-BVR_nF3y.js","./chunk-FMBD7UC4-CMahlBa_.js","./chunk-XPW4576I-BL5M-tF8.js","./erDiagram-SMLLAGMA-DUQcqEQ1.js","./gitGraphDiagram-UUTBAWPF-Dw7twZDm.js","./mermaid-parser.core-DtIbxv6L.js","./chunk-2KRD3SAO-C6u8y11R.js","./chunk-K5T4RW27-kmGSebVE.js","./isEmpty-BKDbo1FH.js","./reduce-C6FuFJbE.js","./flatten-CX_XvnUf.js","./chunk-67CJDMHE-CjXw5hFa.js","./chunk-7N4EOEYR-DNHyuswJ.js","./chunk-AA7GKIK3-DayE4IF_.js","./chunk-CIAEETIT-CkDJ4DYI.js","./chunk-FOC6F5B3-DzCiCLGs.js","./chunk-KGLVRYIC-DVjPRsaR.js","./chunk-LIHQZDEY-DKFj13sC.js","./chunk-ORNJ4GCN-D0uTAC-5.js","./chunk-4BX2VUAB-2e7V-uuE.js","./chunk-QZHKN3VN-BnOS2iQW.js","./ganttDiagram-T4ZO3ILL-HM3CD7bk.js","./linear-B2dOdA24.js","./defaultLocale-B_FbTTbl.js","./init-DtLQcSuO.js","./infoDiagram-42DDH7IO-DX-d3DMp.js","./chunk-426QAEUC-CwJ7loGf.js","./pieDiagram-DEJITSTG-BHXxj7wl.js","./ordinal-Dz3y_j0K.js","./arc-tRoMuWFi.js","./quadrantDiagram-34T5L4WZ-CWW7LORF.js","./xychartDiagram-5P7HB3ND-BScQpnru.js","./requirementDiagram-MS252O5E-CTljNdQH.js","./sequenceDiagram-FGHM5R23-BD9vj6WG.js","./classDiagram-6PBFFD2Q-MIbgV5UL.js","./chunk-4TB4RGXK-BEsauZP5.js","./classDiagram-v2-HSJHXN6E-Bb70vg2O.js","./stateDiagram-FHFEXIEX-CpiX3KPd.js","./dagre-VaFYRFbD.js","./graphlib-DDD4Vdye.js","./chunk-OYMX7WX6-nWiNHNyD.js","./stateDiagram-v2-QKLJ7IA2-D_5ufPqT.js","./journeyDiagram-VCZTEJTY-jxDSjgE1.js","./timeline-definition-GMOUNBTQ-BafRAkSF.js","./mindmap-definition-QFDTVHPH-C9qrdAqo.js","./kanban-definition-6JOO6SKY-od3qY1mE.js","./sankeyDiagram-XADWPNL6-CCfFkC74.js","./diagram-TYMM5635-fBkLwZGN.js","./diagram-MMDJMWI5-91Bly_hN.js","./blockDiagram-DXYQGD6D-B_gNUKQ4.js","./clone-D6JWrlxJ.js","./diagram-5BDNPKRD-DE0M0jaM.js","./architectureDiagram-Q4EWVU46-CVdcOotN.js","./cytoscape.esm-B3PRdePO.js","./ishikawaDiagram-UXIWVN3A-BHmsxpMs.js","./vennDiagram-DHZGUBPP-DSngq_Zj.js","./diagram-G4DWMVQ6-BfaRuSTT.js","./wardleyDiagram-NUSXRM2D-CAEd2kJG.js"])))=>i.map(i=>d[i]);
2
+ import{t as e}from"./preload-helper-Bo9GmnuQ.js";import{t}from"./isEmpty-BKDbo1FH.js";import{_ as n,g as r,h as i,p as a}from"./src-Pgt9Gp65.js";import{F as o,G as s,H as c,J as l,M as u,N as d,S as f,T as p,X as m,Y as h,Z as g,c as _,f as v,g as y,h as b,l as x,n as S,p as C,r as ee,t as te,w as ne,x as w,y as T,z as E}from"./chunk-ICPOFSXX-B9LPHgU7.js";import{a as re,d as D,h as O,i as k,m as ie,r as ae}from"./chunk-5PVQY5BW-R5SE6dhE.js";import{t as oe}from"./chunk-426QAEUC-CwJ7loGf.js";import{i as se,o as ce}from"./chunk-U2HBQHQK-Bue4Ufzn.js";import"./chunk-BSJP7CBP-CexlYBxB.js";import"./chunk-ZZ45TVLE-CBbl1Qec.js";import"./chunk-X2U36JSP-CRE6lp7n.js";import"./chunk-5FUZZQ4R-6x8SlhH9.js";import"./chunk-ENJZ2VHE-CFVWytAB.js";import{n as le}from"./chunk-336JU56O-Ch9X5KoM.js";import{n as ue,t as de}from"./chunk-XPW4576I-BL5M-tF8.js";var fe=`comm`,pe=`rule`,me=`decl`,he=`@import`,ge=`@namespace`,_e=`@keyframes`,ve=`@layer`,ye=Math.abs,be=String.fromCharCode;function xe(e){return e.trim()}function A(e,t,n){return e.replace(t,n)}function Se(e,t,n){return e.indexOf(t,n)}function j(e,t){return e.charCodeAt(t)|0}function M(e,t,n){return e.slice(t,n)}function N(e){return e.length}function Ce(e){return e.length}function P(e,t){return t.push(e),e}var F=1,I=1,we=0,L=0,R=0,z=``;function B(e,t,n,r,i,a,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:F,column:I,length:o,return:``,siblings:s}}function Te(){return R}function Ee(){return R=L>0?j(z,--L):0,I--,R===10&&(I=1,F--),R}function V(){return R=L<we?j(z,L++):0,I++,R===10&&(I=1,F++),R}function H(){return j(z,L)}function U(){return L}function W(e,t){return M(z,e,t)}function G(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function De(e){return F=I=1,we=N(z=e),L=0,[]}function Oe(e){return z=``,e}function K(e){return xe(W(L-1,q(e===91?e+2:e===40?e+1:e)))}function ke(e){for(;(R=H())&&R<33;)V();return G(e)>2||G(R)>3?``:` `}function Ae(e,t){for(;--t&&V()&&!(R<48||R>102||R>57&&R<65||R>70&&R<97););return W(e,U()+(t<6&&H()==32&&V()==32))}function q(e){for(;V();)switch(R){case e:return L;case 34:case 39:e!==34&&e!==39&&q(R);break;case 40:e===41&&q(e);break;case 92:V();break}return L}function je(e,t){for(;V()&&e+R!==57&&!(e+R===84&&H()===47););return`/*`+W(t,L-1)+`*`+be(e===47?e:V())}function Me(e){for(;!G(H());)V();return W(e,L)}function Ne(e){return Oe(J(``,null,null,null,[``],e=De(e),0,[0],e))}function J(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=V()){case 40:if(m!=108&&j(C,d-1)==58){Se(C+=A(K(v),`&`,`&\f`),`&\f`,ye(l?s[l-1]:0))!=-1&&(_=-1);break}case 34:case 39:case 91:C+=K(v);break;case 9:case 10:case 13:case 32:C+=ke(m);break;case 92:C+=Ae(U()-1,7);continue;case 47:switch(H()){case 42:case 47:P(Fe(je(V(),U()),t,n,c),c),(G(m||1)==5||G(H()||1)==5)&&N(C)&&M(C,-1,void 0)!==` `&&(C+=` `);break;default:C+=`/`}break;case 123*h:s[l++]=N(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=A(C,/\f/g,``)),p>0&&(N(C)-d||h===0&&m===47)&&P(p>32?Ie(C+`;`,r,n,d-1,c):Ie(A(C,` `,``)+`;`,r,n,d-2,c),c);break;case 59:C+=`;`;default:if(P(S=Pe(C,t,n,l,u,i,s,y,b=[],x=[],d,a),a),v===123)if(u===0)J(C,t,S,S,b,a,d,s,x);else{switch(f){case 99:if(j(C,3)===110)break;case 108:if(j(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?J(e,S,S,r&&P(Pe(e,S,S,0,0,i,s,y,i,b=[],d,x),x),i,x,d,s,r?b:x):J(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+N(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&Ee()==125)continue}switch(C+=be(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(N(C)-1)*_,_=1;break;case 64:H()===45&&(C+=K(V())),f=H(),u=d=N(y=C+=Me(U())),v++;break;case 45:m===45&&N(C)==2&&(h=0)}}return a}function Pe(e,t,n,r,i,a,o,s,c,l,u,d){for(var f=i-1,p=i===0?a:[``],m=Ce(p),h=0,g=0,_=0;h<r;++h)for(var v=0,y=M(e,f+1,f=ye(g=o[h])),b=e;v<m;++v)(b=xe(g>0?p[v]+` `+y:A(y,/&\f/g,p[v])))&&(c[_++]=b);return B(e,t,n,i===0?pe:s,c,l,u,d)}function Fe(e,t,n,r){return B(e,t,n,fe,be(Te()),M(e,2,-2),0,r)}function Ie(e,t,n,r,i){return B(e,t,n,me,M(e,0,r),M(e,r+1,-1),r,i)}function Y(e,t){for(var n=``,r=0;r<e.length;r++)n+=t(e[r],r,e,t)||``;return n}function Le(e,t,n,r){switch(e.type){case ve:if(e.children.length)break;case he:case ge:case me:return e.return=e.return||e.value;case fe:return``;case _e:return e.return=e.value+`{`+Y(e.children,r)+`}`;case pe:if(!N(e.value=e.props.join(`,`)))return``}return N(n=Y(e.children,r))?e.return=e.value+`{`+n+`}`:``}var Re=`c4`,ze={id:Re,detector:i(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./c4Diagram-AHTNJAMY-BSDwfduG.js`);return{diagram:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url);return{id:Re,diagram:t}},`loader`)},Be=`flowchart`,Ve={id:Be,detector:i((e,t)=>t?.flowchart?.defaultRenderer===`dagre-wrapper`||t?.flowchart?.defaultRenderer===`elk`?!1:/^\s*graph/.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./flowDiagram-DWJPFMVM-B_A5JyId.js`);return{diagram:e}},__vite__mapDeps([9,10,3,2,4,1,5,6,7,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,8]),import.meta.url);return{id:Be,diagram:t}},`loader`)},He=`flowchart-v2`,Ue={id:He,detector:i((e,t)=>t?.flowchart?.defaultRenderer===`dagre-d3`?!1:(t?.flowchart?.defaultRenderer===`elk`&&(t.layout=`elk`),/^\s*graph/.test(e)&&t?.flowchart?.defaultRenderer===`dagre-wrapper`?!0:/^\s*flowchart/.test(e)),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./flowDiagram-DWJPFMVM-B_A5JyId.js`);return{diagram:e}},__vite__mapDeps([9,10,3,2,4,1,5,6,7,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,8]),import.meta.url);return{id:He,diagram:t}},`loader`)},We=`er`,Ge={id:We,detector:i(e=>/^\s*erDiagram/.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./erDiagram-SMLLAGMA-DUQcqEQ1.js`);return{diagram:e}},__vite__mapDeps([26,10,3,2,4,1,5,6,7,11,12,13,14,15,16,17,18,19,20,21,22,23]),import.meta.url);return{id:We,diagram:t}},`loader`)},Ke=`gitGraph`,qe={id:Ke,detector:i(e=>/^\s*gitGraph/.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./gitGraphDiagram-UUTBAWPF-Dw7twZDm.js`);return{diagram:e}},__vite__mapDeps([27,28,6,29,30,2,31,7,32,33,34,35,36,37,38,39,40,41,3,4,1,5,42,43]),import.meta.url);return{id:Ke,diagram:t}},`loader`)},Je=`gantt`,Ye={id:Je,detector:i(e=>/^\s*gantt/.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./ganttDiagram-T4ZO3ILL-HM3CD7bk.js`);return{diagram:e}},__vite__mapDeps([44,2,1,45,3,46,47,4,5,6,7]),import.meta.url);return{id:Je,diagram:t}},`loader`)},Xe=`info`,Ze={id:Xe,detector:i(e=>/^\s*info/.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./infoDiagram-42DDH7IO-DX-d3DMp.js`);return{diagram:e}},__vite__mapDeps([48,28,6,29,30,2,31,7,32,33,34,35,36,37,38,39,40,41,3,5,49]),import.meta.url);return{id:Xe,diagram:t}},`loader`)},Qe=`pie`,$e={id:Qe,detector:i(e=>/^\s*pie/.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./pieDiagram-DEJITSTG-BHXxj7wl.js`);return{diagram:e}},__vite__mapDeps([50,1,2,28,6,29,30,31,7,32,33,34,35,36,37,38,39,40,41,3,19,51,47,52,20,4,5,49,42]),import.meta.url);return{id:Qe,diagram:t}},`loader`)},et=`quadrantChart`,tt={id:et,detector:i(e=>/^\s*quadrantChart/.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./quadrantDiagram-34T5L4WZ-CWW7LORF.js`);return{diagram:e}},__vite__mapDeps([53,45,3,2,46,47,5,6]),import.meta.url);return{id:et,diagram:t}},`loader`)},nt=`xychart`,rt={id:nt,detector:i(e=>/^\s*xychart(-beta)?/.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./xychartDiagram-5P7HB3ND-BScQpnru.js`);return{diagram:e}},__vite__mapDeps([54,10,3,2,4,1,5,6,7,45,46,47,51,18,19,20,49]),import.meta.url);return{id:nt,diagram:t}},`loader`)},it=`requirement`,at={id:it,detector:i(e=>/^\s*requirement(Diagram)?/.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./requirementDiagram-MS252O5E-CTljNdQH.js`);return{diagram:e}},__vite__mapDeps([55,10,3,2,4,1,5,6,7,12,13,14,15,16,17,18,19,20,21,22,23]),import.meta.url);return{id:it,diagram:t}},`loader`)},ot=`sequence`,st={id:ot,detector:i(e=>/^\s*sequenceDiagram/.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./sequenceDiagram-FGHM5R23-BD9vj6WG.js`);return{diagram:e}},__vite__mapDeps([56,1,2,3,4,5,6,7,43,25,8]),import.meta.url);return{id:ot,diagram:t}},`loader`)},ct=`class`,lt={id:ct,detector:i((e,t)=>t?.class?.defaultRenderer===`dagre-wrapper`?!1:/^\s*classDiagram/.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./classDiagram-6PBFFD2Q-MIbgV5UL.js`);return{diagram:e}},__vite__mapDeps([57,10,3,2,4,1,5,6,7,12,13,14,15,16,17,18,19,20,21,58,22,23,24,8]),import.meta.url);return{id:ct,diagram:t}},`loader`)},ut=`classDiagram`,dt={id:ut,detector:i((e,t)=>/^\s*classDiagram/.test(e)&&t?.class?.defaultRenderer===`dagre-wrapper`?!0:/^\s*classDiagram-v2/.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./classDiagram-v2-HSJHXN6E-Bb70vg2O.js`);return{diagram:e}},__vite__mapDeps([59,10,3,2,4,1,5,6,7,12,13,14,15,16,17,18,19,20,21,58,22,23,24,8]),import.meta.url);return{id:ut,diagram:t}},`loader`)},ft=`state`,pt={id:ft,detector:i((e,t)=>t?.state?.defaultRenderer===`dagre-wrapper`?!1:/^\s*stateDiagram/.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./stateDiagram-FHFEXIEX-CpiX3KPd.js`);return{diagram:e}},__vite__mapDeps([60,10,3,2,4,1,5,6,7,18,19,20,61,62,31,32,33,12,13,14,15,16,17,21,22,23,63]),import.meta.url);return{id:ft,diagram:t}},`loader`)},mt=`stateDiagram`,ht={id:mt,detector:i((e,t)=>!!(/^\s*stateDiagram-v2/.test(e)||/^\s*stateDiagram/.test(e)&&t?.state?.defaultRenderer===`dagre-wrapper`),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./stateDiagram-v2-QKLJ7IA2-D_5ufPqT.js`);return{diagram:e}},__vite__mapDeps([64,10,3,2,4,1,5,6,7,12,13,14,15,16,17,18,19,20,21,22,23,63]),import.meta.url);return{id:mt,diagram:t}},`loader`)},gt=`journey`,_t={id:gt,detector:i(e=>/^\s*journey/.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./journeyDiagram-VCZTEJTY-jxDSjgE1.js`);return{diagram:e}},__vite__mapDeps([65,3,2,52,1,19,5,6,24,8]),import.meta.url);return{id:gt,diagram:t}},`loader`)},vt={draw:i((e,t,n)=>{r.debug(`rendering svg for syntax error
3
+ `);let i=oe(t),a=i.append(`g`);i.attr(`viewBox`,`0 0 2412 512`),_(i,100,512,!0),a.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z`),a.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z`),a.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z`),a.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z`),a.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z`),a.append(`path`).attr(`class`,`error-icon`).attr(`d`,`m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z`),a.append(`text`).attr(`class`,`error-text`).attr(`x`,1440).attr(`y`,250).attr(`font-size`,`150px`).style(`text-anchor`,`middle`).text(`Syntax error in text`),a.append(`text`).attr(`class`,`error-text`).attr(`x`,1250).attr(`y`,400).attr(`font-size`,`100px`).style(`text-anchor`,`middle`).text(`mermaid version ${n}`)},`draw`)},yt=vt,bt={db:{},renderer:vt,parser:{parse:i(()=>{},`parse`)}},xt=`flowchart-elk`,St={id:xt,detector:i((e,t={})=>/^\s*flowchart-elk/.test(e)||/^\s*(flowchart|graph)/.test(e)&&t?.flowchart?.defaultRenderer===`elk`?(t.layout=`elk`,!0):!1,`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./flowDiagram-DWJPFMVM-B_A5JyId.js`);return{diagram:e}},__vite__mapDeps([9,10,3,2,4,1,5,6,7,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,8]),import.meta.url);return{id:xt,diagram:t}},`loader`)},Ct=`timeline`,wt={id:Ct,detector:i(e=>/^\s*timeline/.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./timeline-definition-GMOUNBTQ-BafRAkSF.js`);return{diagram:e}},__vite__mapDeps([66,3,2,52,1,19,4,5,6,7,49]),import.meta.url);return{id:Ct,diagram:t}},`loader`)},Tt=`mindmap`,Et={id:Tt,detector:i(e=>/^\s*mindmap/.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./mindmap-definition-QFDTVHPH-C9qrdAqo.js`);return{diagram:e}},__vite__mapDeps([67,10,3,2,4,1,5,6,7,12,13,14,15,16,17,18,19,20,21,22,23]),import.meta.url);return{id:Tt,diagram:t}},`loader`)},Dt=`kanban`,Ot={id:Dt,detector:i(e=>/^\s*kanban/.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./kanban-definition-6JOO6SKY-od3qY1mE.js`);return{diagram:e}},__vite__mapDeps([68,10,3,2,4,1,5,6,7,49,13,14,15,16,24,25]),import.meta.url);return{id:Dt,diagram:t}},`loader`)},kt=`sankey`,At={id:kt,detector:i(e=>/^\s*sankey(-beta)?/.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./sankeyDiagram-XADWPNL6-CCfFkC74.js`);return{diagram:e}},__vite__mapDeps([69,3,2,51,47,5,6]),import.meta.url);return{id:kt,diagram:t}},`loader`)},jt=`packet`,Mt={id:jt,detector:i(e=>/^\s*packet(-beta)?/.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./diagram-TYMM5635-fBkLwZGN.js`);return{diagram:e}},__vite__mapDeps([70,28,6,29,30,2,31,7,32,33,34,35,36,37,38,39,40,41,3,4,1,5,49,42]),import.meta.url);return{id:jt,diagram:t}},`loader`)},Nt=`radar`,Pt={id:Nt,detector:i(e=>/^\s*radar-beta/.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./diagram-MMDJMWI5-91Bly_hN.js`);return{diagram:e}},__vite__mapDeps([71,28,6,29,30,2,31,7,32,33,34,35,36,37,38,39,40,41,3,4,1,5,49,42]),import.meta.url);return{id:Nt,diagram:t}},`loader`)},Ft=`block`,It={id:Ft,detector:i(e=>/^\s*block(-beta)?/.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./blockDiagram-DXYQGD6D-B_gNUKQ4.js`);return{diagram:e}},__vite__mapDeps([72,10,3,2,4,1,5,6,7,18,19,20,62,31,32,11,73,21,24,15]),import.meta.url);return{id:Ft,diagram:t}},`loader`)},Lt=`treeView`,Rt={id:Lt,detector:i(e=>/^\s*treeView-beta/.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./diagram-5BDNPKRD-DE0M0jaM.js`);return{diagram:e}},__vite__mapDeps([74,28,6,29,30,2,31,7,32,33,34,35,36,37,38,39,40,41,3,4,1,5,49,42,43]),import.meta.url);return{id:Lt,diagram:t}},`loader`)},zt=`architecture`,Bt={id:zt,detector:i(e=>/^\s*architecture/.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./architectureDiagram-Q4EWVU46-CVdcOotN.js`);return{diagram:e}},__vite__mapDeps([75,2,10,3,4,1,5,6,7,28,29,30,31,32,33,34,35,36,37,38,39,40,41,76,49,42]),import.meta.url);return{id:zt,diagram:t}},`loader`)},Vt=`ishikawa`,Ht={id:Vt,detector:i(e=>/^\s*ishikawa(-beta)?\b/i.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./ishikawaDiagram-UXIWVN3A-BHmsxpMs.js`);return{diagram:e}},__vite__mapDeps([77,3,2,4,1,5,6,7,49,16]),import.meta.url);return{id:Vt,diagram:t}},`loader`)},Ut=`venn`,Wt={id:Ut,detector:i(e=>/^\s*venn-beta/.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./vennDiagram-DHZGUBPP-DSngq_Zj.js`);return{diagram:e}},__vite__mapDeps([78,3,2,4,1,5,6,7,49,16]),import.meta.url);return{id:Ut,diagram:t}},`loader`)},Gt=`treemap`,Kt={id:Gt,detector:i(e=>/^\s*treemap/.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./diagram-G4DWMVQ6-BfaRuSTT.js`);return{diagram:e}},__vite__mapDeps([79,28,6,29,30,2,31,7,32,33,34,35,36,37,38,39,40,41,3,46,51,47,4,1,5,49,42,23,14]),import.meta.url);return{id:Gt,diagram:t}},`loader`)},qt=`wardley-beta`,Jt={id:qt,detector:i(e=>/^\s*wardley-beta/i.test(e),`detector`),loader:i(async()=>{let{diagram:t}=await e(async()=>{let{diagram:e}=await import(`./wardleyDiagram-NUSXRM2D-CAEd2kJG.js`);return{diagram:e}},__vite__mapDeps([80,28,6,29,30,2,31,7,32,33,34,35,36,37,38,39,40,41,3,5,49,42]),import.meta.url);return{id:qt,diagram:t}},`loader`)},Yt=!1,X=i(()=>{Yt||(Yt=!0,u(`error`,bt,e=>e.toLowerCase().trim()===`error`),u(`---`,{db:{clear:i(()=>{},`clear`)},styles:{},renderer:{draw:i(()=>{},`draw`)},parser:{parse:i(()=>{throw Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},`parse`)},init:i(()=>null,`init`)},e=>e.toLowerCase().trimStart().startsWith(`---`)),d(St,Et,Bt),d(ze,Ot,dt,lt,Ge,Ye,Ze,$e,at,st,Ue,Ve,wt,qe,ht,pt,_t,tt,At,Mt,rt,It,Rt,Pt,Ht,Kt,Wt,Jt))},`addDiagrams`),Xt=i(async()=>{r.debug(`Loading registered diagrams`);let e=(await Promise.allSettled(Object.entries(C).map(async([e,{detector:t,loader:n}])=>{if(n)try{w(e)}catch{try{let{diagram:e,id:r}=await n();u(r,e,t)}catch(t){throw r.error(`Failed to load external diagram with key ${e}. Removing from detectors.`),delete C[e],t}}}))).filter(e=>e.status===`rejected`);if(e.length>0){r.error(`Failed to load ${e.length} external diagrams`);for(let t of e)r.error(t);throw Error(`Failed to load ${e.length} external diagrams`)}},`loadRegisteredDiagrams`),Zt=`graphics-document document`;function Qt(e,t){e.attr(`role`,Zt),t!==``&&e.attr(`aria-roledescription`,t)}i(Qt,`setA11yDiagramInfo`);function $t(e,t,n,r){if(e.insert!==void 0){if(n){let t=`chart-desc-${r}`;e.attr(`aria-describedby`,t),e.insert(`desc`,`:first-child`).attr(`id`,t).text(n)}if(t){let n=`chart-title-${r}`;e.attr(`aria-labelledby`,n),e.insert(`title`,`:first-child`).attr(`id`,n).text(t)}}}i($t,`addSVGa11yTitleDescription`);var en=class e{constructor(e,t,n,r,i){this.type=e,this.text=t,this.db=n,this.parser=r,this.renderer=i}static{i(this,`Diagram`)}static async fromText(t,n={}){let r=T(),i=v(t,r);t=re(t)+`
4
+ `;try{w(i)}catch{let e=f(i);if(!e)throw new te(`Diagram ${i} not found.`);let{id:t,diagram:n}=await e();u(t,n)}let{db:a,parser:o,renderer:s,init:c}=w(i);return o.parser&&(o.parser.yy=a),a.clear?.(),c?.(r),n.title&&a.setDiagramTitle?.(n.title),await o.parse(t),new e(i,t,a,o,s)}async render(e,t){await this.renderer.draw(this.text,e,t,this)}getParser(){return this.parser}getType(){return this.type}},tn=[],nn=i(()=>{tn.forEach(e=>{e()}),tn=[]},`attachFunctions`),rn=i(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,``).trimStart(),`cleanupComments`);function an(e){let t=e.match(y);if(!t)return{text:e,metadata:{}};let n=ue(t[1],{schema:de})??{};n=typeof n==`object`&&!Array.isArray(n)?n:{};let r={};return n.displayMode&&(r.displayMode=n.displayMode.toString()),n.title&&(r.title=n.title.toString()),n.config&&(r.config=n.config),{text:e.slice(t[0].length),metadata:r}}i(an,`extractFrontMatter`);var on=i(e=>e.replace(/\r\n?/g,`
5
+ `).replace(/<(\w+)([^>]*)>/g,(e,t,n)=>`<`+t+n.replace(/="([^"]*)"/g,`='$1'`)+`>`),`cleanupText`),sn=i(e=>{let{text:t,metadata:n}=an(e),{displayMode:r,title:i,config:a={}}=n;return r&&(a.gantt||={},a.gantt.displayMode=r),{title:i,config:a,text:t}},`processFrontmatter`),cn=i(e=>{let t=O.detectInit(e)??{},n=O.detectDirective(e,`wrap`);return Array.isArray(n)?t.wrap=n.some(({type:e})=>e===`wrap`):n?.type===`wrap`&&(t.wrap=!0),{text:ie(e),directive:t}},`processDirectives`);function ln(e){let t=sn(on(e)),n=cn(t.text),r=ae(t.config,n.directive);return e=rn(n.text),{code:e,title:t.title,config:r}}i(ln,`preprocessDiagram`);function un(e){let t=new TextEncoder().encode(e),n=Array.from(t,e=>String.fromCodePoint(e)).join(``);return btoa(n)}i(un,`toBase64`);var dn=5e4,fn=`graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa`,pn=`sandbox`,mn=`loose`,hn=`http://www.w3.org/2000/svg`,gn=`http://www.w3.org/1999/xlink`,_n=`http://www.w3.org/1999/xhtml`,vn=`100%`,yn=`100%`,bn=`border:0;margin:0;`,xn=`margin:0`,Sn=`allow-top-navigation-by-user-activation allow-popups`,Cn=`The "iframe" tag is not supported by your browser.`,wn=[`foreignobject`],Tn=[`dominant-baseline`];function En(e){let t=ln(e);return o(),S(t.config??{}),t}i(En,`processAndSetConfigs`);async function Dn(e,t){X();try{let{code:t,config:n}=En(e);return{diagramType:(await Rn(t)).type,config:n}}catch(e){if(t?.suppressErrors)return!1;throw e}}i(Dn,`parse`);var On=i((e,t,n=[])=>`
6
+ .${e} ${t} { ${n.join(` !important; `)} !important; }`,`cssImportantStyles`),kn=i((e,n=new Map)=>{let r=``;if(e.themeCSS!==void 0&&(r+=`
7
+ ${e.themeCSS}`),e.fontFamily!==void 0&&(r+=`
8
+ :root { --mermaid-font-family: ${e.fontFamily}}`),e.altFontFamily!==void 0&&(r+=`
9
+ :root { --mermaid-alt-font-family: ${e.altFontFamily}}`),n instanceof Map){let i=ne(e)?[`> *`,`span`]:[`rect`,`polygon`,`ellipse`,`circle`,`path`];n.forEach(e=>{t(e.styles)||i.forEach(t=>{r+=On(e.id,t,e.styles)}),t(e.textStyles)||(r+=On(e.id,`tspan`,(e?.textStyles||[]).map(e=>e.replace(`color`,`fill`))))})}return r},`createCssStyles`),An=i((e,t,n,r)=>Y(Ne(`${r}{${l(t,kn(e,n),{...e.themeVariables,theme:e.theme,look:e.look},r)}}`),Le),`createUserStyles`),jn=i((e=``,t,n)=>{let r=e;return!n&&!t&&(r=r.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,`marker-end="url(#`)),r=k(r),r=r.replace(/<br>/g,`<br/>`),r},`cleanUpSvgCode`),Mn=i((e=``,t)=>`<iframe style="width:${vn};height:${t?.viewBox?.baseVal?.height?t.viewBox.baseVal.height+`px`:yn};${bn}" src="data:text/html;charset=UTF-8;base64,${un(`<body style="${xn}">${e}</body>`)}" sandbox="${Sn}">
10
+ ${Cn}
11
+ </iframe>`,`putIntoIFrame`),Nn=i((e,t,n,r,i)=>{let a=e.append(`div`);a.attr(`id`,n),r&&a.attr(`style`,r);let o=a.append(`svg`).attr(`id`,t).attr(`width`,`100%`).attr(`xmlns`,hn);return i&&o.attr(`xmlns:xlink`,i),o.append(`g`),e},`appendDivSvgG`);function Pn(e,t){return e.append(`iframe`).attr(`id`,t).attr(`style`,`width: 100%; height: 100%;`).attr(`sandbox`,``)}i(Pn,`sandboxedIframe`);var Fn=i((e,t,n,r)=>{e.getElementById(t)?.remove(),e.getElementById(n)?.remove(),e.getElementById(r)?.remove()},`removeExistingElements`),In=i(async function(e,t,n){X();let o=En(t);t=o.code;let s=T();r.debug(s),t.length>(s?.maxTextSize??dn)&&(t=fn);let c=`#`+e,l=`i`+e,u=`#`+l,d=`d`+e,f=`#`+d,p=i(()=>{let e=a(h?u:f).node();e&&`remove`in e&&e.remove()},`removeTempElements`),m=a(`body`),h=s.securityLevel===pn,_=s.securityLevel===mn,v=s.fontFamily;n===void 0?(Fn(document,e,d,l),h?(m=a(Pn(a(`body`),l).nodes()[0].contentDocument.body),m.node().style.margin=0):m=a(`body`),Nn(m,e,d)):(n&&(n.innerHTML=``),h?(m=a(Pn(a(n),l).nodes()[0].contentDocument.body),m.node().style.margin=0):m=a(n),Nn(m,e,d,`font-family: ${v}`,gn));let y,x;try{y=await en.fromText(t,{title:o.title})}catch(e){if(s.suppressErrorRendering)throw p(),e;y=await en.fromText(`error`),x=e}let S=m.select(f).node(),C=y.type,ee=S.firstChild,te=ee.firstChild,ne=y.renderer.getClasses?.(t,y),w=An(s,C,ne,c),E=document.createElement(`style`);E.innerHTML=w,ee.insertBefore(E,te);try{await y.renderer.draw(t,e,`11.14.0`,y)}catch(n){throw s.suppressErrorRendering?p():yt.draw(t,e,`11.14.0`),n}let re=m.select(`${f} svg`),D=y.db.getAccTitle?.(),O=y.db.getAccDescription?.();zn(C,re,D,O),m.select(`[id="${e}"]`).selectAll(`foreignobject > *`).attr(`xmlns`,_n);let k=m.select(f).node().innerHTML;if(r.debug(`config.arrowMarkerAbsolute`,s.arrowMarkerAbsolute),k=jn(k,h,b(s.arrowMarkerAbsolute)),h){let e=m.select(f+` svg`).node();k=Mn(k,e)}else _||(k=g.sanitize(k,{ADD_TAGS:wn,ADD_ATTR:Tn,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(nn(),x)throw x;return p(),{diagramType:C,svg:k,bindFunctions:y.db.bindFunctions}},`render`);function Ln(e={}){let t=ee({},e);t?.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables||={},t.themeVariables.fontFamily=t.fontFamily),E(t),t?.theme&&t.theme in h?t.themeVariables=h[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=h.default.getThemeVariables(t.themeVariables)),n((typeof t==`object`?s(t):p()).logLevel),X()}i(Ln,`initialize`);var Rn=i((e,t={})=>{let{code:n}=ln(e);return en.fromText(n,t)},`getDiagramFromText`);function zn(e,t,n,r){Qt(t,e),$t(t,n,r,t.attr(`id`))}i(zn,`addA11yInfo`);var Z=Object.freeze({render:In,parse:Dn,getDiagramFromText:Rn,initialize:Ln,getConfig:T,setConfig:c,getSiteConfig:p,updateSiteConfig:m,reset:i(()=>{o()},`reset`),globalReset:i(()=>{o(x)},`globalReset`),defaultConfig:x});n(T().logLevel),o(T());var Bn=i((e,t,n)=>{r.warn(e),D(e)?(n&&n(e.str,e.hash),t.push({...e,message:e.str,error:e})):(n&&n(e),e instanceof Error&&t.push({str:e.message,message:e.message,hash:e.name,error:e}))},`handleError`),Vn=i(async function(e={querySelector:`.mermaid`}){try{await Hn(e)}catch(t){if(D(t)&&r.error(t.str),$.parseError&&$.parseError(t),!e.suppressErrors)throw r.error(`Use the suppressErrors option to suppress these errors`),t}},`run`),Hn=i(async function({postRenderCallback:e,querySelector:t,nodes:n}={querySelector:`.mermaid`}){let i=Z.getConfig();r.debug(`${e?``:`No `}Callback function found`);let a;if(n)a=n;else if(t)a=document.querySelectorAll(t);else throw Error(`Nodes and querySelector are both undefined`);r.debug(`Found ${a.length} diagrams`),i?.startOnLoad!==void 0&&(r.debug(`Start On Load: `+i?.startOnLoad),Z.updateSiteConfig({startOnLoad:i?.startOnLoad}));let o=new O.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed),s,c=[];for(let t of Array.from(a)){if(r.info(`Rendering diagram: `+t.id),t.getAttribute(`data-processed`))continue;t.setAttribute(`data-processed`,`true`);let n=`mermaid-${o.next()}`;s=t.innerHTML,s=ce(O.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,`<br/>`);let i=O.detectInit(s);i&&r.debug(`Detected early reinit: `,i);try{let{svg:r,bindFunctions:i}=await Zn(n,s,t);t.innerHTML=r,e&&await e(n),i&&i(t)}catch(e){Bn(e,c,$.parseError)}}if(c.length>0)throw c[0]},`runThrowsErrors`),Un=i(function(e){Z.initialize(e)},`initialize`),Wn=i(async function(e,t,n){r.warn(`mermaid.init is deprecated. Please use run instead.`),e&&Un(e);let i={postRenderCallback:n,querySelector:`.mermaid`};typeof t==`string`?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await Vn(i)},`init`),Gn=i(async(e,{lazyLoad:t=!0}={})=>{X(),d(...e),t===!1&&await Xt()},`registerExternalDiagrams`),Kn=i(function(){if($.startOnLoad){let{startOnLoad:e}=Z.getConfig();e&&$.run().catch(e=>r.error(`Mermaid failed to initialize`,e))}},`contentLoaded`);typeof document<`u`&&window.addEventListener(`load`,Kn,!1);var qn=i(function(e){$.parseError=e},`setParseErrorHandler`),Q=[],Jn=!1,Yn=i(async()=>{if(!Jn){for(Jn=!0;Q.length>0;){let e=Q.shift();if(e)try{await e()}catch(e){r.error(`Error executing queue`,e)}}Jn=!1}},`executeQueue`),Xn=i(async(e,t)=>new Promise((n,a)=>{let o=i(()=>new Promise((i,o)=>{Z.parse(e,t).then(e=>{i(e),n(e)},e=>{r.error(`Error parsing`,e),$.parseError?.(e),o(e),a(e)})}),`performCall`);Q.push(o),Yn().catch(a)}),`parse`),Zn=i((e,t,n)=>new Promise((a,o)=>{let s=i(()=>new Promise((i,s)=>{Z.render(e,t,n).then(e=>{i(e),a(e)},e=>{r.error(`Error parsing`,e),$.parseError?.(e),s(e),o(e)})}),`performCall`);Q.push(s),Yn().catch(o)}),`render`),$={startOnLoad:!0,mermaidAPI:Z,parse:Xn,render:Zn,init:Wn,run:Vn,registerExternalDiagrams:Gn,registerLayoutLoaders:le,initialize:Un,parseError:void 0,contentLoaded:Kn,setParseErrorHandler:qn,detectType:v,registerIconPacks:se,getRegisteredDiagramsMetadata:i(()=>Object.keys(C).map(e=>({id:e})),`getRegisteredDiagramsMetadata`)},Qn=$;export{Qn as default};
@@ -1,15 +1,18 @@
1
- import"./chunk-GEFDOKGD-Bs7FmFox.js";import{g as e,h as t}from"./src-Pgt9Gp65.js";import{$ as n,L as r,O as i,Q as a,b as o,d as s,tt as c}from"./chunk-7R4GIKGN-mqd2GwMg.js";import"./chunk-PU5JKC2W-D_6N6t8f.js";import"./chunk-MX3YWQON-DQpSwRf6.js";import"./chunk-YBOYWFTD-CKg4ymFF.js";import{t as l}from"./chunk-55IACEB6-CpncB3ru.js";import{t as u}from"./chunk-KX2RTZJC-BTiOJb7N.js";import"./chunk-PQ6SQG4A-D1AbThjy.js";import"./chunk-KYZI473N-CTSCuqRb.js";import"./chunk-O4XLMI2P-CcVxZh41.js";import{r as d,t as f}from"./chunk-GLR3WWYH-qQe2O5VQ.js";var p=[];for(let e=0;e<256;++e)p.push((e+256).toString(16).slice(1));function m(e,t=0){return(p[e[t+0]]+p[e[t+1]]+p[e[t+2]]+p[e[t+3]]+`-`+p[e[t+4]]+p[e[t+5]]+`-`+p[e[t+6]]+p[e[t+7]]+`-`+p[e[t+8]]+p[e[t+9]]+`-`+p[e[t+10]]+p[e[t+11]]+p[e[t+12]]+p[e[t+13]]+p[e[t+14]]+p[e[t+15]]).toLowerCase()}var h,g=new Uint8Array(16);function _(){if(!h){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);h=crypto.getRandomValues.bind(crypto)}return h(g)}var v={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function y(e,t,n){if(v.randomUUID&&!t&&!e)return v.randomUUID();e||={};let r=e.random??e.rng?.()??_();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return m(r)}var b=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,6,13,15,16,19,22],h=[1,33],g=[1,34],_=[1,6,7,11,13,15,16,19,22],v={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`MINDMAP`,11:`EOF`,13:`SPACELIST`,15:`ICON`,16:`CLASS`,19:`NODE_DSTART`,20:`NODE_DESCR`,21:`NODE_DEND`,22:`NODE_ID`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 16:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 17:case 21:r.decorateNode({class:a[s]});break;case 18:r.getLogger().trace(`SPACELIST`);break;case 19:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 20:r.decorateNode({icon:a[s]});break;case 25:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 26:this.$={id:a[s],descr:a[s],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:r,9:22,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:u,7:d,10:23,11:f},e(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:c}),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),e(p,[2,21]),e(p,[2,23]),e(p,[2,24]),e(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:d,10:32,11:f},{1:[2,7],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},e(m,[2,14],{7:h,11:g}),e(_,[2,8]),e(_,[2,9]),e(_,[2,10]),e(p,[2,15]),e(p,[2,16]),e(p,[2,17]),{20:[1,35]},{21:[1,36]},e(m,[2,13],{7:h,11:g}),e(_,[2,11]),e(_,[2,12]),{21:[1,37]},e(p,[2,25]),e(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import{g as e,h as t}from"./src-Pgt9Gp65.js";import{$ as n,L as r,O as i,Q as a,b as o,d as s,tt as c,y as l}from"./chunk-ICPOFSXX-B9LPHgU7.js";import"./chunk-5PVQY5BW-R5SE6dhE.js";import"./chunk-U2HBQHQK-Bue4Ufzn.js";import"./chunk-BSJP7CBP-CexlYBxB.js";import"./chunk-ZZ45TVLE-CBbl1Qec.js";import{t as u}from"./chunk-55IACEB6-DLqevMSj.js";import{t as d}from"./chunk-EDXVE4YY-BVR_nF3y.js";import"./chunk-X2U36JSP-CRE6lp7n.js";import"./chunk-5FUZZQ4R-6x8SlhH9.js";import"./chunk-ENJZ2VHE-CFVWytAB.js";import{r as f,t as p}from"./chunk-336JU56O-Ch9X5KoM.js";var m=[];for(let e=0;e<256;++e)m.push((e+256).toString(16).slice(1));function h(e,t=0){return(m[e[t+0]]+m[e[t+1]]+m[e[t+2]]+m[e[t+3]]+`-`+m[e[t+4]]+m[e[t+5]]+`-`+m[e[t+6]]+m[e[t+7]]+`-`+m[e[t+8]]+m[e[t+9]]+`-`+m[e[t+10]]+m[e[t+11]]+m[e[t+12]]+m[e[t+13]]+m[e[t+14]]+m[e[t+15]]).toLowerCase()}var g,_=new Uint8Array(16);function v(){if(!g){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);g=crypto.getRandomValues.bind(crypto)}return g(_)}var y={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function b(e,t,n){if(y.randomUUID&&!t&&!e)return y.randomUUID();e||={};let r=e.random??e.rng?.()??v();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return h(r)}var x=(function(){var e=t(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,4],r=[1,13],i=[1,12],a=[1,15],o=[1,16],s=[1,20],c=[1,19],l=[6,7,8],u=[1,26],d=[1,24],f=[1,25],p=[6,7,11],m=[1,6,13,15,16,19,22],h=[1,33],g=[1,34],_=[1,6,7,11,13,15,16,19,22],v={trace:t(function(){},`trace`),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:`error`,6:`SPACELINE`,7:`NL`,8:`MINDMAP`,11:`EOF`,13:`SPACELIST`,15:`ICON`,16:`CLASS`,19:`NODE_DSTART`,20:`NODE_DESCR`,21:`NODE_DEND`,22:`NODE_ID`},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:t(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 6:case 7:return r;case 8:r.getLogger().trace(`Stop NL `);break;case 9:r.getLogger().trace(`Stop EOF `);break;case 11:r.getLogger().trace(`Stop NL2 `);break;case 12:r.getLogger().trace(`Stop EOF2 `);break;case 15:r.getLogger().info(`Node: `,a[s].id),r.addNode(a[s-1].length,a[s].id,a[s].descr,a[s].type);break;case 16:r.getLogger().trace(`Icon: `,a[s]),r.decorateNode({icon:a[s]});break;case 17:case 21:r.decorateNode({class:a[s]});break;case 18:r.getLogger().trace(`SPACELIST`);break;case 19:r.getLogger().trace(`Node: `,a[s].id),r.addNode(0,a[s].id,a[s].descr,a[s].type);break;case 20:r.decorateNode({icon:a[s]});break;case 25:r.getLogger().trace(`node found ..`,a[s-2]),this.$={id:a[s-1],descr:a[s-1],type:r.getType(a[s-2],a[s])};break;case 26:this.$={id:a[s],descr:a[s],type:r.nodeType.DEFAULT};break;case 27:r.getLogger().trace(`node found ..`,a[s-3]),this.$={id:a[s-3],descr:a[s-1],type:r.getType(a[s-2],a[s])};break}},`anonymous`),table:[{3:1,4:2,5:3,6:[1,5],8:n},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:n},{6:r,7:[1,10],9:9,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},e(l,[2,3]),{1:[2,2]},e(l,[2,4]),e(l,[2,5]),{1:[2,6],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:r,9:22,12:11,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},{6:u,7:d,10:23,11:f},e(p,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:s,22:c}),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),e(p,[2,21]),e(p,[2,23]),e(p,[2,24]),e(p,[2,26],{19:[1,30]}),{20:[1,31]},{6:u,7:d,10:32,11:f},{1:[2,7],6:r,12:21,13:i,14:14,15:a,16:o,17:17,18:18,19:s,22:c},e(m,[2,14],{7:h,11:g}),e(_,[2,8]),e(_,[2,9]),e(_,[2,10]),e(p,[2,15]),e(p,[2,16]),e(p,[2,17]),{20:[1,35]},{21:[1,36]},e(m,[2,13],{7:h,11:g}),e(_,[2,11]),e(_,[2,12]),{21:[1,37]},e(p,[2,25]),e(p,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:t(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:t(function(e){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(e,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;typeof g.yy.parseError==`function`?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}t(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}t(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};v.lexer=(function(){return{EOF:1,parseError:t(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:t(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:t(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:t(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:t(function(){return this._more=!0,this},`more`),reject:t(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:t(function(e){this.unput(this.match.slice(e))},`less`),pastInput:t(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:t(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:t(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
5
5
  `+t+`^`},`showPosition`),test_match:t(function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},`test_match`),next:t(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
6
- `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t(function(){return this.next()||this.lex()},`lex`),begin:t(function(e){this.conditionStack.push(e)},`begin`),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t(function(e){this.begin(e)},`pushState`),stateStackSize:t(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t(function(e,t,n,r){switch(n){case 0:return e.getLogger().trace(`Found comment`,t.yytext),6;case 1:return 8;case 2:this.begin(`CLASS`);break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:e.getLogger().trace(`Begin icon`),this.begin(`ICON`);break;case 6:return e.getLogger().trace(`SPACELINE`),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace(`end icon`),this.popState();break;case 10:return e.getLogger().trace(`Exploding node`),this.begin(`NODE`),19;case 11:return e.getLogger().trace(`Cloud`),this.begin(`NODE`),19;case 12:return e.getLogger().trace(`Explosion Bang`),this.begin(`NODE`),19;case 13:return e.getLogger().trace(`Cloud Bang`),this.begin(`NODE`),19;case 14:return this.begin(`NODE`),19;case 15:return this.begin(`NODE`),19;case 16:return this.begin(`NODE`),19;case 17:return this.begin(`NODE`),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin(`NSTR2`);break;case 22:return`NODE_DESCR`;case 23:this.popState();break;case 24:e.getLogger().trace(`Starting NSTR`),this.begin(`NSTR`);break;case 25:return e.getLogger().trace(`description:`,t.yytext),`NODE_DESCR`;case 26:this.popState();break;case 27:return this.popState(),e.getLogger().trace(`node end ))`),`NODE_DEND`;case 28:return this.popState(),e.getLogger().trace(`node end )`),`NODE_DEND`;case 29:return this.popState(),e.getLogger().trace(`node end ...`,t.yytext),`NODE_DEND`;case 30:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 31:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 32:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 33:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 34:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 35:return e.getLogger().trace(`Long description:`,t.yytext),20;case 36:return e.getLogger().trace(`Long description:`,t.yytext),20}},`anonymous`),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}}})();function y(){this.yy={}}return t(y,`Parser`),y.prototype=v,v.Parser=y,new y})();b.parser=b;var x=b,S=12,C={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},w=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=C,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{t(this,`MindmapDB`)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let t=this.nodes.length-1;t>=0;t--)if(this.nodes[t].level<e)return this.nodes[t];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(t,n,i,a){e.info(`addNode`,t,n,i,a);let c=!1;this.nodes.length===0?(this.baseLevel=t,t=0,c=!0):this.baseLevel!==void 0&&(t-=this.baseLevel,c=!1);let l=o(),u=l.mindmap?.padding??s.mindmap.padding;switch(a){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:u*=2;break}let d={id:this.count++,nodeId:r(n,l),level:t,descr:r(i,l),type:a,children:[],width:l.mindmap?.maxNodeWidth??s.mindmap.maxNodeWidth,padding:u,isRoot:c},f=this.getParent(t);if(f)f.children.push(d),this.nodes.push(d);else if(c)this.nodes.push(d);else throw Error(`There can be only one root. No parent could be found for ("${d.descr}")`)}getType(t,n){switch(e.debug(`In get type`,t,n),t){case`[`:return this.nodeType.RECT;case`(`:return n===`)`?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case`((`:return this.nodeType.CIRCLE;case`)`:return this.nodeType.CLOUD;case`))`:return this.nodeType.BANG;case`{{`:return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,t){this.elements[e]=t}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;let t=o(),n=this.nodes[this.nodes.length-1];e.icon&&(n.icon=r(e.icon,t)),e.class&&(n.class=r(e.class,t))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return`no-border`;case this.nodeType.RECT:return`rect`;case this.nodeType.ROUNDED_RECT:return`rounded-rect`;case this.nodeType.CIRCLE:return`circle`;case this.nodeType.CLOUD:return`cloud`;case this.nodeType.BANG:return`bang`;case this.nodeType.HEXAGON:return`hexgon`;default:return`no-border`}}assignSections(e,t){if(e.level===0?e.section=void 0:e.section=t,e.children)for(let[n,r]of e.children.entries()){let i=e.level===0?n%(S-1):t;this.assignSections(r,i)}}flattenNodes(e,n){let r=[`mindmap-node`];e.isRoot===!0?r.push(`section-root`,`section--1`):e.section!==void 0&&r.push(`section-${e.section}`),e.class&&r.push(e.class);let i=r.join(` `),a=t(e=>{switch(e){case C.CIRCLE:return`mindmapCircle`;case C.RECT:return`rect`;case C.ROUNDED_RECT:return`rounded`;case C.CLOUD:return`cloud`;case C.BANG:return`bang`;case C.HEXAGON:return`hexagon`;case C.DEFAULT:return`defaultMindmapNode`;case C.NO_BORDER:default:return`rect`}},`getShapeFromType`),o={id:e.id.toString(),domId:`node_`+e.id.toString(),label:e.descr,labelType:`markdown`,isGroup:!1,shape:a(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:i,cssStyles:[],look:`default`,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(n.push(o),e.children)for(let t of e.children)this.flattenNodes(t,n)}generateEdges(e,t){if(e.children)for(let n of e.children){let r=`edge`;n.section!==void 0&&(r+=` section-edge-${n.section}`);let i=e.level+1;r+=` edge-depth-${i}`;let a={id:`edge_${e.id}_${n.id}`,start:e.id.toString(),end:n.id.toString(),type:`normal`,curve:`basis`,thickness:`normal`,look:`default`,classes:r,depth:e.level,section:n.section};t.push(a),this.generateEdges(n,t)}}getData(){let t=this.getMindmap(),n=o(),r=i().layout!==void 0,a=n;if(r||(a.layout=`cose-bilkent`),!t)return{nodes:[],edges:[],config:a};e.debug(`getData: mindmapRoot`,t,n),this.assignSections(t);let s=[],c=[];this.flattenNodes(t,s),this.generateEdges(t,c),e.debug(`getData: processed ${s.length} nodes and ${c.length} edges`);let l=new Map;for(let e of s)l.set(e.id,{shape:e.shape,width:e.width,height:e.height,padding:e.padding});return{nodes:s,edges:c,config:a,rootNode:t,markers:[`point`],direction:`TB`,nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(l),type:`mindmap`,diagramId:`mindmap-`+y()}}getLogger(){return e}},T={draw:t(async(t,n,r,i)=>{e.debug(`Rendering mindmap diagram
7
- `+t);let a=i.db,o=a.getData(),c=l(n,o.config.securityLevel);o.type=i.type,o.layoutAlgorithm=f(o.config.layout,{fallback:`cose-bilkent`}),o.diagramId=n,a.getMindmap()&&(o.nodes.forEach(e=>{e.shape===`rounded`?(e.radius=15,e.taper=15,e.stroke=`none`,e.width=0,e.padding=15):e.shape===`circle`?e.padding=10:e.shape===`rect`&&(e.width=0,e.padding=10)}),await d(o,c),u(c,o.config.mindmap?.padding??s.mindmap.padding,`mindmapDiagram`,o.config.mindmap?.useMaxWidth??s.mindmap.useMaxWidth))},`draw`)},E=t(e=>{let t=``;for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e[`lineColor`+t]=e[`lineColor`+t]||e[`cScaleInv`+t],c(e[`lineColor`+t])?e[`lineColor`+t]=n(e[`lineColor`+t],20):e[`lineColor`+t]=a(e[`lineColor`+t],20);for(let n=0;n<e.THEME_COLOR_LIMIT;n++){let r=``+(17-3*n);t+=`
6
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},`next`),lex:t(function(){return this.next()||this.lex()},`lex`),begin:t(function(e){this.conditionStack.push(e)},`begin`),popState:t(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},`popState`),_currentRules:t(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},`_currentRules`),topState:t(function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},`topState`),pushState:t(function(e){this.begin(e)},`pushState`),stateStackSize:t(function(){return this.conditionStack.length},`stateStackSize`),options:{"case-insensitive":!0},performAction:t(function(e,t,n,r){switch(n){case 0:return e.getLogger().trace(`Found comment`,t.yytext),6;case 1:return 8;case 2:this.begin(`CLASS`);break;case 3:return this.popState(),16;case 4:this.popState();break;case 5:e.getLogger().trace(`Begin icon`),this.begin(`ICON`);break;case 6:return e.getLogger().trace(`SPACELINE`),6;case 7:return 7;case 8:return 15;case 9:e.getLogger().trace(`end icon`),this.popState();break;case 10:return e.getLogger().trace(`Exploding node`),this.begin(`NODE`),19;case 11:return e.getLogger().trace(`Cloud`),this.begin(`NODE`),19;case 12:return e.getLogger().trace(`Explosion Bang`),this.begin(`NODE`),19;case 13:return e.getLogger().trace(`Cloud Bang`),this.begin(`NODE`),19;case 14:return this.begin(`NODE`),19;case 15:return this.begin(`NODE`),19;case 16:return this.begin(`NODE`),19;case 17:return this.begin(`NODE`),19;case 18:return 13;case 19:return 22;case 20:return 11;case 21:this.begin(`NSTR2`);break;case 22:return`NODE_DESCR`;case 23:this.popState();break;case 24:e.getLogger().trace(`Starting NSTR`),this.begin(`NSTR`);break;case 25:return e.getLogger().trace(`description:`,t.yytext),`NODE_DESCR`;case 26:this.popState();break;case 27:return this.popState(),e.getLogger().trace(`node end ))`),`NODE_DEND`;case 28:return this.popState(),e.getLogger().trace(`node end )`),`NODE_DEND`;case 29:return this.popState(),e.getLogger().trace(`node end ...`,t.yytext),`NODE_DEND`;case 30:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 31:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 32:return this.popState(),e.getLogger().trace(`node end (-`),`NODE_DEND`;case 33:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 34:return this.popState(),e.getLogger().trace(`node end ((`),`NODE_DEND`;case 35:return e.getLogger().trace(`Long description:`,t.yytext),20;case 36:return e.getLogger().trace(`Long description:`,t.yytext),20}},`anonymous`),rules:[/^(?:\s*%%.*)/i,/^(?:mindmap\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{CLASS:{rules:[3,4],inclusive:!1},ICON:{rules:[8,9],inclusive:!1},NSTR2:{rules:[22,23],inclusive:!1},NSTR:{rules:[25,26],inclusive:!1},NODE:{rules:[21,24,27,28,29,30,31,32,33,34,35,36],inclusive:!1},INITIAL:{rules:[0,1,2,5,6,7,10,11,12,13,14,15,16,17,18,19,20],inclusive:!0}}}})();function y(){this.yy={}}return t(y,`Parser`),y.prototype=v,v.Parser=y,new y})();x.parser=x;var S=x,C=12,w={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},T=class{constructor(){this.nodes=[],this.count=0,this.elements={},this.getLogger=this.getLogger.bind(this),this.nodeType=w,this.clear(),this.getType=this.getType.bind(this),this.getElementById=this.getElementById.bind(this),this.getParent=this.getParent.bind(this),this.getMindmap=this.getMindmap.bind(this),this.addNode=this.addNode.bind(this),this.decorateNode=this.decorateNode.bind(this)}static{t(this,`MindmapDB`)}clear(){this.nodes=[],this.count=0,this.elements={},this.baseLevel=void 0}getParent(e){for(let t=this.nodes.length-1;t>=0;t--)if(this.nodes[t].level<e)return this.nodes[t];return null}getMindmap(){return this.nodes.length>0?this.nodes[0]:null}addNode(t,n,i,a){e.info(`addNode`,t,n,i,a);let c=!1;this.nodes.length===0?(this.baseLevel=t,t=0,c=!0):this.baseLevel!==void 0&&(t-=this.baseLevel,c=!1);let l=o(),u=l.mindmap?.padding??s.mindmap.padding;switch(a){case this.nodeType.ROUNDED_RECT:case this.nodeType.RECT:case this.nodeType.HEXAGON:u*=2;break}let d={id:this.count++,nodeId:r(n,l),level:t,descr:r(i,l),type:a,children:[],width:l.mindmap?.maxNodeWidth??s.mindmap.maxNodeWidth,padding:u,isRoot:c},f=this.getParent(t);if(f)f.children.push(d),this.nodes.push(d);else if(c)this.nodes.push(d);else throw Error(`There can be only one root. No parent could be found for ("${d.descr}")`)}getType(t,n){switch(e.debug(`In get type`,t,n),t){case`[`:return this.nodeType.RECT;case`(`:return n===`)`?this.nodeType.ROUNDED_RECT:this.nodeType.CLOUD;case`((`:return this.nodeType.CIRCLE;case`)`:return this.nodeType.CLOUD;case`))`:return this.nodeType.BANG;case`{{`:return this.nodeType.HEXAGON;default:return this.nodeType.DEFAULT}}setElementForId(e,t){this.elements[e]=t}getElementById(e){return this.elements[e]}decorateNode(e){if(!e)return;let t=o(),n=this.nodes[this.nodes.length-1];e.icon&&(n.icon=r(e.icon,t)),e.class&&(n.class=r(e.class,t))}type2Str(e){switch(e){case this.nodeType.DEFAULT:return`no-border`;case this.nodeType.RECT:return`rect`;case this.nodeType.ROUNDED_RECT:return`rounded-rect`;case this.nodeType.CIRCLE:return`circle`;case this.nodeType.CLOUD:return`cloud`;case this.nodeType.BANG:return`bang`;case this.nodeType.HEXAGON:return`hexgon`;default:return`no-border`}}assignSections(e,t){if(e.level===0?e.section=void 0:e.section=t,e.children)for(let[n,r]of e.children.entries()){let i=e.level===0?n%(C-1):t;this.assignSections(r,i)}}flattenNodes(e,n){let r=o(),i=[`mindmap-node`];e.isRoot===!0?i.push(`section-root`,`section--1`):e.section!==void 0&&i.push(`section-${e.section}`),e.class&&i.push(e.class);let a=i.join(` `),s=t(e=>{let t=(r.theme?.toLowerCase()??``).includes(`redux`);switch(e){case w.CIRCLE:return`mindmapCircle`;case w.RECT:return`rect`;case w.ROUNDED_RECT:return`rounded`;case w.CLOUD:return`cloud`;case w.BANG:return`bang`;case w.HEXAGON:return`hexagon`;case w.DEFAULT:return t?`rounded`:`defaultMindmapNode`;case w.NO_BORDER:default:return`rect`}},`getShapeFromType`),c={id:e.id.toString(),domId:`node_`+e.id.toString(),label:e.descr,labelType:`markdown`,isGroup:!1,shape:s(e.type),width:e.width,height:e.height??0,padding:e.padding,cssClasses:a,cssStyles:[],look:r.look,icon:e.icon,x:e.x,y:e.y,level:e.level,nodeId:e.nodeId,type:e.type,section:e.section};if(n.push(c),e.children)for(let t of e.children)this.flattenNodes(t,n)}generateEdges(e,t){if(!e.children)return;let n=o();for(let r of e.children){let i=`edge`;r.section!==void 0&&(i+=` section-edge-${r.section}`);let a=e.level+1;i+=` edge-depth-${a}`;let o={id:`edge_${e.id}_${r.id}`,start:e.id.toString(),end:r.id.toString(),type:`normal`,curve:`basis`,thickness:`normal`,look:n.look,classes:i,depth:e.level,section:r.section};t.push(o),this.generateEdges(r,t)}}getData(){let t=this.getMindmap(),n=o(),r=i().layout!==void 0,a=n;if(r||(a.layout=`cose-bilkent`),!t)return{nodes:[],edges:[],config:a};e.debug(`getData: mindmapRoot`,t,n),this.assignSections(t);let s=[],c=[];this.flattenNodes(t,s),this.generateEdges(t,c),e.debug(`getData: processed ${s.length} nodes and ${c.length} edges`);let l=new Map;for(let e of s)l.set(e.id,{shape:e.shape,width:e.width,height:e.height,padding:e.padding});return{nodes:s,edges:c,config:a,rootNode:t,markers:[`point`],direction:`TB`,nodeSpacing:50,rankSpacing:50,shapes:Object.fromEntries(l),type:`mindmap`,diagramId:`mindmap-`+b()}}getLogger(){return e}},E={draw:t(async(t,n,r,i)=>{e.debug(`Rendering mindmap diagram
7
+ `+t);let a=i.db,o=a.getData(),c=u(n,o.config.securityLevel);if(o.type=i.type,o.layoutAlgorithm=p(o.config.layout,{fallback:`cose-bilkent`}),o.diagramId=n,!a.getMindmap())return;o.nodes.forEach(e=>{e.shape===`rounded`?(e.radius=15,e.taper=15,e.stroke=`none`,e.width=0,e.padding=15):e.shape===`circle`?e.padding=10:e.shape===`rect`?(e.width=0,e.padding=10):e.shape===`hexagon`&&(e.width=0,e.height=0)}),await f(o,c);let{themeVariables:m}=l(),{useGradient:h,gradientStart:g,gradientStop:_}=m;if(h&&g&&_){let e=c.attr(`id`),t=c.append(`defs`).append(`linearGradient`).attr(`id`,`${e}-gradient`).attr(`gradientUnits`,`objectBoundingBox`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`);t.append(`stop`).attr(`offset`,`0%`).attr(`stop-color`,g).attr(`stop-opacity`,1),t.append(`stop`).attr(`offset`,`100%`).attr(`stop-color`,_).attr(`stop-opacity`,1)}d(c,o.config.mindmap?.padding??s.mindmap.padding,`mindmapDiagram`,o.config.mindmap?.useMaxWidth??s.mindmap.useMaxWidth)},`draw`)},D=t(e=>{let{theme:t,look:r}=e,i=``;for(let t=0;t<e.THEME_COLOR_LIMIT;t++)e[`lineColor`+t]=e[`lineColor`+t]||e[`cScaleInv`+t],c(e[`lineColor`+t])?e[`lineColor`+t]=n(e[`lineColor`+t],20):e[`lineColor`+t]=a(e[`lineColor`+t],20);for(let n=0;n<e.THEME_COLOR_LIMIT;n++){let a=``+(r===`neo`?Math.max(10-(n-1)*2,2):17-3*n);i+=`
8
8
  .section-${n-1} rect, .section-${n-1} path, .section-${n-1} circle, .section-${n-1} polygon, .section-${n-1} path {
9
9
  fill: ${e[`cScale`+n]};
10
10
  }
11
11
  .section-${n-1} text {
12
12
  fill: ${e[`cScaleLabel`+n]};
13
+ }
14
+ .section-${n-1} span {
15
+ color: ${e[`cScaleLabel`+n]};
13
16
  }
14
17
  .node-icon-${n-1} {
15
18
  font-size: 40px;
@@ -19,7 +22,7 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l
19
22
  stroke: ${e[`cScale`+n]};
20
23
  }
21
24
  .edge-depth-${n-1}{
22
- stroke-width: ${r};
25
+ stroke-width: ${a};
23
26
  }
24
27
  .section-${n-1} line {
25
28
  stroke: ${e[`cScaleInv`+n]} ;
@@ -32,11 +35,29 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l
32
35
  .disabled text {
33
36
  fill: #efefef;
34
37
  }
35
- `}return t},`genSections`),D={get db(){return new w},renderer:T,parser:x,styles:t(e=>`
38
+ [data-look="neo"].mindmap-node.section-${n-1} rect, [data-look="neo"].mindmap-node.section-${n-1} path, [data-look="neo"].mindmap-node.section-${n-1} circle, [data-look="neo"].mindmap-node.section-${n-1} polygon {
39
+ fill: ${t===`redux`||t===`redux-dark`||t===`neutral`?e.mainBkg:e[`cScale`+n]};
40
+ stroke: ${t===`redux`||t===`redux-dark`?e.nodeBorder:e[`cScale`+n]};
41
+ stroke-width: ${e.strokeWidth??2}px;
42
+ }
43
+ [data-look="neo"].section-edge-${n-1}{
44
+ stroke: ${t?.includes(`redux`)||t===`neo-dark`?e.nodeBorder:e[`cScale`+n]};
45
+ }
46
+ [data-look="neo"].mindmap-node.section-${n-1} text {
47
+ fill: ${t===`redux`||t===`redux-dark`?e.nodeBorder:e[`cScaleLabel`+(t===`neutral`?1:n)]};
48
+ }
49
+ `}return i},`genSections`),O=t((e,t,n)=>{let r=``;for(let i=0;i<e;i++)r+=`
50
+ [data-look="neo"].mindmap-node.section-${i-1} rect, [data-look="neo"].mindmap-node.section-${i-1} path, [data-look="neo"].mindmap-node.section-${i-1} circle, [data-look="neo"].mindmap-node.section-${i-1} polygon {
51
+ stroke: url(${t}-gradient);
52
+ fill: ${n};
53
+ }
54
+ .section-${i-1} line {
55
+ stroke-width: 0;
56
+ }`;return r},`genGradient`),k={get db(){return new T},renderer:E,parser:S,styles:t(e=>{let{theme:t}=e,n=e.svgId,r=e.dropShadow?e.dropShadow.replace(`url(#drop-shadow)`,`url(${n}-drop-shadow)`):`none`;return`
36
57
  .edge {
37
58
  stroke-width: 3;
38
59
  }
39
- ${E(e)}
60
+ ${D(e)}
40
61
  .section-root rect, .section-root path, .section-root circle, .section-root polygon {
41
62
  fill: ${e.git0};
42
63
  }
@@ -44,10 +65,7 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l
44
65
  fill: ${e.gitBranchLabel0};
45
66
  }
46
67
  .section-root span {
47
- color: ${e.gitBranchLabel0};
48
- }
49
- .section-2 span {
50
- color: ${e.gitBranchLabel0};
68
+ color: ${t?.includes(`redux`)?e.nodeBorder:e.gitBranchLabel0};
51
69
  }
52
70
  .icon-container {
53
71
  height:100%;
@@ -65,4 +83,14 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l
65
83
  dominant-baseline: middle;
66
84
  text-align: center;
67
85
  }
68
- `,`getStyles`)};export{D as diagram};
86
+ [data-look="neo"].mindmap-node {
87
+ filter: ${r};
88
+ }
89
+ [data-look="neo"].mindmap-node.section-root rect, [data-look="neo"].mindmap-node.section-root path, [data-look="neo"].mindmap-node.section-root circle, [data-look="neo"].mindmap-node.section-root polygon {
90
+ fill: ${t?.includes(`redux`)?e.mainBkg:e.git0};
91
+ }
92
+ [data-look="neo"].mindmap-node.section-root .text-inner-tspan {
93
+ fill: ${t?.includes(`redux`)?e.nodeBorder:e[`cScaleLabel`+ +(t===`neutral`)]};
94
+ }
95
+ ${e.useGradient&&n&&e.mainBkg?O(e.THEME_COLOR_LIMIT,n,e.mainBkg):``}
96
+ `},`getStyles`)};export{k as diagram};
@@ -0,0 +1 @@
1
+ import"./chunk-K5T4RW27-kmGSebVE.js";import{n as e}from"./chunk-FOC6F5B3-DzCiCLGs.js";export{e as createPacketServices};
@@ -0,0 +1,2 @@
1
+ import{a as e,t}from"./chunk-DpHwWhuW.js";var n=t(((t,n)=>{(function(e){if(typeof t==`object`&&n!==void 0)n.exports=e();else if(typeof define==`function`&&define.amd)define([],e);else{var r=typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:this;r.pica=e()}})(function(){return(function(){function t(n,r,i){function a(s,c){if(!r[s]){if(!n[s]){var l=typeof e==`function`&&e;if(!c&&l)return l(s,!0);if(o)return o(s,!0);var u=Error(`Cannot find module '`+s+`'`);throw u.code=`MODULE_NOT_FOUND`,u}var d=r[s]={exports:{}};n[s][0].call(d.exports,function(e){var t=n[s][1][e];return a(t||e)},d,d.exports,t,n,r,i)}return r[s].exports}for(var o=typeof e==`function`&&e,s=0;s<i.length;s++)a(i[s]);return a}return t})()({1:[function(e,t,n){var r=e(`inherits`),i=e(`multimath`),a=e(`./mm_unsharp_mask`),o=e(`./mm_resize`);function s(e){var t=e||[],n={js:t.indexOf(`js`)>=0,wasm:t.indexOf(`wasm`)>=0};i.call(this,n),this.features={js:n.js,wasm:n.wasm&&this.has_wasm()},this.use(a),this.use(o)}r(s,i),s.prototype.resizeAndUnsharp=function(e,t){var n=this.resize(e,t);return e.unsharpAmount&&this.unsharp_mask(n,e.toWidth,e.toHeight,e.unsharpAmount,e.unsharpRadius,e.unsharpThreshold),n},t.exports=s},{"./mm_resize":4,"./mm_unsharp_mask":9,inherits:19,multimath:20}],2:[function(e,t,n){function r(e){return e<0?0:e>255?255:e}function i(e,t,n,i,a,o){var s,c,l,u,d,f,p,m,h,g,_,v=0,y=0;for(h=0;h<i;h++){for(d=0,g=0;g<a;g++){for(f=o[d++],p=o[d++],m=v+f*4|0,s=c=l=u=0;p>0;p--)_=o[d++],u=u+_*e[m+3]|0,l=l+_*e[m+2]|0,c=c+_*e[m+1]|0,s=s+_*e[m]|0,m=m+4|0;t[y+3]=r(u+8192>>14),t[y+2]=r(l+8192>>14),t[y+1]=r(c+8192>>14),t[y]=r(s+8192>>14),y=y+i*4|0}y=(h+1)*4|0,v=(h+1)*n*4|0}}function a(e,t,n,i,a,o){var s,c,l,u,d,f,p,m,h,g,_,v=0,y=0;for(h=0;h<i;h++){for(d=0,g=0;g<a;g++){for(f=o[d++],p=o[d++],m=v+f*4|0,s=c=l=u=0;p>0;p--)_=o[d++],u=u+_*e[m+3]|0,l=l+_*e[m+2]|0,c=c+_*e[m+1]|0,s=s+_*e[m]|0,m=m+4|0;t[y+3]=r(u+8192>>14),t[y+2]=r(l+8192>>14),t[y+1]=r(c+8192>>14),t[y]=r(s+8192>>14),y=y+i*4|0}y=(h+1)*4|0,v=(h+1)*n*4|0}}t.exports={convolveHorizontally:i,convolveVertically:a}},{}],3:[function(e,t,n){t.exports=`AGFzbQEAAAAADAZkeWxpbmsAAAAAAAEXA2AAAGAGf39/f39/AGAHf39/f39/fwACDwEDZW52Bm1lbW9yeQIAAAMEAwABAgYGAX8AQQALB1cFEV9fd2FzbV9jYWxsX2N0b3JzAAAIY29udm9sdmUAAQpjb252b2x2ZUhWAAIMX19kc29faGFuZGxlAwAYX193YXNtX2FwcGx5X2RhdGFfcmVsb2NzAAAK7AMDAwABC8YDAQ9/AkAgA0UNACAERQ0AA0AgDCENQQAhE0EAIQcDQCAHQQJqIQYCfyAHQQF0IAVqIgcuAQIiFEUEQEGAwAAhCEGAwAAhCUGAwAAhCkGAwAAhCyAGDAELIBIgBy4BAGohCEEAIQsgFCEHQQAhDiAGIQlBACEPQQAhEANAIAUgCUEBdGouAQAiESAAIAhBAnRqKAIAIgpBGHZsIBBqIRAgCkH/AXEgEWwgC2ohCyAKQRB2Qf8BcSARbCAPaiEPIApBCHZB/wFxIBFsIA5qIQ4gCEEBaiEIIAlBAWohCSAHQQFrIgcNAAsgC0GAQGshCCAOQYBAayEJIA9BgEBrIQogEEGAQGshCyAGIBRqCyEHIAEgDUECdGogCUEOdSIGQf8BIAZB/wFIGyIGQQAgBkEAShtBCHRBgP4DcSAKQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG0EQdEGAgPwHcSALQQ51IgZB/wEgBkH/AUgbIgZBACAGQQBKG0EYdHJyIAhBDnUiBkH/ASAGQf8BSBsiBkEAIAZBAEobcjYCACADIA1qIQ0gE0EBaiITIARHDQALIAxBAWoiDCACbCESIAMgDEcNAAsLCx4AQQAgAiADIAQgBSAAEAEgAkEAIAQgBSAGIAEQAQs=`},{}],4:[function(e,t,n){t.exports={name:`resize`,fn:e(`./resize`),wasm_fn:e(`./resize_wasm`),wasm_src:e(`./convolve_wasm_base64`)}},{"./convolve_wasm_base64":3,"./resize":5,"./resize_wasm":8}],5:[function(e,t,n){var r=e(`./resize_filter_gen`),i=e(`./convolve`).convolveHorizontally,a=e(`./convolve`).convolveVertically;function o(e,t,n){for(var r=3,i=t*n*4|0;r<i;)e[r]=255,r=r+4|0}t.exports=function(e){var t=e.src,n=e.width,s=e.height,c=e.toWidth,l=e.toHeight,u=e.scaleX||e.toWidth/e.width,d=e.scaleY||e.toHeight/e.height,f=e.offsetX||0,p=e.offsetY||0,m=e.dest||new Uint8Array(c*l*4),h=e.quality===void 0?3:e.quality,g=e.alpha||!1,_=r(h,n,c,u,f),v=r(h,s,l,d,p),y=new Uint8Array(c*s*4);return i(t,y,n,s,c,_),a(y,m,s,c,l,v),g||o(m,c,l),m}},{"./convolve":2,"./resize_filter_gen":6}],6:[function(e,t,n){var r=e(`./resize_filter_info`),i=14;function a(e){return Math.round(e*((1<<i)-1))}t.exports=function(e,t,n,i,o){var s=r[e].filter,c=1/i,l=Math.min(1,i),u=r[e].win/l,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O=Math.floor((u+1)*2),k=new Int16Array((O+2)*n),A=0,j=!k.subarray||!k.set;for(d=0;d<n;d++){for(f=(d+.5)*c+o,p=Math.max(0,Math.floor(f-u)),m=Math.min(t-1,Math.ceil(f+u)),h=m-p+1,g=new Float32Array(h),_=new Int16Array(h),v=0,y=p,b=0;y<=m;y++,b++)x=s((y+.5-f)*l),v+=x,g[b]=x;for(S=0,b=0;b<g.length;b++)C=g[b]/v,S+=C,_[b]=a(C);for(_[n>>1]+=a(1-S),w=0;w<_.length&&_[w]===0;)w++;if(w<_.length){for(T=_.length-1;T>0&&_[T]===0;)T--;if(E=p+w,D=T-w+1,k[A++]=E,k[A++]=D,!j)k.set(_.subarray(w,T+1),A),A+=D;else for(b=w;b<=T;b++)k[A++]=_[b]}else k[A++]=0,k[A++]=0}return k}},{"./resize_filter_info":7}],7:[function(e,t,n){t.exports=[{win:.5,filter:function(e){return+(e>=-.5&&e<.5)}},{win:1,filter:function(e){if(e<=-1||e>=1)return 0;if(e>-1.1920929e-7&&e<1.1920929e-7)return 1;var t=e*Math.PI;return Math.sin(t)/t*(.54+.46*Math.cos(t/1))}},{win:2,filter:function(e){if(e<=-2||e>=2)return 0;if(e>-1.1920929e-7&&e<1.1920929e-7)return 1;var t=e*Math.PI;return Math.sin(t)/t*Math.sin(t/2)/(t/2)}},{win:3,filter:function(e){if(e<=-3||e>=3)return 0;if(e>-1.1920929e-7&&e<1.1920929e-7)return 1;var t=e*Math.PI;return Math.sin(t)/t*Math.sin(t/3)/(t/3)}}]},{}],8:[function(e,t,n){var r=e(`./resize_filter_gen`);function i(e,t,n){for(var r=3,i=t*n*4|0;r<i;)e[r]=255,r=r+4|0}function a(e){return new Uint8Array(e.buffer,0,e.byteLength)}var o=!0;try{o=new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0]===1}catch{}function s(e,t,n){if(o){t.set(a(e),n);return}for(var r=n,i=0;i<e.length;i++){var s=e[i];t[r++]=s&255,t[r++]=s>>8&255}}t.exports=function(e){var t=e.src,n=e.width,a=e.height,o=e.toWidth,c=e.toHeight,l=e.scaleX||e.toWidth/e.width,u=e.scaleY||e.toHeight/e.height,d=e.offsetX||0,f=e.offsetY||0,p=e.dest||new Uint8Array(o*c*4),m=e.quality===void 0?3:e.quality,h=e.alpha||!1,g=r(m,n,o,l,d),_=r(m,a,c,u,f),v=this.__align(0+Math.max(t.byteLength,p.byteLength)),y=this.__align(v+a*o*4),b=this.__align(y+g.byteLength),x=b+_.byteLength,S=this.__instance(`resize`,x),C=new Uint8Array(this.__memory.buffer),w=new Uint32Array(this.__memory.buffer),T=new Uint32Array(t.buffer);return w.set(T),s(g,C,y),s(_,C,b),(S.exports.convolveHV||S.exports._convolveHV)(y,b,v,n,a,o,c),new Uint32Array(p.buffer).set(new Uint32Array(this.__memory.buffer,0,c*o)),h||i(p,o,c),p}},{"./resize_filter_gen":6}],9:[function(e,t,n){t.exports={name:`unsharp_mask`,fn:e(`./unsharp_mask`),wasm_fn:e(`./unsharp_mask_wasm`),wasm_src:e(`./unsharp_mask_wasm_base64`)}},{"./unsharp_mask":10,"./unsharp_mask_wasm":11,"./unsharp_mask_wasm_base64":12}],10:[function(e,t,n){var r=e(`glur/mono16`);function i(e,t,n){for(var r=t*n,i=new Uint16Array(r),a,o,s,c,l=0;l<r;l++)a=e[4*l],o=e[4*l+1],s=e[4*l+2],c=a>=o&&a>=s?a:o>=s&&o>=a?o:s,i[l]=c<<8;return i}t.exports=function(e,t,n,a,o,s){var c,l,u,d,f;if(!(a===0||o<.5)){o>2&&(o=2);var p=i(e,t,n),m=new Uint16Array(p);r(m,t,n,o);for(var h=a/100*4096+.5|0,g=s<<8,_=t*n,v=0;v<_;v++)c=p[v],d=c-m[v],Math.abs(d)>=g&&(l=c+(h*d+2048>>12),l=l>65280?65280:l,l=l<0?0:l,c=c===0?1:c,u=(l<<12)/c|0,f=v*4,e[f]=e[f]*u+2048>>12,e[f+1]=e[f+1]*u+2048>>12,e[f+2]=e[f+2]*u+2048>>12)}}},{"glur/mono16":18}],11:[function(e,t,n){t.exports=function(e,t,n,r,i,a){if(!(r===0||i<.5)){i>2&&(i=2);var o=t*n,s=o*4,c=o*2,l=o*2,u=Math.max(t,n)*4,d=32,f=0,p=s,m=p+c,h=m+l,g=h+l,_=g+u,v=this.__instance(`unsharp_mask`,s+c+l*2+u+d,{exp:Math.exp}),y=new Uint32Array(e.buffer);new Uint32Array(this.__memory.buffer).set(y);var b=v.exports.hsv_v16||v.exports._hsv_v16;b(f,p,t,n),b=v.exports.blurMono16||v.exports._blurMono16,b(p,m,h,g,_,t,n,i),b=v.exports.unsharp||v.exports._unsharp,b(f,f,p,m,t,n,r,a),y.set(new Uint32Array(this.__memory.buffer,0,o))}}},{}],12:[function(e,t,n){t.exports=`AGFzbQEAAAAADAZkeWxpbmsAAAAAAAE0B2AAAGAEf39/fwBgBn9/f39/fwBgCH9/f39/f39/AGAIf39/f39/f30AYAJ9fwBgAXwBfAIZAgNlbnYDZXhwAAYDZW52Bm1lbW9yeQIAAAMHBgAFAgQBAwYGAX8AQQALB4oBCBFfX3dhc21fY2FsbF9jdG9ycwABFl9fYnVpbGRfZ2F1c3NpYW5fY29lZnMAAg5fX2dhdXNzMTZfbGluZQADCmJsdXJNb25vMTYABAdoc3ZfdjE2AAUHdW5zaGFycAAGDF9fZHNvX2hhbmRsZQMAGF9fd2FzbV9hcHBseV9kYXRhX3JlbG9jcwABCsUMBgMAAQvWAQEHfCABRNuGukOCGvs/IAC7oyICRAAAAAAAAADAohAAIgW2jDgCFCABIAKaEAAiAyADoCIGtjgCECABRAAAAAAAAPA/IAOhIgQgBKIgAyACIAKgokQAAAAAAADwP6AgBaGjIgS2OAIAIAEgBSAEmqIiB7Y4AgwgASADIAJEAAAAAAAA8D+gIASioiIItjgCCCABIAMgAkQAAAAAAADwv6AgBKKiIgK2OAIEIAEgByAIoCAFRAAAAAAAAPA/IAahoCIDo7Y4AhwgASAEIAKgIAOjtjgCGAuGBQMGfwl8An0gAyoCDCEVIAMqAgghFiADKgIUuyERIAMqAhC7IRACQCAEQQFrIghBAEgiCQRAIAIhByAAIQYMAQsgAiAALwEAuCIPIAMqAhi7oiIMIBGiIg0gDCAQoiAPIAMqAgS7IhOiIhQgAyoCALsiEiAPoqCgoCIOtjgCACACQQRqIQcgAEECaiEGIAhFDQAgCEEBIAhBAUgbIgpBf3MhCwJ/IAQgCmtBAXFFBEAgDiENIAgMAQsgAiANIA4gEKIgFCASIAAvAQK4Ig+ioKCgIg22OAIEIAJBCGohByAAQQRqIQYgDiEMIARBAmsLIQIgC0EAIARrRg0AA0AgByAMIBGiIA0gEKIgDyAToiASIAYvAQC4Ig6ioKCgIgy2OAIAIAcgDSARoiAMIBCiIA4gE6IgEiAGLwECuCIPoqCgoCINtjgCBCAHQQhqIQcgBkEEaiEGIAJBAkohACACQQJrIQIgAA0ACwsCQCAJDQAgASAFIAhsQQF0aiIAAn8gBkECay8BACICuCINIBW7IhKiIA0gFrsiE6KgIA0gAyoCHLuiIgwgEKKgIAwgEaKgIg8gB0EEayIHKgIAu6AiDkQAAAAAAADwQWMgDkQAAAAAAAAAAGZxBEAgDqsMAQtBAAs7AQAgCEUNACAGQQRrIQZBACAFa0EBdCEBA0ACfyANIBKiIAJB//8DcbgiDSAToqAgDyIOIBCioCAMIBGioCIPIAdBBGsiByoCALugIgxEAAAAAAAA8EFjIAxEAAAAAAAAAABmcQRAIAyrDAELQQALIQMgBi8BACECIAAgAWoiACADOwEAIAZBAmshBiAIQQFKIQMgDiEMIAhBAWshCCADDQALCwvRAgIBfwd8AkAgB0MAAAAAWw0AIARE24a6Q4Ia+z8gB0MAAAA/l7ujIglEAAAAAAAAAMCiEAAiDLaMOAIUIAQgCZoQACIKIAqgIg22OAIQIAREAAAAAAAA8D8gCqEiCyALoiAKIAkgCaCiRAAAAAAAAPA/oCAMoaMiC7Y4AgAgBCAMIAuaoiIOtjgCDCAEIAogCUQAAAAAAADwP6AgC6KiIg+2OAIIIAQgCiAJRAAAAAAAAPC/oCALoqIiCbY4AgQgBCAOIA+gIAxEAAAAAAAA8D8gDaGgIgqjtjgCHCAEIAsgCaAgCqO2OAIYIAYEQANAIAAgBSAIbEEBdGogAiAIQQF0aiADIAQgBSAGEAMgCEEBaiIIIAZHDQALCyAFRQ0AQQAhCANAIAIgBiAIbEEBdGogASAIQQF0aiADIAQgBiAFEAMgCEEBaiIIIAVHDQALCwtxAQN/IAIgA2wiBQRAA0AgASAAKAIAIgRBEHZB/wFxIgIgAiAEQQh2Qf8BcSIDIAMgBEH/AXEiBEkbIAIgA0sbIgYgBiAEIAIgBEsbIAMgBEsbQQh0OwEAIAFBAmohASAAQQRqIQAgBUEBayIFDQALCwuZAgIDfwF8IAQgBWwhBAJ/IAazQwAAgEWUQwAAyEKVu0QAAAAAAADgP6AiC5lEAAAAAAAA4EFjBEAgC6oMAQtBgICAgHgLIQUgBARAIAdBCHQhCUEAIQYDQCAJIAIgBkEBdCIHai8BACIBIAMgB2ovAQBrIgcgB0EfdSIIaiAIc00EQCAAIAZBAnQiCGoiCiAFIAdsQYAQakEMdSABaiIHQYD+AyAHQYD+A0gbIgdBACAHQQBKG0EMdCABQQEgARtuIgEgCi0AAGxBgBBqQQx2OgAAIAAgCEEBcmoiByABIActAABsQYAQakEMdjoAACAAIAhBAnJqIgcgASAHLQAAbEGAEGpBDHY6AAALIAZBAWoiBiAERw0ACwsL`},{}],13:[function(e,t,n){var r=100;function i(e,t){this.create=e,this.available=[],this.acquired={},this.lastId=1,this.timeoutId=0,this.idle=t||2e3}i.prototype.acquire=function(){var e=this,t;return this.available.length===0?(t=this.create(),t.id=this.lastId++,t.release=function(){return e.release(t)}):t=this.available.pop(),this.acquired[t.id]=t,t},i.prototype.release=function(e){var t=this;delete this.acquired[e.id],e.lastUsed=Date.now(),this.available.push(e),this.timeoutId===0&&(this.timeoutId=setTimeout(function(){return t.gc()},r))},i.prototype.gc=function(){var e=this,t=Date.now();this.available=this.available.filter(function(n){return t-n.lastUsed>e.idle?(n.destroy(),!1):!0}),this.available.length===0?this.timeoutId=0:this.timeoutId=setTimeout(function(){return e.gc()},r)},t.exports=i},{}],14:[function(e,t,n){var r=2;t.exports=function(e,t,n,i,a,o){var s=n/e,c=i/t,l=(2*o+r+1)/a;if(l>.5)return[[n,i]];var u=Math.ceil(Math.log(Math.min(s,c))/Math.log(l));if(u<=1)return[[n,i]];for(var d=[],f=0;f<u;f++){var p=Math.round((e**(u-f-1)*n**+(f+1))**(1/u)),m=Math.round((t**(u-f-1)*i**+(f+1))**(1/u));d.push([p,m])}return d}},{}],15:[function(e,t,n){var r=1e-5;function i(e){var t=Math.round(e);return Math.abs(e-t)<r?t:Math.floor(e)}function a(e){var t=Math.round(e);return Math.abs(e-t)<r?t:Math.ceil(e)}t.exports=function(e){var t=e.toWidth/e.width,n=e.toHeight/e.height,r=i(e.srcTileSize*t)-2*e.destTileBorder,o=i(e.srcTileSize*n)-2*e.destTileBorder;if(r<1||o<1)throw Error(`Internal error in pica: target tile width/height is too small.`);var s,c,l,u,d,f,p=[],m;for(u=0;u<e.toHeight;u+=o)for(l=0;l<e.toWidth;l+=r)s=l-e.destTileBorder,s<0&&(s=0),d=l+r+e.destTileBorder-s,s+d>=e.toWidth&&(d=e.toWidth-s),c=u-e.destTileBorder,c<0&&(c=0),f=u+o+e.destTileBorder-c,c+f>=e.toHeight&&(f=e.toHeight-c),m={toX:s,toY:c,toWidth:d,toHeight:f,toInnerX:l,toInnerY:u,toInnerWidth:r,toInnerHeight:o,offsetX:s/t-i(s/t),offsetY:c/n-i(c/n),scaleX:t,scaleY:n,x:i(s/t),y:i(c/n),width:a(d/t),height:a(f/n)},p.push(m);return p}},{}],16:[function(e,t,n){function r(e){return Object.prototype.toString.call(e)}t.exports.isCanvas=function(e){var t=r(e);return t===`[object HTMLCanvasElement]`||t===`[object OffscreenCanvas]`||t===`[object Canvas]`},t.exports.isImage=function(e){return r(e)===`[object HTMLImageElement]`},t.exports.isImageBitmap=function(e){return r(e)===`[object ImageBitmap]`},t.exports.limiter=function(e){var t=0,n=[];function r(){t<e&&n.length&&(t++,n.shift()())}return function(e){return new Promise(function(i,a){n.push(function(){e().then(function(e){i(e),t--,r()},function(e){a(e),t--,r()})}),r()})}},t.exports.cib_quality_name=function(e){switch(e){case 0:return`pixelated`;case 1:return`low`;case 2:return`medium`}return`high`},t.exports.cib_support=function(e){return Promise.resolve().then(function(){if(typeof createImageBitmap>`u`)return!1;var t=e(100,100);return createImageBitmap(t,0,0,100,100,{resizeWidth:10,resizeHeight:10,resizeQuality:`high`}).then(function(e){var n=e.width===10;return e.close(),t=null,n})}).catch(function(){return!1})},t.exports.worker_offscreen_canvas_support=function(){return new Promise(function(e,t){if(typeof OffscreenCanvas>`u`){e(!1);return}function n(e){if(typeof createImageBitmap>`u`){e.postMessage(!1);return}Promise.resolve().then(function(){var e=new OffscreenCanvas(10,10);return e.getContext(`2d`).rect(0,0,1,1),createImageBitmap(e,0,0,1,1)}).then(function(){return e.postMessage(!0)},function(){return e.postMessage(!1)})}var r=btoa(`(${n.toString()})(self);`),i=new Worker(`data:text/javascript;base64,${r}`);i.onmessage=function(t){return e(t.data)},i.onerror=t}).then(function(e){return e},function(){return!1})},t.exports.can_use_canvas=function(e){var t=!1;try{var n=e(2,1).getContext(`2d`),r=n.createImageData(2,1);r.data[0]=12,r.data[1]=23,r.data[2]=34,r.data[3]=255,r.data[4]=45,r.data[5]=56,r.data[6]=67,r.data[7]=255,n.putImageData(r,0,0),r=null,r=n.getImageData(0,0,2,1),r.data[0]===12&&r.data[1]===23&&r.data[2]===34&&r.data[3]===255&&r.data[4]===45&&r.data[5]===56&&r.data[6]===67&&r.data[7]===255&&(t=!0)}catch{}return t},t.exports.cib_can_use_region=function(){return new Promise(function(e){if(typeof createImageBitmap>`u`){e(!1);return}var t=new Image;t.src=`data:image/jpeg;base64,/9j/4QBiRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAYAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAAAAABIAAAAAQAAAEgAAAAB/9sAQwAEAwMEAwMEBAMEBQQEBQYKBwYGBgYNCQoICg8NEBAPDQ8OERMYFBESFxIODxUcFRcZGRsbGxAUHR8dGh8YGhsa/9sAQwEEBQUGBQYMBwcMGhEPERoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoa/8IAEQgAAQACAwERAAIRAQMRAf/EABQAAQAAAAAAAAAAAAAAAAAAAAf/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAF/P//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAQUCf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEABj8Cf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8hf//aAAwDAQACAAMAAAAQH//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Qf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Qf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8Qf//Z`,t.onload=function(){createImageBitmap(t,0,0,t.width,t.height).then(function(n){n.width===t.width&&n.height===t.height?e(!0):e(!1)},function(){return e(!1)})},t.onerror=function(){return e(!1)}})}},{}],17:[function(e,t,n){t.exports=function(){var t=e(`./mathlib`),n;onmessage=function(e){var r=e.data.opts,i=!1;if(!r.src&&r.srcBitmap){var a=new OffscreenCanvas(r.width,r.height),o=a.getContext(`2d`,{alpha:!!r.alpha});o.drawImage(r.srcBitmap,0,0),r.src=o.getImageData(0,0,r.width,r.height).data,a.width=a.height=0,a=null,r.srcBitmap.close(),r.srcBitmap=null}n||=new t(e.data.features);var s=n.resizeAndUnsharp(r);if(i){var c=new ImageData(new Uint8ClampedArray(s),r.toWidth,r.toHeight),l=new OffscreenCanvas(r.toWidth,r.toHeight);l.getContext(`2d`,{alpha:!!r.alpha}).putImageData(c,0,0),createImageBitmap(l).then(function(e){postMessage({bitmap:e},[e])})}else postMessage({data:s},[s.buffer])}}},{"./mathlib":1}],18:[function(e,t,n){var r,i,a,o,s,c,l,u;function d(e){e<.5&&(e=.5);var t=Math.exp(.726*.726)/e,n=Math.exp(-t),d=Math.exp(-2*t),f=(1-n)*(1-n)/(1+2*t*n-d);return r=f,i=f*(t-1)*n,a=f*(t+1)*n,o=-f*d,s=2*n,c=-d,l=(r+i)/(1-s-c),u=(a+o)/(1-s-c),new Float32Array([r,i,a,o,s,c,l,u])}function f(e,t,n,r,i,a){var o,s,c,l,u,d,f,p,m,h,g,_,v,y;for(m=0;m<a;m++){for(d=m*i,f=m,p=0,o=e[d],u=o*r[6],l=u,g=r[0],_=r[1],v=r[4],y=r[5],h=0;h<i;h++)s=e[d],c=s*g+o*_+l*v+u*y,u=l,l=c,o=s,n[p]=l,p++,d++;for(d--,p--,f+=a*(i-1),o=e[d],u=o*r[7],l=u,s=o,g=r[2],_=r[3],h=i-1;h>=0;h--)c=s*g+o*_+l*v+u*y,u=l,l=c,o=s,s=e[d],t[f]=n[p]+l,d--,p--,f-=a}}function p(e,t,n,r){if(r){var i=new Uint16Array(e.length),a=new Float32Array(Math.max(t,n)),o=d(r);f(e,i,a,o,t,n,r),f(i,e,a,o,n,t,r)}}t.exports=p},{}],19:[function(e,t,n){typeof Object.create==`function`?t.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},{}],20:[function(e,t,n){var r=e(`object-assign`),i=e(`./lib/base64decode`),a=e(`./lib/wa_detect`),o={js:!0,wasm:!0};function s(e){if(!(this instanceof s))return new s(e);var t=r({},o,e||{});if(this.options=t,this.__cache={},this.__init_promise=null,this.__modules=t.modules||{},this.__memory=null,this.__wasm={},this.__isLE=new Uint32Array(new Uint8Array([1,0,0,0]).buffer)[0]===1,!this.options.js&&!this.options.wasm)throw Error(`mathlib: at least "js" or "wasm" should be enabled`)}s.prototype.has_wasm=a,s.prototype.use=function(e){return this.__modules[e.name]=e,this.options.wasm&&this.has_wasm()&&e.wasm_fn?this[e.name]=e.wasm_fn:this[e.name]=e.fn,this},s.prototype.init=function(){if(this.__init_promise)return this.__init_promise;if(!this.options.js&&this.options.wasm&&!this.has_wasm())return Promise.reject(Error(`mathlib: only "wasm" was enabled, but it's not supported`));var e=this;return this.__init_promise=Promise.all(Object.keys(e.__modules).map(function(t){var n=e.__modules[t];return!e.options.wasm||!e.has_wasm()||!n.wasm_fn||e.__wasm[t]?null:WebAssembly.compile(e.__base64decode(n.wasm_src)).then(function(n){e.__wasm[t]=n})})).then(function(){return e}),this.__init_promise},s.prototype.__base64decode=i,s.prototype.__reallocate=function(e){if(!this.__memory)return this.__memory=new WebAssembly.Memory({initial:Math.ceil(e/(64*1024))}),this.__memory;var t=this.__memory.buffer.byteLength;return t<e&&this.__memory.grow(Math.ceil((e-t)/(64*1024))),this.__memory},s.prototype.__instance=function(e,t,n){if(t&&this.__reallocate(t),!this.__wasm[e]){var i=this.__modules[e];this.__wasm[e]=new WebAssembly.Module(this.__base64decode(i.wasm_src))}if(!this.__cache[e]){var a={memoryBase:0,memory:this.__memory,tableBase:0,table:new WebAssembly.Table({initial:0,element:`anyfunc`})};this.__cache[e]=new WebAssembly.Instance(this.__wasm[e],{env:r(a,n||{})})}return this.__cache[e]},s.prototype.__align=function(e,t){t||=8;var n=e%t;return e+(n?t-n:0)},t.exports=s},{"./lib/base64decode":21,"./lib/wa_detect":22,"object-assign":23}],21:[function(e,t,n){var r=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;t.exports=function(e){for(var t=e.replace(/[\r\n=]/g,``),n=t.length,i=new Uint8Array(n*3>>2),a=0,o=0,s=0;s<n;s++)s%4==0&&s&&(i[o++]=a>>16&255,i[o++]=a>>8&255,i[o++]=a&255),a=a<<6|r.indexOf(t.charAt(s));var c=n%4*6;return c===0?(i[o++]=a>>16&255,i[o++]=a>>8&255,i[o++]=a&255):c===18?(i[o++]=a>>10&255,i[o++]=a>>2&255):c===12&&(i[o++]=a>>4&255),i}},{}],22:[function(e,t,n){var r;t.exports=function(){if(r!==void 0||(r=!1,typeof WebAssembly>`u`))return r;try{var e=new Uint8Array([0,97,115,109,1,0,0,0,1,6,1,96,1,127,1,127,3,2,1,0,5,3,1,0,1,7,8,1,4,116,101,115,116,0,0,10,16,1,14,0,32,0,65,1,54,2,0,32,0,40,2,0,11]),t=new WebAssembly.Module(e);return new WebAssembly.Instance(t,{}).exports.test(4)!==0&&(r=!0),r}catch{}return r}},{}],23:[function(e,t,n){var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function s(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=s()?Object.assign:function(e,t){for(var n,s=o(e),c,l=1;l<arguments.length;l++){for(var u in n=Object(arguments[l]),n)i.call(n,u)&&(s[u]=n[u]);if(r){c=r(n);for(var d=0;d<c.length;d++)a.call(n,c[d])&&(s[c[d]]=n[c[d]])}}return s}},{}],24:[function(e,t,n){var r=arguments[3],i=arguments[4],a=arguments[5],o=JSON.stringify;t.exports=function(e,t){for(var n,s=Object.keys(a),c=0,l=s.length;c<l;c++){var u=s[c],d=a[u].exports;if(d===e||d&&d.default===e){n=u;break}}if(!n){n=Math.floor(16**8*Math.random()).toString(16);for(var f={},c=0,l=s.length;c<l;c++){var u=s[c];f[u]=u}i[n]=[`function(require,module,exports){`+e+`(self); }`,f]}var p=Math.floor(16**8*Math.random()).toString(16),m={};m[n]=n,i[p]=[`function(require,module,exports){var f = require(`+o(n)+`);(f.default ? f.default : f)(self);}`,m];var h={};g(p);function g(e){for(var t in h[e]=!0,i[e][1]){var n=i[e][1][t];h[n]||g(n)}}var _=`(`+r+`)({`+Object.keys(h).map(function(e){return o(e)+`:[`+i[e][0]+`,`+o(i[e][1])+`]`}).join(`,`)+`},{},[`+o(p)+`])`,v=window.URL||window.webkitURL||window.mozURL||window.msURL,y=new Blob([_],{type:`text/javascript`});if(t&&t.bare)return y;var b=v.createObjectURL(y),x=new Worker(b);return x.objectURL=b,x}},{}],"/index.js":[function(e,t,n){function r(e,t){return c(e)||s(e,t)||a(e,t)||i()}function i(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(e,t){if(e){if(typeof e==`string`)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}}function o(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function c(e){if(Array.isArray(e))return e}var l=e(`object-assign`),u=e(`webworkify`),d=e(`./lib/mathlib`),f=e(`./lib/pool`),p=e(`./lib/utils`),m=e(`./lib/worker`),h=e(`./lib/stepper`),g=e(`./lib/tiler`),_={},v=!1;try{typeof navigator<`u`&&navigator.userAgent&&(v=navigator.userAgent.indexOf(`Safari`)>=0)}catch{}var y=1;typeof navigator<`u`&&(y=Math.min(navigator.hardwareConcurrency||1,4));var b={tile:1024,concurrency:y,features:[`js`,`wasm`,`ww`],idle:2e3,createCanvas:function(e,t){var n=document.createElement(`canvas`);return n.width=e,n.height=t,n}},x={quality:3,alpha:!1,unsharpAmount:0,unsharpRadius:0,unsharpThreshold:0},S=!1,C=!1,w=!1,T=!1,E=!1;function D(){return{value:u(m),destroy:function(){if(this.value.terminate(),typeof window<`u`){var e=window.URL||window.webkitURL||window.mozURL||window.msURL;e&&e.revokeObjectURL&&this.value.objectURL&&e.revokeObjectURL(this.value.objectURL)}}}}function O(e){if(!(this instanceof O))return new O(e);this.options=l({},b,e||{});var t=`lk_${this.options.concurrency}`;this.__limit=_[t]||p.limiter(this.options.concurrency),_[t]||(_[t]=this.__limit),this.features={js:!1,wasm:!1,cib:!1,ww:!1},this.__workersPool=null,this.__requested_features=[],this.__mathlib=null}O.prototype.init=function(){var t=this;if(this.__initPromise)return this.__initPromise;if(typeof ImageData<`u`&&typeof Uint8ClampedArray<`u`)try{new ImageData(new Uint8ClampedArray(400),10,10),S=!0}catch{}typeof ImageBitmap<`u`&&(ImageBitmap.prototype&&ImageBitmap.prototype.close?C=!0:this.debug(`ImageBitmap does not support .close(), disabled`));var n=this.options.features.slice();if(n.indexOf(`all`)>=0&&(n=[`cib`,`wasm`,`js`,`ww`]),this.__requested_features=n,this.__mathlib=new d(n),n.indexOf(`ww`)>=0&&typeof window<`u`&&`Worker`in window)try{e(`webworkify`)(function(){}).terminate(),this.features.ww=!0;var r=`wp_${JSON.stringify(this.options)}`;_[r]?this.__workersPool=_[r]:(this.__workersPool=new f(D,this.options.idle),_[r]=this.__workersPool)}catch{}var i=this.__mathlib.init().then(function(e){l(t.features,e.features)}),a=C?p.cib_support(this.options.createCanvas).then(function(e){if(t.features.cib&&n.indexOf(`cib`)<0){t.debug(`createImageBitmap() resize supported, but disabled by config`);return}n.indexOf(`cib`)>=0&&(t.features.cib=e)}):Promise.resolve(!1);w=p.can_use_canvas(this.options.createCanvas);var o=C&&S&&n.indexOf(`ww`)!==-1?p.worker_offscreen_canvas_support():Promise.resolve(!1);o=o.then(function(e){T=e});var s=p.cib_can_use_region().then(function(e){E=e});return this.__initPromise=Promise.all([i,a,o,s]).then(function(){return t}),this.__initPromise},O.prototype.__invokeResize=function(e,t){var n=this;return t.__mathCache=t.__mathCache||{},Promise.resolve().then(function(){return n.features.ww?new Promise(function(r,i){var a=n.__workersPool.acquire();t.cancelToken&&t.cancelToken.catch(function(e){return i(e)}),a.value.onmessage=function(e){a.release(),e.data.err?i(e.data.err):r(e.data)};var o=[];e.src&&o.push(e.src.buffer),e.srcBitmap&&o.push(e.srcBitmap),a.value.postMessage({opts:e,features:n.__requested_features,preload:{wasm_nodule:n.__mathlib.__}},o)}):{data:n.__mathlib.resizeAndUnsharp(e,t.__mathCache)}})},O.prototype.__extractTileData=function(e,t,n,r,i){if(this.features.ww&&T&&(p.isCanvas(t)||E))return this.debug(`Create tile for OffscreenCanvas`),createImageBitmap(r.srcImageBitmap||t,e.x,e.y,e.width,e.height).then(function(e){return i.srcBitmap=e,i});if(p.isCanvas(t))return r.srcCtx||=t.getContext(`2d`,{alpha:!!n.alpha}),this.debug(`Get tile pixel data`),i.src=r.srcCtx.getImageData(e.x,e.y,e.width,e.height).data,i;this.debug(`Draw tile imageBitmap/image to temporary canvas`);var a=this.options.createCanvas(e.width,e.height),o=a.getContext(`2d`,{alpha:!!n.alpha});return o.globalCompositeOperation=`copy`,o.drawImage(r.srcImageBitmap||t,e.x,e.y,e.width,e.height,0,0,e.width,e.height),this.debug(`Get tile pixel data`),i.src=o.getImageData(0,0,e.width,e.height).data,a.width=a.height=0,i},O.prototype.__landTileData=function(e,t,n){var r;if(this.debug(`Convert raw rgba tile result to ImageData`),t.bitmap)return n.toCtx.drawImage(t.bitmap,e.toX,e.toY),null;if(S)r=new ImageData(new Uint8ClampedArray(t.data),e.toWidth,e.toHeight);else if(r=n.toCtx.createImageData(e.toWidth,e.toHeight),r.data.set)r.data.set(t.data);else for(var i=r.data.length-1;i>=0;i--)r.data[i]=t.data[i];return this.debug(`Draw tile`),v?n.toCtx.putImageData(r,e.toX,e.toY,e.toInnerX-e.toX,e.toInnerY-e.toY,e.toInnerWidth+1e-5,e.toInnerHeight+1e-5):n.toCtx.putImageData(r,e.toX,e.toY,e.toInnerX-e.toX,e.toInnerY-e.toY,e.toInnerWidth,e.toInnerHeight),null},O.prototype.__tileAndResize=function(e,t,n){var r=this,i={srcCtx:null,srcImageBitmap:null,isImageBitmapReused:!1,toCtx:null},a=function(t){return r.__limit(function(){if(n.canceled)return n.cancelToken;var a={width:t.width,height:t.height,toWidth:t.toWidth,toHeight:t.toHeight,scaleX:t.scaleX,scaleY:t.scaleY,offsetX:t.offsetX,offsetY:t.offsetY,quality:n.quality,alpha:n.alpha,unsharpAmount:n.unsharpAmount,unsharpRadius:n.unsharpRadius,unsharpThreshold:n.unsharpThreshold};return r.debug(`Invoke resize math`),Promise.resolve(a).then(function(a){return r.__extractTileData(t,e,n,i,a)}).then(function(e){return r.debug(`Invoke resize math`),r.__invokeResize(e,n)}).then(function(e){return n.canceled?n.cancelToken:(i.srcImageData=null,r.__landTileData(t,e,i))})})};return Promise.resolve().then(function(){if(i.toCtx=t.getContext(`2d`,{alpha:!!n.alpha}),p.isCanvas(e))return null;if(p.isImageBitmap(e))return i.srcImageBitmap=e,i.isImageBitmapReused=!0,null;if(p.isImage(e))return C?(r.debug(`Decode image via createImageBitmap`),createImageBitmap(e).then(function(e){i.srcImageBitmap=e}).catch(function(e){return null})):null;throw Error(`Pica: ".from" should be Image, Canvas or ImageBitmap`)}).then(function(){if(n.canceled)return n.cancelToken;r.debug(`Calculate tiles`);var e=g({width:n.width,height:n.height,srcTileSize:r.options.tile,toWidth:n.toWidth,toHeight:n.toHeight,destTileBorder:n.__destTileBorder}).map(function(e){return a(e)});function o(e){e.srcImageBitmap&&=(e.isImageBitmapReused||e.srcImageBitmap.close(),null)}return r.debug(`Process tiles`),Promise.all(e).then(function(){return r.debug(`Finished!`),o(i),t},function(e){throw o(i),e})})},O.prototype.__processStages=function(e,t,n,i){var a=this;if(i.canceled)return i.cancelToken;var o=r(e.shift(),2),s=o[0],c=o[1],u=e.length===0;i=l({},i,{toWidth:s,toHeight:c,quality:u?i.quality:Math.min(1,i.quality)});var d;return u||(d=this.options.createCanvas(s,c)),this.__tileAndResize(t,u?n:d,i).then(function(){return u?n:(i.width=s,i.height=c,a.__processStages(e,d,n,i))}).then(function(e){return d&&(d.width=d.height=0),e})},O.prototype.__resizeViaCreateImageBitmap=function(e,t,n){var r=this,i=t.getContext(`2d`,{alpha:!!n.alpha});return this.debug(`Resize via createImageBitmap()`),createImageBitmap(e,{resizeWidth:n.toWidth,resizeHeight:n.toHeight,resizeQuality:p.cib_quality_name(n.quality)}).then(function(e){if(n.canceled)return n.cancelToken;if(!n.unsharpAmount)return i.drawImage(e,0,0),e.close(),i=null,r.debug(`Finished!`),t;r.debug(`Unsharp result`);var a=r.options.createCanvas(n.toWidth,n.toHeight),o=a.getContext(`2d`,{alpha:!!n.alpha});o.drawImage(e,0,0),e.close();var s=o.getImageData(0,0,n.toWidth,n.toHeight);return r.__mathlib.unsharp_mask(s.data,n.toWidth,n.toHeight,n.unsharpAmount,n.unsharpRadius,n.unsharpThreshold),i.putImageData(s,0,0),a.width=a.height=0,s=o=a=i=null,r.debug(`Finished!`),t})},O.prototype.resize=function(e,t,n){var r=this;this.debug(`Start resize...`);var i=l({},x);return isNaN(n)?n&&(i=l(i,n)):i=l(i,{quality:n}),i.toWidth=t.width,i.toHeight=t.height,i.width=e.naturalWidth||e.width,i.height=e.naturalHeight||e.height,t.width===0||t.height===0?Promise.reject(Error(`Invalid output size: ${t.width}x${t.height}`)):(i.unsharpRadius>2&&(i.unsharpRadius=2),i.canceled=!1,i.cancelToken&&=i.cancelToken.then(function(e){throw i.canceled=!0,e},function(e){throw i.canceled=!0,e}),i.__destTileBorder=Math.ceil(Math.max(3,2.5*i.unsharpRadius|0)),this.init().then(function(){if(i.canceled)return i.cancelToken;if(r.features.cib)return r.__resizeViaCreateImageBitmap(e,t,i);if(!w){var n=Error(`Pica: cannot use getImageData on canvas, make sure fingerprinting protection isn't enabled`);throw n.code=`ERR_GET_IMAGE_DATA`,n}var a=h(i.width,i.height,i.toWidth,i.toHeight,r.options.tile,i.__destTileBorder);return r.__processStages(a,e,t,i)}))},O.prototype.resizeBuffer=function(e){var t=this,n=l({},x,e);return this.init().then(function(){return t.__mathlib.resizeAndUnsharp(n)})},O.prototype.toBlob=function(e,t,n){return t||=`image/png`,new Promise(function(r){if(e.toBlob){e.toBlob(function(e){return r(e)},t,n);return}if(e.convertToBlob){r(e.convertToBlob({type:t,quality:n}));return}for(var i=atob(e.toDataURL(t,n).split(`,`)[1]),a=i.length,o=new Uint8Array(a),s=0;s<a;s++)o[s]=i.charCodeAt(s);r(new Blob([o],{type:t}))})},O.prototype.debug=function(){},t.exports=O},{"./lib/mathlib":1,"./lib/pool":13,"./lib/stepper":14,"./lib/tiler":15,"./lib/utils":16,"./lib/worker":17,"object-assign":23,webworkify:24}]},{},[])(`/index.js`)})}));export default n();
@@ -0,0 +1 @@
1
+ import"./chunk-K5T4RW27-kmGSebVE.js";import{n as e}from"./chunk-AA7GKIK3-DayE4IF_.js";export{e as createPieServices};
@@ -0,0 +1,30 @@
1
+ import{g as e,h as t}from"./src-Pgt9Gp65.js";import{B as n,C as r,V as i,W as a,_ as o,a as s,b as c,c as l,d as u,v as d}from"./chunk-ICPOFSXX-B9LPHgU7.js";import{t as f}from"./ordinal-Dz3y_j0K.js";import{n as p}from"./path-DIlZIGue.js";import{m}from"./dist-DBzteOlY.js";import{t as h}from"./arc-tRoMuWFi.js";import{t as g}from"./array-B3agRrCs.js";import{f as _,r as v}from"./chunk-5PVQY5BW-R5SE6dhE.js";import{t as y}from"./chunk-426QAEUC-CwJ7loGf.js";import{t as b}from"./chunk-4BX2VUAB-2e7V-uuE.js";import{t as x}from"./mermaid-parser.core-DtIbxv6L.js";function S(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function C(e){return e}function w(){var e=C,t=S,n=null,r=p(0),i=p(m),a=p(0);function o(o){var s,c=(o=g(o)).length,l,u,d=0,f=Array(c),p=Array(c),h=+r.apply(this,arguments),_=Math.min(m,Math.max(-m,i.apply(this,arguments)-h)),v,y=Math.min(Math.abs(_)/c,a.apply(this,arguments)),b=y*(_<0?-1:1),x;for(s=0;s<c;++s)(x=p[f[s]=s]=+e(o[s],s,o))>0&&(d+=x);for(t==null?n!=null&&f.sort(function(e,t){return n(o[e],o[t])}):f.sort(function(e,n){return t(p[e],p[n])}),s=0,u=d?(_-c*b)/d:0;s<c;++s,h=v)l=f[s],x=p[l],v=h+(x>0?x*u:0)+b,p[l]={data:o[l],index:s,value:x,startAngle:h,endAngle:v,padAngle:y};return p}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:p(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:p(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:p(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:p(+e),o):a},o}var T=u.pie,E={sections:new Map,showData:!1,config:T},D=E.sections,O=E.showData,k=structuredClone(T),A={getConfig:t(()=>structuredClone(k),`getConfig`),clear:t(()=>{D=new Map,O=E.showData,s()},`clear`),setDiagramTitle:a,getDiagramTitle:r,setAccTitle:i,getAccTitle:d,setAccDescription:n,getAccDescription:o,addSection:t(({label:t,value:n})=>{if(n<0)throw Error(`"${t}" has invalid value: ${n}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);D.has(t)||(D.set(t,n),e.debug(`added new section: ${t}, with value: ${n}`))},`addSection`),getSections:t(()=>D,`getSections`),setShowData:t(e=>{O=e},`setShowData`),getShowData:t(()=>O,`getShowData`)},j=t((e,t)=>{b(e,t),t.setShowData(e.showData),e.sections.map(t.addSection)},`populateDb`),M={parse:t(async t=>{let n=await x(`pie`,t);e.debug(n),j(n,A)},`parse`)},N=t(e=>`
2
+ .pieCircle{
3
+ stroke: ${e.pieStrokeColor};
4
+ stroke-width : ${e.pieStrokeWidth};
5
+ opacity : ${e.pieOpacity};
6
+ }
7
+ .pieOuterCircle{
8
+ stroke: ${e.pieOuterStrokeColor};
9
+ stroke-width: ${e.pieOuterStrokeWidth};
10
+ fill: none;
11
+ }
12
+ .pieTitleText {
13
+ text-anchor: middle;
14
+ font-size: ${e.pieTitleTextSize};
15
+ fill: ${e.pieTitleTextColor};
16
+ font-family: ${e.fontFamily};
17
+ }
18
+ .slice {
19
+ font-family: ${e.fontFamily};
20
+ fill: ${e.pieSectionTextColor};
21
+ font-size:${e.pieSectionTextSize};
22
+ // fill: white;
23
+ }
24
+ .legend text {
25
+ fill: ${e.pieLegendTextColor};
26
+ font-family: ${e.fontFamily};
27
+ font-size: ${e.pieLegendTextSize};
28
+ }
29
+ `,`getStyles`),P=t(e=>{let t=[...e.values()].reduce((e,t)=>e+t,0),n=[...e.entries()].map(([e,t])=>({label:e,value:t})).filter(e=>e.value/t*100>=1);return w().value(e=>e.value).sort(null)(n)},`createPieArcs`),F={parser:M,db:A,renderer:{draw:t((t,n,r,i)=>{e.debug(`rendering pie chart
30
+ `+t);let a=i.db,o=c(),s=v(a.getConfig(),o.pie),u=y(n),d=u.append(`g`);d.attr(`transform`,`translate(225,225)`);let{themeVariables:p}=o,[m]=_(p.pieOuterStrokeWidth);m??=2;let g=s.textPosition,b=h().innerRadius(0).outerRadius(185),x=h().innerRadius(185*g).outerRadius(185*g);d.append(`circle`).attr(`cx`,0).attr(`cy`,0).attr(`r`,185+m/2).attr(`class`,`pieOuterCircle`);let S=a.getSections(),C=P(S),w=[p.pie1,p.pie2,p.pie3,p.pie4,p.pie5,p.pie6,p.pie7,p.pie8,p.pie9,p.pie10,p.pie11,p.pie12],T=0;S.forEach(e=>{T+=e});let E=C.filter(e=>(e.data.value/T*100).toFixed(0)!==`0`),D=f(w).domain([...S.keys()]);d.selectAll(`mySlices`).data(E).enter().append(`path`).attr(`d`,b).attr(`fill`,e=>D(e.data.label)).attr(`class`,`pieCircle`),d.selectAll(`mySlices`).data(E).enter().append(`text`).text(e=>(e.data.value/T*100).toFixed(0)+`%`).attr(`transform`,e=>`translate(`+x.centroid(e)+`)`).style(`text-anchor`,`middle`).attr(`class`,`slice`);let O=d.append(`text`).text(a.getDiagramTitle()).attr(`x`,0).attr(`y`,-400/2).attr(`class`,`pieTitleText`),k=[...S.entries()].map(([e,t])=>({label:e,value:t})),A=d.selectAll(`.legend`).data(k).enter().append(`g`).attr(`class`,`legend`).attr(`transform`,(e,t)=>{let n=22*k.length/2;return`translate(216,`+(t*22-n)+`)`});A.append(`rect`).attr(`width`,18).attr(`height`,18).style(`fill`,e=>D(e.label)).style(`stroke`,e=>D(e.label)),A.append(`text`).attr(`x`,22).attr(`y`,14).text(e=>a.getShowData()?`${e.label} [${e.value}]`:e.label);let j=512+Math.max(...A.selectAll(`text`).nodes().map(e=>e?.getBoundingClientRect().width??0)),M=O.node()?.getBoundingClientRect().width??0,N=450/2-M/2,F=450/2+M/2,I=Math.min(0,N),L=Math.max(j,F)-I;u.attr(`viewBox`,`${I} 0 ${L} 450`),l(u,450,L,s.useMaxWidth)},`draw`)},styles:N};export{F as diagram};
@@ -1,4 +1,4 @@
1
- import{a as e,i as t,t as n}from"./preview-render-profile-CR4dJZrp.js";import{c as r}from"./file-kind-DBptLlF_.js";import{i,n as a,r as o}from"./vault-utils-5Xr0MXCb.js";function s(e){return e==null}function c(e){return typeof e==`object`&&!!e}function l(e){return Array.isArray(e)?e:s(e)?[]:[e]}function u(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}function d(e,t){var n=``,r;for(r=0;r<t;r+=1)n+=e;return n}function f(e){return e===0&&1/e==-1/0}var p={isNothing:s,isObject:c,toArray:l,repeat:d,isNegativeZero:f,extend:u};function m(e,t){var n=``,r=e.reason||`(unknown reason)`;return e.mark?(e.mark.name&&(n+=`in "`+e.mark.name+`" `),n+=`(`+(e.mark.line+1)+`:`+(e.mark.column+1)+`)`,!t&&e.mark.snippet&&(n+=`
1
+ import{a as e,i as t,t as n}from"./preview-render-profile-BF6os3x9.js";import{c as r}from"./file-kind-DmKq2MvD.js";import{i,n as a,r as o}from"./vault-utils-CRpy8MQz.js";function s(e){return e==null}function c(e){return typeof e==`object`&&!!e}function l(e){return Array.isArray(e)?e:s(e)?[]:[e]}function u(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}function d(e,t){var n=``,r;for(r=0;r<t;r+=1)n+=e;return n}function f(e){return e===0&&1/e==-1/0}var p={isNothing:s,isObject:c,toArray:l,repeat:d,isNegativeZero:f,extend:u};function m(e,t){var n=``,r=e.reason||`(unknown reason)`;return e.mark?(e.mark.name&&(n+=`in "`+e.mark.name+`" `),n+=`(`+(e.mark.line+1)+`:`+(e.mark.column+1)+`)`,!t&&e.mark.snippet&&(n+=`
2
2
 
3
3
  `+e.mark.snippet),r+` `+n):r}function h(e,t){Error.call(this),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=m(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}h.prototype=Object.create(Error.prototype),h.prototype.constructor=h,h.prototype.toString=function(e){return this.name+`: `+m(this,e)};var g=h;function _(e,t,n,r,i){var a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}function v(e,t){return p.repeat(` `,t-e.length)+e}function ee(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||=79,typeof t.indent!=`number`&&(t.indent=1),typeof t.linesBefore!=`number`&&(t.linesBefore=3),typeof t.linesAfter!=`number`&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a,o=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var s=``,c,l,u=Math.min(e.line+t.linesAfter,i.length).toString().length,d=t.maxLength-(t.indent+u+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)l=_(e.buffer,r[o-c],i[o-c],e.position-(r[o]-r[o-c]),d),s=p.repeat(` `,t.indent)+v((e.line-c+1).toString(),u)+` | `+l.str+`
4
4
  `+s;for(l=_(e.buffer,r[o],i[o],e.position,d),s+=p.repeat(` `,t.indent)+v((e.line+1).toString(),u)+` | `+l.str+`
@@ -6,7 +6,7 @@ import{a as e,i as t,t as n}from"./preview-render-profile-CR4dJZrp.js";import{c
6
6
  `,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)l=_(e.buffer,r[o+c],i[o+c],e.position-(r[o]-r[o+c]),d),s+=p.repeat(` `,t.indent)+v((e.line+c+1).toString(),u)+` | `+l.str+`
7
7
  `;return s.replace(/\n$/,``)}var te=ee,ne=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],re=[`scalar`,`sequence`,`mapping`];function ie(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function ae(e,t){if(t||={},Object.keys(t).forEach(function(t){if(ne.indexOf(t)===-1)throw new g(`Unknown option "`+t+`" is met in definition of "`+e+`" YAML type.`)}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=ie(t.styleAliases||null),re.indexOf(this.kind)===-1)throw new g(`Unknown kind "`+this.kind+`" is specified for "`+e+`" YAML type.`)}var y=ae;function oe(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function se(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function b(e){return this.extend(e)}b.prototype.extend=function(e){var t=[],n=[];if(e instanceof y)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new g(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);t.forEach(function(e){if(!(e instanceof y))throw new g(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);if(e.loadKind&&e.loadKind!==`scalar`)throw new g(`There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.`);if(e.multi)throw new g(`There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.`)}),n.forEach(function(e){if(!(e instanceof y))throw new g(`Specified list of YAML types (or a single Type object) contains a non-Type object.`)});var r=Object.create(b.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=oe(r,`implicit`),r.compiledExplicit=oe(r,`explicit`),r.compiledTypeMap=se(r.compiledImplicit,r.compiledExplicit),r};var ce=b,le=new y(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:function(e){return e===null?``:e}}),ue=new y(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:function(e){return e===null?[]:e}}),de=new y(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:function(e){return e===null?{}:e}}),fe=new ce({explicit:[le,ue,de]});function pe(e){if(e===null)return!0;var t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}function me(){return null}function he(e){return e===null}var ge=new y(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:pe,construct:me,predicate:he,represent:{canonical:function(){return`~`},lowercase:function(){return`null`},uppercase:function(){return`NULL`},camelcase:function(){return`Null`},empty:function(){return``}},defaultStyle:`lowercase`});function _e(e){if(e===null)return!1;var t=e.length;return t===4&&(e===`true`||e===`True`||e===`TRUE`)||t===5&&(e===`false`||e===`False`||e===`FALSE`)}function ve(e){return e===`true`||e===`True`||e===`TRUE`}function ye(e){return Object.prototype.toString.call(e)===`[object Boolean]`}var be=new y(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:_e,construct:ve,predicate:ye,represent:{lowercase:function(e){return e?`true`:`false`},uppercase:function(e){return e?`TRUE`:`FALSE`},camelcase:function(e){return e?`True`:`False`}},defaultStyle:`lowercase`});function xe(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Se(e){return 48<=e&&e<=55}function Ce(e){return 48<=e&&e<=57}function we(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i===`-`||i===`+`)&&(i=e[++n]),i===`0`){if(n+1===t)return!0;if(i=e[++n],i===`b`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(i!==`0`&&i!==`1`)return!1;r=!0}return r&&i!==`_`}if(i===`x`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(!xe(e.charCodeAt(n)))return!1;r=!0}return r&&i!==`_`}if(i===`o`){for(n++;n<t;n++)if(i=e[n],i!==`_`){if(!Se(e.charCodeAt(n)))return!1;r=!0}return r&&i!==`_`}}if(i===`_`)return!1;for(;n<t;n++)if(i=e[n],i!==`_`){if(!Ce(e.charCodeAt(n)))return!1;r=!0}return!(!r||i===`_`)}function Te(e){var t=e,n=1,r;if(t.indexOf(`_`)!==-1&&(t=t.replace(/_/g,``)),r=t[0],(r===`-`||r===`+`)&&(r===`-`&&(n=-1),t=t.slice(1),r=t[0]),t===`0`)return 0;if(r===`0`){if(t[1]===`b`)return n*parseInt(t.slice(2),2);if(t[1]===`x`)return n*parseInt(t.slice(2),16);if(t[1]===`o`)return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function Ee(e){return Object.prototype.toString.call(e)===`[object Number]`&&e%1==0&&!p.isNegativeZero(e)}var De=new y(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:we,construct:Te,predicate:Ee,represent:{binary:function(e){return e>=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},octal:function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?`0x`+e.toString(16).toUpperCase():`-0x`+e.toString(16).toUpperCase().slice(1)}},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}}),Oe=RegExp(`^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function ke(e){return!(e===null||!Oe.test(e)||e[e.length-1]===`_`)}function Ae(e){var t=e.replace(/_/g,``).toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}var je=/^[-+]?[0-9]+e/;function Me(e,t){var n;if(isNaN(e))switch(t){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(e===1/0)switch(t){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(e===-1/0)switch(t){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(p.isNegativeZero(e))return`-0.0`;return n=e.toString(10),je.test(n)?n.replace(`e`,`.e`):n}function Ne(e){return Object.prototype.toString.call(e)===`[object Number]`&&(e%1!=0||p.isNegativeZero(e))}var Pe=new y(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:ke,construct:Ae,predicate:Ne,represent:Me,defaultStyle:`lowercase`}),Fe=fe.extend({implicit:[ge,be,De,Pe]}),Ie=Fe,Le=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),Re=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function ze(e){return e===null?!1:Le.exec(e)!==null||Re.exec(e)!==null}function Be(e){var t,n,r,i,a,o,s,c=0,l=null,u,d,f;if(t=Le.exec(e),t===null&&(t=Re.exec(e)),t===null)throw Error(`Date resolve error`);if(n=+t[1],r=t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(a=+t[4],o=+t[5],s=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+=`0`;c=+c}return t[9]&&(u=+t[10],d=+(t[11]||0),l=(u*60+d)*6e4,t[9]===`-`&&(l=-l)),f=new Date(Date.UTC(n,r,i,a,o,s,c)),l&&f.setTime(f.getTime()-l),f}function Ve(e){return e.toISOString()}var He=new y(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:ze,construct:Be,instanceOf:Date,represent:Ve});function Ue(e){return e===`<<`||e===null}var We=new y(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:Ue}),x=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
8
8
  \r`;function Ge(e){if(e===null)return!1;var t,n,r=0,i=e.length,a=x;for(n=0;n<i;n++)if(t=a.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8==0}function Ke(e){var t,n,r=e.replace(/[\r\n=]/g,``),i=r.length,a=x,o=0,s=[];for(t=0;t<i;t++)t%4==0&&t&&(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)),o=o<<6|a.indexOf(r.charAt(t));return n=i%4*6,n===0?(s.push(o>>16&255),s.push(o>>8&255),s.push(o&255)):n===18?(s.push(o>>10&255),s.push(o>>2&255)):n===12&&s.push(o>>4&255),new Uint8Array(s)}function qe(e){var t=``,n=0,r,i,a=e.length,o=x;for(r=0;r<a;r++)r%3==0&&r&&(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]),n=(n<<8)+e[r];return i=a%3,i===0?(t+=o[n>>18&63],t+=o[n>>12&63],t+=o[n>>6&63],t+=o[n&63]):i===2?(t+=o[n>>10&63],t+=o[n>>4&63],t+=o[n<<2&63],t+=o[64]):i===1&&(t+=o[n>>2&63],t+=o[n<<4&63],t+=o[64],t+=o[64]),t}function Je(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}var Ye=new y(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:Ge,construct:Ke,predicate:Je,represent:qe}),Xe=Object.prototype.hasOwnProperty,Ze=Object.prototype.toString;function Qe(e){if(e===null)return!0;var t=[],n,r,i,a,o,s=e;for(n=0,r=s.length;n<r;n+=1){if(i=s[n],o=!1,Ze.call(i)!==`[object Object]`)return!1;for(a in i)if(Xe.call(i,a))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}function $e(e){return e===null?[]:e}var et=new y(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:Qe,construct:$e}),tt=Object.prototype.toString;function nt(e){if(e===null)return!0;var t,n,r,i,a,o=e;for(a=Array(o.length),t=0,n=o.length;t<n;t+=1){if(r=o[t],tt.call(r)!==`[object Object]`||(i=Object.keys(r),i.length!==1))return!1;a[t]=[i[0],r[i[0]]]}return!0}function rt(e){if(e===null)return[];var t,n,r,i,a,o=e;for(a=Array(o.length),t=0,n=o.length;t<n;t+=1)r=o[t],i=Object.keys(r),a[t]=[i[0],r[i[0]]];return a}var it=new y(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:nt,construct:rt}),at=Object.prototype.hasOwnProperty;function ot(e){if(e===null)return!0;var t,n=e;for(t in n)if(at.call(n,t)&&n[t]!==null)return!1;return!0}function st(e){return e===null?{}:e}var ct=new y(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:ot,construct:st}),S=Ie.extend({implicit:[He,We],explicit:[Ye,et,it,ct]}),C=Object.prototype.hasOwnProperty,w=1,lt=2,ut=3,T=4,E=1,dt=2,ft=3,pt=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,mt=/[\x85\u2028\u2029]/,ht=/[,\[\]\{\}]/,gt=/^(?:!|!!|![a-z\-]+!)$/i,_t=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function vt(e){return Object.prototype.toString.call(e)}function D(e){return e===10||e===13}function O(e){return e===9||e===32}function k(e){return e===9||e===32||e===10||e===13}function A(e){return e===44||e===91||e===93||e===123||e===125}function yt(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function bt(e){return e===120?2:e===117?4:e===85?8:0}function xt(e){return 48<=e&&e<=57?e-48:-1}function St(e){return e===48?`\0`:e===97?`\x07`:e===98?`\b`:e===116||e===9?` `:e===110?`
9
- `:e===118?`\v`:e===102?`\f`:e===114?`\r`:e===101?`\x1B`:e===32?` `:e===34?`"`:e===47?`/`:e===92?`\\`:e===78?`…`:e===95?`\xA0`:e===76?`\u2028`:e===80?`\u2029`:``}function Ct(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function wt(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}for(var Tt=Array(256),Et=Array(256),j=0;j<256;j++)Tt[j]=St(j)?1:0,Et[j]=St(j);function Dt(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||S,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Ot(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=te(n),new g(t,n)}function M(e,t){throw Ot(e,t)}function N(e,t){e.onWarning&&e.onWarning.call(null,Ot(e,t))}var kt={YAML:function(e,t,n){var r,i,a;e.version!==null&&M(e,`duplication of %YAML directive`),n.length!==1&&M(e,`YAML directive accepts exactly one argument`),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&M(e,`ill-formed argument of the YAML directive`),i=parseInt(r[1],10),a=parseInt(r[2],10),i!==1&&M(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&N(e,`unsupported YAML version of the document`)},TAG:function(e,t,n){var r,i;n.length!==2&&M(e,`TAG directive accepts exactly two arguments`),r=n[0],i=n[1],gt.test(r)||M(e,`ill-formed tag handle (first argument) of the TAG directive`),C.call(e.tagMap,r)&&M(e,`there is a previously declared suffix for "`+r+`" tag handle`),_t.test(i)||M(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{i=decodeURIComponent(i)}catch{M(e,`tag prefix is malformed: `+i)}e.tagMap[r]=i}};function P(e,t,n,r){var i,a,o,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,a=s.length;i<a;i+=1)o=s.charCodeAt(i),o===9||32<=o&&o<=1114111||M(e,`expected valid JSON character`);else pt.test(s)&&M(e,`the stream contains non-printable characters`);e.result+=s}}function At(e,t,n,r){var i,a,o,s;for(p.isObject(n)||M(e,`cannot merge mappings; the provided source object is unacceptable`),i=Object.keys(n),o=0,s=i.length;o<s;o+=1)a=i[o],C.call(t,a)||(wt(t,a,n[a]),r[a]=!0)}function F(e,t,n,r,i,a,o,s,c){var l,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,u=i.length;l<u;l+=1)Array.isArray(i[l])&&M(e,`nested arrays are not supported inside keys`),typeof i==`object`&&vt(i[l])===`[object Object]`&&(i[l]=`[object Object]`);if(typeof i==`object`&&vt(i)===`[object Object]`&&(i=`[object Object]`),i=String(i),t===null&&(t={}),r===`tag:yaml.org,2002:merge`)if(Array.isArray(a))for(l=0,u=a.length;l<u;l+=1)At(e,t,a[l],n);else At(e,t,a,n);else !e.json&&!C.call(n,i)&&C.call(t,i)&&(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=c||e.position,M(e,`duplicated mapping key`)),wt(t,i,a),delete n[i];return t}function I(e){var t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):M(e,`a line break is expected`),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function L(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;O(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(D(i))for(I(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&N(e,`deficient indentation`),r}function R(e){var t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||k(n)))}function z(e,t){t===1?e.result+=` `:t>1&&(e.result+=p.repeat(`
9
+ `:e===118?`\v`:e===102?`\f`:e===114?`\r`:e===101?`\x1B`:e===32?` `:e===34?`"`:e===47?`/`:e===92?`\\`:e===78?`…`:e===95?`\xA0`:e===76?`\u2028`:e===80?`\u2029`:``}function Ct(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function wt(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}for(var Tt=Array(256),Et=Array(256),j=0;j<256;j++)Tt[j]=+!!St(j),Et[j]=St(j);function Dt(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||S,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Ot(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=te(n),new g(t,n)}function M(e,t){throw Ot(e,t)}function N(e,t){e.onWarning&&e.onWarning.call(null,Ot(e,t))}var kt={YAML:function(e,t,n){var r,i,a;e.version!==null&&M(e,`duplication of %YAML directive`),n.length!==1&&M(e,`YAML directive accepts exactly one argument`),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),r===null&&M(e,`ill-formed argument of the YAML directive`),i=parseInt(r[1],10),a=parseInt(r[2],10),i!==1&&M(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&N(e,`unsupported YAML version of the document`)},TAG:function(e,t,n){var r,i;n.length!==2&&M(e,`TAG directive accepts exactly two arguments`),r=n[0],i=n[1],gt.test(r)||M(e,`ill-formed tag handle (first argument) of the TAG directive`),C.call(e.tagMap,r)&&M(e,`there is a previously declared suffix for "`+r+`" tag handle`),_t.test(i)||M(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{i=decodeURIComponent(i)}catch{M(e,`tag prefix is malformed: `+i)}e.tagMap[r]=i}};function P(e,t,n,r){var i,a,o,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,a=s.length;i<a;i+=1)o=s.charCodeAt(i),o===9||32<=o&&o<=1114111||M(e,`expected valid JSON character`);else pt.test(s)&&M(e,`the stream contains non-printable characters`);e.result+=s}}function At(e,t,n,r){var i,a,o,s;for(p.isObject(n)||M(e,`cannot merge mappings; the provided source object is unacceptable`),i=Object.keys(n),o=0,s=i.length;o<s;o+=1)a=i[o],C.call(t,a)||(wt(t,a,n[a]),r[a]=!0)}function F(e,t,n,r,i,a,o,s,c){var l,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,u=i.length;l<u;l+=1)Array.isArray(i[l])&&M(e,`nested arrays are not supported inside keys`),typeof i==`object`&&vt(i[l])===`[object Object]`&&(i[l]=`[object Object]`);if(typeof i==`object`&&vt(i)===`[object Object]`&&(i=`[object Object]`),i=String(i),t===null&&(t={}),r===`tag:yaml.org,2002:merge`)if(Array.isArray(a))for(l=0,u=a.length;l<u;l+=1)At(e,t,a[l],n);else At(e,t,a,n);else !e.json&&!C.call(n,i)&&C.call(t,i)&&(e.line=o||e.line,e.lineStart=s||e.lineStart,e.position=c||e.position,M(e,`duplicated mapping key`)),wt(t,i,a),delete n[i];return t}function I(e){var t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):M(e,`a line break is expected`),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function L(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;O(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(D(i))for(I(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&N(e,`deficient indentation`),r}function R(e){var t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||k(n)))}function z(e,t){t===1?e.result+=` `:t>1&&(e.result+=p.repeat(`
10
10
  `,t-1))}function jt(e,t,n){var r,i,a,o,s,c,l,u,d=e.kind,f=e.result,p=e.input.charCodeAt(e.position);if(k(p)||A(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),k(i)||n&&A(i)))return!1;for(e.kind=`scalar`,e.result=``,a=o=e.position,s=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),k(i)||n&&A(i))break}else if(p===35){if(r=e.input.charCodeAt(e.position-1),k(r))break}else if(e.position===e.lineStart&&R(e)||n&&A(p))break;else if(D(p))if(c=e.line,l=e.lineStart,u=e.lineIndent,L(e,!1,-1),e.lineIndent>=t){s=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=l,e.lineIndent=u;break}s&&=(P(e,a,o,!1),z(e,e.line-c),a=o=e.position,!1),O(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return P(e,a,o,!1),e.result?!0:(e.kind=d,e.result=f,!1)}function Mt(e,t){var n=e.input.charCodeAt(e.position),r,i;if(n!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(P(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else D(n)?(P(e,r,i,!0),z(e,L(e,!1,t)),r=i=e.position):e.position===e.lineStart&&R(e)?M(e,`unexpected end of the document within a single quoted scalar`):(e.position++,i=e.position);M(e,`unexpected end of the stream within a single quoted scalar`)}function Nt(e,t){var n,r,i,a,o,s=e.input.charCodeAt(e.position);if(s!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(s=e.input.charCodeAt(e.position))!==0;)if(s===34)return P(e,n,e.position,!0),e.position++,!0;else if(s===92){if(P(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),D(s))L(e,!1,t);else if(s<256&&Tt[s])e.result+=Et[s],e.position++;else if((o=bt(s))>0){for(i=o,a=0;i>0;i--)s=e.input.charCodeAt(++e.position),(o=yt(s))>=0?a=(a<<4)+o:M(e,`expected hexadecimal character`);e.result+=Ct(a),e.position++}else M(e,`unknown escape sequence`);n=r=e.position}else D(s)?(P(e,n,r,!0),z(e,L(e,!1,t)),n=r=e.position):e.position===e.lineStart&&R(e)?M(e,`unexpected end of the document within a double quoted scalar`):(e.position++,r=e.position);M(e,`unexpected end of the stream within a double quoted scalar`)}function Pt(e,t){var n=!0,r,i,a,o=e.tag,s,c=e.anchor,l,u,d,f,p,m=Object.create(null),h,g,_,v=e.input.charCodeAt(e.position);if(v===91)u=93,p=!1,s=[];else if(v===123)u=125,p=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),v=e.input.charCodeAt(++e.position);v!==0;){if(L(e,!0,t),v=e.input.charCodeAt(e.position),v===u)return e.position++,e.tag=o,e.anchor=c,e.kind=p?`mapping`:`sequence`,e.result=s,!0;n?v===44&&M(e,`expected the node content, but found ','`):M(e,`missed comma between flow collection entries`),g=h=_=null,d=f=!1,v===63&&(l=e.input.charCodeAt(e.position+1),k(l)&&(d=f=!0,e.position++,L(e,!0,t))),r=e.line,i=e.lineStart,a=e.position,B(e,t,w,!1,!0),g=e.tag,h=e.result,L(e,!0,t),v=e.input.charCodeAt(e.position),(f||e.line===r)&&v===58&&(d=!0,v=e.input.charCodeAt(++e.position),L(e,!0,t),B(e,t,w,!1,!0),_=e.result),p?F(e,s,m,g,h,_,r,i,a):d?s.push(F(e,null,m,g,h,_,r,i,a)):s.push(h),L(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}M(e,`unexpected end of the stream within a flow collection`)}function Ft(e,t){var n,r,i=E,a=!1,o=!1,s=t,c=0,l=!1,u,d=e.input.charCodeAt(e.position);if(d===124)r=!1;else if(d===62)r=!0;else return!1;for(e.kind=`scalar`,e.result=``;d!==0;)if(d=e.input.charCodeAt(++e.position),d===43||d===45)E===i?i=d===43?ft:dt:M(e,`repeat of a chomping mode identifier`);else if((u=xt(d))>=0)u===0?M(e,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?M(e,`repeat of an indentation width identifier`):(s=t+u-1,o=!0);else break;if(O(d)){do d=e.input.charCodeAt(++e.position);while(O(d));if(d===35)do d=e.input.charCodeAt(++e.position);while(!D(d)&&d!==0)}for(;d!==0;){for(I(e),e.lineIndent=0,d=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&d===32;)e.lineIndent++,d=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),D(d)){c++;continue}if(e.lineIndent<s){i===ft?e.result+=p.repeat(`
11
11
  `,a?1+c:c):i===E&&a&&(e.result+=`
12
12
  `);break}for(r?O(d)?(l=!0,e.result+=p.repeat(`
@@ -0,0 +1 @@
1
+ import{t as e}from"./preview-render-compiler-BHeDhYho.js";export{e as compilePreviewDocument};