hermes-web-ui 0.6.40 → 0.6.41
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.
- package/dist/client/assets/js/{AppSidebar-CaSVcbCW.js → AppSidebar-CNkSiv3l.js} +1 -1
- package/dist/client/assets/js/{ChannelsView-hdAXa1hf.js → ChannelsView-6rEo6RBl.js} +1 -1
- package/dist/client/assets/js/{ChatPanel-C6sX6idm.js → ChatPanel-ANAZWluc.js} +3 -3
- package/dist/client/assets/js/{ChatView-B68k_-D9.js → ChatView-DFcPsmRF.js} +1 -1
- package/dist/client/assets/js/{CodingAgentsView-CsIjwbXR.js → CodingAgentsView-CpIY0SHT.js} +1 -1
- package/dist/client/assets/js/{DefaultCredentialPrompt-BRhb4DOa.js → DefaultCredentialPrompt-DmNeotSW.js} +1 -1
- package/dist/client/assets/js/{DesktopBrowserPanel-BlBfS64w.js → DesktopBrowserPanel-CWjTU-3y.js} +1 -1
- package/dist/client/assets/js/{DesktopBrowserView-JukL0QuS.js → DesktopBrowserView-D9Qb3fIV.js} +1 -1
- package/dist/client/assets/js/{DesktopPetView-DWq4EiRU.js → DesktopPetView-B7REtC57.js} +1 -1
- package/dist/client/assets/js/{DesktopTitleBar-DphP4oa6.js → DesktopTitleBar-Dej_16hB.js} +1 -1
- package/dist/client/assets/js/{DevicesView-BFtrfqJs.js → DevicesView--d4HCkch.js} +1 -1
- package/dist/client/assets/js/{DocxFilePreview-CmVJ9Jxx.js → DocxFilePreview-BQz6WC7r.js} +2 -2
- package/dist/client/assets/js/{FileEditor-CdkNYp7b.js → FileEditor-BBegs-5i.js} +2 -2
- package/dist/client/assets/js/{FilePreview-CJrVRPRs.js → FilePreview-B7WqYvZs.js} +2 -2
- package/dist/client/assets/js/{FileRenameModal-mghyEXU4.js → FileRenameModal-82RkAZkd.js} +1 -1
- package/dist/client/assets/js/{FilesPanel-B9cKB5lX.js → FilesPanel-BHcg6CpC.js} +2 -2
- package/dist/client/assets/js/{FilesView-iKZu70E9.js → FilesView-Dl15WTar.js} +2 -2
- package/dist/client/assets/js/{GlobalAgentView-JZsss0gx.js → GlobalAgentView-dxEX611f.js} +1 -1
- package/dist/client/assets/js/{GlobalPendingActions-BRQIt5vl.js → GlobalPendingActions-CeK96C3G.js} +1 -1
- package/dist/client/assets/js/{GroupChatLinkView-CNrV8lnT.js → GroupChatLinkView-CJhI9DVE.js} +1 -1
- package/dist/client/assets/js/{GroupChatPanel-WK4zBasl.js → GroupChatPanel-CLa3s08V.js} +3 -3
- package/dist/client/assets/js/{GroupChatView-BlMUD1MW.js → GroupChatView-CUwvu-6F.js} +1 -1
- package/dist/client/assets/js/{HistoryMessageList-D8zoQ1Zs.js → HistoryMessageList-BdD8GJYM.js} +1 -1
- package/dist/client/assets/js/{HistoryView-Bpr8N2lC.js → HistoryView-Ro92tP5R.js} +1 -1
- package/dist/client/assets/js/{HtmlFilePreview-Bj3_-hMo.js → HtmlFilePreview-xYn7YtmC.js} +1 -1
- package/dist/client/assets/js/{JobsView-CZK26gTw.js → JobsView-BaNA1Yaa.js} +2 -2
- package/dist/client/assets/js/{JourneyView-BPUsLj4o.js → JourneyView-Bw-05mCF.js} +1 -1
- package/dist/client/assets/js/{KanbanView-B7d-2_z9.js → KanbanView-BYC32l2Q.js} +1 -1
- package/dist/client/assets/js/{LoginView-BpYyv831.js → LoginView-KrpCkwOr.js} +1 -1
- package/dist/client/assets/js/{LogsView-CabFHk0v.js → LogsView-Dgm4v5sN.js} +1 -1
- package/dist/client/assets/js/{MarkdownRenderer-CVtmHZwc.js → MarkdownRenderer-BIPowjr-.js} +3 -3
- package/dist/client/assets/js/{McpManagerView-C-ou8vf3.js → McpManagerView-DTtkUIvq.js} +1 -1
- package/dist/client/assets/js/{MemoryView-QGFW4iZo.js → MemoryView-BnL7xzux.js} +2 -2
- package/dist/client/assets/js/{MessageList-DZR-TFjD.js → MessageList-5tytzhb0.js} +3 -3
- package/dist/client/assets/js/{ModelsView-DiWdSWOW.js → ModelsView-ComCz0Ce.js} +1 -1
- package/dist/client/assets/js/{OutlinePanel-Dlr5svMY.js → OutlinePanel-CF_XPCRn.js} +1 -1
- package/dist/client/assets/js/{PageSidebarFooter-Bic1fUmG.js → PageSidebarFooter-dvLzcTIm.js} +1 -1
- package/dist/client/assets/js/{PdfFilePreview-Dkpan1ay.js → PdfFilePreview-COOAoJ4V.js} +2 -2
- package/dist/client/assets/js/{PerformanceView-LrZaED_Z.js → PerformanceView-D6dKifJh.js} +1 -1
- package/dist/client/assets/js/{PetdexView-Bv8RioGL.js → PetdexView-CmvzDYwf.js} +1 -1
- package/dist/client/assets/js/{PluginsView-CbtdIGlq.js → PluginsView-zJV9FE9c.js} +1 -1
- package/dist/client/assets/js/{PptxFilePreview-5if_GbU6.js → PptxFilePreview-dC4JxV6j.js} +2 -2
- package/dist/client/assets/js/{ProfileAvatar-DI9ciJxS.js → ProfileAvatar-C8xoALCI.js} +1 -1
- package/dist/client/assets/js/{ProfilesView-C-FSiKMU.js → ProfilesView-CxVxJRN_.js} +1 -1
- package/dist/client/assets/js/{ProviderConfigurationPrompt-BUoWC41Y.js → ProviderConfigurationPrompt-zwk1UwoP.js} +1 -1
- package/dist/client/assets/js/{SessionSearchModal-CEKvSihp.js → SessionSearchModal-DhwGsV-i.js} +1 -1
- package/dist/client/assets/js/{SettingRow-CSfiJmxx.js → SettingRow-DHqhLX3M.js} +1 -1
- package/dist/client/assets/js/{SettingsCircuitBadge-DHIEFyTR.js → SettingsCircuitBadge-CnWSfQZd.js} +1 -1
- package/dist/client/assets/js/{SettingsView-DbNJroV3.js → SettingsView-Cbroga25.js} +1 -1
- package/dist/client/assets/js/{SharedGroupChatView-CTYjqWcO.js → SharedGroupChatView-DXfqtQ33.js} +1 -1
- package/dist/client/assets/js/{SkillsUsageView-BqZ3GtfT.js → SkillsUsageView-C34i3lOQ.js} +1 -1
- package/dist/client/assets/js/{SkillsView-Bhla7821.js → SkillsView-DRG_1esx.js} +2 -2
- package/dist/client/assets/js/{SpreadsheetFilePreview-CGK8HDAx.js → SpreadsheetFilePreview-DRw4kIx5.js} +1 -1
- package/dist/client/assets/js/{TerminalPanel-CtBTLOwq.js → TerminalPanel-Da1nL9P8.js} +1 -1
- package/dist/client/assets/js/{TerminalView-BID7fupB.js → TerminalView-B6z-VaGq.js} +1 -1
- package/dist/client/assets/js/{ThemeView-Cx3ucIus.js → ThemeView-CAaJ9MH-.js} +1 -1
- package/dist/client/assets/js/{UsageView-ByGCsw7o.js → UsageView-B_hLsp0k.js} +1 -1
- package/dist/client/assets/js/{VersionPreviewView-DiAK1ind.js → VersionPreviewView-DKXL6anl.js} +1 -1
- package/dist/client/assets/js/{WebPet-CdIqrnp1.js → WebPet-BUvrfjpq.js} +1 -1
- package/dist/client/assets/js/{WorkflowView-DmBOhSuq.js → WorkflowView-r46Ap9FY.js} +1 -1
- package/dist/client/assets/js/{WorkspaceDiffPreview-dHIGp-9F.js → WorkspaceDiffPreview-EwZAE18F.js} +2 -2
- package/dist/client/assets/js/{abap-Dj8IFKiF.js → abap-C7gkFu-A.js} +1 -1
- package/dist/client/assets/js/{aiden0z-pptx-renderer.es-6vi5-jAN.js → aiden0z-pptx-renderer.es-DOpVaH_k.js} +1 -1
- package/dist/client/assets/js/{apex-C3INPUEt.js → apex-DZOtRowu.js} +1 -1
- package/dist/client/assets/js/{ar-Gk9y3ZfO.js → ar-8iThLSJQ.js} +1 -1
- package/dist/client/assets/js/architecture-7EHR7CIX-BrfhYGuP.js +1 -0
- package/dist/client/assets/js/{architectureDiagram-3BPJPVTR-DLZYeivB.js → architectureDiagram-3BPJPVTR-DEsTTzKd.js} +1 -1
- package/dist/client/assets/js/{auth-D1ZFqv22.js → auth-B52zm2Ir.js} +1 -1
- package/dist/client/assets/js/{azcli-UBzLhJq5.js → azcli-KxuicZQh.js} +1 -1
- package/dist/client/assets/js/{bat-P3O4jldt.js → bat-DfFP4HF-.js} +1 -1
- package/dist/client/assets/js/{bicep-DdQR9RxE.js → bicep-Co4bntVh.js} +1 -1
- package/dist/client/assets/js/{blockDiagram-GPEHLZMM-UWFo8sm5.js → blockDiagram-GPEHLZMM-NsxYeUKd.js} +1 -1
- package/dist/client/assets/js/{c4Diagram-AAUBKEIU-jgyj0wOb.js → c4Diagram-AAUBKEIU-D68asSzm.js} +1 -1
- package/dist/client/assets/js/{cameligo-Bb4ubW_C.js → cameligo-Xi0l_9Wr.js} +1 -1
- package/dist/client/assets/js/{chat-DdHii4Qz.js → chat-fUZW3YFa.js} +1 -1
- package/dist/client/assets/js/{chat-input-height-CSPwB9it.js → chat-input-height-lvFawuv9.js} +1 -1
- package/dist/client/assets/js/{chat-timestamp-DGQ8fmtT.js → chat-timestamp-4wWFcZWv.js} +1 -1
- package/dist/client/assets/js/{chunk-2J33WTMH-Br9OWF5a.js → chunk-2J33WTMH-CEU5sLIh.js} +1 -1
- package/dist/client/assets/js/{chunk-3OPIFGDE-Cb40LuI4.js → chunk-3OPIFGDE-DEhbKkCl.js} +1 -1
- package/dist/client/assets/js/{chunk-4BX2VUAB-jYtdiafd.js → chunk-4BX2VUAB-OIZUstuy.js} +1 -1
- package/dist/client/assets/js/{chunk-55IACEB6-CBtymeHY.js → chunk-55IACEB6-DQHKZCBG.js} +1 -1
- package/dist/client/assets/js/{chunk-5ZQYHXKU-yj9xqmex.js → chunk-5ZQYHXKU-BU3pQVVl.js} +1 -1
- package/dist/client/assets/js/{chunk-727SXJPM-er_5tB5X.js → chunk-727SXJPM-jj97gdnP.js} +1 -1
- package/dist/client/assets/js/{chunk-AQP2D5EJ-C4mDD6xK.js → chunk-AQP2D5EJ-jv-oWlkb.js} +1 -1
- package/dist/client/assets/js/{chunk-BSJP7CBP-QZesZe57.js → chunk-BSJP7CBP-DkKsepNF.js} +1 -1
- package/dist/client/assets/js/{chunk-CSCIHK7Q-5LH118bT.js → chunk-CSCIHK7Q-CLgoBoCF.js} +3 -3
- package/dist/client/assets/js/{chunk-FMBD7UC4-CQho6QZ5.js → chunk-FMBD7UC4-Bx1bCKUR.js} +1 -1
- package/dist/client/assets/js/{chunk-KSCS5N6A-DONM1Omv.js → chunk-KSCS5N6A-CZHZ6pBd.js} +1 -1
- package/dist/client/assets/js/{chunk-L5ZTLDWV-FN_zFWkp.js → chunk-L5ZTLDWV-dz9D3kOb.js} +1 -1
- package/dist/client/assets/js/{chunk-LZXEDZCA-CEEUVvpS.js → chunk-LZXEDZCA-CQiSQehC.js} +2 -2
- package/dist/client/assets/js/{chunk-ND2GUHAM-DWckpxQD.js → chunk-ND2GUHAM-mWODKb8v.js} +1 -1
- package/dist/client/assets/js/{chunk-NZK2D7GU-0mKZmkuV.js → chunk-NZK2D7GU-ivCkjCOR.js} +1 -1
- package/dist/client/assets/js/{chunk-O5CBEL6O-DIDAOkT_.js → chunk-O5CBEL6O-BRUisK47.js} +1 -1
- package/dist/client/assets/js/{chunk-QZHKN3VN-D3c-TMz-.js → chunk-QZHKN3VN-BHjgTrzY.js} +1 -1
- package/dist/client/assets/js/{chunk-WU5MYG2G-BZvSpwm4.js → chunk-WU5MYG2G-CNW1rcpL.js} +1 -1
- package/dist/client/assets/js/{chunk-XPW4576I-xdyJtk-s.js → chunk-XPW4576I-DP3dJbOu.js} +1 -1
- package/dist/client/assets/js/classDiagram-4FO5ZUOK-BVBBe3DQ.js +1 -0
- package/dist/client/assets/js/classDiagram-v2-Q7XG4LA2-DJUe3i9Y.js +1 -0
- package/dist/client/assets/js/{clipboard-DQ_A8ns-.js → clipboard-DHZFaAvO.js} +1 -1
- package/dist/client/assets/js/{clipboard-files-bDrcGKPe.js → clipboard-files-CBDy-02Y.js} +1 -1
- package/dist/client/assets/js/{clojure-ku7aCU1_.js → clojure-DuyGwS8X.js} +1 -1
- package/dist/client/assets/js/{coding-agents-DfHyBvky.js → coding-agents-BNTHD6kd.js} +1 -1
- package/dist/client/assets/js/{codingAgentProviders-BM18FAW9.js → codingAgentProviders-DM_ouxbL.js} +1 -1
- package/dist/client/assets/js/{coffee-DnRIdJlY.js → coffee-C5p7vzpa.js} +1 -1
- package/dist/client/assets/js/{completion-notification-XxjbntI8.js → completion-notification-CzdnhuX3.js} +1 -1
- package/dist/client/assets/js/{cose-bilkent-S5V4N54A-w891sIF1.js → cose-bilkent-S5V4N54A-De_ZdqY0.js} +1 -1
- package/dist/client/assets/js/{cpp-CN8i6ISX.js → cpp-II5hDbTe.js} +1 -1
- package/dist/client/assets/js/{csharp-B-fxig7O.js → csharp-D0POzSpv.js} +1 -1
- package/dist/client/assets/js/{csp-Bar9LGt4.js → csp-CwtuRkR3.js} +1 -1
- package/dist/client/assets/js/{css-DFtC5xZN.js → css-Dc2fJIqQ.js} +1 -1
- package/dist/client/assets/js/{cssMode-DH5XKKL2.js → cssMode-CC6jRvHF.js} +1 -1
- package/dist/client/assets/js/{cypher-BkJexWsv.js → cypher-DBcQoWDH.js} +1 -1
- package/dist/client/assets/js/{cytoscape.esm-BDsvr8Aq.js → cytoscape.esm-C9FMRqxM.js} +1 -1
- package/dist/client/assets/js/{dagre-BM42HDAG-BuT885pa.js → dagre-BM42HDAG-CvJIC410.js} +1 -1
- package/dist/client/assets/js/{dagre-BVUDh8Sh.js → dagre-BtgEsAtK.js} +1 -1
- package/dist/client/assets/js/{dart-B7W8hAtN.js → dart-Jf_Hmp2o.js} +1 -1
- package/dist/client/assets/js/{de-LDpd8WHJ.js → de-7hLSwCEx.js} +1 -1
- package/dist/client/assets/js/{defineProperty-DdPu4ZVv.js → defineProperty-DHkErCmG.js} +1 -1
- package/dist/client/assets/js/{desktop-browser-xrRFPNUg.js → desktop-browser-C6AhY0uu.js} +1 -1
- package/dist/client/assets/js/{diagram-2AECGRRQ-B1sSf-09.js → diagram-2AECGRRQ-CvPeU5Lm.js} +1 -1
- package/dist/client/assets/js/{diagram-5GNKFQAL-BffX22pf.js → diagram-5GNKFQAL-CBniYlkH.js} +1 -1
- package/dist/client/assets/js/{diagram-KO2AKTUF-D8QvpUpn.js → diagram-KO2AKTUF-C_yFaVRj.js} +1 -1
- package/dist/client/assets/js/{diagram-LMA3HP47-DkG7p3lQ.js → diagram-LMA3HP47-BzM1IxNe.js} +1 -1
- package/dist/client/assets/js/{diagram-OG6HWLK6-RjvNNvXM.js → diagram-OG6HWLK6-yvmf_3ax.js} +1 -1
- package/dist/client/assets/js/{dist-Bk0VKtV3.js → dist-BHzBn3v7.js} +1 -1
- package/dist/client/assets/js/{dockerfile-C4m7j8sy.js → dockerfile-J3d6ZPDJ.js} +1 -1
- package/dist/client/assets/js/{docx-preview-BpTW-GN7.js → docx-preview-Rqt8wMjQ.js} +1 -1
- package/dist/client/assets/js/{download-CX8EG48r.js → download-xhRMWMda.js} +1 -1
- package/dist/client/assets/js/{ecl-EHV358Ls.js → ecl-XnlT0p97.js} +1 -1
- package/dist/client/assets/js/{editor.api2-CnHBqh_d.js → editor.api2-ChO5nUQb.js} +1 -1
- package/dist/client/assets/js/{elixir-DLfp2Dwn.js → elixir-BEJbxH-B.js} +1 -1
- package/dist/client/assets/js/{en-D6VVFwFU.js → en-D2WSXgkM.js} +1 -1
- package/dist/client/assets/js/{erDiagram-TEJ5UH35-CLlLC6xx.js → erDiagram-TEJ5UH35-DZysD9r9.js} +1 -1
- package/dist/client/assets/js/{es-BIMLuyVP.js → es-B7Mq1P0U.js} +1 -1
- package/dist/client/assets/js/{esm-C8D4M0Yn.js → esm-DnZPPtmx.js} +1 -1
- package/dist/client/assets/js/eventmodeling-FCH6USID-vlE3-g2j.js +1 -0
- package/dist/client/assets/js/{file-preview-BvgwVZXh.js → file-preview-C417aixJ.js} +1 -1
- package/dist/client/assets/js/{files-CJkCqsUx.js → files-DjI-npgn.js} +1 -1
- package/dist/client/assets/js/{flow9-CtBaUnAi.js → flow9-j5XT_8TQ.js} +1 -1
- package/dist/client/assets/js/{flowDiagram-I6XJVG4X-VTRTPnqD.js → flowDiagram-I6XJVG4X-Dt5ZtyHz.js} +1 -1
- package/dist/client/assets/js/{fr-C2lf0cY2.js → fr-DvClrDOw.js} +1 -1
- package/dist/client/assets/js/{freemarker2-XLeMvhl_.js → freemarker2-BzCf_0SN.js} +1 -1
- package/dist/client/assets/js/{fsharp-Db0uaBQv.js → fsharp-ClU_Sdjr.js} +1 -1
- package/dist/client/assets/js/{ganttDiagram-6RSMTGT7-CdKcIZ8_.js → ganttDiagram-6RSMTGT7-Bca3rPWi.js} +1 -1
- package/dist/client/assets/js/gitGraph-WXDBUCRP-Cyd4P6XH.js +1 -0
- package/dist/client/assets/js/{gitGraphDiagram-PVQCEYII-Bcuyw6fo.js → gitGraphDiagram-PVQCEYII-Co29qnTg.js} +1 -1
- package/dist/client/assets/js/{go-DwaTlB-B.js → go-D3iUyCM0.js} +1 -1
- package/dist/client/assets/js/{graphlib-vAI4Pw7R.js → graphlib-Bln6qd-Z.js} +1 -1
- package/dist/client/assets/js/{graphql-Cf2XhNJR.js → graphql-z8koqyyL.js} +1 -1
- package/dist/client/assets/js/{group-agent-avatar-CPehpiK0.js → group-agent-avatar-CwqtaKGw.js} +1 -1
- package/dist/client/assets/js/{group-chat-CY62vc77.js → group-chat-Buz8HP-N.js} +1 -1
- package/dist/client/assets/js/{group-chat-xkdjC2Jt.js → group-chat-CgFAwCtr.js} +1 -1
- package/dist/client/assets/js/{group-chat-agent-link-DdSNKasF.js → group-chat-agent-link-N5IFeN_j.js} +1 -1
- package/dist/client/assets/js/{handlebars-CNEKu_p8.js → handlebars-C_JvhUYs.js} +1 -1
- package/dist/client/assets/js/{hcl-6UZbq6h2.js → hcl-X7TzviIX.js} +1 -1
- package/dist/client/assets/js/{highlight-DwtBT6t1.js → highlight-C4yUBxwQ.js} +1 -1
- package/dist/client/assets/js/{html-DfSIHhKA.js → html-B-rCQB0N.js} +1 -1
- package/dist/client/assets/js/{htmlMode-iGw9-O-W.js → htmlMode-CAeEf_yf.js} +1 -1
- package/dist/client/assets/js/{index-DnjQJzX4.js → index-DN4SafrP.js} +5 -5
- package/dist/client/assets/js/info-J43DQDTF-B9tkQ2Sb.js +1 -0
- package/dist/client/assets/js/{infoDiagram-5YYISTIA-85450Zam.js → infoDiagram-5YYISTIA-BWQGayms.js} +1 -1
- package/dist/client/assets/js/{ini-8em8V_Af.js → ini-LTHHN4J-.js} +1 -1
- package/dist/client/assets/js/{ishikawaDiagram-YF4QCWOH-BZ4az7UA.js → ishikawaDiagram-YF4QCWOH-Dhuplz_z.js} +1 -1
- package/dist/client/assets/js/{ja-C1bBXgr_.js → ja-D7BeX2_D.js} +1 -1
- package/dist/client/assets/js/{java-CP1MdIkO.js → java-BRFX-ya0.js} +1 -1
- package/dist/client/assets/js/{javascript-Cr8_LHYa.js → javascript-ZXiVmjXn.js} +1 -1
- package/dist/client/assets/js/{journeyDiagram-JHISSGLW-DGMB8Tgc.js → journeyDiagram-JHISSGLW-CJeatAU9.js} +1 -1
- package/dist/client/assets/js/{jsonMode-HCZ-1lFH.js → jsonMode-C6FcMe0o.js} +1 -1
- package/dist/client/assets/js/{jszip.min-BkR6b8DY.js → jszip.min-skZCUzWf.js} +1 -1
- package/dist/client/assets/js/{julia-DMTMxa5q.js → julia-Bph8N3CL.js} +1 -1
- package/dist/client/assets/js/{kanban-definition-UN3LZRKU-F5cH_RpB.js → kanban-definition-UN3LZRKU-tvWuOdSr.js} +1 -1
- package/dist/client/assets/js/{katex-CYbEJAbZ.js → katex-hSGJNERm.js} +1 -1
- package/dist/client/assets/js/{ko-qgOeHd8L.js → ko-BsVa-If_.js} +1 -1
- package/dist/client/assets/js/{kotlin-Blzus47W.js → kotlin-_c4-tPQp.js} +1 -1
- package/dist/client/assets/js/{less-DWCHpDyf.js → less-5oVo4jfQ.js} +1 -1
- package/dist/client/assets/js/{lexon-YXdlYGbJ.js → lexon-DE4YtGwF.js} +1 -1
- package/dist/client/assets/js/{liquid-DSQgvRwe.js → liquid-BGfieGMG.js} +1 -1
- package/dist/client/assets/js/{lspLanguageFeatures-0Hx2Vnc-.js → lspLanguageFeatures-DU_1H2uW.js} +1 -1
- package/dist/client/assets/js/{lua-Cyv3mTkg.js → lua-7WJSZJqD.js} +1 -1
- package/dist/client/assets/js/{m3-CPY3Ym7_.js → m3-gZlfoR19.js} +1 -1
- package/dist/client/assets/js/{markdown-DaPQ1nuG.js → markdown-BYF71orA.js} +1 -1
- package/dist/client/assets/js/{mdx-BqA6Xr9V.js → mdx-CunEIV3g.js} +1 -1
- package/dist/client/assets/js/{mermaid-parser.core-D4HRUOce.js → mermaid-parser.core-DU_SX15F.js} +3 -3
- package/dist/client/assets/js/{mermaid.core-w6kHmgOG.js → mermaid.core-8vsbhG5J.js} +3 -3
- package/dist/client/assets/js/{message-scroll-position-C5yRCyBU.js → message-scroll-position-C9_YO3pX.js} +2 -2
- package/dist/client/assets/js/{mindmap-definition-RKZ34NQL-CnzhnJ7Z.js → mindmap-definition-RKZ34NQL-HPtlKqL1.js} +1 -1
- package/dist/client/assets/js/{mips-BfqBfLvN.js → mips-DXkvw9aZ.js} +1 -1
- package/dist/client/assets/js/{models-wrytxWnf.js → models-BILDy2sV.js} +1 -1
- package/dist/client/assets/js/{monaco.contribution-Bc-DesyO.js → monaco.contribution-DDqeHGl3.js} +2 -2
- package/dist/client/assets/js/{msdax-DgMip49g.js → msdax-BbHEBDvP.js} +1 -1
- package/dist/client/assets/js/{mysql-DPUvF1g2.js → mysql-7I1rlwh7.js} +1 -1
- package/dist/client/assets/js/{objective-c-BQ3llrPW.js → objective-c-Dk03REAv.js} +1 -1
- package/dist/client/assets/js/packet-YPE3B663-DlTFK3Wo.js +1 -0
- package/dist/client/assets/js/{pascal-bFWHV7MZ.js → pascal-BCfNkzYY.js} +1 -1
- package/dist/client/assets/js/{pascaligo-C8Qza2pK.js → pascaligo-D-DslS98.js} +1 -1
- package/dist/client/assets/js/{pdf-Cb7x495t.js → pdf-B_OYWxSy.js} +1 -1
- package/dist/client/assets/js/{pdf.worker.min-DDUKJ6cJ.js → pdf.worker.min--q2RLEHa.js} +1 -1
- package/dist/client/assets/js/{perl-x25gw0_p.js → perl-MUnuTclx.js} +1 -1
- package/dist/client/assets/js/{pets-BfRsvl7D.js → pets-D74G2jqA.js} +1 -1
- package/dist/client/assets/js/{pgsql-DAUcGeRq.js → pgsql-BxCBktNe.js} +1 -1
- package/dist/client/assets/js/{php-nri1eqb2.js → php-zp9UgH03.js} +1 -1
- package/dist/client/assets/js/pie-LRSECV5Y-BtnBGhFZ.js +1 -0
- package/dist/client/assets/js/{pieDiagram-4H26LBE5-4LODdtT_.js → pieDiagram-4H26LBE5-CG8_pcHr.js} +1 -1
- package/dist/client/assets/js/{pla-CHi5LWNL.js → pla-DGCtmYZC.js} +1 -1
- package/dist/client/assets/js/{postiats-Bk7jD0AA.js → postiats-DHSW8gnY.js} +1 -1
- package/dist/client/assets/js/{powerquery-UTqJ0Vs7.js → powerquery-BGsPEmJe.js} +1 -1
- package/dist/client/assets/js/{powershell-CuPY3Rqk.js → powershell-BItlb0hE.js} +1 -1
- package/dist/client/assets/js/{profiles-D-vlI-Ec.js → profiles-BK5JKD7h.js} +1 -1
- package/dist/client/assets/js/{protobuf-Be4AIz9j.js → protobuf-BIhm6JYx.js} +1 -1
- package/dist/client/assets/js/{pt-D7_udWb3.js → pt-BSORCDMm.js} +1 -1
- package/dist/client/assets/js/{pug-CZFx15Ey.js → pug-BtnM7KZj.js} +1 -1
- package/dist/client/assets/js/{python-BgRg6Ez6.js → python-DxzTx1Q_.js} +1 -1
- package/dist/client/assets/js/{qsharp-BiBiLhRS.js → qsharp-B_8MSfaB.js} +1 -1
- package/dist/client/assets/js/{quadrantDiagram-W4KKPZXB-g_q9-dXx.js → quadrantDiagram-W4KKPZXB-CsbkMYuV.js} +1 -1
- package/dist/client/assets/js/{r-DM7NVSbZ.js → r-kvKC59jk.js} +1 -1
- package/dist/client/assets/js/radar-GUYGQ44K-BTKMKX4G.js +1 -0
- package/dist/client/assets/js/{razor-CiWy0jCW.js → razor-BwZ0MkaL.js} +1 -1
- package/dist/client/assets/js/{redis-BR2LPmFL.js → redis-5j1U_i85.js} +1 -1
- package/dist/client/assets/js/{redshift-B0sdAV16.js → redshift-CX1dFLA1.js} +1 -1
- package/dist/client/assets/js/{requirementDiagram-4Y6WPE33-EedCclad.js → requirementDiagram-4Y6WPE33-CKC7CQCX.js} +1 -1
- package/dist/client/assets/js/{restructuredtext-kQOBLN1M.js → restructuredtext-MV0-Naya.js} +1 -1
- package/dist/client/assets/js/{rough.esm-Dyx_2DON.js → rough.esm-CV1rL6PC.js} +1 -1
- package/dist/client/assets/js/{ru-CVQQmreT.js → ru-JsH6TKyg.js} +1 -1
- package/dist/client/assets/js/{ruby-CbdJXy6J.js → ruby-Bhyejf9X.js} +1 -1
- package/dist/client/assets/js/{rust-DZanYksk.js → rust-CR8d_FC1.js} +1 -1
- package/dist/client/assets/js/{sankeyDiagram-5OEKKPKP-DFC0nzsd.js → sankeyDiagram-5OEKKPKP-CKlqlvAe.js} +1 -1
- package/dist/client/assets/js/{sb-C5-WiqDZ.js → sb-hLW2EM2L.js} +1 -1
- package/dist/client/assets/js/{scala-Bk7i9nV-.js → scala-DVUhALEZ.js} +1 -1
- package/dist/client/assets/js/{scheme-CaZSWmJ2.js → scheme-BS6yNanr.js} +1 -1
- package/dist/client/assets/js/{scss-ByOYuc7K.js → scss-BfoRsElt.js} +1 -1
- package/dist/client/assets/js/{sequenceDiagram-3UESZ5HK-hWjPfqXt.js → sequenceDiagram-3UESZ5HK-CTimhD6H.js} +1 -1
- package/dist/client/assets/js/{session-browser-prefs-Br8OYA4_.js → session-browser-prefs-BT1woDux.js} +1 -1
- package/dist/client/assets/js/{sessions-iGK9S6zk.js → sessions-IkLKgnN6.js} +1 -1
- package/dist/client/assets/js/{settings-pbanANH0.js → settings-roYY6G3W.js} +1 -1
- package/dist/client/assets/js/{shell-Di0TEySc.js → shell-BO_Lyczz.js} +1 -1
- package/dist/client/assets/js/{skills-DC-UPcXj.js → skills-a5LPwmiT.js} +1 -1
- package/dist/client/assets/js/{solidity-BNTjAuuA.js → solidity-D3T2Ki4l.js} +1 -1
- package/dist/client/assets/js/{sophia-LY__8Yob.js → sophia-iJmIEvi8.js} +1 -1
- package/dist/client/assets/js/{sparql-CWnLfgGS.js → sparql-C2HCEExr.js} +1 -1
- package/dist/client/assets/js/{sql-B0ypQ9lR.js → sql-DM6_3GBc.js} +1 -1
- package/dist/client/assets/js/{src-BihFroE7.js → src-DD_TpJde.js} +1 -1
- package/dist/client/assets/js/{st-CqVFKTbZ.js → st-DSb39Fm5.js} +1 -1
- package/dist/client/assets/js/{stateDiagram-AJRCARHV-B7wEnYVe.js → stateDiagram-AJRCARHV-DwBGmBj6.js} +1 -1
- package/dist/client/assets/js/stateDiagram-v2-BHNVJYJU-5bNcwBne.js +1 -0
- package/dist/client/assets/js/{style-DDAg_jVj.js → style-B5xXhBlp.js} +1 -1
- package/dist/client/assets/js/{swift-B4ZZmDxc.js → swift-DrZYSZK3.js} +1 -1
- package/dist/client/assets/js/{systemverilog-zLt-O1mT.js → systemverilog-BAWNCaf6.js} +1 -1
- package/dist/client/assets/js/{tcl-DCSZmA-l.js → tcl-DY15ex6v.js} +1 -1
- package/dist/client/assets/js/{timeline-definition-PNZ67QCA-BN_LfleE.js → timeline-definition-PNZ67QCA-B8xuIu6g.js} +1 -1
- package/dist/client/assets/js/treeView-BLDUP644-DvZPUnGM.js +1 -0
- package/dist/client/assets/js/treemap-LRROVOQU-Bis1djYh.js +1 -0
- package/dist/client/assets/js/{tsMode-BjUcuHrq.js → tsMode-BE8JCSCE.js} +1 -1
- package/dist/client/assets/js/{ttsHelpers-BLunFYsq.js → ttsHelpers-BLNiQExI.js} +1 -1
- package/dist/client/assets/js/{twig-CuJlVpUG.js → twig-BpHF_18K.js} +1 -1
- package/dist/client/assets/js/{typescript-De40YVFt.js → typescript-FQ3z9hVG.js} +1 -1
- package/dist/client/assets/js/{typespec-8QcsIc3c.js → typespec-BKvcn6aE.js} +1 -1
- package/dist/client/assets/js/{useSttSettings-B1-KXN44.js → useSttSettings-DHX06G8A.js} +1 -1
- package/dist/client/assets/js/{vb-DEGTdhxf.js → vb-B74ucE43.js} +1 -1
- package/dist/client/assets/js/{vennDiagram-CIIHVFJN-hL8ax7wF.js → vennDiagram-CIIHVFJN-DtEu04QR.js} +1 -1
- package/dist/client/assets/js/wardley-L42UT6IY-CD4dIN63.js +1 -0
- package/dist/client/assets/js/{wardleyDiagram-YWT4CUSO-BIR-RA6Y.js → wardleyDiagram-YWT4CUSO-DdNKCPsp.js} +1 -1
- package/dist/client/assets/js/{wgsl-CmbiucmY.js → wgsl-DEf5Vdqv.js} +1 -1
- package/dist/client/assets/js/{workers-BgWBq4qY.js → workers-BbaiLVxx.js} +1 -1
- package/dist/client/assets/js/{workflow-socket-DZ9Ceffc.js → workflow-socket-DH402vxO.js} +1 -1
- package/dist/client/assets/js/{xml-SZLdwDmk.js → xml-zjE51I7v.js} +1 -1
- package/dist/client/assets/js/{xterm-D6CotCNH.js → xterm-Djy4rCx0.js} +1 -1
- package/dist/client/assets/js/{xychartDiagram-2RQKCTM6-DHa486uP.js → xychartDiagram-2RQKCTM6-CKqN7g7r.js} +1 -1
- package/dist/client/assets/js/{yaml-CgQpCgM5.js → yaml-DabeGoTc.js} +1 -1
- package/dist/client/assets/js/{zh-BDlMioZr.js → zh-CI4-L3JY.js} +1 -1
- package/dist/client/assets/js/{zh-TW-DTbLWR1A.js → zh-TW-wYlj-uOZ.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/index.js +3 -3
- package/dist/server/openapi.json +1 -1
- package/package.json +9 -1
- package/dist/client/assets/js/architecture-7EHR7CIX-Cl4Qi40R.js +0 -1
- package/dist/client/assets/js/classDiagram-4FO5ZUOK-DC0BcY8x.js +0 -1
- package/dist/client/assets/js/classDiagram-v2-Q7XG4LA2-BfDDH_fm.js +0 -1
- package/dist/client/assets/js/eventmodeling-FCH6USID-Bgzwnvkn.js +0 -1
- package/dist/client/assets/js/gitGraph-WXDBUCRP-CwFrpI3e.js +0 -1
- package/dist/client/assets/js/info-J43DQDTF-wMwkmIWM.js +0 -1
- package/dist/client/assets/js/packet-YPE3B663-DYmKXJOE.js +0 -1
- package/dist/client/assets/js/pie-LRSECV5Y-Dx0hbcjV.js +0 -1
- package/dist/client/assets/js/radar-GUYGQ44K-D-t-QJhi.js +0 -1
- package/dist/client/assets/js/stateDiagram-v2-BHNVJYJU-CoMhBVvo.js +0 -1
- package/dist/client/assets/js/treeView-BLDUP644-CMJGhbWk.js +0 -1
- package/dist/client/assets/js/treemap-LRROVOQU-_j4KoVDh.js +0 -1
- package/dist/client/assets/js/wardley-L42UT6IY-BeOvmJoM.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Qr as u,ei as s,wa as o}from"./index-
|
|
1
|
+
import{Qr as u,ei as s,wa as o}from"./index-DN4SafrP.js";async function h(){const a=await fetch("/api/auth/status");if(!a.ok)throw new Error("Failed to fetch auth status");return a.json()}async function d(a,t){const n=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:a,password:t})});if(!n.ok){const i=await n.json().catch(()=>({})),r=new Error(i.error||"Login failed");throw r.status=n.status,r}return await n.json()}async function f(){return(await s("/api/auth/me")).user}async function p(){const a=await s("/api/auth/avatar");if(!a.avatar)return null;try{const t=JSON.parse(a.avatar);return t&&(t.type==="image"||t.type==="default")?t:null}catch{return null}}async function y(a){const t=JSON.stringify(a);await s("/api/auth/avatar",{method:"PUT",body:JSON.stringify({avatar:t})})}async function l(){await s("/api/auth/avatar",{method:"PUT",body:JSON.stringify({avatar:{type:"default"}})})}async function w(a,t){return s("/api/auth/change-password",{method:"POST",body:JSON.stringify({currentPassword:a,newPassword:t})})}async function g(a,t){return s("/api/auth/change-username",{method:"POST",body:JSON.stringify({currentPassword:a,newUsername:t})})}async function e(){return s("/api/auth/users")}async function m(a){const t=await s("/api/auth/users",{method:"POST",body:JSON.stringify(a)});return{...await e(),users:t.users}}async function S(a,t){const n=await s(`/api/auth/users/${a}`,{method:"PUT",body:JSON.stringify(t)});return{...await e(),users:n.users}}async function O(a){const t=await s(`/api/auth/users/${a}`,{method:"DELETE"});return{...await e(),users:t.users}}async function v(){return(await s("/api/auth/locked-ips")).locks}async function E(a){return s(`/api/auth/locked-ips?ip=${encodeURIComponent(a)}`,{method:"DELETE"})}async function T(){return(await s("/api/auth/locked-ips",{method:"DELETE"})).count}var U=o((()=>{u()}));export{h as a,e as c,d,l as f,y as g,S as h,O as i,p as l,E as m,g as n,f as o,T as p,m as r,v as s,w as t,U as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{wa as e}from"./index-
|
|
1
|
+
import{wa as e}from"./index-DN4SafrP.js";var t,n,o=e((()=>{t={comments:{lineComment:"#"}},n={defaultToken:"keyword",ignoreCase:!0,tokenPostfix:".azcli",str:/[^#\s]/,tokenizer:{root:[{include:"@comment"},[/\s-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}],[/^-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":{token:"key.identifier",next:"@type"}}}]],type:[{include:"@comment"},[/-+@str*\s*/,{cases:{"@eos":{token:"key.identifier",next:"@popall"},"@default":"key.identifier"}}],[/@str+\s*/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}]],comment:[[/#.*$/,{cases:{"@eos":{token:"comment",next:"@popall"}}}]]}}}));o();export{t as conf,n as language};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{wa as e}from"./index-
|
|
1
|
+
import{wa as e}from"./index-DN4SafrP.js";var s,o,t=e((()=>{s={comments:{lineComment:"REM"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],folding:{markers:{start:new RegExp("^\\s*(::\\s*|REM\\s+)#region"),end:new RegExp("^\\s*(::\\s*|REM\\s+)#endregion")}}},o={defaultToken:"",ignoreCase:!0,tokenPostfix:".bat",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.parenthesis",open:"(",close:")"},{token:"delimiter.square",open:"[",close:"]"}],keywords:/call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,symbols:/[=><!~?&|+\-*\/\^;\.,]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/^(\s*)(rem(?:\s.*|))$/,["","comment"]],[/(\@?)(@keywords)(?!\w)/,[{token:"keyword"},{token:"keyword.$2"}]],[/[ \t\r\n]+/,""],[/setlocal(?!\w)/,"keyword.tag-setlocal"],[/endlocal(?!\w)/,"keyword.tag-setlocal"],[/[a-zA-Z_]\w*/,""],[/:\w*/,"metatag"],[/%[^%]+%/,"variable"],[/%%[\w]+(?!\w)/,"variable"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/"/,"string",'@string."'],[/'/,"string","@string.'"]],string:[[/[^\\"'%]+/,{cases:{"@eos":{token:"string",next:"@popall"},"@default":"string"}}],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/%[\w ]+%/,"variable"],[/%%[\w]+(?!\w)/,"variable"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}],[/$/,"string","@popall"]]}}}));t();export{s as conf,o as language};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{wa as a}from"./index-
|
|
1
|
+
import{wa as a}from"./index-DN4SafrP.js";var e,n,t,o,r,i,c,g,m=a((()=>{e=s=>`\\b${s}\\b`,n=e("[_a-zA-Z][_a-zA-Z0-9]*"),t=["targetScope","resource","module","param","var","output","for","in","if","existing"],o=["true","false","null"],r="[ \\t\\r\\n]",i="[0-9]+",c={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'"},{open:"'''",close:"'''"}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:"'''",close:"'''",notIn:["string","comment"]}],autoCloseBefore:`:.,=}])'
|
|
2
2
|
`,indentationRules:{increaseIndentPattern:new RegExp("^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$"),decreaseIndentPattern:new RegExp("^((?!.*?\\/\\*).*\\*/)?\\s*[\\}\\]].*$")}},g={defaultToken:"",tokenPostfix:".bicep",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],symbols:/[=><!~?:&|+\-*/^%]+/,keywords:t,namedLiterals:o,escapes:"\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)",tokenizer:{root:[{include:"@expression"},{include:"@whitespace"}],stringVerbatim:[{regex:"(|'|'')[^']",action:{token:"string"}},{regex:"'''",action:{token:"string.quote",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:r},{regex:"\\/\\*",action:{token:"comment",next:"@comment"}},{regex:"\\/\\/.*$",action:{token:"comment"}}],expression:[{regex:"'''",action:{token:"string.quote",next:"@stringVerbatim"}},{regex:"'",action:{token:"string.quote",next:"@stringLiteral"}},{regex:i,action:{token:"number"}},{regex:n,action:{cases:{"@keywords":{token:"keyword"},"@namedLiterals":{token:"keyword"},"@default":{token:"identifier"}}}}]}}}));m();export{c as conf,g as language};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{wa as lr}from"./index-DnjQJzX4.js";import{Bt as g,Ht as S,Vt as cr,j as or,jt as B,t as hr,z as dr}from"./src-BihFroE7.js";import{B as jt,O as gr,T as F,a as ur,b as st,c as pr,dt as fr,j as xr,mt as yr,nt as br,s as mr,x as R}from"./chunk-CSCIHK7Q-5LH118bT.js";import{S as wr,_ as $,a as Vt,d as Sr,l as Lr,y as kr}from"./chunk-5ZQYHXKU-yj9xqmex.js";import{i as _r,n as Et}from"./chunk-O5CBEL6O-DIDAOkT_.js";import{n as Er,t as vr}from"./chunk-FMBD7UC4-CQho6QZ5.js";import{n as Dr,r as Tr,t as tt}from"./chunk-BSJP7CBP-QZesZe57.js";import{n as Br,r as Ir,t as Nr}from"./chunk-L5ZTLDWV-FN_zFWkp.js";import{n as Cr,t as Or}from"./graphlib-vAI4Pw7R.js";function Zt(e){switch(S.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return S.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function Gt(e){return S.debug("typeStr2Type",e),e==="=="?"thick":"normal"}function Jt(e){switch(e.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}function qt(e){switch(e.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}function Qt(e){return e.includes("==")?"thick":"normal"}function $t(e){return e.includes(".-")?"dotted":"solid"}function Mt(e,t){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(t<0||!Number.isInteger(t))throw new Error("Position must be a non-negative integer."+t);return e<0?{px:t,py:0}:e===1?{px:0,py:t}:{px:t%e,py:Math.floor(t/e)}}function xt(e,t,r=0,n=0){S.debug("setBlockSizes abc95 (start)",e.id,e?.size?.x,"block width =",e?.size,"siblingWidth",r),e?.size?.width||(e.size={width:r,height:n,x:0,y:0});let i=0,a=0;if(e.children?.length>0){for(const x of e.children)xt(x,t);const s=$e(e);i=s.width,a=s.height,S.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",i,a);for(const x of e.children)x.size&&(S.debug(`abc95 Setting size of children of ${e.id} id=${x.id} ${i} ${a} ${JSON.stringify(x.size)}`),x.size.width=i*(x.widthInColumns??1)+N*((x.widthInColumns??1)-1),x.size.height=a,x.size.x=0,x.size.y=0,S.debug(`abc95 updating size of ${e.id} children child:${x.id} maxWidth:${i} maxHeight:${a}`));for(const x of e.children)xt(x,t,i,a);const l=e.columns??-1;let o=0;for(const x of e.children)o+=x.widthInColumns??1;let d=e.children.length;l>0&&l<o&&(d=l);const c=Math.ceil(o/d);let p=d*(i+N)+N,b=c*(a+N)+N;if(p<r){S.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${r} siblingHeight ${n} width ${p}`),p=r,b=n;const x=(r-d*N-N)/d,w=(n-c*N-N)/c;S.debug("Size indata abc88",e.id,"childWidth",x,"maxWidth",i),S.debug("Size indata abc88",e.id,"childHeight",w,"maxHeight",a),S.debug("Size indata abc88 xSize",d,"padding",N);for(const L of e.children)L.size&&(L.size.width=x,L.size.height=w,L.size.x=0,L.size.y=0)}if(S.debug(`abc95 (finale calc) ${e.id} xSize ${d} ySize ${c} columns ${l}${e.children.length} width=${Math.max(p,e.size?.width||0)}`),p<(e?.size?.width||0)){p=e?.size?.width||0;const x=l>0?Math.min(e.children.length,l):e.children.length;if(x>0){const w=(p-x*N-N)/x;S.debug("abc95 (growing to fit) width",e.id,p,e.size?.width,w);for(const L of e.children)L.size&&(L.size.width=w)}}e.size={width:p,height:b,x:0,y:0}}S.debug("setBlockSizes abc94 (done)",e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}function Wt(e,t){S.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);const r=e.columns??-1;if(S.debug("layoutBlocks columns abc95",e.id,"=>",r,e),e.children&&e.children.length>0){const n=e?.children[0]?.size?.width??0,i=e.children.length*n+(e.children.length-1)*N;S.debug("widthOfChildren 88",i,"posX");const a=new Map;{let c=0;for(const p of e.children){if(!p.size)continue;const{py:b}=Mt(r,c),x=a.get(b)??0;p.size.height>x&&a.set(b,p.size.height);let w=p?.widthInColumns??1;r>0&&(w=Math.min(w,r-c%r)),c+=w}}const s=new Map;{let c=0;const p=[...a.keys()].sort((b,x)=>b-x);for(const b of p)s.set(b,c),c+=(a.get(b)??0)+N}let l=0;S.debug("abc91 block?.size?.x",e.id,e?.size?.x);let o=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-N,d=0;for(const c of e.children){const p=e;if(!c.size)continue;const{width:b,height:x}=c.size,{px:w,py:L}=Mt(r,l);if(L!=d&&(d=L,o=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-N,S.debug("New row in layout for block",e.id," and child ",c.id,d)),S.debug(`abc89 layout blocks (child) id: ${c.id} Pos: ${l} (px, py) ${w},${L} (${p?.size?.x},${p?.size?.y}) parent: ${p.id} width: ${b}${N}`),p.size){const T=b/2;c.size.x=o+N+T,S.debug(`abc91 layout blocks (calc) px, pyid:${c.id} startingPos=X${o} new startingPosX${c.size.x} ${T} padding=${N} width=${b} halfWidth=${T} => x:${c.size.x} y:${c.size.y} ${c.widthInColumns} (width * (child?.w || 1)) / 2 ${b*(c?.widthInColumns??1)/2}`),o=c.size.x+T;const m=s.get(L)??0,u=a.get(L)??x;c.size.y=p.size.y-p.size.height/2+m+u/2+N,S.debug(`abc88 layout blocks (calc) px, pyid:${c.id}startingPosX${o}${N}${T}=>x:${c.size.x}y:${c.size.y}${c.widthInColumns}(width * (child?.w || 1)) / 2${b*(c?.widthInColumns??1)/2}`)}c.children&&Wt(c,t);let k=c?.widthInColumns??1;r>0&&(k=Math.min(k,r-l%r)),l+=k,S.debug("abc88 columnsPos",c,l)}}S.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}function Yt(e,{minX:t,minY:r,maxX:n,maxY:i}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){const{x:a,y:s,width:l,height:o}=e.size;a-l/2<t&&(t=a-l/2),s-o/2<r&&(r=s-o/2),a+l/2>n&&(n=a+l/2),s+o/2>i&&(i=s+o/2)}if(e.children)for(const a of e.children)({minX:t,minY:r,maxX:n,maxY:i}=Yt(a,{minX:t,minY:r,maxX:n,maxY:i}));return{minX:t,minY:r,maxX:n,maxY:i}}function te(e){const t=e.getBlock("root");if(!t)return;xt(t,e,0,0),Wt(t,e),S.debug("getBlocks",JSON.stringify(t,null,2));const{minX:r,minY:n,maxX:i,maxY:a}=Yt(t),s=a-n;return{x:r,y:n,width:i-r,height:s}}function et(e,t){F(R())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}function ee(e,t){return e.intersect(t)}function re(e,t,r,n){var i=e.x,a=e.y,s=i-n.x,l=a-n.y,o=Math.sqrt(t*t*l*l+r*r*s*s),d=Math.abs(t*r*s/o);n.x<i&&(d=-d);var c=Math.abs(t*r*l/o);return n.y<a&&(c=-c),{x:i+d,y:a+c}}function ae(e,t,r){return Pt(e,t,t,r)}function se(e,t,r,n){var i,a,s,l,o,d,c,p,b,x,w,L,k,T,m;if(i=t.y-e.y,s=e.x-t.x,o=t.x*e.y-e.x*t.y,b=i*r.x+s*r.y+o,x=i*n.x+s*n.y+o,!(b!==0&&x!==0&&Ft(b,x))&&(a=n.y-r.y,l=r.x-n.x,d=n.x*r.y-r.x*n.y,c=a*e.x+l*e.y+d,p=a*t.x+l*t.y+d,!(c!==0&&p!==0&&Ft(c,p))&&(w=i*l-a*s,w!==0)))return L=Math.abs(w/2),k=s*d-l*o,T=k<0?(k-L)/w:(k+L)/w,k=a*o-i*d,m=k<0?(k-L)/w:(k+L)/w,{x:T,y:m}}function Ft(e,t){return e*t>0}function ie(e,t,r){var n=e.x,i=e.y,a=[],s=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(w){s=Math.min(s,w.x),l=Math.min(l,w.y)}):(s=Math.min(s,t.x),l=Math.min(l,t.y));for(var o=n-e.width/2-s,d=i-e.height/2-l,c=0;c<t.length;c++){var p=t[c],b=t[c<t.length-1?c+1:0],x=ar(e,r,{x:o+p.x,y:d+p.y},{x:o+b.x,y:d+b.y});x&&a.push(x)}return a.length?(a.length>1&&a.sort(function(w,L){var k=w.x-r.x,T=w.y-r.y,m=Math.sqrt(k*k+T*T),u=L.x-r.x,y=L.y-r.y,E=Math.sqrt(u*u+y*y);return m<E?-1:m===E?0:1}),a[0]):e}function X(e,t,r,n){return e.insert("polygon",":first-child").attr("points",n.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}function ct(e,t,r,n){const i=[],a=g(l=>{i.push(l,0)},"addBorder"),s=g(l=>{i.push(0,l)},"skipBorder");t.includes("t")?(S.debug("add top border"),a(r)):s(r),t.includes("r")?(S.debug("add right border"),a(n)):s(n),t.includes("b")?(S.debug("add bottom border"),a(r)):s(r),t.includes("l")?(S.debug("add left border"),a(n)):s(n),e.attr("stroke-dasharray",i.join(" "))}function Ht(e,t,r=!1){const n=e;let i="default";(n?.classes?.length||0)>0&&(i=(n?.classes??[]).join(" ")),i=i+" flowchart-label";let a=0,s="",l;switch(n.type){case"round":a=5,s="rect";break;case"composite":a=0,s="composite",l=0;break;case"square":s="rect";break;case"diamond":s="question";break;case"hexagon":s="hexagon";break;case"block_arrow":s="block_arrow";break;case"odd":s="rect_left_inv_arrow";break;case"lean_right":s="lean_right";break;case"lean_left":s="lean_left";break;case"trapezoid":s="trapezoid";break;case"inv_trapezoid":s="inv_trapezoid";break;case"rect_left_inv_arrow":s="rect_left_inv_arrow";break;case"circle":s="circle";break;case"ellipse":s="ellipse";break;case"stadium":s="stadium";break;case"subroutine":s="subroutine";break;case"cylinder":s="cylinder";break;case"group":s="rect";break;case"doublecircle":s="doublecircle";break;default:s="rect"}const o=Lr(n?.styles??[]),d=n.label,c=n.size??{width:0,height:0,x:0,y:0},p=t.getDiagramId();return{labelStyle:o.labelStyle,shape:s,labelText:d,rx:a,ry:a,class:i,style:o.style,id:n.id,domId:p?`${p}-${n.id}`:n.id,directions:n.directions,width:c.width,height:c.height,x:c.x,y:c.y,positioned:r,intersect:void 0,type:n.type,padding:l??st()?.block?.padding??0,widthInColumns:n.widthInColumns??1}}async function qe(e,t,r){const n=Ht(t,r,!1);if(n.type==="group")return;const i=await Kt(e,n,{config:st()}),a=i.node().getBBox(),s=r.getBlock(n.id);s.size={width:a.width,height:a.height,x:0,y:0,node:i},r.setBlock(s),i.remove()}async function Qe(e,t,r){const n=Ht(t,r,!0);r.getBlock(n.id).type!=="space"&&(await Kt(e,n,{config:st()}),t.intersect=n?.intersect,sr(n))}async function yt(e,t,r,n){for(const i of t)await n(e,i,r),i.children&&await yt(e,i.children,r,n)}async function ne(e,t,r){await yt(e,t,r,qe)}async function le(e,t,r){await yt(e,t,r,Qe)}async function ce(e,t,r,n,i){const a=new Cr({multigraph:!0,compound:!0});a.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const s of r)s.size&&a.setNode(s.id,{width:s.size.width,height:s.size.height,intersect:s.intersect});for(const s of t)if(s.start&&s.end){const l=n.getBlock(s.start),o=n.getBlock(s.end);if(l?.size&&o?.size){const d=l.size,c=o.size,p=[{x:d.x,y:d.y},{x:d.x+(c.x-d.x)/2,y:d.y+(c.y-d.y)/2},{x:c.x,y:c.y}],b=i?`${i}-${s.id}`:s.id,x=`${s.thickness==="thick"?"edge-thickness-thick":"edge-thickness-normal"} ${s.pattern==="dotted"?"edge-pattern-dotted":"edge-pattern-solid"} flowchart-link LS-a1 LE-b1`;rr(e,{v:s.start,w:s.end,name:b},{...s,id:b,arrowTypeEnd:s.arrowTypeEnd,arrowTypeStart:s.arrowTypeStart,points:p,classes:x},void 0,"block",a,i),s.label&&(await tr(e,{...s,label:s.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:s.arrowTypeEnd,arrowTypeStart:s.arrowTypeStart,points:p,classes:x}),er({...s,x:p[1].x,y:p[1].y},{originalPath:p}))}}}var ot,oe,K,ht,dt,vt,Dt,he,Tt,de,rt,gt,ge,ue,pe,fe,Bt,ut,Q,xe,It,ye,pt,be,me,we,Se,N,$e,U,Le,ke,Nt,ft,A,tr,er,_e,Ee,Ct,rr,ve,De,Te,Pt,Be,ar,Ie,D,z,I,Ne,Ot,P,Rt,Ce,Oe,Re,ze,Ae,Me,Fe,Pe,We,Ye,He,Ke,Ue,Xe,je,Ve,Ze,Ge,Je,zt,At,at,Kt,sr,Rr,zr=lr((()=>{Er(),Tr(),Ir(),_r(),Sr(),xr(),cr(),kr(),br(),hr(),Or(),ot=(function(){var e=g(function(m,u,y,E){for(y=y||{},E=m.length;E--;y[m[E]]=u);return y},"o"),t=[1,15],r=[1,7],n=[1,13],i=[1,14],a=[1,19],s=[1,16],l=[1,17],o=[1,18],d=[8,30],c=[8,10,21,28,29,30,31,39,43,46],p=[1,23],b=[1,24],x=[8,10,15,16,21,28,29,30,31,39,43,46],w=[8,10,15,16,21,27,28,29,30,31,39,43,46],L=[1,49],k={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:g(function(u,y,E,_,v,h,W){var f=h.length-1;switch(v){case 4:_.getLogger().debug("Rule: separator (NL) ");break;case 5:_.getLogger().debug("Rule: separator (Space) ");break;case 6:_.getLogger().debug("Rule: separator (EOF) ");break;case 7:_.getLogger().debug("Rule: hierarchy: ",h[f-1]),_.setHierarchy(h[f-1]);break;case 8:_.getLogger().debug("Stop NL ");break;case 9:_.getLogger().debug("Stop EOF ");break;case 10:_.getLogger().debug("Stop NL2 ");break;case 11:_.getLogger().debug("Stop EOF2 ");break;case 12:_.getLogger().debug("Rule: statement: ",h[f]),typeof h[f].length=="number"?this.$=h[f]:this.$=[h[f]];break;case 13:_.getLogger().debug("Rule: statement #2: ",h[f-1]),this.$=[h[f-1]].concat(h[f]);break;case 14:_.getLogger().debug("Rule: link: ",h[f],u),this.$={edgeTypeStr:h[f],label:""};break;case 15:_.getLogger().debug("Rule: LABEL link: ",h[f-3],h[f-1],h[f]),this.$={edgeTypeStr:h[f],label:h[f-1]};break;case 18:const C=parseInt(h[f]),Z=_.generateId();this.$={id:Z,type:"space",label:"",width:C,children:[]};break;case 23:_.getLogger().debug("Rule: (nodeStatement link node) ",h[f-2],h[f-1],h[f]," typestr: ",h[f-1].edgeTypeStr);const j=_.edgeStrToEdgeData(h[f-1].edgeTypeStr),bt=_.edgeStrToEdgeStartData(h[f-1].edgeTypeStr),it=_.edgeStrToThickness(h[f-1].edgeTypeStr),mt=_.edgeStrToPattern(h[f-1].edgeTypeStr);this.$=[{id:h[f-2].id,label:h[f-2].label,type:h[f-2].type,directions:h[f-2].directions},{id:h[f-2].id+"-"+h[f].id,start:h[f-2].id,end:h[f].id,label:h[f-1].label,type:"edge",thickness:it,pattern:mt,directions:h[f].directions,arrowTypeEnd:j,arrowTypeStart:bt},{id:h[f].id,label:h[f].label,type:_.typeStr2Type(h[f].typeStr),directions:h[f].directions}];break;case 24:_.getLogger().debug("Rule: nodeStatement (abc88 node size) ",h[f-1],h[f]),this.$={id:h[f-1].id,label:h[f-1].label,type:_.typeStr2Type(h[f-1].typeStr),directions:h[f-1].directions,widthInColumns:parseInt(h[f],10)};break;case 25:_.getLogger().debug("Rule: nodeStatement (node) ",h[f]),this.$={id:h[f].id,label:h[f].label,type:_.typeStr2Type(h[f].typeStr),directions:h[f].directions,widthInColumns:1};break;case 26:_.getLogger().debug("APA123",this?this:"na"),_.getLogger().debug("COLUMNS: ",h[f]),this.$={type:"column-setting",columns:h[f]==="auto"?-1:parseInt(h[f])};break;case 27:_.getLogger().debug("Rule: id-block statement : ",h[f-2],h[f-1]),_.generateId(),this.$={...h[f-2],type:"composite",children:h[f-1]};break;case 28:_.getLogger().debug("Rule: blockStatement : ",h[f-2],h[f-1],h[f]);const O=_.generateId();this.$={id:O,type:"composite",label:"",children:h[f-1]};break;case 29:_.getLogger().debug("Rule: node (NODE_ID separator): ",h[f]),this.$={id:h[f]};break;case 30:_.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",h[f-1],h[f]),this.$={id:h[f-1],label:h[f].label,typeStr:h[f].typeStr,directions:h[f].directions};break;case 31:_.getLogger().debug("Rule: dirList: ",h[f]),this.$=[h[f]];break;case 32:_.getLogger().debug("Rule: dirList: ",h[f-1],h[f]),this.$=[h[f-1]].concat(h[f]);break;case 33:_.getLogger().debug("Rule: nodeShapeNLabel: ",h[f-2],h[f-1],h[f]),this.$={typeStr:h[f-2]+h[f],label:h[f-1]};break;case 34:_.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",h[f-3],h[f-2]," #3:",h[f-1],h[f]),this.$={typeStr:h[f-3]+h[f],label:h[f-2],directions:h[f-1]};break;case 35:case 36:this.$={type:"classDef",id:h[f-1].trim(),css:h[f].trim()};break;case 37:this.$={type:"applyClass",id:h[f-1].trim(),styleClass:h[f].trim()};break;case 38:this.$={type:"applyStyles",id:h[f-1].trim(),stylesStr:h[f].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:n,29:i,31:a,39:s,43:l,46:o},{8:[1,20]},e(d,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:r,28:n,29:i,31:a,39:s,43:l,46:o}),e(c,[2,16],{14:22,15:p,16:b}),e(c,[2,17]),e(c,[2,18]),e(c,[2,19]),e(c,[2,20]),e(c,[2,21]),e(c,[2,22]),e(x,[2,25],{27:[1,25]}),e(c,[2,26]),{19:26,26:12,31:a},{10:t,11:27,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:n,29:i,31:a,39:s,43:l,46:o},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(w,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(d,[2,13]),{26:35,31:a},{31:[2,14]},{17:[1,36]},e(x,[2,24]),{10:t,11:37,13:4,14:22,15:p,16:b,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:n,29:i,31:a,39:s,43:l,46:o},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(w,[2,30]),{18:[1,43]},{18:[1,44]},e(x,[2,23]),{18:[1,45]},{30:[1,46]},e(c,[2,28]),e(c,[2,35]),e(c,[2,36]),e(c,[2,37]),e(c,[2,38]),{36:[1,47]},{33:48,34:L},{15:[1,50]},e(c,[2,27]),e(w,[2,33]),{38:[1,51]},{33:52,34:L,38:[2,31]},{31:[2,15]},e(w,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:g(function(u,y){if(y.recoverable)this.trace(u);else{var E=new Error(u);throw E.hash=y,E}},"parseError"),parse:g(function(u){var y=this,E=[0],_=[],v=[null],h=[],W=this.table,f="",C=0,Z=0,j=0,bt=2,it=1,mt=h.slice.call(arguments,1),O=Object.create(this.lexer),G={yy:{}};for(var wt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,wt)&&(G.yy[wt]=this.yy[wt]);O.setInput(u,G.yy),G.yy.lexer=O,G.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var St=O.yylloc;h.push(St);var ir=O.options&&O.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function nr(H){E.length=E.length-2*H,v.length=v.length-H,h.length=h.length-H}g(nr,"popStack");function Ut(){var H=_.pop()||O.lex()||it;return typeof H!="number"&&(H instanceof Array&&(_=H,H=_.pop()),H=y.symbols_[H]||H),H}g(Ut,"lex");for(var M,Lt,J,Y,kt,q={},nt,V,Xt,lt;;){if(J=E[E.length-1],this.defaultActions[J]?Y=this.defaultActions[J]:((M===null||typeof M>"u")&&(M=Ut()),Y=W[J]&&W[J][M]),typeof Y>"u"||!Y.length||!Y[0]){var _t="";lt=[];for(nt in W[J])this.terminals_[nt]&&nt>bt&<.push("'"+this.terminals_[nt]+"'");O.showPosition?_t="Parse error on line "+(C+1)+`:
|
|
1
|
+
import{wa as lr}from"./index-DN4SafrP.js";import{Bt as g,Ht as S,Vt as cr,j as or,jt as B,t as hr,z as dr}from"./src-DD_TpJde.js";import{B as jt,O as gr,T as F,a as ur,b as st,c as pr,dt as fr,j as xr,mt as yr,nt as br,s as mr,x as R}from"./chunk-CSCIHK7Q-CLgoBoCF.js";import{S as wr,_ as $,a as Vt,d as Sr,l as Lr,y as kr}from"./chunk-5ZQYHXKU-BU3pQVVl.js";import{i as _r,n as Et}from"./chunk-O5CBEL6O-BRUisK47.js";import{n as Er,t as vr}from"./chunk-FMBD7UC4-Bx1bCKUR.js";import{n as Dr,r as Tr,t as tt}from"./chunk-BSJP7CBP-DkKsepNF.js";import{n as Br,r as Ir,t as Nr}from"./chunk-L5ZTLDWV-dz9D3kOb.js";import{n as Cr,t as Or}from"./graphlib-Bln6qd-Z.js";function Zt(e){switch(S.debug("typeStr2Type",e),e){case"[]":return"square";case"()":return S.debug("we have a round"),"round";case"(())":return"circle";case">]":return"rect_left_inv_arrow";case"{}":return"diamond";case"{{}}":return"hexagon";case"([])":return"stadium";case"[[]]":return"subroutine";case"[()]":return"cylinder";case"((()))":return"doublecircle";case"[//]":return"lean_right";case"[\\\\]":return"lean_left";case"[/\\]":return"trapezoid";case"[\\/]":return"inv_trapezoid";case"<[]>":return"block_arrow";default:return"na"}}function Gt(e){return S.debug("typeStr2Type",e),e==="=="?"thick":"normal"}function Jt(e){switch(e.trim().slice(-1)){case"x":return"arrow_cross";case"o":return"arrow_circle";case">":return"arrow_point";default:return""}}function qt(e){switch(e.trim().charAt(0)){case"x":return"arrow_cross";case"o":return"arrow_circle";case"<":return"arrow_point";default:return"arrow_open"}}function Qt(e){return e.includes("==")?"thick":"normal"}function $t(e){return e.includes(".-")?"dotted":"solid"}function Mt(e,t){if(e===0||!Number.isInteger(e))throw new Error("Columns must be an integer !== 0.");if(t<0||!Number.isInteger(t))throw new Error("Position must be a non-negative integer."+t);return e<0?{px:t,py:0}:e===1?{px:0,py:t}:{px:t%e,py:Math.floor(t/e)}}function xt(e,t,r=0,n=0){S.debug("setBlockSizes abc95 (start)",e.id,e?.size?.x,"block width =",e?.size,"siblingWidth",r),e?.size?.width||(e.size={width:r,height:n,x:0,y:0});let i=0,a=0;if(e.children?.length>0){for(const x of e.children)xt(x,t);const s=$e(e);i=s.width,a=s.height,S.debug("setBlockSizes abc95 maxWidth of",e.id,":s children is ",i,a);for(const x of e.children)x.size&&(S.debug(`abc95 Setting size of children of ${e.id} id=${x.id} ${i} ${a} ${JSON.stringify(x.size)}`),x.size.width=i*(x.widthInColumns??1)+N*((x.widthInColumns??1)-1),x.size.height=a,x.size.x=0,x.size.y=0,S.debug(`abc95 updating size of ${e.id} children child:${x.id} maxWidth:${i} maxHeight:${a}`));for(const x of e.children)xt(x,t,i,a);const l=e.columns??-1;let o=0;for(const x of e.children)o+=x.widthInColumns??1;let d=e.children.length;l>0&&l<o&&(d=l);const c=Math.ceil(o/d);let p=d*(i+N)+N,b=c*(a+N)+N;if(p<r){S.debug(`Detected to small sibling: abc95 ${e.id} siblingWidth ${r} siblingHeight ${n} width ${p}`),p=r,b=n;const x=(r-d*N-N)/d,w=(n-c*N-N)/c;S.debug("Size indata abc88",e.id,"childWidth",x,"maxWidth",i),S.debug("Size indata abc88",e.id,"childHeight",w,"maxHeight",a),S.debug("Size indata abc88 xSize",d,"padding",N);for(const L of e.children)L.size&&(L.size.width=x,L.size.height=w,L.size.x=0,L.size.y=0)}if(S.debug(`abc95 (finale calc) ${e.id} xSize ${d} ySize ${c} columns ${l}${e.children.length} width=${Math.max(p,e.size?.width||0)}`),p<(e?.size?.width||0)){p=e?.size?.width||0;const x=l>0?Math.min(e.children.length,l):e.children.length;if(x>0){const w=(p-x*N-N)/x;S.debug("abc95 (growing to fit) width",e.id,p,e.size?.width,w);for(const L of e.children)L.size&&(L.size.width=w)}}e.size={width:p,height:b,x:0,y:0}}S.debug("setBlockSizes abc94 (done)",e.id,e?.size?.x,e?.size?.width,e?.size?.y,e?.size?.height)}function Wt(e,t){S.debug(`abc85 layout blocks (=>layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`);const r=e.columns??-1;if(S.debug("layoutBlocks columns abc95",e.id,"=>",r,e),e.children&&e.children.length>0){const n=e?.children[0]?.size?.width??0,i=e.children.length*n+(e.children.length-1)*N;S.debug("widthOfChildren 88",i,"posX");const a=new Map;{let c=0;for(const p of e.children){if(!p.size)continue;const{py:b}=Mt(r,c),x=a.get(b)??0;p.size.height>x&&a.set(b,p.size.height);let w=p?.widthInColumns??1;r>0&&(w=Math.min(w,r-c%r)),c+=w}}const s=new Map;{let c=0;const p=[...a.keys()].sort((b,x)=>b-x);for(const b of p)s.set(b,c),c+=(a.get(b)??0)+N}let l=0;S.debug("abc91 block?.size?.x",e.id,e?.size?.x);let o=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-N,d=0;for(const c of e.children){const p=e;if(!c.size)continue;const{width:b,height:x}=c.size,{px:w,py:L}=Mt(r,l);if(L!=d&&(d=L,o=e?.size?.x?e?.size?.x+(-e?.size?.width/2||0):-N,S.debug("New row in layout for block",e.id," and child ",c.id,d)),S.debug(`abc89 layout blocks (child) id: ${c.id} Pos: ${l} (px, py) ${w},${L} (${p?.size?.x},${p?.size?.y}) parent: ${p.id} width: ${b}${N}`),p.size){const T=b/2;c.size.x=o+N+T,S.debug(`abc91 layout blocks (calc) px, pyid:${c.id} startingPos=X${o} new startingPosX${c.size.x} ${T} padding=${N} width=${b} halfWidth=${T} => x:${c.size.x} y:${c.size.y} ${c.widthInColumns} (width * (child?.w || 1)) / 2 ${b*(c?.widthInColumns??1)/2}`),o=c.size.x+T;const m=s.get(L)??0,u=a.get(L)??x;c.size.y=p.size.y-p.size.height/2+m+u/2+N,S.debug(`abc88 layout blocks (calc) px, pyid:${c.id}startingPosX${o}${N}${T}=>x:${c.size.x}y:${c.size.y}${c.widthInColumns}(width * (child?.w || 1)) / 2${b*(c?.widthInColumns??1)/2}`)}c.children&&Wt(c,t);let k=c?.widthInColumns??1;r>0&&(k=Math.min(k,r-l%r)),l+=k,S.debug("abc88 columnsPos",c,l)}}S.debug(`layout blocks (<==layoutBlocks) ${e.id} x: ${e?.size?.x} y: ${e?.size?.y} width: ${e?.size?.width}`)}function Yt(e,{minX:t,minY:r,maxX:n,maxY:i}={minX:0,minY:0,maxX:0,maxY:0}){if(e.size&&e.id!=="root"){const{x:a,y:s,width:l,height:o}=e.size;a-l/2<t&&(t=a-l/2),s-o/2<r&&(r=s-o/2),a+l/2>n&&(n=a+l/2),s+o/2>i&&(i=s+o/2)}if(e.children)for(const a of e.children)({minX:t,minY:r,maxX:n,maxY:i}=Yt(a,{minX:t,minY:r,maxX:n,maxY:i}));return{minX:t,minY:r,maxX:n,maxY:i}}function te(e){const t=e.getBlock("root");if(!t)return;xt(t,e,0,0),Wt(t,e),S.debug("getBlocks",JSON.stringify(t,null,2));const{minX:r,minY:n,maxX:i,maxY:a}=Yt(t),s=a-n;return{x:r,y:n,width:i-r,height:s}}function et(e,t){F(R())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}function ee(e,t){return e.intersect(t)}function re(e,t,r,n){var i=e.x,a=e.y,s=i-n.x,l=a-n.y,o=Math.sqrt(t*t*l*l+r*r*s*s),d=Math.abs(t*r*s/o);n.x<i&&(d=-d);var c=Math.abs(t*r*l/o);return n.y<a&&(c=-c),{x:i+d,y:a+c}}function ae(e,t,r){return Pt(e,t,t,r)}function se(e,t,r,n){var i,a,s,l,o,d,c,p,b,x,w,L,k,T,m;if(i=t.y-e.y,s=e.x-t.x,o=t.x*e.y-e.x*t.y,b=i*r.x+s*r.y+o,x=i*n.x+s*n.y+o,!(b!==0&&x!==0&&Ft(b,x))&&(a=n.y-r.y,l=r.x-n.x,d=n.x*r.y-r.x*n.y,c=a*e.x+l*e.y+d,p=a*t.x+l*t.y+d,!(c!==0&&p!==0&&Ft(c,p))&&(w=i*l-a*s,w!==0)))return L=Math.abs(w/2),k=s*d-l*o,T=k<0?(k-L)/w:(k+L)/w,k=a*o-i*d,m=k<0?(k-L)/w:(k+L)/w,{x:T,y:m}}function Ft(e,t){return e*t>0}function ie(e,t,r){var n=e.x,i=e.y,a=[],s=Number.POSITIVE_INFINITY,l=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(w){s=Math.min(s,w.x),l=Math.min(l,w.y)}):(s=Math.min(s,t.x),l=Math.min(l,t.y));for(var o=n-e.width/2-s,d=i-e.height/2-l,c=0;c<t.length;c++){var p=t[c],b=t[c<t.length-1?c+1:0],x=ar(e,r,{x:o+p.x,y:d+p.y},{x:o+b.x,y:d+b.y});x&&a.push(x)}return a.length?(a.length>1&&a.sort(function(w,L){var k=w.x-r.x,T=w.y-r.y,m=Math.sqrt(k*k+T*T),u=L.x-r.x,y=L.y-r.y,E=Math.sqrt(u*u+y*y);return m<E?-1:m===E?0:1}),a[0]):e}function X(e,t,r,n){return e.insert("polygon",":first-child").attr("points",n.map(function(i){return i.x+","+i.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+r/2+")")}function ct(e,t,r,n){const i=[],a=g(l=>{i.push(l,0)},"addBorder"),s=g(l=>{i.push(0,l)},"skipBorder");t.includes("t")?(S.debug("add top border"),a(r)):s(r),t.includes("r")?(S.debug("add right border"),a(n)):s(n),t.includes("b")?(S.debug("add bottom border"),a(r)):s(r),t.includes("l")?(S.debug("add left border"),a(n)):s(n),e.attr("stroke-dasharray",i.join(" "))}function Ht(e,t,r=!1){const n=e;let i="default";(n?.classes?.length||0)>0&&(i=(n?.classes??[]).join(" ")),i=i+" flowchart-label";let a=0,s="",l;switch(n.type){case"round":a=5,s="rect";break;case"composite":a=0,s="composite",l=0;break;case"square":s="rect";break;case"diamond":s="question";break;case"hexagon":s="hexagon";break;case"block_arrow":s="block_arrow";break;case"odd":s="rect_left_inv_arrow";break;case"lean_right":s="lean_right";break;case"lean_left":s="lean_left";break;case"trapezoid":s="trapezoid";break;case"inv_trapezoid":s="inv_trapezoid";break;case"rect_left_inv_arrow":s="rect_left_inv_arrow";break;case"circle":s="circle";break;case"ellipse":s="ellipse";break;case"stadium":s="stadium";break;case"subroutine":s="subroutine";break;case"cylinder":s="cylinder";break;case"group":s="rect";break;case"doublecircle":s="doublecircle";break;default:s="rect"}const o=Lr(n?.styles??[]),d=n.label,c=n.size??{width:0,height:0,x:0,y:0},p=t.getDiagramId();return{labelStyle:o.labelStyle,shape:s,labelText:d,rx:a,ry:a,class:i,style:o.style,id:n.id,domId:p?`${p}-${n.id}`:n.id,directions:n.directions,width:c.width,height:c.height,x:c.x,y:c.y,positioned:r,intersect:void 0,type:n.type,padding:l??st()?.block?.padding??0,widthInColumns:n.widthInColumns??1}}async function qe(e,t,r){const n=Ht(t,r,!1);if(n.type==="group")return;const i=await Kt(e,n,{config:st()}),a=i.node().getBBox(),s=r.getBlock(n.id);s.size={width:a.width,height:a.height,x:0,y:0,node:i},r.setBlock(s),i.remove()}async function Qe(e,t,r){const n=Ht(t,r,!0);r.getBlock(n.id).type!=="space"&&(await Kt(e,n,{config:st()}),t.intersect=n?.intersect,sr(n))}async function yt(e,t,r,n){for(const i of t)await n(e,i,r),i.children&&await yt(e,i.children,r,n)}async function ne(e,t,r){await yt(e,t,r,qe)}async function le(e,t,r){await yt(e,t,r,Qe)}async function ce(e,t,r,n,i){const a=new Cr({multigraph:!0,compound:!0});a.setGraph({rankdir:"TB",nodesep:10,ranksep:10,marginx:8,marginy:8});for(const s of r)s.size&&a.setNode(s.id,{width:s.size.width,height:s.size.height,intersect:s.intersect});for(const s of t)if(s.start&&s.end){const l=n.getBlock(s.start),o=n.getBlock(s.end);if(l?.size&&o?.size){const d=l.size,c=o.size,p=[{x:d.x,y:d.y},{x:d.x+(c.x-d.x)/2,y:d.y+(c.y-d.y)/2},{x:c.x,y:c.y}],b=i?`${i}-${s.id}`:s.id,x=`${s.thickness==="thick"?"edge-thickness-thick":"edge-thickness-normal"} ${s.pattern==="dotted"?"edge-pattern-dotted":"edge-pattern-solid"} flowchart-link LS-a1 LE-b1`;rr(e,{v:s.start,w:s.end,name:b},{...s,id:b,arrowTypeEnd:s.arrowTypeEnd,arrowTypeStart:s.arrowTypeStart,points:p,classes:x},void 0,"block",a,i),s.label&&(await tr(e,{...s,label:s.label,labelStyle:"stroke: #333; stroke-width: 1.5px;fill:none;",arrowTypeEnd:s.arrowTypeEnd,arrowTypeStart:s.arrowTypeStart,points:p,classes:x}),er({...s,x:p[1].x,y:p[1].y},{originalPath:p}))}}}var ot,oe,K,ht,dt,vt,Dt,he,Tt,de,rt,gt,ge,ue,pe,fe,Bt,ut,Q,xe,It,ye,pt,be,me,we,Se,N,$e,U,Le,ke,Nt,ft,A,tr,er,_e,Ee,Ct,rr,ve,De,Te,Pt,Be,ar,Ie,D,z,I,Ne,Ot,P,Rt,Ce,Oe,Re,ze,Ae,Me,Fe,Pe,We,Ye,He,Ke,Ue,Xe,je,Ve,Ze,Ge,Je,zt,At,at,Kt,sr,Rr,zr=lr((()=>{Er(),Tr(),Ir(),_r(),Sr(),xr(),cr(),kr(),br(),hr(),Or(),ot=(function(){var e=g(function(m,u,y,E){for(y=y||{},E=m.length;E--;y[m[E]]=u);return y},"o"),t=[1,15],r=[1,7],n=[1,13],i=[1,14],a=[1,19],s=[1,16],l=[1,17],o=[1,18],d=[8,30],c=[8,10,21,28,29,30,31,39,43,46],p=[1,23],b=[1,24],x=[8,10,15,16,21,28,29,30,31,39,43,46],w=[8,10,15,16,21,27,28,29,30,31,39,43,46],L=[1,49],k={trace:g(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:g(function(u,y,E,_,v,h,W){var f=h.length-1;switch(v){case 4:_.getLogger().debug("Rule: separator (NL) ");break;case 5:_.getLogger().debug("Rule: separator (Space) ");break;case 6:_.getLogger().debug("Rule: separator (EOF) ");break;case 7:_.getLogger().debug("Rule: hierarchy: ",h[f-1]),_.setHierarchy(h[f-1]);break;case 8:_.getLogger().debug("Stop NL ");break;case 9:_.getLogger().debug("Stop EOF ");break;case 10:_.getLogger().debug("Stop NL2 ");break;case 11:_.getLogger().debug("Stop EOF2 ");break;case 12:_.getLogger().debug("Rule: statement: ",h[f]),typeof h[f].length=="number"?this.$=h[f]:this.$=[h[f]];break;case 13:_.getLogger().debug("Rule: statement #2: ",h[f-1]),this.$=[h[f-1]].concat(h[f]);break;case 14:_.getLogger().debug("Rule: link: ",h[f],u),this.$={edgeTypeStr:h[f],label:""};break;case 15:_.getLogger().debug("Rule: LABEL link: ",h[f-3],h[f-1],h[f]),this.$={edgeTypeStr:h[f],label:h[f-1]};break;case 18:const C=parseInt(h[f]),Z=_.generateId();this.$={id:Z,type:"space",label:"",width:C,children:[]};break;case 23:_.getLogger().debug("Rule: (nodeStatement link node) ",h[f-2],h[f-1],h[f]," typestr: ",h[f-1].edgeTypeStr);const j=_.edgeStrToEdgeData(h[f-1].edgeTypeStr),bt=_.edgeStrToEdgeStartData(h[f-1].edgeTypeStr),it=_.edgeStrToThickness(h[f-1].edgeTypeStr),mt=_.edgeStrToPattern(h[f-1].edgeTypeStr);this.$=[{id:h[f-2].id,label:h[f-2].label,type:h[f-2].type,directions:h[f-2].directions},{id:h[f-2].id+"-"+h[f].id,start:h[f-2].id,end:h[f].id,label:h[f-1].label,type:"edge",thickness:it,pattern:mt,directions:h[f].directions,arrowTypeEnd:j,arrowTypeStart:bt},{id:h[f].id,label:h[f].label,type:_.typeStr2Type(h[f].typeStr),directions:h[f].directions}];break;case 24:_.getLogger().debug("Rule: nodeStatement (abc88 node size) ",h[f-1],h[f]),this.$={id:h[f-1].id,label:h[f-1].label,type:_.typeStr2Type(h[f-1].typeStr),directions:h[f-1].directions,widthInColumns:parseInt(h[f],10)};break;case 25:_.getLogger().debug("Rule: nodeStatement (node) ",h[f]),this.$={id:h[f].id,label:h[f].label,type:_.typeStr2Type(h[f].typeStr),directions:h[f].directions,widthInColumns:1};break;case 26:_.getLogger().debug("APA123",this?this:"na"),_.getLogger().debug("COLUMNS: ",h[f]),this.$={type:"column-setting",columns:h[f]==="auto"?-1:parseInt(h[f])};break;case 27:_.getLogger().debug("Rule: id-block statement : ",h[f-2],h[f-1]),_.generateId(),this.$={...h[f-2],type:"composite",children:h[f-1]};break;case 28:_.getLogger().debug("Rule: blockStatement : ",h[f-2],h[f-1],h[f]);const O=_.generateId();this.$={id:O,type:"composite",label:"",children:h[f-1]};break;case 29:_.getLogger().debug("Rule: node (NODE_ID separator): ",h[f]),this.$={id:h[f]};break;case 30:_.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",h[f-1],h[f]),this.$={id:h[f-1],label:h[f].label,typeStr:h[f].typeStr,directions:h[f].directions};break;case 31:_.getLogger().debug("Rule: dirList: ",h[f]),this.$=[h[f]];break;case 32:_.getLogger().debug("Rule: dirList: ",h[f-1],h[f]),this.$=[h[f-1]].concat(h[f]);break;case 33:_.getLogger().debug("Rule: nodeShapeNLabel: ",h[f-2],h[f-1],h[f]),this.$={typeStr:h[f-2]+h[f],label:h[f-1]};break;case 34:_.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",h[f-3],h[f-2]," #3:",h[f-1],h[f]),this.$={typeStr:h[f-3]+h[f],label:h[f-2],directions:h[f-1]};break;case 35:case 36:this.$={type:"classDef",id:h[f-1].trim(),css:h[f].trim()};break;case 37:this.$={type:"applyClass",id:h[f-1].trim(),styleClass:h[f].trim()};break;case 38:this.$={type:"applyStyles",id:h[f-1].trim(),stylesStr:h[f].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:t,11:3,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:n,29:i,31:a,39:s,43:l,46:o},{8:[1,20]},e(d,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:t,21:r,28:n,29:i,31:a,39:s,43:l,46:o}),e(c,[2,16],{14:22,15:p,16:b}),e(c,[2,17]),e(c,[2,18]),e(c,[2,19]),e(c,[2,20]),e(c,[2,21]),e(c,[2,22]),e(x,[2,25],{27:[1,25]}),e(c,[2,26]),{19:26,26:12,31:a},{10:t,11:27,13:4,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:n,29:i,31:a,39:s,43:l,46:o},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(w,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(d,[2,13]),{26:35,31:a},{31:[2,14]},{17:[1,36]},e(x,[2,24]),{10:t,11:37,13:4,14:22,15:p,16:b,19:5,20:6,21:r,22:8,23:9,24:10,25:11,26:12,28:n,29:i,31:a,39:s,43:l,46:o},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(w,[2,30]),{18:[1,43]},{18:[1,44]},e(x,[2,23]),{18:[1,45]},{30:[1,46]},e(c,[2,28]),e(c,[2,35]),e(c,[2,36]),e(c,[2,37]),e(c,[2,38]),{36:[1,47]},{33:48,34:L},{15:[1,50]},e(c,[2,27]),e(w,[2,33]),{38:[1,51]},{33:52,34:L,38:[2,31]},{31:[2,15]},e(w,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:g(function(u,y){if(y.recoverable)this.trace(u);else{var E=new Error(u);throw E.hash=y,E}},"parseError"),parse:g(function(u){var y=this,E=[0],_=[],v=[null],h=[],W=this.table,f="",C=0,Z=0,j=0,bt=2,it=1,mt=h.slice.call(arguments,1),O=Object.create(this.lexer),G={yy:{}};for(var wt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,wt)&&(G.yy[wt]=this.yy[wt]);O.setInput(u,G.yy),G.yy.lexer=O,G.yy.parser=this,typeof O.yylloc>"u"&&(O.yylloc={});var St=O.yylloc;h.push(St);var ir=O.options&&O.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function nr(H){E.length=E.length-2*H,v.length=v.length-H,h.length=h.length-H}g(nr,"popStack");function Ut(){var H=_.pop()||O.lex()||it;return typeof H!="number"&&(H instanceof Array&&(_=H,H=_.pop()),H=y.symbols_[H]||H),H}g(Ut,"lex");for(var M,Lt,J,Y,kt,q={},nt,V,Xt,lt;;){if(J=E[E.length-1],this.defaultActions[J]?Y=this.defaultActions[J]:((M===null||typeof M>"u")&&(M=Ut()),Y=W[J]&&W[J][M]),typeof Y>"u"||!Y.length||!Y[0]){var _t="";lt=[];for(nt in W[J])this.terminals_[nt]&&nt>bt&<.push("'"+this.terminals_[nt]+"'");O.showPosition?_t="Parse error on line "+(C+1)+`:
|
|
2
2
|
`+O.showPosition()+`
|
|
3
3
|
Expecting `+lt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":_t="Parse error on line "+(C+1)+": Unexpected "+(M==it?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(_t,{text:O.match,token:this.terminals_[M]||M,line:O.yylineno,loc:St,expected:lt})}if(Y[0]instanceof Array&&Y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+M);switch(Y[0]){case 1:E.push(M),v.push(O.yytext),h.push(O.yylloc),E.push(Y[1]),M=null,Lt?(M=Lt,Lt=null):(Z=O.yyleng,f=O.yytext,C=O.yylineno,St=O.yylloc,j>0&&j--);break;case 2:if(V=this.productions_[Y[1]][1],q.$=v[v.length-V],q._$={first_line:h[h.length-(V||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(V||1)].first_column,last_column:h[h.length-1].last_column},ir&&(q._$.range=[h[h.length-(V||1)].range[0],h[h.length-1].range[1]]),kt=this.performAction.apply(q,[f,Z,C,G.yy,Y[1],v,h].concat(mt)),typeof kt<"u")return kt;V&&(E=E.slice(0,-1*V*2),v=v.slice(0,-1*V),h=h.slice(0,-1*V)),E.push(this.productions_[Y[1]][0]),v.push(q.$),h.push(q._$),Xt=W[E[E.length-2]][E[E.length-1]],E.push(Xt);break;case 3:return!0}}return!0},"parse")};k.lexer=(function(){return{EOF:1,parseError:g(function(u,y){if(this.yy.parser)this.yy.parser.parseError(u,y);else throw new Error(u)},"parseError"),setInput:g(function(m,u){return this.yy=u||this.yy||{},this._input=m,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:g(function(){var m=this._input[0];return this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m,m.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),m},"input"),unput:g(function(m){var u=m.length,y=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var E=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),y.length-1&&(this.yylineno-=y.length-1);var _=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:y?(y.length===E.length?this.yylloc.first_column:0)+E[E.length-y.length].length-y[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:g(function(){return this._more=!0,this},"more"),reject:g(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:g(function(m){this.unput(this.match.slice(m))},"less"),pastInput:g(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:g(function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:g(function(){var m=this.pastInput(),u=new Array(m.length+1).join("-");return m+this.upcomingInput()+`
|
package/dist/client/assets/js/{c4Diagram-AAUBKEIU-jgyj0wOb.js → c4Diagram-AAUBKEIU-D68asSzm.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{wa as g0}from"./index-DnjQJzX4.js";import{Bt as y,Ht as Ae,Vt as _0,jt as Xt,t as b0}from"./src-BihFroE7.js";import{B as ke,U as x0,W as m0,c as E0,j as v0,r as A0,s as de,v as k0,x as Pt,y as C0}from"./chunk-CSCIHK7Q-5LH118bT.js";import{t as w0}from"./dist-Bk0VKtV3.js";import{d as O0,n as Ce,r as Rt,v as T0}from"./chunk-5ZQYHXKU-yj9xqmex.js";import{a as R0,l as S0,s as D0}from"./chunk-ND2GUHAM-DWckpxQD.js";function F(e,t,s,o,l){if(!t[e].width)if(s)t[e].text=T0(t[e].text,l,o),t[e].textLines=t[e].text.split(de.lineBreakRegex).length,t[e].width=l,t[e].height=Ce(t[e].text,o);else{let r=t[e].text.split(de.lineBreakRegex);t[e].textLines=r.length;let i=0;t[e].height=0,t[e].width=0;for(const a of r)t[e].width=Math.max(Rt(a,o),t[e].width),i=Ce(a,o),t[e].height=t[e].height+i}}function fe(e,t,s,o,l){let r=new pe(l);r.data.widthLimit=s.data.widthLimit/Math.min(Gt,o.length);for(let[i,a]of o.entries()){let n=0;a.image={width:0,height:0,Y:0},a.sprite&&(a.image.width=48,a.image.height=48,a.image.Y=n,n=a.image.Y+a.image.height);let d=a.wrap&&b.wrap,u=Yt(b);if(u.fontSize=u.fontSize+2,u.fontWeight="bold",F("label",a,d,u,r.data.widthLimit),a.label.Y=n+8,n=a.label.Y+a.label.height,a.type&&a.type.text!==""&&(a.type.text="["+a.type.text+"]",F("type",a,d,Yt(b),r.data.widthLimit),a.type.Y=n+5,n=a.type.Y+a.type.height),a.descr&&a.descr.text!==""){let R=Yt(b);R.fontSize=R.fontSize-2,F("descr",a,d,R,r.data.widthLimit),a.descr.Y=n+20,n=a.descr.Y+a.descr.height}if(i==0||i%Gt===0){let R=s.data.startx+b.diagramMarginX,D=s.data.stopy+b.diagramMarginY+n;r.setData(R,R,D,D)}else{let R=r.data.stopx!==r.data.startx?r.data.stopx+b.diagramMarginX:r.data.startx,D=r.data.starty;r.setData(R,R,D,D)}r.name=a.alias;let f=l.db.getC4ShapeArray(a.alias),g=l.db.getC4ShapeKeys(a.alias);g.length>0&&ge(r,e,f,g),t=a.alias;let w=l.db.getBoundaries(t);w.length>0&&fe(e,t,r,w,l),a.alias!=="global"&&ye(e,a,r),s.data.stopy=Math.max(r.data.stopy+b.c4ShapeMargin,s.data.stopy),s.data.stopx=Math.max(r.data.stopx+b.c4ShapeMargin,s.data.stopx),Lt=Math.max(Lt,s.data.stopx),Nt=Math.max(Nt,s.data.stopy)}}var we,ae,se,Bt,Oe,j,q,B,U,X,Ot,zt,Wt,It,Mt,Te,Re,Se,De,Pe,Be,Ie,Me,Le,Ne,Ye,je,Ue,Fe,Ve,Xe,ze,We,re,Qe,He,le,qe,Ge,Ke,Je,G,Qt,Ht,oe,Ze,$e,t0,e0,i0,n0,a0,s0,r0,l0,o0,Q,z,Lt,Nt,ce,Gt,b,pe,qt,Tt,Yt,c0,ye,ge,L,he,h0,u0,ue,P0,B0=g0((()=>{S0(),O0(),v0(),_0(),b0(),we=w0(),Bt=(function(){var e=y(function(x,m,T,E){for(T=T||{},E=x.length;E--;T[x[E]]=m);return T},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],r=[1,28],i=[1,63],a=[1,64],n=[1,65],d=[1,66],u=[1,67],f=[1,68],g=[1,69],w=[1,29],R=[1,30],D=[1,31],M=[1,32],W=[1,33],V=[1,34],K=[1,35],J=[1,36],Z=[1,37],$=[1,38],tt=[1,39],et=[1,40],it=[1,41],nt=[1,42],at=[1,43],st=[1,44],rt=[1,45],lt=[1,46],ot=[1,47],ct=[1,48],ht=[1,50],ut=[1,51],dt=[1,52],ft=[1,53],pt=[1,54],yt=[1,55],gt=[1,56],_t=[1,57],bt=[1,58],xt=[1,59],mt=[1,60],Ct=[14,42],Kt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],St=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],v=[1,82],A=[1,83],k=[1,84],C=[1,85],O=[12,14,42],_e=[12,14,33,42],jt=[12,14,33,42,76,77,79,80],Et=[12,33],Jt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Zt={trace:y(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:y(function(m,T,E,_,S,h,Dt){var p=h.length-1;switch(S){case 3:_.setDirection("TB");break;case 4:_.setDirection("BT");break;case 5:_.setDirection("RL");break;case 6:_.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:_.setC4Type(h[p-3]);break;case 19:_.setTitle(h[p].substring(6)),this.$=h[p].substring(6);break;case 20:_.setAccDescription(h[p].substring(15)),this.$=h[p].substring(15);break;case 21:this.$=h[p].trim(),_.setTitle(this.$);break;case 22:case 23:this.$=h[p].trim(),_.setAccDescription(this.$);break;case 28:h[p].splice(2,0,"ENTERPRISE"),_.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 29:h[p].splice(2,0,"SYSTEM"),_.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 30:_.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 31:h[p].splice(2,0,"CONTAINER"),_.addContainerBoundary(...h[p]),this.$=h[p];break;case 32:_.addDeploymentNode("node",...h[p]),this.$=h[p];break;case 33:_.addDeploymentNode("nodeL",...h[p]),this.$=h[p];break;case 34:_.addDeploymentNode("nodeR",...h[p]),this.$=h[p];break;case 35:_.popBoundaryParseStack();break;case 39:_.addPersonOrSystem("person",...h[p]),this.$=h[p];break;case 40:_.addPersonOrSystem("external_person",...h[p]),this.$=h[p];break;case 41:_.addPersonOrSystem("system",...h[p]),this.$=h[p];break;case 42:_.addPersonOrSystem("system_db",...h[p]),this.$=h[p];break;case 43:_.addPersonOrSystem("system_queue",...h[p]),this.$=h[p];break;case 44:_.addPersonOrSystem("external_system",...h[p]),this.$=h[p];break;case 45:_.addPersonOrSystem("external_system_db",...h[p]),this.$=h[p];break;case 46:_.addPersonOrSystem("external_system_queue",...h[p]),this.$=h[p];break;case 47:_.addContainer("container",...h[p]),this.$=h[p];break;case 48:_.addContainer("container_db",...h[p]),this.$=h[p];break;case 49:_.addContainer("container_queue",...h[p]),this.$=h[p];break;case 50:_.addContainer("external_container",...h[p]),this.$=h[p];break;case 51:_.addContainer("external_container_db",...h[p]),this.$=h[p];break;case 52:_.addContainer("external_container_queue",...h[p]),this.$=h[p];break;case 53:_.addComponent("component",...h[p]),this.$=h[p];break;case 54:_.addComponent("component_db",...h[p]),this.$=h[p];break;case 55:_.addComponent("component_queue",...h[p]),this.$=h[p];break;case 56:_.addComponent("external_component",...h[p]),this.$=h[p];break;case 57:_.addComponent("external_component_db",...h[p]),this.$=h[p];break;case 58:_.addComponent("external_component_queue",...h[p]),this.$=h[p];break;case 60:_.addRel("rel",...h[p]),this.$=h[p];break;case 61:_.addRel("birel",...h[p]),this.$=h[p];break;case 62:_.addRel("rel_u",...h[p]),this.$=h[p];break;case 63:_.addRel("rel_d",...h[p]),this.$=h[p];break;case 64:_.addRel("rel_l",...h[p]),this.$=h[p];break;case 65:_.addRel("rel_r",...h[p]),this.$=h[p];break;case 66:_.addRel("rel_b",...h[p]),this.$=h[p];break;case 67:h[p].splice(0,1),_.addRel("rel",...h[p]),this.$=h[p];break;case 68:_.updateElStyle("update_el_style",...h[p]),this.$=h[p];break;case 69:_.updateRelStyle("update_rel_style",...h[p]),this.$=h[p];break;case 70:_.updateLayoutConfig("update_layout_config",...h[p]),this.$=h[p];break;case 71:this.$=[h[p]];break;case 72:h[p].unshift(h[p-1]),this.$=h[p];break;case 73:case 75:this.$=h[p].trim();break;case 74:let vt={};vt[h[p-1].trim()]=h[p].trim(),this.$=vt;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:i,36:a,37:n,38:d,39:u,40:f,41:g,43:23,44:w,45:R,46:D,47:M,48:W,49:V,50:K,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:at,59:st,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:i,36:a,37:n,38:d,39:u,40:f,41:g,43:23,44:w,45:R,46:D,47:M,48:W,49:V,50:K,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:at,59:st,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:i,36:a,37:n,38:d,39:u,40:f,41:g,43:23,44:w,45:R,46:D,47:M,48:W,49:V,50:K,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:at,59:st,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:i,36:a,37:n,38:d,39:u,40:f,41:g,43:23,44:w,45:R,46:D,47:M,48:W,49:V,50:K,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:at,59:st,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:i,36:a,37:n,38:d,39:u,40:f,41:g,43:23,44:w,45:R,46:D,47:M,48:W,49:V,50:K,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:at,59:st,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:i,36:a,37:n,38:d,39:u,40:f,41:g,44:w,45:R,46:D,47:M,48:W,49:V,50:K,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:at,59:st,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt}),e(Ct,[2,14]),e(Kt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(St,[2,19]),e(St,[2,20]),{25:[1,78]},{27:[1,79]},e(St,[2,23]),{35:80,75:81,76:v,77:A,79:k,80:C},{35:86,75:81,76:v,77:A,79:k,80:C},{35:87,75:81,76:v,77:A,79:k,80:C},{35:88,75:81,76:v,77:A,79:k,80:C},{35:89,75:81,76:v,77:A,79:k,80:C},{35:90,75:81,76:v,77:A,79:k,80:C},{35:91,75:81,76:v,77:A,79:k,80:C},{35:92,75:81,76:v,77:A,79:k,80:C},{35:93,75:81,76:v,77:A,79:k,80:C},{35:94,75:81,76:v,77:A,79:k,80:C},{35:95,75:81,76:v,77:A,79:k,80:C},{35:96,75:81,76:v,77:A,79:k,80:C},{35:97,75:81,76:v,77:A,79:k,80:C},{35:98,75:81,76:v,77:A,79:k,80:C},{35:99,75:81,76:v,77:A,79:k,80:C},{35:100,75:81,76:v,77:A,79:k,80:C},{35:101,75:81,76:v,77:A,79:k,80:C},{35:102,75:81,76:v,77:A,79:k,80:C},{35:103,75:81,76:v,77:A,79:k,80:C},{35:104,75:81,76:v,77:A,79:k,80:C},e(O,[2,59]),{35:105,75:81,76:v,77:A,79:k,80:C},{35:106,75:81,76:v,77:A,79:k,80:C},{35:107,75:81,76:v,77:A,79:k,80:C},{35:108,75:81,76:v,77:A,79:k,80:C},{35:109,75:81,76:v,77:A,79:k,80:C},{35:110,75:81,76:v,77:A,79:k,80:C},{35:111,75:81,76:v,77:A,79:k,80:C},{35:112,75:81,76:v,77:A,79:k,80:C},{35:113,75:81,76:v,77:A,79:k,80:C},{35:114,75:81,76:v,77:A,79:k,80:C},{35:115,75:81,76:v,77:A,79:k,80:C},{20:116,29:49,30:61,32:62,34:i,36:a,37:n,38:d,39:u,40:f,41:g,43:23,44:w,45:R,46:D,47:M,48:W,49:V,50:K,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:at,59:st,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt},{12:[1,118],33:[1,117]},{35:119,75:81,76:v,77:A,79:k,80:C},{35:120,75:81,76:v,77:A,79:k,80:C},{35:121,75:81,76:v,77:A,79:k,80:C},{35:122,75:81,76:v,77:A,79:k,80:C},{35:123,75:81,76:v,77:A,79:k,80:C},{35:124,75:81,76:v,77:A,79:k,80:C},{35:125,75:81,76:v,77:A,79:k,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Kt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:r}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:r,34:i,36:a,37:n,38:d,39:u,40:f,41:g,44:w,45:R,46:D,47:M,48:W,49:V,50:K,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:at,59:st,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt}),e(St,[2,21]),e(St,[2,22]),e(O,[2,39]),e(_e,[2,71],{75:81,35:132,76:v,77:A,79:k,80:C}),e(jt,[2,73]),{78:[1,133]},e(jt,[2,75]),e(jt,[2,76]),e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),e(O,[2,47]),e(O,[2,48]),e(O,[2,49]),e(O,[2,50]),e(O,[2,51]),e(O,[2,52]),e(O,[2,53]),e(O,[2,54]),e(O,[2,55]),e(O,[2,56]),e(O,[2,57]),e(O,[2,58]),e(O,[2,60]),e(O,[2,61]),e(O,[2,62]),e(O,[2,63]),e(O,[2,64]),e(O,[2,65]),e(O,[2,66]),e(O,[2,67]),e(O,[2,68]),e(O,[2,69]),e(O,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(Et,[2,28]),e(Et,[2,29]),e(Et,[2,30]),e(Et,[2,31]),e(Et,[2,32]),e(Et,[2,33]),e(Et,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Kt,[2,18]),e(Ct,[2,38]),e(_e,[2,72]),e(jt,[2,74]),e(O,[2,24]),e(O,[2,35]),e(Jt,[2,25]),e(Jt,[2,26],{12:[1,138]}),e(Jt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:y(function(m,T){if(T.recoverable)this.trace(m);else{var E=new Error(m);throw E.hash=T,E}},"parseError"),parse:y(function(m){var T=this,E=[0],_=[],S=[null],h=[],Dt=this.table,p="",vt=0,be=0,xe=0,d0=2,me=1,f0=h.slice.call(arguments,1),P=Object.create(this.lexer),At={yy:{}};for(var $t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$t)&&(At.yy[$t]=this.yy[$t]);P.setInput(m,At.yy),At.yy.lexer=P,At.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var te=P.yylloc;h.push(te);var p0=P.options&&P.options.ranges;typeof At.yy.parseError=="function"?this.parseError=At.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function y0(Y){E.length=E.length-2*Y,S.length=S.length-Y,h.length=h.length-Y}y(y0,"popStack");function Ee(){var Y=_.pop()||P.lex()||me;return typeof Y!="number"&&(Y instanceof Array&&(_=Y,Y=_.pop()),Y=T.symbols_[Y]||Y),Y}y(Ee,"lex");for(var I,ee,kt,N,ie,wt={},Ft,H,ve,Vt;;){if(kt=E[E.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((I===null||typeof I>"u")&&(I=Ee()),N=Dt[kt]&&Dt[kt][I]),typeof N>"u"||!N.length||!N[0]){var ne="";Vt=[];for(Ft in Dt[kt])this.terminals_[Ft]&&Ft>d0&&Vt.push("'"+this.terminals_[Ft]+"'");P.showPosition?ne="Parse error on line "+(vt+1)+`:
|
|
1
|
+
import{wa as g0}from"./index-DN4SafrP.js";import{Bt as y,Ht as Ae,Vt as _0,jt as Xt,t as b0}from"./src-DD_TpJde.js";import{B as ke,U as x0,W as m0,c as E0,j as v0,r as A0,s as de,v as k0,x as Pt,y as C0}from"./chunk-CSCIHK7Q-CLgoBoCF.js";import{t as w0}from"./dist-BHzBn3v7.js";import{d as O0,n as Ce,r as Rt,v as T0}from"./chunk-5ZQYHXKU-BU3pQVVl.js";import{a as R0,l as S0,s as D0}from"./chunk-ND2GUHAM-mWODKb8v.js";function F(e,t,s,o,l){if(!t[e].width)if(s)t[e].text=T0(t[e].text,l,o),t[e].textLines=t[e].text.split(de.lineBreakRegex).length,t[e].width=l,t[e].height=Ce(t[e].text,o);else{let r=t[e].text.split(de.lineBreakRegex);t[e].textLines=r.length;let i=0;t[e].height=0,t[e].width=0;for(const a of r)t[e].width=Math.max(Rt(a,o),t[e].width),i=Ce(a,o),t[e].height=t[e].height+i}}function fe(e,t,s,o,l){let r=new pe(l);r.data.widthLimit=s.data.widthLimit/Math.min(Gt,o.length);for(let[i,a]of o.entries()){let n=0;a.image={width:0,height:0,Y:0},a.sprite&&(a.image.width=48,a.image.height=48,a.image.Y=n,n=a.image.Y+a.image.height);let d=a.wrap&&b.wrap,u=Yt(b);if(u.fontSize=u.fontSize+2,u.fontWeight="bold",F("label",a,d,u,r.data.widthLimit),a.label.Y=n+8,n=a.label.Y+a.label.height,a.type&&a.type.text!==""&&(a.type.text="["+a.type.text+"]",F("type",a,d,Yt(b),r.data.widthLimit),a.type.Y=n+5,n=a.type.Y+a.type.height),a.descr&&a.descr.text!==""){let R=Yt(b);R.fontSize=R.fontSize-2,F("descr",a,d,R,r.data.widthLimit),a.descr.Y=n+20,n=a.descr.Y+a.descr.height}if(i==0||i%Gt===0){let R=s.data.startx+b.diagramMarginX,D=s.data.stopy+b.diagramMarginY+n;r.setData(R,R,D,D)}else{let R=r.data.stopx!==r.data.startx?r.data.stopx+b.diagramMarginX:r.data.startx,D=r.data.starty;r.setData(R,R,D,D)}r.name=a.alias;let f=l.db.getC4ShapeArray(a.alias),g=l.db.getC4ShapeKeys(a.alias);g.length>0&&ge(r,e,f,g),t=a.alias;let w=l.db.getBoundaries(t);w.length>0&&fe(e,t,r,w,l),a.alias!=="global"&&ye(e,a,r),s.data.stopy=Math.max(r.data.stopy+b.c4ShapeMargin,s.data.stopy),s.data.stopx=Math.max(r.data.stopx+b.c4ShapeMargin,s.data.stopx),Lt=Math.max(Lt,s.data.stopx),Nt=Math.max(Nt,s.data.stopy)}}var we,ae,se,Bt,Oe,j,q,B,U,X,Ot,zt,Wt,It,Mt,Te,Re,Se,De,Pe,Be,Ie,Me,Le,Ne,Ye,je,Ue,Fe,Ve,Xe,ze,We,re,Qe,He,le,qe,Ge,Ke,Je,G,Qt,Ht,oe,Ze,$e,t0,e0,i0,n0,a0,s0,r0,l0,o0,Q,z,Lt,Nt,ce,Gt,b,pe,qt,Tt,Yt,c0,ye,ge,L,he,h0,u0,ue,P0,B0=g0((()=>{S0(),O0(),v0(),_0(),b0(),we=w0(),Bt=(function(){var e=y(function(x,m,T,E){for(T=T||{},E=x.length;E--;T[x[E]]=m);return T},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],r=[1,28],i=[1,63],a=[1,64],n=[1,65],d=[1,66],u=[1,67],f=[1,68],g=[1,69],w=[1,29],R=[1,30],D=[1,31],M=[1,32],W=[1,33],V=[1,34],K=[1,35],J=[1,36],Z=[1,37],$=[1,38],tt=[1,39],et=[1,40],it=[1,41],nt=[1,42],at=[1,43],st=[1,44],rt=[1,45],lt=[1,46],ot=[1,47],ct=[1,48],ht=[1,50],ut=[1,51],dt=[1,52],ft=[1,53],pt=[1,54],yt=[1,55],gt=[1,56],_t=[1,57],bt=[1,58],xt=[1,59],mt=[1,60],Ct=[14,42],Kt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],St=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],v=[1,82],A=[1,83],k=[1,84],C=[1,85],O=[12,14,42],_e=[12,14,33,42],jt=[12,14,33,42,76,77,79,80],Et=[12,33],Jt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Zt={trace:y(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:y(function(m,T,E,_,S,h,Dt){var p=h.length-1;switch(S){case 3:_.setDirection("TB");break;case 4:_.setDirection("BT");break;case 5:_.setDirection("RL");break;case 6:_.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:_.setC4Type(h[p-3]);break;case 19:_.setTitle(h[p].substring(6)),this.$=h[p].substring(6);break;case 20:_.setAccDescription(h[p].substring(15)),this.$=h[p].substring(15);break;case 21:this.$=h[p].trim(),_.setTitle(this.$);break;case 22:case 23:this.$=h[p].trim(),_.setAccDescription(this.$);break;case 28:h[p].splice(2,0,"ENTERPRISE"),_.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 29:h[p].splice(2,0,"SYSTEM"),_.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 30:_.addPersonOrSystemBoundary(...h[p]),this.$=h[p];break;case 31:h[p].splice(2,0,"CONTAINER"),_.addContainerBoundary(...h[p]),this.$=h[p];break;case 32:_.addDeploymentNode("node",...h[p]),this.$=h[p];break;case 33:_.addDeploymentNode("nodeL",...h[p]),this.$=h[p];break;case 34:_.addDeploymentNode("nodeR",...h[p]),this.$=h[p];break;case 35:_.popBoundaryParseStack();break;case 39:_.addPersonOrSystem("person",...h[p]),this.$=h[p];break;case 40:_.addPersonOrSystem("external_person",...h[p]),this.$=h[p];break;case 41:_.addPersonOrSystem("system",...h[p]),this.$=h[p];break;case 42:_.addPersonOrSystem("system_db",...h[p]),this.$=h[p];break;case 43:_.addPersonOrSystem("system_queue",...h[p]),this.$=h[p];break;case 44:_.addPersonOrSystem("external_system",...h[p]),this.$=h[p];break;case 45:_.addPersonOrSystem("external_system_db",...h[p]),this.$=h[p];break;case 46:_.addPersonOrSystem("external_system_queue",...h[p]),this.$=h[p];break;case 47:_.addContainer("container",...h[p]),this.$=h[p];break;case 48:_.addContainer("container_db",...h[p]),this.$=h[p];break;case 49:_.addContainer("container_queue",...h[p]),this.$=h[p];break;case 50:_.addContainer("external_container",...h[p]),this.$=h[p];break;case 51:_.addContainer("external_container_db",...h[p]),this.$=h[p];break;case 52:_.addContainer("external_container_queue",...h[p]),this.$=h[p];break;case 53:_.addComponent("component",...h[p]),this.$=h[p];break;case 54:_.addComponent("component_db",...h[p]),this.$=h[p];break;case 55:_.addComponent("component_queue",...h[p]),this.$=h[p];break;case 56:_.addComponent("external_component",...h[p]),this.$=h[p];break;case 57:_.addComponent("external_component_db",...h[p]),this.$=h[p];break;case 58:_.addComponent("external_component_queue",...h[p]),this.$=h[p];break;case 60:_.addRel("rel",...h[p]),this.$=h[p];break;case 61:_.addRel("birel",...h[p]),this.$=h[p];break;case 62:_.addRel("rel_u",...h[p]),this.$=h[p];break;case 63:_.addRel("rel_d",...h[p]),this.$=h[p];break;case 64:_.addRel("rel_l",...h[p]),this.$=h[p];break;case 65:_.addRel("rel_r",...h[p]),this.$=h[p];break;case 66:_.addRel("rel_b",...h[p]),this.$=h[p];break;case 67:h[p].splice(0,1),_.addRel("rel",...h[p]),this.$=h[p];break;case 68:_.updateElStyle("update_el_style",...h[p]),this.$=h[p];break;case 69:_.updateRelStyle("update_rel_style",...h[p]),this.$=h[p];break;case 70:_.updateLayoutConfig("update_layout_config",...h[p]),this.$=h[p];break;case 71:this.$=[h[p]];break;case 72:h[p].unshift(h[p-1]),this.$=h[p];break;case 73:case 75:this.$=h[p].trim();break;case 74:let vt={};vt[h[p-1].trim()]=h[p].trim(),this.$=vt;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:i,36:a,37:n,38:d,39:u,40:f,41:g,43:23,44:w,45:R,46:D,47:M,48:W,49:V,50:K,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:at,59:st,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:i,36:a,37:n,38:d,39:u,40:f,41:g,43:23,44:w,45:R,46:D,47:M,48:W,49:V,50:K,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:at,59:st,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:i,36:a,37:n,38:d,39:u,40:f,41:g,43:23,44:w,45:R,46:D,47:M,48:W,49:V,50:K,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:at,59:st,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:i,36:a,37:n,38:d,39:u,40:f,41:g,43:23,44:w,45:R,46:D,47:M,48:W,49:V,50:K,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:at,59:st,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:r,29:49,30:61,32:62,34:i,36:a,37:n,38:d,39:u,40:f,41:g,43:23,44:w,45:R,46:D,47:M,48:W,49:V,50:K,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:at,59:st,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:i,36:a,37:n,38:d,39:u,40:f,41:g,44:w,45:R,46:D,47:M,48:W,49:V,50:K,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:at,59:st,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt}),e(Ct,[2,14]),e(Kt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(St,[2,19]),e(St,[2,20]),{25:[1,78]},{27:[1,79]},e(St,[2,23]),{35:80,75:81,76:v,77:A,79:k,80:C},{35:86,75:81,76:v,77:A,79:k,80:C},{35:87,75:81,76:v,77:A,79:k,80:C},{35:88,75:81,76:v,77:A,79:k,80:C},{35:89,75:81,76:v,77:A,79:k,80:C},{35:90,75:81,76:v,77:A,79:k,80:C},{35:91,75:81,76:v,77:A,79:k,80:C},{35:92,75:81,76:v,77:A,79:k,80:C},{35:93,75:81,76:v,77:A,79:k,80:C},{35:94,75:81,76:v,77:A,79:k,80:C},{35:95,75:81,76:v,77:A,79:k,80:C},{35:96,75:81,76:v,77:A,79:k,80:C},{35:97,75:81,76:v,77:A,79:k,80:C},{35:98,75:81,76:v,77:A,79:k,80:C},{35:99,75:81,76:v,77:A,79:k,80:C},{35:100,75:81,76:v,77:A,79:k,80:C},{35:101,75:81,76:v,77:A,79:k,80:C},{35:102,75:81,76:v,77:A,79:k,80:C},{35:103,75:81,76:v,77:A,79:k,80:C},{35:104,75:81,76:v,77:A,79:k,80:C},e(O,[2,59]),{35:105,75:81,76:v,77:A,79:k,80:C},{35:106,75:81,76:v,77:A,79:k,80:C},{35:107,75:81,76:v,77:A,79:k,80:C},{35:108,75:81,76:v,77:A,79:k,80:C},{35:109,75:81,76:v,77:A,79:k,80:C},{35:110,75:81,76:v,77:A,79:k,80:C},{35:111,75:81,76:v,77:A,79:k,80:C},{35:112,75:81,76:v,77:A,79:k,80:C},{35:113,75:81,76:v,77:A,79:k,80:C},{35:114,75:81,76:v,77:A,79:k,80:C},{35:115,75:81,76:v,77:A,79:k,80:C},{20:116,29:49,30:61,32:62,34:i,36:a,37:n,38:d,39:u,40:f,41:g,43:23,44:w,45:R,46:D,47:M,48:W,49:V,50:K,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:at,59:st,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt},{12:[1,118],33:[1,117]},{35:119,75:81,76:v,77:A,79:k,80:C},{35:120,75:81,76:v,77:A,79:k,80:C},{35:121,75:81,76:v,77:A,79:k,80:C},{35:122,75:81,76:v,77:A,79:k,80:C},{35:123,75:81,76:v,77:A,79:k,80:C},{35:124,75:81,76:v,77:A,79:k,80:C},{35:125,75:81,76:v,77:A,79:k,80:C},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Kt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:r}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:r,34:i,36:a,37:n,38:d,39:u,40:f,41:g,44:w,45:R,46:D,47:M,48:W,49:V,50:K,51:J,52:Z,53:$,54:tt,55:et,56:it,57:nt,58:at,59:st,60:rt,61:lt,62:ot,63:ct,64:ht,65:ut,66:dt,67:ft,68:pt,69:yt,70:gt,71:_t,72:bt,73:xt,74:mt}),e(St,[2,21]),e(St,[2,22]),e(O,[2,39]),e(_e,[2,71],{75:81,35:132,76:v,77:A,79:k,80:C}),e(jt,[2,73]),{78:[1,133]},e(jt,[2,75]),e(jt,[2,76]),e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),e(O,[2,47]),e(O,[2,48]),e(O,[2,49]),e(O,[2,50]),e(O,[2,51]),e(O,[2,52]),e(O,[2,53]),e(O,[2,54]),e(O,[2,55]),e(O,[2,56]),e(O,[2,57]),e(O,[2,58]),e(O,[2,60]),e(O,[2,61]),e(O,[2,62]),e(O,[2,63]),e(O,[2,64]),e(O,[2,65]),e(O,[2,66]),e(O,[2,67]),e(O,[2,68]),e(O,[2,69]),e(O,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(Et,[2,28]),e(Et,[2,29]),e(Et,[2,30]),e(Et,[2,31]),e(Et,[2,32]),e(Et,[2,33]),e(Et,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Kt,[2,18]),e(Ct,[2,38]),e(_e,[2,72]),e(jt,[2,74]),e(O,[2,24]),e(O,[2,35]),e(Jt,[2,25]),e(Jt,[2,26],{12:[1,138]}),e(Jt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:y(function(m,T){if(T.recoverable)this.trace(m);else{var E=new Error(m);throw E.hash=T,E}},"parseError"),parse:y(function(m){var T=this,E=[0],_=[],S=[null],h=[],Dt=this.table,p="",vt=0,be=0,xe=0,d0=2,me=1,f0=h.slice.call(arguments,1),P=Object.create(this.lexer),At={yy:{}};for(var $t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,$t)&&(At.yy[$t]=this.yy[$t]);P.setInput(m,At.yy),At.yy.lexer=P,At.yy.parser=this,typeof P.yylloc>"u"&&(P.yylloc={});var te=P.yylloc;h.push(te);var p0=P.options&&P.options.ranges;typeof At.yy.parseError=="function"?this.parseError=At.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function y0(Y){E.length=E.length-2*Y,S.length=S.length-Y,h.length=h.length-Y}y(y0,"popStack");function Ee(){var Y=_.pop()||P.lex()||me;return typeof Y!="number"&&(Y instanceof Array&&(_=Y,Y=_.pop()),Y=T.symbols_[Y]||Y),Y}y(Ee,"lex");for(var I,ee,kt,N,ie,wt={},Ft,H,ve,Vt;;){if(kt=E[E.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((I===null||typeof I>"u")&&(I=Ee()),N=Dt[kt]&&Dt[kt][I]),typeof N>"u"||!N.length||!N[0]){var ne="";Vt=[];for(Ft in Dt[kt])this.terminals_[Ft]&&Ft>d0&&Vt.push("'"+this.terminals_[Ft]+"'");P.showPosition?ne="Parse error on line "+(vt+1)+`:
|
|
2
2
|
`+P.showPosition()+`
|
|
3
3
|
Expecting `+Vt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":ne="Parse error on line "+(vt+1)+": Unexpected "+(I==me?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(ne,{text:P.match,token:this.terminals_[I]||I,line:P.yylineno,loc:te,expected:Vt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+I);switch(N[0]){case 1:E.push(I),S.push(P.yytext),h.push(P.yylloc),E.push(N[1]),I=null,ee?(I=ee,ee=null):(be=P.yyleng,p=P.yytext,vt=P.yylineno,te=P.yylloc,xe>0&&xe--);break;case 2:if(H=this.productions_[N[1]][1],wt.$=S[S.length-H],wt._$={first_line:h[h.length-(H||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(H||1)].first_column,last_column:h[h.length-1].last_column},p0&&(wt._$.range=[h[h.length-(H||1)].range[0],h[h.length-1].range[1]]),ie=this.performAction.apply(wt,[p,be,vt,At.yy,N[1],S,h].concat(f0)),typeof ie<"u")return ie;H&&(E=E.slice(0,-1*H*2),S=S.slice(0,-1*H),h=h.slice(0,-1*H)),E.push(this.productions_[N[1]][0]),S.push(wt.$),h.push(wt._$),ve=Dt[E[E.length-2]][E[E.length-1]],E.push(ve);break;case 3:return!0}}return!0},"parse")};Zt.lexer=(function(){return{EOF:1,parseError:y(function(m,T){if(this.yy.parser)this.yy.parser.parseError(m,T);else throw new Error(m)},"parseError"),setInput:y(function(x,m){return this.yy=m||this.yy||{},this._input=x,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:y(function(){var x=this._input[0];return this.yytext+=x,this.yyleng++,this.offset++,this.match+=x,this.matched+=x,x.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),x},"input"),unput:y(function(x){var m=x.length,T=x.split(/(?:\r\n?|\n)/g);this._input=x+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-m),this.offset-=m;var E=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),T.length-1&&(this.yylineno-=T.length-1);var _=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:T?(T.length===E.length?this.yylloc.first_column:0)+E[E.length-T.length].length-T[0].length:this.yylloc.first_column-m},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-m]),this.yyleng=this.yytext.length,this},"unput"),more:y(function(){return this._more=!0,this},"more"),reject:y(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:y(function(x){this.unput(this.match.slice(x))},"less"),pastInput:y(function(){var x=this.matched.substr(0,this.matched.length-this.match.length);return(x.length>20?"...":"")+x.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:y(function(){var x=this.match;return x.length<20&&(x+=this._input.substr(0,20-x.length)),(x.substr(0,20)+(x.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:y(function(){var x=this.pastInput(),m=new Array(x.length+1).join("-");return x+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{wa as e}from"./index-
|
|
1
|
+
import{wa as e}from"./index-DN4SafrP.js";var o,t,n=e((()=>{o={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"],["<",">"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'},{open:"(*",close:"*)"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'},{open:"(*",close:"*)"}]},t={defaultToken:"",tokenPostfix:".cameligo",ignoreCase:!0,brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["abs","assert","block","Bytes","case","Crypto","Current","else","failwith","false","for","fun","if","in","let","let%entry","let%init","List","list","Map","map","match","match%nat","mod","not","operation","Operation","of","record","Set","set","sender","skip","source","String","then","to","true","type","with"],typeKeywords:["int","unit","string","tz","nat","bool"],operators:["=",">","<","<=",">=","<>",":",":=","and","mod","or","+","-","*","/","@","&","^","%","->","<-","&&","||"],symbols:/[=><:@\^&|+\-*\/\^%]+/,tokenizer:{root:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float"],[/\$[0-9a-fA-F]{1,16}/,"number.hex"],[/\d+/,"number"],[/[;,.]/,"delimiter"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'/,"string","@string"],[/'[^\\']'/,"string"],[/'/,"string.invalid"],[/\#\d+/,"string"]],comment:[[/[^\(\*]+/,"comment"],[/\*\)/,"comment","@pop"],[/\(\*/,"comment"]],string:[[/[^\\']+/,"string"],[/\\./,"string.escape.invalid"],[/'/,{token:"string.quote",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,"white"],[/\(\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}}));n();export{o as conf,t as language};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Da as _o,Gr as bo,Kr as So,Qr as ds,Ta as yo,Zi as vo,ai as Mo,gi as Ce,i as Xn,oi as Ao,qr as Co,r as To,si as wo,ua as le,wa as Ct}from"./index-DnjQJzX4.js";import{C as xo,P as Ro,S as Eo,T as No,a as qo,b as gn,g as Yn,t as $o}from"./sessions-iGK9S6zk.js";import{n as Po,t as Do}from"./esm-C8D4M0Yn.js";import{i as Lo,n as Io}from"./download-CX8EG48r.js";import{n as Oo,r as Mn,t as gs}from"./profiles-D-vlI-Ec.js";import{i as Bo,r as Fo,s as Uo}from"./coding-agents-DfHyBvky.js";import{n as fn,t as Ho}from"./settings-pbanANH0.js";import{a as Ko,o as Wo,r as Go,s as jo,t as Qo}from"./completion-notification-XxjbntI8.js";function zo(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onMessageDelta&&s.onMessageDelta(t)}function Vo(t){const r=t.session_id;r&&O.get(r)?.onMessageInterim(t)}function Zn(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onReasoningDelta&&s.onReasoningDelta(t)}function Jo(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onThinkingDelta&&s.onThinkingDelta(t)}function Xo(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onReasoningAvailable&&s.onReasoningAvailable(t)}function Yo(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onToolStarted&&s.onToolStarted(t)}function es(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onToolCompleted&&s.onToolCompleted(t)}function Zo(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onWorkspaceDiffCompleted&&s.onWorkspaceDiffCompleted(t)}function Ve(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onSubagentEvent&&s.onSubagentEvent(t)}function ea(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onRunStarted&&s.onRunStarted(t)}function ta(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onRunCompleted&&s.onRunCompleted(t),!(t.queue_remaining>0||(t.background_pending||0)>0)&&O.delete(r)}function na(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onRunFailed&&s.onRunFailed(t),!(t.queue_remaining>0||(t.background_pending||0)>0)&&O.delete(r)}function sa(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onRunQueued&&s.onRunQueued(t)}function oa(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onCompressionStarted&&s.onCompressionStarted(t)}function aa(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onCompressionCompleted&&s.onCompressionCompleted(t)}function ra(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onAbortStarted&&s.onAbortStarted(t)}function ia(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onAbortTimeout&&s.onAbortTimeout(t)}function la(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onAbortCompleted&&s.onAbortCompleted(t),!(t.queue_length>0)&&O.delete(r)}function ua(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onUsageUpdated&&s.onUsageUpdated(t)}function ca(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onSessionCommand&&s.onSessionCommand(t);for(const u of Kt)u(t)}function da(t){const r=t.session_id;if(!r)return;const s=O.get(r);s&&s.onSessionTitleUpdated?.(t);for(const u of Wt)u(t)}function ga(t){const r=t.session_id;if(!r)return;const s=O.get(r);s&&s.onSessionWorkspaceUpdated?.(t);for(const u of Gt)u(t)}function ts(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onAgentEvent&&s.onAgentEvent(t)}function fa(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onAgentEvent&&s.onAgentEvent(t)}function ma(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onApprovalRequested&&s.onApprovalRequested(t);for(const u of Be)u(t)}function pa(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onApprovalResolved&&s.onApprovalResolved(t);for(const u of Be)u(t)}function ka(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onPeerUserMessage&&s.onPeerUserMessage(t);for(const u of Be)u(t)}function ha(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onClarifyRequested&&s.onClarifyRequested(t);for(const u of Be)u(t)}function _a(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onClarifyResolved&&s.onClarifyResolved(t);for(const u of Be)u(t)}function ba(t,r){return O.set(t,r),()=>{O.delete(t)}}function Sa(t){O.delete(t)}function ya(t){return Be.add(t),()=>{Be.delete(t)}}function va(t){return Kt.add(t),()=>{Kt.delete(t)}}function Ma(t){return Wt.add(t),()=>{Wt.delete(t)}}function Aa(t){return Gt.add(t),()=>{Gt.delete(t)}}function Ca(t,r,s,u="chat-run"){Vt(null,u).emit("clarify.respond",{session_id:t,clarify_id:r,response:s})}function Ta(t,r,s,u="chat-run"){Vt(null,u).emit("approval.respond",{session_id:t,approval_id:r,choice:s})}function mn(t){return t&&Ht!==t?null:$}function Vt(t,r="chat-run"){const s=t?.trim()||null;if($?.connected&&Ht===r&&(!s||Bt===s))return $;$&&($.removeAllListeners(),$.disconnect(),Ot=!1,Bt=null);const u=Co(),A=So();let S=s||"default";try{if(!s){const{useProfilesStore:g}=(gs(),_o(Oo));S=g().activeProfileName||"default"}}catch{S=s||localStorage.getItem("hermes_active_profile_name")||"default"}return Bt=S,Ht=r,$=Po(`${u}${r==="global-agent"?"/global-agent":"/chat-run"}`,{auth:{token:A},query:{profile:S},transports:["websocket","polling"],reconnection:!0,reconnectionAttempts:1/0,reconnectionDelay:1e3,reconnectionDelayMax:3e4,randomizationFactor:.5,timeout:3e4}),Ot||($.on("message.delta",zo),$.on("message.interim",Vo),$.on("reasoning.delta",Zn),$.on("thinking.delta",Jo),$.on("reasoning.available",Xo),$.on("moa.reference",Zn),$.on("moa.aggregating",ts),$.on("tool.started",Yo),$.on("tool.completed",es),$.on("tool.failed",es),$.on("workspace.diff.completed",Zo),$.on("subagent.start",Ve),$.on("subagent.tool",Ve),$.on("subagent.progress",Ve),$.on("subagent.text",Ve),$.on("subagent.thinking",Ve),$.on("subagent.complete",Ve),$.on("delegation.updated",Ve),$.on("run.started",ea),$.on("run.failed",na),$.on("run.completed",ta),$.on("run.queued",sa),$.on("approval.requested",ma),$.on("approval.resolved",pa),$.on("run.peer_user_message",ka),$.on("clarify.requested",ha),$.on("clarify.resolved",_a),$.on("compression.started",oa),$.on("compression.completed",aa),$.on("abort.started",ra),$.on("abort.timeout",ia),$.on("abort.completed",la),$.on("usage.updated",ua),$.on("agent.event",ts),$.on("run.reattach_failed",fa),$.on("session.command",ca),$.on("session.title.updated",da),$.on("session.workspace.updated",ga),Ot=!0),$}function yt(t,r,s){const u=t;if(typeof u.off=="function"){u.off(r,s);return}u.removeListener?.(r,s)}function ns(t,r,s,u="chat-run"){const A=Vt(s,u),S=g=>{g?.session_id===t&&(yt(A,"resumed",S),r(g))};return A.on("resumed",S),A.emit("resume",{session_id:t,...s?{profile:s}:{}}),A}function wa(t,r,s,u,A,S){const g=t.session_id;if(!g)throw new Error("session_id is required for startRunViaSocket");let k=!1;const D=Vt(t.profile,S?.transport);if(O.has(g))return D.emit("run",t),{abort:()=>{k||D.emit("abort",{session_id:g})}};let H=!1,ne=()=>{},re=null;const L=()=>{re&&(yt(D,"resumed",re),re=null)},z=()=>{L(),S?.onReconnectResume&&(re=b=>{L(),!(k||b.session_id!==g)&&S.onReconnectResume?.(b)},D.on("resumed",re)),D.emit("resume",{session_id:g,...t.profile?{profile:t.profile}:{}})},ve=b=>{k||(k=!0,ne(),O.delete(g),u(b))},W=b=>{k||H||ve(b)};D.on("connect_error",W);const _e=b=>{if(!(k||b==="io client disconnect")){if(fs.has(b)){H=!0;return}ve(new Error(`Socket disconnected: ${b}`))}};D.on("disconnect",_e);const Z=()=>{k||!H||(H=!1,z())};return D.on("connect",Z),ne=()=>{L(),yt(D,"connect_error",W),yt(D,"disconnect",_e),yt(D,"connect",Z)},O.set(g,{onMessageDelta:b=>{k||r(b)},onMessageInterim:b=>{k||r(b)},onReasoningDelta:b=>{k||r(b)},onThinkingDelta:b=>{k||r(b)},onReasoningAvailable:b=>{k||r(b)},onToolStarted:b=>{k||r(b)},onToolCompleted:b=>{k||r(b)},onWorkspaceDiffCompleted:b=>{k||r(b)},onSubagentEvent:b=>{k||r(b)},onRunStarted:b=>{k||(r(b),A?.(b.run_id||""))},onRunCompleted:b=>{if(!k&&(r(b),!(b.queue_remaining>0))){if((b.background_pending||0)>0){s();return}k=!0,ne(),s()}},onRunFailed:b=>{if(!k&&(r(b),!(b.queue_remaining>0))){if((b.background_pending||0)>0){s();return}k=!0,ne(),s()}},onCompressionStarted:b=>{k||r(b)},onCompressionCompleted:b=>{k||r(b)},onAbortStarted:b=>{k||r(b)},onAbortTimeout:b=>{k||r(b)},onAbortCompleted:b=>{k||(r(b),!(b.queue_length>0)&&(k=!0,ne(),s()))},onUsageUpdated:b=>{k||r(b)},onAgentEvent:b=>{k||r(b)},onSessionCommand:b=>{k||(r(b),b.terminal!==!1&&(k=!0,ne(),O.delete(g),s()))},onSessionTitleUpdated:b=>{r(b)},onRunQueued:b=>{k||r(b)},onApprovalRequested:b=>{k||r(b)},onApprovalResolved:b=>{k||r(b)},onClarifyRequested:b=>{k||r(b)},onClarifyResolved:b=>{k||r(b)}}),D.emit("run",t),{abort:()=>{k||D.emit("abort",{session_id:g})}}}var $,Ot,Bt,Ht,fs,O,Be,Kt,Wt,Gt,xa=Ct((()=>{Do(),ds(),$=null,Ot=!1,Bt=null,Ht="chat-run",fs=new Set(["transport close","transport error","ping timeout"]),O=new Map,Be=new Set,Kt=new Set,Wt=new Set,Gt=new Set}));function An(t){const r=[];let s=t.replace(ms,u=>(r.push(u),`${jt}${r.length-1}${Qt}`));return s=s.replace(ps,u=>(r.push(u),`${jt}${r.length-1}${Qt}`)),{masked:s,blocks:r}}function pn(t,r){if(r.length===0)return t;const s=new RegExp(`${jt}(\\d+)${Qt}`,"g");let u=t;for(let A=0;A<r.length;A+=1){const S=u.replace(s,(g,k)=>r[Number(k)]??"");if(S===u)break;u=S}return u}function fr(t,r){const{masked:s,blocks:u}=An(t),A=[];let S=null,g="",k=0;Cn.lastIndex=0;let D;for(;(D=Cn.exec(s))!==null;)g+=s.slice(k,D.index),A.push(D[2]),k=D.index+D[0].length;const H=s.slice(k),ne=H.match(/<(think|thinking|reasoning)>([\s\S]*)$/i);return ne?(g+=H.slice(0,ne.index),r.streaming?S=ne[2]:g+=H.slice(ne.index)):g+=H,{segments:A.map(re=>pn(re,u)),pending:S===null?null:pn(S,u),body:pn(g,u),hasThinking:A.length>0||S!==null}}function mr(t){const r=s=>[...s].length;return t.segments.reduce((s,u)=>s+r(u),0)+r(t.pending||"")}function Ra(t,r){const s=An(t).masked,u=An(r).masked;return{startedAtBoundary:!Tn.test(s)&&Tn.test(u),endedAtBoundary:!wn.test(s)&&wn.test(u)}}var Cn,jt,Qt,ms,ps,Tn,wn,Ea=Ct((()=>{Cn=/<(think|thinking|reasoning)>([\s\S]*?)<\/\1>/gi,jt="\0THKCODE",Qt="\0",ms=/(^|\n)( {0,3})(`{3,}|~{3,})[^\n]*\n[\s\S]*?\n\2\3[ \t]*(?=\n|$)/g,ps=/`[^`\n]*`/g,Tn=/<(think|thinking|reasoning)>/i,wn=/<\/(think|thinking|reasoning)>/i}));function Na(t){const r=t.trim().toLowerCase();if(!r)return null;const s=hs.get(r);return s||(ks.includes(r)?r:null)}function qa(t){const r=t.trim();if(!r.startsWith("/"))return null;const s=r.match(/^\/([a-zA-Z][\w-]*)(?:\s|$)/);return s?Na(s[1]):null}function $a(t){return qa(t)!==null}var ss,ks,hs,Pa=Ct((()=>{ss=[{key:"command:usage",name:"usage",args:"",descriptionKey:"chat.slashCommands.usage"},{key:"command:status",name:"status",args:"",descriptionKey:"chat.slashCommands.status"},{key:"command:yolo",name:"yolo",args:"",descriptionKey:"chat.slashCommands.yolo"},{key:"command:abort",name:"abort",args:"",descriptionKey:"chat.slashCommands.abort"},{key:"command:queue",name:"queue",argsKey:"chat.slashCommandArgs.message",descriptionKey:"chat.slashCommands.queue"},{key:"command:skill",name:"skill",args:"",descriptionKey:"skills.title",opensSkillPicker:!0},{key:"command:bundles",name:"bundles",args:"",descriptionKey:"chat.slashCommands.bundles",opensBundlePicker:!0},{key:"command:bundles-create",name:"bundles",args:"create",insertText:"bundles create",descriptionKey:"chat.slashCommands.bundlesCreate",opensBundleCreator:!0},{key:"command:learn",name:"learn",argsKey:"chat.slashCommandArgs.text",descriptionKey:"chat.slashCommands.learn"},{key:"command:plan",name:"plan",argsKey:"chat.slashCommandArgs.text",descriptionKey:"chat.slashCommands.plan"},{key:"command:moa",name:"moa",argsKey:"chat.slashCommandArgs.text",descriptionKey:"chat.slashCommands.moa"},{key:"command:goal",name:"goal",argsKey:"chat.slashCommandArgs.text",descriptionKey:"chat.slashCommands.goal"},{key:"command:goal-status",name:"goal",args:"status",insertText:"goal status",descriptionKey:"chat.slashCommands.goalStatus"},{key:"command:goal-pause",name:"goal",args:"pause",insertText:"goal pause",descriptionKey:"chat.slashCommands.goalPause"},{key:"command:goal-resume",name:"goal",args:"resume",insertText:"goal resume",descriptionKey:"chat.slashCommands.goalResume"},{key:"command:goal-done",name:"goal",args:"done",insertText:"goal done",descriptionKey:"chat.slashCommands.goalDone"},{key:"command:goal-clear",name:"goal",args:"clear",insertText:"goal clear",descriptionKey:"chat.slashCommands.goalClear"},{key:"command:subgoal",name:"subgoal",argsKey:"chat.slashCommandArgs.text",descriptionKey:"chat.slashCommands.subgoal"},{key:"command:clear",name:"clear",args:"",descriptionKey:"chat.slashCommands.clear"},{key:"command:clear-history",name:"clear",args:"--history",insertText:"clear --history",descriptionKey:"chat.slashCommands.clearHistory"},{key:"command:title",name:"title",argsKey:"chat.slashCommandArgs.title",descriptionKey:"chat.slashCommands.title"},{key:"command:compress",name:"compress",args:"",descriptionKey:"chat.slashCommands.compress"},{key:"command:fork",name:"fork",argsKey:"chat.slashCommandArgs.title",descriptionKey:"chat.slashCommands.fork"},{key:"command:steer",name:"steer",argsKey:"chat.slashCommandArgs.text",descriptionKey:"chat.slashCommands.steer"},{key:"command:destroy",name:"destroy",args:"",descriptionKey:"chat.slashCommands.destroy"},{key:"command:reload-mcp",name:"reload-mcp",args:"",descriptionKey:"chat.slashCommands.reloadMcp"},{key:"command:reload-skills",name:"reload-skills",args:"",descriptionKey:"chat.slashCommands.reloadSkills"}],ks=Array.from(new Set(ss.map(t=>t.name))),hs=new Map([["reload_skills","reload-skills"]])}));function xn(t){if(typeof t=="string")return t.trim();if(t==null)return"";if(typeof t!="object")return String(t).trim();if(Array.isArray(t))return t.map(xn).filter(Boolean).join(`
|
|
1
|
+
import{Da as _o,Gr as bo,Kr as So,Qr as ds,Ta as yo,Zi as vo,ai as Mo,gi as Ce,i as Xn,oi as Ao,qr as Co,r as To,si as wo,ua as le,wa as Ct}from"./index-DN4SafrP.js";import{C as xo,P as Ro,S as Eo,T as No,a as qo,b as gn,g as Yn,t as $o}from"./sessions-IkLKgnN6.js";import{n as Po,t as Do}from"./esm-DnZPPtmx.js";import{i as Lo,n as Io}from"./download-xhRMWMda.js";import{n as Oo,r as Mn,t as gs}from"./profiles-BK5JKD7h.js";import{i as Bo,r as Fo,s as Uo}from"./coding-agents-BNTHD6kd.js";import{n as fn,t as Ho}from"./settings-roYY6G3W.js";import{a as Ko,o as Wo,r as Go,s as jo,t as Qo}from"./completion-notification-CzdnhuX3.js";function zo(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onMessageDelta&&s.onMessageDelta(t)}function Vo(t){const r=t.session_id;r&&O.get(r)?.onMessageInterim(t)}function Zn(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onReasoningDelta&&s.onReasoningDelta(t)}function Jo(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onThinkingDelta&&s.onThinkingDelta(t)}function Xo(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onReasoningAvailable&&s.onReasoningAvailable(t)}function Yo(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onToolStarted&&s.onToolStarted(t)}function es(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onToolCompleted&&s.onToolCompleted(t)}function Zo(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onWorkspaceDiffCompleted&&s.onWorkspaceDiffCompleted(t)}function Ve(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onSubagentEvent&&s.onSubagentEvent(t)}function ea(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onRunStarted&&s.onRunStarted(t)}function ta(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onRunCompleted&&s.onRunCompleted(t),!(t.queue_remaining>0||(t.background_pending||0)>0)&&O.delete(r)}function na(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onRunFailed&&s.onRunFailed(t),!(t.queue_remaining>0||(t.background_pending||0)>0)&&O.delete(r)}function sa(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onRunQueued&&s.onRunQueued(t)}function oa(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onCompressionStarted&&s.onCompressionStarted(t)}function aa(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onCompressionCompleted&&s.onCompressionCompleted(t)}function ra(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onAbortStarted&&s.onAbortStarted(t)}function ia(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onAbortTimeout&&s.onAbortTimeout(t)}function la(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onAbortCompleted&&s.onAbortCompleted(t),!(t.queue_length>0)&&O.delete(r)}function ua(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onUsageUpdated&&s.onUsageUpdated(t)}function ca(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onSessionCommand&&s.onSessionCommand(t);for(const u of Kt)u(t)}function da(t){const r=t.session_id;if(!r)return;const s=O.get(r);s&&s.onSessionTitleUpdated?.(t);for(const u of Wt)u(t)}function ga(t){const r=t.session_id;if(!r)return;const s=O.get(r);s&&s.onSessionWorkspaceUpdated?.(t);for(const u of Gt)u(t)}function ts(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onAgentEvent&&s.onAgentEvent(t)}function fa(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onAgentEvent&&s.onAgentEvent(t)}function ma(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onApprovalRequested&&s.onApprovalRequested(t);for(const u of Be)u(t)}function pa(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onApprovalResolved&&s.onApprovalResolved(t);for(const u of Be)u(t)}function ka(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onPeerUserMessage&&s.onPeerUserMessage(t);for(const u of Be)u(t)}function ha(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onClarifyRequested&&s.onClarifyRequested(t);for(const u of Be)u(t)}function _a(t){const r=t.session_id;if(!r)return;const s=O.get(r);s?.onClarifyResolved&&s.onClarifyResolved(t);for(const u of Be)u(t)}function ba(t,r){return O.set(t,r),()=>{O.delete(t)}}function Sa(t){O.delete(t)}function ya(t){return Be.add(t),()=>{Be.delete(t)}}function va(t){return Kt.add(t),()=>{Kt.delete(t)}}function Ma(t){return Wt.add(t),()=>{Wt.delete(t)}}function Aa(t){return Gt.add(t),()=>{Gt.delete(t)}}function Ca(t,r,s,u="chat-run"){Vt(null,u).emit("clarify.respond",{session_id:t,clarify_id:r,response:s})}function Ta(t,r,s,u="chat-run"){Vt(null,u).emit("approval.respond",{session_id:t,approval_id:r,choice:s})}function mn(t){return t&&Ht!==t?null:$}function Vt(t,r="chat-run"){const s=t?.trim()||null;if($?.connected&&Ht===r&&(!s||Bt===s))return $;$&&($.removeAllListeners(),$.disconnect(),Ot=!1,Bt=null);const u=Co(),A=So();let S=s||"default";try{if(!s){const{useProfilesStore:g}=(gs(),_o(Oo));S=g().activeProfileName||"default"}}catch{S=s||localStorage.getItem("hermes_active_profile_name")||"default"}return Bt=S,Ht=r,$=Po(`${u}${r==="global-agent"?"/global-agent":"/chat-run"}`,{auth:{token:A},query:{profile:S},transports:["websocket","polling"],reconnection:!0,reconnectionAttempts:1/0,reconnectionDelay:1e3,reconnectionDelayMax:3e4,randomizationFactor:.5,timeout:3e4}),Ot||($.on("message.delta",zo),$.on("message.interim",Vo),$.on("reasoning.delta",Zn),$.on("thinking.delta",Jo),$.on("reasoning.available",Xo),$.on("moa.reference",Zn),$.on("moa.aggregating",ts),$.on("tool.started",Yo),$.on("tool.completed",es),$.on("tool.failed",es),$.on("workspace.diff.completed",Zo),$.on("subagent.start",Ve),$.on("subagent.tool",Ve),$.on("subagent.progress",Ve),$.on("subagent.text",Ve),$.on("subagent.thinking",Ve),$.on("subagent.complete",Ve),$.on("delegation.updated",Ve),$.on("run.started",ea),$.on("run.failed",na),$.on("run.completed",ta),$.on("run.queued",sa),$.on("approval.requested",ma),$.on("approval.resolved",pa),$.on("run.peer_user_message",ka),$.on("clarify.requested",ha),$.on("clarify.resolved",_a),$.on("compression.started",oa),$.on("compression.completed",aa),$.on("abort.started",ra),$.on("abort.timeout",ia),$.on("abort.completed",la),$.on("usage.updated",ua),$.on("agent.event",ts),$.on("run.reattach_failed",fa),$.on("session.command",ca),$.on("session.title.updated",da),$.on("session.workspace.updated",ga),Ot=!0),$}function yt(t,r,s){const u=t;if(typeof u.off=="function"){u.off(r,s);return}u.removeListener?.(r,s)}function ns(t,r,s,u="chat-run"){const A=Vt(s,u),S=g=>{g?.session_id===t&&(yt(A,"resumed",S),r(g))};return A.on("resumed",S),A.emit("resume",{session_id:t,...s?{profile:s}:{}}),A}function wa(t,r,s,u,A,S){const g=t.session_id;if(!g)throw new Error("session_id is required for startRunViaSocket");let k=!1;const D=Vt(t.profile,S?.transport);if(O.has(g))return D.emit("run",t),{abort:()=>{k||D.emit("abort",{session_id:g})}};let H=!1,ne=()=>{},re=null;const L=()=>{re&&(yt(D,"resumed",re),re=null)},z=()=>{L(),S?.onReconnectResume&&(re=b=>{L(),!(k||b.session_id!==g)&&S.onReconnectResume?.(b)},D.on("resumed",re)),D.emit("resume",{session_id:g,...t.profile?{profile:t.profile}:{}})},ve=b=>{k||(k=!0,ne(),O.delete(g),u(b))},W=b=>{k||H||ve(b)};D.on("connect_error",W);const _e=b=>{if(!(k||b==="io client disconnect")){if(fs.has(b)){H=!0;return}ve(new Error(`Socket disconnected: ${b}`))}};D.on("disconnect",_e);const Z=()=>{k||!H||(H=!1,z())};return D.on("connect",Z),ne=()=>{L(),yt(D,"connect_error",W),yt(D,"disconnect",_e),yt(D,"connect",Z)},O.set(g,{onMessageDelta:b=>{k||r(b)},onMessageInterim:b=>{k||r(b)},onReasoningDelta:b=>{k||r(b)},onThinkingDelta:b=>{k||r(b)},onReasoningAvailable:b=>{k||r(b)},onToolStarted:b=>{k||r(b)},onToolCompleted:b=>{k||r(b)},onWorkspaceDiffCompleted:b=>{k||r(b)},onSubagentEvent:b=>{k||r(b)},onRunStarted:b=>{k||(r(b),A?.(b.run_id||""))},onRunCompleted:b=>{if(!k&&(r(b),!(b.queue_remaining>0))){if((b.background_pending||0)>0){s();return}k=!0,ne(),s()}},onRunFailed:b=>{if(!k&&(r(b),!(b.queue_remaining>0))){if((b.background_pending||0)>0){s();return}k=!0,ne(),s()}},onCompressionStarted:b=>{k||r(b)},onCompressionCompleted:b=>{k||r(b)},onAbortStarted:b=>{k||r(b)},onAbortTimeout:b=>{k||r(b)},onAbortCompleted:b=>{k||(r(b),!(b.queue_length>0)&&(k=!0,ne(),s()))},onUsageUpdated:b=>{k||r(b)},onAgentEvent:b=>{k||r(b)},onSessionCommand:b=>{k||(r(b),b.terminal!==!1&&(k=!0,ne(),O.delete(g),s()))},onSessionTitleUpdated:b=>{r(b)},onRunQueued:b=>{k||r(b)},onApprovalRequested:b=>{k||r(b)},onApprovalResolved:b=>{k||r(b)},onClarifyRequested:b=>{k||r(b)},onClarifyResolved:b=>{k||r(b)}}),D.emit("run",t),{abort:()=>{k||D.emit("abort",{session_id:g})}}}var $,Ot,Bt,Ht,fs,O,Be,Kt,Wt,Gt,xa=Ct((()=>{Do(),ds(),$=null,Ot=!1,Bt=null,Ht="chat-run",fs=new Set(["transport close","transport error","ping timeout"]),O=new Map,Be=new Set,Kt=new Set,Wt=new Set,Gt=new Set}));function An(t){const r=[];let s=t.replace(ms,u=>(r.push(u),`${jt}${r.length-1}${Qt}`));return s=s.replace(ps,u=>(r.push(u),`${jt}${r.length-1}${Qt}`)),{masked:s,blocks:r}}function pn(t,r){if(r.length===0)return t;const s=new RegExp(`${jt}(\\d+)${Qt}`,"g");let u=t;for(let A=0;A<r.length;A+=1){const S=u.replace(s,(g,k)=>r[Number(k)]??"");if(S===u)break;u=S}return u}function fr(t,r){const{masked:s,blocks:u}=An(t),A=[];let S=null,g="",k=0;Cn.lastIndex=0;let D;for(;(D=Cn.exec(s))!==null;)g+=s.slice(k,D.index),A.push(D[2]),k=D.index+D[0].length;const H=s.slice(k),ne=H.match(/<(think|thinking|reasoning)>([\s\S]*)$/i);return ne?(g+=H.slice(0,ne.index),r.streaming?S=ne[2]:g+=H.slice(ne.index)):g+=H,{segments:A.map(re=>pn(re,u)),pending:S===null?null:pn(S,u),body:pn(g,u),hasThinking:A.length>0||S!==null}}function mr(t){const r=s=>[...s].length;return t.segments.reduce((s,u)=>s+r(u),0)+r(t.pending||"")}function Ra(t,r){const s=An(t).masked,u=An(r).masked;return{startedAtBoundary:!Tn.test(s)&&Tn.test(u),endedAtBoundary:!wn.test(s)&&wn.test(u)}}var Cn,jt,Qt,ms,ps,Tn,wn,Ea=Ct((()=>{Cn=/<(think|thinking|reasoning)>([\s\S]*?)<\/\1>/gi,jt="\0THKCODE",Qt="\0",ms=/(^|\n)( {0,3})(`{3,}|~{3,})[^\n]*\n[\s\S]*?\n\2\3[ \t]*(?=\n|$)/g,ps=/`[^`\n]*`/g,Tn=/<(think|thinking|reasoning)>/i,wn=/<\/(think|thinking|reasoning)>/i}));function Na(t){const r=t.trim().toLowerCase();if(!r)return null;const s=hs.get(r);return s||(ks.includes(r)?r:null)}function qa(t){const r=t.trim();if(!r.startsWith("/"))return null;const s=r.match(/^\/([a-zA-Z][\w-]*)(?:\s|$)/);return s?Na(s[1]):null}function $a(t){return qa(t)!==null}var ss,ks,hs,Pa=Ct((()=>{ss=[{key:"command:usage",name:"usage",args:"",descriptionKey:"chat.slashCommands.usage"},{key:"command:status",name:"status",args:"",descriptionKey:"chat.slashCommands.status"},{key:"command:yolo",name:"yolo",args:"",descriptionKey:"chat.slashCommands.yolo"},{key:"command:abort",name:"abort",args:"",descriptionKey:"chat.slashCommands.abort"},{key:"command:queue",name:"queue",argsKey:"chat.slashCommandArgs.message",descriptionKey:"chat.slashCommands.queue"},{key:"command:skill",name:"skill",args:"",descriptionKey:"skills.title",opensSkillPicker:!0},{key:"command:bundles",name:"bundles",args:"",descriptionKey:"chat.slashCommands.bundles",opensBundlePicker:!0},{key:"command:bundles-create",name:"bundles",args:"create",insertText:"bundles create",descriptionKey:"chat.slashCommands.bundlesCreate",opensBundleCreator:!0},{key:"command:learn",name:"learn",argsKey:"chat.slashCommandArgs.text",descriptionKey:"chat.slashCommands.learn"},{key:"command:plan",name:"plan",argsKey:"chat.slashCommandArgs.text",descriptionKey:"chat.slashCommands.plan"},{key:"command:moa",name:"moa",argsKey:"chat.slashCommandArgs.text",descriptionKey:"chat.slashCommands.moa"},{key:"command:goal",name:"goal",argsKey:"chat.slashCommandArgs.text",descriptionKey:"chat.slashCommands.goal"},{key:"command:goal-status",name:"goal",args:"status",insertText:"goal status",descriptionKey:"chat.slashCommands.goalStatus"},{key:"command:goal-pause",name:"goal",args:"pause",insertText:"goal pause",descriptionKey:"chat.slashCommands.goalPause"},{key:"command:goal-resume",name:"goal",args:"resume",insertText:"goal resume",descriptionKey:"chat.slashCommands.goalResume"},{key:"command:goal-done",name:"goal",args:"done",insertText:"goal done",descriptionKey:"chat.slashCommands.goalDone"},{key:"command:goal-clear",name:"goal",args:"clear",insertText:"goal clear",descriptionKey:"chat.slashCommands.goalClear"},{key:"command:subgoal",name:"subgoal",argsKey:"chat.slashCommandArgs.text",descriptionKey:"chat.slashCommands.subgoal"},{key:"command:clear",name:"clear",args:"",descriptionKey:"chat.slashCommands.clear"},{key:"command:clear-history",name:"clear",args:"--history",insertText:"clear --history",descriptionKey:"chat.slashCommands.clearHistory"},{key:"command:title",name:"title",argsKey:"chat.slashCommandArgs.title",descriptionKey:"chat.slashCommands.title"},{key:"command:compress",name:"compress",args:"",descriptionKey:"chat.slashCommands.compress"},{key:"command:fork",name:"fork",argsKey:"chat.slashCommandArgs.title",descriptionKey:"chat.slashCommands.fork"},{key:"command:steer",name:"steer",argsKey:"chat.slashCommandArgs.text",descriptionKey:"chat.slashCommands.steer"},{key:"command:destroy",name:"destroy",args:"",descriptionKey:"chat.slashCommands.destroy"},{key:"command:reload-mcp",name:"reload-mcp",args:"",descriptionKey:"chat.slashCommands.reloadMcp"},{key:"command:reload-skills",name:"reload-skills",args:"",descriptionKey:"chat.slashCommands.reloadSkills"}],ks=Array.from(new Set(ss.map(t=>t.name))),hs=new Map([["reload_skills","reload-skills"]])}));function xn(t){if(typeof t=="string")return t.trim();if(t==null)return"";if(typeof t!="object")return String(t).trim();if(Array.isArray(t))return t.map(xn).filter(Boolean).join(`
|
|
2
2
|
`);const r=t;for(const s of["message","error","detail","description","code"]){const u=xn(r[s]);if(u)return u}try{return JSON.stringify(t)}catch{return String(t)}}async function Da(t,r="Request failed"){let s="";if((t.headers.get("content-type")||"").includes("application/json"))try{s=xn(await t.clone().json())}catch{s=""}if(!s)try{s=(await t.clone().text()).trim()}catch{s=""}const u=`${r}: ${t.status}`;return s?`${u} - ${s}`:u}var La=Ct((()=>{})),pr=yo({LIVE_CHAT_MAX_LOADED_MESSAGES:()=>300,LIVE_CHAT_MESSAGE_PAGE_SIZE:()=>150,alignWorkspaceChangeAssistantMessage:()=>Rn,attachWorkspaceChangesToExactTurns:()=>ys,buildContentBlocks:()=>Nn,formatMessageWithReference:()=>Ss,formatReferencedContentForDisplay:()=>Ua,parseMessageReference:()=>Fa,reduceSubagentStream:()=>bs,useChatStore:()=>Ts});function at(t){if(t==="codex")return"codex";if(t==="claude")return"claude-code";if(t==="ekko-agent")return"ekko-agent"}function Ia(t){if(t==="codex")return"codex";if(t==="claude-code")return"claude";if(t==="ekko-agent")return"ekko-agent"}function Oa(t){const r=typeof t.label=="string"&&t.label.trim()?t.label.trim():"reference",s=Number.isFinite(Number(t.index))?Number(t.index):void 0,u=Number.isFinite(Number(t.count))?Number(t.count):void 0;return s!=null&&u!=null?`${s}/${u} ${r}`:r}function kn(t){const r=Number(t);return!Number.isFinite(r)||r<=0?Date.now():r<1e12?Math.round(r*1e3):Math.round(r)}function At(t,r="running"){const s=String(t||"").trim().toLowerCase();return s==="completed"||s==="failed"||s==="error"||s==="cancelled"||s==="interrupted"?s:r}function Ba(t,r){const s=Number(r.background_seq);return Number.isFinite(s)?`${t}:${s}`:r.background_snapshot?`snapshot:${t}`:(Pn+=1,`${t}:${Pn}`)}function _s(t){return t.length>$n?t.slice(t.length-$n):t}function os(t,r){const s=t[t.length-1];if(s?.kind===r.kind&&r.text){const u=s.text||"",A=r.text.startsWith(u)?r.text:`${u}${r.text}`;return t[t.length-1]={...s,text:A.slice(-8e4),timestamp:r.timestamp},t}return t.push({...r,text:r.text?.slice(-8e4)}),_s(t)}function hn(t){for(let r=t.length-1;r>=0;r--){const s=t[r];if(s.kind==="tool")return null;if(s.kind==="thinking"&&s.text?.trim())return{id:s.id,text:s.text}}return null}function bs(t,r,s){const u=String(s.event||""),A=String(s.subagent_id||s.delegation_id||`${s.task_index??0}`),S=kn(s.timestamp||s.updated_at),g=Number(s.background_seq);if(t&&Number.isFinite(g)&&t.lastBackgroundSeq!=null&&g<=t.lastBackgroundSeq)return t;const k=Number(s.task_index),D=Number(s.task_count),H=String(s.goal||"").trim(),ne=String(s.model||"").trim(),re=String(s.summary||"").trim(),L=String(s.text||s.preview||""),z=L.trim(),ve=String(s.tool||s.name||"").trim(),W=Number(s.duration_seconds??s.duration),_e=Number(s.tool_count),Z=Number(s.api_calls),b=Number(s.input_tokens),I=Number(s.output_tokens),se=Number(s.cost_usd),ue=u==="subagent.complete"||u==="delegation.updated"&&["completed","failed","error","cancelled","interrupted"].includes(String(s.status||"").toLowerCase());if(t&&t.status!=="running"&&!ue)return t;const xe=ue?At(s.status,"completed"):"running",K=t?[...t.entries]:[],me=Ba(u,s);if(u==="subagent.start")K.some(J=>J.kind==="status"&&J.status==="started")||K.push({id:me,kind:"status",status:"started",timestamp:S,text:H||void 0});else if(u==="subagent.text"&&L){const J=hn(K);os(K,{id:me,kind:"text",timestamp:S,text:L,reasoning:J?.text,reasoningEntryId:J?.id})}else if(u==="subagent.thinking"&&L)os(K,{id:me,kind:"thinking",timestamp:S,text:L});else if(u==="subagent.tool"){const J=hn(K);if(J)for(let pe=0;pe<K.length;pe++){const ke=K[pe];if(ke.kind!=="text"||ke.reasoningEntryId!==J.id)continue;const{reasoning:Ae,reasoningEntryId:Te,...Ne}=ke;K[pe]=Ne}K.push({id:me,kind:"tool",timestamp:S,text:z||void 0,reasoning:J?.text,reasoningEntryId:J?.id,toolName:ve||void 0,toolArgs:s.arguments})}else if(u==="subagent.progress"&&z){const J=K[K.length-1],pe={id:me,kind:"status",status:"running",timestamp:S,text:z};J?.kind==="status"&&J.status==="running"?K[K.length-1]=pe:K.push(pe)}if(ue){const J=re||z,pe=[...K].reverse().find(Ne=>Ne.kind==="text"),ke=pe?.text?.trim();if(J&&ke!==J){const Ne=hn(K),Tt=Ne?.id===pe?.reasoningEntryId?null:Ne;K.push({id:`${me}:summary`,kind:"text",timestamp:S,text:J,reasoning:Tt?.text,reasoningEntryId:Tt?.id})}const Ae=K[K.length-1],Te={id:me,kind:"status",status:xe,timestamp:S};Ae?.kind==="status"&&Ae.status!=="started"?K[K.length-1]=Te:K.push(Te)}return{sessionId:r,subagentId:A,taskIndex:Number.isFinite(k)?k:t?.taskIndex||0,taskCount:Number.isFinite(D)&&D>0?D:t?.taskCount||1,goal:H||t?.goal,model:ne||t?.model,status:xe,startedAt:t?.startedAt||kn(s.started_at||S),updatedAt:S,completedAt:ue?kn(s.completed_at||S):t?.completedAt,durationSeconds:Number.isFinite(W)?W:t?.durationSeconds,toolCount:Number.isFinite(_e)?_e:t?.toolCount,apiCalls:Number.isFinite(Z)?Z:t?.apiCalls,inputTokens:Number.isFinite(b)?b:t?.inputTokens,outputTokens:Number.isFinite(I)?I:t?.outputTokens,costUsd:Number.isFinite(se)?se:t?.costUsd,summary:re||t?.summary,lastBackgroundSeq:Number.isFinite(g)?g:t?.lastBackgroundSeq,entries:_s(K)}}function Fa(t){if(!t.startsWith("<quoted_message"))return null;const r=t.indexOf(`>
|
|
3
3
|
`);if(r===-1)return null;const s=t.indexOf(`
|
|
4
4
|
</quoted_message>`,r+2);return s===-1?null:{content:t.slice(r+2,s).trim(),reply:t.slice(s+18).trim()}}function Ua(t){return t.trim().split(/\r?\n/).map(r=>r?`> ${r}`:">").join(`
|
package/dist/client/assets/js/{chat-input-height-CSPwB9it.js → chat-input-height-lvFawuv9.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{wa as i}from"./index-
|
|
1
|
+
import{wa as i}from"./index-DN4SafrP.js";function e(t){if(t==null||t==="")return null;const n=Number(t);return Number.isFinite(n)?Math.min(400,Math.max(48,Math.round(n))):null}function o(t){return t<=768}var r,u,_,I=i((()=>{r=768,u=48,_=400}));export{I as n,o as r,e as t};
|