hermes-web-ui 0.6.30-beta.2 → 0.6.30

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 (257) hide show
  1. package/dist/client/assets/js/AppSidebar-B8eJvJ5L.js +1 -0
  2. package/dist/client/assets/js/{ChannelsView-DMyeoPl6.js → ChannelsView-rBs9Ylzp.js} +1 -1
  3. package/dist/client/assets/js/{ChatPanel-YZZNE2mg.js → ChatPanel-BjHQvYcw.js} +1 -1
  4. package/dist/client/assets/js/{ChatView-BSWI-pr1.js → ChatView-xEwjnXLo.js} +1 -1
  5. package/dist/client/assets/js/{CodingAgentsView-DGweBEVs.js → CodingAgentsView-DcVwegsz.js} +1 -1
  6. package/dist/client/assets/js/{DefaultCredentialPrompt-DwS2g874.js → DefaultCredentialPrompt-sFeH1odX.js} +1 -1
  7. package/dist/client/assets/js/{DesktopPetView-C2QyaxNu.js → DesktopPetView-DKYjal2v.js} +1 -1
  8. package/dist/client/assets/js/{DesktopTitleBar-CMvwjOsN.js → DesktopTitleBar-YzhbwcwX.js} +1 -1
  9. package/dist/client/assets/js/{DevicesView-3VMSlXCt.js → DevicesView-CnAjn0fI.js} +1 -1
  10. package/dist/client/assets/js/{FileEditor-Dkxlmokr.js → FileEditor-C_tmKjxI.js} +3 -3
  11. package/dist/client/assets/js/{FileRenameModal-o3oS6tv2.js → FileRenameModal-BlqJ8jgZ.js} +2 -2
  12. package/dist/client/assets/js/{FilesView-BlJtiYU7.js → FilesView-Dy8G_exi.js} +1 -1
  13. package/dist/client/assets/js/{FolderPicker-DYQaj8Cc.js → FolderPicker-DEUyd_JU.js} +1 -1
  14. package/dist/client/assets/js/{GlobalAgentView-CGRn1ucS.js → GlobalAgentView-C0NgWvKP.js} +1 -1
  15. package/dist/client/assets/js/{GroupChatView-GXbwwUn9.js → GroupChatView-Mr8SR7nA.js} +2 -2
  16. package/dist/client/assets/js/{HistoryMessageList-B1UsdtzR.js → HistoryMessageList--MuOQ24m.js} +1 -1
  17. package/dist/client/assets/js/{HistoryView-DukXpB7A.js → HistoryView-Boy6KWxz.js} +1 -1
  18. package/dist/client/assets/js/{JobsView-C2IfX4Oo.js → JobsView-5Jun6EjM.js} +2 -2
  19. package/dist/client/assets/js/{JourneyView-UX14Uvsk.js → JourneyView-DAU7N8iU.js} +1 -1
  20. package/dist/client/assets/js/{KanbanView-BFLDXNmq.js → KanbanView-CQOeRquP.js} +1 -1
  21. package/dist/client/assets/js/{LoginView-BMnZx434.js → LoginView-DTdp1xsa.js} +1 -1
  22. package/dist/client/assets/js/{LogsView-CFxOjMBB.js → LogsView-Dr6gD_kA.js} +1 -1
  23. package/dist/client/assets/js/{MarkdownRenderer-RUGb4sbQ.js → MarkdownRenderer-DpSiF5gl.js} +3 -3
  24. package/dist/client/assets/js/{McpManagerView-D46nhm85.js → McpManagerView-BzGj5qqQ.js} +1 -1
  25. package/dist/client/assets/js/{MemoryView-CGvbW1Yq.js → MemoryView-2gPDgre_.js} +2 -2
  26. package/dist/client/assets/js/{MessageItem-rIbgU0g3.js → MessageItem-D91t-tiL.js} +2 -2
  27. package/dist/client/assets/js/{MessageList-7o_1_iPw.js → MessageList-KgA7oDKg.js} +1 -1
  28. package/dist/client/assets/js/{ModelsView-Cdl5HVlO.js → ModelsView-GVgHBsyL.js} +1 -1
  29. package/dist/client/assets/js/{OutlinePanel-BmsAdxB0.js → OutlinePanel-DD6XxWAu.js} +1 -1
  30. package/dist/client/assets/js/{PageSidebarFooter-fp9dcg3s.js → PageSidebarFooter-DFaGG_bk.js} +1 -1
  31. package/dist/client/assets/js/{PerformanceView-asJG1CAC.js → PerformanceView-YI2ecC28.js} +1 -1
  32. package/dist/client/assets/js/{PetdexView-CgsImZ2C.js → PetdexView-Bt4e1TDL.js} +1 -1
  33. package/dist/client/assets/js/{PluginsView-CiiHUv8H.js → PluginsView-BZHzh6V0.js} +1 -1
  34. package/dist/client/assets/js/{ProfileAvatar-CeGhJamd.js → ProfileAvatar-Du1XMoe0.js} +1 -1
  35. package/dist/client/assets/js/{ProfilesView-CPcFsEMn.js → ProfilesView-C02GlAXO.js} +1 -1
  36. package/dist/client/assets/js/{ProviderConfigurationPrompt-CCXQ_nqY.js → ProviderConfigurationPrompt-DbD_q_xl.js} +1 -1
  37. package/dist/client/assets/js/{SessionSearchModal-Chmtohb_.js → SessionSearchModal-CRoerPzU.js} +1 -1
  38. package/dist/client/assets/js/{SettingRow-CxdhcC5J.js → SettingRow-CZ1bK2YG.js} +1 -1
  39. package/dist/client/assets/js/{SettingsCircuitBadge-DmwONg4K.js → SettingsCircuitBadge-2VINGRjT.js} +1 -1
  40. package/dist/client/assets/js/{SettingsView-Bd02BnM7.js → SettingsView-C63TriKv.js} +1 -1
  41. package/dist/client/assets/js/{SkillsUsageView-Cvk_dctX.js → SkillsUsageView-DufR6RDh.js} +1 -1
  42. package/dist/client/assets/js/{SkillsView-BrS15WHY.js → SkillsView-LzeD-ReE.js} +2 -2
  43. package/dist/client/assets/js/{TerminalView-Betjhhzm.js → TerminalView-j3wokVwS.js} +1 -1
  44. package/dist/client/assets/js/{UsageView-gENmuPca.js → UsageView-BVdos-wH.js} +1 -1
  45. package/dist/client/assets/js/{VersionPreviewView-D4wMkRdU.js → VersionPreviewView-D46YOdsc.js} +1 -1
  46. package/dist/client/assets/js/{WebPet-C-F5hsmU.js → WebPet-PrNf1KLw.js} +1 -1
  47. package/dist/client/assets/js/{WorkflowView-DCQycw5y.js → WorkflowView-BWG_o4Lg.js} +1 -1
  48. package/dist/client/assets/js/{abap-Bpce3YCc.js → abap-B5rRrPlH.js} +1 -1
  49. package/dist/client/assets/js/{apex-BZWMlx8R.js → apex-kxpOZZnW.js} +1 -1
  50. package/dist/client/assets/js/architecture-7EHR7CIX-BsCtaKPb.js +1 -0
  51. package/dist/client/assets/js/{architectureDiagram-3BPJPVTR-DgYZW-VJ.js → architectureDiagram-3BPJPVTR-CGR0-xeM.js} +1 -1
  52. package/dist/client/assets/js/{auth-DAz8TLhP.js → auth-QlZVq-Mb.js} +1 -1
  53. package/dist/client/assets/js/{azcli-CU70G-wD.js → azcli-BinA5kBH.js} +1 -1
  54. package/dist/client/assets/js/{bat-_PVMPuXp.js → bat-Cr0qo7tY.js} +1 -1
  55. package/dist/client/assets/js/{bicep-B1C-nHUL.js → bicep-B4C1_29j.js} +1 -1
  56. package/dist/client/assets/js/{blockDiagram-GPEHLZMM-D9eCcYUu.js → blockDiagram-GPEHLZMM-DMRT9qE7.js} +1 -1
  57. package/dist/client/assets/js/{c4Diagram-AAUBKEIU-Cc2j_5Hk.js → c4Diagram-AAUBKEIU-BS013lHX.js} +1 -1
  58. package/dist/client/assets/js/{cameligo-BRxFWUB9.js → cameligo-DQKQuDHg.js} +1 -1
  59. package/dist/client/assets/js/{chat-DASgRGiI.js → chat-BHkNRr2D.js} +1 -1
  60. package/dist/client/assets/js/{chat-input-height-xMpE0zfj.js → chat-input-height-C9XyOGPU.js} +1 -1
  61. package/dist/client/assets/js/{chat-timestamp-B4kSmeEg.js → chat-timestamp-sj8rR29x.js} +1 -1
  62. package/dist/client/assets/js/{chunk-2J33WTMH-CIWIJ3Vy.js → chunk-2J33WTMH-BuvstStb.js} +1 -1
  63. package/dist/client/assets/js/{chunk-3OPIFGDE-D8rNjXTj.js → chunk-3OPIFGDE-DFuFb6Dn.js} +1 -1
  64. package/dist/client/assets/js/{chunk-4BX2VUAB-Be1NT72j.js → chunk-4BX2VUAB-C8f7FKlW.js} +1 -1
  65. package/dist/client/assets/js/{chunk-55IACEB6-D9jngYNS.js → chunk-55IACEB6-DoNUYELD.js} +1 -1
  66. package/dist/client/assets/js/{chunk-5ZQYHXKU-DsBTFfjP.js → chunk-5ZQYHXKU-D0RIlhMr.js} +1 -1
  67. package/dist/client/assets/js/{chunk-727SXJPM-B4ElG_Of.js → chunk-727SXJPM-Dcg9rcP1.js} +1 -1
  68. package/dist/client/assets/js/{chunk-AQP2D5EJ-DqmSdc2v.js → chunk-AQP2D5EJ-BrEs3845.js} +1 -1
  69. package/dist/client/assets/js/{chunk-BSJP7CBP-Dwbw_lcd.js → chunk-BSJP7CBP-2t71L2nD.js} +1 -1
  70. package/dist/client/assets/js/{chunk-CSCIHK7Q-D0eX0NV1.js → chunk-CSCIHK7Q-jw9fZDC9.js} +3 -3
  71. package/dist/client/assets/js/{chunk-FMBD7UC4-Ifok5gk4.js → chunk-FMBD7UC4-CC_5MTtl.js} +1 -1
  72. package/dist/client/assets/js/{chunk-KSCS5N6A-D6b_0Rnx.js → chunk-KSCS5N6A-Ctj260fA.js} +1 -1
  73. package/dist/client/assets/js/{chunk-L5ZTLDWV-eR6nltId.js → chunk-L5ZTLDWV-CF8sc4Ay.js} +1 -1
  74. package/dist/client/assets/js/{chunk-LZXEDZCA-h6nPcsB6.js → chunk-LZXEDZCA-BsmuMR5Z.js} +2 -2
  75. package/dist/client/assets/js/{chunk-ND2GUHAM-vGFiX1jf.js → chunk-ND2GUHAM-CvXXD5FC.js} +1 -1
  76. package/dist/client/assets/js/{chunk-NZK2D7GU-BQcgYAVF.js → chunk-NZK2D7GU-BQeu8oaR.js} +1 -1
  77. package/dist/client/assets/js/{chunk-O5CBEL6O-DqGyu-Fq.js → chunk-O5CBEL6O-D9XUSNoV.js} +1 -1
  78. package/dist/client/assets/js/{chunk-QZHKN3VN-Bf_cn5Px.js → chunk-QZHKN3VN-qz6ukpCd.js} +1 -1
  79. package/dist/client/assets/js/{chunk-WU5MYG2G-3I1ZwKkc.js → chunk-WU5MYG2G-Cv_QOL8q.js} +1 -1
  80. package/dist/client/assets/js/{chunk-XPW4576I-DDUD-9JS.js → chunk-XPW4576I-BQK5_1lO.js} +1 -1
  81. package/dist/client/assets/js/classDiagram-4FO5ZUOK-DudE54ap.js +1 -0
  82. package/dist/client/assets/js/classDiagram-v2-Q7XG4LA2-7vuaSqRj.js +1 -0
  83. package/dist/client/assets/js/{clipboard-DbIDy3AT.js → clipboard-DYlTCW_e.js} +1 -1
  84. package/dist/client/assets/js/{clojure-Dcj6e71m.js → clojure-CdqoJung.js} +1 -1
  85. package/dist/client/assets/js/{coding-agents-CaDRq0na.js → coding-agents-6iW0O8m3.js} +1 -1
  86. package/dist/client/assets/js/{codingAgentProviders-D561caSN.js → codingAgentProviders-CcodfSH-.js} +1 -1
  87. package/dist/client/assets/js/{coffee-CbYrIyIn.js → coffee-BWTAEena.js} +1 -1
  88. package/dist/client/assets/js/{completion-notification-DsOPieYQ.js → completion-notification-BAmmQT0D.js} +1 -1
  89. package/dist/client/assets/js/{cose-bilkent-S5V4N54A-DMeSp3o-.js → cose-bilkent-S5V4N54A-DRKeHjkL.js} +1 -1
  90. package/dist/client/assets/js/{cpp-C285XCcy.js → cpp-BVlDwaOY.js} +1 -1
  91. package/dist/client/assets/js/{csharp-AOA29tQw.js → csharp-BJ8TvX5x.js} +1 -1
  92. package/dist/client/assets/js/{csp-BH3dEG6O.js → csp-C4M5VPIw.js} +1 -1
  93. package/dist/client/assets/js/{css-B57baUKb.js → css-I3bSR4aB.js} +1 -1
  94. package/dist/client/assets/js/{cssMode-BL-figOg.js → cssMode-D4KFuV7w.js} +1 -1
  95. package/dist/client/assets/js/{cypher-WtS-OVKo.js → cypher-CRdq7Gis.js} +1 -1
  96. package/dist/client/assets/js/{cytoscape.esm-D5tsfvvu.js → cytoscape.esm-DkgBNPTq.js} +1 -1
  97. package/dist/client/assets/js/{dagre-BM42HDAG-ZT4Tyhdh.js → dagre-BM42HDAG-CaadqbBP.js} +1 -1
  98. package/dist/client/assets/js/{dagre-B9R_qlQx.js → dagre-C8VfHmP4.js} +1 -1
  99. package/dist/client/assets/js/{dart-DF9gqEcq.js → dart-dwyDElLm.js} +1 -1
  100. package/dist/client/assets/js/{de-EFWp16Qh.js → de--4CNgQuL.js} +1 -1
  101. package/dist/client/assets/js/{defineProperty-DuJZezkY.js → defineProperty-BDo2HL0q.js} +1 -1
  102. package/dist/client/assets/js/{diagram-2AECGRRQ-xaP4EEEl.js → diagram-2AECGRRQ-Cun81Ans.js} +1 -1
  103. package/dist/client/assets/js/{diagram-5GNKFQAL-DIyCvoeX.js → diagram-5GNKFQAL-CQzVKYOI.js} +1 -1
  104. package/dist/client/assets/js/{diagram-KO2AKTUF-DUgBO_lP.js → diagram-KO2AKTUF-BPfQv40Z.js} +1 -1
  105. package/dist/client/assets/js/{diagram-LMA3HP47-7BPLQ2mh.js → diagram-LMA3HP47-D8TC5VV0.js} +1 -1
  106. package/dist/client/assets/js/{diagram-OG6HWLK6-Bf3loU_i.js → diagram-OG6HWLK6-CRHwtHSe.js} +1 -1
  107. package/dist/client/assets/js/{dist-B5dYmTWx.js → dist-CfFdo9r8.js} +1 -1
  108. package/dist/client/assets/js/{dockerfile-Czh5hcPx.js → dockerfile-CILemvfU.js} +1 -1
  109. package/dist/client/assets/js/{download-D8EaUX1d.js → download-48rHoTgx.js} +1 -1
  110. package/dist/client/assets/js/{ecl-CX15-2F3.js → ecl-Ealz99xU.js} +1 -1
  111. package/dist/client/assets/js/{elixir-DAeHVhZ1.js → elixir-shrM9Xh9.js} +1 -1
  112. package/dist/client/assets/js/{en-Be915fg0.js → en-CJJ1jL_Y.js} +1 -1
  113. package/dist/client/assets/js/{erDiagram-TEJ5UH35-Cohr37bj.js → erDiagram-TEJ5UH35-BPm-r9Hg.js} +1 -1
  114. package/dist/client/assets/js/{es-CifdmPsf.js → es-DzGYbRQj.js} +1 -1
  115. package/dist/client/assets/js/{esm-BnjT8clq.js → esm-BMJNKLtg.js} +1 -1
  116. package/dist/client/assets/js/eventmodeling-FCH6USID-C3kT7Z0E.js +1 -0
  117. package/dist/client/assets/js/{files-DaoyoU6g.js → files-hTAbTvaX.js} +1 -1
  118. package/dist/client/assets/js/{flow9-DbPITgDY.js → flow9-BcjKeG3-.js} +1 -1
  119. package/dist/client/assets/js/{flowDiagram-I6XJVG4X-B264a192.js → flowDiagram-I6XJVG4X-_BaH5aHT.js} +1 -1
  120. package/dist/client/assets/js/{fr-cOjPUfRx.js → fr-DcCzCkCs.js} +1 -1
  121. package/dist/client/assets/js/{freemarker2-DOLmB9KN.js → freemarker2-BNKS-Izq.js} +1 -1
  122. package/dist/client/assets/js/{fsharp-B-Yt6zK9.js → fsharp-CkihMS6p.js} +1 -1
  123. package/dist/client/assets/js/{ganttDiagram-6RSMTGT7-Ci7dhsnY.js → ganttDiagram-6RSMTGT7-Cbdw-Bcw.js} +1 -1
  124. package/dist/client/assets/js/gitGraph-WXDBUCRP-6wOXvHzD.js +1 -0
  125. package/dist/client/assets/js/{gitGraphDiagram-PVQCEYII-BlLk9eYS.js → gitGraphDiagram-PVQCEYII-B-bpVVPE.js} +1 -1
  126. package/dist/client/assets/js/{go-BOK2cgny.js → go-T3wwW6GT.js} +1 -1
  127. package/dist/client/assets/js/{graphlib-D2Mw_i7z.js → graphlib-zy-xgTNe.js} +1 -1
  128. package/dist/client/assets/js/{graphql-lNO0dhfX.js → graphql-efIwdE3z.js} +1 -1
  129. package/dist/client/assets/js/{handlebars-CVZmi01T.js → handlebars-I50ARPXc.js} +1 -1
  130. package/dist/client/assets/js/{hcl-DzR879Fw.js → hcl-1nBprOUg.js} +1 -1
  131. package/dist/client/assets/js/{highlight-Dj4_XEnA.js → highlight-CEOB4aIv.js} +1 -1
  132. package/dist/client/assets/js/{html-PlnnXcHR.js → html-Dj-ePZ46.js} +1 -1
  133. package/dist/client/assets/js/{htmlMode-Fmdr8cyl.js → htmlMode-CaN3hz4S.js} +1 -1
  134. package/dist/client/assets/js/{http-error-DN0Q0NIV.js → http-error-DzA5OQEf.js} +1 -1
  135. package/dist/client/assets/js/{index-B41wzfl2.js → index-RJQqJC6n.js} +4 -4
  136. package/dist/client/assets/js/info-J43DQDTF-BIWBwu_u.js +1 -0
  137. package/dist/client/assets/js/{infoDiagram-5YYISTIA-NDi7uRio.js → infoDiagram-5YYISTIA-BNXSec0Z.js} +1 -1
  138. package/dist/client/assets/js/{ini-DrTE-Qjw.js → ini-3Ot_KNDr.js} +1 -1
  139. package/dist/client/assets/js/{ishikawaDiagram-YF4QCWOH-Bqr4yRKd.js → ishikawaDiagram-YF4QCWOH-g75yRzDd.js} +1 -1
  140. package/dist/client/assets/js/{ja-24otYQMe.js → ja-CQvWYnv9.js} +1 -1
  141. package/dist/client/assets/js/{java-M1cOm-yu.js → java-BnfIG6C2.js} +1 -1
  142. package/dist/client/assets/js/{javascript-BNXq8PNf.js → javascript-CsnYKLbf.js} +1 -1
  143. package/dist/client/assets/js/{journeyDiagram-JHISSGLW-BEtti5_h.js → journeyDiagram-JHISSGLW-Pz71rJgC.js} +1 -1
  144. package/dist/client/assets/js/{jsonMode-1QUqmLF3.js → jsonMode-C075GWTu.js} +1 -1
  145. package/dist/client/assets/js/{julia-dLq8Su3c.js → julia-BZ-d031P.js} +1 -1
  146. package/dist/client/assets/js/{kanban-definition-UN3LZRKU-B0OINhQN.js → kanban-definition-UN3LZRKU-CM65a4ke.js} +1 -1
  147. package/dist/client/assets/js/{katex-RcNO5wwe.js → katex-CdfrrN4N.js} +1 -1
  148. package/dist/client/assets/js/{ko-BAFhhHmu.js → ko-CJGntapN.js} +1 -1
  149. package/dist/client/assets/js/{kotlin-u5eqp-HC.js → kotlin-Bvrb8ISQ.js} +1 -1
  150. package/dist/client/assets/js/{less-Bmv3Gp2t.js → less-BmSBm_Oo.js} +1 -1
  151. package/dist/client/assets/js/{lexon-D4tsg7Zx.js → lexon-DuK8nBv2.js} +1 -1
  152. package/dist/client/assets/js/{liquid-Bk2yC9hm.js → liquid-BWAc_45a.js} +1 -1
  153. package/dist/client/assets/js/{lspLanguageFeatures-D43hcBWA.js → lspLanguageFeatures-BiQVZMg4.js} +1 -1
  154. package/dist/client/assets/js/{lua-p9IseoQp.js → lua-CyRtU9wL.js} +1 -1
  155. package/dist/client/assets/js/{m3-CP_UPhUb.js → m3-Ew9Azayo.js} +1 -1
  156. package/dist/client/assets/js/{markdown-EMkhjbsA.js → markdown-DTnF9Yaz.js} +1 -1
  157. package/dist/client/assets/js/{mdx-CTIqsEU_.js → mdx-B5cGu-wW.js} +1 -1
  158. package/dist/client/assets/js/{mermaid-parser.core-Ct7VvVNd.js → mermaid-parser.core-H0g6x_iH.js} +3 -3
  159. package/dist/client/assets/js/{mermaid.core-bZP2CdTT.js → mermaid.core-Diknpn0Z.js} +3 -3
  160. package/dist/client/assets/js/{mindmap-definition-RKZ34NQL-HwEZyOHT.js → mindmap-definition-RKZ34NQL-CaunhL_H.js} +1 -1
  161. package/dist/client/assets/js/{mips-CkjAOBJ1.js → mips-Dxi7_29p.js} +1 -1
  162. package/dist/client/assets/js/{models-IOA_Ybyo.js → models-C1Vzhn4J.js} +1 -1
  163. package/dist/client/assets/js/{msdax-D3cfIob3.js → msdax-B6Bgb3AK.js} +1 -1
  164. package/dist/client/assets/js/{mysql-4uHNth4i.js → mysql-BL2x9OzM.js} +1 -1
  165. package/dist/client/assets/js/{objective-c-CJlpUpN6.js → objective-c-BrRFV0XK.js} +1 -1
  166. package/dist/client/assets/js/packet-YPE3B663-DQbqBYnW.js +1 -0
  167. package/dist/client/assets/js/{pascal-CQPmydYD.js → pascal-WA4C_PKB.js} +1 -1
  168. package/dist/client/assets/js/{pascaligo-BpcHvwdj.js → pascaligo-CJbWHnUY.js} +1 -1
  169. package/dist/client/assets/js/{perl-CPq40M_6.js → perl-BI9Huzvv.js} +1 -1
  170. package/dist/client/assets/js/{pets-C2oDgwB5.js → pets-B_-nzG9F.js} +1 -1
  171. package/dist/client/assets/js/{pgsql-CSQ1ge3t.js → pgsql-CzbvRnWT.js} +1 -1
  172. package/dist/client/assets/js/{php-DK0RYdED.js → php-CXAgA_El.js} +1 -1
  173. package/dist/client/assets/js/pie-LRSECV5Y-CIUK74nZ.js +1 -0
  174. package/dist/client/assets/js/{pieDiagram-4H26LBE5-BmAWShfi.js → pieDiagram-4H26LBE5-CCUnlpIr.js} +1 -1
  175. package/dist/client/assets/js/{pla-DWm3Ssta.js → pla-C0RuKVEY.js} +1 -1
  176. package/dist/client/assets/js/{postiats-D6U5CAH_.js → postiats-DrGBuYen.js} +1 -1
  177. package/dist/client/assets/js/{powerquery-luT1PmkC.js → powerquery-C2Rk0MWx.js} +1 -1
  178. package/dist/client/assets/js/{powershell-DqsTi5Tp.js → powershell-Co9Oecz_.js} +1 -1
  179. package/dist/client/assets/js/{profiles-DDKFPE0r.js → profiles-BtECgqqD.js} +1 -1
  180. package/dist/client/assets/js/{protobuf-xWgh_gwl.js → protobuf-BYEreCAs.js} +1 -1
  181. package/dist/client/assets/js/{pt-DPgTOGuO.js → pt-BLQB3VhC.js} +1 -1
  182. package/dist/client/assets/js/{pug-d0a6hBgd.js → pug-DYMxpfbA.js} +1 -1
  183. package/dist/client/assets/js/{python-SkkpZGKb.js → python-D14JG4Tf.js} +1 -1
  184. package/dist/client/assets/js/{qsharp-B4xC_SYh.js → qsharp-eGQdTxCC.js} +1 -1
  185. package/dist/client/assets/js/{quadrantDiagram-W4KKPZXB-DRn55Dz7.js → quadrantDiagram-W4KKPZXB-Do1jBZkB.js} +1 -1
  186. package/dist/client/assets/js/{r-qamn5sfb.js → r-BpBEd0qf.js} +1 -1
  187. package/dist/client/assets/js/radar-GUYGQ44K-DamlzFJn.js +1 -0
  188. package/dist/client/assets/js/{razor-DR9b_EzP.js → razor-DAKZoZ5s.js} +1 -1
  189. package/dist/client/assets/js/{redis-C46kUKug.js → redis-CecBwldA.js} +1 -1
  190. package/dist/client/assets/js/{redshift-DI_dWPgP.js → redshift-DxeKWFdZ.js} +1 -1
  191. package/dist/client/assets/js/{requirementDiagram-4Y6WPE33-Do_KEl0k.js → requirementDiagram-4Y6WPE33-Ccn1EcY0.js} +1 -1
  192. package/dist/client/assets/js/{restructuredtext-oYQfsBYX.js → restructuredtext-BBhjK4w8.js} +1 -1
  193. package/dist/client/assets/js/{rough.esm-BjtdUJeF.js → rough.esm-DKpVfK-g.js} +1 -1
  194. package/dist/client/assets/js/{ru-BGBuhe8j.js → ru-BXep69sk.js} +1 -1
  195. package/dist/client/assets/js/{ruby-Da1TZ4HB.js → ruby-9YJv-z0v.js} +1 -1
  196. package/dist/client/assets/js/{rust-GT6xUobW.js → rust-BihIDWCY.js} +1 -1
  197. package/dist/client/assets/js/{sankeyDiagram-5OEKKPKP-BRnR4W8h.js → sankeyDiagram-5OEKKPKP-BZF9SKVm.js} +1 -1
  198. package/dist/client/assets/js/{sb-D4kxpCPJ.js → sb-DSz7OJbn.js} +1 -1
  199. package/dist/client/assets/js/{scala-CY3U_fvs.js → scala-DrL9oxhs.js} +1 -1
  200. package/dist/client/assets/js/{scheme-DzdFAWU_.js → scheme-Bc0QxXW_.js} +1 -1
  201. package/dist/client/assets/js/{scss-CTwgV3JD.js → scss-BTsIuYyg.js} +1 -1
  202. package/dist/client/assets/js/{sequenceDiagram-3UESZ5HK-CoemgPYx.js → sequenceDiagram-3UESZ5HK-BplvirR_.js} +1 -1
  203. package/dist/client/assets/js/{session-browser-prefs-D3fgv9Yr.js → session-browser-prefs-DnMXaw-N.js} +1 -1
  204. package/dist/client/assets/js/{sessions-BeO9QOJY.js → sessions-wVroPs5k.js} +1 -1
  205. package/dist/client/assets/js/{settings-DM3CNjqC.js → settings-Bzod_9RQ.js} +1 -1
  206. package/dist/client/assets/js/{shell-CUF2wd73.js → shell-DG7-xFwe.js} +1 -1
  207. package/dist/client/assets/js/{skills-3O8WlKlI.js → skills-CQr0eeFF.js} +1 -1
  208. package/dist/client/assets/js/{solidity-C3RnBLh_.js → solidity-COxKdecX.js} +1 -1
  209. package/dist/client/assets/js/{sophia-BA8mP4aY.js → sophia-DtFj5ZDz.js} +1 -1
  210. package/dist/client/assets/js/{sparql-DcwhST_l.js → sparql-B1TD00SE.js} +1 -1
  211. package/dist/client/assets/js/{sql-CjGghxho.js → sql-b7qwDUco.js} +1 -1
  212. package/dist/client/assets/js/{src-Cz8NyTG1.js → src-Ra8Cw6Gr.js} +1 -1
  213. package/dist/client/assets/js/{st-B8Q32toW.js → st-BtSqB0Hh.js} +1 -1
  214. package/dist/client/assets/js/{stateDiagram-AJRCARHV-I4DYKB3q.js → stateDiagram-AJRCARHV-DhJkFuW8.js} +1 -1
  215. package/dist/client/assets/js/stateDiagram-v2-BHNVJYJU-CqTRINz_.js +1 -0
  216. package/dist/client/assets/js/{swift-Br8oKRCi.js → swift-T2X4Cn4t.js} +1 -1
  217. package/dist/client/assets/js/{systemverilog-DIL7pkd5.js → systemverilog-DeuLbp4J.js} +1 -1
  218. package/dist/client/assets/js/{tcl-C7A4eFCv.js → tcl-ZVjhRcKc.js} +1 -1
  219. package/dist/client/assets/js/{timeline-definition-PNZ67QCA-BnfftsIx.js → timeline-definition-PNZ67QCA-BFAfAvjz.js} +1 -1
  220. package/dist/client/assets/js/treeView-BLDUP644-H8OPaX_2.js +1 -0
  221. package/dist/client/assets/js/treemap-LRROVOQU-BhsUhAW8.js +1 -0
  222. package/dist/client/assets/js/{tsMode-BmS5yGbl.js → tsMode-BK8igQe0.js} +1 -1
  223. package/dist/client/assets/js/{ttsHelpers-DpzPhrib.js → ttsHelpers-CUglUfpM.js} +1 -1
  224. package/dist/client/assets/js/{twig-CxeEoeDi.js → twig-B2I_zOb5.js} +1 -1
  225. package/dist/client/assets/js/{typescript-BPw3e1LN.js → typescript-DqxcEPol.js} +1 -1
  226. package/dist/client/assets/js/{typespec-dQqbgDyW.js → typespec-DYubob7r.js} +1 -1
  227. package/dist/client/assets/js/{useSttSettings-Dd2zPJU6.js → useSttSettings-BAz3MWB_.js} +1 -1
  228. package/dist/client/assets/js/{vb-DpmkDtUb.js → vb-DulIu0AM.js} +1 -1
  229. package/dist/client/assets/js/{vennDiagram-CIIHVFJN-Bu76Q1QQ.js → vennDiagram-CIIHVFJN-BTMh4zH0.js} +1 -1
  230. package/dist/client/assets/js/wardley-L42UT6IY-w2cdSduy.js +1 -0
  231. package/dist/client/assets/js/{wardleyDiagram-YWT4CUSO-BQ7KDw3c.js → wardleyDiagram-YWT4CUSO-CjApV8-0.js} +1 -1
  232. package/dist/client/assets/js/{wgsl-BzEo-Lwp.js → wgsl-DiXzOVd2.js} +1 -1
  233. package/dist/client/assets/js/{xml-CNMAb3tW.js → xml-DtDrXyok.js} +1 -1
  234. package/dist/client/assets/js/{xterm-B-CU1LD3.js → xterm-CdfgdkPC.js} +1 -1
  235. package/dist/client/assets/js/{xychartDiagram-2RQKCTM6-B1x6n3B3.js → xychartDiagram-2RQKCTM6-DuaP4Pnm.js} +1 -1
  236. package/dist/client/assets/js/{yaml-DpwMHYi6.js → yaml-9_m3OBnv.js} +1 -1
  237. package/dist/client/assets/js/{zh-TW-BJY5MjsC.js → zh-TW-CLhifuOg.js} +1 -1
  238. package/dist/client/assets/js/{zh-CoPU4mYG.js → zh-gGY9f4WM.js} +1 -1
  239. package/dist/client/index.html +1 -1
  240. package/dist/server/index.js +3 -3
  241. package/dist/server/index.js.map +1 -1
  242. package/dist/server/openapi.json +1 -1
  243. package/package.json +1 -1
  244. package/dist/client/assets/js/AppSidebar-BHfH59vK.js +0 -1
  245. package/dist/client/assets/js/architecture-7EHR7CIX-CCBUg0GR.js +0 -1
  246. package/dist/client/assets/js/classDiagram-4FO5ZUOK-Dr5SR3PA.js +0 -1
  247. package/dist/client/assets/js/classDiagram-v2-Q7XG4LA2-BeYcryNa.js +0 -1
  248. package/dist/client/assets/js/eventmodeling-FCH6USID-Cd6TFrci.js +0 -1
  249. package/dist/client/assets/js/gitGraph-WXDBUCRP-CG4qC9Jw.js +0 -1
  250. package/dist/client/assets/js/info-J43DQDTF-CFtOWOWw.js +0 -1
  251. package/dist/client/assets/js/packet-YPE3B663-C0Vs_oOB.js +0 -1
  252. package/dist/client/assets/js/pie-LRSECV5Y-CAscu7sk.js +0 -1
  253. package/dist/client/assets/js/radar-GUYGQ44K-CfxS0DQE.js +0 -1
  254. package/dist/client/assets/js/stateDiagram-v2-BHNVJYJU-BHJGHZeG.js +0 -1
  255. package/dist/client/assets/js/treeView-BLDUP644-wNgfMdO5.js +0 -1
  256. package/dist/client/assets/js/treemap-LRROVOQU-Dy2LkAdg.js +0 -1
  257. package/dist/client/assets/js/wardley-L42UT6IY-BGLmswxh.js +0 -1
@@ -1 +1 @@
1
- import{aa as g}from"./index-B41wzfl2.js";var n,t,o,i,r,a,s,c,l,k,m=g((()=>{n=e=>`\\b${e}\\b`,t=e=>`(?!${e})`,o=n("[_a-zA-Z][_a-zA-Z0-9]*"),i=n("[_a-zA-Z-0-9]+"),r=["import","model","scalar","namespace","op","interface","union","using","is","extends","enum","alias","return","void","if","else","projection","dec","extern","fn"],a=["true","false","null","unknown","never"],s="[ \\t\\r\\n]",c="[0-9]+",l={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"/**",close:" */",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],indentationRules:{decreaseIndentPattern:new RegExp("^((?!.*?/\\*).*\\*/)?\\s*[\\}\\]].*$"),increaseIndentPattern:new RegExp("^((?!//).)*(\\{([^}\"'`/]*|(\\t|[ ])*//.*)|\\([^)\"'`/]*|\\[[^\\]\"'`/]*)$"),unIndentedLinePattern:new RegExp("^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$")}},k={defaultToken:"",tokenPostfix:".tsp",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=:;<>]+/,keywords:r,namedLiterals:a,escapes:'\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|"|\\${)',tokenizer:{root:[{include:"@expression"},{include:"@whitespace"}],stringVerbatim:[{regex:'(|"|"")[^"]',action:{token:"string"}},{regex:`"""${t('"')}`,action:{token:"string",next:"@pop"}}],stringLiteral:[{regex:"\\${",action:{token:"delimiter.bracket",next:"@bracketCounting"}},{regex:'[^\\\\"$]+',action:{token:"string"}},{regex:"@escapes",action:{token:"string.escape"}},{regex:"\\\\.",action:{token:"string.escape.invalid"}},{regex:'"',action:{token:"string",next:"@pop"}}],bracketCounting:[{regex:"{",action:{token:"delimiter.bracket",next:"@bracketCounting"}},{regex:"}",action:{token:"delimiter.bracket",next:"@pop"}},{include:"@expression"}],comment:[{regex:"[^\\*]+",action:{token:"comment"}},{regex:"\\*\\/",action:{token:"comment",next:"@pop"}},{regex:"[\\/*]",action:{token:"comment"}}],whitespace:[{regex:s},{regex:"\\/\\*",action:{token:"comment",next:"@comment"}},{regex:"\\/\\/.*$",action:{token:"comment"}}],expression:[{regex:'"""',action:{token:"string",next:"@stringVerbatim"}},{regex:`"${t('""')}`,action:{token:"string",next:"@stringLiteral"}},{regex:c,action:{token:"number"}},{regex:o,action:{cases:{"@keywords":{token:"keyword"},"@namedLiterals":{token:"keyword"},"@default":{token:"identifier"}}}},{regex:`@${o}`,action:{token:"tag"}},{regex:`#${i}`,action:{token:"directive"}}]}}}));m();export{l as conf,k as language};
1
+ import{aa as g}from"./index-RJQqJC6n.js";var n,t,o,i,r,a,s,c,l,k,m=g((()=>{n=e=>`\\b${e}\\b`,t=e=>`(?!${e})`,o=n("[_a-zA-Z][_a-zA-Z0-9]*"),i=n("[_a-zA-Z-0-9]+"),r=["import","model","scalar","namespace","op","interface","union","using","is","extends","enum","alias","return","void","if","else","projection","dec","extern","fn"],a=["true","false","null","unknown","never"],s="[ \\t\\r\\n]",c="[0-9]+",l={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"/**",close:" */",notIn:["string"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],indentationRules:{decreaseIndentPattern:new RegExp("^((?!.*?/\\*).*\\*/)?\\s*[\\}\\]].*$"),increaseIndentPattern:new RegExp("^((?!//).)*(\\{([^}\"'`/]*|(\\t|[ ])*//.*)|\\([^)\"'`/]*|\\[[^\\]\"'`/]*)$"),unIndentedLinePattern:new RegExp("^(\\t|[ ])*[ ]\\*[^/]*\\*/\\s*$|^(\\t|[ ])*[ ]\\*/\\s*$|^(\\t|[ ])*[ ]\\*([ ]([^\\*]|\\*(?!/))*)?$")}},k={defaultToken:"",tokenPostfix:".tsp",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=:;<>]+/,keywords:r,namedLiterals:a,escapes:'\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|"|\\${)',tokenizer:{root:[{include:"@expression"},{include:"@whitespace"}],stringVerbatim:[{regex:'(|"|"")[^"]',action:{token:"string"}},{regex:`"""${t('"')}`,action:{token:"string",next:"@pop"}}],stringLiteral:[{regex:"\\${",action:{token:"delimiter.bracket",next:"@bracketCounting"}},{regex:'[^\\\\"$]+',action:{token:"string"}},{regex:"@escapes",action:{token:"string.escape"}},{regex:"\\\\.",action:{token:"string.escape.invalid"}},{regex:'"',action:{token:"string",next:"@pop"}}],bracketCounting:[{regex:"{",action:{token:"delimiter.bracket",next:"@bracketCounting"}},{regex:"}",action:{token:"delimiter.bracket",next:"@pop"}},{include:"@expression"}],comment:[{regex:"[^\\*]+",action:{token:"comment"}},{regex:"\\*\\/",action:{token:"comment",next:"@pop"}},{regex:"[\\/*]",action:{token:"comment"}}],whitespace:[{regex:s},{regex:"\\/\\*",action:{token:"comment",next:"@comment"}},{regex:"\\/\\/.*$",action:{token:"comment"}}],expression:[{regex:'"""',action:{token:"string",next:"@stringVerbatim"}},{regex:`"${t('""')}`,action:{token:"string",next:"@stringLiteral"}},{regex:c,action:{token:"number"}},{regex:o,action:{cases:{"@keywords":{token:"keyword"},"@namedLiterals":{token:"keyword"},"@default":{token:"identifier"}}}},{regex:`@${o}`,action:{token:"tag"}},{regex:`#${i}`,action:{token:"directive"}}]}}}));m();export{l as conf,k as language};
@@ -1 +1 @@
1
- import{Fr as k,Gi as s,Hr as se,Mi as Ae,Nr as ae,Zr as be,aa as $,qi as Le}from"./index-B41wzfl2.js";function Je(e={}){const r=s({status:"idle",error:null,startedAt:null,mimeType:null}),i=be(()=>r.value.status==="recording"),S=Le(null);let b=null,V=null,I=[],N=null,h=null,L=null,_=null,w=null,E=null,U=null,B=0;function R(){r.value={status:"idle",error:null,startedAt:null,mimeType:null}}function O(t){const n=_e(t);return r.value={status:"error",error:n,startedAt:null,mimeType:r.value.mimeType},n}function q(){N!==null&&(clearTimeout(N),N=null)}function re(t){if(t)for(const n of t.getTracks())n.stop()}function u({stopStream:t=!0,clearChunks:n=!0}={}){q(),t&&re(V),b=null,V=null,S.value=null,n&&(I=[])}function ne(t){const n=L;h=null,L=null,_=null,n?.(t)}function ee(t){const n=_;h=null,L=null,_=null,n?.(t)}function fe(){!L&&!_||ne(G(r.value.mimeType??b?.mimeType??null))}function J(t){if(t!==void 0&&t!==w)return;const n=E;w=null,E=null,U=null,n?.()}function ye(t,n){if(n!==void 0&&n!==w)return;const y=U;w=null,E=null,U=null,y?.(t)}function oe(){!E&&!U||J()}function G(t){return new Blob([],{type:t||x})}function Se(){return typeof MediaRecorder>"u"?null:MediaRecorder}function Pe(){const t=Se();if(!t||typeof navigator>"u"||!navigator.mediaDevices?.getUserMedia)throw new Error(e.messages?.unsupported||ce);return t}function Te(t,n){const y=n?.length?n:[...ue];return typeof t.isTypeSupported!="function"?y[0]:y.find(D=>t.isTypeSupported(D))}function Me(){if(r.value.status==="recording"||r.value.status==="requesting"||r.value.status==="stopping")return Promise.resolve();try{const t=Pe(),n=++B;return r.value={status:"requesting",error:null,startedAt:null,mimeType:null},new Promise((y,D)=>{w=n,E=y,U=D,navigator.mediaDevices.getUserMedia(e.constraints??{audio:!0}).then(a=>{if(n!==B){re(a),J(n);return}const P=Te(t,e.mimeTypes),K=P?new t(a,{mimeType:P}):new t(a);V=a,S.value=a,b=K,I=[],K.ondataavailable=te=>{const z=te.data;z&&z.size>0&&I.push(z)},K.onerror=te=>{const z=O(te.error??new Error(e.messages?.recordingFailed||"Microphone recording failed."));u(),ee(z)},K.start(),r.value={status:"recording",error:null,startedAt:Date.now(),mimeType:K.mimeType||P||x},N=setTimeout(()=>{ie()},e.maxDurationMs??le),J(n)}).catch(a=>{if(n!==B){J(n);return}u(),ye(O(a),n)})})}catch(t){return u(),Promise.reject(O(t))}}async function ie(){if(r.value.status==="requesting")return B+=1,oe(),u(),R(),G();const t=b;if(!t){const n=r.value.mimeType;return R(),G(n)}if(h)return h;if(t.state==="inactive"){const n=t.mimeType||r.value.mimeType;return u(),R(),G(n)}return r.value={...r.value,status:"stopping",error:null},q(),h=new Promise((n,y)=>{L=n,_=y;const D=t.mimeType||r.value.mimeType||x;t.onstop=()=>{const a=new Blob(I,{type:D});u(),R(),ne(a)},t.onerror=a=>{const P=O(a.error??new Error(e.messages?.recordingFailed||"Microphone recording failed."));u(),ee(P)};try{t.stop()}catch(a){const P=O(a);u(),ee(P)}}),h}function he(){B+=1;const t=b;if(q(),t&&(t.ondataavailable=null,t.onstop=null,t.onerror=null,t.state!=="inactive"))try{t.stop()}catch{}u(),oe(),fe(),R()}return{state:r,isRecording:i,stream:S,start:Me,stop:ie,cancel:he}}function _e(e){return e instanceof Error?e:new Error(String(e))}var ue,x,le,ce,Ge=$((()=>{se(),ue=["audio/webm;codecs=opus","audio/webm","audio/mp4","audio/wav"],x="audio/webm",le=12e4,ce="Microphone capture is not supported in this browser."}));async function xe(e){if(!e.provider)throw new Error("STT provider is required");const r=new FormData;return r.append("audio",e.audio,"speech.webm"),r.append("provider",e.provider),typeof e.language=="string"&&e.language&&r.append("language",e.language),typeof e.prompt=="string"&&e.prompt&&r.append("prompt",e.prompt),k("/api/hermes/stt/transcribe",{method:"POST",body:r})}var He=$((()=>{ae()}));function we(e){return e==="browser"||e==="openai"||e==="custom"||e==="doubao"?e:null}function Ee(e){if(e&&typeof e=="object"){const r=e,i=we(r.activeProvider);if(Array.isArray(r.providers))return{providers:r.providers,activeProvider:i};if(Array.isArray(r.settings))return{providers:r.settings,activeProvider:i}}return{providers:[],activeProvider:null}}async function Ue(){return Ee(await k("/api/hermes/stt/settings"))}async function Ye(e,r){const i=await k(`/api/hermes/stt/settings/${e}`,{method:"PUT",body:JSON.stringify(r)});return typeof i=="object"&&i!==null&&"setting"in i?i.setting:i}async function $e(e){return(await k("/api/hermes/stt/settings/active",{method:"PUT",body:JSON.stringify({provider:e})})).activeProvider}async function We(e){return k(`/api/hermes/stt/settings/${e}`,{method:"DELETE"})}var Be=$((()=>{ae()}));function Re(){if(typeof window>"u")return!1;const e=window;return typeof e.SpeechRecognition<"u"||typeof e.webkitSpeechRecognition<"u"}function pe(){return Re()?"browser":"openai"}function Oe(e){return{provider:e.provider==="browser"||e.provider==="openai"||e.provider==="custom"||e.provider==="doubao"?e.provider:o.provider,openaiModel:typeof e.openaiModel=="string"&&e.openaiModel.trim()?e.openaiModel:o.openaiModel,openaiLanguage:typeof e.openaiLanguage=="string"?e.openaiLanguage:o.openaiLanguage,openaiPrompt:typeof e.openaiPrompt=="string"?e.openaiPrompt:o.openaiPrompt,customBaseUrl:typeof e.customBaseUrl=="string"?e.customBaseUrl:o.customBaseUrl,customModel:typeof e.customModel=="string"&&e.customModel.trim()?e.customModel:o.customModel,customLanguage:typeof e.customLanguage=="string"?e.customLanguage:o.customLanguage,customPrompt:typeof e.customPrompt=="string"?e.customPrompt:o.customPrompt}}function De(){try{const e=localStorage.getItem(j);if(e){const r=Oe(JSON.parse(e)),i=JSON.stringify(r);return e!==i&&localStorage.setItem(j,i),r}}catch{}return{...o}}function Ke(){return{provider:M.value,openaiModel:c.value,openaiLanguage:p.value,openaiPrompt:m.value,customBaseUrl:d.value,customModel:v.value,customLanguage:g.value,customPrompt:f.value}}function ze(){try{localStorage.setItem(j,JSON.stringify(Ke()))}catch(e){console.warn("[useSttSettings] Failed to persist STT settings:",e)}}function me(){c.value=o.openaiModel,p.value=o.openaiLanguage,m.value=o.openaiPrompt,C.value="",W.value="",X.value=!1,d.value=o.customBaseUrl,A.value=[],v.value=o.customModel,g.value=o.customLanguage,f.value=o.customPrompt,F.value="",Z.value="",Q.value=!1}function je(){M.value=pe(),c.value=o.openaiModel,p.value=o.openaiLanguage,m.value=o.openaiPrompt,d.value=o.customBaseUrl,A.value=[],v.value=o.customModel,g.value=o.customLanguage,f.value=o.customPrompt}function de(){Y+=1,H=!1,T=null,je(),me();try{localStorage.removeItem(j)}catch{}}function ve(e){return Array.isArray(e)?Array.from(new Set(e.filter(r=>typeof r=="string"&&!!r.trim()).map(r=>r.trim()))):[]}function Ce(e){e.provider==="openai"&&(c.value=typeof e.settings.model=="string"&&e.settings.model.trim()?e.settings.model:c.value,p.value=typeof e.settings.language=="string"?e.settings.language:p.value,m.value=typeof e.settings.prompt=="string"?e.settings.prompt:m.value,W.value=e.secrets.apiKey||"",X.value=!!e.secrets.apiKey,C.value=""),e.provider==="custom"&&(d.value=typeof e.settings.baseUrl=="string"?e.settings.baseUrl:d.value,A.value=ve(e.settings.baseUrlPresets),v.value=typeof e.settings.model=="string"&&e.settings.model.trim()?e.settings.model:v.value,g.value=typeof e.settings.language=="string"?e.settings.language:g.value,f.value=typeof e.settings.prompt=="string"?e.settings.prompt:f.value,Z.value=e.secrets.apiKey||"",Q.value=!!e.secrets.apiKey,F.value="")}function ge(e,r=!1){r&&me();const i=Array.isArray(e)?e:e.providers;for(const S of i)Ce(S);!Array.isArray(e)&&e.activeProvider&&(M.value=e.activeProvider)}async function Fe(e=!1){if(H&&!e)return;if(T&&!e)return T;const r=Y,i=Ue().then(S=>{r===Y&&(ge(S,!0),H=!0)}).finally(()=>{T===i&&(T=null)});return T=i,i}function Xe(){return{provider:M,openaiModel:c,openaiLanguage:p,openaiPrompt:m,openaiApiKey:C,openaiApiKeyPreview:W,openaiHasApiKey:X,customBaseUrl:d,customBaseUrlPresets:A,customModel:v,customLanguage:g,customPrompt:f,customApiKey:F,customApiKeyPreview:Z,customHasApiKey:Q,setProvider(e){M.value=e},setOpenaiModel(e){c.value=e},setOpenaiLanguage(e){p.value=e},setOpenaiPrompt(e){m.value=e},setOpenaiApiKey(e){C.value=e},setCustomBaseUrl(e){d.value=e},setCustomBaseUrlPresets(e){A.value=ve(e)},setCustomModel(e){v.value=e},setCustomLanguage(e){g.value=e},setCustomPrompt(e){f.value=e},setCustomApiKey(e){F.value=e},applyServerSttSettings:ge,loadServerSttSettings:Fe,reset(){de()}}}var j,o,l,M,c,p,m,C,W,X,d,A,v,g,f,F,Z,Q,H,T,Y,Ze=$((()=>{se(),Be(),j="hermes-stt-settings-v1",o={provider:pe(),openaiModel:"gpt-4o-transcribe",openaiLanguage:"",openaiPrompt:"",customBaseUrl:"",customModel:"gpt-4o-transcribe",customLanguage:"",customPrompt:""},l=De(),M=s(l.provider),c=s(l.openaiModel),p=s(l.openaiLanguage),m=s(l.openaiPrompt),C=s(""),W=s(""),X=s(!1),d=s(l.customBaseUrl),A=s([]),v=s(l.customModel),g=s(l.customLanguage),f=s(l.customPrompt),F=s(""),Z=s(""),Q=s(!1),H=!1,T=null,Y=0,typeof window<"u"&&window.addEventListener("hermes-auth-cleared",de),Ae([M,c,p,m,d,v,g,f],ze)}));export{Be as a,He as c,Je as d,Ue as i,xe as l,Xe as n,$e as o,We as r,Ye as s,Ze as t,Ge as u};
1
+ import{Fr as k,Gi as s,Hr as se,Mi as Ae,Nr as ae,Zr as be,aa as $,qi as Le}from"./index-RJQqJC6n.js";function Je(e={}){const r=s({status:"idle",error:null,startedAt:null,mimeType:null}),i=be(()=>r.value.status==="recording"),S=Le(null);let b=null,V=null,I=[],N=null,h=null,L=null,_=null,w=null,E=null,U=null,B=0;function R(){r.value={status:"idle",error:null,startedAt:null,mimeType:null}}function O(t){const n=_e(t);return r.value={status:"error",error:n,startedAt:null,mimeType:r.value.mimeType},n}function q(){N!==null&&(clearTimeout(N),N=null)}function re(t){if(t)for(const n of t.getTracks())n.stop()}function u({stopStream:t=!0,clearChunks:n=!0}={}){q(),t&&re(V),b=null,V=null,S.value=null,n&&(I=[])}function ne(t){const n=L;h=null,L=null,_=null,n?.(t)}function ee(t){const n=_;h=null,L=null,_=null,n?.(t)}function fe(){!L&&!_||ne(G(r.value.mimeType??b?.mimeType??null))}function J(t){if(t!==void 0&&t!==w)return;const n=E;w=null,E=null,U=null,n?.()}function ye(t,n){if(n!==void 0&&n!==w)return;const y=U;w=null,E=null,U=null,y?.(t)}function oe(){!E&&!U||J()}function G(t){return new Blob([],{type:t||x})}function Se(){return typeof MediaRecorder>"u"?null:MediaRecorder}function Pe(){const t=Se();if(!t||typeof navigator>"u"||!navigator.mediaDevices?.getUserMedia)throw new Error(e.messages?.unsupported||ce);return t}function Te(t,n){const y=n?.length?n:[...ue];return typeof t.isTypeSupported!="function"?y[0]:y.find(D=>t.isTypeSupported(D))}function Me(){if(r.value.status==="recording"||r.value.status==="requesting"||r.value.status==="stopping")return Promise.resolve();try{const t=Pe(),n=++B;return r.value={status:"requesting",error:null,startedAt:null,mimeType:null},new Promise((y,D)=>{w=n,E=y,U=D,navigator.mediaDevices.getUserMedia(e.constraints??{audio:!0}).then(a=>{if(n!==B){re(a),J(n);return}const P=Te(t,e.mimeTypes),K=P?new t(a,{mimeType:P}):new t(a);V=a,S.value=a,b=K,I=[],K.ondataavailable=te=>{const z=te.data;z&&z.size>0&&I.push(z)},K.onerror=te=>{const z=O(te.error??new Error(e.messages?.recordingFailed||"Microphone recording failed."));u(),ee(z)},K.start(),r.value={status:"recording",error:null,startedAt:Date.now(),mimeType:K.mimeType||P||x},N=setTimeout(()=>{ie()},e.maxDurationMs??le),J(n)}).catch(a=>{if(n!==B){J(n);return}u(),ye(O(a),n)})})}catch(t){return u(),Promise.reject(O(t))}}async function ie(){if(r.value.status==="requesting")return B+=1,oe(),u(),R(),G();const t=b;if(!t){const n=r.value.mimeType;return R(),G(n)}if(h)return h;if(t.state==="inactive"){const n=t.mimeType||r.value.mimeType;return u(),R(),G(n)}return r.value={...r.value,status:"stopping",error:null},q(),h=new Promise((n,y)=>{L=n,_=y;const D=t.mimeType||r.value.mimeType||x;t.onstop=()=>{const a=new Blob(I,{type:D});u(),R(),ne(a)},t.onerror=a=>{const P=O(a.error??new Error(e.messages?.recordingFailed||"Microphone recording failed."));u(),ee(P)};try{t.stop()}catch(a){const P=O(a);u(),ee(P)}}),h}function he(){B+=1;const t=b;if(q(),t&&(t.ondataavailable=null,t.onstop=null,t.onerror=null,t.state!=="inactive"))try{t.stop()}catch{}u(),oe(),fe(),R()}return{state:r,isRecording:i,stream:S,start:Me,stop:ie,cancel:he}}function _e(e){return e instanceof Error?e:new Error(String(e))}var ue,x,le,ce,Ge=$((()=>{se(),ue=["audio/webm;codecs=opus","audio/webm","audio/mp4","audio/wav"],x="audio/webm",le=12e4,ce="Microphone capture is not supported in this browser."}));async function xe(e){if(!e.provider)throw new Error("STT provider is required");const r=new FormData;return r.append("audio",e.audio,"speech.webm"),r.append("provider",e.provider),typeof e.language=="string"&&e.language&&r.append("language",e.language),typeof e.prompt=="string"&&e.prompt&&r.append("prompt",e.prompt),k("/api/hermes/stt/transcribe",{method:"POST",body:r})}var He=$((()=>{ae()}));function we(e){return e==="browser"||e==="openai"||e==="custom"||e==="doubao"?e:null}function Ee(e){if(e&&typeof e=="object"){const r=e,i=we(r.activeProvider);if(Array.isArray(r.providers))return{providers:r.providers,activeProvider:i};if(Array.isArray(r.settings))return{providers:r.settings,activeProvider:i}}return{providers:[],activeProvider:null}}async function Ue(){return Ee(await k("/api/hermes/stt/settings"))}async function Ye(e,r){const i=await k(`/api/hermes/stt/settings/${e}`,{method:"PUT",body:JSON.stringify(r)});return typeof i=="object"&&i!==null&&"setting"in i?i.setting:i}async function $e(e){return(await k("/api/hermes/stt/settings/active",{method:"PUT",body:JSON.stringify({provider:e})})).activeProvider}async function We(e){return k(`/api/hermes/stt/settings/${e}`,{method:"DELETE"})}var Be=$((()=>{ae()}));function Re(){if(typeof window>"u")return!1;const e=window;return typeof e.SpeechRecognition<"u"||typeof e.webkitSpeechRecognition<"u"}function pe(){return Re()?"browser":"openai"}function Oe(e){return{provider:e.provider==="browser"||e.provider==="openai"||e.provider==="custom"||e.provider==="doubao"?e.provider:o.provider,openaiModel:typeof e.openaiModel=="string"&&e.openaiModel.trim()?e.openaiModel:o.openaiModel,openaiLanguage:typeof e.openaiLanguage=="string"?e.openaiLanguage:o.openaiLanguage,openaiPrompt:typeof e.openaiPrompt=="string"?e.openaiPrompt:o.openaiPrompt,customBaseUrl:typeof e.customBaseUrl=="string"?e.customBaseUrl:o.customBaseUrl,customModel:typeof e.customModel=="string"&&e.customModel.trim()?e.customModel:o.customModel,customLanguage:typeof e.customLanguage=="string"?e.customLanguage:o.customLanguage,customPrompt:typeof e.customPrompt=="string"?e.customPrompt:o.customPrompt}}function De(){try{const e=localStorage.getItem(j);if(e){const r=Oe(JSON.parse(e)),i=JSON.stringify(r);return e!==i&&localStorage.setItem(j,i),r}}catch{}return{...o}}function Ke(){return{provider:M.value,openaiModel:c.value,openaiLanguage:p.value,openaiPrompt:m.value,customBaseUrl:d.value,customModel:v.value,customLanguage:g.value,customPrompt:f.value}}function ze(){try{localStorage.setItem(j,JSON.stringify(Ke()))}catch(e){console.warn("[useSttSettings] Failed to persist STT settings:",e)}}function me(){c.value=o.openaiModel,p.value=o.openaiLanguage,m.value=o.openaiPrompt,C.value="",W.value="",X.value=!1,d.value=o.customBaseUrl,A.value=[],v.value=o.customModel,g.value=o.customLanguage,f.value=o.customPrompt,F.value="",Z.value="",Q.value=!1}function je(){M.value=pe(),c.value=o.openaiModel,p.value=o.openaiLanguage,m.value=o.openaiPrompt,d.value=o.customBaseUrl,A.value=[],v.value=o.customModel,g.value=o.customLanguage,f.value=o.customPrompt}function de(){Y+=1,H=!1,T=null,je(),me();try{localStorage.removeItem(j)}catch{}}function ve(e){return Array.isArray(e)?Array.from(new Set(e.filter(r=>typeof r=="string"&&!!r.trim()).map(r=>r.trim()))):[]}function Ce(e){e.provider==="openai"&&(c.value=typeof e.settings.model=="string"&&e.settings.model.trim()?e.settings.model:c.value,p.value=typeof e.settings.language=="string"?e.settings.language:p.value,m.value=typeof e.settings.prompt=="string"?e.settings.prompt:m.value,W.value=e.secrets.apiKey||"",X.value=!!e.secrets.apiKey,C.value=""),e.provider==="custom"&&(d.value=typeof e.settings.baseUrl=="string"?e.settings.baseUrl:d.value,A.value=ve(e.settings.baseUrlPresets),v.value=typeof e.settings.model=="string"&&e.settings.model.trim()?e.settings.model:v.value,g.value=typeof e.settings.language=="string"?e.settings.language:g.value,f.value=typeof e.settings.prompt=="string"?e.settings.prompt:f.value,Z.value=e.secrets.apiKey||"",Q.value=!!e.secrets.apiKey,F.value="")}function ge(e,r=!1){r&&me();const i=Array.isArray(e)?e:e.providers;for(const S of i)Ce(S);!Array.isArray(e)&&e.activeProvider&&(M.value=e.activeProvider)}async function Fe(e=!1){if(H&&!e)return;if(T&&!e)return T;const r=Y,i=Ue().then(S=>{r===Y&&(ge(S,!0),H=!0)}).finally(()=>{T===i&&(T=null)});return T=i,i}function Xe(){return{provider:M,openaiModel:c,openaiLanguage:p,openaiPrompt:m,openaiApiKey:C,openaiApiKeyPreview:W,openaiHasApiKey:X,customBaseUrl:d,customBaseUrlPresets:A,customModel:v,customLanguage:g,customPrompt:f,customApiKey:F,customApiKeyPreview:Z,customHasApiKey:Q,setProvider(e){M.value=e},setOpenaiModel(e){c.value=e},setOpenaiLanguage(e){p.value=e},setOpenaiPrompt(e){m.value=e},setOpenaiApiKey(e){C.value=e},setCustomBaseUrl(e){d.value=e},setCustomBaseUrlPresets(e){A.value=ve(e)},setCustomModel(e){v.value=e},setCustomLanguage(e){g.value=e},setCustomPrompt(e){f.value=e},setCustomApiKey(e){F.value=e},applyServerSttSettings:ge,loadServerSttSettings:Fe,reset(){de()}}}var j,o,l,M,c,p,m,C,W,X,d,A,v,g,f,F,Z,Q,H,T,Y,Ze=$((()=>{se(),Be(),j="hermes-stt-settings-v1",o={provider:pe(),openaiModel:"gpt-4o-transcribe",openaiLanguage:"",openaiPrompt:"",customBaseUrl:"",customModel:"gpt-4o-transcribe",customLanguage:"",customPrompt:""},l=De(),M=s(l.provider),c=s(l.openaiModel),p=s(l.openaiLanguage),m=s(l.openaiPrompt),C=s(""),W=s(""),X=s(!1),d=s(l.customBaseUrl),A=s([]),v=s(l.customModel),g=s(l.customLanguage),f=s(l.customPrompt),F=s(""),Z=s(""),Q=s(!1),H=!1,T=null,Y=0,typeof window<"u"&&window.addEventListener("hermes-auth-cleared",de),Ae([M,c,p,m,d,v,g,f],ze)}));export{Be as a,He as c,Je as d,Ue as i,xe as l,Xe as n,$e as o,We as r,Ye as s,Ze as t,Ge as u};
@@ -1 +1 @@
1
- import{aa as e}from"./index-B41wzfl2.js";var n,t,o=e((()=>{n={comments:{lineComment:"'",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"],["addhandler","end addhandler"],["class","end class"],["enum","end enum"],["event","end event"],["function","end function"],["get","end get"],["if","end if"],["interface","end interface"],["module","end module"],["namespace","end namespace"],["operator","end operator"],["property","end property"],["raiseevent","end raiseevent"],["removehandler","end removehandler"],["select","end select"],["set","end set"],["structure","end structure"],["sub","end sub"],["synclock","end synclock"],["try","end try"],["while","end while"],["with","end with"],["using","end using"],["do","loop"],["for","next"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"<",close:">",notIn:["string","comment"]}],folding:{markers:{start:new RegExp("^\\s*#Region\\b"),end:new RegExp("^\\s*#End Region\\b")}}},t={defaultToken:"",tokenPostfix:".vb",ignoreCase:!0,brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.angle",open:"<",close:">"},{token:"keyword.tag-addhandler",open:"addhandler",close:"end addhandler"},{token:"keyword.tag-class",open:"class",close:"end class"},{token:"keyword.tag-enum",open:"enum",close:"end enum"},{token:"keyword.tag-event",open:"event",close:"end event"},{token:"keyword.tag-function",open:"function",close:"end function"},{token:"keyword.tag-get",open:"get",close:"end get"},{token:"keyword.tag-if",open:"if",close:"end if"},{token:"keyword.tag-interface",open:"interface",close:"end interface"},{token:"keyword.tag-module",open:"module",close:"end module"},{token:"keyword.tag-namespace",open:"namespace",close:"end namespace"},{token:"keyword.tag-operator",open:"operator",close:"end operator"},{token:"keyword.tag-property",open:"property",close:"end property"},{token:"keyword.tag-raiseevent",open:"raiseevent",close:"end raiseevent"},{token:"keyword.tag-removehandler",open:"removehandler",close:"end removehandler"},{token:"keyword.tag-select",open:"select",close:"end select"},{token:"keyword.tag-set",open:"set",close:"end set"},{token:"keyword.tag-structure",open:"structure",close:"end structure"},{token:"keyword.tag-sub",open:"sub",close:"end sub"},{token:"keyword.tag-synclock",open:"synclock",close:"end synclock"},{token:"keyword.tag-try",open:"try",close:"end try"},{token:"keyword.tag-while",open:"while",close:"end while"},{token:"keyword.tag-with",open:"with",close:"end with"},{token:"keyword.tag-using",open:"using",close:"end using"},{token:"keyword.tag-do",open:"do",close:"loop"},{token:"keyword.tag-for",open:"for",close:"next"}],keywords:["AddHandler","AddressOf","Alias","And","AndAlso","As","Async","Boolean","ByRef","Byte","ByVal","Call","Case","Catch","CBool","CByte","CChar","CDate","CDbl","CDec","Char","CInt","Class","CLng","CObj","Const","Continue","CSByte","CShort","CSng","CStr","CType","CUInt","CULng","CUShort","Date","Decimal","Declare","Default","Delegate","Dim","DirectCast","Do","Double","Each","Else","ElseIf","End","EndIf","Enum","Erase","Error","Event","Exit","False","Finally","For","Friend","Function","Get","GetType","GetXMLNamespace","Global","GoSub","GoTo","Handles","If","Implements","Imports","In","Inherits","Integer","Interface","Is","IsNot","Let","Lib","Like","Long","Loop","Me","Mod","Module","MustInherit","MustOverride","MyBase","MyClass","NameOf","Namespace","Narrowing","New","Next","Not","Nothing","NotInheritable","NotOverridable","Object","Of","On","Operator","Option","Optional","Or","OrElse","Out","Overloads","Overridable","Overrides","ParamArray","Partial","Private","Property","Protected","Public","RaiseEvent","ReadOnly","ReDim","RemoveHandler","Resume","Return","SByte","Select","Set","Shadows","Shared","Short","Single","Static","Step","Stop","String","Structure","Sub","SyncLock","Then","Throw","To","True","Try","TryCast","TypeOf","UInteger","ULong","UShort","Using","Variant","Wend","When","While","Widening","With","WithEvents","WriteOnly","Xor"],tagwords:["If","Sub","Select","Try","Class","Enum","Function","Get","Interface","Module","Namespace","Operator","Set","Structure","Using","While","With","Do","Loop","For","Next","Property","Continue","AddHandler","RemoveHandler","Event","RaiseEvent","SyncLock"],symbols:/[=><!~?;\.,:&|+\-*\/\^%]+/,integersuffix:/U?[DI%L&S@]?/,floatsuffix:/[R#F!]?/,tokenizer:{root:[{include:"@whitespace"},[/next(?!\w)/,{token:"keyword.tag-for"}],[/loop(?!\w)/,{token:"keyword.tag-do"}],[/end\s+(?!for|do)(addhandler|class|enum|event|function|get|if|interface|module|namespace|operator|property|raiseevent|removehandler|select|set|structure|sub|synclock|try|while|with|using)/,{token:"keyword.tag-$1"}],[/[a-zA-Z_]\w*/,{cases:{"@tagwords":{token:"keyword.tag-$0"},"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/^\s*#\w+/,"keyword"],[/\d*\d+e([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+(e[\-+]?\d+)?(@floatsuffix)/,"number.float"],[/&H[0-9a-f]+(@integersuffix)/,"number.hex"],[/&0[0-7]+(@integersuffix)/,"number.octal"],[/\d+(@integersuffix)/,"number"],[/#.*#/,"number"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/["\u201c\u201d]/,{token:"string.quote",next:"@string"}]],whitespace:[[/[ \t\r\n]+/,""],[/(\'|REM(?!\w)).*$/,"comment"]],string:[[/[^"\u201c\u201d]+/,"string"],[/["\u201c\u201d]{2}/,"string.escape"],[/["\u201c\u201d]C?/,{token:"string.quote",next:"@pop"}]]}}}));o();export{n as conf,t as language};
1
+ import{aa as e}from"./index-RJQqJC6n.js";var n,t,o=e((()=>{n={comments:{lineComment:"'",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"],["addhandler","end addhandler"],["class","end class"],["enum","end enum"],["event","end event"],["function","end function"],["get","end get"],["if","end if"],["interface","end interface"],["module","end module"],["namespace","end namespace"],["operator","end operator"],["property","end property"],["raiseevent","end raiseevent"],["removehandler","end removehandler"],["select","end select"],["set","end set"],["structure","end structure"],["sub","end sub"],["synclock","end synclock"],["try","end try"],["while","end while"],["with","end with"],["using","end using"],["do","loop"],["for","next"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"<",close:">",notIn:["string","comment"]}],folding:{markers:{start:new RegExp("^\\s*#Region\\b"),end:new RegExp("^\\s*#End Region\\b")}}},t={defaultToken:"",tokenPostfix:".vb",ignoreCase:!0,brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.array",open:"[",close:"]"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.angle",open:"<",close:">"},{token:"keyword.tag-addhandler",open:"addhandler",close:"end addhandler"},{token:"keyword.tag-class",open:"class",close:"end class"},{token:"keyword.tag-enum",open:"enum",close:"end enum"},{token:"keyword.tag-event",open:"event",close:"end event"},{token:"keyword.tag-function",open:"function",close:"end function"},{token:"keyword.tag-get",open:"get",close:"end get"},{token:"keyword.tag-if",open:"if",close:"end if"},{token:"keyword.tag-interface",open:"interface",close:"end interface"},{token:"keyword.tag-module",open:"module",close:"end module"},{token:"keyword.tag-namespace",open:"namespace",close:"end namespace"},{token:"keyword.tag-operator",open:"operator",close:"end operator"},{token:"keyword.tag-property",open:"property",close:"end property"},{token:"keyword.tag-raiseevent",open:"raiseevent",close:"end raiseevent"},{token:"keyword.tag-removehandler",open:"removehandler",close:"end removehandler"},{token:"keyword.tag-select",open:"select",close:"end select"},{token:"keyword.tag-set",open:"set",close:"end set"},{token:"keyword.tag-structure",open:"structure",close:"end structure"},{token:"keyword.tag-sub",open:"sub",close:"end sub"},{token:"keyword.tag-synclock",open:"synclock",close:"end synclock"},{token:"keyword.tag-try",open:"try",close:"end try"},{token:"keyword.tag-while",open:"while",close:"end while"},{token:"keyword.tag-with",open:"with",close:"end with"},{token:"keyword.tag-using",open:"using",close:"end using"},{token:"keyword.tag-do",open:"do",close:"loop"},{token:"keyword.tag-for",open:"for",close:"next"}],keywords:["AddHandler","AddressOf","Alias","And","AndAlso","As","Async","Boolean","ByRef","Byte","ByVal","Call","Case","Catch","CBool","CByte","CChar","CDate","CDbl","CDec","Char","CInt","Class","CLng","CObj","Const","Continue","CSByte","CShort","CSng","CStr","CType","CUInt","CULng","CUShort","Date","Decimal","Declare","Default","Delegate","Dim","DirectCast","Do","Double","Each","Else","ElseIf","End","EndIf","Enum","Erase","Error","Event","Exit","False","Finally","For","Friend","Function","Get","GetType","GetXMLNamespace","Global","GoSub","GoTo","Handles","If","Implements","Imports","In","Inherits","Integer","Interface","Is","IsNot","Let","Lib","Like","Long","Loop","Me","Mod","Module","MustInherit","MustOverride","MyBase","MyClass","NameOf","Namespace","Narrowing","New","Next","Not","Nothing","NotInheritable","NotOverridable","Object","Of","On","Operator","Option","Optional","Or","OrElse","Out","Overloads","Overridable","Overrides","ParamArray","Partial","Private","Property","Protected","Public","RaiseEvent","ReadOnly","ReDim","RemoveHandler","Resume","Return","SByte","Select","Set","Shadows","Shared","Short","Single","Static","Step","Stop","String","Structure","Sub","SyncLock","Then","Throw","To","True","Try","TryCast","TypeOf","UInteger","ULong","UShort","Using","Variant","Wend","When","While","Widening","With","WithEvents","WriteOnly","Xor"],tagwords:["If","Sub","Select","Try","Class","Enum","Function","Get","Interface","Module","Namespace","Operator","Set","Structure","Using","While","With","Do","Loop","For","Next","Property","Continue","AddHandler","RemoveHandler","Event","RaiseEvent","SyncLock"],symbols:/[=><!~?;\.,:&|+\-*\/\^%]+/,integersuffix:/U?[DI%L&S@]?/,floatsuffix:/[R#F!]?/,tokenizer:{root:[{include:"@whitespace"},[/next(?!\w)/,{token:"keyword.tag-for"}],[/loop(?!\w)/,{token:"keyword.tag-do"}],[/end\s+(?!for|do)(addhandler|class|enum|event|function|get|if|interface|module|namespace|operator|property|raiseevent|removehandler|select|set|structure|sub|synclock|try|while|with|using)/,{token:"keyword.tag-$1"}],[/[a-zA-Z_]\w*/,{cases:{"@tagwords":{token:"keyword.tag-$0"},"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/^\s*#\w+/,"keyword"],[/\d*\d+e([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+(e[\-+]?\d+)?(@floatsuffix)/,"number.float"],[/&H[0-9a-f]+(@integersuffix)/,"number.hex"],[/&0[0-7]+(@integersuffix)/,"number.octal"],[/\d+(@integersuffix)/,"number"],[/#.*#/,"number"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/["\u201c\u201d]/,{token:"string.quote",next:"@string"}]],whitespace:[[/[ \t\r\n]+/,""],[/(\'|REM(?!\w)).*$/,"comment"]],string:[[/[^"\u201c\u201d]+/,"string"],[/["\u201c\u201d]{2}/,"string.escape"],[/["\u201c\u201d]C?/,{token:"string.quote",next:"@pop"}]]}}}));o();export{n as conf,t as language};
@@ -1,4 +1,4 @@
1
- import{aa as Wt}from"./index-B41wzfl2.js";import{Bt as S,Vt as le,jt as ht,t as ce}from"./src-Cz8NyTG1.js";import{U as ue,W as fe,a as he,at as de,b as Ht,c as ge,ct as ye,f as xe,it as St,j as pe,nt as me,q as be,ut as ve,v as ke,w as Ie,y as Me}from"./chunk-CSCIHK7Q-D0eX0NV1.js";import{n as _e,t as Se}from"./chunk-WU5MYG2G-3I1ZwKkc.js";import{d as we,i as Te}from"./chunk-5ZQYHXKU-DsBTFfjP.js";import{n as Ee,t as ze}from"./rough.esm-BjtdUJeF.js";function ut(t,n){const s=Ce(t),e=s.filter(c=>Ae(c,t));let i=0,o=0;const a=[];if(e.length>1){const c=Xt(e);for(let l=0;l<e.length;++l){const u=e[l];u.angle=Math.atan2(u.x-c.x,u.y-c.y)}e.sort((l,u)=>u.angle-l.angle);let f=e[e.length-1];for(let l=0;l<e.length;++l){const u=e[l];o+=(f.x+u.x)*(u.y-f.y);const y={x:(u.x+f.x)/2,y:(u.y+f.y)/2};let h=null;for(let b=0;b<u.parentIndex.length;++b)if(f.parentIndex.includes(u.parentIndex[b])){const d=t[u.parentIndex[b]],_=Math.atan2(u.x-d.x,u.y-d.y),T=Math.atan2(f.x-d.x,f.y-d.y);let m=T-_;m<0&&(m+=2*Math.PI);const x=T-m/2;let v=U(y,{x:d.x+d.radius*Math.sin(x),y:d.y+d.radius*Math.cos(x)});v>d.radius*2&&(v=d.radius*2),(h==null||h.width>v)&&(h={circle:d,width:v,p1:u,p2:f,large:v>d.radius,sweep:!0})}h!=null&&(a.push(h),i+=xt(h.circle.radius,h.width),f=u)}}else{let c=t[0];for(let l=1;l<t.length;++l)t[l].radius<c.radius&&(c=t[l]);let f=!1;for(let l=0;l<t.length;++l)if(U(t[l],c)>Math.abs(c.radius-t[l].radius)){f=!0;break}f?i=o=0:(i=c.radius*c.radius*Math.PI,a.push({circle:c,p1:{x:c.x,y:c.y+c.radius},p2:{x:c.x-Mt,y:c.y+c.radius},width:c.radius*2,large:!0,sweep:!0}))}return o/=2,n&&(n.area=i+o,n.arcArea=i,n.polygonArea=o,n.arcs=a,n.innerPoints=e,n.intersectionPoints=s),i+o}function Ae(t,n){return n.every(s=>U(t,s)<s.radius+Mt)}function Ce(t){const n=[];for(let s=0;s<t.length;++s)for(let e=s+1;e<t.length;++e){const i=Yt(t[s],t[e]);for(const o of i)o.parentIndex=[s,e],n.push(o)}return n}function xt(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}function U(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}function It(t,n,s){if(s>=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return xt(t,e)+xt(n,i)}function Yt(t,n){const s=U(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];const o=(e*e-i*i+s*s)/(2*s),a=Math.sqrt(e*e-o*o),c=t.x+o*(n.x-t.x)/s,f=t.y+o*(n.y-t.y)/s,l=-(n.y-t.y)*(a/s),u=-(n.x-t.x)*(a/s);return[{x:c+l,y:f-u},{x:c-l,y:f+u}]}function Xt(t){const n={x:0,y:0};for(const s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}function De(t,n,s,e){e=e||{};const i=e.maxIterations||100,o=e.tolerance||1e-10,a=t(n),c=t(s);let f=s-n;if(a*c>0)throw"Initial bisect points must have opposite signs";if(a===0)return n;if(c===0)return s;for(let l=0;l<i;++l){f/=2;const u=n+f,y=t(u);if(y*a>=0&&(n=u),Math.abs(f)<o||y===0)return u}return n+f}function pt(t){const n=new Array(t);for(let s=0;s<t;++s)n[s]=0;return n}function wt(t,n){return pt(t).map(()=>pt(n))}function tt(t,n){let s=0;for(let e=0;e<t.length;++e)s+=t[e]*n[e];return s}function mt(t){return Math.sqrt(tt(t,t))}function bt(t,n,s){for(let e=0;e<n.length;++e)t[e]=n[e]*s}function Y(t,n,s,e,i){for(let o=0;o<t.length;++o)t[o]=n*s[o]+e*i[o]}function Zt(t,n,s){s=s||{};const e=s.maxIterations||n.length*200,i=s.nonZeroDelta||1.05,o=s.zeroDelta||.001,a=s.minErrorDelta||1e-6,c=s.minErrorDelta||1e-5,f=s.rho!==void 0?s.rho:1,l=s.chi!==void 0?s.chi:2,u=s.psi!==void 0?s.psi:-.5,y=s.sigma!==void 0?s.sigma:.5;let h;const b=n.length,d=new Array(b+1);d[0]=n,d[0].fx=t(n),d[0].id=0;for(let g=0;g<b;++g){const p=n.slice();p[g]=p[g]?p[g]*i:o,d[g+1]=p,d[g+1].fx=t(p),d[g+1].id=g+1}function _(g){for(let p=0;p<g.length;p++)d[b][p]=g[p];d[b].fx=g.fx}const T=(g,p)=>g.fx-p.fx,m=n.slice(),x=n.slice(),v=n.slice(),k=n.slice();for(let g=0;g<e;++g){if(d.sort(T),s.history){const r=d.map(w=>{const I=w.slice();return I.fx=w.fx,I.id=w.id,I});r.sort((w,I)=>w.id-I.id),s.history.push({x:d[0].slice(),fx:d[0].fx,simplex:r})}h=0;for(let r=0;r<b;++r)h=Math.max(h,Math.abs(d[0][r]-d[1][r]));if(Math.abs(d[0].fx-d[b].fx)<a&&h<c)break;for(let r=0;r<b;++r){m[r]=0;for(let w=0;w<b;++w)m[r]+=d[w][r];m[r]/=b}const p=d[b];if(Y(x,1+f,m,-f,p),x.fx=t(x),x.fx<d[0].fx)Y(k,1+l,m,-l,p),k.fx=t(k),k.fx<x.fx?_(k):_(x);else if(x.fx>=d[b-1].fx){let r=!1;if(x.fx>p.fx?(Y(v,1+u,m,-u,p),v.fx=t(v),v.fx<p.fx?_(v):r=!0):(Y(v,1-u*f,m,u*f,p),v.fx=t(v),v.fx<x.fx?_(v):r=!0),r){if(y>=1)break;for(let w=1;w<d.length;++w)Y(d[w],1-y,d[0],y,d[w]),d[w].fx=t(d[w])}}else _(x)}return d.sort(T),{fx:d[0].fx,x:d[0]}}function Re(t,n,s,e,i,o,a){const c=s.fx,f=tt(s.fxprime,n);let l=c,u=c,y=f,h=0;i=i||1,o=o||1e-6,a=a||.1;function b(d,_,T){for(let m=0;m<16;++m)if(i=(d+_)/2,Y(e.x,1,s.x,i,n),l=e.fx=t(e.x,e.fxprime),y=tt(e.fxprime,n),l>c+o*i*f||l>=T)_=i;else{if(Math.abs(y)<=-a*f)return i;y*(_-d)>=0&&(_=d),d=i,T=l}return 0}for(let d=0;d<10;++d){if(Y(e.x,1,s.x,i,n),l=e.fx=t(e.x,e.fxprime),y=tt(e.fxprime,n),l>c+o*i*f||d&&l>=u)return b(h,i,u);if(Math.abs(y)<=-a*f)return i;if(y>=0)return b(i,h,l);u=l,h=i,i*=2}return i}function Ne(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const o=n.slice();let a,c,f=1,l;s=s||{},l=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),a=e.fxprime.slice(),bt(a,e.fxprime,-1);for(let u=0;u<l;++u){if(f=Re(t,a,e,i,f),s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),!f)bt(a,e.fxprime,-1);else{Y(o,1,i.fxprime,-1,e.fxprime);const y=tt(e.fxprime,e.fxprime),h=Math.max(0,tt(o,i.fxprime)/y);Y(a,h,a,-1,i.fxprime),c=e,e=i,i=c}if(mt(e.fxprime)<=1e-5)break}return s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),e}function Jt(t,n={}){n.maxIterations=n.maxIterations||500;const s=n.initialLayout||Pe,e=n.lossFunction||et,i=Oe(t,n),o=s(i,n),a=Object.keys(o),c=[];for(const l of a)c.push(o[l].x),c.push(o[l].y);const f=Zt(l=>{const u={};for(let y=0;y<a.length;++y){const h=a[y];u[h]={x:l[2*y],y:l[2*y+1],radius:o[h].radius}}return e(u,i)},c,n).x;for(let l=0;l<a.length;++l){const u=a[l];o[u].x=f[2*l],o[u].y=f[2*l+1]}return o}function vt(t,n,s){return Math.min(t,n)*Math.min(t,n)*Math.PI<=s+_t?Math.abs(t-n):De(e=>It(t,n,e)-s,0,t+n)}function Oe(t,n={}){const s=n.distinct,e=t.map(c=>Object.assign({},c));function i(c){return c.join(";")}if(s){const c=new Map;for(const f of e)for(let l=0;l<f.sets.length;l++){const u=String(f.sets[l]);c.set(u,f.size+(c.get(u)||0));for(let y=l+1;y<f.sets.length;y++){const h=String(f.sets[y]),b=`${u};${h}`,d=`${h};${u}`;c.set(b,f.size+(c.get(b)||0)),c.set(d,f.size+(c.get(d)||0))}}for(const f of e)f.sets.length<3&&(f.size=c.get(i(f.sets)))}const o=[],a=new Set;for(const c of e)if(c.sets.length===1)o.push(c.sets[0]);else if(c.sets.length===2){const f=c.sets[0],l=c.sets[1];a.add(i(c.sets)),a.add(i([l,f]))}o.sort((c,f)=>c===f?0:c<f?-1:1);for(let c=0;c<o.length;++c){const f=o[c];for(let l=c+1;l<o.length;++l){const u=o[l];a.has(i([f,u]))||e.push({sets:[f,u],size:0})}}return e}function Fe(t,n,s){const e=wt(n.length,n.length),i=wt(n.length,n.length);return t.filter(o=>o.sets.length===2).forEach(o=>{const a=s[o.sets[0]],c=s[o.sets[1]],f=vt(Math.sqrt(n[a].size/Math.PI),Math.sqrt(n[c].size/Math.PI),o.size);e[a][c]=e[c][a]=f;let l=0;o.size+1e-10>=Math.min(n[a].size,n[c].size)?l=1:o.size<=1e-10&&(l=-1),i[a][c]=i[c][a]=l}),{distances:e,constraints:i}}function je(t,n,s,e){for(let o=0;o<n.length;++o)n[o]=0;let i=0;for(let o=0;o<s.length;++o){const a=t[2*o],c=t[2*o+1];for(let f=o+1;f<s.length;++f){const l=t[2*f],u=t[2*f+1],y=s[o][f],h=e[o][f],b=(l-a)*(l-a)+(u-c)*(u-c),d=Math.sqrt(b),_=b-y*y;h>0&&d<=y||h<0&&d>=y||(i+=2*_*_,n[2*o]+=4*_*(a-l),n[2*o+1]+=4*_*(c-u),n[2*f]+=4*_*(l-a),n[2*f+1]+=4*_*(u-c))}}return i}function Pe(t,n={}){let s=Ve(t,n);const e=n.lossFunction||et;if(t.length>=8){const i=Le(t,n),o=e(i,t),a=e(s,t);o+1e-8<a&&(s=i)}return s}function Le(t,n={}){const s=n.restarts||10,e=[],i={};for(const h of t)h.sets.length===1&&(i[h.sets[0]]=e.length,e.push(h));let{distances:o,constraints:a}=Fe(t,e,i);const c=mt(o.map(mt))/o.length;o=o.map(h=>h.map(b=>b/c));const f=(h,b)=>je(h,b,o,a);let l=null;for(let h=0;h<s;++h){const b=Ne(f,pt(o.length*2).map(Math.random),n);(!l||b.fx<l.fx)&&(l=b)}const u=l.x,y={};for(let h=0;h<e.length;++h){const b=e[h];y[b.sets[0]]={x:u[2*h]*c,y:u[2*h+1]*c,radius:Math.sqrt(b.size/Math.PI)}}if(n.history)for(const h of n.history)bt(h.x,c);return y}function Ve(t,n){const s=n&&n.lossFunction?n.lossFunction:et,e={},i={};for(const y of t)if(y.sets.length===1){const h=y.sets[0];e[h]={x:1e10,y:1e10,rowid:e.length,size:y.size,radius:Math.sqrt(y.size/Math.PI)},i[h]=[]}t=t.filter(y=>y.sets.length===2);for(const y of t){let h=y.weight!=null?y.weight:1;const b=y.sets[0],d=y.sets[1];y.size+_t>=Math.min(e[b].size,e[d].size)&&(h=0),i[b].push({set:d,size:y.size,weight:h}),i[d].push({set:b,size:y.size,weight:h})}const o=[];Object.keys(i).forEach(y=>{let h=0;for(let b=0;b<i[y].length;++b)h+=i[y][b].size*i[y][b].weight;o.push({set:y,size:h})});function a(y,h){return h.size-y.size}o.sort(a);const c={};function f(y){return y.set in c}function l(y,h){e[h].x=y.x,e[h].y=y.y,c[h]=!0}l({x:0,y:0},o[0].set);for(let y=1;y<o.length;++y){const h=o[y].set,b=i[h].filter(f),d=e[h];if(b.sort(a),b.length===0)throw"ERROR: missing pairwise overlap information";const _=[];for(var u=0;u<b.length;++u){const x=e[b[u].set],v=vt(d.radius,x.radius,b[u].size);_.push({x:x.x+v,y:x.y}),_.push({x:x.x-v,y:x.y}),_.push({y:x.y+v,x:x.x}),_.push({y:x.y-v,x:x.x});for(let k=u+1;k<b.length;++k){const g=e[b[k].set],p=vt(d.radius,g.radius,b[k].size),r=Yt({x:x.x,y:x.y,radius:v},{x:g.x,y:g.y,radius:p});_.push(...r)}}let T=1e50,m=_[0];for(const x of _){e[h].x=x.x,e[h].y=x.y;const v=s(e,t);v<T&&(T=v,m=x)}l(m,h)}return e}function et(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const a=t[e.sets[0]],c=t[e.sets[1]];i=It(a.radius,c.radius,U(a,c))}else i=ut(e.sets.map(a=>t[a]));const o=e.weight!=null?e.weight:1;s+=o*(i-e.size)*(i-e.size)}return s}function Qt(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const c=t[e.sets[0]],f=t[e.sets[1]];i=It(c.radius,f.radius,U(c,f))}else i=ut(e.sets.map(c=>t[c]));const o=e.weight!=null?e.weight:1,a=Math.log((i+1)/(e.size+1));s+=o*a*a}return s}function Be(t,n,s){if(s==null?t.sort((i,o)=>o.radius-i.radius):t.sort(s),t.length>0){const i=t[0].x,o=t[0].y;for(const a of t)a.x-=i,a.y-=o}if(t.length===2&&U(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){const i=Math.atan2(t[1].x,t[1].y)-n,o=Math.cos(i),a=Math.sin(i);for(const c of t){const f=c.x,l=c.y;c.x=o*f-a*l,c.y=a*f+o*l}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const o=t[1].y/(1e-10+t[1].x);for(const a of t){var e=(a.x+o*a.y)/(1+o*o);a.x=2*e-a.x,a.y=2*e*o-a.y}}}}function Ue(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}function s(i,o){const a=n(i);a.parent=n(o)}for(let i=0;i<t.length;++i)for(let o=i+1;o<t.length;++o){const a=t[i].radius+t[o].radius;U(t[i],t[o])+1e-10<a&&s(t[o],t[i])}const e=new Map;for(let i=0;i<t.length;++i){const o=n(t[i]).parent.setid;e.has(o)||e.set(o,[]),e.get(o).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(e.values())}function kt(t){const n=s=>({max:t.reduce((e,i)=>Math.max(e,i[s]+i.radius),Number.NEGATIVE_INFINITY),min:t.reduce((e,i)=>Math.min(e,i[s]-i.radius),Number.POSITIVE_INFINITY)});return{xRange:n("x"),yRange:n("y")}}function $t(t,n,s){n==null&&(n=Math.PI/2);let e=ne(t).map(l=>Object.assign({},l));const i=Ue(e);for(const l of i){Be(l,n,s);const u=kt(l);l.size=(u.xRange.max-u.xRange.min)*(u.yRange.max-u.yRange.min),l.bounds=u}i.sort((l,u)=>u.size-l.size),e=i[0];let o=e.bounds;const a=(o.xRange.max-o.xRange.min)/50;function c(l,u,y){if(!l)return;const h=l.bounds;let b,d;if(u)b=o.xRange.max-h.xRange.min+a;else{b=o.xRange.max-h.xRange.max;const _=(h.xRange.max-h.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;_<0&&(b+=_)}if(y)d=o.yRange.max-h.yRange.min+a;else{d=o.yRange.max-h.yRange.max;const _=(h.yRange.max-h.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;_<0&&(d+=_)}for(const _ of l)_.x+=b,_.y+=d,e.push(_)}let f=1;for(;f<i.length;)c(i[f],!0,!1),c(i[f+1],!1,!0),c(i[f+2],!0,!0),f+=3,o=kt(e);return ee(e)}function te(t,n,s,e,i){const o=ne(t);n-=2*e,s-=2*e;const{xRange:a,yRange:c}=kt(o);if(a.max===a.min||c.max===c.min)return console.log("not scaling solution: zero size detected"),t;let f,l;if(i){const b=Math.sqrt(i/Math.PI)*2;f=n/b,l=s/b}else f=n/(a.max-a.min),l=s/(c.max-c.min);const u=Math.min(l,f),y=(n-(a.max-a.min)*u)/2,h=(s-(c.max-c.min)*u)/2;return ee(o.map(b=>({radius:u*b.radius,x:e+y+(b.x-a.min)*u,y:e+h+(b.y-c.min)*u,setid:b.setid})))}function ee(t){const n={};for(const s of t)n[s.setid]=s;return n}function ne(t){return Object.keys(t).map(n=>Object.assign(t[n],{setid:n}))}function qe(t={}){let n=!1,s=600,e=350,i=15,o=1e3,a=Math.PI/2,c=!0,f=null,l=!0,u=!0,y=null,h=null,b=!1,d=null,_=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,T={},m=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],x=0,v=function(r){if(r in T)return T[r];var w=T[r]=m[x];return x+=1,x>=m.length&&(x=0),w},k=Jt,g=et;function p(r){let w=r.datum();const I=new Set;w.forEach(M=>{M.size==0&&M.sets.length==1&&I.add(M.sets[0])}),w=w.filter(M=>!M.sets.some(O=>I.has(O)));let z={},F={};if(w.length>0){let M=k(w,{lossFunction:g,distinct:b});c&&(M=$t(M,a,h)),z=te(M,s,e,i,f),F=ie(z,w,_)}const L={};w.forEach(M=>{M.label&&(L[M.sets]=M.label)});function D(M){if(M.sets in L)return L[M.sets];if(M.sets.length==1)return""+M.sets[0]}r.selectAll("svg").data([z]).enter().append("svg");const A=r.select("svg");n?A.attr("viewBox",`0 0 ${s} ${e}`):A.attr("width",s).attr("height",e);const j={};let E=!1;A.selectAll(".venn-area path").each(function(M){const O=this.getAttribute("d");M.sets.length==1&&O&&!b&&(E=!0,j[M.sets[0]]=We(O))});function R(M){return O=>Tt(M.sets.map(Q=>{let P=j[Q],X=z[Q];return P||(P={x:s/2,y:e/2,radius:1}),X||(X={x:s/2,y:e/2,radius:1}),{x:P.x*(1-O)+X.x*O,y:P.y*(1-O)+X.y*O,radius:P.radius*(1-O)+X.radius*O}}),d)}const N=A.selectAll(".venn-area").data(w,M=>M.sets),V=N.enter().append("g").attr("class",M=>`venn-area venn-${M.sets.length==1?"circle":"intersection"}${M.colour||M.color?" venn-coloured":""}`).attr("data-venn-sets",M=>M.sets.join("_")),H=V.append("path"),K=V.append("text").attr("class","label").text(M=>D(M)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);u&&(H.style("fill-opacity","0").filter(M=>M.sets.length==1).style("fill",M=>M.colour?M.colour:M.color?M.color:v(M.sets)).style("fill-opacity",".25"),K.style("fill",M=>M.colour||M.color?"#FFF":t.textFill?t.textFill:M.sets.length==1?v(M.sets):"#444"));function J(M){return typeof M.transition=="function"?M.transition("venn").duration(o):M}let C=r;E&&typeof C.transition=="function"?(C=J(r),C.selectAll("path").attrTween("d",R)):C.selectAll("path").attr("d",M=>Tt(M.sets.map(O=>z[O])),d);const q=C.selectAll("text").filter(M=>M.sets in F).text(M=>D(M)).attr("x",M=>Math.floor(F[M.sets].x)).attr("y",M=>Math.floor(F[M.sets].y));l&&(E?"on"in q?q.on("end",dt(z,D)):q.each("end",dt(z,D)):q.each(dt(z,D)));const G=J(N.exit()).remove();typeof N.transition=="function"&&G.selectAll("path").attrTween("d",R);const B=G.selectAll("text").attr("x",s/2).attr("y",e/2);return y!==null&&(K.style("font-size","0px"),q.style("font-size",y),B.style("font-size","0px")),{circles:z,textCentres:F,nodes:N,enter:V,update:C,exit:G}}return p.wrap=function(r){return arguments.length?(l=r,p):l},p.useViewBox=function(){return n=!0,p},p.width=function(r){return arguments.length?(s=r,p):s},p.height=function(r){return arguments.length?(e=r,p):e},p.padding=function(r){return arguments.length?(i=r,p):i},p.distinct=function(r){return arguments.length?(b=r,p):b},p.colours=function(r){return arguments.length?(v=r,p):v},p.colors=function(r){return arguments.length?(v=r,p):v},p.fontSize=function(r){return arguments.length?(y=r,p):y},p.round=function(r){return arguments.length?(d=r,p):d},p.duration=function(r){return arguments.length?(o=r,p):o},p.layoutFunction=function(r){return arguments.length?(k=r,p):k},p.normalize=function(r){return arguments.length?(c=r,p):c},p.scaleToFit=function(r){return arguments.length?(f=r,p):f},p.styled=function(r){return arguments.length?(u=r,p):u},p.orientation=function(r){return arguments.length?(a=r,p):a},p.orientationOrder=function(r){return arguments.length?(h=r,p):h},p.lossFunction=function(r){return arguments.length?(g=r==="default"?et:r==="logRatio"?Qt:r,p):g},p}function dt(t,n){return function(s){const e=this,i=t[s.sets[0]].radius||50,o=n(s)||"",a=o.split(/\s+/).reverse(),c=(o.length+a.length)/3;let f=a.pop(),l=[f],u=0;const y=1.1;e.textContent=null;const h=[];function b(x){const v=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return v.textContent=x,h.push(v),e.append(v),v}let d=b(f);for(;f=a.pop(),!!f;){l.push(f);const x=l.join(" ");d.textContent=x,x.length>c&&d.getComputedTextLength()>i&&(l.pop(),d.textContent=l.join(" "),l=[f],d=b(f),u++)}const _=.35-u*y/2,T=e.getAttribute("x"),m=e.getAttribute("y");h.forEach((x,v)=>{x.setAttribute("x",T),x.setAttribute("y",m),x.setAttribute("dy",`${_+v*y}em`)})}}function gt(t,n,s){let e=n[0].radius-U(n[0],t);for(let i=1;i<n.length;++i){const o=n[i].radius-U(n[i],t);o<=e&&(e=o)}for(let i=0;i<s.length;++i){const o=U(s[i],t)-s[i].radius;o<=e&&(e=o)}return e}function se(t,n,s){const e=[];for(const u of t)e.push({x:u.x,y:u.y}),e.push({x:u.x+u.radius/2,y:u.y}),e.push({x:u.x-u.radius/2,y:u.y}),e.push({x:u.x,y:u.y+u.radius/2}),e.push({x:u.x,y:u.y-u.radius/2});let i=e[0],o=gt(e[0],t,n);for(let u=1;u<e.length;++u){const y=gt(e[u],t,n);y>=o&&(i=e[u],o=y)}const a=Zt(u=>-1*gt({x:u[0],y:u[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,c={x:s?0:a[0],y:a[1]};let f=!0;for(const u of t)if(U(c,u)>u.radius){f=!1;break}for(const u of n)if(U(c,u)<u.radius){f=!1;break}if(f)return c;if(t.length==1)return{x:t[0].x,y:t[0].y};const l={};return ut(t,l),l.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:l.arcs.length==1?{x:l.arcs[0].circle.x,y:l.arcs[0].circle.y}:n.length?se(t,[]):Xt(l.arcs.map(u=>u.p1))}function Ge(t){const n={},s=Object.keys(t);for(const e of s)n[e]=[];for(let e=0;e<s.length;e++){const i=s[e],o=t[i];for(let a=e+1;a<s.length;++a){const c=s[a],f=t[c],l=U(o,f);l+f.radius<=o.radius+1e-10?n[c].push(i):l+o.radius<=f.radius+1e-10&&n[i].push(c)}}return n}function ie(t,n,s){const e={},i=Ge(t);for(let o=0;o<n.length;++o){const a=n[o].sets,c={},f={};for(let h=0;h<a.length;++h){c[a[h]]=!0;const b=i[a[h]];for(let d=0;d<b.length;++d)f[b[d]]=!0}const l=[],u=[];for(let h in t)h in c?l.push(t[h]):h in f||u.push(t[h]);const y=se(l,u,s);e[a]=y,y.disjoint&&n[o].size>0&&console.log("WARNING: area "+a+" not represented on screen")}return e}function Ke(t,n,s){const e=[];return e.push(`
1
+ import{aa as Wt}from"./index-RJQqJC6n.js";import{Bt as S,Vt as le,jt as ht,t as ce}from"./src-Ra8Cw6Gr.js";import{U as ue,W as fe,a as he,at as de,b as Ht,c as ge,ct as ye,f as xe,it as St,j as pe,nt as me,q as be,ut as ve,v as ke,w as Ie,y as Me}from"./chunk-CSCIHK7Q-jw9fZDC9.js";import{n as _e,t as Se}from"./chunk-WU5MYG2G-Cv_QOL8q.js";import{d as we,i as Te}from"./chunk-5ZQYHXKU-D0RIlhMr.js";import{n as Ee,t as ze}from"./rough.esm-DKpVfK-g.js";function ut(t,n){const s=Ce(t),e=s.filter(c=>Ae(c,t));let i=0,o=0;const a=[];if(e.length>1){const c=Xt(e);for(let l=0;l<e.length;++l){const u=e[l];u.angle=Math.atan2(u.x-c.x,u.y-c.y)}e.sort((l,u)=>u.angle-l.angle);let f=e[e.length-1];for(let l=0;l<e.length;++l){const u=e[l];o+=(f.x+u.x)*(u.y-f.y);const y={x:(u.x+f.x)/2,y:(u.y+f.y)/2};let h=null;for(let b=0;b<u.parentIndex.length;++b)if(f.parentIndex.includes(u.parentIndex[b])){const d=t[u.parentIndex[b]],_=Math.atan2(u.x-d.x,u.y-d.y),T=Math.atan2(f.x-d.x,f.y-d.y);let m=T-_;m<0&&(m+=2*Math.PI);const x=T-m/2;let v=U(y,{x:d.x+d.radius*Math.sin(x),y:d.y+d.radius*Math.cos(x)});v>d.radius*2&&(v=d.radius*2),(h==null||h.width>v)&&(h={circle:d,width:v,p1:u,p2:f,large:v>d.radius,sweep:!0})}h!=null&&(a.push(h),i+=xt(h.circle.radius,h.width),f=u)}}else{let c=t[0];for(let l=1;l<t.length;++l)t[l].radius<c.radius&&(c=t[l]);let f=!1;for(let l=0;l<t.length;++l)if(U(t[l],c)>Math.abs(c.radius-t[l].radius)){f=!0;break}f?i=o=0:(i=c.radius*c.radius*Math.PI,a.push({circle:c,p1:{x:c.x,y:c.y+c.radius},p2:{x:c.x-Mt,y:c.y+c.radius},width:c.radius*2,large:!0,sweep:!0}))}return o/=2,n&&(n.area=i+o,n.arcArea=i,n.polygonArea=o,n.arcs=a,n.innerPoints=e,n.intersectionPoints=s),i+o}function Ae(t,n){return n.every(s=>U(t,s)<s.radius+Mt)}function Ce(t){const n=[];for(let s=0;s<t.length;++s)for(let e=s+1;e<t.length;++e){const i=Yt(t[s],t[e]);for(const o of i)o.parentIndex=[s,e],n.push(o)}return n}function xt(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}function U(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}function It(t,n,s){if(s>=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return xt(t,e)+xt(n,i)}function Yt(t,n){const s=U(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];const o=(e*e-i*i+s*s)/(2*s),a=Math.sqrt(e*e-o*o),c=t.x+o*(n.x-t.x)/s,f=t.y+o*(n.y-t.y)/s,l=-(n.y-t.y)*(a/s),u=-(n.x-t.x)*(a/s);return[{x:c+l,y:f-u},{x:c-l,y:f+u}]}function Xt(t){const n={x:0,y:0};for(const s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}function De(t,n,s,e){e=e||{};const i=e.maxIterations||100,o=e.tolerance||1e-10,a=t(n),c=t(s);let f=s-n;if(a*c>0)throw"Initial bisect points must have opposite signs";if(a===0)return n;if(c===0)return s;for(let l=0;l<i;++l){f/=2;const u=n+f,y=t(u);if(y*a>=0&&(n=u),Math.abs(f)<o||y===0)return u}return n+f}function pt(t){const n=new Array(t);for(let s=0;s<t;++s)n[s]=0;return n}function wt(t,n){return pt(t).map(()=>pt(n))}function tt(t,n){let s=0;for(let e=0;e<t.length;++e)s+=t[e]*n[e];return s}function mt(t){return Math.sqrt(tt(t,t))}function bt(t,n,s){for(let e=0;e<n.length;++e)t[e]=n[e]*s}function Y(t,n,s,e,i){for(let o=0;o<t.length;++o)t[o]=n*s[o]+e*i[o]}function Zt(t,n,s){s=s||{};const e=s.maxIterations||n.length*200,i=s.nonZeroDelta||1.05,o=s.zeroDelta||.001,a=s.minErrorDelta||1e-6,c=s.minErrorDelta||1e-5,f=s.rho!==void 0?s.rho:1,l=s.chi!==void 0?s.chi:2,u=s.psi!==void 0?s.psi:-.5,y=s.sigma!==void 0?s.sigma:.5;let h;const b=n.length,d=new Array(b+1);d[0]=n,d[0].fx=t(n),d[0].id=0;for(let g=0;g<b;++g){const p=n.slice();p[g]=p[g]?p[g]*i:o,d[g+1]=p,d[g+1].fx=t(p),d[g+1].id=g+1}function _(g){for(let p=0;p<g.length;p++)d[b][p]=g[p];d[b].fx=g.fx}const T=(g,p)=>g.fx-p.fx,m=n.slice(),x=n.slice(),v=n.slice(),k=n.slice();for(let g=0;g<e;++g){if(d.sort(T),s.history){const r=d.map(w=>{const I=w.slice();return I.fx=w.fx,I.id=w.id,I});r.sort((w,I)=>w.id-I.id),s.history.push({x:d[0].slice(),fx:d[0].fx,simplex:r})}h=0;for(let r=0;r<b;++r)h=Math.max(h,Math.abs(d[0][r]-d[1][r]));if(Math.abs(d[0].fx-d[b].fx)<a&&h<c)break;for(let r=0;r<b;++r){m[r]=0;for(let w=0;w<b;++w)m[r]+=d[w][r];m[r]/=b}const p=d[b];if(Y(x,1+f,m,-f,p),x.fx=t(x),x.fx<d[0].fx)Y(k,1+l,m,-l,p),k.fx=t(k),k.fx<x.fx?_(k):_(x);else if(x.fx>=d[b-1].fx){let r=!1;if(x.fx>p.fx?(Y(v,1+u,m,-u,p),v.fx=t(v),v.fx<p.fx?_(v):r=!0):(Y(v,1-u*f,m,u*f,p),v.fx=t(v),v.fx<x.fx?_(v):r=!0),r){if(y>=1)break;for(let w=1;w<d.length;++w)Y(d[w],1-y,d[0],y,d[w]),d[w].fx=t(d[w])}}else _(x)}return d.sort(T),{fx:d[0].fx,x:d[0]}}function Re(t,n,s,e,i,o,a){const c=s.fx,f=tt(s.fxprime,n);let l=c,u=c,y=f,h=0;i=i||1,o=o||1e-6,a=a||.1;function b(d,_,T){for(let m=0;m<16;++m)if(i=(d+_)/2,Y(e.x,1,s.x,i,n),l=e.fx=t(e.x,e.fxprime),y=tt(e.fxprime,n),l>c+o*i*f||l>=T)_=i;else{if(Math.abs(y)<=-a*f)return i;y*(_-d)>=0&&(_=d),d=i,T=l}return 0}for(let d=0;d<10;++d){if(Y(e.x,1,s.x,i,n),l=e.fx=t(e.x,e.fxprime),y=tt(e.fxprime,n),l>c+o*i*f||d&&l>=u)return b(h,i,u);if(Math.abs(y)<=-a*f)return i;if(y>=0)return b(i,h,l);u=l,h=i,i*=2}return i}function Ne(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const o=n.slice();let a,c,f=1,l;s=s||{},l=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),a=e.fxprime.slice(),bt(a,e.fxprime,-1);for(let u=0;u<l;++u){if(f=Re(t,a,e,i,f),s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),!f)bt(a,e.fxprime,-1);else{Y(o,1,i.fxprime,-1,e.fxprime);const y=tt(e.fxprime,e.fxprime),h=Math.max(0,tt(o,i.fxprime)/y);Y(a,h,a,-1,i.fxprime),c=e,e=i,i=c}if(mt(e.fxprime)<=1e-5)break}return s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),e}function Jt(t,n={}){n.maxIterations=n.maxIterations||500;const s=n.initialLayout||Pe,e=n.lossFunction||et,i=Oe(t,n),o=s(i,n),a=Object.keys(o),c=[];for(const l of a)c.push(o[l].x),c.push(o[l].y);const f=Zt(l=>{const u={};for(let y=0;y<a.length;++y){const h=a[y];u[h]={x:l[2*y],y:l[2*y+1],radius:o[h].radius}}return e(u,i)},c,n).x;for(let l=0;l<a.length;++l){const u=a[l];o[u].x=f[2*l],o[u].y=f[2*l+1]}return o}function vt(t,n,s){return Math.min(t,n)*Math.min(t,n)*Math.PI<=s+_t?Math.abs(t-n):De(e=>It(t,n,e)-s,0,t+n)}function Oe(t,n={}){const s=n.distinct,e=t.map(c=>Object.assign({},c));function i(c){return c.join(";")}if(s){const c=new Map;for(const f of e)for(let l=0;l<f.sets.length;l++){const u=String(f.sets[l]);c.set(u,f.size+(c.get(u)||0));for(let y=l+1;y<f.sets.length;y++){const h=String(f.sets[y]),b=`${u};${h}`,d=`${h};${u}`;c.set(b,f.size+(c.get(b)||0)),c.set(d,f.size+(c.get(d)||0))}}for(const f of e)f.sets.length<3&&(f.size=c.get(i(f.sets)))}const o=[],a=new Set;for(const c of e)if(c.sets.length===1)o.push(c.sets[0]);else if(c.sets.length===2){const f=c.sets[0],l=c.sets[1];a.add(i(c.sets)),a.add(i([l,f]))}o.sort((c,f)=>c===f?0:c<f?-1:1);for(let c=0;c<o.length;++c){const f=o[c];for(let l=c+1;l<o.length;++l){const u=o[l];a.has(i([f,u]))||e.push({sets:[f,u],size:0})}}return e}function Fe(t,n,s){const e=wt(n.length,n.length),i=wt(n.length,n.length);return t.filter(o=>o.sets.length===2).forEach(o=>{const a=s[o.sets[0]],c=s[o.sets[1]],f=vt(Math.sqrt(n[a].size/Math.PI),Math.sqrt(n[c].size/Math.PI),o.size);e[a][c]=e[c][a]=f;let l=0;o.size+1e-10>=Math.min(n[a].size,n[c].size)?l=1:o.size<=1e-10&&(l=-1),i[a][c]=i[c][a]=l}),{distances:e,constraints:i}}function je(t,n,s,e){for(let o=0;o<n.length;++o)n[o]=0;let i=0;for(let o=0;o<s.length;++o){const a=t[2*o],c=t[2*o+1];for(let f=o+1;f<s.length;++f){const l=t[2*f],u=t[2*f+1],y=s[o][f],h=e[o][f],b=(l-a)*(l-a)+(u-c)*(u-c),d=Math.sqrt(b),_=b-y*y;h>0&&d<=y||h<0&&d>=y||(i+=2*_*_,n[2*o]+=4*_*(a-l),n[2*o+1]+=4*_*(c-u),n[2*f]+=4*_*(l-a),n[2*f+1]+=4*_*(u-c))}}return i}function Pe(t,n={}){let s=Ve(t,n);const e=n.lossFunction||et;if(t.length>=8){const i=Le(t,n),o=e(i,t),a=e(s,t);o+1e-8<a&&(s=i)}return s}function Le(t,n={}){const s=n.restarts||10,e=[],i={};for(const h of t)h.sets.length===1&&(i[h.sets[0]]=e.length,e.push(h));let{distances:o,constraints:a}=Fe(t,e,i);const c=mt(o.map(mt))/o.length;o=o.map(h=>h.map(b=>b/c));const f=(h,b)=>je(h,b,o,a);let l=null;for(let h=0;h<s;++h){const b=Ne(f,pt(o.length*2).map(Math.random),n);(!l||b.fx<l.fx)&&(l=b)}const u=l.x,y={};for(let h=0;h<e.length;++h){const b=e[h];y[b.sets[0]]={x:u[2*h]*c,y:u[2*h+1]*c,radius:Math.sqrt(b.size/Math.PI)}}if(n.history)for(const h of n.history)bt(h.x,c);return y}function Ve(t,n){const s=n&&n.lossFunction?n.lossFunction:et,e={},i={};for(const y of t)if(y.sets.length===1){const h=y.sets[0];e[h]={x:1e10,y:1e10,rowid:e.length,size:y.size,radius:Math.sqrt(y.size/Math.PI)},i[h]=[]}t=t.filter(y=>y.sets.length===2);for(const y of t){let h=y.weight!=null?y.weight:1;const b=y.sets[0],d=y.sets[1];y.size+_t>=Math.min(e[b].size,e[d].size)&&(h=0),i[b].push({set:d,size:y.size,weight:h}),i[d].push({set:b,size:y.size,weight:h})}const o=[];Object.keys(i).forEach(y=>{let h=0;for(let b=0;b<i[y].length;++b)h+=i[y][b].size*i[y][b].weight;o.push({set:y,size:h})});function a(y,h){return h.size-y.size}o.sort(a);const c={};function f(y){return y.set in c}function l(y,h){e[h].x=y.x,e[h].y=y.y,c[h]=!0}l({x:0,y:0},o[0].set);for(let y=1;y<o.length;++y){const h=o[y].set,b=i[h].filter(f),d=e[h];if(b.sort(a),b.length===0)throw"ERROR: missing pairwise overlap information";const _=[];for(var u=0;u<b.length;++u){const x=e[b[u].set],v=vt(d.radius,x.radius,b[u].size);_.push({x:x.x+v,y:x.y}),_.push({x:x.x-v,y:x.y}),_.push({y:x.y+v,x:x.x}),_.push({y:x.y-v,x:x.x});for(let k=u+1;k<b.length;++k){const g=e[b[k].set],p=vt(d.radius,g.radius,b[k].size),r=Yt({x:x.x,y:x.y,radius:v},{x:g.x,y:g.y,radius:p});_.push(...r)}}let T=1e50,m=_[0];for(const x of _){e[h].x=x.x,e[h].y=x.y;const v=s(e,t);v<T&&(T=v,m=x)}l(m,h)}return e}function et(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const a=t[e.sets[0]],c=t[e.sets[1]];i=It(a.radius,c.radius,U(a,c))}else i=ut(e.sets.map(a=>t[a]));const o=e.weight!=null?e.weight:1;s+=o*(i-e.size)*(i-e.size)}return s}function Qt(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const c=t[e.sets[0]],f=t[e.sets[1]];i=It(c.radius,f.radius,U(c,f))}else i=ut(e.sets.map(c=>t[c]));const o=e.weight!=null?e.weight:1,a=Math.log((i+1)/(e.size+1));s+=o*a*a}return s}function Be(t,n,s){if(s==null?t.sort((i,o)=>o.radius-i.radius):t.sort(s),t.length>0){const i=t[0].x,o=t[0].y;for(const a of t)a.x-=i,a.y-=o}if(t.length===2&&U(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){const i=Math.atan2(t[1].x,t[1].y)-n,o=Math.cos(i),a=Math.sin(i);for(const c of t){const f=c.x,l=c.y;c.x=o*f-a*l,c.y=a*f+o*l}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const o=t[1].y/(1e-10+t[1].x);for(const a of t){var e=(a.x+o*a.y)/(1+o*o);a.x=2*e-a.x,a.y=2*e*o-a.y}}}}function Ue(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}function s(i,o){const a=n(i);a.parent=n(o)}for(let i=0;i<t.length;++i)for(let o=i+1;o<t.length;++o){const a=t[i].radius+t[o].radius;U(t[i],t[o])+1e-10<a&&s(t[o],t[i])}const e=new Map;for(let i=0;i<t.length;++i){const o=n(t[i]).parent.setid;e.has(o)||e.set(o,[]),e.get(o).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(e.values())}function kt(t){const n=s=>({max:t.reduce((e,i)=>Math.max(e,i[s]+i.radius),Number.NEGATIVE_INFINITY),min:t.reduce((e,i)=>Math.min(e,i[s]-i.radius),Number.POSITIVE_INFINITY)});return{xRange:n("x"),yRange:n("y")}}function $t(t,n,s){n==null&&(n=Math.PI/2);let e=ne(t).map(l=>Object.assign({},l));const i=Ue(e);for(const l of i){Be(l,n,s);const u=kt(l);l.size=(u.xRange.max-u.xRange.min)*(u.yRange.max-u.yRange.min),l.bounds=u}i.sort((l,u)=>u.size-l.size),e=i[0];let o=e.bounds;const a=(o.xRange.max-o.xRange.min)/50;function c(l,u,y){if(!l)return;const h=l.bounds;let b,d;if(u)b=o.xRange.max-h.xRange.min+a;else{b=o.xRange.max-h.xRange.max;const _=(h.xRange.max-h.xRange.min)/2-(o.xRange.max-o.xRange.min)/2;_<0&&(b+=_)}if(y)d=o.yRange.max-h.yRange.min+a;else{d=o.yRange.max-h.yRange.max;const _=(h.yRange.max-h.yRange.min)/2-(o.yRange.max-o.yRange.min)/2;_<0&&(d+=_)}for(const _ of l)_.x+=b,_.y+=d,e.push(_)}let f=1;for(;f<i.length;)c(i[f],!0,!1),c(i[f+1],!1,!0),c(i[f+2],!0,!0),f+=3,o=kt(e);return ee(e)}function te(t,n,s,e,i){const o=ne(t);n-=2*e,s-=2*e;const{xRange:a,yRange:c}=kt(o);if(a.max===a.min||c.max===c.min)return console.log("not scaling solution: zero size detected"),t;let f,l;if(i){const b=Math.sqrt(i/Math.PI)*2;f=n/b,l=s/b}else f=n/(a.max-a.min),l=s/(c.max-c.min);const u=Math.min(l,f),y=(n-(a.max-a.min)*u)/2,h=(s-(c.max-c.min)*u)/2;return ee(o.map(b=>({radius:u*b.radius,x:e+y+(b.x-a.min)*u,y:e+h+(b.y-c.min)*u,setid:b.setid})))}function ee(t){const n={};for(const s of t)n[s.setid]=s;return n}function ne(t){return Object.keys(t).map(n=>Object.assign(t[n],{setid:n}))}function qe(t={}){let n=!1,s=600,e=350,i=15,o=1e3,a=Math.PI/2,c=!0,f=null,l=!0,u=!0,y=null,h=null,b=!1,d=null,_=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,T={},m=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],x=0,v=function(r){if(r in T)return T[r];var w=T[r]=m[x];return x+=1,x>=m.length&&(x=0),w},k=Jt,g=et;function p(r){let w=r.datum();const I=new Set;w.forEach(M=>{M.size==0&&M.sets.length==1&&I.add(M.sets[0])}),w=w.filter(M=>!M.sets.some(O=>I.has(O)));let z={},F={};if(w.length>0){let M=k(w,{lossFunction:g,distinct:b});c&&(M=$t(M,a,h)),z=te(M,s,e,i,f),F=ie(z,w,_)}const L={};w.forEach(M=>{M.label&&(L[M.sets]=M.label)});function D(M){if(M.sets in L)return L[M.sets];if(M.sets.length==1)return""+M.sets[0]}r.selectAll("svg").data([z]).enter().append("svg");const A=r.select("svg");n?A.attr("viewBox",`0 0 ${s} ${e}`):A.attr("width",s).attr("height",e);const j={};let E=!1;A.selectAll(".venn-area path").each(function(M){const O=this.getAttribute("d");M.sets.length==1&&O&&!b&&(E=!0,j[M.sets[0]]=We(O))});function R(M){return O=>Tt(M.sets.map(Q=>{let P=j[Q],X=z[Q];return P||(P={x:s/2,y:e/2,radius:1}),X||(X={x:s/2,y:e/2,radius:1}),{x:P.x*(1-O)+X.x*O,y:P.y*(1-O)+X.y*O,radius:P.radius*(1-O)+X.radius*O}}),d)}const N=A.selectAll(".venn-area").data(w,M=>M.sets),V=N.enter().append("g").attr("class",M=>`venn-area venn-${M.sets.length==1?"circle":"intersection"}${M.colour||M.color?" venn-coloured":""}`).attr("data-venn-sets",M=>M.sets.join("_")),H=V.append("path"),K=V.append("text").attr("class","label").text(M=>D(M)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);u&&(H.style("fill-opacity","0").filter(M=>M.sets.length==1).style("fill",M=>M.colour?M.colour:M.color?M.color:v(M.sets)).style("fill-opacity",".25"),K.style("fill",M=>M.colour||M.color?"#FFF":t.textFill?t.textFill:M.sets.length==1?v(M.sets):"#444"));function J(M){return typeof M.transition=="function"?M.transition("venn").duration(o):M}let C=r;E&&typeof C.transition=="function"?(C=J(r),C.selectAll("path").attrTween("d",R)):C.selectAll("path").attr("d",M=>Tt(M.sets.map(O=>z[O])),d);const q=C.selectAll("text").filter(M=>M.sets in F).text(M=>D(M)).attr("x",M=>Math.floor(F[M.sets].x)).attr("y",M=>Math.floor(F[M.sets].y));l&&(E?"on"in q?q.on("end",dt(z,D)):q.each("end",dt(z,D)):q.each(dt(z,D)));const G=J(N.exit()).remove();typeof N.transition=="function"&&G.selectAll("path").attrTween("d",R);const B=G.selectAll("text").attr("x",s/2).attr("y",e/2);return y!==null&&(K.style("font-size","0px"),q.style("font-size",y),B.style("font-size","0px")),{circles:z,textCentres:F,nodes:N,enter:V,update:C,exit:G}}return p.wrap=function(r){return arguments.length?(l=r,p):l},p.useViewBox=function(){return n=!0,p},p.width=function(r){return arguments.length?(s=r,p):s},p.height=function(r){return arguments.length?(e=r,p):e},p.padding=function(r){return arguments.length?(i=r,p):i},p.distinct=function(r){return arguments.length?(b=r,p):b},p.colours=function(r){return arguments.length?(v=r,p):v},p.colors=function(r){return arguments.length?(v=r,p):v},p.fontSize=function(r){return arguments.length?(y=r,p):y},p.round=function(r){return arguments.length?(d=r,p):d},p.duration=function(r){return arguments.length?(o=r,p):o},p.layoutFunction=function(r){return arguments.length?(k=r,p):k},p.normalize=function(r){return arguments.length?(c=r,p):c},p.scaleToFit=function(r){return arguments.length?(f=r,p):f},p.styled=function(r){return arguments.length?(u=r,p):u},p.orientation=function(r){return arguments.length?(a=r,p):a},p.orientationOrder=function(r){return arguments.length?(h=r,p):h},p.lossFunction=function(r){return arguments.length?(g=r==="default"?et:r==="logRatio"?Qt:r,p):g},p}function dt(t,n){return function(s){const e=this,i=t[s.sets[0]].radius||50,o=n(s)||"",a=o.split(/\s+/).reverse(),c=(o.length+a.length)/3;let f=a.pop(),l=[f],u=0;const y=1.1;e.textContent=null;const h=[];function b(x){const v=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return v.textContent=x,h.push(v),e.append(v),v}let d=b(f);for(;f=a.pop(),!!f;){l.push(f);const x=l.join(" ");d.textContent=x,x.length>c&&d.getComputedTextLength()>i&&(l.pop(),d.textContent=l.join(" "),l=[f],d=b(f),u++)}const _=.35-u*y/2,T=e.getAttribute("x"),m=e.getAttribute("y");h.forEach((x,v)=>{x.setAttribute("x",T),x.setAttribute("y",m),x.setAttribute("dy",`${_+v*y}em`)})}}function gt(t,n,s){let e=n[0].radius-U(n[0],t);for(let i=1;i<n.length;++i){const o=n[i].radius-U(n[i],t);o<=e&&(e=o)}for(let i=0;i<s.length;++i){const o=U(s[i],t)-s[i].radius;o<=e&&(e=o)}return e}function se(t,n,s){const e=[];for(const u of t)e.push({x:u.x,y:u.y}),e.push({x:u.x+u.radius/2,y:u.y}),e.push({x:u.x-u.radius/2,y:u.y}),e.push({x:u.x,y:u.y+u.radius/2}),e.push({x:u.x,y:u.y-u.radius/2});let i=e[0],o=gt(e[0],t,n);for(let u=1;u<e.length;++u){const y=gt(e[u],t,n);y>=o&&(i=e[u],o=y)}const a=Zt(u=>-1*gt({x:u[0],y:u[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,c={x:s?0:a[0],y:a[1]};let f=!0;for(const u of t)if(U(c,u)>u.radius){f=!1;break}for(const u of n)if(U(c,u)<u.radius){f=!1;break}if(f)return c;if(t.length==1)return{x:t[0].x,y:t[0].y};const l={};return ut(t,l),l.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:l.arcs.length==1?{x:l.arcs[0].circle.x,y:l.arcs[0].circle.y}:n.length?se(t,[]):Xt(l.arcs.map(u=>u.p1))}function Ge(t){const n={},s=Object.keys(t);for(const e of s)n[e]=[];for(let e=0;e<s.length;e++){const i=s[e],o=t[i];for(let a=e+1;a<s.length;++a){const c=s[a],f=t[c],l=U(o,f);l+f.radius<=o.radius+1e-10?n[c].push(i):l+o.radius<=f.radius+1e-10&&n[i].push(c)}}return n}function ie(t,n,s){const e={},i=Ge(t);for(let o=0;o<n.length;++o){const a=n[o].sets,c={},f={};for(let h=0;h<a.length;++h){c[a[h]]=!0;const b=i[a[h]];for(let d=0;d<b.length;++d)f[b[d]]=!0}const l=[],u=[];for(let h in t)h in c?l.push(t[h]):h in f||u.push(t[h]);const y=se(l,u,s);e[a]=y,y.disjoint&&n[o].size>0&&console.log("WARNING: area "+a+" not represented on screen")}return e}function Ke(t,n,s){const e=[];return e.push(`
2
2
  M`,t,n),e.push(`
3
3
  m`,-s,0),e.push(`
4
4
  a`,s,s,0,1,0,s*2,0),e.push(`
@@ -0,0 +1 @@
1
+ import{aa as a}from"./index-RJQqJC6n.js";import{N as r,a as i,i as t}from"./mermaid-parser.core-H0g6x_iH.js";var e=a((()=>{i(),r()}));e();export{t as createWardleyServices};
@@ -1,4 +1,4 @@
1
- import{aa as Xt}from"./index-B41wzfl2.js";import{n as Et,t as Yt}from"./mermaid-parser.core-Ct7VvVNd.js";import{Bt as y,Ht as J,Vt as Bt}from"./src-Cz8NyTG1.js";import{D as It,U as Ft,W as Ot,a as Rt,b as Wt,c as _t,j as Dt,q as Gt,v as Ht,w as qt,x as U,y as jt}from"./chunk-CSCIHK7Q-D0eX0NV1.js";import{n as Vt,t as Ut}from"./chunk-WU5MYG2G-3I1ZwKkc.js";import{d as Zt,i as tt}from"./chunk-5ZQYHXKU-DsBTFfjP.js";import{n as Kt,t as Qt}from"./chunk-4BX2VUAB-Be1NT72j.js";function et(){return U()["wardley-beta"]}function at(e,a,r,x,n,l,u,S,g){k.addNode({id:e,label:a,x:r,y:x,className:n,labelOffsetX:l,labelOffsetY:u,inertia:S,sourceStrategy:g})}function rt(e,a,r=!1,x,n){k.addLink({source:e,target:a,dashed:r,label:x,flow:n})}function ot(e,a,r){k.addTrend({nodeId:e,targetX:a,targetY:r})}function nt(e,a,r){k.addAnnotation({number:e,coordinates:a,text:r})}function st(e,a,r){k.addNote({text:e,x:a,y:r})}function it(e,a,r){k.addAccelerator({name:e,x:a,y:r})}function lt(e,a,r){k.addDeaccelerator({name:e,x:a,y:r})}function dt(e,a){k.setAnnotationsBox(e,a)}function ct(e,a){k.setSize(e,a)}function pt(e){k.startPipeline(e)}function ht(e,a){k.addPipelineComponent(e,a)}function xt(e){k.setAxes(e)}function ft(e){return k.getNode(e)}function gt(e){return k.resolveNodeId(e)}function yt(){return k.build()}function ut(){k.clear(),Rt()}var q,F,N,j,wt,mt,V,k,kt,bt,$t,Pt,Jt,te=Xt((()=>{Ut(),Qt(),Zt(),Dt(),Bt(),Yt(),F=y((e,a)=>{const r=e<=1?e*100:e;if(r<0||r>100)throw new Error(`${a} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return r},"toPercent"),N=y((e,a,r)=>({x:F(a,`${r} evolution`),y:F(e,`${r} visibility`)}),"toCoordinates"),j=y(e=>{if(e){if(e==="+<>")return"bidirectional";if(e==="+<")return"backward";if(e==="+>")return"forward"}},"getFlowFromPort"),wt=y(e=>{if(!e?.startsWith("+"))return{};const a=/^\+'([^']*)'/.exec(e)?.[1];return e.includes("<>")?{flow:"bidirectional",label:a}:e.includes("<")?{flow:"backward",label:a}:e.includes(">")?{flow:"forward",label:a}:{label:a}},"extractFlowFromArrow"),mt=y((e,a)=>{if(Kt(e,a),e.size&&a.setSize(e.size.width,e.size.height),e.evolution){const r=e.evolution.stages.map(n=>n.secondName?`${n.name.trim()} / ${n.secondName.trim()}`:n.name.trim()),x=e.evolution.stages.filter(n=>n.boundary!==void 0).map(n=>n.boundary);a.updateAxes({stages:r,stageBoundaries:x})}if(e.anchors.forEach(r=>{const x=N(r.visibility,r.evolution,`Anchor "${r.name}"`);a.addNode(r.name,r.name,x.x,x.y,"anchor")}),e.components.forEach(r=>{const x=N(r.visibility,r.evolution,`Component "${r.name}"`),n=r.label?(r.label.negX?-1:1)*r.label.offsetX:void 0,l=r.label?(r.label.negY?-1:1)*r.label.offsetY:void 0,u=r.decorator?.strategy;a.addNode(r.name,r.name,x.x,x.y,"component",n,l,r.inertia,u)}),e.notes.forEach(r=>{const x=N(r.visibility,r.evolution,`Note "${r.text}"`);a.addNote(r.text,x.x,x.y)}),e.pipelines.forEach(r=>{const x=a.getNode(r.parent);if(!x||typeof x.y!="number")throw new Error(`Pipeline "${r.parent}" must reference an existing component with coordinates.`);const n=x.y;a.startPipeline(r.parent),r.components.forEach(l=>{const u=`${r.parent}_${l.name}`,S=l.label?(l.label.negX?-1:1)*l.label.offsetX:void 0,g=l.label?(l.label.negY?-1:1)*l.label.offsetY:void 0,O=F(l.evolution,`Pipeline component "${l.name}" evolution`);a.addNode(u,l.name,O,n,"pipeline-component",S,g),a.addPipelineComponent(r.parent,u)})}),e.links.forEach(r=>{const x=!!r.arrow&&(r.arrow.includes("-.->")||r.arrow.includes(".-."));let n=j(r.fromPort)??j(r.toPort);const{flow:l,label:u}=wt(r.arrow);!n&&l&&(n=l);const S=r.linkLabel,g=u??S;a.addLink(a.resolveNodeId(r.from),a.resolveNodeId(r.to),x,g,n)}),e.evolves.forEach(r=>{const x=a.getNode(r.component);if(x?.y!==void 0){const n=F(r.target,`Evolve target for "${r.component}"`);a.addTrend(r.component,n,x.y)}}),e.annotations.length>0){const r=e.annotations[0],x=N(r.x,r.y,"Annotations box");a.setAnnotationsBox(x.x,x.y)}e.annotation.forEach(r=>{const x=N(r.x,r.y,`Annotation ${r.number}`);a.addAnnotation(r.number,[{x:x.x,y:x.y}],r.text)}),e.accelerators.forEach(r=>{const x=N(r.x,r.y,`Accelerator "${r.name}"`);a.addAccelerator(r.name,x.x,x.y)}),e.deaccelerators.forEach(r=>{const x=N(r.x,r.y,`Deaccelerator "${r.name}"`);a.addDeaccelerator(r.name,x.x,x.y)})},"populateDb"),V={parser:{yy:void 0},parse:y(async e=>{const a=await Et("wardley",e);J.debug(a);const r=V.parser?.yy;if(!r||typeof r.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");mt(a,r)},"parse")},k=new(q=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}addNode(e){const a=this.nodes.get(e.id)??{id:e.id,label:e.label},r={...a,...e,className:e.className??a.className,labelOffsetX:e.labelOffsetX??a.labelOffsetX,labelOffsetY:e.labelOffsetY??a.labelOffsetY};this.nodes.set(e.id,r)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});const a=this.nodes.get(e);a&&(a.isPipelineParent=!0)}addPipelineComponent(e,a){const r=this.pipelines.get(e);r&&r.componentIds.push(a);const x=this.nodes.get(a);x&&(x.inPipeline=!0)}addAnnotation(e){this.annotations.push(e)}addNote(e){this.notes.push(e)}addAccelerator(e){this.accelerators.push(e)}addDeaccelerator(e){this.deaccelerators.push(e)}setAnnotationsBox(e,a){this.annotationsBox={x:e,y:a}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,a){this.size={width:e,height:a}}getNode(e){return this.nodes.get(e)}resolveNodeId(e){if(this.nodes.has(e))return e;for(const[a,r]of this.nodes)if(r.label===e)return a;return e}build(){const e=[];for(const a of this.nodes.values()){if(typeof a.x!="number"||typeof a.y!="number")throw new Error(`Node "${a.label}" is missing coordinates`);e.push(a)}return{nodes:e,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},y(q,"WardleyBuilder"),q),y(et,"getConfig"),y(at,"addNode"),y(rt,"addLink"),y(ot,"addTrend"),y(nt,"addAnnotation"),y(st,"addNote"),y(it,"addAccelerator"),y(lt,"addDeaccelerator"),y(dt,"setAnnotationsBox"),y(ct,"setSize"),y(pt,"startPipeline"),y(ht,"addPipelineComponent"),y(xt,"updateAxes"),y(ft,"getNode"),y(gt,"resolveNodeId"),y(yt,"getWardleyData"),y(ut,"clear"),kt={getConfig:et,addNode:at,addLink:rt,addTrend:ot,addAnnotation:nt,addNote:st,addAccelerator:it,addDeaccelerator:lt,setAnnotationsBox:dt,setSize:ct,startPipeline:pt,addPipelineComponent:ht,updateAxes:xt,getNode:ft,resolveNodeId:gt,getWardleyData:yt,clear:ut,setAccTitle:Ot,getAccTitle:jt,setDiagramTitle:Gt,getDiagramTitle:qt,getAccDescription:Ht,setAccDescription:Ft},bt=["Genesis","Custom Built","Product","Commodity"],$t=y(()=>{const{themeVariables:e}=U();return{backgroundColor:e.wardley?.backgroundColor??e.background??"#fff",axisColor:e.wardley?.axisColor??"#000",axisTextColor:e.wardley?.axisTextColor??e.primaryTextColor??"#222",gridColor:e.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:e.wardley?.componentFill??"#fff",componentStroke:e.wardley?.componentStroke??"#000",componentLabelColor:e.wardley?.componentLabelColor??e.primaryTextColor??"#222",linkStroke:e.wardley?.linkStroke??"#000",evolutionStroke:e.wardley?.evolutionStroke??"#dc3545",annotationStroke:e.wardley?.annotationStroke??"#000",annotationTextColor:e.wardley?.annotationTextColor??e.primaryTextColor??"#222",annotationFill:e.wardley?.annotationFill??e.background??"#fff"}},"getTheme"),Pt=y(()=>{const e=U()["wardley-beta"];return{width:e?.width??900,height:e?.height??600,padding:e?.padding??48,nodeRadius:e?.nodeRadius??6,nodeLabelOffset:e?.nodeLabelOffset??8,axisFontSize:e?.axisFontSize??12,labelFontSize:e?.labelFontSize??10,showGrid:e?.showGrid??!1,useMaxWidth:e?.useMaxWidth??!0}},"getConfigValues"),Jt={parser:V,db:kt,renderer:{draw:y((e,a,r,x)=>{J.debug(`Rendering Wardley map
1
+ import{aa as Xt}from"./index-RJQqJC6n.js";import{n as Et,t as Yt}from"./mermaid-parser.core-H0g6x_iH.js";import{Bt as y,Ht as J,Vt as Bt}from"./src-Ra8Cw6Gr.js";import{D as It,U as Ft,W as Ot,a as Rt,b as Wt,c as _t,j as Dt,q as Gt,v as Ht,w as qt,x as U,y as jt}from"./chunk-CSCIHK7Q-jw9fZDC9.js";import{n as Vt,t as Ut}from"./chunk-WU5MYG2G-Cv_QOL8q.js";import{d as Zt,i as tt}from"./chunk-5ZQYHXKU-D0RIlhMr.js";import{n as Kt,t as Qt}from"./chunk-4BX2VUAB-C8f7FKlW.js";function et(){return U()["wardley-beta"]}function at(e,a,r,x,n,l,u,S,g){k.addNode({id:e,label:a,x:r,y:x,className:n,labelOffsetX:l,labelOffsetY:u,inertia:S,sourceStrategy:g})}function rt(e,a,r=!1,x,n){k.addLink({source:e,target:a,dashed:r,label:x,flow:n})}function ot(e,a,r){k.addTrend({nodeId:e,targetX:a,targetY:r})}function nt(e,a,r){k.addAnnotation({number:e,coordinates:a,text:r})}function st(e,a,r){k.addNote({text:e,x:a,y:r})}function it(e,a,r){k.addAccelerator({name:e,x:a,y:r})}function lt(e,a,r){k.addDeaccelerator({name:e,x:a,y:r})}function dt(e,a){k.setAnnotationsBox(e,a)}function ct(e,a){k.setSize(e,a)}function pt(e){k.startPipeline(e)}function ht(e,a){k.addPipelineComponent(e,a)}function xt(e){k.setAxes(e)}function ft(e){return k.getNode(e)}function gt(e){return k.resolveNodeId(e)}function yt(){return k.build()}function ut(){k.clear(),Rt()}var q,F,N,j,wt,mt,V,k,kt,bt,$t,Pt,Jt,te=Xt((()=>{Ut(),Qt(),Zt(),Dt(),Bt(),Yt(),F=y((e,a)=>{const r=e<=1?e*100:e;if(r<0||r>100)throw new Error(`${a} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${e}`);return r},"toPercent"),N=y((e,a,r)=>({x:F(a,`${r} evolution`),y:F(e,`${r} visibility`)}),"toCoordinates"),j=y(e=>{if(e){if(e==="+<>")return"bidirectional";if(e==="+<")return"backward";if(e==="+>")return"forward"}},"getFlowFromPort"),wt=y(e=>{if(!e?.startsWith("+"))return{};const a=/^\+'([^']*)'/.exec(e)?.[1];return e.includes("<>")?{flow:"bidirectional",label:a}:e.includes("<")?{flow:"backward",label:a}:e.includes(">")?{flow:"forward",label:a}:{label:a}},"extractFlowFromArrow"),mt=y((e,a)=>{if(Kt(e,a),e.size&&a.setSize(e.size.width,e.size.height),e.evolution){const r=e.evolution.stages.map(n=>n.secondName?`${n.name.trim()} / ${n.secondName.trim()}`:n.name.trim()),x=e.evolution.stages.filter(n=>n.boundary!==void 0).map(n=>n.boundary);a.updateAxes({stages:r,stageBoundaries:x})}if(e.anchors.forEach(r=>{const x=N(r.visibility,r.evolution,`Anchor "${r.name}"`);a.addNode(r.name,r.name,x.x,x.y,"anchor")}),e.components.forEach(r=>{const x=N(r.visibility,r.evolution,`Component "${r.name}"`),n=r.label?(r.label.negX?-1:1)*r.label.offsetX:void 0,l=r.label?(r.label.negY?-1:1)*r.label.offsetY:void 0,u=r.decorator?.strategy;a.addNode(r.name,r.name,x.x,x.y,"component",n,l,r.inertia,u)}),e.notes.forEach(r=>{const x=N(r.visibility,r.evolution,`Note "${r.text}"`);a.addNote(r.text,x.x,x.y)}),e.pipelines.forEach(r=>{const x=a.getNode(r.parent);if(!x||typeof x.y!="number")throw new Error(`Pipeline "${r.parent}" must reference an existing component with coordinates.`);const n=x.y;a.startPipeline(r.parent),r.components.forEach(l=>{const u=`${r.parent}_${l.name}`,S=l.label?(l.label.negX?-1:1)*l.label.offsetX:void 0,g=l.label?(l.label.negY?-1:1)*l.label.offsetY:void 0,O=F(l.evolution,`Pipeline component "${l.name}" evolution`);a.addNode(u,l.name,O,n,"pipeline-component",S,g),a.addPipelineComponent(r.parent,u)})}),e.links.forEach(r=>{const x=!!r.arrow&&(r.arrow.includes("-.->")||r.arrow.includes(".-."));let n=j(r.fromPort)??j(r.toPort);const{flow:l,label:u}=wt(r.arrow);!n&&l&&(n=l);const S=r.linkLabel,g=u??S;a.addLink(a.resolveNodeId(r.from),a.resolveNodeId(r.to),x,g,n)}),e.evolves.forEach(r=>{const x=a.getNode(r.component);if(x?.y!==void 0){const n=F(r.target,`Evolve target for "${r.component}"`);a.addTrend(r.component,n,x.y)}}),e.annotations.length>0){const r=e.annotations[0],x=N(r.x,r.y,"Annotations box");a.setAnnotationsBox(x.x,x.y)}e.annotation.forEach(r=>{const x=N(r.x,r.y,`Annotation ${r.number}`);a.addAnnotation(r.number,[{x:x.x,y:x.y}],r.text)}),e.accelerators.forEach(r=>{const x=N(r.x,r.y,`Accelerator "${r.name}"`);a.addAccelerator(r.name,x.x,x.y)}),e.deaccelerators.forEach(r=>{const x=N(r.x,r.y,`Deaccelerator "${r.name}"`);a.addDeaccelerator(r.name,x.x,x.y)})},"populateDb"),V={parser:{yy:void 0},parse:y(async e=>{const a=await Et("wardley",e);J.debug(a);const r=V.parser?.yy;if(!r||typeof r.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");mt(a,r)},"parse")},k=new(q=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}addNode(e){const a=this.nodes.get(e.id)??{id:e.id,label:e.label},r={...a,...e,className:e.className??a.className,labelOffsetX:e.labelOffsetX??a.labelOffsetX,labelOffsetY:e.labelOffsetY??a.labelOffsetY};this.nodes.set(e.id,r)}addLink(e){this.links.push(e)}addTrend(e){this.trends.set(e.nodeId,e)}startPipeline(e){this.pipelines.set(e,{nodeId:e,componentIds:[]});const a=this.nodes.get(e);a&&(a.isPipelineParent=!0)}addPipelineComponent(e,a){const r=this.pipelines.get(e);r&&r.componentIds.push(a);const x=this.nodes.get(a);x&&(x.inPipeline=!0)}addAnnotation(e){this.annotations.push(e)}addNote(e){this.notes.push(e)}addAccelerator(e){this.accelerators.push(e)}addDeaccelerator(e){this.deaccelerators.push(e)}setAnnotationsBox(e,a){this.annotationsBox={x:e,y:a}}setAxes(e){this.axes={...this.axes,...e}}setSize(e,a){this.size={width:e,height:a}}getNode(e){return this.nodes.get(e)}resolveNodeId(e){if(this.nodes.has(e))return e;for(const[a,r]of this.nodes)if(r.label===e)return a;return e}build(){const e=[];for(const a of this.nodes.values()){if(typeof a.x!="number"||typeof a.y!="number")throw new Error(`Node "${a.label}" is missing coordinates`);e.push(a)}return{nodes:e,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},y(q,"WardleyBuilder"),q),y(et,"getConfig"),y(at,"addNode"),y(rt,"addLink"),y(ot,"addTrend"),y(nt,"addAnnotation"),y(st,"addNote"),y(it,"addAccelerator"),y(lt,"addDeaccelerator"),y(dt,"setAnnotationsBox"),y(ct,"setSize"),y(pt,"startPipeline"),y(ht,"addPipelineComponent"),y(xt,"updateAxes"),y(ft,"getNode"),y(gt,"resolveNodeId"),y(yt,"getWardleyData"),y(ut,"clear"),kt={getConfig:et,addNode:at,addLink:rt,addTrend:ot,addAnnotation:nt,addNote:st,addAccelerator:it,addDeaccelerator:lt,setAnnotationsBox:dt,setSize:ct,startPipeline:pt,addPipelineComponent:ht,updateAxes:xt,getNode:ft,resolveNodeId:gt,getWardleyData:yt,clear:ut,setAccTitle:Ot,getAccTitle:jt,setDiagramTitle:Gt,getDiagramTitle:qt,getAccDescription:Ht,setAccDescription:Ft},bt=["Genesis","Custom Built","Product","Commodity"],$t=y(()=>{const{themeVariables:e}=U();return{backgroundColor:e.wardley?.backgroundColor??e.background??"#fff",axisColor:e.wardley?.axisColor??"#000",axisTextColor:e.wardley?.axisTextColor??e.primaryTextColor??"#222",gridColor:e.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:e.wardley?.componentFill??"#fff",componentStroke:e.wardley?.componentStroke??"#000",componentLabelColor:e.wardley?.componentLabelColor??e.primaryTextColor??"#222",linkStroke:e.wardley?.linkStroke??"#000",evolutionStroke:e.wardley?.evolutionStroke??"#dc3545",annotationStroke:e.wardley?.annotationStroke??"#000",annotationTextColor:e.wardley?.annotationTextColor??e.primaryTextColor??"#222",annotationFill:e.wardley?.annotationFill??e.background??"#fff"}},"getTheme"),Pt=y(()=>{const e=U()["wardley-beta"];return{width:e?.width??900,height:e?.height??600,padding:e?.padding??48,nodeRadius:e?.nodeRadius??6,nodeLabelOffset:e?.nodeLabelOffset??8,axisFontSize:e?.axisFontSize??12,labelFontSize:e?.labelFontSize??10,showGrid:e?.showGrid??!1,useMaxWidth:e?.useMaxWidth??!0}},"getConfigValues"),Jt={parser:V,db:kt,renderer:{draw:y((e,a,r,x)=>{J.debug(`Rendering Wardley map
2
2
  `+e);const n=Pt(),l=$t(),u=n.nodeRadius*1.6,S=x.db,g=S.getWardleyData(),O=S.getDiagramTitle(),M=g.size?.width??n.width,b=g.size?.height??n.height,E=Vt(a);E.selectAll("*").remove(),_t(E,b,M,n.useMaxWidth),E.attr("viewBox",`0 0 ${M} ${b}`);const P=E.append("g").attr("class","wardley-map"),D=E.append("defs");D.append("marker").attr("id",`arrow-${a}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",l.evolutionStroke).attr("stroke","none"),D.append("marker").attr("id",`link-arrow-end-${a}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",l.linkStroke).attr("stroke","none"),D.append("marker").attr("id",`link-arrow-start-${a}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",l.linkStroke).attr("stroke","none"),P.append("rect").attr("class","wardley-background").attr("width",M).attr("height",b).attr("fill",l.backgroundColor);const Y=M-n.padding*2,B=b-n.padding*2;O&&P.append("text").attr("class","wardley-title").attr("x",M/2).attr("y",n.padding/2).attr("fill",l.axisTextColor).attr("font-size",n.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(O);const z=y(t=>n.padding+t/100*Y,"projectX"),L=y(t=>b-n.padding-t/100*B,"projectY"),R=P.append("g").attr("class","wardley-axes");R.append("line").attr("x1",n.padding).attr("x2",M-n.padding).attr("y1",b-n.padding).attr("y2",b-n.padding).attr("stroke",l.axisColor).attr("stroke-width",1),R.append("line").attr("x1",n.padding).attr("x2",n.padding).attr("y1",n.padding).attr("y2",b-n.padding).attr("stroke",l.axisColor).attr("stroke-width",1);const Ct=g.axes.xLabel??"Evolution",St=g.axes.yLabel??"Visibility";R.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",n.padding+Y/2).attr("y",b-n.padding/4).attr("fill",l.axisTextColor).attr("font-size",n.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(Ct),R.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",n.padding/3).attr("y",n.padding+B/2).attr("fill",l.axisTextColor).attr("font-size",n.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${n.padding/3} ${n.padding+B/2})`).text(St);const I=g.axes.stages&&g.axes.stages.length>0?g.axes.stages:bt;if(I.length>0){const t=P.append("g").attr("class","wardley-stages"),i=g.axes.stageBoundaries,o=[];if(i&&i.length===I.length){let s=0;i.forEach(d=>{o.push({start:s,end:d}),s=d})}else{const s=1/I.length;I.forEach((d,c)=>{o.push({start:c*s,end:(c+1)*s})})}I.forEach((s,d)=>{const c=o[d],f=n.padding+c.start*Y,h=(f+(n.padding+c.end*Y))/2;d>0&&t.append("line").attr("x1",f).attr("x2",f).attr("y1",n.padding).attr("y2",b-n.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),t.append("text").attr("class","wardley-stage-label").attr("x",h).attr("y",b-n.padding/1.5).attr("fill",l.axisTextColor).attr("font-size",n.axisFontSize-2).attr("text-anchor","middle").text(s)})}if(n.showGrid){const t=P.append("g").attr("class","wardley-grid");for(let i=1;i<4;i++){const o=i/4,s=n.padding+Y*o;t.append("line").attr("x1",s).attr("x2",s).attr("y1",n.padding).attr("y2",b-n.padding).attr("stroke",l.gridColor).attr("stroke-dasharray","2 6"),t.append("line").attr("x1",n.padding).attr("x2",M-n.padding).attr("y1",b-n.padding-B*o).attr("y2",b-n.padding-B*o).attr("stroke",l.gridColor).attr("stroke-dasharray","2 6")}}const p=new Map;if(g.nodes.forEach(t=>{p.set(t.id,{x:z(t.x),y:L(t.y),node:t})}),g.pipelines.length>0){const t=P.append("g").attr("class","wardley-pipelines"),i=P.append("g").attr("class","wardley-pipeline-links");g.pipelines.forEach(o=>{if(o.componentIds.length===0)return;const s=o.componentIds.map(h=>({id:h,pos:p.get(h),node:g.nodes.find(w=>w.id===h)})).filter(h=>h.pos&&h.node).sort((h,w)=>h.node.x-w.node.x);for(let h=0;h<s.length-1;h++){const w=s[h],m=s[h+1];i.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",w.pos.x).attr("y1",w.pos.y).attr("x2",m.pos.x).attr("y2",m.pos.y).attr("stroke",l.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let d=1/0,c=-1/0,f=0;if(o.componentIds.forEach(h=>{const w=p.get(h);w&&(d=Math.min(d,w.x),c=Math.max(c,w.x),f=w.y)}),d!==1/0&&c!==-1/0){const w=n.nodeRadius*4,m=f-w/2,C=p.get(o.nodeId);C&&(C.x=(d+c)/2,C.y=m-u/6),t.append("rect").attr("class","wardley-pipeline-box").attr("x",d-15).attr("y",m).attr("width",c-d+30).attr("height",w).attr("fill","none").attr("stroke",l.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}const Z=P.append("g").attr("class","wardley-links"),K=new Map;g.pipelines.forEach(t=>{K.set(t.nodeId,new Set(t.componentIds))});const Q=g.links.filter(t=>!(!p.has(t.source)||!p.has(t.target)||K.get(t.target)?.has(t.source)));Z.selectAll("line").data(Q).enter().append("line").attr("class",t=>`wardley-link${t.dashed?" wardley-link--dashed":""}`).attr("x1",t=>{const i=p.get(t.source),o=p.get(t.target),s=g.nodes.find(h=>h.id===t.source).isPipelineParent?u/Math.sqrt(2):n.nodeRadius,d=o.x-i.x,c=o.y-i.y,f=Math.sqrt(d*d+c*c);return i.x+d/f*s}).attr("y1",t=>{const i=p.get(t.source),o=p.get(t.target),s=g.nodes.find(h=>h.id===t.source).isPipelineParent?u/Math.sqrt(2):n.nodeRadius,d=o.x-i.x,c=o.y-i.y,f=Math.sqrt(d*d+c*c);return i.y+c/f*s}).attr("x2",t=>{const i=p.get(t.source),o=p.get(t.target),s=g.nodes.find(h=>h.id===t.target).isPipelineParent?u/Math.sqrt(2):n.nodeRadius,d=i.x-o.x,c=i.y-o.y,f=Math.sqrt(d*d+c*c);return o.x+d/f*s}).attr("y2",t=>{const i=p.get(t.source),o=p.get(t.target),s=g.nodes.find(h=>h.id===t.target).isPipelineParent?u/Math.sqrt(2):n.nodeRadius,d=i.x-o.x,c=i.y-o.y,f=Math.sqrt(d*d+c*c);return o.y+c/f*s}).attr("stroke",l.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",t=>t.dashed?"6 6":null).attr("marker-end",t=>t.flow==="forward"||t.flow==="bidirectional"?`url(#link-arrow-end-${a})`:null).attr("marker-start",t=>t.flow==="backward"||t.flow==="bidirectional"?`url(#link-arrow-start-${a})`:null),Z.selectAll("text").data(Q.filter(t=>t.label)).enter().append("text").attr("class","wardley-link-label").attr("x",t=>{const i=p.get(t.source),o=p.get(t.target),s=(i.x+o.x)/2,d=o.y-i.y,c=o.x-i.x;return s+d/Math.sqrt(c*c+d*d)*8}).attr("y",t=>{const i=p.get(t.source),o=p.get(t.target),s=(i.y+o.y)/2,d=o.x-i.x,c=o.y-i.y,f=Math.sqrt(d*d+c*c);return s+-d/f*8}).attr("fill",l.axisTextColor).attr("font-size",n.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",t=>{const i=p.get(t.source),o=p.get(t.target),s=(i.x+o.x)/2,d=(i.y+o.y)/2,c=o.x-i.x,f=o.y-i.y,h=Math.sqrt(c*c+f*f),w=8,m=f/h,C=-c/h,A=s+m*w,W=d+C*w;let X=Math.atan2(f,c)*180/Math.PI;return(X>90||X<-90)&&(X+=180),`rotate(${X} ${A} ${W})`}).text(t=>t.label);const Mt=P.append("g").attr("class","wardley-trends"),vt=g.trends.map(t=>{const i=p.get(t.nodeId);if(!i)return null;const o=z(t.targetX),s=L(t.targetY),d=o-i.x,c=s-i.y,f=Math.sqrt(d*d+c*c),h=n.nodeRadius+2;return{origin:i,targetX:o,targetY:s,adjustedX2:f>h?o-d/f*h:o,adjustedY2:f>h?s-c/f*h:s}}).filter(t=>t!==null);Mt.selectAll("line").data(vt).enter().append("line").attr("class","wardley-trend").attr("x1",t=>t.origin.x).attr("y1",t=>t.origin.y).attr("x2",t=>t.adjustedX2).attr("y2",t=>t.adjustedY2).attr("stroke",l.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${a})`);const v=P.append("g").attr("class","wardley-nodes").selectAll("g").data(g.nodes).enter().append("g").attr("class",t=>["wardley-node",t.className?`wardley-node--${t.className}`:""].filter(Boolean).join(" "));v.filter(t=>t.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",t=>p.get(t.id).x).attr("cy",t=>p.get(t.id).y).attr("r",n.nodeRadius*2).attr("fill","#666").attr("stroke",l.componentStroke).attr("stroke-width",1),v.filter(t=>t.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",t=>p.get(t.id).x).attr("cy",t=>p.get(t.id).y).attr("r",n.nodeRadius*2).attr("fill","#ccc").attr("stroke",l.componentStroke).attr("stroke-width",1),v.filter(t=>t.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",t=>p.get(t.id).x).attr("cy",t=>p.get(t.id).y).attr("r",n.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);const T=v.filter(t=>t.sourceStrategy==="market");T.append("circle").attr("class","wardley-market-overlay").attr("cx",t=>p.get(t.id).x).attr("cy",t=>p.get(t.id).y).attr("r",n.nodeRadius*2).attr("fill","white").attr("stroke",l.componentStroke).attr("stroke-width",1),v.filter(t=>!t.isPipelineParent&&t.sourceStrategy!=="market"&&t.className!=="anchor").append("circle").attr("cx",t=>p.get(t.id).x).attr("cy",t=>p.get(t.id).y).attr("r",n.nodeRadius).attr("fill",l.componentFill).attr("stroke",l.componentStroke).attr("stroke-width",1);const G=n.nodeRadius*.7,$=n.nodeRadius*1.2;if(T.append("line").attr("class","wardley-market-line").attr("x1",t=>p.get(t.id).x).attr("y1",t=>p.get(t.id).y-$).attr("x2",t=>p.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y2",t=>p.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",l.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>p.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y1",t=>p.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>p.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y2",t=>p.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",l.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>p.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y1",t=>p.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>p.get(t.id).x).attr("y2",t=>p.get(t.id).y-$).attr("stroke",l.componentStroke).attr("stroke-width",1),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>p.get(t.id).x).attr("cy",t=>p.get(t.id).y-$).attr("r",G).attr("fill","white").attr("stroke",l.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>p.get(t.id).x-$*Math.cos(Math.PI/6)).attr("cy",t=>p.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",G).attr("fill","white").attr("stroke",l.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>p.get(t.id).x+$*Math.cos(Math.PI/6)).attr("cy",t=>p.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",G).attr("fill","white").attr("stroke",l.componentStroke).attr("stroke-width",2),v.filter(t=>t.isPipelineParent===!0).append("rect").attr("x",t=>p.get(t.id).x-u/2).attr("y",t=>p.get(t.id).y-u/2).attr("width",u).attr("height",u).attr("fill",l.componentFill).attr("stroke",l.componentStroke).attr("stroke-width",1),v.filter(t=>t.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",t=>{const i=p.get(t.id);let o=t.isPipelineParent?u/2+15:n.nodeRadius+15;return t.sourceStrategy&&(o+=n.nodeRadius+10),i.x+o}).attr("y1",t=>{const i=p.get(t.id),o=t.isPipelineParent?u:n.nodeRadius*2;return i.y-o/2}).attr("x2",t=>{const i=p.get(t.id);let o=t.isPipelineParent?u/2+15:n.nodeRadius+15;return t.sourceStrategy&&(o+=n.nodeRadius+10),i.x+o}).attr("y2",t=>{const i=p.get(t.id),o=t.isPipelineParent?u:n.nodeRadius*2;return i.y+o/2}).attr("stroke",l.componentStroke).attr("stroke-width",6),v.append("text").attr("x",t=>{const i=p.get(t.id);if(t.className==="anchor")return t.labelOffsetX!==void 0?i.x+t.labelOffsetX:i.x;let o=n.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetX===void 0&&(o+=10);const s=t.labelOffsetX??o;return i.x+s}).attr("y",t=>{const i=p.get(t.id);if(t.className==="anchor")return t.labelOffsetY!==void 0?i.y+t.labelOffsetY:i.y-3;let o=-n.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetY===void 0&&(o-=10);const s=t.labelOffsetY??o;return i.y+s}).attr("class","wardley-node-label").attr("fill",t=>t.className==="evolved"?l.evolutionStroke:t.className==="anchor"?"#000":l.componentLabelColor).attr("font-size",n.labelFontSize).attr("font-weight",t=>t.className==="anchor"?"bold":"normal").attr("text-anchor",t=>t.className==="anchor"?"middle":"start").attr("dominant-baseline",t=>t.className==="anchor"?"middle":"auto").text(t=>t.label),g.annotations.length>0){const t=P.append("g").attr("class","wardley-annotations");if(g.annotations.forEach(i=>{const o=i.coordinates.map(s=>({x:z(s.x),y:L(s.y)}));if(o.length>1)for(let s=0;s<o.length-1;s++)t.append("line").attr("class","wardley-annotation-line").attr("x1",o[s].x).attr("y1",o[s].y).attr("x2",o[s+1].x).attr("y2",o[s+1].y).attr("stroke",l.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");o.forEach(s=>{const d=t.append("g").attr("class","wardley-annotation");d.append("circle").attr("cx",s.x).attr("cy",s.y).attr("r",10).attr("fill","white").attr("stroke",l.axisColor).attr("stroke-width",1.5),d.append("text").attr("x",s.x).attr("y",s.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",l.axisTextColor).attr("font-weight","bold").text(i.number)})}),g.annotationsBox){let i=z(g.annotationsBox.x),o=L(g.annotationsBox.y);const s=10,d=16,c=11,f=t.append("g").attr("class","wardley-annotations-box"),h=[...g.annotations].filter(m=>m.text).sort((m,C)=>m.number-C.number),w=[];if(h.forEach((m,C)=>{const A=f.append("text").attr("x",i+s).attr("y",o+s+(C+1)*d).attr("font-size",c).attr("fill",l.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${m.number}. ${m.text}`);w.push(A)}),w.length>0){let m=0,C=0;w.forEach(H=>{const _=H.node(),Tt=_.getComputedTextLength();m=Math.max(m,Tt);const At=_.getBBox();C=Math.max(C,At.height)});const A=m+s*2+105,W=h.length*d+s*2+C/2,X=n.padding,Nt=M-n.padding-A,zt=n.padding,Lt=b-n.padding-W;i=Math.max(X,Math.min(i,Nt)),o=Math.max(zt,Math.min(o,Lt)),w.forEach((H,_)=>{H.attr("x",i+s).attr("y",o+s+(_+1)*d)}),f.insert("rect","text").attr("x",i).attr("y",o).attr("width",A).attr("height",W).attr("fill","white").attr("stroke",l.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(g.notes.length>0){const t=P.append("g").attr("class","wardley-notes");g.notes.forEach(i=>{const o=z(i.x),s=L(i.y);t.append("text").attr("x",o).attr("y",s).attr("text-anchor","start").attr("font-size",11).attr("fill",l.axisTextColor).attr("font-weight","bold").text(i.text)})}if(g.accelerators.length>0){const t=P.append("g").attr("class","wardley-accelerators");g.accelerators.forEach(i=>{const o=z(i.x),s=L(i.y),d=60,c=30,f=20,h=`
3
3
  M ${o} ${s-c/2}
4
4
  L ${o+d-f} ${s-c/2}
@@ -1,4 +1,4 @@
1
- import{aa as g}from"./index-B41wzfl2.js";function e(_){let n=[];const a=_.split(/\t+|\r+|\n+| +/);for(let r=0;r<a.length;++r)a[r].length>0&&n.push(a[r]);return n}var h,i,s,c,m,l,u,p,d,x,f,o,t,b,v=g((()=>{h={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"}]},i=e("true false"),s=e(`
1
+ import{aa as g}from"./index-RJQqJC6n.js";function e(_){let n=[];const a=_.split(/\t+|\r+|\n+| +/);for(let r=0;r<a.length;++r)a[r].length>0&&n.push(a[r]);return n}var h,i,s,c,m,l,u,p,d,x,f,o,t,b,v=g((()=>{h={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"}]},i=e("true false"),s=e(`
2
2
  alias
3
3
  break
4
4
  case
@@ -1 +1 @@
1
- import{aa as i}from"./index-B41wzfl2.js";import{$ as n,A as e,At as o,B as a,C as s,Ct as r,D as c,Dt as l,E as _,Et as d,F as m,G as u,H as p,I as g,J as k,K as b,L as f,M as x,Mt as C,N as w,O as A,Ot as h,P as T,Q as S,R as N,S as P,St as q,T as v,Tt as E,U as H,V as y,W as I,X as O,Y as M,Z as R,_ as L,_t as Q,at as $,b as D,bt as z,ct as F,dt as G,et as j,ft as K,g as U,gt as W,h as Z,ht as B,it as J,j as V,jt as X,k as Y,kt as tt,lt as it,m as t,mt as nt,nt as et,ot,p as at,pt as st,q as rt,rt as ct,st as lt,tt as _t,ut as dt,v as mt,vt as ut,w as pt,wt as gt,x as kt,xt as bt,y as ft,yt as xt,z as Ct}from"./FileEditor-Dkxlmokr.js";var wt,At,ht=i((()=>{C(),X(),o(),tt(),h(),l(),d(),gt(),bt(),z(),Q(),W(),B(),nt(),st(),K(),G(),dt(),it(),F(),lt(),ot(),et(),E(),xt(),_t(),ut(),j(),n(),S(),R(),O(),M(),k(),$(),rt(),b(),u(),I(),H(),p(),y(),a(),Ct(),N(),f(),g(),J(),m(),ct(),T(),w(),x(),V(),e(),Y(),A(),c(),_(),v(),pt(),s(),r(),q(),P(),kt(),D(),ft(),mt(),L(),U(),Z(),at(),wt={comments:{blockComment:["<!--","-->"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:t.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:t.IndentAction.Indent}}]},At={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}}}));ht();export{wt as conf,At as language};
1
+ import{aa as i}from"./index-RJQqJC6n.js";import{$ as n,A as e,At as o,B as a,C as s,Ct as r,D as c,Dt as l,E as _,Et as d,F as m,G as u,H as p,I as g,J as k,K as b,L as f,M as x,Mt as C,N as w,O as A,Ot as h,P as T,Q as S,R as N,S as P,St as q,T as v,Tt as E,U as H,V as y,W as I,X as O,Y as M,Z as R,_ as L,_t as Q,at as $,b as D,bt as z,ct as F,dt as G,et as j,ft as K,g as U,gt as W,h as Z,ht as B,it as J,j as V,jt as X,k as Y,kt as tt,lt as it,m as t,mt as nt,nt as et,ot,p as at,pt as st,q as rt,rt as ct,st as lt,tt as _t,ut as dt,v as mt,vt as ut,w as pt,wt as gt,x as kt,xt as bt,y as ft,yt as xt,z as Ct}from"./FileEditor-C_tmKjxI.js";var wt,At,ht=i((()=>{C(),X(),o(),tt(),h(),l(),d(),gt(),bt(),z(),Q(),W(),B(),nt(),st(),K(),G(),dt(),it(),F(),lt(),ot(),et(),E(),xt(),_t(),ut(),j(),n(),S(),R(),O(),M(),k(),$(),rt(),b(),u(),I(),H(),p(),y(),a(),Ct(),N(),f(),g(),J(),m(),ct(),T(),w(),x(),V(),e(),Y(),A(),c(),_(),v(),pt(),s(),r(),q(),P(),kt(),D(),ft(),mt(),L(),U(),Z(),at(),wt={comments:{blockComment:["<!--","-->"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:t.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:t.IndentAction.Indent}}]},At={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}}}));ht();export{wt as conf,At as language};
@@ -1,4 +1,4 @@
1
- import{aa as ts}from"./index-B41wzfl2.js";function Kh(e){return e.replace(/\r?\n/g,"\r")}function Uh(e,t){return t?"\x1B[200~"+e+"\x1B[201~":e}function qh(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()}function Vh(e,t,i,s){e.stopPropagation(),e.clipboardData&&_h(e.clipboardData.getData("text/plain"),t,i,s)}function _h(e,t,i,s){e=Kh(e),e=Uh(e,i.decPrivateModes.bracketedPasteMode&&s.rawOptions.ignoreBracketedPasteMode!==!0),i.triggerDataEvent(e,!0),t.value=""}function uh(e,t,i){let s=i.getBoundingClientRect(),r=e.clientX-s.left-10,n=e.clientY-s.top-10;t.style.width="20px",t.style.height="20px",t.style.left=`${r}px`,t.style.top=`${n}px`,t.style.zIndex="1000",t.focus()}function Fr(e,t,i,s,r){uh(e,t,i),r&&s.rightClickSelect(e),t.value=s.selectionText,t.select()}function Ve(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function Jt(e,t=0,i=e.length){let s="";for(let r=t;r<i;++r){let n=e[r];n>65535?(n-=65536,s+=String.fromCharCode((n>>10)+55296)+String.fromCharCode(n%1024+56320)):s+=String.fromCharCode(n)}return s}function Yh(e){return e[Qi]||[]}function se(e){if(Vi.has(e))return Vi.get(e);let t=function(i,s,r){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");Xh(t,i,r)};return t._id=e,Vi.set(e,t),t}function Xh(e,t,i){t[Br]===t?t[Qi].push({id:e,index:i}):(t[Qi]=[{id:e,index:i}],t[Br]=t)}function jh(e,t){if(confirm(`Do you want to navigate to ${t}?
1
+ import{aa as ts}from"./index-RJQqJC6n.js";function Kh(e){return e.replace(/\r?\n/g,"\r")}function Uh(e,t){return t?"\x1B[200~"+e+"\x1B[201~":e}function qh(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()}function Vh(e,t,i,s){e.stopPropagation(),e.clipboardData&&_h(e.clipboardData.getData("text/plain"),t,i,s)}function _h(e,t,i,s){e=Kh(e),e=Uh(e,i.decPrivateModes.bracketedPasteMode&&s.rawOptions.ignoreBracketedPasteMode!==!0),i.triggerDataEvent(e,!0),t.value=""}function uh(e,t,i){let s=i.getBoundingClientRect(),r=e.clientX-s.left-10,n=e.clientY-s.top-10;t.style.width="20px",t.style.height="20px",t.style.left=`${r}px`,t.style.top=`${n}px`,t.style.zIndex="1000",t.focus()}function Fr(e,t,i,s,r){uh(e,t,i),r&&s.rightClickSelect(e),t.value=s.selectionText,t.select()}function Ve(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function Jt(e,t=0,i=e.length){let s="";for(let r=t;r<i;++r){let n=e[r];n>65535?(n-=65536,s+=String.fromCharCode((n>>10)+55296)+String.fromCharCode(n%1024+56320)):s+=String.fromCharCode(n)}return s}function Yh(e){return e[Qi]||[]}function se(e){if(Vi.has(e))return Vi.get(e);let t=function(i,s,r){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");Xh(t,i,r)};return t._id=e,Vi.set(e,t),t}function Xh(e,t,i){t[Br]===t?t[Qi].push({id:e,index:i}):(t[Qi]=[{id:e,index:i}],t[Br]=t)}function jh(e,t){if(confirm(`Do you want to navigate to ${t}?
2
2
 
3
3
  WARNING: This link could potentially be dangerous`)){let i=window.open();if(i){try{i.opener=null}catch{}i.location.href=t}else console.warn("Opening link blocked as opener could not be cleared")}}function Zt(e){Gh(e)||vh.onUnexpectedError(e)}function Gh(e){return e instanceof Sh?!0:e instanceof Error&&e.name===es&&e.message===es}function Jh(e){return e?new Error(`Illegal argument: ${e}`):new Error("Illegal argument")}function Zh(e,t,i=0,s=e.length){let r=i,n=s;for(;r<n;){let o=Math.floor((r+n)/2);t(e[o])?r=o+1:n=o}return r-1}function fe(e,t=0){return e[e.length-(1+t)]}function Qh(e,t){return(i,s)=>t(e(i),e(s))}function ea(e,t){let i=Object.create(null);for(let s of e){let r=t(s),n=i[r];n||(n=i[r]=[]),n.push(s)}return i}function ta(e,t){let i=this,s=!1,r;return function(){if(s)return r;if(s=!0,t)try{r=e.apply(i,arguments)}finally{t()}else r=e.apply(i,arguments);return r}}function ia(e){Je=e}function Ui(e){return Je?.trackDisposable(e),e}function qi(e){Je?.markAsDisposed(e)}function Ct(e,t){Je?.setParent(e,t)}function sa(e,t){if(Je)for(let i of e)Je.setParent(i,t)}function $r(e){return Je?.markAsSingleton(e),e}function rt(e){if(Rr.is(e)){let t=[];for(let i of e)if(i)try{i.dispose()}catch(s){t.push(s)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function ra(...e){let t=W(()=>rt(e));return sa(e,t),t}function W(e){let t=Ui({dispose:ta(()=>{qi(t),e()})});return t}function na(e,t,i){typeof t=="string"&&(t=e.matchMedia(t)),t.addEventListener("change",i)}function oa(e){return Yi.INSTANCE.getZoomFactor(e)}function ha(){return qt}function aa(e){if(e.charCode){let i=String.fromCharCode(e.charCode).toUpperCase();return Lr.fromString(i)}let t=e.keyCode;if(t===3)return 7;if(Xi)switch(t){case 59:return 85;case 60:if(wh)return 97;break;case 61:return 86;case 107:return 109;case 109:return 111;case 173:return 88;case 224:if(De)return 57;break}else if(Ut&&(De&&t===93||!De&&t===92))return 57;return bh[t]||0}function la(e){if(!e.parent||e.parent===e)return null;try{let t=e.location,i=e.parent.location;if(t.origin!=="null"&&i.origin!=="null"&&t.origin!==i.origin)return null}catch{return null}return e.parent}function ca(e){return 55296<=e&&e<=56319}function Kr(e){return 56320<=e&&e<=57343}function da(e,t){return(e-55296<<10)+(t-56320)+65536}function _a(e){return zr(e,0)}function zr(e,t){switch(typeof e){case"object":return e===null?$e(349,t):Array.isArray(e)?fa(e,t):pa(e,t);case"string":return fh(e,t);case"boolean":return ua(e,t);case"number":return $e(e,t);case"undefined":return $e(937,t);default:return $e(617,t)}}function $e(e,t){return(t<<5)-t+e|0}function ua(e,t){return $e(e?433:863,t)}function fh(e,t){t=$e(149417,t);for(let i=0,s=e.length;i<s;i++)t=$e(e.charCodeAt(i),t);return t}function fa(e,t){return t=$e(104579,t),e.reduce((i,s)=>zr(s,i),t)}function pa(e,t){return t=$e(181387,t),Object.keys(e).sort().reduce((i,s)=>(i=fh(s,i),zr(e[s],i)),t)}function ns(e,t,i=32){let s=i-t,r=~((1<<s)-1);return(e<<t|(r&e)>>>s)>>>0}function Ur(e,t=0,i=e.byteLength,s=0){for(let r=0;r<i;r++)e[t+r]=s}function ga(e,t,i="0"){for(;e.length<t;)e=i+e;return e}function kt(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map(i=>i.toString(16).padStart(2,"0")).join(""):ga((e>>>0).toString(16),t/4)}function B(e,t,i,s){return new yh(e,t,i,s)}function ma(e,t){return function(i){return t(new St(e,i))}}function va(e){return function(t){return e(new ji(t))}}function Sa(e){let t=e.getBoundingClientRect(),i=we(e);return{left:t.left+i.scrollX,top:t.top+i.scrollY,width:t.width,height:t.height}}function ph(e,t,i,...s){let r=Ch.exec(t);if(!r)throw new Error("Bad use of emmet");let n=r[1]||"div",o;return e!=="http://www.w3.org/1999/xhtml"?o=document.createElementNS(e,n):o=document.createElement(n),r[3]&&(o.id=r[3]),r[4]&&(o.className=r[4].replace(/\./g," ").trim()),i&&Object.entries(i).forEach(([a,l])=>{typeof l>"u"||(/^on\w+$/.test(a)?o[a]=l:a==="selected"?l&&o.setAttribute(a,"true"):o.setAttribute(a,l))}),o.append(...s),o}function wa(e,t,...i){return ph("http://www.w3.org/1999/xhtml",e,t,...i)}function _e(e){return typeof e=="number"?`${e}px`:e}function xt(e){return new kh(e)}function ba(e,t,i){let s=null,r=null;if(typeof i.value=="function"?(s="value",r=i.value,r.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof i.get=="function"&&(s="get",r=i.get),!r)throw new Error("not supported");let n=`$memoize$${t}`;i[s]=function(...o){return this.hasOwnProperty(n)||Object.defineProperty(this,n,{configurable:!1,enumerable:!1,writable:!1,value:r.apply(this,o)}),this[n]}}function os(e,t){let i=t-e;return function(s){return e+i*ka(s)}}function ya(e,t,i){return function(s){return s<i?e(s/i):t((s-i)/(1-i))}}function Ca(e){return Math.pow(e,3)}function ka(e){return 1-Ca(1-e)}function xa(e){let t={lazyRender:typeof e.lazyRender<"u"?e.lazyRender:!1,className:typeof e.className<"u"?e.className:"",useShadows:typeof e.useShadows<"u"?e.useShadows:!0,handleMouseWheel:typeof e.handleMouseWheel<"u"?e.handleMouseWheel:!0,flipAxes:typeof e.flipAxes<"u"?e.flipAxes:!1,consumeMouseWheelIfScrollbarIsNeeded:typeof e.consumeMouseWheelIfScrollbarIsNeeded<"u"?e.consumeMouseWheelIfScrollbarIsNeeded:!1,alwaysConsumeMouseWheel:typeof e.alwaysConsumeMouseWheel<"u"?e.alwaysConsumeMouseWheel:!1,scrollYToX:typeof e.scrollYToX<"u"?e.scrollYToX:!1,mouseWheelScrollSensitivity:typeof e.mouseWheelScrollSensitivity<"u"?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof e.fastScrollSensitivity<"u"?e.fastScrollSensitivity:5,scrollPredominantAxis:typeof e.scrollPredominantAxis<"u"?e.scrollPredominantAxis:!0,mouseWheelSmoothScroll:typeof e.mouseWheelSmoothScroll<"u"?e.mouseWheelSmoothScroll:!0,arrowSize:typeof e.arrowSize<"u"?e.arrowSize:11,listenOnDomNode:typeof e.listenOnDomNode<"u"?e.listenOnDomNode:null,horizontal:typeof e.horizontal<"u"?e.horizontal:1,horizontalScrollbarSize:typeof e.horizontalScrollbarSize<"u"?e.horizontalScrollbarSize:10,horizontalSliderSize:typeof e.horizontalSliderSize<"u"?e.horizontalSliderSize:0,horizontalHasArrows:typeof e.horizontalHasArrows<"u"?e.horizontalHasArrows:!1,vertical:typeof e.vertical<"u"?e.vertical:1,verticalScrollbarSize:typeof e.verticalScrollbarSize<"u"?e.verticalScrollbarSize:10,verticalHasArrows:typeof e.verticalHasArrows<"u"?e.verticalHasArrows:!1,verticalSliderSize:typeof e.verticalSliderSize<"u"?e.verticalSliderSize:0,scrollByPage:typeof e.scrollByPage<"u"?e.scrollByPage:!1};return t.horizontalSliderSize=typeof e.horizontalSliderSize<"u"?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=typeof e.verticalSliderSize<"u"?e.verticalSliderSize:t.verticalScrollbarSize,De&&(t.className+=" mac"),t}function Qe(e){let t=e.toString(16);return t.length<2?"0"+t:t}function Ae(e,t){return e<t?(t+.05)/(e+.05):(e+.05)/(t+.05)}function Ea(e){return 57508<=e&&e<=57558}function Da(e){return 9472<=e&&e<=9631}function Ba(e){return Ea(e)||Da(e)}function Ra(){return{css:{canvas:Qt(),cell:Qt()},device:{canvas:Qt(),cell:Qt(),char:{width:0,height:0,left:0,top:0}}}}function Qt(){return{width:0,height:0}}function qr(e,t,i){for(;e.length<i;)e=t+e;return e}function La(){return new xh}function Dr(e,t,i){let s=i.getBoundingClientRect(),r=e.getComputedStyle(i),n=parseInt(r.getPropertyValue("padding-left")),o=parseInt(r.getPropertyValue("padding-top"));return[t.clientX-s.left-n,t.clientY-s.top-o]}function Ma(e,t,i,s,r,n,o,a,l){if(!n)return;let h=Dr(e,t,i);if(h)return h[0]=Math.ceil((h[0]+(l?o/2:0))/o),h[1]=Math.ceil(h[1]/a),h[0]=Math.min(Math.max(h[0],1),s+(l?1:0)),h[1]=Math.min(Math.max(h[1],1),r),h}function Pa(){if(!Mr)return 0;let e=wt.match(/Version\/(\d+)/);return e===null||e.length<2?0:parseInt(e[1])}function Ta(e,t,i,s){let r=i.buffer.x,n=i.buffer.y;if(!i.buffer.hasScrollback)return Ia(r,n,e,t,i,s)+is(n,t,i,s)+Na(r,n,e,t,i,s);let o;if(n===t)return o=r>e?"D":"C",Yt(Math.abs(r-e),Vt(o,s));o=n>t?"D":"C";let a=Math.abs(n-t);return Yt(Oa(n>t?e:r,i)+(a-1)*i.cols+1+Aa(n>t?r:e,i),Vt(o,s))}function Aa(e,t){return e-1}function Oa(e,t){return t.cols-e}function Ia(e,t,i,s,r,n){return is(t,s,r,n).length===0?"":Yt(mh(e,t,e,t-nt(t,r),!1,r).length,Vt("D",n))}function is(e,t,i,s){let r=e-nt(e,i),n=t-nt(t,i);return Yt(Math.abs(r-n)-Ha(e,t,i),Vt(gh(e,t),s))}function Na(e,t,i,s,r,n){let o;is(t,s,r,n).length>0?o=s-nt(s,r):o=t;let a=s,l=Wa(e,t,i,s,r,n);return Yt(mh(e,o,i,a,l==="C",r).length,Vt(l,n))}function Ha(e,t,i){let s=0,r=e-nt(e,i),n=t-nt(t,i);for(let o=0;o<Math.abs(r-n);o++){let a=gh(e,t)==="A"?-1:1;i.buffer.lines.get(r+a*o)?.isWrapped&&s++}return s}function nt(e,t){let i=0,s=t.buffer.lines.get(e),r=s?.isWrapped;for(;r&&e>=0&&e<t.rows;)i++,s=t.buffer.lines.get(--e),r=s?.isWrapped;return i}function Wa(e,t,i,s,r,n){let o;return is(i,s,r,n).length>0?o=s-nt(s,r):o=t,e<i&&o<=s||e>=i&&o<s?"C":"D"}function gh(e,t){return e>t?"A":"B"}function mh(e,t,i,s,r,n){let o=e,a=t,l="";for(;(o!==i||a!==s)&&a>=0&&a<n.buffer.lines.length;)o+=r?1:-1,r&&o>n.cols-1?(l+=n.buffer.translateBufferLineToString(a,!1,e,o),o=0,e=0,a++):!r&&o<0&&(l+=n.buffer.translateBufferLineToString(a,!1,0,e+1),o=n.cols-1,e=o,a--);return l+n.buffer.translateBufferLineToString(a,!1,e,o)}function Vt(e,t){let i=t?"O":"[";return p.ESC+i+e}function Yt(e,t){e=Math.floor(e);let i="";for(let s=0;s<e;s++)i+=t;return i}function Vr(e,t){if(e.start.y>e.end.y)throw new Error(`Buffer range end (${e.end.x}, ${e.end.y}) cannot be before start (${e.start.x}, ${e.start.y})`);return t*(e.end.y-e.start.y)+(e.end.x-e.start.x+1)}function N(e,t){if(e!==void 0)try{return F.toColor(e)}catch{}return t}function za(e,t,i,s,r,n){let o=[];for(let a=0;a<e.length-1;a++){let l=a,h=e.get(++l);if(!h.isWrapped)continue;let d=[e.get(a)];for(;l<e.length&&h.isWrapped;)d.push(h),h=e.get(++l);if(!n&&s>=a&&s<l){a+=d.length-1;continue}let c=0,u=Xt(d,c,t),f=1,_=0;for(;f<d.length;){let k=Xt(d,f,t),D=k-_,I=i-u,M=Math.min(D,I);d[c].copyCellsFrom(d[f],_,u,M,!1),u+=M,u===i&&(c++,u=0),_+=M,_===k&&(f++,_=0),u===0&&c!==0&&d[c-1].getWidth(i-1)===2&&(d[c].copyCellsFrom(d[c-1],i-1,u++,1,!1),d[c-1].setCell(i-1,r))}d[c].replaceCells(u,i,r);let g=0;for(let k=d.length-1;k>0&&(k>c||d[k].getTrimmedLength()===0);k--)g++;g>0&&(o.push(a+d.length-g),o.push(g)),a+=d.length-1}return o}function Fa(e,t){let i=[],s=0,r=t[s],n=0;for(let o=0;o<e.length;o++)if(r===o){let a=t[++s];e.onDeleteEmitter.fire({index:o-n,amount:a}),o+=a-1,n+=a,r=t[++s]}else i.push(o);return{layout:i,countRemoved:n}}function $a(e,t){let i=[];for(let s=0;s<t.length;s++)i.push(e.get(t[s]));for(let s=0;s<i.length;s++)e.set(s,i[s]);e.length=t.length}function Ka(e,t,i){let s=[],r=e.map((l,h)=>Xt(e,h,t)).reduce((l,h)=>l+h),n=0,o=0,a=0;for(;a<r;){if(r-a<i){s.push(r-a);break}n+=i;let l=Xt(e,o,t);n>l&&(n-=l,o++);let h=e[o].getWidth(n-1)===2;h&&n--;let d=h?i-1:i;s.push(d),a+=d}return s}function Xt(e,t,i){if(t===e.length-1)return e[t].getTrimmedLength();let s=!e[t].hasContent(i-1)&&e[t].getWidth(i-1)===1,r=e[t+1].getWidth(0)===2;return s&&r?i-1:i}function Ua(e){return e==="block"||e==="underline"||e==="bar"}function Kt(e,t=5){if(typeof e!="object")return e;let i=Array.isArray(e)?[]:{};for(let s in e)i[s]=t<=1?e[s]:e[s]&&Kt(e[s],t-1);return i}function hs(e,t){let i=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return e.button===4?(i|=64,i|=e.action):(i|=e.button&3,e.button&4&&(i|=64),e.button&8&&(i|=128),e.action===32?i|=32:e.action===0&&!t&&(i|=3)),i}function qa(e,t){let i=0,s=t.length-1,r;if(e<t[0][0]||e>t[s][1])return!1;for(;s>=i;)if(r=i+s>>1,e>t[r][1])i=r+1;else if(e<t[r][0])s=r-1;else return!0;return!1}function Yr(e){let t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1)?.get(e.cols-1),i=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);i&&t&&(i.isWrapped=t[3]!==0&&t[3]!==32)}function Xr(e){if(!e)return;let t=e.toLowerCase();if(t.indexOf("rgb:")===0){t=t.slice(4);let i=Eh.exec(t);if(i){let s=i[1]?15:i[4]?255:i[7]?4095:65535;return[Math.round(parseInt(i[1]||i[4]||i[7]||i[10],16)/s*255),Math.round(parseInt(i[2]||i[5]||i[8]||i[11],16)/s*255),Math.round(parseInt(i[3]||i[6]||i[9]||i[12],16)/s*255)]}}else if(t.indexOf("#")===0&&(t=t.slice(1),Dh.exec(t)&&[3,6,9,12].includes(t.length))){let i=t.length/3,s=[0,0,0];for(let r=0;r<3;++r){let n=parseInt(t.slice(i*r,i*r+i),16);s[r]=i===1?n<<4:i===2?n:i===3?n>>4:n>>8}return s}}function as(e,t){let i=e.toString(16),s=i.length<2?"0"+i:i;switch(t){case 4:return i[0];case 8:return s;case 12:return(s+s).slice(0,3);default:return s+s}}function Va(e,t=16){let[i,s,r]=e;return`rgb:${as(i,t)}/${as(s,t)}/${as(r,t)}`}function jr(e,t){if(e>24)return t.setWinLines||!1;switch(e){case 1:return!!t.restoreWin;case 2:return!!t.minimizeWin;case 3:return!!t.setWinPosition;case 4:return!!t.setWinSizePixels;case 5:return!!t.raiseWin;case 6:return!!t.lowerWin;case 7:return!!t.refreshWin;case 8:return!!t.setWinSizeChars;case 9:return!!t.maximizeWin;case 10:return!!t.fullscreenWin;case 11:return!!t.getWinState;case 13:return!!t.getWinPosition;case 14:return!!t.getWinSizePixels;case 15:return!!t.getScreenSizePixels;case 16:return!!t.getCellSizePixels;case 18:return!!t.getWinSizeChars;case 19:return!!t.getScreenSizeChars;case 20:return!!t.getIconTitle;case 21:return!!t.getWinTitle;case 22:return!!t.pushTitle;case 23:return!!t.popTitle;case 24:return!!t.setWinLines}return!1}function Gr(e){return 0<=e&&e<256}function Ya(e,t,i,s){let r={type:0,cancel:!1,key:void 0},n=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:e.key==="UIKeyInputUpArrow"?t?r.key=p.ESC+"OA":r.key=p.ESC+"[A":e.key==="UIKeyInputLeftArrow"?t?r.key=p.ESC+"OD":r.key=p.ESC+"[D":e.key==="UIKeyInputRightArrow"?t?r.key=p.ESC+"OC":r.key=p.ESC+"[C":e.key==="UIKeyInputDownArrow"&&(t?r.key=p.ESC+"OB":r.key=p.ESC+"[B");break;case 8:r.key=e.ctrlKey?"\b":p.DEL,e.altKey&&(r.key=p.ESC+r.key);break;case 9:if(e.shiftKey){r.key=p.ESC+"[Z";break}r.key=p.HT,r.cancel=!0;break;case 13:r.key=e.altKey?p.ESC+p.CR:p.CR,r.cancel=!0;break;case 27:r.key=p.ESC,e.altKey&&(r.key=p.ESC+p.ESC),r.cancel=!0;break;case 37:if(e.metaKey)break;n?r.key=p.ESC+"[1;"+(n+1)+"D":t?r.key=p.ESC+"OD":r.key=p.ESC+"[D";break;case 39:if(e.metaKey)break;n?r.key=p.ESC+"[1;"+(n+1)+"C":t?r.key=p.ESC+"OC":r.key=p.ESC+"[C";break;case 38:if(e.metaKey)break;n?r.key=p.ESC+"[1;"+(n+1)+"A":t?r.key=p.ESC+"OA":r.key=p.ESC+"[A";break;case 40:if(e.metaKey)break;n?r.key=p.ESC+"[1;"+(n+1)+"B":t?r.key=p.ESC+"OB":r.key=p.ESC+"[B";break;case 45:!e.shiftKey&&!e.ctrlKey&&(r.key=p.ESC+"[2~");break;case 46:n?r.key=p.ESC+"[3;"+(n+1)+"~":r.key=p.ESC+"[3~";break;case 36:n?r.key=p.ESC+"[1;"+(n+1)+"H":t?r.key=p.ESC+"OH":r.key=p.ESC+"[H";break;case 35:n?r.key=p.ESC+"[1;"+(n+1)+"F":t?r.key=p.ESC+"OF":r.key=p.ESC+"[F";break;case 33:e.shiftKey?r.type=2:e.ctrlKey?r.key=p.ESC+"[5;"+(n+1)+"~":r.key=p.ESC+"[5~";break;case 34:e.shiftKey?r.type=3:e.ctrlKey?r.key=p.ESC+"[6;"+(n+1)+"~":r.key=p.ESC+"[6~";break;case 112:n?r.key=p.ESC+"[1;"+(n+1)+"P":r.key=p.ESC+"OP";break;case 113:n?r.key=p.ESC+"[1;"+(n+1)+"Q":r.key=p.ESC+"OQ";break;case 114:n?r.key=p.ESC+"[1;"+(n+1)+"R":r.key=p.ESC+"OR";break;case 115:n?r.key=p.ESC+"[1;"+(n+1)+"S":r.key=p.ESC+"OS";break;case 116:n?r.key=p.ESC+"[15;"+(n+1)+"~":r.key=p.ESC+"[15~";break;case 117:n?r.key=p.ESC+"[17;"+(n+1)+"~":r.key=p.ESC+"[17~";break;case 118:n?r.key=p.ESC+"[18;"+(n+1)+"~":r.key=p.ESC+"[18~";break;case 119:n?r.key=p.ESC+"[19;"+(n+1)+"~":r.key=p.ESC+"[19~";break;case 120:n?r.key=p.ESC+"[20;"+(n+1)+"~":r.key=p.ESC+"[20~";break;case 121:n?r.key=p.ESC+"[21;"+(n+1)+"~":r.key=p.ESC+"[21~";break;case 122:n?r.key=p.ESC+"[23;"+(n+1)+"~":r.key=p.ESC+"[23~";break;case 123:n?r.key=p.ESC+"[24;"+(n+1)+"~":r.key=p.ESC+"[24~";break;default:if(e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey)e.keyCode>=65&&e.keyCode<=90?r.key=String.fromCharCode(e.keyCode-64):e.keyCode===32?r.key=p.NUL:e.keyCode>=51&&e.keyCode<=55?r.key=String.fromCharCode(e.keyCode-51+27):e.keyCode===56?r.key=p.DEL:e.keyCode===219?r.key=p.ESC:e.keyCode===220?r.key=p.FS:e.keyCode===221&&(r.key=p.GS);else if((!i||s)&&e.altKey&&!e.metaKey){let o=Bh[e.keyCode]?.[e.shiftKey?1:0];if(o)r.key=p.ESC+o;else if(e.keyCode>=65&&e.keyCode<=90){let a=e.ctrlKey?e.keyCode-64:e.keyCode+32,l=String.fromCharCode(a);e.shiftKey&&(l=l.toUpperCase()),r.key=p.ESC+l}else if(e.keyCode===32)r.key=p.ESC+(e.ctrlKey?p.NUL:" ");else if(e.key==="Dead"&&e.code.startsWith("Key")){let a=e.code.slice(3,4);e.shiftKey||(a=a.toLowerCase()),r.key=p.ESC+a,r.cancel=!0}}else i&&!e.altKey&&!e.ctrlKey&&!e.shiftKey&&e.metaKey?e.keyCode===65&&(r.type=1):e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&e.key.length===1?r.key=e.key:e.key&&e.ctrlKey&&(e.key==="_"&&(r.key=p.US),e.key==="@"&&(r.key=p.NUL));break}return r}function Xa(e,t){return e.text===t.text&&e.range.start.x===t.range.start.x&&e.range.start.y===t.range.start.y&&e.range.end.x===t.range.end.x&&e.range.end.y===t.range.end.y}function ja(e){return e.keyCode===16||e.keyCode===17||e.keyCode===18}var ls,Jr,Zr,U,y,cs,ei,ds,ti,Qr,en,_s,Oe,ot,Et,pe,Br,Qi,Vi,he,us,Ye,tn,ii,fs,ae,ps,sn,ht,si,Dt,Le,ri,Me,rn,gs,et,ms,nn,vh,es,Sh,vs,ni,on,Ss,hn,ws,an,Rr,ln,Je,cn,bs,Ie,R,tt,ge,oi,z,ys,dn,_n,un,Cs,fn,re,hi,pn,ks,xs,gn,ai,mn,vn,Sn,Bt,wn,bn,li,m,yn,ci,Yi,it,Xi,Ut,di,Cn,qt,Rt,_i,ui,Lt,Es,Ds,Mt,Ne,Pe,me,kn,Bs,De,wh,fi,Ce,He,xn,En,Dn,We,pi,gi,Rs,Ls,bh,Lr,Bn,Rn,Ln,Mn,Pn,Tn,ji,Ms,An,St,Ps,Ts,On,In,mi,Nn,Hn,As,Wn,Ga,we,Ja,Za,Qa,zn,el,tl,Fn,il,sl,yh,Os,Is,$n,Ns,Hs,J,Ch,kh,Ws,ke,at,Kn,vi,zs,Un,qn,Vn,Fs,$s,Yn,Xn,Ks,Us,jn,Gn,Jn,qs,Vs,Zn,Si,Qn,eo,to,wi,bi,io,xe,ze,lt,Pt,p,Tt,Ys,yi,Z,Q,ee,q,Xs,Y,H,F,le,At,so,Ot,Ci,ro,xh,ki,ve,It,js,ct,Nt,no,xi,Ei,Gs,oo,ho,ao,lo,co,Di,_o,Js,Ht,wt,dt,Zs,uo,Mr,Wt,fo,po,Qs,Bi,er,tr,go,mo,zt,vo,Ri,So,wo,Li,bo,yo,Co,ko,Mi,ir,sr,j,Xe,_t,rr,nr,ut,xo,Pi,Eo,Do,Bo,Ro,Ti,rl,or,L,X,Ft,Ai,ft,hr,Lo,G,je,ar,lr,Mo,cr,dr,Oi,st,Po,To,_r,ur,Ii,fr,Ni,pr,Hi,Wi,Ao,te,Oo,Ge,Io,pt,No,gr,gt,Ho,ue,mt,Wo,vt,mr,zo,Se,Fo,$o,Eh,Dh,Ko,Fe,vr,Sr,wr,Uo,zi,qo,br,Vo,Yo,Fi,yr,Xo,Bh,V,jo,$i,Cr,Go,Jo,Zo,Qo,kr,xr,$t,Ki,eh,th,ih,Er,sh,rh,nh,oh,Ee,nl,dl=ts((()=>{if(ls=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,Zr=(e,t)=>{for(var i in t)ls(e,i,{get:t[i],enumerable:!0})},U=(e,t,i,s)=>{for(var r=s>1?void 0:s?Jr(t,i):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(r=(s?o(t,i,r):o(r))||r);return s&&r&&ls(t,i,r),r},y=(e,t)=>(i,s)=>t(i,s,e),cs="Terminal input",ei={get:()=>cs,set:e=>cs=e},ds="Too much output to announce, navigate to rows manually to read",ti={get:()=>ds,set:e=>ds=e},Qr=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let i=e.length;if(!i)return 0;let s=0,r=0;if(this._interim){let n=e.charCodeAt(r++);56320<=n&&n<=57343?t[s++]=(this._interim-55296)*1024+n-56320+65536:(t[s++]=this._interim,t[s++]=n),this._interim=0}for(let n=r;n<i;++n){let o=e.charCodeAt(n);if(55296<=o&&o<=56319){if(++n>=i)return this._interim=o,s;let a=e.charCodeAt(n);56320<=a&&a<=57343?t[s++]=(o-55296)*1024+a-56320+65536:(t[s++]=o,t[s++]=a);continue}o!==65279&&(t[s++]=o)}return s}},en=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let i=e.length;if(!i)return 0;let s=0,r,n,o,a,l=0,h=0;if(this.interim[0]){let u=!1,f=this.interim[0];f&=(f&224)===192?31:(f&240)===224?15:7;let _=0,g;for(;(g=this.interim[++_]&63)&&_<4;)f<<=6,f|=g;let k=(this.interim[0]&224)===192?2:(this.interim[0]&240)===224?3:4,D=k-_;for(;h<D;){if(h>=i)return 0;if(g=e[h++],(g&192)!==128){h--,u=!0;break}else this.interim[_++]=g,f<<=6,f|=g&63}u||(k===2?f<128?h--:t[s++]=f:k===3?f<2048||f>=55296&&f<=57343||f===65279||(t[s++]=f):f<65536||f>1114111||(t[s++]=f)),this.interim.fill(0)}let d=i-4,c=h;for(;c<i;){for(;c<d&&!((r=e[c])&128)&&!((n=e[c+1])&128)&&!((o=e[c+2])&128)&&!((a=e[c+3])&128);)t[s++]=r,t[s++]=n,t[s++]=o,t[s++]=a,c+=4;if(r=e[c++],r<128)t[s++]=r;else if((r&224)===192){if(c>=i)return this.interim[0]=r,s;if(n=e[c++],(n&192)!==128){c--;continue}if(l=(r&31)<<6|n&63,l<128){c--;continue}t[s++]=l}else if((r&240)===224){if(c>=i)return this.interim[0]=r,s;if(n=e[c++],(n&192)!==128){c--;continue}if(c>=i)return this.interim[0]=r,this.interim[1]=n,s;if(o=e[c++],(o&192)!==128){c--;continue}if(l=(r&15)<<12|(n&63)<<6|o&63,l<2048||l>=55296&&l<=57343||l===65279)continue;t[s++]=l}else if((r&248)===240){if(c>=i)return this.interim[0]=r,s;if(n=e[c++],(n&192)!==128){c--;continue}if(c>=i)return this.interim[0]=r,this.interim[1]=n,s;if(o=e[c++],(o&192)!==128){c--;continue}if(c>=i)return this.interim[0]=r,this.interim[1]=n,this.interim[2]=o,s;if(a=e[c++],(a&192)!==128){c--;continue}if(l=(r&7)<<18|(n&63)<<12|(o&63)<<6|a&63,l<65536||l>1114111)continue;t[s++]=l}}return s}},_s="",Oe=" ",ot=class Rh{constructor(){this.fg=0,this.bg=0,this.extended=new Et}static toColorRGB(t){return[t>>>16&255,t>>>8&255,t&255]}static fromColorRGB(t){return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255}clone(){let t=new Rh;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t}isInverse(){return this.fg&67108864}isBold(){return this.fg&134217728}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:this.fg&268435456}isBlink(){return this.fg&536870912}isInvisible(){return this.fg&1073741824}isItalic(){return this.bg&67108864}isDim(){return this.bg&134217728}isStrikethrough(){return this.fg&2147483648}isProtected(){return this.bg&536870912}isOverline(){return this.bg&1073741824}getFgColorMode(){return this.fg&50331648}getBgColorMode(){return this.bg&50331648}isFgRGB(){return(this.fg&50331648)===50331648}isBgRGB(){return(this.bg&50331648)===50331648}isFgPalette(){return(this.fg&50331648)===16777216||(this.fg&50331648)===33554432}isBgPalette(){return(this.bg&50331648)===16777216||(this.bg&50331648)===33554432}isFgDefault(){return(this.fg&50331648)===0}isBgDefault(){return(this.bg&50331648)===0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(this.fg&50331648){case 16777216:case 33554432:return this.fg&255;case 50331648:return this.fg&16777215;default:return-1}}getBgColor(){switch(this.bg&50331648){case 16777216:case 33554432:return this.bg&255;case 50331648:return this.bg&16777215;default:return-1}}hasExtendedAttrs(){return this.bg&268435456}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(this.bg&268435456&&~this.extended.underlineColor)switch(this.extended.underlineColor&50331648){case 16777216:case 33554432:return this.extended.underlineColor&255;case 50331648:return this.extended.underlineColor&16777215;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return this.bg&268435456&&~this.extended.underlineColor?this.extended.underlineColor&50331648:this.getFgColorMode()}isUnderlineColorRGB(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===50331648:this.isFgRGB()}isUnderlineColorPalette(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===16777216||(this.extended.underlineColor&50331648)===33554432:this.isFgPalette()}isUnderlineColorDefault(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)===0:this.isFgDefault()}getUnderlineStyle(){return this.fg&268435456?this.bg&268435456?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}},Et=class Lh{constructor(t=0,i=0){this._ext=0,this._urlId=0,this._ext=t,this._urlId=i}get ext(){return this._urlId?this._ext&-469762049|this.underlineStyle<<26:this._ext}set ext(t){this._ext=t}get underlineStyle(){return this._urlId?5:(this._ext&469762048)>>26}set underlineStyle(t){this._ext&=-469762049,this._ext|=t<<26&469762048}get underlineColor(){return this._ext&67108863}set underlineColor(t){this._ext&=-67108864,this._ext|=t&67108863}get urlId(){return this._urlId}set urlId(t){this._urlId=t}get underlineVariantOffset(){let t=(this._ext&3758096384)>>29;return t<0?t^4294967288:t}set underlineVariantOffset(t){this._ext&=536870911,this._ext|=t<<29&3758096384}clone(){return new Lh(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}},pe=class Mh extends ot{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new Et,this.combinedData=""}static fromCharData(t){let i=new Mh;return i.setFromCharData(t),i}isCombined(){return this.content&2097152}getWidth(){return this.content>>22}getChars(){return this.content&2097152?this.combinedData:this.content&2097151?Ve(this.content&2097151):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):this.content&2097151}setFromCharData(t){this.fg=t[0],this.bg=0;let i=!1;if(t[1].length>2)i=!0;else if(t[1].length===2){let s=t[1].charCodeAt(0);if(55296<=s&&s<=56319){let r=t[1].charCodeAt(1);56320<=r&&r<=57343?this.content=(s-55296)*1024+r-56320+65536|t[2]<<22:i=!0}else i=!0}else this.content=t[1].charCodeAt(0)|t[2]<<22;i&&(this.combinedData=t[1],this.content=2097152|t[2]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},Br="di$target",Qi="di$dependencies",Vi=new Map,he=se("BufferService"),us=se("CoreMouseService"),Ye=se("CoreService"),tn=se("CharsetService"),ii=se("InstantiationService"),fs=se("LogService"),ae=se("OptionsService"),ps=se("OscLinkService"),sn=se("UnicodeService"),ht=se("DecorationService"),si=class{constructor(e,t,i){this._bufferService=e,this._optionsService=t,this._oscLinkService=i}provideLinks(e,t){let i=this._bufferService.buffer.lines.get(e-1);if(!i){t(void 0);return}let s=[],r=this._optionsService.rawOptions.linkHandler,n=new pe,o=i.getTrimmedLength(),a=-1,l=-1,h=!1;for(let d=0;d<o;d++)if(!(l===-1&&!i.hasContent(d))){if(i.loadCell(d,n),n.hasExtendedAttrs()&&n.extended.urlId)if(l===-1){l=d,a=n.extended.urlId;continue}else h=n.extended.urlId!==a;else l!==-1&&(h=!0);if(h||l!==-1&&d===o-1){let c=this._oscLinkService.getLinkData(a)?.uri;if(c){let u={start:{x:l+1,y:e},end:{x:d+(!h&&d===o-1?1:0),y:e}},f=!1;if(!r?.allowNonHttpProtocols)try{let _=new URL(c);["http:","https:"].includes(_.protocol)||(f=!0)}catch{f=!0}f||s.push({text:c,range:u,activate:(_,g)=>r?r.activate(_,g,u):jh(_,g),hover:(_,g)=>r?.hover?.(_,g,u),leave:(_,g)=>r?.leave?.(_,g,u)})}h=!1,n.hasExtendedAttrs()&&n.extended.urlId?(l=d,a=n.extended.urlId):(l=-1,a=-1)}}t(s)}},si=U([y(0,he),y(1,ae),y(2,ps)],si),Dt=se("CharSizeService"),Le=se("CoreBrowserService"),ri=se("MouseService"),Me=se("RenderService"),rn=se("SelectionService"),gs=se("CharacterJoinerService"),et=se("ThemeService"),ms=se("LinkProviderService"),nn=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?vs.isErrorNoTelemetry(e)?new vs(e.message+`
4
4
 
@@ -1,4 +1,4 @@
1
- import{aa as Ci}from"./index-B41wzfl2.js";import{Bt as a,Ht as Xt,Vt as wi,_t as Yt,t as Si,vt as Nt,z as Ht}from"./src-Cz8NyTG1.js";import{B as ki,D as Ti,U as Ri,W as Di,a as Li,b as Et,c as Pi,f as Ei,j as vi,q as Ii,v as Mi,w as li,y as Bi}from"./chunk-CSCIHK7Q-D0eX0NV1.js";import{n as Vi,t as zi}from"./chunk-WU5MYG2G-3I1ZwKkc.js";import{d as Wi,i as ci}from"./chunk-5ZQYHXKU-DsBTFfjP.js";import{i as Oi,t as Fi}from"./chunk-O5CBEL6O-DqGyu-Fq.js";function gt(t){return t.type==="bar"}function vt(t){return t.type==="band"}function j(t){return t.type==="linear"}function xt(t,i,e,s){const h=new Bt(s);return vt(t)?new gi(i,e,t.categories,t.title,h):new xi(i,e,[t.min,t.max],t.title,h)}function Ut(t,i,e,s){return new di(new Bt(s),t,i,e)}function $t(t,i,e){return new fi(t,i,e)}function dt(){const t=Ti(),i=Et();return ci(t.xyChart,i.themeVariables.xyChart)}function ft(){const t=Et();return ci(Ei.xyChart,t.xyChart)}function pt(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function ot(t){const i=Et();return ki(t.trim(),i)}function Gt(t){mi=t}function qt(t){t==="horizontal"?K.chartOrientation="horizontal":K.chartOrientation="vertical"}function jt(t){y.xAxis.title=ot(t.text)}function Pt(t,i){y.xAxis={type:"linear",title:y.xAxis.title,min:t,max:i},J=!0}function Qt(t){y.xAxis={type:"band",title:y.xAxis.title,categories:t.map(i=>ot(i.text))},J=!0}function Kt(t){y.yAxis.title=ot(t.text)}function Zt(t,i){y.yAxis={type:"linear",title:y.yAxis.title,min:t,max:i},nt=!0}function ui(t){const i=Math.min(...t),e=Math.max(...t),s=j(y.yAxis)?y.yAxis.min:1/0,h=j(y.yAxis)?y.yAxis.max:-1/0;y.yAxis={type:"linear",title:y.yAxis.title,min:Math.min(s,i),max:Math.max(h,e)}}function It(t){let i=[];if(t.length===0)return i;if(!J){const e=j(y.xAxis)?y.xAxis.min:1/0,s=j(y.xAxis)?y.xAxis.max:-1/0;Pt(Math.min(e,1),Math.max(s,t.length))}if(nt||ui(t),vt(y.xAxis)&&(i=y.xAxis.categories.map((e,s)=>[e,t[s]])),j(y.xAxis)){const e=y.xAxis.min,s=y.xAxis.max,h=(s-e)/(t.length-1),f=[];for(let u=e;u<=s;u+=h)f.push(`${u}`);i=f.map((u,_)=>[u,t[_]])}return i}function Mt(t){return at[t===0?0:t%at.length]}function Jt(t,i){const e=It(i);y.plots.push({type:"line",strokeFill:Mt(Q),strokeWidth:2,data:e}),Q++}function ti(t,i){const e=It(i);y.plots.push({type:"bar",fill:Mt(Q),data:e}),Q++}function ii(){if(y.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return y.title=li(),pi.build(K,y,q,mi)}function ei(){return q}function si(){return K}function ai(){return y}var mt,yt,bt,At,_t,Ct,wt,St,kt,Tt,st,ni,Bt,Rt,Dt,Lt,gi,xi,di,oi,ri,fi,hi,pi,Q,mi,K,q,y,at,J,nt,Xi,Yi=Ci((()=>{zi(),Oi(),Wi(),vi(),wi(),Si(),st=(function(){var t=a(function(n,l,d,c){for(d=d||{},c=n.length;c--;d[n[c]]=l);return d},"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],h=[1,5],f=[1,6],u=[1,7],_=[1,5,10,12,14,16,18,19,21,23,34,35,36],P=[1,25],W=[1,26],B=[1,28],R=[1,29],E=[1,30],O=[1,31],F=[1,32],D=[1,33],V=[1,34],p=[1,35],S=[1,36],r=[1,37],v=[1,43],z=[1,42],X=[1,47],Y=[1,50],A=[1,10,12,14,16,18,19,21,23,34,35,36],H=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],m=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],b=[1,64],L={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:a(function(l,d,c,g,w,o,Z){var x=o.length-1;switch(w){case 5:g.setOrientation(o[x]);break;case 9:g.setDiagramTitle(o[x].text.trim());break;case 12:g.setLineData({text:"",type:"text"},o[x]);break;case 13:g.setLineData(o[x-1],o[x]);break;case 14:g.setBarData({text:"",type:"text"},o[x]);break;case 15:g.setBarData(o[x-1],o[x]);break;case 16:this.$=o[x].trim(),g.setAccTitle(this.$);break;case 17:case 18:this.$=o[x].trim(),g.setAccDescription(this.$);break;case 19:this.$=o[x-1];break;case 20:this.$=[Number(o[x-2]),...o[x]];break;case 21:this.$=[Number(o[x])];break;case 22:g.setXAxisTitle(o[x]);break;case 23:g.setXAxisTitle(o[x-1]);break;case 24:g.setXAxisTitle({type:"text",text:""});break;case 25:g.setXAxisBand(o[x]);break;case 26:g.setXAxisRangeData(Number(o[x-2]),Number(o[x]));break;case 27:this.$=o[x-1];break;case 28:this.$=[o[x-2],...o[x]];break;case 29:this.$=[o[x]];break;case 30:g.setYAxisTitle(o[x]);break;case 31:g.setYAxisTitle(o[x-1]);break;case 32:g.setYAxisTitle({type:"text",text:""});break;case 33:g.setYAxisRangeData(Number(o[x-2]),Number(o[x]));break;case 37:this.$={text:o[x],type:"text"};break;case 38:this.$={text:o[x],type:"text"};break;case 39:this.$={text:o[x],type:"markdown"};break;case 40:this.$=o[x];break;case 41:this.$=o[x-1]+""+o[x];break}},"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,34:h,35:f,36:u}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,34:h,35:f,36:u}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:h,35:f,36:u}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(_,[2,34]),t(_,[2,35]),t(_,[2,36]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,34:h,35:f,36:u}),{1:[2,3]},t(_,[2,5]),t(i,[2,7],{4:22,34:h,35:f,36:u}),{11:23,37:24,38:P,39:W,40:27,41:B,42:R,43:E,44:O,45:F,46:D,47:V,48:p,49:S,50:r},{11:39,13:38,24:v,27:z,29:40,30:41,37:24,38:P,39:W,40:27,41:B,42:R,43:E,44:O,45:F,46:D,47:V,48:p,49:S,50:r},{11:45,15:44,27:X,33:46,37:24,38:P,39:W,40:27,41:B,42:R,43:E,44:O,45:F,46:D,47:V,48:p,49:S,50:r},{11:49,17:48,24:Y,37:24,38:P,39:W,40:27,41:B,42:R,43:E,44:O,45:F,46:D,47:V,48:p,49:S,50:r},{11:52,17:51,24:Y,37:24,38:P,39:W,40:27,41:B,42:R,43:E,44:O,45:F,46:D,47:V,48:p,49:S,50:r},{20:[1,53]},{22:[1,54]},t(A,[2,18]),{1:[2,2]},t(A,[2,8]),t(A,[2,9]),t(H,[2,37],{40:55,41:B,42:R,43:E,44:O,45:F,46:D,47:V,48:p,49:S,50:r}),t(H,[2,38]),t(H,[2,39]),t(m,[2,40]),t(m,[2,42]),t(m,[2,43]),t(m,[2,44]),t(m,[2,45]),t(m,[2,46]),t(m,[2,47]),t(m,[2,48]),t(m,[2,49]),t(m,[2,50]),t(m,[2,51]),t(A,[2,10]),t(A,[2,22],{30:41,29:56,24:v,27:z}),t(A,[2,24]),t(A,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:P,39:W,40:27,41:B,42:R,43:E,44:O,45:F,46:D,47:V,48:p,49:S,50:r},t(A,[2,11]),t(A,[2,30],{33:60,27:X}),t(A,[2,32]),{31:[1,61]},t(A,[2,12]),{17:62,24:Y},{25:63,27:b},t(A,[2,14]),{17:65,24:Y},t(A,[2,16]),t(A,[2,17]),t(m,[2,41]),t(A,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(A,[2,31]),{27:[1,69]},t(A,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(A,[2,15]),t(A,[2,26]),t(A,[2,27]),{11:59,32:72,37:24,38:P,39:W,40:27,41:B,42:R,43:E,44:O,45:F,46:D,47:V,48:p,49:S,50:r},t(A,[2,33]),t(A,[2,19]),{25:73,27:b},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:a(function(l,d){if(d.recoverable)this.trace(l);else{var c=new Error(l);throw c.hash=d,c}},"parseError"),parse:a(function(l){var d=this,c=[0],g=[],w=[null],o=[],Z=this.table,x="",tt=0,Vt=0,zt=0,yi=2,Wt=1,bi=o.slice.call(arguments,1),k=Object.create(this.lexer),U={yy:{}};for(var rt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,rt)&&(U.yy[rt]=this.yy[rt]);k.setInput(l,U.yy),U.yy.lexer=k,U.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var ht=k.yylloc;o.push(ht);var Ai=k.options&&k.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _i(M){c.length=c.length-2*M,w.length=w.length-M,o.length=o.length-M}a(_i,"popStack");function Ot(){var M=g.pop()||k.lex()||Wt;return typeof M!="number"&&(M instanceof Array&&(g=M,M=g.pop()),M=d.symbols_[M]||M),M}a(Ot,"lex");for(var T,lt,$,I,ct,G={},it,N,Ft,et;;){if($=c[c.length-1],this.defaultActions[$]?I=this.defaultActions[$]:((T===null||typeof T>"u")&&(T=Ot()),I=Z[$]&&Z[$][T]),typeof I>"u"||!I.length||!I[0]){var ut="";et=[];for(it in Z[$])this.terminals_[it]&&it>yi&&et.push("'"+this.terminals_[it]+"'");k.showPosition?ut="Parse error on line "+(tt+1)+`:
1
+ import{aa as Ci}from"./index-RJQqJC6n.js";import{Bt as a,Ht as Xt,Vt as wi,_t as Yt,t as Si,vt as Nt,z as Ht}from"./src-Ra8Cw6Gr.js";import{B as ki,D as Ti,U as Ri,W as Di,a as Li,b as Et,c as Pi,f as Ei,j as vi,q as Ii,v as Mi,w as li,y as Bi}from"./chunk-CSCIHK7Q-jw9fZDC9.js";import{n as Vi,t as zi}from"./chunk-WU5MYG2G-Cv_QOL8q.js";import{d as Wi,i as ci}from"./chunk-5ZQYHXKU-D0RIlhMr.js";import{i as Oi,t as Fi}from"./chunk-O5CBEL6O-D9XUSNoV.js";function gt(t){return t.type==="bar"}function vt(t){return t.type==="band"}function j(t){return t.type==="linear"}function xt(t,i,e,s){const h=new Bt(s);return vt(t)?new gi(i,e,t.categories,t.title,h):new xi(i,e,[t.min,t.max],t.title,h)}function Ut(t,i,e,s){return new di(new Bt(s),t,i,e)}function $t(t,i,e){return new fi(t,i,e)}function dt(){const t=Ti(),i=Et();return ci(t.xyChart,i.themeVariables.xyChart)}function ft(){const t=Et();return ci(Ei.xyChart,t.xyChart)}function pt(){return{yAxis:{type:"linear",title:"",min:1/0,max:-1/0},xAxis:{type:"band",title:"",categories:[]},title:"",plots:[]}}function ot(t){const i=Et();return ki(t.trim(),i)}function Gt(t){mi=t}function qt(t){t==="horizontal"?K.chartOrientation="horizontal":K.chartOrientation="vertical"}function jt(t){y.xAxis.title=ot(t.text)}function Pt(t,i){y.xAxis={type:"linear",title:y.xAxis.title,min:t,max:i},J=!0}function Qt(t){y.xAxis={type:"band",title:y.xAxis.title,categories:t.map(i=>ot(i.text))},J=!0}function Kt(t){y.yAxis.title=ot(t.text)}function Zt(t,i){y.yAxis={type:"linear",title:y.yAxis.title,min:t,max:i},nt=!0}function ui(t){const i=Math.min(...t),e=Math.max(...t),s=j(y.yAxis)?y.yAxis.min:1/0,h=j(y.yAxis)?y.yAxis.max:-1/0;y.yAxis={type:"linear",title:y.yAxis.title,min:Math.min(s,i),max:Math.max(h,e)}}function It(t){let i=[];if(t.length===0)return i;if(!J){const e=j(y.xAxis)?y.xAxis.min:1/0,s=j(y.xAxis)?y.xAxis.max:-1/0;Pt(Math.min(e,1),Math.max(s,t.length))}if(nt||ui(t),vt(y.xAxis)&&(i=y.xAxis.categories.map((e,s)=>[e,t[s]])),j(y.xAxis)){const e=y.xAxis.min,s=y.xAxis.max,h=(s-e)/(t.length-1),f=[];for(let u=e;u<=s;u+=h)f.push(`${u}`);i=f.map((u,_)=>[u,t[_]])}return i}function Mt(t){return at[t===0?0:t%at.length]}function Jt(t,i){const e=It(i);y.plots.push({type:"line",strokeFill:Mt(Q),strokeWidth:2,data:e}),Q++}function ti(t,i){const e=It(i);y.plots.push({type:"bar",fill:Mt(Q),data:e}),Q++}function ii(){if(y.plots.length===0)throw Error("No Plot to render, please provide a plot with some data");return y.title=li(),pi.build(K,y,q,mi)}function ei(){return q}function si(){return K}function ai(){return y}var mt,yt,bt,At,_t,Ct,wt,St,kt,Tt,st,ni,Bt,Rt,Dt,Lt,gi,xi,di,oi,ri,fi,hi,pi,Q,mi,K,q,y,at,J,nt,Xi,Yi=Ci((()=>{zi(),Oi(),Wi(),vi(),wi(),Si(),st=(function(){var t=a(function(n,l,d,c){for(d=d||{},c=n.length;c--;d[n[c]]=l);return d},"o"),i=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],h=[1,5],f=[1,6],u=[1,7],_=[1,5,10,12,14,16,18,19,21,23,34,35,36],P=[1,25],W=[1,26],B=[1,28],R=[1,29],E=[1,30],O=[1,31],F=[1,32],D=[1,33],V=[1,34],p=[1,35],S=[1,36],r=[1,37],v=[1,43],z=[1,42],X=[1,47],Y=[1,50],A=[1,10,12,14,16,18,19,21,23,34,35,36],H=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],m=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],b=[1,64],L={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:a(function(l,d,c,g,w,o,Z){var x=o.length-1;switch(w){case 5:g.setOrientation(o[x]);break;case 9:g.setDiagramTitle(o[x].text.trim());break;case 12:g.setLineData({text:"",type:"text"},o[x]);break;case 13:g.setLineData(o[x-1],o[x]);break;case 14:g.setBarData({text:"",type:"text"},o[x]);break;case 15:g.setBarData(o[x-1],o[x]);break;case 16:this.$=o[x].trim(),g.setAccTitle(this.$);break;case 17:case 18:this.$=o[x].trim(),g.setAccDescription(this.$);break;case 19:this.$=o[x-1];break;case 20:this.$=[Number(o[x-2]),...o[x]];break;case 21:this.$=[Number(o[x])];break;case 22:g.setXAxisTitle(o[x]);break;case 23:g.setXAxisTitle(o[x-1]);break;case 24:g.setXAxisTitle({type:"text",text:""});break;case 25:g.setXAxisBand(o[x]);break;case 26:g.setXAxisRangeData(Number(o[x-2]),Number(o[x]));break;case 27:this.$=o[x-1];break;case 28:this.$=[o[x-2],...o[x]];break;case 29:this.$=[o[x]];break;case 30:g.setYAxisTitle(o[x]);break;case 31:g.setYAxisTitle(o[x-1]);break;case 32:g.setYAxisTitle({type:"text",text:""});break;case 33:g.setYAxisRangeData(Number(o[x-2]),Number(o[x]));break;case 37:this.$={text:o[x],type:"text"};break;case 38:this.$={text:o[x],type:"text"};break;case 39:this.$={text:o[x],type:"markdown"};break;case 40:this.$=o[x];break;case 41:this.$=o[x-1]+""+o[x];break}},"anonymous"),table:[t(i,e,{3:1,4:2,7:4,5:s,34:h,35:f,36:u}),{1:[3]},t(i,e,{4:2,7:4,3:8,5:s,34:h,35:f,36:u}),t(i,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:h,35:f,36:u}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},t(_,[2,34]),t(_,[2,35]),t(_,[2,36]),{1:[2,1]},t(i,e,{4:2,7:4,3:21,5:s,34:h,35:f,36:u}),{1:[2,3]},t(_,[2,5]),t(i,[2,7],{4:22,34:h,35:f,36:u}),{11:23,37:24,38:P,39:W,40:27,41:B,42:R,43:E,44:O,45:F,46:D,47:V,48:p,49:S,50:r},{11:39,13:38,24:v,27:z,29:40,30:41,37:24,38:P,39:W,40:27,41:B,42:R,43:E,44:O,45:F,46:D,47:V,48:p,49:S,50:r},{11:45,15:44,27:X,33:46,37:24,38:P,39:W,40:27,41:B,42:R,43:E,44:O,45:F,46:D,47:V,48:p,49:S,50:r},{11:49,17:48,24:Y,37:24,38:P,39:W,40:27,41:B,42:R,43:E,44:O,45:F,46:D,47:V,48:p,49:S,50:r},{11:52,17:51,24:Y,37:24,38:P,39:W,40:27,41:B,42:R,43:E,44:O,45:F,46:D,47:V,48:p,49:S,50:r},{20:[1,53]},{22:[1,54]},t(A,[2,18]),{1:[2,2]},t(A,[2,8]),t(A,[2,9]),t(H,[2,37],{40:55,41:B,42:R,43:E,44:O,45:F,46:D,47:V,48:p,49:S,50:r}),t(H,[2,38]),t(H,[2,39]),t(m,[2,40]),t(m,[2,42]),t(m,[2,43]),t(m,[2,44]),t(m,[2,45]),t(m,[2,46]),t(m,[2,47]),t(m,[2,48]),t(m,[2,49]),t(m,[2,50]),t(m,[2,51]),t(A,[2,10]),t(A,[2,22],{30:41,29:56,24:v,27:z}),t(A,[2,24]),t(A,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:P,39:W,40:27,41:B,42:R,43:E,44:O,45:F,46:D,47:V,48:p,49:S,50:r},t(A,[2,11]),t(A,[2,30],{33:60,27:X}),t(A,[2,32]),{31:[1,61]},t(A,[2,12]),{17:62,24:Y},{25:63,27:b},t(A,[2,14]),{17:65,24:Y},t(A,[2,16]),t(A,[2,17]),t(m,[2,41]),t(A,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},t(A,[2,31]),{27:[1,69]},t(A,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},t(A,[2,15]),t(A,[2,26]),t(A,[2,27]),{11:59,32:72,37:24,38:P,39:W,40:27,41:B,42:R,43:E,44:O,45:F,46:D,47:V,48:p,49:S,50:r},t(A,[2,33]),t(A,[2,19]),{25:73,27:b},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:a(function(l,d){if(d.recoverable)this.trace(l);else{var c=new Error(l);throw c.hash=d,c}},"parseError"),parse:a(function(l){var d=this,c=[0],g=[],w=[null],o=[],Z=this.table,x="",tt=0,Vt=0,zt=0,yi=2,Wt=1,bi=o.slice.call(arguments,1),k=Object.create(this.lexer),U={yy:{}};for(var rt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,rt)&&(U.yy[rt]=this.yy[rt]);k.setInput(l,U.yy),U.yy.lexer=k,U.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var ht=k.yylloc;o.push(ht);var Ai=k.options&&k.options.ranges;typeof U.yy.parseError=="function"?this.parseError=U.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _i(M){c.length=c.length-2*M,w.length=w.length-M,o.length=o.length-M}a(_i,"popStack");function Ot(){var M=g.pop()||k.lex()||Wt;return typeof M!="number"&&(M instanceof Array&&(g=M,M=g.pop()),M=d.symbols_[M]||M),M}a(Ot,"lex");for(var T,lt,$,I,ct,G={},it,N,Ft,et;;){if($=c[c.length-1],this.defaultActions[$]?I=this.defaultActions[$]:((T===null||typeof T>"u")&&(T=Ot()),I=Z[$]&&Z[$][T]),typeof I>"u"||!I.length||!I[0]){var ut="";et=[];for(it in Z[$])this.terminals_[it]&&it>yi&&et.push("'"+this.terminals_[it]+"'");k.showPosition?ut="Parse error on line "+(tt+1)+`:
2
2
  `+k.showPosition()+`
3
3
  Expecting `+et.join(", ")+", got '"+(this.terminals_[T]||T)+"'":ut="Parse error on line "+(tt+1)+": Unexpected "+(T==Wt?"end of input":"'"+(this.terminals_[T]||T)+"'"),this.parseError(ut,{text:k.match,token:this.terminals_[T]||T,line:k.yylineno,loc:ht,expected:et})}if(I[0]instanceof Array&&I.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+T);switch(I[0]){case 1:c.push(T),w.push(k.yytext),o.push(k.yylloc),c.push(I[1]),T=null,lt?(T=lt,lt=null):(Vt=k.yyleng,x=k.yytext,tt=k.yylineno,ht=k.yylloc,zt>0&&zt--);break;case 2:if(N=this.productions_[I[1]][1],G.$=w[w.length-N],G._$={first_line:o[o.length-(N||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(N||1)].first_column,last_column:o[o.length-1].last_column},Ai&&(G._$.range=[o[o.length-(N||1)].range[0],o[o.length-1].range[1]]),ct=this.performAction.apply(G,[x,Vt,tt,U.yy,I[1],w,o].concat(bi)),typeof ct<"u")return ct;N&&(c=c.slice(0,-1*N*2),w=w.slice(0,-1*N),o=o.slice(0,-1*N)),c.push(this.productions_[I[1]][0]),w.push(G.$),o.push(G._$),Ft=Z[c[c.length-2]][c[c.length-1]],c.push(Ft);break;case 3:return!0}}return!0},"parse")};L.lexer=(function(){return{EOF:1,parseError:a(function(l,d){if(this.yy.parser)this.yy.parser.parseError(l,d);else throw new Error(l)},"parseError"),setInput:a(function(n,l){return this.yy=l||this.yy||{},this._input=n,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:a(function(){var n=this._input[0];return this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n,n.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),n},"input"),unput:a(function(n){var l=n.length,d=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var c=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),d.length-1&&(this.yylineno-=d.length-1);var g=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:d?(d.length===c.length?this.yylloc.first_column:0)+c[c.length-d.length].length-d[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[g[0],g[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(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:a(function(n){this.unput(this.match.slice(n))},"less"),pastInput:a(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var n=this.pastInput(),l=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{aa as n}from"./index-B41wzfl2.js";import{$ as i,A as t,At as e,B as o,C as a,Ct as s,D as r,Dt as l,E as c,Et as d,F as u,G as m,H as _,I as b,J as p,K as g,L as f,M as k,Mt as S,N as w,O as y,Ot as h,P as C,Q as N,R as H,S as A,St as $,T as x,Tt as T,U as I,V as E,W as v,X as P,Y as F,Z as O,_ as Q,_t as D,at as L,b as M,bt as R,ct as j,dt as z,et as G,ft as U,g as Z,gt as q,h as K,ht as W,it as B,j as J,jt as V,k as X,kt as Y,lt as nn,m as tn,mt as en,nt as on,ot as an,p as sn,pt as rn,q as ln,rt as cn,st as dn,tt as un,ut as mn,v as _n,vt as bn,w as pn,wt as gn,x as fn,xt as kn,y as Sn,yt as wn,z as yn}from"./FileEditor-Dkxlmokr.js";var hn,Cn,Nn=n((()=>{S(),V(),e(),Y(),h(),l(),d(),gn(),kn(),R(),D(),q(),W(),en(),rn(),U(),z(),mn(),nn(),j(),dn(),an(),on(),T(),wn(),un(),bn(),G(),i(),N(),O(),P(),F(),p(),L(),ln(),g(),m(),v(),I(),_(),E(),o(),yn(),H(),f(),b(),B(),u(),cn(),C(),w(),k(),J(),t(),X(),y(),r(),c(),x(),pn(),a(),s(),$(),A(),fn(),M(),Sn(),_n(),Q(),Z(),K(),sn(),hn={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:tn.IndentAction.Indent}}]},Cn={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/.+?(?=(\s+#|$))/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}}}));Nn();export{hn as conf,Cn as language};
1
+ import{aa as n}from"./index-RJQqJC6n.js";import{$ as i,A as t,At as e,B as o,C as a,Ct as s,D as r,Dt as l,E as c,Et as d,F as u,G as m,H as _,I as b,J as p,K as g,L as f,M as k,Mt as S,N as w,O as y,Ot as h,P as C,Q as N,R as H,S as A,St as $,T as x,Tt as T,U as I,V as E,W as v,X as P,Y as F,Z as O,_ as Q,_t as D,at as L,b as M,bt as R,ct as j,dt as z,et as G,ft as U,g as Z,gt as q,h as K,ht as W,it as B,j as J,jt as V,k as X,kt as Y,lt as nn,m as tn,mt as en,nt as on,ot as an,p as sn,pt as rn,q as ln,rt as cn,st as dn,tt as un,ut as mn,v as _n,vt as bn,w as pn,wt as gn,x as fn,xt as kn,y as Sn,yt as wn,z as yn}from"./FileEditor-C_tmKjxI.js";var hn,Cn,Nn=n((()=>{S(),V(),e(),Y(),h(),l(),d(),gn(),kn(),R(),D(),q(),W(),en(),rn(),U(),z(),mn(),nn(),j(),dn(),an(),on(),T(),wn(),un(),bn(),G(),i(),N(),O(),P(),F(),p(),L(),ln(),g(),m(),v(),I(),_(),E(),o(),yn(),H(),f(),b(),B(),u(),cn(),C(),w(),k(),J(),t(),X(),y(),r(),c(),x(),pn(),a(),s(),$(),A(),fn(),M(),Sn(),_n(),Q(),Z(),K(),sn(),hn={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:tn.IndentAction.Indent}}]},Cn={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/.+?(?=(\s+#|$))/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}}}));Nn();export{hn as conf,Cn as language};