@myagentroam/server 0.15.11 → 0.15.13
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/node_modules/@myagentroam/protocol/dist/index.d.ts +958 -106
- package/node_modules/@myagentroam/protocol/dist/index.js +55 -4
- package/node_modules/@myagentroam/protocol/package.json +1 -1
- package/node_modules/@myagentroam/server-core/dist/node-identity-control.d.ts +1 -0
- package/node_modules/@myagentroam/server-core/package.json +2 -2
- package/node_modules/@myagentroam-enterprise/server-implementation/package.json +3 -3
- package/package.json +5 -5
- package/web/assets/{AuditManagementPage-Ddem6aE9.js → AuditManagementPage-DhnbwHbW.js} +1 -1
- package/web/assets/AuthEntryPanel-CxrfDhLh.js +48 -0
- package/web/assets/AuthEntryPanel-Dyv0ZL2w.css +1 -0
- package/web/assets/{CodeFileEditor-B_VH-BFz.css → CodeFileEditor-BCFxG5-W.css} +1 -1
- package/web/assets/{CodeFileEditor-C2V6Kr12.js → CodeFileEditor-CJ5ai-04.js} +8 -8
- package/web/assets/{ConversationTemplateManagementPage-Db8gMWUj.js → ConversationTemplateManagementPage-C2PleBV2.js} +1 -1
- package/web/assets/{ConversationTemplateManagementPage-euV7S9sO.js → ConversationTemplateManagementPage-DPHe0vRs.js} +1 -1
- package/web/assets/{EnterpriseUserManagementPage-DFa1qJtz.js → EnterpriseUserManagementPage-C5KpoWPo.js} +1 -1
- package/web/assets/{EnvironmentSecretManager-Bq-PaInv.js → EnvironmentSecretManager-Bzmbqg1p.js} +1 -1
- package/web/assets/{FilePreviewLoading-TTlaPt8Y.js → FilePreviewLoading-DqAfb1fM.js} +1 -1
- package/web/assets/{LicenseManagementPage-AYmuYzqS.js → LicenseManagementPage-DYVEUyMB.js} +1 -1
- package/web/assets/{ManagementPagination-BOpNHb1A.js → ManagementPagination-BjAewbZr.js} +1 -1
- package/web/assets/{MarAgentModelManagementPage-D7UD-wnu.js → MarAgentModelManagementPage-DZFAZXrV.js} +1 -1
- package/web/assets/{MarAgentModelManagementPage-lBoVa2v6.js → MarAgentModelManagementPage-DkmK2OcH.js} +1 -1
- package/web/assets/{MarAlert-D0PX_Tbk.js → MarAlert-DWvtZzSz.js} +1 -1
- package/web/assets/{MarCascader-C-wMEY6v.js → MarCascader-BjTgTlgE.js} +1 -1
- package/web/assets/{MarCheckTag-ChD8J5JD.js → MarCheckTag-Dinsen7G.js} +1 -1
- package/web/assets/{MarCheckboxGroup-BToTSgMm.js → MarCheckboxGroup-CLLI38z2.js} +1 -1
- package/web/assets/{MarCheckboxGroup.vue_vue_type_style_index_0_scoped_3769668f_lang-5moaGIW3.js → MarCheckboxGroup.vue_vue_type_style_index_0_scoped_3769668f_lang-D4qPx9MN.js} +1 -1
- package/web/assets/{MarDatePicker-wo6AktOG.js → MarDatePicker-qr7MANzM.js} +1 -1
- package/web/assets/{MarDescriptionsItem-CLLiGbXh.js → MarDescriptionsItem-Dbchk0rz.js} +1 -1
- package/web/assets/{MarFormItem.vue_vue_type_script_setup_true_lang-C_11gsXH.js → MarFormItem.vue_vue_type_script_setup_true_lang-N9NOm81R.js} +1 -1
- package/web/assets/{MarInputNumber-BB1NAqf4.js → MarInputNumber-BDhZNg6P.js} +1 -1
- package/web/assets/{MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-BId64CJ5.js → MarOptionGroup.vue_vue_type_style_index_0_scoped_0cdd846e_lang-B-5im7gC.js} +1 -1
- package/web/assets/{MarSwitch-Dhfd1YLM.js → MarSwitch-CzORIlBy.js} +1 -1
- package/web/assets/{MarTableColumn.vue_vue_type_script_setup_true_lang-Bc8kA_vE.js → MarTableColumn.vue_vue_type_script_setup_true_lang-rgqYz-XK.js} +1 -1
- package/web/assets/{MarTabs-B1KOdCot.js → MarTabs-DsfSW1HH.js} +1 -1
- package/web/assets/{MarTag-DMsL6KJZ.js → MarTag-B--PUm_d.js} +1 -1
- package/web/assets/{MarkdownFilePreview-BwK-pfbx.js → MarkdownFilePreview-Di3Qwl-w.js} +2 -2
- package/web/assets/{McpDetailsDialog-B7oS8EaV.js → McpDetailsDialog-BcR05yaB.js} +1 -1
- package/web/assets/{McpSourceManagementPage-D6-MJojd.js → McpSourceManagementPage-Co77q4Li.js} +1 -1
- package/web/assets/{McpSourceManagementPage-DTMNPyNg.js → McpSourceManagementPage-gy2j_XGA.js} +1 -1
- package/web/assets/{NodeDetailsDialogs-Dxyn533m.js → NodeDetailsDialogs-zbDazrlR.js} +1 -1
- package/web/assets/NodeManagementPage-Ba2UMIEP.js +1 -0
- package/web/assets/NodeManagementPage-DPhSYeAp.js +1 -0
- package/web/assets/{OAuthManagementPage-CbA4ZwNd.js → OAuthManagementPage-gEe5micv.js} +1 -1
- package/web/assets/{OrganizationManagementPage-CMz30-xK.js → OrganizationManagementPage-BM4FF66A.js} +1 -1
- package/web/assets/{RemoteDesktopPage-CWsb6ViO.js → RemoteDesktopPage-C0uLsT1k.js} +1 -1
- package/web/assets/{ResourceManagementPanel-DGRWKXQi.js → ResourceManagementPanel-BcarWGU5.js} +1 -1
- package/web/assets/{ResourceManagementPanel.vue_vue_type_script_setup_true_lang-H9XAjzEM.js → ResourceManagementPanel.vue_vue_type_script_setup_true_lang-h0fzDFPj.js} +1 -1
- package/web/assets/SecretManagementPage-C9f43iES.js +1 -0
- package/web/assets/{SecretManagementPage-f9J9D7X7.js → SecretManagementPage-D4DRkydW.js} +1 -1
- package/web/assets/{SecretManagementPage.vue_vue_type_script_setup_true_lang-DHmw4U46.js → SecretManagementPage.vue_vue_type_script_setup_true_lang-B5E0ZOa6.js} +1 -1
- package/web/assets/{SessionSharePage-CP0LD1Qr.js → SessionSharePage-CRPu2qIl.js} +2 -2
- package/web/assets/{SettingsContent-CVSkYU17.js → SettingsContent-C-YcSivl.js} +1 -1
- package/web/assets/{SettingsContent-Yq7FP6xL.js → SettingsContent-DjNajW3X.js} +1 -1
- package/web/assets/{SkillCenterPage-CIaCwlD2.js → SkillCenterPage-BU5_Mxh2.js} +1 -1
- package/web/assets/SkillCenterPage-y5lWhZtK.js +1 -0
- package/web/assets/{SkillDetailsDialog-D9wo9WPS.js → SkillDetailsDialog-DuwWSbey.js} +1 -1
- package/web/assets/{SkillSourceManagementPage-T8BZe0bW.js → SkillSourceManagementPage-COWC-QnO.js} +1 -1
- package/web/assets/{SkillSourceManagementPage-mxJMB3qp.js → SkillSourceManagementPage-hqXCa-TM.js} +1 -1
- package/web/assets/{StandaloneFilePreviewPage-kouHAJR4.js → StandaloneFilePreviewPage-BUv8lvtQ.js} +1 -1
- package/web/assets/{SystemConfigurationPage-COGKRRB6.js → SystemConfigurationPage-CCepFruS.js} +1 -1
- package/web/assets/{SystemConfigurationPage-cjpVk6l0.js → SystemConfigurationPage-CrGT4kht.js} +1 -1
- package/web/assets/{SystemInformationPage-CY03Mlq8.js → SystemInformationPage-RdHWEkOr.js} +1 -1
- package/web/assets/{TerminalTabView-DEgwbmZO.js → TerminalTabView-C8Pb5QaK.js} +1 -1
- package/web/assets/{WorkbenchPage-Bvdq0Ugw.css → WorkbenchPage-1bzD4MVC.css} +1 -1
- package/web/assets/WorkbenchPage-CT2wLBM_.js +22 -0
- package/web/assets/WorkspaceManagementPage-1X0Olgef.js +1 -0
- package/web/assets/WorkspaceManagementPage-BGjdTgBE.js +1 -0
- package/web/assets/{abnfDiagram-VCTEODGH-DapddBIv.js → abnfDiagram-VCTEODGH-B0vy_fsk.js} +1 -1
- package/web/assets/{arc-C_U6Zh1o.js → arc-C_a66pLd.js} +1 -1
- package/web/assets/{architectureDiagram-5GKGNRK7-Cv4L0XhM.js → architectureDiagram-5GKGNRK7-DZdv7HsW.js} +1 -1
- package/web/assets/{blockDiagram-OSKFZWR5-BLotbToI.js → blockDiagram-OSKFZWR5-mdn_D7Aw.js} +1 -1
- package/web/assets/{c4Diagram-7LVT6UL2-DsRz9LXy.js → c4Diagram-7LVT6UL2-CjiNlSE9.js} +1 -1
- package/web/assets/{catalog-ownership-service-uFnYz7EA.js → catalog-ownership-service-B3jRYQ7r.js} +1 -1
- package/web/assets/{catalog-page-service-D-hrDWMM.js → catalog-page-service-DjHgmMT1.js} +1 -1
- package/web/assets/channel-PWY-Wu-2.js +1 -0
- package/web/assets/{chunk-2Q5K7J3B-DfHR_ypf.js → chunk-2Q5K7J3B-DH1Uz2TY.js} +1 -1
- package/web/assets/{chunk-5VM5RSS4-D4UZFjh0.js → chunk-5VM5RSS4-B9etZTEi.js} +1 -1
- package/web/assets/{chunk-F27PBJKO-DoMfyA2U.js → chunk-F27PBJKO-CUfLTEX_.js} +1 -1
- package/web/assets/{chunk-HLEWEB6X-tYQF3ia2.js → chunk-HLEWEB6X-B20_80vM.js} +1 -1
- package/web/assets/{chunk-JWPE2WC7-LF4BP0k6.js → chunk-JWPE2WC7-BpmOE-nl.js} +1 -1
- package/web/assets/{chunk-POPQ4Y6H-Byz6j4z2.js → chunk-POPQ4Y6H-kbtxccTO.js} +1 -1
- package/web/assets/{chunk-SVP7TREG-Dz8pXNCD.js → chunk-SVP7TREG-hAVk4-kZ.js} +1 -1
- package/web/assets/{chunk-XXDRQBXY-7cHHKyJX.js → chunk-XXDRQBXY-CKOTA957.js} +1 -1
- package/web/assets/{chunk-ZLD2IHE6-Q9VeMK-k.js → chunk-ZLD2IHE6-BUcrc0oW.js} +1 -1
- package/web/assets/classDiagram-CYGNFDIV-CYD-2w3j.js +1 -0
- package/web/assets/classDiagram-v2-TLXNO2FR-CYD-2w3j.js +1 -0
- package/web/assets/{conversation-history-c7zuUvpn.js → conversation-history-CyI7sV_v.js} +1 -1
- package/web/assets/{cose-bilkent-JH36ORCC-C_9UFsOc.js → cose-bilkent-JH36ORCC-BHMERWWS.js} +1 -1
- package/web/assets/{cynefin-OW5HDTMX-CAWIl9gM.js → cynefin-OW5HDTMX-D-Ayn9P9.js} +1 -1
- package/web/assets/{cynefinDiagram-5FMLGOSQ-CIRtGRYc.js → cynefinDiagram-5FMLGOSQ-BQTveJ-M.js} +1 -1
- package/web/assets/{dagre-OS7QT2EB-PfwtVnmi.js → dagre-OS7QT2EB-CFiUo8FX.js} +1 -1
- package/web/assets/{diagram-S7CK7UJ4-BZ9hDV6s.js → diagram-S7CK7UJ4-CJCZOySz.js} +1 -1
- package/web/assets/{diagram-UQ7AKVKN-BgxNG604.js → diagram-UQ7AKVKN-B9yc35zF.js} +1 -1
- package/web/assets/{diagram-VSXAHHWV-DStF2XIR.js → diagram-VSXAHHWV-DRghNdfE.js} +1 -1
- package/web/assets/{diagram-VX7I27RA-BwWtiIt7.js → diagram-VX7I27RA-DX2uKsRE.js} +1 -1
- package/web/assets/{diagram-Z3DM3KII-D_Rd4S9a.js → diagram-Z3DM3KII-CzUxF9L_.js} +1 -1
- package/web/assets/{ebnfDiagram-PWID7BFC-Z1PIKh16.js → ebnfDiagram-PWID7BFC-BO7CSSAu.js} +1 -1
- package/web/assets/{enterprise-management-service-BGRZlEhu.js → enterprise-management-service-Otf0Cyo4.js} +1 -1
- package/web/assets/{erDiagram-2YWLMYGG-CWwyfQTe.js → erDiagram-2YWLMYGG-Az_3aAM7.js} +1 -1
- package/web/assets/{error-presentation-RhM_eQeL.js → error-presentation-CVfZsEJD.js} +1 -1
- package/web/assets/{flowDiagram-T62WH6J4-Bua0chjR.js → flowDiagram-T62WH6J4-CukpDLI_.js} +1 -1
- package/web/assets/{ganttDiagram-EL5Y4UJY-CqiUVrBJ.js → ganttDiagram-EL5Y4UJY-TgFhWd8A.js} +1 -1
- package/web/assets/{gitGraphDiagram-WWUBYQGX-DHz-WsTW.js → gitGraphDiagram-WWUBYQGX-Bx55kmmf.js} +1 -1
- package/web/assets/{hosted-conversation-template-client-DiAiEA4H.js → hosted-conversation-template-client-BPfg2n5n.js} +1 -1
- package/web/assets/{index-DCmZI42j.js → index-98SNC84D.js} +1 -1
- package/web/assets/{index-CJzjscC-.js → index-B8svYS5K.js} +1 -1
- package/web/assets/{index-BwMtqzPy.js → index-BEUerZls.js} +1 -1
- package/web/assets/{index-CQXvli2Q.js → index-BFcdAbEq.js} +16 -16
- package/web/assets/{index-iWuYUgMd.js → index-BWWZBEvf.js} +1 -1
- package/web/assets/{index-zRYiDomD.js → index-BqhPnUEN.js} +1 -1
- package/web/assets/{index-DHgK9yox.js → index-Bu6jXqqC.js} +1 -1
- package/web/assets/{index-dflwuQ8g.js → index-BuxLdxSh.js} +1 -1
- package/web/assets/{index-DcMGFZgA.js → index-Bz76riOb.js} +1 -1
- package/web/assets/{index-CmZTEay0.js → index-C1TlRTFi.js} +1 -1
- package/web/assets/{index-C1LwLe8k.js → index-CguqeYVt.js} +1 -1
- package/web/assets/{index-ClMtb1tz.js → index-DCYgkd6r.js} +1 -1
- package/web/assets/{index-CSCWWsaW.js → index-DIgzqrXo.js} +1 -1
- package/web/assets/{index-CbaGEWjT.js → index-DOfkX9lK.js} +1 -1
- package/web/assets/{index-CI3p6Goi.js → index-DP2wCCIB.js} +1 -1
- package/web/assets/{index-DA_ocU4K.js → index-DPz7diYE.js} +1 -1
- package/web/assets/{index-DNSu3JKc.js → index-DTiIcW__.js} +1 -1
- package/web/assets/{index-BqtOp3EO.js → index-DURR-B0b.js} +1 -1
- package/web/assets/{index-pX4JtCv7.js → index-DmlIPlrm.js} +1 -1
- package/web/assets/{index-Bw14XDUG.js → index-DoAPEnTw.js} +1 -1
- package/web/assets/{index-k5D1GPSG.js → index-DqgbwUzp.js} +1 -1
- package/web/assets/{index-CSWuAUkD.js → index-_Fr3Y-uk.js} +1 -1
- package/web/assets/{index-D_dSO3kY.js → index-cF8QHRUn.js} +1 -1
- package/web/assets/{index-De6WLlNd.js → index-kURlw-_V.js} +1 -1
- package/web/assets/{index-C-vrAsAQ.js → index-ppf5SdEv.js} +1 -1
- package/web/assets/{index-CyCqPnMJ.js → index-xuRyvDfa.js} +1 -1
- package/web/assets/{index-Yyn2JSE4.js → index-zIaSNXuG.js} +1 -1
- package/web/assets/{infoDiagram-FKFFQAWI-DSbDgl4Y.js → infoDiagram-FKFFQAWI-CVgaBvC3.js} +1 -1
- package/web/assets/{ishikawaDiagram-5VMMS53U-C68r9TEG.js → ishikawaDiagram-5VMMS53U-CYsziZNm.js} +1 -1
- package/web/assets/{journeyDiagram-EYS64GPL-CH97Kbvt.js → journeyDiagram-EYS64GPL-BZ3Vfhk2.js} +1 -1
- package/web/assets/{kanban-definition-UXKFOSKX-NPrIfhrr.js → kanban-definition-UXKFOSKX-CwaQGdGX.js} +1 -1
- package/web/assets/{layout-CcFkftJo.js → layout-DCgFqgdM.js} +1 -1
- package/web/assets/{linear-DggphYzr.js → linear-UBmXZMat.js} +1 -1
- package/web/assets/{management-url-service-c0tqiXvV.js → management-url-service-BEhJU-pI.js} +1 -1
- package/web/assets/{mar-agent-reasoning-effort-Bs7hmeOo.js → mar-agent-reasoning-effort-D7NdRUEH.js} +1 -1
- package/web/assets/{mcp-center-service-BuV6nicj.js → mcp-center-service-DEewJbIk.js} +1 -1
- package/web/assets/{mermaid.core-CtV3j4ZJ.js → mermaid.core-DwWdQkHi.js} +5 -5
- package/web/assets/{mindmap-definition-THT77NOG-CpsFawff.js → mindmap-definition-THT77NOG-DL3YDu0v.js} +1 -1
- package/web/assets/{mobile-dialog-return-service-B-slT15v.js → mobile-dialog-return-service-BMaWxb-8.js} +1 -1
- package/web/assets/{oauth-callback-CdAz-Fqi.js → oauth-callback-Pxc_MXCX.js} +1 -1
- package/web/assets/{pegDiagram-XKGWAZYB-EfmCySIl.js → pegDiagram-XKGWAZYB-C2iq2xI5.js} +1 -1
- package/web/assets/{pieDiagram-E7YTZNPT-BRekbyCt.js → pieDiagram-E7YTZNPT-CU5NGoAW.js} +1 -1
- package/web/assets/{quadrantDiagram-AXDQQJYC-DnHarN-H.js → quadrantDiagram-AXDQQJYC-Cn1Vm6wr.js} +1 -1
- package/web/assets/{railroadDiagram-O6MQD6OU-JiujkUdt.js → railroadDiagram-O6MQD6OU-BGhcaM--.js} +1 -1
- package/web/assets/{requirementDiagram-IS5BZ75X-TZ8amSWp.js → requirementDiagram-IS5BZ75X-CPJqX0TB.js} +1 -1
- package/web/assets/{runner-presentation-1deZqBe9.js → runner-presentation-zotHAuug.js} +1 -1
- package/web/assets/{sankeyDiagram-P5KCCOFB-Drmgap-9.js → sankeyDiagram-P5KCCOFB-BTYRnwQ2.js} +1 -1
- package/web/assets/scoped-http-service-BX6oGpwV.js +8 -0
- package/web/assets/{scoped-http-service-uKZNfeBH.css → scoped-http-service-DVvho41I.css} +1 -1
- package/web/assets/{sequenceDiagram-WJ2MYXX4-DsuFPYnv.js → sequenceDiagram-WJ2MYXX4-Cd0k1het.js} +1 -1
- package/web/assets/{session-share-client-service-CSMsv7CS.js → session-share-client-service-DoIWcHFD.js} +1 -1
- package/web/assets/{sizeCapture-INFHLROL-CvOyeKKq.js → sizeCapture-INFHLROL-C-In8yHV.js} +1 -1
- package/web/assets/{stateDiagram-XQSTLZYL-BpneHu2f.js → stateDiagram-XQSTLZYL-D5Vc-TIn.js} +1 -1
- package/web/assets/stateDiagram-v2-IH3M54BS-CwOxYc8s.js +1 -0
- package/web/assets/{swimlanes-V6O3JKXN-CLOCQwKk.js → swimlanes-V6O3JKXN-DDbinG7_.js} +1 -1
- package/web/assets/swimlanesDiagram-JKAHXJPX-CEznDdPv.js +8 -0
- package/web/assets/{time-presentation-DFMSwoFs.js → time-presentation-DtfzPZIs.js} +1 -1
- package/web/assets/{timeline-definition-24CTP7MA-BNqMG8gt.js → timeline-definition-24CTP7MA-rLw-E05z.js} +1 -1
- package/web/assets/{vennDiagram-4TSXK5OY-DTCGJdqC.js → vennDiagram-4TSXK5OY-u9if2G4D.js} +1 -1
- package/web/assets/{wardleyDiagram-VM6X3IG4-q0XZxbDj.js → wardleyDiagram-VM6X3IG4-BNkSabd6.js} +1 -1
- package/web/assets/{workbench-live-service-Yud-3E2G.js → workbench-live-service-Cj-Ss3PC.js} +1 -1
- package/web/assets/{workbench-presentation-BSknaome.js → workbench-presentation-AIxhM__t.js} +1 -1
- package/web/assets/{xychartDiagram-S5SC5T6Z-BKiEHteq.js → xychartDiagram-S5SC5T6Z-ok7bHnwA.js} +1 -1
- package/web/docs/404.html +2 -2
- package/web/docs/administration/account.html +3 -3
- package/web/docs/administration/audit.html +3 -3
- package/web/docs/administration/conversation-templates.html +3 -3
- package/web/docs/administration/email-notifications.html +3 -3
- package/web/docs/administration/license.html +3 -3
- package/web/docs/administration/nodes-workspaces.html +3 -3
- package/web/docs/administration/oauth.html +3 -3
- package/web/docs/administration/secrets.html +3 -3
- package/web/docs/administration/template-workspace-maintenance.html +3 -3
- package/web/docs/administration/users-organizations.html +3 -3
- package/web/docs/assets/{app.CuRI2yXF.js → app.CSfKRp7f.js} +1 -1
- package/web/docs/assets/chunks/@localSearchIndexen-US.Dj8yOqkj.js +1 -0
- package/web/docs/assets/chunks/@localSearchIndexroot.DnBKaaie.js +1 -0
- package/web/docs/assets/chunks/{VPLocalSearchBox.CslXNzt4.js → VPLocalSearchBox._EAST4Ce.js} +1 -1
- package/web/docs/assets/chunks/{theme.DkNYEXgy.js → theme.B3weHvFp.js} +2 -2
- package/web/docs/assets/{en-US_runners_mar-agent.md.I1zwVZ6u.js → en-US_runners_mar-agent.md.C_TXd_OW.js} +2 -2
- package/web/docs/assets/{en-US_runners_mar-agent.md.I1zwVZ6u.lean.js → en-US_runners_mar-agent.md.C_TXd_OW.lean.js} +1 -1
- package/web/docs/assets/en-US_workbench_conversation.md.DT3KAAzA.js +1 -0
- package/web/docs/assets/{en-US_workbench_conversation.md.BPMpE-bw.lean.js → en-US_workbench_conversation.md.DT3KAAzA.lean.js} +1 -1
- package/web/docs/assets/en-US_workbench_navigation.md.1GRtBnfR.js +1 -0
- package/web/docs/assets/en-US_workbench_sessions.md.BwxJNiIm.js +1 -0
- package/web/docs/assets/{en-US_workbench_sessions.md.CAK4Fdx2.lean.js → en-US_workbench_sessions.md.BwxJNiIm.lean.js} +1 -1
- package/web/docs/assets/{runners_mar-agent.md.ovlnx5Ak.js → runners_mar-agent.md.QpLH8RCc.js} +3 -3
- package/web/docs/assets/{runners_mar-agent.md.ovlnx5Ak.lean.js → runners_mar-agent.md.QpLH8RCc.lean.js} +1 -1
- package/web/docs/assets/workbench_conversation.md.DUb0SYvh.js +1 -0
- package/web/docs/assets/workbench_navigation.md.C0aoTr91.js +1 -0
- package/web/docs/assets/workbench_sessions.md.BOKueVhd.js +1 -0
- package/web/docs/concepts/architecture.html +3 -3
- package/web/docs/concepts/data-and-security.html +3 -3
- package/web/docs/concepts/files-git-terminal.html +3 -3
- package/web/docs/concepts/node-and-workspace.html +3 -3
- package/web/docs/concepts/permissions-and-sharing.html +3 -3
- package/web/docs/concepts/runner-control.html +3 -3
- package/web/docs/concepts/secrets.html +3 -3
- package/web/docs/concepts/session-run-turn.html +3 -3
- package/web/docs/deployment/backup-restore.html +3 -3
- package/web/docs/deployment/network.html +3 -3
- package/web/docs/deployment/node-installation.html +3 -3
- package/web/docs/deployment/node-linux.html +3 -3
- package/web/docs/deployment/node-macos.html +3 -3
- package/web/docs/deployment/node-windows.html +3 -3
- package/web/docs/deployment/production.html +3 -3
- package/web/docs/deployment/security-checklist.html +3 -3
- package/web/docs/deployment/upgrade.html +3 -3
- package/web/docs/en-US/administration/account.html +3 -3
- package/web/docs/en-US/administration/audit.html +3 -3
- package/web/docs/en-US/administration/conversation-templates.html +3 -3
- package/web/docs/en-US/administration/email-notifications.html +3 -3
- package/web/docs/en-US/administration/license.html +3 -3
- package/web/docs/en-US/administration/nodes-workspaces.html +3 -3
- package/web/docs/en-US/administration/oauth.html +3 -3
- package/web/docs/en-US/administration/secrets.html +3 -3
- package/web/docs/en-US/administration/template-workspace-maintenance.html +3 -3
- package/web/docs/en-US/administration/users-organizations.html +3 -3
- package/web/docs/en-US/concepts/architecture.html +3 -3
- package/web/docs/en-US/concepts/data-and-security.html +3 -3
- package/web/docs/en-US/concepts/files-git-terminal.html +3 -3
- package/web/docs/en-US/concepts/node-and-workspace.html +3 -3
- package/web/docs/en-US/concepts/permissions-and-sharing.html +3 -3
- package/web/docs/en-US/concepts/runner-control.html +3 -3
- package/web/docs/en-US/concepts/secrets.html +3 -3
- package/web/docs/en-US/concepts/session-run-turn.html +3 -3
- package/web/docs/en-US/deployment/backup-restore.html +3 -3
- package/web/docs/en-US/deployment/network.html +3 -3
- package/web/docs/en-US/deployment/node-installation.html +3 -3
- package/web/docs/en-US/deployment/node-linux.html +3 -3
- package/web/docs/en-US/deployment/node-macos.html +3 -3
- package/web/docs/en-US/deployment/node-windows.html +3 -3
- package/web/docs/en-US/deployment/production.html +3 -3
- package/web/docs/en-US/deployment/security-checklist.html +3 -3
- package/web/docs/en-US/deployment/upgrade.html +3 -3
- package/web/docs/en-US/getting-started/connect-node.html +3 -3
- package/web/docs/en-US/getting-started/first-agent-session.html +3 -3
- package/web/docs/en-US/getting-started/first-login.html +3 -3
- package/web/docs/en-US/getting-started/next-steps.html +3 -3
- package/web/docs/en-US/getting-started/npm-quick-start.html +3 -3
- package/web/docs/en-US/getting-started/overview.html +3 -3
- package/web/docs/en-US/getting-started/prerequisites.html +3 -3
- package/web/docs/en-US/getting-started/register-workspace.html +3 -3
- package/web/docs/en-US/getting-started/server-installation.html +3 -3
- package/web/docs/en-US/operations/marctl.html +3 -3
- package/web/docs/en-US/reference/configuration.html +3 -3
- package/web/docs/en-US/reference/keyboard-shortcuts.html +3 -3
- package/web/docs/en-US/reference/limits.html +3 -3
- package/web/docs/en-US/reference/ports-paths-data.html +3 -3
- package/web/docs/en-US/reference/status-and-errors.html +3 -3
- package/web/docs/en-US/runners/claude-code.html +3 -3
- package/web/docs/en-US/runners/codex.html +3 -3
- package/web/docs/en-US/runners/mar-agent.html +5 -5
- package/web/docs/en-US/runners/opencode.html +3 -3
- package/web/docs/en-US/runners/overview.html +3 -3
- package/web/docs/en-US/runners/runner-troubleshooting.html +3 -3
- package/web/docs/en-US/troubleshooting/node-offline.html +3 -3
- package/web/docs/en-US/troubleshooting/quick-diagnosis.html +3 -3
- package/web/docs/en-US/troubleshooting/session-run.html +3 -3
- package/web/docs/en-US/troubleshooting/terminal.html +3 -3
- package/web/docs/en-US/troubleshooting/workspace-files.html +3 -3
- package/web/docs/en-US/workbench/browser.html +3 -3
- package/web/docs/en-US/workbench/composer.html +3 -3
- package/web/docs/en-US/workbench/context-and-plan.html +3 -3
- package/web/docs/en-US/workbench/conversation.html +5 -5
- package/web/docs/en-US/workbench/file-reference-and-attachment.html +3 -3
- package/web/docs/en-US/workbench/files.html +3 -3
- package/web/docs/en-US/workbench/git-changes.html +3 -3
- package/web/docs/en-US/workbench/git-history.html +3 -3
- package/web/docs/en-US/workbench/hosted-conversations.html +3 -3
- package/web/docs/en-US/workbench/mobile.html +3 -3
- package/web/docs/en-US/workbench/navigation.html +5 -5
- package/web/docs/en-US/workbench/remote-desktop.html +3 -3
- package/web/docs/en-US/workbench/sessions.html +5 -5
- package/web/docs/en-US/workbench/skills.html +3 -3
- package/web/docs/en-US/workbench/terminal.html +3 -3
- package/web/docs/getting-started/connect-node.html +3 -3
- package/web/docs/getting-started/first-agent-session.html +3 -3
- package/web/docs/getting-started/first-login.html +3 -3
- package/web/docs/getting-started/next-steps.html +3 -3
- package/web/docs/getting-started/npm-quick-start.html +3 -3
- package/web/docs/getting-started/overview.html +3 -3
- package/web/docs/getting-started/prerequisites.html +3 -3
- package/web/docs/getting-started/register-workspace.html +3 -3
- package/web/docs/getting-started/server-installation.html +3 -3
- package/web/docs/hashmap.json +1 -1
- package/web/docs/operations/marctl.html +3 -3
- package/web/docs/reference/configuration.html +3 -3
- package/web/docs/reference/keyboard-shortcuts.html +3 -3
- package/web/docs/reference/limits.html +3 -3
- package/web/docs/reference/ports-paths-data.html +3 -3
- package/web/docs/reference/status-and-errors.html +3 -3
- package/web/docs/runners/claude-code.html +3 -3
- package/web/docs/runners/codex.html +3 -3
- package/web/docs/runners/mar-agent.html +5 -5
- package/web/docs/runners/opencode.html +3 -3
- package/web/docs/runners/overview.html +3 -3
- package/web/docs/runners/runner-troubleshooting.html +3 -3
- package/web/docs/troubleshooting/node-offline.html +3 -3
- package/web/docs/troubleshooting/quick-diagnosis.html +3 -3
- package/web/docs/troubleshooting/session-run.html +3 -3
- package/web/docs/troubleshooting/terminal.html +3 -3
- package/web/docs/troubleshooting/workspace-files.html +3 -3
- package/web/docs/workbench/browser.html +3 -3
- package/web/docs/workbench/composer.html +3 -3
- package/web/docs/workbench/context-and-plan.html +3 -3
- package/web/docs/workbench/conversation.html +5 -5
- package/web/docs/workbench/file-reference-and-attachment.html +3 -3
- package/web/docs/workbench/files.html +3 -3
- package/web/docs/workbench/git-changes.html +3 -3
- package/web/docs/workbench/git-history.html +3 -3
- package/web/docs/workbench/hosted-conversations.html +3 -3
- package/web/docs/workbench/mobile.html +3 -3
- package/web/docs/workbench/navigation.html +5 -5
- package/web/docs/workbench/remote-desktop.html +3 -3
- package/web/docs/workbench/sessions.html +5 -5
- package/web/docs/workbench/skills.html +3 -3
- package/web/docs/workbench/terminal.html +3 -3
- package/web/index.html +2 -2
- package/web/service-worker.js +1 -1
- package/web/web-version.json +1 -1
- package/web/assets/AuthEntryPanel-Bhoj_nQg.js +0 -48
- package/web/assets/AuthEntryPanel-DYqYPKYo.css +0 -1
- package/web/assets/NodeManagementPage-B1pRkn4C.js +0 -1
- package/web/assets/NodeManagementPage-B_2BVxtL.js +0 -1
- package/web/assets/SecretManagementPage-BEFeimjb.js +0 -1
- package/web/assets/SkillCenterPage-1kVeWcR7.js +0 -1
- package/web/assets/WorkbenchPage-DfVhN_W6.js +0 -22
- package/web/assets/WorkspaceManagementPage-CTLDOuL1.js +0 -1
- package/web/assets/WorkspaceManagementPage-DhuGWU7X.js +0 -1
- package/web/assets/channel-CboGpS4W.js +0 -1
- package/web/assets/classDiagram-CYGNFDIV-DgEAkiU7.js +0 -1
- package/web/assets/classDiagram-v2-TLXNO2FR-DgEAkiU7.js +0 -1
- package/web/assets/scoped-http-service-B8SdcVLp.js +0 -8
- package/web/assets/stateDiagram-v2-IH3M54BS-8scXcW8Z.js +0 -1
- package/web/assets/swimlanesDiagram-JKAHXJPX-CAbkZ614.js +0 -8
- package/web/docs/assets/chunks/@localSearchIndexen-US.D5CRVj6u.js +0 -1
- package/web/docs/assets/chunks/@localSearchIndexroot.BF44kcUU.js +0 -1
- package/web/docs/assets/en-US_workbench_conversation.md.BPMpE-bw.js +0 -1
- package/web/docs/assets/en-US_workbench_navigation.md.Ce3mPWXm.js +0 -1
- package/web/docs/assets/en-US_workbench_sessions.md.CAK4Fdx2.js +0 -1
- package/web/docs/assets/workbench_conversation.md.DNzXa3ha.js +0 -1
- package/web/docs/assets/workbench_navigation.md.Br7IvniD.js +0 -1
- package/web/docs/assets/workbench_sessions.md.CPg72_NR.js +0 -1
- /package/web/docs/assets/{en-US_workbench_navigation.md.Ce3mPWXm.lean.js → en-US_workbench_navigation.md.1GRtBnfR.lean.js} +0 -0
- /package/web/docs/assets/{workbench_conversation.md.DNzXa3ha.lean.js → workbench_conversation.md.DUb0SYvh.lean.js} +0 -0
- /package/web/docs/assets/{workbench_navigation.md.Br7IvniD.lean.js → workbench_navigation.md.C0aoTr91.lean.js} +0 -0
- /package/web/docs/assets/{workbench_sessions.md.CPg72_NR.lean.js → workbench_sessions.md.BOKueVhd.lean.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as ae}from"./chunk-XXDRQBXY-
|
|
1
|
+
import{g as ae}from"./chunk-XXDRQBXY-CKOTA957.js";import{s as ce}from"./chunk-POPQ4Y6H-kbtxccTO.js";import{_ as h,l as I,x as le,y as he,A as de,E as j,c as P,i as G,b3 as ge,ab as ue,ac as pe,ad as fe}from"./mermaid.core-DwWdQkHi.js";import"./index-BFcdAbEq.js";import"./FilePreviewLoading-DqAfb1fM.js";import"./mobile-dialog-return-service-BMaWxb-8.js";const _=[];for(let t=0;t<256;++t)_.push((t+256).toString(16).slice(1));function me(t,e=0){return(_[t[e+0]]+_[t[e+1]]+_[t[e+2]]+_[t[e+3]]+"-"+_[t[e+4]]+_[t[e+5]]+"-"+_[t[e+6]]+_[t[e+7]]+"-"+_[t[e+8]]+_[t[e+9]]+"-"+_[t[e+10]]+_[t[e+11]]+_[t[e+12]]+_[t[e+13]]+_[t[e+14]]+_[t[e+15]]).toLowerCase()}const ye=new Uint8Array(16);function Ee(){return crypto.getRandomValues(ye)}function _e(t,e,a){return crypto.randomUUID?crypto.randomUUID():be(t)}function be(t,e,a){t=t||{};const l=t.random??t.rng?.()??Ee();if(l.length<16)throw new Error("Random bytes length must be >= 16");return l[6]=l[6]&15|64,l[8]=l[8]&63|128,me(l)}var q=(function(){var t=h(function(L,s,i,o){for(i=i||{},o=L.length;o--;i[L[o]]=s);return i},"o"),e=[1,4],a=[1,13],l=[1,12],n=[1,15],d=[1,16],f=[1,20],y=[1,19],E=[6,7,8],b=[1,26],v=[1,24],R=[1,25],g=[6,7,11],A=[1,6,13,15,16,19,22],J=[1,33],K=[1,34],$=[1,6,7,11,13,15,16,19,22],H={trace:h(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:h(function(s,i,o,c,p,r,B){var u=r.length-1;switch(p){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[u].id),c.addNode(r[u-1].length,r[u].id,r[u].descr,r[u].type);break;case 16:c.getLogger().trace("Icon: ",r[u]),c.decorateNode({icon:r[u]});break;case 17:case 21:c.decorateNode({class:r[u]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[u].id),c.addNode(0,r[u].id,r[u].descr,r[u].type);break;case 20:c.decorateNode({icon:r[u]});break;case 25:c.getLogger().trace("node found ..",r[u-2]),this.$={id:r[u-1],descr:r[u-1],type:c.getType(r[u-2],r[u])};break;case 26:this.$={id:r[u],descr:r[u],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[u-3]),this.$={id:r[u-3],descr:r[u-1],type:c.getType(r[u-2],r[u])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:a,7:[1,10],9:9,12:11,13:l,14:14,15:n,16:d,17:17,18:18,19:f,22:y},t(E,[2,3]),{1:[2,2]},t(E,[2,4]),t(E,[2,5]),{1:[2,6],6:a,12:21,13:l,14:14,15:n,16:d,17:17,18:18,19:f,22:y},{6:a,9:22,12:11,13:l,14:14,15:n,16:d,17:17,18:18,19:f,22:y},{6:b,7:v,10:23,11:R},t(g,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:f,22:y}),t(g,[2,18]),t(g,[2,19]),t(g,[2,20]),t(g,[2,21]),t(g,[2,23]),t(g,[2,24]),t(g,[2,26],{19:[1,30]}),{20:[1,31]},{6:b,7:v,10:32,11:R},{1:[2,7],6:a,12:21,13:l,14:14,15:n,16:d,17:17,18:18,19:f,22:y},t(A,[2,14],{7:J,11:K}),t($,[2,8]),t($,[2,9]),t($,[2,10]),t(g,[2,15]),t(g,[2,16]),t(g,[2,17]),{20:[1,35]},{21:[1,36]},t(A,[2,13],{7:J,11:K}),t($,[2,11]),t($,[2,12]),{21:[1,37]},t(g,[2,25]),t(g,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:h(function(s,i){if(i.recoverable)this.trace(s);else{var o=new Error(s);throw o.hash=i,o}},"parseError"),parse:h(function(s){var i=this,o=[0],c=[],p=[null],r=[],B=this.table,u="",U=0,Q=0,ie=2,Z=1,se=r.slice.call(arguments,1),m=Object.create(this.lexer),T={yy:{}};for(var W in this.yy)Object.prototype.hasOwnProperty.call(this.yy,W)&&(T.yy[W]=this.yy[W]);m.setInput(s,T.yy),T.yy.lexer=m,T.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var z=m.yylloc;r.push(z);var re=m.options&&m.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function oe(S){o.length=o.length-2*S,p.length=p.length-S,r.length=r.length-S}h(oe,"popStack");function ee(){var S;return S=c.pop()||m.lex()||Z,typeof S!="number"&&(S instanceof Array&&(c=S,S=c.pop()),S=i.symbols_[S]||S),S}h(ee,"lex");for(var k,O,x,X,C={},V,N,te,F;;){if(O=o[o.length-1],this.defaultActions[O]?x=this.defaultActions[O]:((k===null||typeof k>"u")&&(k=ee()),x=B[O]&&B[O][k]),typeof x>"u"||!x.length||!x[0]){var Y="";F=[];for(V in B[O])this.terminals_[V]&&V>ie&&F.push("'"+this.terminals_[V]+"'");m.showPosition?Y="Parse error on line "+(U+1)+`:
|
|
2
2
|
`+m.showPosition()+`
|
|
3
3
|
Expecting `+F.join(", ")+", got '"+(this.terminals_[k]||k)+"'":Y="Parse error on line "+(U+1)+": Unexpected "+(k==Z?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(Y,{text:m.match,token:this.terminals_[k]||k,line:m.yylineno,loc:z,expected:F})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+k);switch(x[0]){case 1:o.push(k),p.push(m.yytext),r.push(m.yylloc),o.push(x[1]),k=null,Q=m.yyleng,u=m.yytext,U=m.yylineno,z=m.yylloc;break;case 2:if(N=this.productions_[x[1]][1],C.$=p[p.length-N],C._$={first_line:r[r.length-(N||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(N||1)].first_column,last_column:r[r.length-1].last_column},re&&(C._$.range=[r[r.length-(N||1)].range[0],r[r.length-1].range[1]]),X=this.performAction.apply(C,[u,Q,U,T.yy,x[1],p,r].concat(se)),typeof X<"u")return X;N&&(o=o.slice(0,-1*N*2),p=p.slice(0,-1*N),r=r.slice(0,-1*N)),o.push(this.productions_[x[1]][0]),p.push(C.$),r.push(C._$),te=B[o[o.length-2]][o[o.length-1]],o.push(te);break;case 3:return!0}}return!0},"parse")},ne=(function(){var L={EOF:1,parseError:h(function(i,o){if(this.yy.parser)this.yy.parser.parseError(i,o);else throw new Error(i)},"parseError"),setInput:h(function(s,i){return this.yy=i||this.yy||{},this._input=s,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:h(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var i=s.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:h(function(s){var i=s.length,o=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var p=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:o?(o.length===c.length?this.yylloc.first_column:0)+c[c.length-o.length].length-o[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:h(function(){return this._more=!0,this},"more"),reject:h(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:h(function(s){this.unput(this.match.slice(s))},"less"),pastInput:h(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:h(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:h(function(){var s=this.pastInput(),i=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as r,p as i,q as a,ax as c}from"./index-
|
|
1
|
+
import{_ as r,p as i,q as a,ax as c}from"./index-BFcdAbEq.js";const u={},l={class:"mar-busy-indicator","aria-hidden":"true"};function d(e,n){return i(),a("i",l)}const f=r(u,[["render",d]]),o=new WeakMap;function m(e){if(typeof window>"u"||typeof window.matchMedia!="function")return;const n=e.component;if(n===null||o.has(n))return;const t=n.exposed;if(t===null)return;const s=c({isOpen:()=>n.props.modelValue===!0,close:()=>t.handleClose()});o.set(n,s),s.start()}function _(e){e.component!==null&&(o.get(e.component)?.dispose(),o.delete(e.component))}export{f as M,m,_ as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e,t as a}from"./index-
|
|
1
|
+
import{e,t as a}from"./index-BFcdAbEq.js";function u(t,o){const r=e(t)??t;if(typeof r!="string"||!/^[A-Z][A-Z0-9_]+$/u.test(r))return o;const s=a(`oauthErrors.${r}`);return s===`oauthErrors.${r}`?o:s}export{u as o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as l,r as m,d as a}from"./chunk-SVP7TREG-
|
|
1
|
+
import{g as l,r as m,d as a}from"./chunk-SVP7TREG-hAVk4-kZ.js";import{p}from"./chunk-JWPE2WC7-BpmOE-nl.js";import{_ as t,l as o}from"./mermaid.core-DwWdQkHi.js";import{M as u,d as c}from"./cynefin-OW5HDTMX-D-Ayn9P9.js";import"./index-BFcdAbEq.js";import"./FilePreviewLoading-DqAfb1fM.js";import"./mobile-dialog-return-service-BMaWxb-8.js";var f=c().RailroadPeg.parser.LangiumParser,i=t(e=>{const r=e.alternatives.map(d);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformOrderedChoice"),d=t(e=>{const r=e.elements.map(P);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformSequence"),P=t(e=>{const r=g(e.suffix);return e.operator?{type:"special",text:e.operator==="&"?`&${s(r)}`:`!${s(r)}`}:r},"transformPrefix"),s=t(e=>{switch(e.type){case"terminal":return`"${e.value}"`;case"nonterminal":return e.name;case"special":return e.text;default:return"(...)"}},"nodeToLabel"),g=t(e=>{const r=v(e.primary);if(!e.operator)return r;switch(e.operator){case"?":return{type:"optional",element:r};case"*":return{type:"repetition",element:r,min:0,max:1/0};case"+":return{type:"repetition",element:r,min:1,max:1/0};default:throw new Error(`Unsupported PEG suffix operator: ${e.operator}`)}},"transformSuffix"),v=t(e=>{switch(e.$type){case"PegLiteral":return{type:"terminal",value:e.value};case"PegIdentifier":return{type:"nonterminal",name:e.name};case"PegGroup":return i(e.element);case"PegAny":return{type:"special",text:e.dot};default:throw new Error(`Unsupported PEG primary node: ${e.$type}`)}},"transformPrimary"),y=t(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=t(e=>{p(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(y(r)))},"populateDb"),b={parse:t(e=>{a.clear(),o.debug("[PEG Parser] Starting Langium parse");const r=f.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new u(r);const n=r.value;o.debug("[PEG Parser] Parsed rules:",n.rules.length),h(n),o.debug("[PEG Parser] Parse complete")},"parse"),parser:{yy:a}},R={parser:b,db:a,renderer:m,styles:l};export{R as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as at}from"./chunk-JWPE2WC7-
|
|
1
|
+
import{p as at}from"./chunk-JWPE2WC7-BpmOE-nl.js";import{L as T,O as P,b2 as rt,g as nt,s as it,a as ot,b as st,q as lt,p as ct,_ as g,l as B,c as ut,D as dt,G as gt,a2 as pt,d as ht,r as ft,E as mt}from"./mermaid.core-DwWdQkHi.js";import{p as vt}from"./cynefin-OW5HDTMX-D-Ayn9P9.js";import{d as Z}from"./arc-C_a66pLd.js";import{o as xt}from"./ordinal-Cboi1Yqb.js";import"./index-BFcdAbEq.js";import"./FilePreviewLoading-DqAfb1fM.js";import"./mobile-dialog-return-service-BMaWxb-8.js";import"./init-Gi6I4Gst.js";function St(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function yt(t){return t}function wt(){var t=yt,n=St,y=null,b=T(0),l=T(P),p=T(0);function i(e){var r,s=(e=rt(e)).length,h,w,$=0,f=new Array(s),o=new Array(s),D=+b.apply(this,arguments),z=Math.min(P,Math.max(-P,l.apply(this,arguments)-D)),k,R=Math.min(Math.abs(z)/s,p.apply(this,arguments)),u=R*(z<0?-1:1),A;for(r=0;r<s;++r)(A=o[f[r]=r]=+t(e[r],r,e))>0&&($+=A);for(n!=null?f.sort(function(M,m){return n(o[M],o[m])}):y!=null&&f.sort(function(M,m){return y(e[M],e[m])}),r=0,w=$?(z-s*u)/$:0;r<s;++r,D=k)h=f[r],A=o[h],k=D+(A>0?A*w:0)+u,o[h]={data:e[h],index:r,value:A,startAngle:D,endAngle:k,padAngle:R};return o}return i.value=function(e){return arguments.length?(t=typeof e=="function"?e:T(+e),i):t},i.sortValues=function(e){return arguments.length?(n=e,y=null,i):n},i.sort=function(e){return arguments.length?(y=e,n=null,i):y},i.startAngle=function(e){return arguments.length?(b=typeof e=="function"?e:T(+e),i):b},i.endAngle=function(e){return arguments.length?(l=typeof e=="function"?e:T(+e),i):l},i.padAngle=function(e){return arguments.length?(p=typeof e=="function"?e:T(+e),i):p},i}var At=mt.pie,I={sections:new Map,showData:!1},_=I.sections,V=I.showData,Ct=structuredClone(At),$t=g(()=>structuredClone(Ct),"getConfig"),Dt=g(()=>{_=new Map,V=I.showData,ft()},"clear"),Tt=g(({label:t,value:n})=>{if(n<0)throw new Error(`"${t}" has invalid value: ${n}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);_.has(t)||(_.set(t,n),B.debug(`added new section: ${t}, with value: ${n}`))},"addSection"),bt=g(()=>_,"getSections"),kt=g(t=>{V=t},"setShowData"),Et=g(()=>V,"getShowData"),J={getConfig:$t,clear:Dt,setDiagramTitle:ct,getDiagramTitle:lt,setAccTitle:st,getAccTitle:ot,setAccDescription:it,getAccDescription:nt,addSection:Tt,getSections:bt,setShowData:kt,getShowData:Et},zt=g((t,n)=>{at(t,n),n.setShowData(t.showData),t.sections.map(n.addSection)},"populateDb"),Mt={parse:g(async t=>{const n=await vt("pie",t);B.debug(n),zt(n,J)},"parse")},Lt=g(t=>`
|
|
2
2
|
.pieCircle{
|
|
3
3
|
stroke: ${t.pieStrokeColor};
|
|
4
4
|
stroke-width : ${t.pieStrokeWidth};
|
package/web/assets/{quadrantDiagram-AXDQQJYC-DnHarN-H.js → quadrantDiagram-AXDQQJYC-Cn1Vm6wr.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{s as Ae,g as ke,q as ae,p as Fe,a as Pe,b as ve,_ as o,c as zt,l as bt,j as Lt,d as Ce,r as Le,E as z,i as Ee,X as De}from"./mermaid.core-
|
|
1
|
+
import{s as Ae,g as ke,q as ae,p as Fe,a as Pe,b as ve,_ as o,c as zt,l as bt,j as Lt,d as Ce,r as Le,E as z,i as Ee,X as De}from"./mermaid.core-DwWdQkHi.js";import{l as ie}from"./linear-UBmXZMat.js";import"./index-BFcdAbEq.js";import"./FilePreviewLoading-DqAfb1fM.js";import"./mobile-dialog-return-service-BMaWxb-8.js";import"./init-Gi6I4Gst.js";import"./defaultLocale-DX6XiGOO.js";var Et=(function(){var t=o(function(Y,r,l,x){for(l=l||{},x=Y.length;x--;l[Y[x]]=r);return l},"o"),n=[1,3],f=[1,4],d=[1,5],h=[1,6],p=[1,7],y=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],_=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],a=[55,56,57],k=[2,36],u=[1,37],T=[1,36],m=[1,38],q=[1,35],b=[1,43],g=[1,41],A=[1,45],ht=[1,14],xt=[1,23],ft=[1,18],gt=[1,19],ct=[1,20],_t=[1,21],dt=[1,22],i=[1,24],Vt=[1,25],It=[1,26],wt=[1,27],Bt=[1,28],Rt=[1,29],U=[1,32],Q=[1,33],F=[1,34],P=[1,39],v=[1,40],C=[1,42],L=[1,44],X=[1,63],H=[1,62],E=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],Nt=[1,66],Wt=[1,67],Ut=[1,68],Qt=[1,69],Ot=[1,70],Xt=[1,71],Ht=[1,72],Mt=[1,73],Yt=[1,74],jt=[1,75],Gt=[1,76],Kt=[1,77],w=[4,5,6,7,8,9,10,11,12,13,14,15,18],K=[1,91],Z=[1,92],J=[1,93],$=[1,100],tt=[1,94],et=[1,97],it=[1,95],at=[1,96],nt=[1,98],st=[1,99],At=[1,103],Zt=[10,55,56,57],N=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],kt={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:o(function(r,l,x,c,S,e,ut){var s=e.length-1;switch(S){case 23:this.$=e[s];break;case 24:this.$=e[s-1]+""+e[s];break;case 26:this.$=e[s-1]+e[s];break;case 27:this.$=[e[s].trim()];break;case 28:e[s-2].push(e[s].trim()),this.$=e[s-2];break;case 29:this.$=e[s-4],c.addClass(e[s-2],e[s]);break;case 37:this.$=[];break;case 42:this.$=e[s].trim(),c.setDiagramTitle(this.$);break;case 43:this.$=e[s].trim(),c.setAccTitle(this.$);break;case 44:case 45:this.$=e[s].trim(),c.setAccDescription(this.$);break;case 46:c.addSection(e[s].substr(8)),this.$=e[s].substr(8);break;case 47:c.addPoint(e[s-3],"",e[s-1],e[s],[]);break;case 48:c.addPoint(e[s-4],e[s-3],e[s-1],e[s],[]);break;case 49:c.addPoint(e[s-4],"",e[s-2],e[s-1],e[s]);break;case 50:c.addPoint(e[s-5],e[s-4],e[s-2],e[s-1],e[s]);break;case 51:c.setXAxisLeftText(e[s-2]),c.setXAxisRightText(e[s]);break;case 52:e[s-1].text+=" ⟶ ",c.setXAxisLeftText(e[s-1]);break;case 53:c.setXAxisLeftText(e[s]);break;case 54:c.setYAxisBottomText(e[s-2]),c.setYAxisTopText(e[s]);break;case 55:e[s-1].text+=" ⟶ ",c.setYAxisBottomText(e[s-1]);break;case 56:c.setYAxisBottomText(e[s]);break;case 57:c.setQuadrant1Text(e[s]);break;case 58:c.setQuadrant2Text(e[s]);break;case 59:c.setQuadrant3Text(e[s]);break;case 60:c.setQuadrant4Text(e[s]);break;case 64:this.$={text:e[s],type:"text"};break;case 65:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 66:this.$={text:e[s],type:"text"};break;case 67:this.$={text:e[s],type:"markdown"};break;case 68:this.$=e[s];break;case 69:this.$=e[s-1]+""+e[s];break}},"anonymous"),table:[{18:n,26:1,27:2,28:f,55:d,56:h,57:p},{1:[3]},{18:n,26:8,27:2,28:f,55:d,56:h,57:p},{18:n,26:9,27:2,28:f,55:d,56:h,57:p},t(y,[2,33],{29:10}),t(_,[2,61]),t(_,[2,62]),t(_,[2,63]),{1:[2,30]},{1:[2,31]},t(a,k,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:u,5:T,10:m,12:q,13:b,14:g,15:A,18:ht,25:xt,35:ft,37:gt,39:ct,41:_t,42:dt,48:i,50:Vt,51:It,52:wt,53:Bt,54:Rt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(y,[2,34]),{27:46,55:d,56:h,57:p},t(a,[2,37]),t(a,k,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:u,5:T,10:m,12:q,13:b,14:g,15:A,18:ht,25:xt,35:ft,37:gt,39:ct,41:_t,42:dt,48:i,50:Vt,51:It,52:wt,53:Bt,54:Rt,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(a,[2,39]),t(a,[2,40]),t(a,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(a,[2,45]),t(a,[2,46]),{18:[1,51]},{4:u,5:T,10:m,12:q,13:b,14:g,15:A,43:52,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:m,12:q,13:b,14:g,15:A,43:53,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:m,12:q,13:b,14:g,15:A,43:54,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:m,12:q,13:b,14:g,15:A,43:55,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:m,12:q,13:b,14:g,15:A,43:56,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,10:m,12:q,13:b,14:g,15:A,43:57,58:31,60:U,61:Q,63:F,64:P,65:v,66:C,67:L},{4:u,5:T,8:X,10:m,12:q,13:b,14:g,15:A,18:H,44:[1,58],47:[1,59],58:61,59:60,63:F,64:P,65:v,66:C,67:L},t(E,[2,64]),t(E,[2,66]),t(E,[2,67]),t(E,[2,70]),t(E,[2,71]),t(E,[2,72]),t(E,[2,73]),t(E,[2,74]),t(E,[2,75]),t(E,[2,76]),t(E,[2,77]),t(E,[2,78]),t(E,[2,79]),t(E,[2,80]),t(E,[2,81]),t(y,[2,35]),t(a,[2,38]),t(a,[2,42]),t(a,[2,43]),t(a,[2,44]),{3:65,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Xt,10:Ht,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,21:64},t(a,[2,53],{59:60,58:61,4:u,5:T,8:X,10:m,12:q,13:b,14:g,15:A,18:H,49:[1,78],63:F,64:P,65:v,66:C,67:L}),t(a,[2,56],{59:60,58:61,4:u,5:T,8:X,10:m,12:q,13:b,14:g,15:A,18:H,49:[1,79],63:F,64:P,65:v,66:C,67:L}),t(a,[2,57],{59:60,58:61,4:u,5:T,8:X,10:m,12:q,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,58],{59:60,58:61,4:u,5:T,8:X,10:m,12:q,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,59],{59:60,58:61,4:u,5:T,8:X,10:m,12:q,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,60],{59:60,58:61,4:u,5:T,8:X,10:m,12:q,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),{45:[1,80]},{44:[1,81]},t(E,[2,65]),t(E,[2,82]),t(E,[2,83]),t(E,[2,84]),{3:83,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Xt,10:Ht,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,18:[1,82]},t(w,[2,23]),t(w,[2,1]),t(w,[2,2]),t(w,[2,3]),t(w,[2,4]),t(w,[2,5]),t(w,[2,6]),t(w,[2,7]),t(w,[2,8]),t(w,[2,9]),t(w,[2,10]),t(w,[2,11]),t(w,[2,12]),t(a,[2,52],{58:31,43:84,4:u,5:T,10:m,12:q,13:b,14:g,15:A,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),t(a,[2,55],{58:31,43:85,4:u,5:T,10:m,12:q,13:b,14:g,15:A,60:U,61:Q,63:F,64:P,65:v,66:C,67:L}),{46:[1,86]},{45:[1,87]},{4:K,5:Z,6:J,8:$,11:tt,13:et,16:90,17:it,18:at,19:nt,20:st,22:89,23:88},t(w,[2,24]),t(a,[2,51],{59:60,58:61,4:u,5:T,8:X,10:m,12:q,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,54],{59:60,58:61,4:u,5:T,8:X,10:m,12:q,13:b,14:g,15:A,18:H,63:F,64:P,65:v,66:C,67:L}),t(a,[2,47],{22:89,16:90,23:101,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),{46:[1,102]},t(a,[2,29],{10:At}),t(Zt,[2,27],{16:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),t(N,[2,25]),t(N,[2,13]),t(N,[2,14]),t(N,[2,15]),t(N,[2,16]),t(N,[2,17]),t(N,[2,18]),t(N,[2,19]),t(N,[2,20]),t(N,[2,21]),t(N,[2,22]),t(a,[2,49],{10:At}),t(a,[2,48],{22:89,16:90,23:105,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),{4:K,5:Z,6:J,8:$,11:tt,13:et,16:90,17:it,18:at,19:nt,20:st,22:106},t(N,[2,26]),t(a,[2,50],{10:At}),t(Zt,[2,28],{16:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st})],defaultActions:{8:[2,30],9:[2,31]},parseError:o(function(r,l){if(l.recoverable)this.trace(r);else{var x=new Error(r);throw x.hash=l,x}},"parseError"),parse:o(function(r){var l=this,x=[0],c=[],S=[null],e=[],ut=this.table,s="",yt=0,Jt=0,qe=2,$t=1,be=e.slice.call(arguments,1),D=Object.create(this.lexer),j={yy:{}};for(var Ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ft)&&(j.yy[Ft]=this.yy[Ft]);D.setInput(r,j.yy),j.yy.lexer=D,j.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Pt=D.yylloc;e.push(Pt);var Se=D.options&&D.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(R){x.length=x.length-2*R,S.length=S.length-R,e.length=e.length-R}o(_e,"popStack");function te(){var R;return R=c.pop()||D.lex()||$t,typeof R!="number"&&(R instanceof Array&&(c=R,R=c.pop()),R=l.symbols_[R]||R),R}o(te,"lex");for(var B,G,W,vt,rt={},Tt,M,ee,mt;;){if(G=x[x.length-1],this.defaultActions[G]?W=this.defaultActions[G]:((B===null||typeof B>"u")&&(B=te()),W=ut[G]&&ut[G][B]),typeof W>"u"||!W.length||!W[0]){var Ct="";mt=[];for(Tt in ut[G])this.terminals_[Tt]&&Tt>qe&&mt.push("'"+this.terminals_[Tt]+"'");D.showPosition?Ct="Parse error on line "+(yt+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+mt.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Ct="Parse error on line "+(yt+1)+": Unexpected "+(B==$t?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Ct,{text:D.match,token:this.terminals_[B]||B,line:D.yylineno,loc:Pt,expected:mt})}if(W[0]instanceof Array&&W.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+B);switch(W[0]){case 1:x.push(B),S.push(D.yytext),e.push(D.yylloc),x.push(W[1]),B=null,Jt=D.yyleng,s=D.yytext,yt=D.yylineno,Pt=D.yylloc;break;case 2:if(M=this.productions_[W[1]][1],rt.$=S[S.length-M],rt._$={first_line:e[e.length-(M||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(M||1)].first_column,last_column:e[e.length-1].last_column},Se&&(rt._$.range=[e[e.length-(M||1)].range[0],e[e.length-1].range[1]]),vt=this.performAction.apply(rt,[s,Jt,yt,j.yy,W[1],S,e].concat(be)),typeof vt<"u")return vt;M&&(x=x.slice(0,-1*M*2),S=S.slice(0,-1*M),e=e.slice(0,-1*M)),x.push(this.productions_[W[1]][0]),S.push(rt.$),e.push(rt._$),ee=ut[x[x.length-2]][x[x.length-1]],x.push(ee);break;case 3:return!0}}return!0},"parse")},me=(function(){var Y={EOF:1,parseError:o(function(l,x){if(this.yy.parser)this.yy.parser.parseError(l,x);else throw new Error(l)},"parseError"),setInput:o(function(r,l){return this.yy=l||this.yy||{},this._input=r,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:o(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:o(function(r){var l=r.length,x=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1&&(this.yylineno-=x.length-1);var S=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:x?(x.length===c.length?this.yylloc.first_column:0)+c[c.length-x.length].length-x[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(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:o(function(r){this.unput(this.match.slice(r))},"less"),pastInput:o(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
package/web/assets/{railroadDiagram-O6MQD6OU-JiujkUdt.js → railroadDiagram-O6MQD6OU-BGhcaM--.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as s,r as l,d as t}from"./chunk-SVP7TREG-
|
|
1
|
+
import{g as s,r as l,d as t}from"./chunk-SVP7TREG-hAVk4-kZ.js";import{p as m}from"./chunk-JWPE2WC7-BpmOE-nl.js";import{_ as n,l as i}from"./mermaid.core-DwWdQkHi.js";import{M as p,c as u}from"./cynefin-OW5HDTMX-D-Ayn9P9.js";import"./index-BFcdAbEq.js";import"./FilePreviewLoading-DqAfb1fM.js";import"./mobile-dialog-return-service-BMaWxb-8.js";var d=u().Railroad.parser.LangiumParser,a=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{const r=e.elements.map(a);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{const r=e.alternatives.map(a);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:a(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:a(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=n(e=>({name:e.name,definition:a(e.definition)}),"transformRule"),g=n(e=>{m(e,t),e.title&&t.setTitle(e.title),e.rules.map(r=>t.addRule(c(r)))},"populateDb"),y={parse:n(e=>{t.clear(),i.debug("[Railroad Parser] Starting Langium parse");const r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new p(r);const o=r.value;i.debug("[Railroad Parser] Parsed rules:",o.rules.length),g(o),i.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t}},b={parser:y,db:t,renderer:l,styles:s};export{b as diagram};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Ge}from"./chunk-XXDRQBXY-7cHHKyJX.js";import{s as Xe}from"./chunk-POPQ4Y6H-Byz6j4z2.js";import{_ as m,A as Be,b as Je,a as Ze,s as et,g as tt,p as st,q as it,c as Ne,l as qe,r as rt,v as nt,x as at,y as lt,z as ct}from"./mermaid.core-CtV3j4ZJ.js";import"./index-CQXvli2Q.js";import"./FilePreviewLoading-TTlaPt8Y.js";import"./mobile-dialog-return-service-B-slT15v.js";var Ce=(function(){var e=m(function($,i,a,o){for(a=a||{},o=$.length;o--;a[$[o]]=i);return a},"o"),r=[1,3],u=[1,4],h=[1,5],f=[1,6],n=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],c=[1,22],p=[2,7],y=[1,26],S=[1,27],k=[1,28],q=[1,29],C=[1,33],A=[1,34],V=[1,35],v=[1,36],L=[1,37],x=[1,38],O=[1,24],w=[1,31],D=[1,32],M=[1,30],R=[1,39],g=[1,40],E=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],X=[89,90],Ae=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Ee=[27,29],Ve=[1,70],ve=[1,71],Le=[1,72],xe=[1,73],Oe=[1,74],we=[1,75],De=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],fe=[1,114],me=[1,115],Se={trace:m(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:m(function(i,a,o,s,d,t,de){var l=t.length-1;switch(d){case 4:this.$=t[l].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[l].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[l-3],t[l-4]);break;case 22:s.addRequirement(t[l-5],t[l-6]),s.setClass([t[l-5]],t[l-3]);break;case 23:s.setNewReqId(t[l-2]);break;case 24:s.setNewReqText(t[l-2]);break;case 25:s.setNewReqRisk(t[l-2]);break;case 26:s.setNewReqVerifyMethod(t[l-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[l-3]);break;case 43:s.addElement(t[l-5]),s.setClass([t[l-5]],t[l-3]);break;case 44:s.setNewElementType(t[l-2]);break;case 45:s.setNewElementDocRef(t[l-2]);break;case 48:s.addRelationship(t[l-2],t[l],t[l-4]);break;case 49:s.addRelationship(t[l-2],t[l-4],t[l]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[l-2],s.defineClass(t[l-1],t[l]);break;case 58:s.setClass(t[l-1],t[l]);break;case 59:s.setClass([t[l-2]],t[l]);break;case 60:case 62:this.$=[t[l]];break;case 61:case 63:this.$=t[l-2].concat([t[l]]);break;case 64:this.$=t[l-2],s.setCssStyle(t[l-1],t[l]);break;case 65:this.$=[t[l]];break;case 66:t[l-2].push(t[l]),this.$=t[l-2];break;case 68:this.$=t[l-1]+t[l];break}},"anonymous"),table:[{3:1,4:2,6:r,9:u,11:h,13:f},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:u,11:h,13:f},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(n,[2,6]),{3:12,4:2,6:r,9:u,11:h,13:f},{1:[2,2]},{4:17,5:c,7:13,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},e(n,[2,4]),e(n,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:c,7:42,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:43,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:44,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:45,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:46,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:47,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:48,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:49,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:50,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(E,[2,17]),e(E,[2,18]),e(E,[2,19]),e(E,[2,20]),{30:60,33:62,75:P,89:R,90:g},{30:63,33:62,75:P,89:R,90:g},{30:64,33:62,75:P,89:R,90:g},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ae,[2,81]),e(Ae,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Ee,[2,79]),e(Ee,[2,80]),{27:[1,67],29:[1,68]},e(Ee,[2,85]),e(Ee,[2,86]),{62:69,65:Ve,66:ve,67:Le,68:xe,69:Oe,70:we,71:De},{62:77,65:Ve,66:ve,67:Le,68:xe,69:Oe,70:we,71:De},{30:78,33:62,75:P,89:R,90:g},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:P,76:U,89:R,90:g},{5:[1,95]},{30:96,33:62,75:P,89:R,90:g},{5:[1,97]},{30:98,33:62,75:P,89:R,90:g},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(E,[2,59],{76:U}),e(E,[2,64],{76:Me}),{33:103,75:[1,102],89:R,90:g},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(T,[2,67]),e(T,[2,69]),e(T,[2,70]),e(T,[2,71]),e(T,[2,72]),e(T,[2,73]),e(T,[2,74]),e(T,[2,75]),e(T,[2,76]),e(T,[2,77]),e(T,[2,78]),e(E,[2,57],{76:Me}),e(E,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:fe,59:me},{27:[1,118],76:U},{33:119,89:R,90:g},{33:120,89:R,90:g},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(T,[2,68]),e(E,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(E,[2,28]),{5:[1,127]},e(E,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:fe,59:me},e(E,[2,47]),{5:[1,131]},e(E,[2,48]),e(E,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:R,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(E,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(E,[2,46]),{5:he,40:ue,56:152,57:fe,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(E,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(E,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:fe,59:me},{5:he,40:ue,56:164,57:fe,59:me},e(E,[2,23]),e(E,[2,24]),e(E,[2,25]),e(E,[2,26]),e(E,[2,44]),e(E,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:m(function(i,a){if(a.recoverable)this.trace(i);else{var o=new Error(i);throw o.hash=a,o}},"parseError"),parse:m(function(i){var a=this,o=[0],s=[],d=[null],t=[],de=this.table,l="",ge=0,$e=0,Ke=2,Pe=1,We=t.slice.call(arguments,1),_=Object.create(this.lexer),z={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(z.yy[be]=this.yy[be]);_.setInput(i,z.yy),z.yy.lexer=_,z.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Ie=_.yylloc;t.push(Ie);var je=_.options&&_.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ze(I){o.length=o.length-2*I,d.length=d.length-I,t.length=t.length-I}m(ze,"popStack");function Ue(){var I;return I=s.pop()||_.lex()||Pe,typeof I!="number"&&(I instanceof Array&&(s=I,I=s.pop()),I=a.symbols_[I]||I),I}m(Ue,"lex");for(var b,G,N,ke,J={},ye,F,Ye,_e;;){if(G=o[o.length-1],this.defaultActions[G]?N=this.defaultActions[G]:((b===null||typeof b>"u")&&(b=Ue()),N=de[G]&&de[G][b]),typeof N>"u"||!N.length||!N[0]){var Te="";_e=[];for(ye in de[G])this.terminals_[ye]&&ye>Ke&&_e.push("'"+this.terminals_[ye]+"'");_.showPosition?Te="Parse error on line "+(ge+1)+`:
|
|
1
|
+
import{g as Ge}from"./chunk-XXDRQBXY-CKOTA957.js";import{s as Xe}from"./chunk-POPQ4Y6H-kbtxccTO.js";import{_ as m,A as Be,b as Je,a as Ze,s as et,g as tt,p as st,q as it,c as Ne,l as qe,r as rt,v as nt,x as at,y as lt,z as ct}from"./mermaid.core-DwWdQkHi.js";import"./index-BFcdAbEq.js";import"./FilePreviewLoading-DqAfb1fM.js";import"./mobile-dialog-return-service-BMaWxb-8.js";var Ce=(function(){var e=m(function($,i,a,o){for(a=a||{},o=$.length;o--;a[$[o]]=i);return a},"o"),r=[1,3],u=[1,4],h=[1,5],f=[1,6],n=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],c=[1,22],p=[2,7],y=[1,26],S=[1,27],k=[1,28],q=[1,29],C=[1,33],A=[1,34],V=[1,35],v=[1,36],L=[1,37],x=[1,38],O=[1,24],w=[1,31],D=[1,32],M=[1,30],R=[1,39],g=[1,40],E=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],X=[89,90],Ae=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Ee=[27,29],Ve=[1,70],ve=[1,71],Le=[1,72],xe=[1,73],Oe=[1,74],we=[1,75],De=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],fe=[1,114],me=[1,115],Se={trace:m(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:m(function(i,a,o,s,d,t,de){var l=t.length-1;switch(d){case 4:this.$=t[l].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[l].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[l-3],t[l-4]);break;case 22:s.addRequirement(t[l-5],t[l-6]),s.setClass([t[l-5]],t[l-3]);break;case 23:s.setNewReqId(t[l-2]);break;case 24:s.setNewReqText(t[l-2]);break;case 25:s.setNewReqRisk(t[l-2]);break;case 26:s.setNewReqVerifyMethod(t[l-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[l-3]);break;case 43:s.addElement(t[l-5]),s.setClass([t[l-5]],t[l-3]);break;case 44:s.setNewElementType(t[l-2]);break;case 45:s.setNewElementDocRef(t[l-2]);break;case 48:s.addRelationship(t[l-2],t[l],t[l-4]);break;case 49:s.addRelationship(t[l-2],t[l-4],t[l]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[l-2],s.defineClass(t[l-1],t[l]);break;case 58:s.setClass(t[l-1],t[l]);break;case 59:s.setClass([t[l-2]],t[l]);break;case 60:case 62:this.$=[t[l]];break;case 61:case 63:this.$=t[l-2].concat([t[l]]);break;case 64:this.$=t[l-2],s.setCssStyle(t[l-1],t[l]);break;case 65:this.$=[t[l]];break;case 66:t[l-2].push(t[l]),this.$=t[l-2];break;case 68:this.$=t[l-1]+t[l];break}},"anonymous"),table:[{3:1,4:2,6:r,9:u,11:h,13:f},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:u,11:h,13:f},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(n,[2,6]),{3:12,4:2,6:r,9:u,11:h,13:f},{1:[2,2]},{4:17,5:c,7:13,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},e(n,[2,4]),e(n,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:c,7:42,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:43,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:44,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:45,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:46,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:47,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:48,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:49,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{4:17,5:c,7:50,8:p,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:y,22:S,23:k,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:O,72:w,74:D,77:M,89:R,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(E,[2,17]),e(E,[2,18]),e(E,[2,19]),e(E,[2,20]),{30:60,33:62,75:P,89:R,90:g},{30:63,33:62,75:P,89:R,90:g},{30:64,33:62,75:P,89:R,90:g},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ae,[2,81]),e(Ae,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Ee,[2,79]),e(Ee,[2,80]),{27:[1,67],29:[1,68]},e(Ee,[2,85]),e(Ee,[2,86]),{62:69,65:Ve,66:ve,67:Le,68:xe,69:Oe,70:we,71:De},{62:77,65:Ve,66:ve,67:Le,68:xe,69:Oe,70:we,71:De},{30:78,33:62,75:P,89:R,90:g},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:P,76:U,89:R,90:g},{5:[1,95]},{30:96,33:62,75:P,89:R,90:g},{5:[1,97]},{30:98,33:62,75:P,89:R,90:g},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(E,[2,59],{76:U}),e(E,[2,64],{76:Me}),{33:103,75:[1,102],89:R,90:g},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(T,[2,67]),e(T,[2,69]),e(T,[2,70]),e(T,[2,71]),e(T,[2,72]),e(T,[2,73]),e(T,[2,74]),e(T,[2,75]),e(T,[2,76]),e(T,[2,77]),e(T,[2,78]),e(E,[2,57],{76:Me}),e(E,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:fe,59:me},{27:[1,118],76:U},{33:119,89:R,90:g},{33:120,89:R,90:g},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(T,[2,68]),e(E,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(E,[2,28]),{5:[1,127]},e(E,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:fe,59:me},e(E,[2,47]),{5:[1,131]},e(E,[2,48]),e(E,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:R,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(E,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(E,[2,46]),{5:he,40:ue,56:152,57:fe,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(E,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(E,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:fe,59:me},{5:he,40:ue,56:164,57:fe,59:me},e(E,[2,23]),e(E,[2,24]),e(E,[2,25]),e(E,[2,26]),e(E,[2,44]),e(E,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:m(function(i,a){if(a.recoverable)this.trace(i);else{var o=new Error(i);throw o.hash=a,o}},"parseError"),parse:m(function(i){var a=this,o=[0],s=[],d=[null],t=[],de=this.table,l="",ge=0,$e=0,Ke=2,Pe=1,We=t.slice.call(arguments,1),_=Object.create(this.lexer),z={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(z.yy[be]=this.yy[be]);_.setInput(i,z.yy),z.yy.lexer=_,z.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Ie=_.yylloc;t.push(Ie);var je=_.options&&_.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ze(I){o.length=o.length-2*I,d.length=d.length-I,t.length=t.length-I}m(ze,"popStack");function Ue(){var I;return I=s.pop()||_.lex()||Pe,typeof I!="number"&&(I instanceof Array&&(s=I,I=s.pop()),I=a.symbols_[I]||I),I}m(Ue,"lex");for(var b,G,N,ke,J={},ye,F,Ye,_e;;){if(G=o[o.length-1],this.defaultActions[G]?N=this.defaultActions[G]:((b===null||typeof b>"u")&&(b=Ue()),N=de[G]&&de[G][b]),typeof N>"u"||!N.length||!N[0]){var Te="";_e=[];for(ye in de[G])this.terminals_[ye]&&ye>Ke&&_e.push("'"+this.terminals_[ye]+"'");_.showPosition?Te="Parse error on line "+(ge+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+_e.join(", ")+", got '"+(this.terminals_[b]||b)+"'":Te="Parse error on line "+(ge+1)+": Unexpected "+(b==Pe?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(Te,{text:_.match,token:this.terminals_[b]||b,line:_.yylineno,loc:Ie,expected:_e})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+G+", token: "+b);switch(N[0]){case 1:o.push(b),d.push(_.yytext),t.push(_.yylloc),o.push(N[1]),b=null,$e=_.yyleng,l=_.yytext,ge=_.yylineno,Ie=_.yylloc;break;case 2:if(F=this.productions_[N[1]][1],J.$=d[d.length-F],J._$={first_line:t[t.length-(F||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(F||1)].first_column,last_column:t[t.length-1].last_column},je&&(J._$.range=[t[t.length-(F||1)].range[0],t[t.length-1].range[1]]),ke=this.performAction.apply(J,[l,$e,ge,z.yy,N[1],d,t].concat(We)),typeof ke<"u")return ke;F&&(o=o.slice(0,-1*F*2),d=d.slice(0,-1*F),t=t.slice(0,-1*F)),o.push(this.productions_[N[1]][0]),d.push(J.$),t.push(J._$),Ye=de[o[o.length-2]][o[o.length-1]],o.push(Ye);break;case 3:return!0}}return!0},"parse")},He=(function(){var $={EOF:1,parseError:m(function(a,o){if(this.yy.parser)this.yy.parser.parseError(a,o);else throw new Error(a)},"parseError"),setInput:m(function(i,a){return this.yy=a||this.yy||{},this._input=i,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:m(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:m(function(i){var a=i.length,o=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var s=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),o.length-1&&(this.yylineno-=o.length-1);var d=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:o?(o.length===s.length?this.yylloc.first_column:0)+s[s.length-o.length].length-o[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:m(function(){return this._more=!0,this},"more"),reject:m(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:m(function(i){this.unput(this.match.slice(i))},"less"),pastInput:m(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:m(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:m(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./index-
|
|
1
|
+
import{t as e}from"./index-BFcdAbEq.js";const a={"mar-agent":0,codex:1,"claude-code":2,opencode:3};function d(n,o){return a[n]-a[o]}function m(n,o){const r=n?.models??[];return n?.runner==="mar-agent"&&o?.sessionGroup==="CHILD"?r.filter(l=>l.subagentModel===!0):r}function c(n){return n==="mar-agent"?e("common.marAgent"):n==="claude-code"?e("common.claudeCode"):n==="opencode"?e("common.openCode"):e("common.codex")}function u(n){return n.commandId==="goal"?{...n,label:e("goal.title")}:n.commandId!=="plan"?n:{...n,label:e("runnerProfiles.planModeLabel"),detail:e("nodeMessages.planDetail"),...n.continuation===void 0?{}:{continuation:n.continuation===null?null:{label:e("nodeMessages.implement"),prompt:e("nodeMessages.implementPrompt")}}}}export{m as a,d as c,u as l,c as r};
|
package/web/assets/{sankeyDiagram-P5KCCOFB-Drmgap-9.js → sankeyDiagram-P5KCCOFB-BTYRnwQ2.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as xt,q as _t,s as vt,g as bt,b as St,a as wt,_ as y,c as lt,b6 as Lt,j as H,ae as Et,r as At,k as Tt}from"./mermaid.core-CtV3j4ZJ.js";import{o as Mt}from"./ordinal-Cboi1Yqb.js";import"./index-CQXvli2Q.js";import"./FilePreviewLoading-TTlaPt8Y.js";import"./mobile-dialog-return-service-B-slT15v.js";import"./init-Gi6I4Gst.js";function Nt(t){for(var n=t.length/6|0,s=new Array(n),a=0;a<n;)s[a]="#"+t.slice(a*6,++a*6);return s}const Ct=Nt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function ct(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s<a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s<u||s===void 0&&u>=u)&&(s=u)}return s}function pt(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s>u||s===void 0&&u>=u)&&(s=u)}return s}function nt(t,n){let s=0;if(n===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let u of t)(u=+n(u,++a,t))&&(s+=u)}return s}function Pt(t){return t.target.depth}function It(t){return t.depth}function Ot(t,n){return n-1-t.height}function kt(t,n){return t.sourceLinks.length?t.depth:n-1}function $t(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?pt(t.sourceLinks,Pt)-1:0}function X(t){return function(){return t}}function ut(t,n){return Q(t.source,n.source)||t.index-n.index}function ht(t,n){return Q(t.target,n.target)||t.index-n.index}function Q(t,n){return t.y0-n.y0}function it(t){return t.value}function jt(t){return t.index}function Dt(t){return t.nodes}function zt(t){return t.links}function ft(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function yt({nodes:t}){for(const n of t){let s=n.y0,a=s;for(const u of n.sourceLinks)u.y0=s+u.width/2,s+=u.width;for(const u of n.targetLinks)u.y1=a+u.width/2,a+=u.width}}function Bt(){let t=0,n=0,s=1,a=1,u=24,x=8,g,k=jt,o=kt,l,h,m=Dt,_=zt,d=6;function v(){const i={nodes:m.apply(null,arguments),links:_.apply(null,arguments)};return T(i),A(i),M(i),I(i),S(i),yt(i),i}v.update=function(i){return yt(i),i},v.nodeId=function(i){return arguments.length?(k=typeof i=="function"?i:X(i),v):k},v.nodeAlign=function(i){return arguments.length?(o=typeof i=="function"?i:X(i),v):o},v.nodeSort=function(i){return arguments.length?(l=i,v):l},v.nodeWidth=function(i){return arguments.length?(u=+i,v):u},v.nodePadding=function(i){return arguments.length?(x=g=+i,v):x},v.nodes=function(i){return arguments.length?(m=typeof i=="function"?i:X(i),v):m},v.links=function(i){return arguments.length?(_=typeof i=="function"?i:X(i),v):_},v.linkSort=function(i){return arguments.length?(h=i,v):h},v.size=function(i){return arguments.length?(t=n=0,s=+i[0],a=+i[1],v):[s-t,a-n]},v.extent=function(i){return arguments.length?(t=+i[0][0],s=+i[1][0],n=+i[0][1],a=+i[1][1],v):[[t,n],[s,a]]},v.iterations=function(i){return arguments.length?(d=+i,v):d};function T({nodes:i,links:f}){for(const[e,r]of i.entries())r.index=e,r.sourceLinks=[],r.targetLinks=[];const c=new Map(i.map((e,r)=>[k(e,r,i),e]));for(const[e,r]of f.entries()){r.index=e;let{source:p,target:b}=r;typeof p!="object"&&(p=r.source=ft(c,p)),typeof b!="object"&&(b=r.target=ft(c,b)),p.sourceLinks.push(r),b.targetLinks.push(r)}if(h!=null)for(const{sourceLinks:e,targetLinks:r}of i)e.sort(h),r.sort(h)}function A({nodes:i}){for(const f of i)f.value=f.fixedValue===void 0?Math.max(nt(f.sourceLinks,it),nt(f.targetLinks,it)):f.fixedValue}function M({nodes:i}){const f=i.length;let c=new Set(i),e=new Set,r=0;for(;c.size;){for(const p of c){p.depth=r;for(const{target:b}of p.sourceLinks)e.add(b)}if(++r>f)throw new Error("circular link");c=e,e=new Set}}function I({nodes:i}){const f=i.length;let c=new Set(i),e=new Set,r=0;for(;c.size;){for(const p of c){p.height=r;for(const{source:b}of p.targetLinks)e.add(b)}if(++r>f)throw new Error("circular link");c=e,e=new Set}}function N({nodes:i}){const f=ct(i,r=>r.depth)+1,c=(s-t-u)/(f-1),e=new Array(f);for(const r of i){const p=Math.max(0,Math.min(f-1,Math.floor(o.call(null,r,f))));r.layer=p,r.x0=t+p*c,r.x1=r.x0+u,e[p]?e[p].push(r):e[p]=[r]}if(l)for(const r of e)r.sort(l);return e}function j(i){const f=pt(i,c=>(a-n-(c.length-1)*g)/nt(c,it));for(const c of i){let e=n;for(const r of c){r.y0=e,r.y1=e+r.value*f,e=r.y1+g;for(const p of r.sourceLinks)p.width=p.value*f}e=(a-e+g)/(c.length+1);for(let r=0;r<c.length;++r){const p=c[r];p.y0+=e*(r+1),p.y1+=e*(r+1)}w(c)}}function S(i){const f=N(i);g=Math.min(x,(a-n)/(ct(f,c=>c.length)-1)),j(f);for(let c=0;c<d;++c){const e=Math.pow(.99,c),r=Math.max(1-e,(c+1)/d);R(f,e,r),C(f,e,r)}}function C(i,f,c){for(let e=1,r=i.length;e<r;++e){const p=i[e];for(const b of p){let L=0,B=0;for(const{source:Y,value:et}of b.targetLinks){let q=et*(b.layer-Y.layer);L+=P(Y,b)*q,B+=q}if(!(B>0))continue;let U=(L/B-b.y0)*f;b.y0+=U,b.y1+=U,z(b)}l===void 0&&p.sort(Q),D(p,c)}}function R(i,f,c){for(let e=i.length,r=e-2;r>=0;--r){const p=i[r];for(const b of p){let L=0,B=0;for(const{target:Y,value:et}of b.sourceLinks){let q=et*(Y.layer-b.layer);L+=E(b,Y)*q,B+=q}if(!(B>0))continue;let U=(L/B-b.y0)*f;b.y0+=U,b.y1+=U,z(b)}l===void 0&&p.sort(Q),D(p,c)}}function D(i,f){const c=i.length>>1,e=i[c];O(i,e.y0-g,c-1,f),V(i,e.y1+g,c+1,f),O(i,a,i.length-1,f),V(i,n,0,f)}function V(i,f,c,e){for(;c<i.length;++c){const r=i[c],p=(f-r.y0)*e;p>1e-6&&(r.y0+=p,r.y1+=p),f=r.y1+g}}function O(i,f,c,e){for(;c>=0;--c){const r=i[c],p=(r.y1-f)*e;p>1e-6&&(r.y0-=p,r.y1-=p),f=r.y0-g}}function z({sourceLinks:i,targetLinks:f}){if(h===void 0){for(const{source:{sourceLinks:c}}of f)c.sort(ht);for(const{target:{targetLinks:c}}of i)c.sort(ut)}}function w(i){if(h===void 0)for(const{sourceLinks:f,targetLinks:c}of i)f.sort(ht),c.sort(ut)}function P(i,f){let c=i.y0-(i.sourceLinks.length-1)*g/2;for(const{target:e,width:r}of i.sourceLinks){if(e===f)break;c+=r+g}for(const{source:e,width:r}of f.targetLinks){if(e===i)break;c-=r}return c}function E(i,f){let c=f.y0-(f.targetLinks.length-1)*g/2;for(const{source:e,width:r}of f.targetLinks){if(e===i)break;c+=r+g}for(const{target:e,width:r}of i.sourceLinks){if(e===f)break;c-=r}return c}return v}var rt=Math.PI,st=2*rt,F=1e-6,Ft=st-F;function ot(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function mt(){return new ot}ot.prototype=mt.prototype={constructor:ot,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,n,s,a,u,x){this._+="C"+ +t+","+ +n+","+ +s+","+ +a+","+(this._x1=+u)+","+(this._y1=+x)},arcTo:function(t,n,s,a,u){t=+t,n=+n,s=+s,a=+a,u=+u;var x=this._x1,g=this._y1,k=s-t,o=a-n,l=x-t,h=g-n,m=l*l+h*h;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(m>F)if(!(Math.abs(h*k-o*l)>F)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var _=s-x,d=a-g,v=k*k+o*o,T=_*_+d*d,A=Math.sqrt(v),M=Math.sqrt(m),I=u*Math.tan((rt-Math.acos((v+m-T)/(2*A*M)))/2),N=I/M,j=I/A;Math.abs(N-1)>F&&(this._+="L"+(t+N*l)+","+(n+N*h)),this._+="A"+u+","+u+",0,0,"+ +(h*_>l*d)+","+(this._x1=t+j*k)+","+(this._y1=n+j*o)}},arc:function(t,n,s,a,u,x){t=+t,n=+n,s=+s,x=!!x;var g=s*Math.cos(a),k=s*Math.sin(a),o=t+g,l=n+k,h=1^x,m=x?a-u:u-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+o+","+l:(Math.abs(this._x1-o)>F||Math.abs(this._y1-l)>F)&&(this._+="L"+o+","+l),s&&(m<0&&(m=m%st+st),m>Ft?this._+="A"+s+","+s+",0,1,"+h+","+(t-g)+","+(n-k)+"A"+s+","+s+",0,1,"+h+","+(this._x1=o)+","+(this._y1=l):m>F&&(this._+="A"+s+","+s+",0,"+ +(m>=rt)+","+h+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=n+s*Math.sin(u))))},rect:function(t,n,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function dt(t){return function(){return t}}function Rt(t){return t[0]}function Vt(t){return t[1]}var Wt=Array.prototype.slice;function Gt(t){return t.source}function Ut(t){return t.target}function Yt(t){var n=Gt,s=Ut,a=Rt,u=Vt,x=null;function g(){var k,o=Wt.call(arguments),l=n.apply(this,o),h=s.apply(this,o);if(x||(x=k=mt()),t(x,+a.apply(this,(o[0]=l,o)),+u.apply(this,o),+a.apply(this,(o[0]=h,o)),+u.apply(this,o)),k)return x=null,k+""||null}return g.source=function(k){return arguments.length?(n=k,g):n},g.target=function(k){return arguments.length?(s=k,g):s},g.x=function(k){return arguments.length?(a=typeof k=="function"?k:dt(+k),g):a},g.y=function(k){return arguments.length?(u=typeof k=="function"?k:dt(+k),g):u},g.context=function(k){return arguments.length?(x=k??null,g):x},g}function qt(t,n,s,a,u){t.moveTo(n,s),t.bezierCurveTo(n=(n+a)/2,s,n,u,a,u)}function Ht(){return Yt(qt)}function Xt(t){return[t.source.x1,t.y0]}function Qt(t){return[t.target.x0,t.y1]}function Kt(){return Ht().source(Xt).target(Qt)}var at=(function(){var t=y(function(k,o,l,h){for(l=l||{},h=k.length;h--;l[k[h]]=o);return l},"o"),n=[1,9],s=[1,10],a=[1,5,10,12],u={trace:y(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:y(function(o,l,h,m,_,d,v){var T=d.length-1;switch(_){case 7:const A=m.findOrCreateNode(d[T-4].trim().replaceAll('""','"')),M=m.findOrCreateNode(d[T-2].trim().replaceAll('""','"')),I=parseFloat(d[T].trim());m.addLink(A,M,I);break;case 8:case 9:case 11:this.$=d[T];break;case 10:this.$=d[T-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:y(function(o,l){if(l.recoverable)this.trace(o);else{var h=new Error(o);throw h.hash=l,h}},"parseError"),parse:y(function(o){var l=this,h=[0],m=[],_=[null],d=[],v=this.table,T="",A=0,M=0,I=2,N=1,j=d.slice.call(arguments,1),S=Object.create(this.lexer),C={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(C.yy[R]=this.yy[R]);S.setInput(o,C.yy),C.yy.lexer=S,C.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var D=S.yylloc;d.push(D);var V=S.options&&S.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function O(L){h.length=h.length-2*L,_.length=_.length-L,d.length=d.length-L}y(O,"popStack");function z(){var L;return L=m.pop()||S.lex()||N,typeof L!="number"&&(L instanceof Array&&(m=L,L=m.pop()),L=l.symbols_[L]||L),L}y(z,"lex");for(var w,P,E,i,f={},c,e,r,p;;){if(P=h[h.length-1],this.defaultActions[P]?E=this.defaultActions[P]:((w===null||typeof w>"u")&&(w=z()),E=v[P]&&v[P][w]),typeof E>"u"||!E.length||!E[0]){var b="";p=[];for(c in v[P])this.terminals_[c]&&c>I&&p.push("'"+this.terminals_[c]+"'");S.showPosition?b="Parse error on line "+(A+1)+`:
|
|
1
|
+
import{p as xt,q as _t,s as vt,g as bt,b as St,a as wt,_ as y,c as lt,b6 as Lt,j as H,ae as Et,r as At,k as Tt}from"./mermaid.core-DwWdQkHi.js";import{o as Mt}from"./ordinal-Cboi1Yqb.js";import"./index-BFcdAbEq.js";import"./FilePreviewLoading-DqAfb1fM.js";import"./mobile-dialog-return-service-BMaWxb-8.js";import"./init-Gi6I4Gst.js";function Nt(t){for(var n=t.length/6|0,s=new Array(n),a=0;a<n;)s[a]="#"+t.slice(a*6,++a*6);return s}const Ct=Nt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function ct(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s<a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s<u||s===void 0&&u>=u)&&(s=u)}return s}function pt(t,n){let s;if(n===void 0)for(const a of t)a!=null&&(s>a||s===void 0&&a>=a)&&(s=a);else{let a=-1;for(let u of t)(u=n(u,++a,t))!=null&&(s>u||s===void 0&&u>=u)&&(s=u)}return s}function nt(t,n){let s=0;if(n===void 0)for(let a of t)(a=+a)&&(s+=a);else{let a=-1;for(let u of t)(u=+n(u,++a,t))&&(s+=u)}return s}function Pt(t){return t.target.depth}function It(t){return t.depth}function Ot(t,n){return n-1-t.height}function kt(t,n){return t.sourceLinks.length?t.depth:n-1}function $t(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?pt(t.sourceLinks,Pt)-1:0}function X(t){return function(){return t}}function ut(t,n){return Q(t.source,n.source)||t.index-n.index}function ht(t,n){return Q(t.target,n.target)||t.index-n.index}function Q(t,n){return t.y0-n.y0}function it(t){return t.value}function jt(t){return t.index}function Dt(t){return t.nodes}function zt(t){return t.links}function ft(t,n){const s=t.get(n);if(!s)throw new Error("missing: "+n);return s}function yt({nodes:t}){for(const n of t){let s=n.y0,a=s;for(const u of n.sourceLinks)u.y0=s+u.width/2,s+=u.width;for(const u of n.targetLinks)u.y1=a+u.width/2,a+=u.width}}function Bt(){let t=0,n=0,s=1,a=1,u=24,x=8,g,k=jt,o=kt,l,h,m=Dt,_=zt,d=6;function v(){const i={nodes:m.apply(null,arguments),links:_.apply(null,arguments)};return T(i),A(i),M(i),I(i),S(i),yt(i),i}v.update=function(i){return yt(i),i},v.nodeId=function(i){return arguments.length?(k=typeof i=="function"?i:X(i),v):k},v.nodeAlign=function(i){return arguments.length?(o=typeof i=="function"?i:X(i),v):o},v.nodeSort=function(i){return arguments.length?(l=i,v):l},v.nodeWidth=function(i){return arguments.length?(u=+i,v):u},v.nodePadding=function(i){return arguments.length?(x=g=+i,v):x},v.nodes=function(i){return arguments.length?(m=typeof i=="function"?i:X(i),v):m},v.links=function(i){return arguments.length?(_=typeof i=="function"?i:X(i),v):_},v.linkSort=function(i){return arguments.length?(h=i,v):h},v.size=function(i){return arguments.length?(t=n=0,s=+i[0],a=+i[1],v):[s-t,a-n]},v.extent=function(i){return arguments.length?(t=+i[0][0],s=+i[1][0],n=+i[0][1],a=+i[1][1],v):[[t,n],[s,a]]},v.iterations=function(i){return arguments.length?(d=+i,v):d};function T({nodes:i,links:f}){for(const[e,r]of i.entries())r.index=e,r.sourceLinks=[],r.targetLinks=[];const c=new Map(i.map((e,r)=>[k(e,r,i),e]));for(const[e,r]of f.entries()){r.index=e;let{source:p,target:b}=r;typeof p!="object"&&(p=r.source=ft(c,p)),typeof b!="object"&&(b=r.target=ft(c,b)),p.sourceLinks.push(r),b.targetLinks.push(r)}if(h!=null)for(const{sourceLinks:e,targetLinks:r}of i)e.sort(h),r.sort(h)}function A({nodes:i}){for(const f of i)f.value=f.fixedValue===void 0?Math.max(nt(f.sourceLinks,it),nt(f.targetLinks,it)):f.fixedValue}function M({nodes:i}){const f=i.length;let c=new Set(i),e=new Set,r=0;for(;c.size;){for(const p of c){p.depth=r;for(const{target:b}of p.sourceLinks)e.add(b)}if(++r>f)throw new Error("circular link");c=e,e=new Set}}function I({nodes:i}){const f=i.length;let c=new Set(i),e=new Set,r=0;for(;c.size;){for(const p of c){p.height=r;for(const{source:b}of p.targetLinks)e.add(b)}if(++r>f)throw new Error("circular link");c=e,e=new Set}}function N({nodes:i}){const f=ct(i,r=>r.depth)+1,c=(s-t-u)/(f-1),e=new Array(f);for(const r of i){const p=Math.max(0,Math.min(f-1,Math.floor(o.call(null,r,f))));r.layer=p,r.x0=t+p*c,r.x1=r.x0+u,e[p]?e[p].push(r):e[p]=[r]}if(l)for(const r of e)r.sort(l);return e}function j(i){const f=pt(i,c=>(a-n-(c.length-1)*g)/nt(c,it));for(const c of i){let e=n;for(const r of c){r.y0=e,r.y1=e+r.value*f,e=r.y1+g;for(const p of r.sourceLinks)p.width=p.value*f}e=(a-e+g)/(c.length+1);for(let r=0;r<c.length;++r){const p=c[r];p.y0+=e*(r+1),p.y1+=e*(r+1)}w(c)}}function S(i){const f=N(i);g=Math.min(x,(a-n)/(ct(f,c=>c.length)-1)),j(f);for(let c=0;c<d;++c){const e=Math.pow(.99,c),r=Math.max(1-e,(c+1)/d);R(f,e,r),C(f,e,r)}}function C(i,f,c){for(let e=1,r=i.length;e<r;++e){const p=i[e];for(const b of p){let L=0,B=0;for(const{source:Y,value:et}of b.targetLinks){let q=et*(b.layer-Y.layer);L+=P(Y,b)*q,B+=q}if(!(B>0))continue;let U=(L/B-b.y0)*f;b.y0+=U,b.y1+=U,z(b)}l===void 0&&p.sort(Q),D(p,c)}}function R(i,f,c){for(let e=i.length,r=e-2;r>=0;--r){const p=i[r];for(const b of p){let L=0,B=0;for(const{target:Y,value:et}of b.sourceLinks){let q=et*(Y.layer-b.layer);L+=E(b,Y)*q,B+=q}if(!(B>0))continue;let U=(L/B-b.y0)*f;b.y0+=U,b.y1+=U,z(b)}l===void 0&&p.sort(Q),D(p,c)}}function D(i,f){const c=i.length>>1,e=i[c];O(i,e.y0-g,c-1,f),V(i,e.y1+g,c+1,f),O(i,a,i.length-1,f),V(i,n,0,f)}function V(i,f,c,e){for(;c<i.length;++c){const r=i[c],p=(f-r.y0)*e;p>1e-6&&(r.y0+=p,r.y1+=p),f=r.y1+g}}function O(i,f,c,e){for(;c>=0;--c){const r=i[c],p=(r.y1-f)*e;p>1e-6&&(r.y0-=p,r.y1-=p),f=r.y0-g}}function z({sourceLinks:i,targetLinks:f}){if(h===void 0){for(const{source:{sourceLinks:c}}of f)c.sort(ht);for(const{target:{targetLinks:c}}of i)c.sort(ut)}}function w(i){if(h===void 0)for(const{sourceLinks:f,targetLinks:c}of i)f.sort(ht),c.sort(ut)}function P(i,f){let c=i.y0-(i.sourceLinks.length-1)*g/2;for(const{target:e,width:r}of i.sourceLinks){if(e===f)break;c+=r+g}for(const{source:e,width:r}of f.targetLinks){if(e===i)break;c-=r}return c}function E(i,f){let c=f.y0-(f.targetLinks.length-1)*g/2;for(const{source:e,width:r}of f.targetLinks){if(e===i)break;c+=r+g}for(const{target:e,width:r}of i.sourceLinks){if(e===f)break;c-=r}return c}return v}var rt=Math.PI,st=2*rt,F=1e-6,Ft=st-F;function ot(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function mt(){return new ot}ot.prototype=mt.prototype={constructor:ot,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,s,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+s)+","+(this._y1=+a)},bezierCurveTo:function(t,n,s,a,u,x){this._+="C"+ +t+","+ +n+","+ +s+","+ +a+","+(this._x1=+u)+","+(this._y1=+x)},arcTo:function(t,n,s,a,u){t=+t,n=+n,s=+s,a=+a,u=+u;var x=this._x1,g=this._y1,k=s-t,o=a-n,l=x-t,h=g-n,m=l*l+h*h;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(m>F)if(!(Math.abs(h*k-o*l)>F)||!u)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var _=s-x,d=a-g,v=k*k+o*o,T=_*_+d*d,A=Math.sqrt(v),M=Math.sqrt(m),I=u*Math.tan((rt-Math.acos((v+m-T)/(2*A*M)))/2),N=I/M,j=I/A;Math.abs(N-1)>F&&(this._+="L"+(t+N*l)+","+(n+N*h)),this._+="A"+u+","+u+",0,0,"+ +(h*_>l*d)+","+(this._x1=t+j*k)+","+(this._y1=n+j*o)}},arc:function(t,n,s,a,u,x){t=+t,n=+n,s=+s,x=!!x;var g=s*Math.cos(a),k=s*Math.sin(a),o=t+g,l=n+k,h=1^x,m=x?a-u:u-a;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+o+","+l:(Math.abs(this._x1-o)>F||Math.abs(this._y1-l)>F)&&(this._+="L"+o+","+l),s&&(m<0&&(m=m%st+st),m>Ft?this._+="A"+s+","+s+",0,1,"+h+","+(t-g)+","+(n-k)+"A"+s+","+s+",0,1,"+h+","+(this._x1=o)+","+(this._y1=l):m>F&&(this._+="A"+s+","+s+",0,"+ +(m>=rt)+","+h+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=n+s*Math.sin(u))))},rect:function(t,n,s,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +s+"v"+ +a+"h"+-s+"Z"},toString:function(){return this._}};function dt(t){return function(){return t}}function Rt(t){return t[0]}function Vt(t){return t[1]}var Wt=Array.prototype.slice;function Gt(t){return t.source}function Ut(t){return t.target}function Yt(t){var n=Gt,s=Ut,a=Rt,u=Vt,x=null;function g(){var k,o=Wt.call(arguments),l=n.apply(this,o),h=s.apply(this,o);if(x||(x=k=mt()),t(x,+a.apply(this,(o[0]=l,o)),+u.apply(this,o),+a.apply(this,(o[0]=h,o)),+u.apply(this,o)),k)return x=null,k+""||null}return g.source=function(k){return arguments.length?(n=k,g):n},g.target=function(k){return arguments.length?(s=k,g):s},g.x=function(k){return arguments.length?(a=typeof k=="function"?k:dt(+k),g):a},g.y=function(k){return arguments.length?(u=typeof k=="function"?k:dt(+k),g):u},g.context=function(k){return arguments.length?(x=k??null,g):x},g}function qt(t,n,s,a,u){t.moveTo(n,s),t.bezierCurveTo(n=(n+a)/2,s,n,u,a,u)}function Ht(){return Yt(qt)}function Xt(t){return[t.source.x1,t.y0]}function Qt(t){return[t.target.x0,t.y1]}function Kt(){return Ht().source(Xt).target(Qt)}var at=(function(){var t=y(function(k,o,l,h){for(l=l||{},h=k.length;h--;l[k[h]]=o);return l},"o"),n=[1,9],s=[1,10],a=[1,5,10,12],u={trace:y(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:y(function(o,l,h,m,_,d,v){var T=d.length-1;switch(_){case 7:const A=m.findOrCreateNode(d[T-4].trim().replaceAll('""','"')),M=m.findOrCreateNode(d[T-2].trim().replaceAll('""','"')),I=parseFloat(d[T].trim());m.addLink(A,M,I);break;case 8:case 9:case 11:this.$=d[T];break;case 10:this.$=d[T-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(a,[2,8]),t(a,[2,9]),{19:[1,16]},t(a,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:s},{15:18,16:7,17:8,18:n,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(a,[2,10]),{15:21,16:7,17:8,18:n,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:y(function(o,l){if(l.recoverable)this.trace(o);else{var h=new Error(o);throw h.hash=l,h}},"parseError"),parse:y(function(o){var l=this,h=[0],m=[],_=[null],d=[],v=this.table,T="",A=0,M=0,I=2,N=1,j=d.slice.call(arguments,1),S=Object.create(this.lexer),C={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(C.yy[R]=this.yy[R]);S.setInput(o,C.yy),C.yy.lexer=S,C.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var D=S.yylloc;d.push(D);var V=S.options&&S.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function O(L){h.length=h.length-2*L,_.length=_.length-L,d.length=d.length-L}y(O,"popStack");function z(){var L;return L=m.pop()||S.lex()||N,typeof L!="number"&&(L instanceof Array&&(m=L,L=m.pop()),L=l.symbols_[L]||L),L}y(z,"lex");for(var w,P,E,i,f={},c,e,r,p;;){if(P=h[h.length-1],this.defaultActions[P]?E=this.defaultActions[P]:((w===null||typeof w>"u")&&(w=z()),E=v[P]&&v[P][w]),typeof E>"u"||!E.length||!E[0]){var b="";p=[];for(c in v[P])this.terminals_[c]&&c>I&&p.push("'"+this.terminals_[c]+"'");S.showPosition?b="Parse error on line "+(A+1)+`:
|
|
2
2
|
`+S.showPosition()+`
|
|
3
3
|
Expecting `+p.join(", ")+", got '"+(this.terminals_[w]||w)+"'":b="Parse error on line "+(A+1)+": Unexpected "+(w==N?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(b,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:D,expected:p})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+w);switch(E[0]){case 1:h.push(w),_.push(S.yytext),d.push(S.yylloc),h.push(E[1]),w=null,M=S.yyleng,T=S.yytext,A=S.yylineno,D=S.yylloc;break;case 2:if(e=this.productions_[E[1]][1],f.$=_[_.length-e],f._$={first_line:d[d.length-(e||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(e||1)].first_column,last_column:d[d.length-1].last_column},V&&(f._$.range=[d[d.length-(e||1)].range[0],d[d.length-1].range[1]]),i=this.performAction.apply(f,[T,M,A,C.yy,E[1],_,d].concat(j)),typeof i<"u")return i;e&&(h=h.slice(0,-1*e*2),_=_.slice(0,-1*e),d=d.slice(0,-1*e)),h.push(this.productions_[E[1]][0]),_.push(f.$),d.push(f._$),r=v[h[h.length-2]][h[h.length-1]],h.push(r);break;case 3:return!0}}return!0},"parse")},x=(function(){var k={EOF:1,parseError:y(function(l,h){if(this.yy.parser)this.yy.parser.parseError(l,h);else throw new Error(l)},"parseError"),setInput:y(function(o,l){return this.yy=l||this.yy||{},this._input=o,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 o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var l=o.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:y(function(o){var l=o.length,h=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var m=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),h.length-1&&(this.yylineno-=h.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:h?(h.length===m.length?this.yylloc.first_column:0)+m[m.length-h.length].length-h[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-l]),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(o){this.unput(this.match.slice(o))},"less"),pastInput:y(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:y(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:y(function(){var o=this.pastInput(),l=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CodeFileEditor-CJ5ai-04.js","assets/FilePreviewLoading-DqAfb1fM.js","assets/index-BFcdAbEq.js","assets/index-B0nwvzeT.css","assets/mobile-dialog-return-service-BMaWxb-8.js","assets/mobile-dialog-return-service-BmGTIbef.css","assets/FilePreviewLoading-BCZE-xW1.css","assets/code-navigation-target-BlnRe0-a.js","assets/CodeFileEditor-BCFxG5-W.css","assets/MarkdownFilePreview-Di3Qwl-w.js","assets/MarkdownFilePreview-B3vmpJ_r.css","assets/index-C-0WGpZO.css","assets/index-kURlw-_V.js","assets/index-B8svYS5K.js","assets/index-D2SrlbN3.css","assets/index-CguqeYVt.js","assets/index-xuRyvDfa.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{B as na,C as ia,D as la,T as ra,d as sa,w as Ce,r as G,v as ca,F as Xe,k as da,h as ua,j as Me,E as Q,q as Be,G as fa,H as va,I as Pt,J as ma,o as wa}from"./FilePreviewLoading-DqAfb1fM.js";import{c as St}from"./uuid-BmNSYLtZ.js";import{N as ge,aY as ve,w as ne,af as fe,Y as Rt,t as i,H as ue,ax as pa,ca as Dt,g as F,r as ya,m as Z,o as me,Z as he,$ as Ie,p as l,q as h,P as W,u as $,F as C,G as t,a9 as K,R as Qe,Q as O,a0 as U,E as A,T as V,_ as we,K as Mt,a6 as Te,s as le,I,aa as J,S as Y,aB as ga,V as Je,ad as ba,at as ka,b$ as ha,ab as xe,a5 as Ct,W as Nt,aQ as Ne,ay as ke,n as Ea,X as Ve,e as Pa,U as Da,aX as Ca,aN as xa}from"./index-BFcdAbEq.js";import{_ as xt,a as Ta}from"./MarFormItem.vue_vue_type_script_setup_true_lang-N9NOm81R.js";import{M as Ia}from"./MarSwitch-CzORIlBy.js";import{M as Fa,u as Aa,m as La}from"./mobile-dialog-return-service-BMaWxb-8.js";import{e as $a}from"./error-presentation-CVfZsEJD.js";import{f as Bt}from"./file-presentation-Cm7tx53N.js";import{a as Oa,t as Tt}from"./MarTabs-DsfSW1HH.js";function Dn(e){const o=e.repositoryPath??"",s=e.worktreePath??"";switch(e.kind){case"TOOL_CHANGE_DIFF":return`tool-change\0${e.nodeId}\0${e.toolChange?.scope??""}\0${e.toolChange?.sessionId??""}\0${e.toolChange?.changeId??""}\0${e.toolChange?.diff.resourceRef??""}`;case"WORKTREE_TEXT":return`worktree-text\0${o}\0${s}\0${e.path}${e.gitFile?"\0git":""}`;case"WORKTREE_DIFF":return`worktree-diff\0${o}\0${s}\0${e.path}`;case"HISTORY_DIFF":return`history-diff\0${o}\0${e.commit??""}\0${e.previousPath??""}\0${e.path}`;case"HISTORY_TEXT":return`history-text\0${o}\0${e.commit??""}\0${e.path}`;case"WORKTREE_PREVIEW":return`worktree-preview\0${o}\0${s}\0${e.path}${e.gitFile?"\0git":""}`}}function Cn(e){return e.split("/").at(-1)??e}function Ut(e,o,s){return s===void 0?e(o):e(o,{signal:s})}function _t(e){const o=e.file;return typeof o?.size=="number"&&typeof o.revision=="string"?{size:o.size,revision:o.revision}:void 0}async function xn(e){const{resource:o}=e,s=new URLSearchParams({nodeId:e.nodeId,path:o.path});return o.repositoryPath!==void 0&&s.set("repositoryPath",o.repositoryPath),o.worktreePath!==void 0&&s.set("worktreePath",o.worktreePath),_t(await Ut(e.request,`/api/workspaces/${encodeURIComponent(o.workspaceId)}/files/direct-metadata?${s}`,e.signal))}async function Tn(e){const{resource:o}=e,s=new URLSearchParams({nodeId:e.nodeId,path:o.path});o.repositoryPath!==void 0&&o.repositoryPath.length>0&&s.set("repositoryPath",o.repositoryPath);for(const a of e.refs)s.append("refs",a);return _t(await Ut(e.request,`/api/workspaces/${encodeURIComponent(o.workspaceId)}/git/commits/${encodeURIComponent(o.commit)}/files/direct-metadata?${s}`,e.signal))}async function In(e){if(!(e.offset!==0||e.nextOffset!==null||e.bytes.byteLength!==e.size))return na(e.bytes)}async function Fn(e){const o=e.identity??await e.metadata();if(o===void 0)throw new Error("DIRECT_METADATA_UNAVAILABLE");e.signal?.throwIfAborted();const s=Math.min(e.length,o.size-e.offset);if(s<=0)return{...o,offset:e.offset,bytes:new Uint8Array,nextOffset:null};const a={offset:e.offset,length:s},y=[];let r=0;const v={direction:"DOWNLOAD",resource:e.resource,fileName:e.fileName,revision:o.revision,size:o.size,range:a};if(await e.direct.download({nodeId:e.nodeId,nodeGeneration:e.nodeGeneration,descriptor:v,sink:{async write(f){const E=new Uint8Array(f.byteLength);E.set(f),y.push(E),r+=E.byteLength},async close(){},async abort(){y.length=0,r=0}},...e.signal===void 0?{}:{signal:e.signal}}),r!==s)throw new Error("DIRECT_INTEGRITY_FAILED");const u=new Uint8Array(s);let k=0;for(const f of y)u.set(f,k),k+=f.byteLength;return{...o,offset:e.offset,bytes:u,nextOffset:e.offset+s<o.size?e.offset+s:null}}async function An(e,o){return ia(e)?void 0:o()}function Ln(e,o){if(e.encoding!=="base64")return e;const s=Uint8Array.from(atob(e.content),a=>a.charCodeAt(0));return{...e,...sa(s,o,e.nextOffset===null)}}async function $n(e,o=()=>!0){const s=await e(la);if(s.encoding!=="utf-8"||s.nextOffset===null||!o())return s;const a=await e(ra);if(s.size!==void 0&&a.size!==void 0&&s.size!==a.size||s.revision!==void 0&&a.revision!==void 0&&s.revision!==a.revision)throw new Error("FILE_PREVIEW_REVISION_CHANGED");return a}async function On(e){let o;try{const s=await e.metadata();if(s===void 0)return;e.signal?.throwIfAborted();const a=e.resource.path.split("/").at(-1)??"file";return o=await Ra(a),await e.direct.download({nodeId:e.nodeId,nodeGeneration:e.nodeGeneration,descriptor:{direction:"DOWNLOAD",resource:e.resource,fileName:a,...s},sink:o.sink,...e.signal===void 0?{}:{signal:e.signal}}),{url:await o.objectUrl(),...s}}catch{await o?.sink.abort().catch(()=>{});return}}const Ze=new Map,It=e=>`mar-direct-preview:${e}`;function Sa(e){URL.revokeObjectURL(e);const o=Ze.get(e);o!==void 0&&(Ze.delete(e),o())}function Sn(e,o){const s=document.createElement("a");s.href=e,s.download=o,s.style.display="none",document.body.append(s),s.click(),s.remove()}async function Ra(e){const o=navigator.storage,s=navigator.locks;if(o.getDirectory===void 0||s?.request===void 0)throw new Error("DIRECT_OPFS_UNAVAILABLE");const r=await(await(await o.getDirectory()).getDirectoryHandle("mar-direct-preview",{create:!0})).getDirectoryHandle("managed-v1",{create:!0}),v=`${St()}-${Ma(e)}`;let u;await new Promise((S,M)=>{s.request(It(v),()=>new Promise(H=>{u=H,S()})).catch(M)});let k=!1,f=!1,E=!1,b;async function P(){if(!k){k=!0;try{await r.removeEntry(v).catch(()=>{})}finally{u()}}}let m,D;try{const S=r;for await(const[M,H]of S.entries())M===v||H.kind!=="file"||await s.request(It(M),{ifAvailable:!0},async w=>{w!==null&&await r.removeEntry(M).catch(()=>{})});m=await r.getFileHandle(v,{create:!0}),D=await m.createWritable()}catch(S){throw await P(),S}return{sink:{async write(S){await D.write(S.buffer.slice(S.byteOffset,S.byteOffset+S.byteLength))},async close(){if(!f){f=!0;try{await D.close()}catch(S){throw await P(),S}}},async abort(){E=!0,b!==void 0&&Sa(b),f||(f=!0,await D.abort().catch(()=>{})),await P()}},async objectUrl(){if(E)throw new DOMException("Preview was aborted","AbortError");if(!f)throw new Error("DIRECT_OBJECT_URL_NOT_READY");if(b!==void 0)return b;try{const S=await m.getFile();if(E)throw new DOMException("Preview was aborted","AbortError");const M=URL.createObjectURL(S);return b=M,Ze.set(M,P),M}catch(S){throw await P(),S}}}}function Ma(e){const o=e.replaceAll(/[^A-Za-z0-9._-]/gu,"_").slice(-128);return o.length>0?o:"file"}async function Rn(e){let o;try{const s=await e.metadata();if(s===void 0)return"UNAVAILABLE";const a=e.resource.path.split("/").at(-1)??"download";return o=await _a(a,s.size,e.activeWorker),await e.direct.download({nodeId:e.nodeId,nodeGeneration:e.nodeGeneration,descriptor:{direction:"DOWNLOAD",resource:e.resource,fileName:a,...s},sink:o.sink,signal:o.signal}),"COMPLETED"}catch{return await o?.sink.abort().catch(()=>{}),o?.cancelled()===!0?"CANCELLED":o?.started()===!0?"FAILED":"UNAVAILABLE"}}const Na="/__mar_direct_download__/",Ba=5e3,Ua=3e4;async function _a(e,o,s){const a=await s();if(a===void 0)throw new Error("DIRECT_DOWNLOAD_STREAM_UNAVAILABLE");const y=new MessageChannel,r=St().replaceAll("-",""),v=new AbortController;let u=!1,k=!1,f=!1,E=!1,b,P=0;const m=[],D=new Promise((w,p)=>{const x=setTimeout(()=>{y.port1.postMessage({type:"abort"}),y.port1.close(),p(new Error("DIRECT_DOWNLOAD_STREAM_TIMEOUT"))},Ba);y.port1.onmessage=N=>{const T=N.data;if(T.type==="created"){u=!0,clearTimeout(x),w();return}if(T.type==="pull"){P+=1,m.shift()?.();return}if(T.type==="cancel"){E=T.reason==="DIRECT_DOWNLOAD_CANCELLED",v.abort(new DOMException(typeof T.reason=="string"?T.reason:"Direct download cancelled","AbortError")),M();return}T.type==="finished"&&M(1e3)}});a.postMessage({type:"direct-download.create",id:r,fileName:e,size:o},[y.port2]),await D;function S(){if(k)return;k=!0;const w=`mar-direct-download-${r}`,p=document.createElement("iframe");p.name=w,p.style.display="none",document.body.append(p),b=p;const x=document.createElement("a");x.href=`${Na}${r}`,x.target=w,x.style.display="none",document.body.append(x),x.click(),x.remove()}function M(w=0){const p=b;b=void 0,p!==void 0&&setTimeout(()=>p.remove(),w)}async function H(){if(P>0){P-=1;return}await new Promise((w,p)=>{let x;const N=setTimeout(()=>{const z=m.indexOf(x);z>=0&&m.splice(z,1);const ee=new Error("DIRECT_DOWNLOAD_BACKPRESSURE_TIMEOUT");v.abort(ee),p(ee)},Ua),T=()=>{const z=m.indexOf(x);z>=0&&m.splice(z,1),clearTimeout(N),p(v.signal.reason)};v.signal.addEventListener("abort",T,{once:!0}),x=()=>{clearTimeout(N),v.signal.removeEventListener("abort",T),w()},m.push(x)}),P-=1}return{signal:v.signal,started:()=>k,cancelled:()=>E,sink:{async write(w){if(f||!u)throw new Error("DIRECT_DOWNLOAD_STREAM_CLOSED");S(),await H();const p=w.buffer.slice(w.byteOffset,w.byteOffset+w.byteLength);y.port1.postMessage({type:"chunk",bytes:p},[p])},async close(){f||(f=!0,S(),y.port1.postMessage({type:"close"}))},async abort(){f||(f=!0,y.port1.postMessage({type:"abort"}),y.port1.close(),M())}}}}function Va(e){let o,s=!1,a=!1;function y(){return[...document.querySelectorAll(".mar-ui-dialog-overlay[open], .workspace-file-tabs, .workspace-file-page-frame.is-fullscreen")].some(m=>m.getClientRects().length>0&&(!m.matches(".workspace-file-tabs, .workspace-file-page-frame.is-fullscreen")||!e.regions().some(D=>D?.contains(m))))}function r(m){return m instanceof Node?e.regions().some(D=>D?.contains(m)||[...D?.querySelectorAll("[aria-controls]")??[]].some(S=>S.getAttribute("aria-controls")?.split(/\s+/).some(M=>document.getElementById(M)?.contains(m)))):!1}function v(){return e.regions().some(m=>[...m?.querySelectorAll('[aria-expanded="true"][aria-controls]')??[]].some(D=>D.getAttribute("aria-controls")?.split(/\s+/).some(S=>{const M=document.getElementById(S);return!!M?.getClientRects().length&&(D.hasAttribute("aria-haspopup")||!!M.closest("[popover]"))})))}function u(){e.regions().find(D=>D?.getClientRects().length)?.focus({preventScroll:!0})}function k(){(o?.isConnected&&!o.closest("[inert]")&&!o.matches("input, textarea, :disabled")&&!o.isContentEditable?o:document.querySelector(".activity-rail button:not(:disabled)"))?.focus({preventScroll:!0}),a=!1}function f(m){e.isOpen()&&r(m.target)&&(a=!0),!(!e.isOpen()||s||y()||r(m.target))&&(s=!0,u(),s=!1)}function E(m){if(!(!e.isOpen()||m.defaultPrevented||m.isComposing||y()||m.composedPath().some(D=>D instanceof Element&&D.matches(".mar-ui-dialog-overlay[open]")))&&m.key==="Tab"){const D=e.regions().flatMap(w=>w?[...w.querySelectorAll("button, a[href], input, textarea, select, [tabindex]")].filter(p=>p.tabIndex>=0&&!p.closest("[inert]")&&!p.matches(":disabled")&&p.getClientRects().length>0):[]),S=D.indexOf(document.activeElement),M=S<0?m.shiftKey?D.length-1:0:(S+(m.shiftKey?-1:1)+D.length)%D.length,H=D[M];m.preventDefault(),H?.focus({preventScroll:!0})}}let b,P;return ge(()=>{e.close!==void 0&&(P=ve.register({command:"mobileSurface.close",scope:"overlay",priority:20,keys:[{key:"Escape"}],when:()=>e.isOpen()&&!e.terminal?.()&&!y()&&!v(),execute:m=>(m.repeat||e.close?.(),"HANDLED")})),b=ne(e.isOpen,async(m,D)=>{m?(document.activeElement instanceof HTMLElement&&!e.regions()[0]?.contains(document.activeElement)&&(o=document.activeElement),await fe(),b!==void 0&&e.isOpen()&&!y()&&u()):D&&(r(document.activeElement)||document.activeElement===document.body&&a)&&k()},{immediate:!0,flush:"post"}),document.addEventListener("focusin",f),window.addEventListener("keydown",E)}),{dispose(){b?.(),b=void 0,document.removeEventListener("focusin",f),window.removeEventListener("keydown",E),P?.(),P=void 0,a&&r(document.activeElement)&&k()}}}async function Wa(){try{return await Rt.confirm(i("fileEditor.unsavedMessage"),i("fileEditor.unsavedTitle"),{icon:ue("warning"),type:"warning"}),!0}catch{return!1}}function tt(e){let o=!1,s=!1,a,y;const r=pa({isOpen:e.isOpen,close:()=>f(!0)}),v=new Map;function u(w){return w===e.root?.()?.closest(".mar-ui-dialog-overlay[open]")}function k(){return[...document.querySelectorAll(".mar-ui-dialog-overlay[open]")].some(w=>!u(w)&&w.getClientRects().length>0)}async function f(w){if(!(s||!e.isOpen()||k())){s=!0;try{const p=await(w?e.closeWindow():e.closeTab());w&&p&&o&&r.dispose()}finally{s=!1}}}const E={command:"filePreview.close",priority:110,scope:"file-preview",modalOwner:()=>e.root?.(),keys:Ce.close,when:e.isOpen,execute:w=>(w.repeat||f(w.shiftKey),"HANDLED")};function b(w){return Dt(E,w)}function P(w){return w.defaultPrevented||w.isComposing||w.keyCode===229||w.composedPath().some(p=>{const x=p;return x.nodeType===1&&x.matches(".mar-ui-dialog-overlay[open]")&&!u(x)})||k()}const m={command:"filePreview.closeWindow",priority:105,scope:"file-preview",modalOwner:()=>e.root?.(),keys:G.dismiss,when:w=>e.isOpen()&&!P(w),execute:w=>(w.repeat||f(!0),"HANDLED")};function D(w){Dt(m,w)==="HANDLED"&&(w.preventDefault(),w.stopPropagation())}function S(w){v.get(w)?.(),v.delete(w);let p;try{p=w.contentDocument}catch{return}const x=p?.defaultView;if(p===null||x===null||x===void 0)return;const N=T=>ve.handle(T,"file-preview");p.addEventListener("keydown",N,{capture:!0}),v.set(w,()=>{p.removeEventListener("keydown",N,{capture:!0})})}function M(){o||(o=!0,a=ve.register(E),y=ve.register(m),r.start())}function H(){if(o){o=!1,a?.(),a=void 0,y?.(),y=void 0;for(const w of v.values())w();v.clear(),r.dispose()}}return{mount:M,dispose:H,handleShortcut:b,handleEscape:D,isEscapeBlocked:P,bindFrame:S}}const Ye="mar.markdown-preview";function Ft(e){try{const o=JSON.parse(e??"null");return{watermarkEnabled:o?.watermarkEnabled===!0,watermarkText:typeof o?.watermarkText=="string"?o.watermarkText:""}}catch{return{watermarkEnabled:!1,watermarkText:""}}}function qa(){const e=F(Ft(localStorage.getItem(Ye)));return window.addEventListener("storage",o=>{o.key===Ye&&(e.value=Ft(o.newValue))}),{preference:e,save(o){const s={watermarkEnabled:o.watermarkEnabled,watermarkText:o.watermarkText.trim()};e.value=s,localStorage.setItem(Ye,JSON.stringify(s))}}}let At;function Ha(){return At??=qa(),At}const Vt="mar.file-editor.default-mode",Lt=F(za());function za(){return Ka(typeof localStorage>"u"?void 0:localStorage.getItem(Vt))}function Ka(e){return e==="edit"?"edit":"read-only"}function Ga(){return{mode:ya(Lt),setMode(e){Lt.value=e,typeof localStorage<"u"&&localStorage.setItem(Vt,e)}}}const ja=.25,Ya=2,$t=1;function Xa(){const e=F($t),o=new Map;let s=0,a=$t;function y(f){f.pointerType==="touch"&&(o.set(f.pointerId,Ot(f)),o.size===2&&u())}function r(f){if(f.pointerType!=="touch"||!o.has(f.pointerId))return;o.set(f.pointerId,Ot(f));const E=k();if(E!==void 0){if(s===0){s=E,a=e.value;return}f.cancelable&&f.preventDefault(),e.value=Qa(a*(E/s))}}function v(f){if(f.pointerType==="touch"){if(o.delete(f.pointerId),o.size<2){s=0;return}u()}}function u(){const f=k();f!==void 0&&(s=f,a=e.value)}function k(){const[f,E]=[...o.values()];if(!(f===void 0||E===void 0))return Math.hypot(E.x-f.x,E.y-f.y)}return{style:Z(()=>({"--mar-preview-zoom":String(e.value)})),pointerDown:y,pointerMove:r,pointerEnd:v}}function Ot(e){return{x:e.clientX,y:e.clientY}}function Qa(e){return Math.max(ja,Math.min(Ya,e))}const Ja=["aria-label"],Za={class:"inline-find-count","aria-live":"polite"},eo=me({__name:"InlineFindBar",props:{modelValue:{},current:{},total:{},truncated:{type:Boolean}},emits:["update:modelValue","previous","next","close"],setup(e,{expose:o,emit:s}){const a=s,y=F(),r=F();let v=[];async function u(){await fe(),y.value?.focus?.(),y.value?.select?.()}return o({focus:u}),ge(()=>{const k=()=>r.value?.querySelector("input")??void 0;v=[ve.register({command:"filePreview.findNext",scope:"file-preview",priority:130,owner:k,keys:ca,when:()=>!0,execute:f=>(f.shiftKey?a("previous"):a("next"),"HANDLED")}),ve.register({command:"filePreview.dismissFind",scope:"file-preview",priority:130,owner:k,keys:G.dismiss,when:()=>!0,execute:()=>(a("close"),"HANDLED")})],u()}),he(()=>{v.forEach(k=>k()),v=[]}),(k,f)=>{const E=Ie("tooltip");return l(),h("div",{ref_key:"root",ref:r,class:"inline-find-row"},[W("div",{class:"inline-find-bar",role:"search","aria-label":t(i)("inlineFind.label")},[$(t(Qe),{ref_key:"input",ref:y,"model-value":e.modelValue,placeholder:t(i)("inlineFind.placeholder"),clearable:"","onUpdate:modelValue":f[0]||(f[0]=b=>a("update:modelValue",b)),"clear-icon":t(ue)("clear-input")},{prefix:C(()=>[$(t(K),{name:"search"})]),_:1},8,["model-value","placeholder","clear-icon"]),W("span",Za,O(e.current)+" / "+O(e.total)+O(e.truncated?"+":""),1),U((l(),A(t(V),{class:"mar-icon-action",text:"",disabled:e.total===0,"aria-label":t(i)("inlineFind.previous"),onClick:f[1]||(f[1]=b=>a("previous"))},{default:C(()=>[$(t(K),{name:"chevron-up"})]),_:1},8,["disabled","aria-label"])),[[E,t(i)("inlineFind.previous")]]),U((l(),A(t(V),{class:"mar-icon-action",text:"",disabled:e.total===0,"aria-label":t(i)("inlineFind.next"),onClick:f[2]||(f[2]=b=>a("next"))},{default:C(()=>[$(t(K),{name:"chevron-down"})]),_:1},8,["disabled","aria-label"])),[[E,t(i)("inlineFind.next")]]),U((l(),A(t(V),{class:"mar-icon-action",text:"","aria-label":t(i)("inlineFind.close"),onClick:f[3]||(f[3]=b=>a("close"))},{default:C(()=>[$(t(K),{name:"close"})]),_:1},8,["aria-label"])),[[E,t(i)("inlineFind.close")]])],8,Ja)],512)}}}),to=we(eo,[["__scopeId","data-v-652731a9"]]),ao=["aria-label"],oo=["id","aria-hidden","inert"],no=["aria-expanded","aria-controls","aria-label"],io=me({__name:"WorkspaceFloatingActions",props:{label:{},collapseLabel:{},expandLabel:{},layout:{default:"row"},mobileOnly:{type:Boolean},contained:{type:Boolean},compactOnDesktop:{type:Boolean}},setup(e){const o=e,s=F(!0),a=Mt(),y=Z(()=>s.value?o.collapseLabel:o.expandLabel);return(r,v)=>{const u=Ie("tooltip");return l(),h("div",{class:Te(["workspace-floating-actions",[`is-${e.layout}`,{"is-collapsed":!s.value,"is-mobile-only":e.mobileOnly,"is-contained":e.contained,"is-desktop-compact":e.compactOnDesktop}]]),role:"group","aria-label":e.label},[W("div",{id:t(a),class:"workspace-floating-actions-body","aria-hidden":!s.value,inert:!s.value},[le(r.$slots,"default",{expanded:s.value},void 0,!0)],8,oo),U((l(),h("button",{class:"workspace-floating-actions-toggle mar-icon-button mar-icon-action",type:"button","aria-expanded":s.value,"aria-controls":t(a),"aria-label":y.value,onClick:v[0]||(v[0]=k=>s.value=!s.value)},[$(t(K),{name:"menu"})],8,no)),[[u,y.value]])],10,ao)}}}),lo=we(io,[["__scopeId","data-v-9c7a7ca3"]]),ro={class:"file-preview-state"},so={key:0,role:"status"},co=me({__name:"FilePreviewState",props:{message:{},retryable:{type:Boolean},retrying:{type:Boolean}},emits:["retry"],setup(e,{emit:o}){const s=e,a=o;return(y,r)=>(l(),h("section",ro,[e.retrying?I("",!0):(l(),h("p",so,O(e.message),1)),le(y.$slots,"actions",{},()=>[e.retryable?(l(),A(t(V),{key:0,link:"","aria-disabled":e.retrying||void 0,"aria-busy":e.retrying||void 0,"aria-label":e.retrying?t(i)("generated.filePreviewDialog.loadingPreview"):void 0,onClick:r[0]||(r[0]=v=>!s.retrying&&a("retry"))},{default:C(()=>[e.retrying?(l(),A(t(Fa),{key:0,class:"preview-retry-spinner"})):(l(),h(J,{key:1},[Y(O(t(i)("common.retry")),1)],64))]),_:1},8,["aria-disabled","aria-busy","aria-label"])):I("",!0)],!0)]))}}),et=we(co,[["__scopeId","data-v-2a78d395"]]),uo=["role","aria-modal","aria-busy"],fo={class:"file-preview-header workspace-file-page-frame-header"},vo={class:"workspace-file-page-frame-title"},mo={class:"workspace-file-page-frame-heading"},wo=["aria-description"],po={key:0,class:"mar-file-preview-eyebrow"},yo={key:0},go={class:"mar-file-preview-actions file-preview-desktop-actions"},bo={class:"workspace-file-page-frame-content"},ko=me({__name:"WorkspaceFilePageFrame",props:{fileName:{},path:{},sourceLabel:{},loading:{type:Boolean},loadError:{},fullscreen:{type:Boolean},contained:{type:Boolean},mobileActionsLabel:{},mobileActionsLayout:{default:"wrap"}},emits:["retry"],setup(e,{expose:o,emit:s}){const a=e,y=Z(()=>a.path===a.fileName?void 0:a.path),r=s,v=F(),u=F(!1);ne(()=>a.path,()=>{u.value=!1}),ne(()=>a.loading,b=>{if(b||!u.value)return;const P=document.activeElement;!a.loadError&&P?.closest(".file-preview-state")&&v.value?.contains(P)&&v.value.focus({preventScroll:!0}),u.value=!1});async function k(){a.loading||u.value||(u.value=!0,r("retry"),await fe(),a.loading||(u.value=!1))}const f=ga(),E=Va({isOpen:()=>a.fullscreen===!0&&!a.contained,regions:()=>[v.value]});return he(E.dispose),o({root:v}),(b,P)=>{const m=Ie("tooltip");return l(),h("section",{ref_key:"root",ref:v,class:Te(["workspace-file-page-frame",{"is-loading":a.loading,"is-fullscreen":a.fullscreen&&!a.contained}]),role:a.fullscreen&&!a.contained?"dialog":"region","aria-modal":a.fullscreen&&!a.contained||void 0,tabindex:"-1","aria-busy":a.loading||void 0},[W("header",fo,[W("div",vo,[W("div",mo,[U((l(),h("h2",{"aria-description":a.path},[Y(O(a.fileName),1)],8,wo)),[[m,a.path]]),a.sourceLabel||t(f).metadata?(l(),h("span",po,[le(b.$slots,"metadata",{},()=>[Y(O(a.sourceLabel),1)],!0)])):I("",!0)]),y.value?U((l(),h("small",yo,[Y(O(y.value),1)])),[[m,a.path]]):I("",!0),le(b.$slots,"status",{},void 0,!0)]),W("div",go,[le(b.$slots,"leading-actions",{},void 0,!0),le(b.$slots,"primary-actions",{},void 0,!0),le(b.$slots,"secondary-actions",{},void 0,!0)])]),W("div",bo,[a.loading&&!u.value?(l(),A(Xe,{key:0,overlay:""})):I("",!0),u.value||!a.loading&&a.loadError?(l(),A(et,{key:1,message:a.loadError??"",retrying:u.value,retryable:"",onRetry:k},null,8,["message","retrying"])):a.loadError?I("",!0):le(b.$slots,"default",{},void 0,!0,2)]),t(f)["mobile-actions"]?(l(),A(lo,{key:0,class:"mobile-preview-actions workspace-file-mobile-actions",layout:a.mobileActionsLayout,label:a.mobileActionsLabel??t(i)("generated.filePreviewDialog.filePreviewActions"),"collapse-label":t(i)("filePreviewDialog.collapseMobileActions"),"expand-label":t(i)("filePreviewDialog.expandMobileActions"),"mobile-only":""},{default:C(()=>[le(b.$slots,"mobile-actions",{},void 0,!0)]),_:3},8,["layout","label","collapse-label","expand-label"])):I("",!0)],10,uo)}}}),Wt=we(ko,[["__scopeId","data-v-5528a9a9"]]),ho=me({__name:"WorkspacePreviewContextMenu",props:{pasteEnabled:{type:Boolean},selectAllEnabled:{type:Boolean},quoteEnabled:{type:Boolean}},emits:["copy","paste","reload","selectAll","quote"],setup(e,{expose:o,emit:s}){const a=e,y=s,r=F(),v=F(),u=F(!1),k=ba(),f={getBoundingClientRect:()=>k.value??new DOMRect};async function E(m){m.preventDefault(),m.stopPropagation(),k.value=new DOMRect(m.clientX,m.clientY),u.value=!0,await fe(),r.value?.handleOpen()}function b(m){y(m==="copy"?"copy":m==="paste"?"paste":m==="selectAll"?"selectAll":m==="quote"?"quote":"reload")}let P;return ge(()=>{P=ve.register({command:"filePreview.dismissMenu",priority:150,scope:"overlay",modalOwner:()=>v.value,allowedInBlockedScopes:["file-preview"],keys:[{key:"Escape"}],when:()=>u.value,execute:()=>(r.value?.handleClose(),"HANDLED")})}),he(()=>P?.()),o({open:E,close:()=>u.value=!1}),(m,D)=>u.value?(l(),A(t(da),{key:0,ref_key:"menu",ref:r,trigger:"contextmenu","virtual-triggering":"","virtual-ref":f,placement:"bottom-start",onCommand:b,onVisibleChange:D[1]||(D[1]=S=>!S&&(u.value=!1))},{dropdown:C(()=>[W("div",{ref_key:"actions",ref:v,class:"preview-context-actions",onPointerdown:D[0]||(D[0]=Je(()=>{},["stop","prevent"]))},[$(t(ua),null,{default:C(()=>[$(t(Me),{command:"copy",icon:"copy"},{default:C(()=>[Y(O(t(i)("filePreviewContext.copy")),1)]),_:1}),$(t(Me),{command:"paste",icon:"paste",disabled:!a.pasteEnabled},{default:C(()=>[Y(O(t(i)("filePreviewContext.paste")),1)]),_:1},8,["disabled"]),$(t(Me),{command:"selectAll",icon:"menu",disabled:!a.selectAllEnabled},{default:C(()=>[Y(O(t(i)("composer.selectAll")),1)]),_:1},8,["disabled"]),$(t(Me),{command:"quote",icon:"quote",disabled:!a.quoteEnabled},{default:C(()=>[Y(O(t(i)("composer.quote")),1)]),_:1},8,["disabled"]),$(t(Me),{command:"reload",icon:"refresh"},{default:C(()=>[Y(O(t(i)("filePreviewContext.reload")),1)]),_:1})]),_:1})],544)]),_:1},512)):I("",!0)}}),Eo=we(ho,[["__scopeId","data-v-b34cec2e"]]),Po={key:0},Do={key:1,class:"file-preview-size"},Co=["id","aria-selected","data-symbol-index","onMousemove","onClick"],xo={key:0},To={key:0,class:"file-navigation-loading",role:"status"},Io={key:0,class:"file-navigation-loading",role:"status"},Fo={key:1,class:"file-navigation-loading"},Ao={class:"file-navigation-title"},Lo={key:0,class:"file-navigation-group is-definition"},$o={class:"file-navigation-group-title"},Oo={class:"file-symbol-list",role:"listbox"},So=["onClick"],Ro={class:"file-navigation-path"},Mo=["innerHTML"],No={key:1,class:"file-navigation-group is-reference"},Bo={class:"file-navigation-group-title"},Uo={class:"file-symbol-list",role:"listbox"},_o=["onClick"],Vo={class:"file-navigation-path"},Wo=["innerHTML"],qo={key:2,class:"file-navigation-group is-file"},Ho={class:"file-navigation-group-title"},zo={class:"file-symbol-list",role:"listbox"},Ko=["onClick"],Go={class:"file-navigation-path"},jo=["innerHTML"],Yo=["value","aria-label"],Xo={key:3,class:"mar-empty"},Qo=me({__name:"WorkspaceTextFilePage",props:{file:{},quoteTarget:{},quoteOrigin:{},quoteRevision:{},kind:{},loading:{type:Boolean},loadError:{},fullscreen:{type:Boolean},contained:{type:Boolean},downloading:{type:Boolean},targetLine:{},targetColumn:{},markdown:{type:Boolean},html:{type:Boolean},renderMarkdown:{type:Boolean},markdownResourceUrl:{},writeEnabled:{type:Boolean},saveFile:{},codeNavigationEnabled:{type:Boolean},active:{type:Boolean,default:!0},navigationLoading:{type:Boolean},navigationTargets:{},navigationNoDefinition:{type:Boolean},navigationNotice:{},editorIdentity:{},tabIdentity:{},initialDirtyDraft:{}},emits:["viewed","close","quoted","download","open-markdown-preview","open-html-preview","open-markdown-file","navigate-symbol","navigate-file","dismiss-navigation","open-navigation-target","reload","dirty-draft-applied"],setup(e,{expose:o,emit:s}){const a=Ne(()=>ke(()=>import("./CodeFileEditor-CJ5ai-04.js").then(c=>c.K),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))),y=Ne(()=>ke(()=>import("./MarkdownFilePreview-Di3Qwl-w.js"),__vite__mapDeps([9,2,3,1,4,5,6,10]))),r=e,v=s,u=F(),k=F(),f=F(),E=F(),b=F();let P="";function m(c){const n=f.value,L=n?.selectionStart??0,d=n?.selectionEnd??0,j=B.value?u.value?.selectionSnapshot():n&&L!==d?{text:n.value.slice(L,d),startLine:n.value.slice(0,L).split(`
|
|
3
|
+
`).length,endLine:n.value.slice(0,Math.max(L,d-1)).split(`
|
|
4
|
+
`).length}:void 0;P=j?.text??"";const oe=r.quoteTarget?.capture(),Re=r.file,_e=j?{type:"quote",source:"file",label:`${Re.path.split("/").at(-1)}:${j.startLine}–${j.endLine}`,path:Re.path,origin:r.quoteOrigin??"WORKING_TREE",...r.quoteRevision??T.value?{revision:r.quoteRevision??T.value}:{},unsaved:se.value,...j}:void 0;b.value=oe&&_e?.text.trim()?()=>{const oa=r.active!==!1&&r.file===Re&&oe(_e);b.value=void 0,oa&&v("quoted")}:void 0,E.value?.open(c)}function D(){B.value?(u.value?.focus(),u.value?.selectAll()):f.value&&(f.value.focus(),f.value.select())}ne(()=>r.active,c=>{c===!1&&E.value?.close()});const S=F(),M=F(!1),H=F(""),w=F(0),p=Ga(),x=F(r.file.content),N=F(r.file.content),T=F(r.file.revision),z=new Set;let ee=!1,X=ae(r.file.path);const te=new Map,B=Z(()=>!r.loadError&&r.kind==="text"&&fa(r.file)),ce=Z(()=>!r.loadError&&r.kind==="text"&&!B.value),pe=Z(()=>{const c=H.value;if(c.length===0)return[];const n=new RegExp(c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"giu"),L=[];for(const d of x.value.matchAll(n))if(d.index!==void 0&&(L.push({from:d.index,to:d.index+d[0].length}),L.length>=5e3))break;return L}),g=Z(()=>pe.value.length===0?0:w.value+1),_=Z(()=>B.value&&r.writeEnabled===!0&&r.file.previewEncoding===void 0&&r.saveFile!==void 0&&T.value!==void 0),R=F(_.value&&p.mode.value==="edit"),q=F(!1);function be(){te.set(X,{content:x.value,savedContent:N.value,revision:T.value,editing:R.value})}function ae(c,n=r.editorIdentity){return`${n??""}\0${c}`}function re(c){const n=te.get(ae(c.path));if(n===void 0){x.value=c.content,N.value=c.content,T.value=c.revision,R.value=_.value&&p.mode.value==="edit";return}x.value=n.content,N.value=n.savedContent,T.value=n.revision,R.value=n.editing&&_.value}ne([()=>r.file,()=>r.editorIdentity],([c])=>{const n=ae(c.path);n!==X?(be(),X=n,re(c)):!q.value&&x.value===N.value&&(x.value=c.content,N.value=c.content,T.value=c.revision,R.value=_.value&&p.mode.value==="edit")}),ne([x,N,T,R],be);const Fe=F(!1),Ue=F([]),Ae=F(""),de=F(!1),at=F(),ot=F(),We=F(),nt=F(),it=Z(()=>r.navigationTargets?.filter(c=>c.source==="DEFINITION")??[]),lt=Z(()=>r.navigationTargets?.filter(c=>c.source==="REFERENCE")??[]),rt=Z(()=>r.navigationTargets?.filter(c=>c.source==="FILE")??[]);function De(c){if(c.preview!==void 0)return va(c.preview,c.path)[0]??c.preview}const ie=F(0),se=Z(()=>x.value!==N.value),qt=ka(ha,void 0);ne(_,c=>{c||(R.value=!1)});const Ee=Z(()=>{const c=Ae.value.trim().toLocaleLowerCase();return c===""?Ue.value:Ue.value.filter(n=>n.name.toLocaleLowerCase().includes(c))}),Le=Xa(),Pe=F(!1),st=F(),qe=Ha(),ye=Ea({watermarkEnabled:!1,watermarkText:""});function ct(){ye.watermarkEnabled=qe.preference.value.watermarkEnabled,ye.watermarkText=qe.preference.value.watermarkText,Pe.value=!0}async function Ht(){await st.value?.validate().catch(()=>!1)&&(qe.save(ye),Pe.value=!1)}function dt(c){if(r.active===!1)return;const n=c.target;n instanceof Element&&(!n.closest("[data-file-symbol-toggle]")&&!We.value?.contains(n)&&Se(),nt.value?.contains(n)||v("dismiss-navigation",c))}function ut(){k.value?.root?.focus()}function zt(c){!R.value&&c.currentTarget instanceof HTMLElement&&!c.currentTarget.contains(document.activeElement)&&ut()}function Kt(){if(B.value)return u.value?.cursorPosition();const c=f.value;if(c===void 0)return;const L=c.value.slice(0,c.selectionStart).split(`
|
|
5
|
+
`);return{line:L.length,column:(L.at(-1)?.length??0)+1}}function Gt(c,n){if(B.value){u.value?.scrollToLine(c,n);return}const L=f.value;if(L===void 0||c<1)return;const j=L.value.split(`
|
|
6
|
+
`).slice(0,c-1).reduce((Re,_e)=>Re+_e.length+1,0),oe=Math.min(L.value.length,j+Math.max(0,(n??1)-1));L.setSelectionRange(oe,oe),L.focus()}function He(){return B.value&&u.value!==void 0?(u.value.openFind(),!0):ce.value?(M.value=!0,fe(()=>S.value?.focus()),!0):!1}function jt(){if(B.value&&u.value?.isFocused()===!0)return u.value.selectAll();const c=f.value;return!ce.value||document.activeElement!==c?!1:(c.setSelectionRange(0,c.value.length),!0)}function ft(c){const n=pe.value.length;n!==0&&(w.value=(w.value+c+n)%n,vt())}function vt(){const c=pe.value[w.value],n=f.value;c===void 0||n===void 0||(n.focus(),n.setSelectionRange(c.from,c.to))}function mt(){M.value=!1,f.value?.focus()}function Yt(){return!B.value||!_.value?"UNAVAILABLE":(R.value=!R.value,"CHANGED")}const $e=()=>k.value?.root,wt=()=>r.active!==!1,Oe=()=>wt()&&r.kind==="text"&&!Pe.value,Xt=[{command:"filePreview.dismissPanel",priority:120,scope:"file-preview",owner:$e,keys:G.dismiss,when:c=>wt()&&!je.isEscapeBlocked(c)&&(M.value||u.value?.isFindOpen()===!0||r.kind==="text"&&de.value),execute:()=>(M.value?mt():u.value?.isFindOpen()?u.value.closeFind():Se(),"HANDLED")},{command:"filePreview.openFormat",priority:120,scope:"file-preview",owner:$e,keys:Ce.preview,when:()=>Oe()&&(r.markdown===!0||r.html===!0),execute:()=>(r.html?v("open-html-preview"):v("open-markdown-preview"),"HANDLED")},{command:"filePreview.replace",priority:120,scope:"file-preview",owner:$e,keys:G.replace,when:()=>Oe()&&R.value,execute:()=>(u.value?.openFind(),"HANDLED")},{command:"filePreview.save",priority:120,scope:"file-preview",owner:$e,keys:G.save,when:()=>Oe()&&R.value&&_.value,execute:()=>(Ge(),"HANDLED")},{command:"filePreview.symbols",priority:120,scope:"file-preview",owner:$e,keys:G.symbols,when:Oe,execute:()=>(de.value?Se():ze(),"HANDLED")},{command:"filePreview.selectSymbol",priority:130,scope:"file-preview",owner:()=>We.value?.querySelector("input")??void 0,keys:G.choose,when:()=>Oe()&&de.value&&Ee.value[ie.value]!==void 0,execute:()=>(ht(Ee.value[ie.value]),"HANDLED")}];let pt;ne(H,()=>{w.value=0,fe(vt)});async function ze(){B.value&&(de.value=!0,ie.value=0,await fe(),at.value?.focus(),Ke())}function Se(){de.value=!1,u.value?.focus()}function Ke(){fe(()=>{ot.value?.querySelector(`[data-symbol-index="${ie.value}"]`)?.scrollIntoView({block:"nearest"})})}function Qt(c){const n=Ee.value.length;n!==0&&(ie.value=(ie.value+c+n)%n,Ke())}function Jt(c){if(c.key==="ArrowDown"||c.key==="ArrowUp"){c.preventDefault(),c.stopPropagation(),Qt(c.key==="ArrowDown"?1:-1);return}}ne([()=>r.file.path,()=>r.initialDirtyDraft],()=>{const c=r.initialDirtyDraft;c!==void 0&&c.tabIdentity===r.tabIdentity&&!z.has(c.tabIdentity)&&(x.value=c.content,T.value=c.expectedRevision,R.value=!1,z.add(c.tabIdentity),v("dirty-draft-applied",c.tabIdentity)),de.value=!1,Ae.value="",ie.value=0},{immediate:!0}),ne([Ae,Ee],()=>{ie.value=0,Ke()});async function Ge(){if(q.value||!R.value||!se.value||!_.value||T.value===void 0)return;const c=X,n=x.value;q.value=!0;try{const L=await r.saveFile(n,T.value);if(X===c)T.value=L,N.value=n;else{const d=te.get(c);d!==void 0&&te.set(c,{...d,savedContent:n,revision:L})}Ve(i("fileEditor.saved"),"success")}catch(L){Ve($a(L,Pa(L)==="FILE_WRITE_CONFLICT"?i("fileEditor.conflict"):i("fileEditor.saveFailed")),"error",L)}finally{q.value=!1}}async function yt(){if(Fe.value)return!1;if(se.value){Fe.value=!0;try{return await Wa()}finally{Fe.value=!1}}return!0}async function gt(){v("close")}async function bt(){return await yt()?(kt(),v("close"),!0):!1}const je=tt({isOpen:()=>r.fullscreen===!0&&r.active!==!1,root:()=>k.value?.root,closeWindow:bt,closeTab:bt});async function Zt(){const c=P;if(c)try{await navigator.clipboard.writeText(c)}catch{Ve(i("filePreviewContext.clipboardFailed"),"error")}}async function ea(){if(!(!R.value||!B.value))try{u.value?.insertText(await navigator.clipboard.readText())}catch{Ve(i("filePreviewContext.clipboardFailed"),"error")}}async function ta(){if(se.value){try{await Rt.confirm(i("filePreviewContext.reloadUnsaved"),i("fileEditor.unsavedTitle"),{icon:ue("warning"),type:"warning"})}catch{return}x.value=N.value}v("reload")}function aa(){return be(),r.kind!=="text"?[]:[...te.entries()].flatMap(([c,n])=>{if(n.content===n.savedContent||n.revision===void 0)return[];const L=c.indexOf("\0"),d=c.slice(0,L),j=d===String(r.editorIdentity??"")?r.tabIdentity??d:d,oe=c.slice(L+1);return j===""||oe===""?[]:[{tabIdentity:j,path:oe,content:n.content,expectedRevision:n.revision}]})}function kt(){ee=!0}function ht(c){de.value=!1;const n=u.value?.positionAt(c.from);n!==void 0&&v("open-navigation-target",{source:"DEFINITION",path:r.file.path,...n}),u.value?.goTo(c.from)}function Et(c){qt?.isReloadingForUpdate()||!se.value||ee||(c.preventDefault(),c.returnValue="")}return ge(()=>{const c=Xt.map(n=>ve.register(n));pt=()=>c.forEach(n=>n()),r.fullscreen&&je.mount()}),ge(()=>document.addEventListener("pointerdown",dt)),ge(()=>window.addEventListener("beforeunload",Et)),he(()=>{je.dispose(),pt?.(),document.removeEventListener("pointerdown",dt),window.removeEventListener("beforeunload",Et)}),o({focus:ut,cursorPosition:Kt,navigateTo:Gt,openFind:He,selectAll:jt,toggleEdit:Yt,canClose:yt,captureDirtyDrafts:aa,isSaving:()=>q.value,prepareForConfirmedClose:kt}),(c,n)=>{const L=Ie("tooltip");return l(),A(Wt,{ref_key:"previewRoot",ref:k,"file-name":e.file.path.split("/").at(-1)??e.file.path,path:e.file.path,loading:e.loading,"load-error":e.loadError,onRetry:n[27]||(n[27]=d=>v("reload")),fullscreen:e.fullscreen,contained:e.contained,"aria-hidden":e.active===!1||void 0,inert:e.active===!1,"aria-label":t(i)("generated.filePreviewDialog.filePreview",{value0:e.file.path})},{metadata:C(()=>[Y(O(R.value?t(i)("fileEditor.editing"):t(i)("fileEditor.readOnly"))+" ",1),e.file.previewEncoding!==void 0?U((l(),h("span",Po,[Y("· "+O(e.file.previewEncoding.toUpperCase()),1)])),[[L,t(i)("fileEditor.encodingFallback",{encoding:e.file.previewEncoding.toUpperCase()})]]):I("",!0),e.file.size!==void 0?(l(),h("span",Do,"· "+O(t(Bt)(e.file.size)),1)):I("",!0)]),"primary-actions":C(()=>[r.kind==="text"?U((l(),A(t(V),{key:0,class:"file-toolbar-control",circle:"","aria-label":t(i)("inlineFind.label"),onClick:He},{default:C(()=>[$(t(K),{name:"search"})]),_:1},8,["aria-label"])),[[L,t(Q)(t(i)("inlineFind.label"),e.contained?[]:t(G).find)]]):I("",!0),B.value?(l(),h(J,{key:1},[U((l(),A(t(V),{class:"file-toolbar-control","data-file-symbol-toggle":"",circle:"","aria-label":t(i)("fileEditor.symbols"),onClick:n[0]||(n[0]=d=>de.value?Se():ze())},{default:C(()=>[$(t(K),{name:"symbols"})]),_:1},8,["aria-label"])),[[L,t(Q)(t(i)("fileEditor.symbols"),t(G).symbols)]]),_.value?U((l(),A(t(V),{key:0,class:"file-toolbar-control",circle:"","aria-label":R.value?t(i)("fileEditor.readOnly"):t(i)("fileEditor.edit"),onClick:n[1]||(n[1]=d=>R.value=!R.value)},{default:C(()=>[R.value?(l(),A(t(K),{key:0,name:"lock"})):(l(),A(t(K),{key:1,name:"edit"}))]),_:1},8,["aria-label"])),[[L,t(Q)(R.value?t(i)("fileEditor.readOnly"):t(i)("fileEditor.edit"),t(G).toggleEdit)]]):I("",!0),R.value?U((l(),A(t(V),{key:1,class:"file-toolbar-control",circle:"",disabled:!se.value,loading:q.value,icon:t(ue)("document-save"),"aria-label":t(i)("common.save"),onClick:Ge},null,8,["disabled","loading","icon","aria-label"])),[[L,t(Q)(t(i)("common.save"),se.value&&!q.value?t(G).save:[])]]):I("",!0)],64)):I("",!0),e.html?U((l(),A(t(V),{key:2,class:"file-toolbar-control",circle:"","aria-label":t(i)("htmlPreview.open"),onClick:n[2]||(n[2]=d=>v("open-html-preview"))},{default:C(()=>[$(t(K),{name:"view"})]),_:1},8,["aria-label"])),[[L,[t(Q)(t(i)("htmlPreview.open"),t(Ce).preview),se.value?t(i)("htmlPreview.savedVersion"):void 0].filter(Boolean).join(`
|
|
7
|
+
`)]]):I("",!0),e.markdown&&!e.renderMarkdown?(l(),h(J,{key:3},[U((l(),A(t(V),{class:"file-toolbar-control",circle:"","aria-label":t(i)("markdownPreview.open"),onClick:n[3]||(n[3]=d=>v("open-markdown-preview"))},{default:C(()=>[$(t(K),{name:"view"})]),_:1},8,["aria-label"])),[[L,t(Q)(t(i)("markdownPreview.open"),t(Ce).preview)]]),U((l(),A(t(V),{class:"file-toolbar-control",circle:"","aria-label":t(i)("markdownPreview.settings"),onClick:ct},{default:C(()=>[$(t(K),{name:"settings"})]),_:1},8,["aria-label"])),[[L,t(i)("markdownPreview.settings")]])],64)):I("",!0)]),"secondary-actions":C(()=>[U($(t(V),{class:"file-toolbar-control",loading:e.downloading,icon:t(ue)("download"),"aria-label":t(i)("generated.filePreviewDialog.downloadFile"),circle:"",onClick:n[4]||(n[4]=d=>v("download"))},null,8,["loading","icon","aria-label"]),[[L,t(i)("generated.filePreviewDialog.downloadFile")]]),e.fullscreen?U((l(),A(t(V),{key:0,class:"file-toolbar-control","aria-label":t(i)("generated.filePreviewDialog.closePreview"),circle:"",onClick:gt},{default:C(()=>[$(t(K),{name:"close"})]),_:1},8,["aria-label"])),[[L,t(Q)(t(i)("generated.filePreviewDialog.closePreview"),[...t(Be),...t(G).dismiss])]]):I("",!0)]),"mobile-actions":C(()=>[r.kind==="text"?U((l(),A(t(V),{key:0,class:"file-toolbar-control","data-file-symbol-toggle":"",circle:"","aria-label":t(i)("inlineFind.label"),onClick:He},{default:C(()=>[$(t(K),{name:"search"})]),_:1},8,["aria-label"])),[[L,t(Q)(t(i)("inlineFind.label"),e.contained?[]:t(G).find)]]):I("",!0),B.value?U((l(),A(t(V),{key:1,class:"file-toolbar-control",circle:"","aria-label":t(i)("fileEditor.symbols"),onClick:n[5]||(n[5]=d=>de.value?Se():ze())},{default:C(()=>[$(t(K),{name:"symbols"})]),_:1},8,["aria-label"])),[[L,t(Q)(t(i)("fileEditor.symbols"),t(G).symbols)]]):I("",!0),_.value?U((l(),A(t(V),{key:2,class:"file-toolbar-control",circle:"","aria-label":R.value?t(i)("fileEditor.readOnly"):t(i)("fileEditor.edit"),onClick:n[6]||(n[6]=d=>R.value=!R.value)},{default:C(()=>[R.value?(l(),A(t(K),{key:0,name:"lock"})):(l(),A(t(K),{key:1,name:"edit"}))]),_:1},8,["aria-label"])),[[L,t(Q)(R.value?t(i)("fileEditor.readOnly"):t(i)("fileEditor.edit"),t(G).toggleEdit)]]):I("",!0),R.value?U((l(),A(t(V),{key:3,class:"file-toolbar-control",circle:"",disabled:!se.value,loading:q.value,icon:t(ue)("document-save"),"aria-label":t(i)("common.save"),onClick:Ge},null,8,["disabled","loading","icon","aria-label"])),[[L,t(Q)(t(i)("common.save"),se.value&&!q.value?t(G).save:[])]]):I("",!0),e.html?U((l(),A(t(V),{key:4,class:"file-toolbar-control",circle:"","aria-label":t(i)("htmlPreview.open"),onClick:n[7]||(n[7]=d=>v("open-html-preview"))},{default:C(()=>[$(t(K),{name:"view"})]),_:1},8,["aria-label"])),[[L,[t(Q)(t(i)("htmlPreview.open"),t(Ce).preview),se.value?t(i)("htmlPreview.savedVersion"):void 0].filter(Boolean).join(`
|
|
8
|
+
`)]]):I("",!0),e.markdown&&!e.renderMarkdown?(l(),h(J,{key:5},[U((l(),A(t(V),{class:"file-toolbar-control",circle:"","aria-label":t(i)("markdownPreview.open"),onClick:n[8]||(n[8]=d=>v("open-markdown-preview"))},{default:C(()=>[$(t(K),{name:"view"})]),_:1},8,["aria-label"])),[[L,t(Q)(t(i)("markdownPreview.open"),t(Ce).preview)]]),U((l(),A(t(V),{class:"file-toolbar-control",circle:"","aria-label":t(i)("markdownPreview.settings"),onClick:ct},{default:C(()=>[$(t(K),{name:"settings"})]),_:1},8,["aria-label"])),[[L,t(i)("markdownPreview.settings")]])],64)):I("",!0),U($(t(V),{class:"file-toolbar-control",loading:e.downloading,icon:t(ue)("download"),"aria-label":t(i)("generated.filePreviewDialog.downloadFile2"),circle:"",onClick:n[9]||(n[9]=d=>v("download"))},null,8,["loading","icon","aria-label"]),[[L,t(i)("generated.filePreviewDialog.downloadFile2")]]),e.fullscreen?U((l(),A(t(V),{key:6,class:"file-toolbar-control","aria-label":t(i)("generated.filePreviewDialog.closePreview2"),circle:"",onClick:gt},{default:C(()=>[$(t(K),{name:"close"})]),_:1},8,["aria-label"])),[[L,t(Q)(t(i)("generated.filePreviewDialog.closePreview2"),[...t(Be),...t(G).dismiss])]]):I("",!0)]),default:C(()=>[de.value&&B.value?(l(),h("div",{key:0,ref_key:"symbolDropdown",ref:We,class:"file-symbol-dropdown",onPointerdown:n[11]||(n[11]=Je(()=>{},["stop"]))},[$(t(Qe),{ref_key:"symbolInput",ref:at,modelValue:Ae.value,"onUpdate:modelValue":n[10]||(n[10]=d=>Ae.value=d),clearable:"",placeholder:t(i)("fileEditor.searchSymbols"),"aria-controls":"file-symbol-list","aria-activedescendant":Ee.value.length===0?void 0:`file-symbol-${ie.value}`,onKeydown:Jt,"clear-icon":t(ue)("clear-input")},null,8,["modelValue","placeholder","aria-activedescendant","clear-icon"]),W("div",{id:"file-symbol-list",ref_key:"symbolList",ref:ot,class:"file-symbol-list",role:"listbox"},[(l(!0),h(J,null,xe(Ee.value,(d,j)=>(l(),h("button",{id:`file-symbol-${j}`,key:`${d.from}:${d.name}`,type:"button",role:"option","aria-selected":j===ie.value,class:Te({"is-selected":j===ie.value}),"data-symbol-index":j,style:Ct({paddingInlineStart:`${.65+Math.min(d.depth,4)*.75}rem`}),onMousemove:oe=>ie.value=j,onClick:oe=>ht(d)},[W("span",null,O(d.name),1),W("small",null,O(d.kind),1)],46,Co))),128)),Ee.value.length===0?(l(),h("p",xo,O(t(i)("fileEditor.noSymbols")),1)):I("",!0)],512)],544)):I("",!0),e.navigationLoading||e.navigationNotice||e.navigationNoDefinition||(e.navigationTargets?.length??0)>0?(l(),h("div",{key:1,ref_key:"navigationDropdown",ref:nt,class:"file-symbol-dropdown file-navigation-dropdown",onPointerdown:n[12]||(n[12]=Je(()=>{},["stop"]))},[e.navigationLoading?(l(),h("p",To,[$(t(K),{name:"loading-action"}),Y(" "+O(t(i)("fileEditor.preparingNavigation")),1)])):(l(),h(J,{key:1},[e.navigationNotice?(l(),h("p",Io,O(t(i)(e.navigationNotice==="LIMITED"?"fileEditor.navigationLimited":"fileEditor.navigationUnavailable")),1)):e.navigationNoDefinition?(l(),h("p",Fo,O(t(i)("fileEditor.noDefinition")),1)):I("",!0),(e.navigationTargets?.length??0)>0?(l(),h(J,{key:2},[W("p",Ao,O(t(i)("fileEditor.navigationResults")),1),it.value.length>0?(l(),h("section",Lo,[W("p",$o,O(t(i)("fileEditor.definitions")),1),W("div",Oo,[(l(!0),h(J,null,xe(it.value,d=>(l(),h("button",{key:`${d.source}:${d.path}:${d.line}:${d.kind??""}:${d.scope??""}`,class:"file-navigation-option",type:"button",role:"option",onClick:j=>v("open-navigation-target",d)},[W("span",Ro,O(d.path),1),W("small",null,[Y(O(d.line),1),d.kind?(l(),h(J,{key:0},[Y(" · "+O(d.kind),1)],64)):I("",!0),d.scope?(l(),h(J,{key:1},[Y(" · "+O(d.scope),1)],64)):I("",!0)]),De(d)?(l(),h("code",{key:0,class:"file-navigation-preview mar-code-syntax hljs",innerHTML:De(d)},null,8,Mo)):I("",!0)],8,So))),128))])])):I("",!0),lt.value.length>0?(l(),h("section",No,[W("p",Bo,O(t(i)("fileEditor.references")),1),W("div",Uo,[(l(!0),h(J,null,xe(lt.value,d=>(l(),h("button",{key:`${d.source}:${d.path}:${d.line}:${d.column??0}`,class:"file-navigation-option",type:"button",role:"option",onClick:j=>v("open-navigation-target",d)},[W("span",Vo,O(d.path),1),W("small",null,O(d.line)+" · "+O(d.column),1),De(d)?(l(),h("code",{key:0,class:"file-navigation-preview mar-code-syntax hljs",innerHTML:De(d)},null,8,Wo)):I("",!0)],8,_o))),128))])])):I("",!0),rt.value.length>0?(l(),h("section",qo,[W("p",Ho,O(t(i)("fileEditor.files")),1),W("div",zo,[(l(!0),h(J,null,xe(rt.value,d=>(l(),h("button",{key:`${d.source}:${d.path}`,class:"file-navigation-option",type:"button",role:"option",onClick:j=>v("open-navigation-target",d)},[W("span",Go,O(d.path),1),W("small",null,[Y(O(d.line),1),d.kind?(l(),h(J,{key:0},[Y(" · "+O(d.kind),1)],64)):I("",!0),d.scope?(l(),h(J,{key:1},[Y(" · "+O(d.scope),1)],64)):I("",!0)]),De(d)?(l(),h("code",{key:0,class:"file-navigation-preview mar-code-syntax hljs",innerHTML:De(d)},null,8,jo)):I("",!0)],8,Ko))),128))])])):I("",!0)],64)):I("",!0)],64))],544)):I("",!0),M.value&&ce.value?(l(),A(to,{key:2,ref_key:"fallbackFindBar",ref:S,modelValue:H.value,"onUpdate:modelValue":n[13]||(n[13]=d=>H.value=d),current:g.value,total:pe.value.length,truncated:pe.value.length>=5e3,onPrevious:n[14]||(n[14]=d=>ft(-1)),onNext:n[15]||(n[15]=d=>ft(1)),onClose:mt},null,8,["modelValue","current","total","truncated"])):I("",!0),W("main",{class:Te(["mar-file-preview-content",{"file-preview-content-code":B.value&&!(e.markdown&&e.renderMarkdown&&e.markdownResourceUrl&&!R.value),"file-preview-content-fallback":!B.value}]),onClick:zt},[e.loading?I("",!0):(l(),h(J,{key:0},[e.markdown&&e.renderMarkdown&&e.markdownResourceUrl&&!R.value&&B.value?(l(),A(t(y),{key:0,content:x.value,path:e.file.path,"resource-url":e.markdownResourceUrl,onOpenFile:n[16]||(n[16]=(d,j)=>v("open-markdown-file",d,j))},null,8,["content","path","resource-url"])):B.value?(l(),A(t(a),{key:1,ref_key:"codeEditor",ref:u,modelValue:x.value,"onUpdate:modelValue":n[17]||(n[17]=d=>x.value=d),"accessible-label":t(i)("generated.filePreviewDialog.codeEditorPreview"),path:e.file.path,"read-only":!R.value,"target-line":e.targetLine,"target-column":e.targetColumn,"code-navigation-enabled":e.codeNavigationEnabled,style:Ct(t(Le).style.value),onPointerdown:t(Le).pointerDown,onPointermove:t(Le).pointerMove,onPointerup:t(Le).pointerEnd,onPointercancel:t(Le).pointerEnd,onSymbols:n[18]||(n[18]=d=>Ue.value=d),onViewed:n[19]||(n[19]=d=>!R.value&&v("viewed",d)),onNavigateSymbol:n[20]||(n[20]=d=>v("navigate-symbol",d)),onNavigateFile:n[21]||(n[21]=d=>v("navigate-file",d)),onContextmenu:m},null,8,["modelValue","accessible-label","path","read-only","target-line","target-column","code-navigation-enabled","style","onPointerdown","onPointermove","onPointerup","onPointercancel"])):(l(),h("textarea",{key:2,ref_key:"fallbackTextArea",ref:f,class:"file-text-preview",value:x.value,"aria-label":t(i)("generated.filePreviewDialog.codeEditorPreview"),readonly:"",spellcheck:"false",onContextmenu:m},null,40,Yo)),B.value?I("",!0):(l(),h("p",Xo,O(t(i)("generated.filePreviewDialog.onlyTheFirst512KiBIsShown")),1))],64))],2),$(Eo,{ref_key:"contextMenu",ref:E,"paste-enabled":R.value&&B.value,"select-all-enabled":B.value||ce.value,"quote-enabled":b.value!==void 0,onSelectAll:D,onQuote:n[22]||(n[22]=d=>b.value?.()),onCopy:Zt,onPaste:ea,onReload:ta},null,8,["paste-enabled","select-all-enabled","quote-enabled"]),Pe.value?(l(),A(t(Nt),{key:3,onVnodeMounted:t(La),onVnodeBeforeUnmount:t(Aa),modelValue:Pe.value,"onUpdate:modelValue":n[26]||(n[26]=d=>Pe.value=d),title:t(i)("markdownPreview.settings"),width:"min(28rem, calc(100vw - 2rem))"},{footer:C(()=>[$(t(V),{onClick:n[25]||(n[25]=d=>Pe.value=!1)},{default:C(()=>[Y(O(t(i)("common.cancel")),1)]),_:1}),$(t(V),{type:"primary",onClick:Ht},{default:C(()=>[Y(O(t(i)("common.save")),1)]),_:1})]),default:C(()=>[$(t(Ta),{ref_key:"form",ref:st,model:ye,"label-position":"top",rules:{watermarkText:[{validator:(d,j,oe)=>ye.watermarkEnabled&&j.trim()===""?oe(new Error(t(i)("markdownPreview.watermarkRequired"))):oe(),trigger:"blur"}]}},{default:C(()=>[$(t(xt),{label:t(i)("markdownPreview.watermarkEnabled")},{default:C(()=>[$(t(Ia),{modelValue:ye.watermarkEnabled,"onUpdate:modelValue":n[23]||(n[23]=d=>ye.watermarkEnabled=d)},null,8,["modelValue"])]),_:1},8,["label"]),$(t(xt),{label:t(i)("markdownPreview.watermarkText"),prop:"watermarkText"},{default:C(()=>[$(t(Qe),{modelValue:ye.watermarkText,"onUpdate:modelValue":n[24]||(n[24]=d=>ye.watermarkText=d),placeholder:t(i)("markdownPreview.watermarkPlaceholder"),maxlength:"80","show-word-limit":""},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"])]),_:1},8,["onVnodeMounted","onVnodeBeforeUnmount","modelValue","title"])):I("",!0)]),_:1},8,["file-name","path","loading","load-error","fullscreen","contained","aria-hidden","inert","aria-label"])}}}),Mn=we(Qo,[["__scopeId","data-v-136f97ec"]]),Jo="/assets/pdf.worker.min-CHFwMXne.mjs",Zo=me({__name:"PdfFilePreview",props:{src:{}},emits:["rendered","error"],setup(e,{emit:o}){const s=e,a=o,y=F(),r=F(0),v=new Map;let u,k,f,E,b=!1,P=0,m,D=0;function S(T,z){z instanceof HTMLCanvasElement?v.set(T,z):v.delete(T)}async function M(){const T=++P;b=!1,x();const z=E,ee=k;k=void 0,await Promise.all([ee?.destroy().catch(()=>{}),z?.catch(()=>!1)]),u=void 0,r.value=0;try{const X=await ke(()=>import("./pdf-DMRcuM1e.js"),[]);X.GlobalWorkerOptions.workerSrc=Jo;const te=X.getDocument({url:s.src,withCredentials:!0});k=te;const B=await te.promise;if(T!==P){await te.destroy();return}u=B,r.value=B.numPages,await fe();const ce=await H(T);T===P&&ce&&a("rendered")}catch{T===P&&a("error")}}function H(T=P){if(T!==P)return Promise.resolve(!1);if(b=!0,E===void 0){const z=w(T);E=z,z.finally(()=>{E===z&&(E=void 0),b&&T===P&&H(T)})}return E}async function w(T){let z=!1;for(;T===P&&b;)b=!1,z=await p(T);return z}async function p(T){if(u===void 0||y.value===void 0)return!1;const z=Math.max(240,y.value.clientWidth-32);D=z;const ee=Math.min(window.devicePixelRatio||1,2);try{for(let X=1;X<=u.numPages;X+=1){if(T!==P)return!1;const te=await u.getPage(X);if(T!==P)return!1;const B=v.get(X);if(B===void 0)continue;const ce=te.getViewport({scale:1}),pe=Math.min(z/ce.width,2),g=te.getViewport({scale:pe*ee});B.width=Math.ceil(g.width),B.height=Math.ceil(g.height),B.style.width=`${Math.ceil(g.width/ee)}px`,B.style.height=`${Math.ceil(g.height/ee)}px`;const _=te.render({canvas:B,viewport:g});f=_;try{await _.promise}finally{f===_&&(f=void 0)}}return!0}catch(X){return T===P&&!N(X)&&a("error"),b=!1,!1}}function x(){f?.cancel()}function N(T){return T instanceof Error&&T.name==="RenderingCancelledException"}return ne(()=>s.src,M),ge(()=>{m=new ResizeObserver(()=>{y.value!==void 0&&Math.max(240,y.value.clientWidth-32)!==D&&H()}),y.value!==void 0&&m.observe(y.value),M()}),he(()=>{P+=1,m?.disconnect(),x(),k?.destroy().catch(()=>{})}),(T,z)=>(l(),h("div",{ref_key:"container",ref:y,class:"pdf-file-preview"},[(l(!0),h(J,null,xe(r.value,ee=>(l(),h("canvas",{key:ee,ref_for:!0,ref:X=>S(ee,X),class:"pdf-file-preview-page"}))),128))],512))}}),en=we(Zo,[["__scopeId","data-v-7ac27003"]]),tn={class:"mar-file-preview-content"},an=["src"],on=["src"],nn={key:4,class:"file-pdf-preview"},ln=me({__name:"WorkspaceFormatFilePage",props:{file:{},contentUrl:{},kind:{},loading:{type:Boolean},loadError:{},fullscreen:{type:Boolean},contained:{type:Boolean},downloading:{type:Boolean},active:{type:Boolean,default:!0}},emits:["close","download","reload"],setup(e,{expose:o,emit:s}){const a=Ne(async()=>(await ke(()=>Promise.resolve({}),__vite__mapDeps([11])),(await ke(async()=>{const{default:w}=await import("./index-kURlw-_V.js").then(p=>p.i);return{default:w}},__vite__mapDeps([12,1,2,3,4,5,6,13]))).default)),y=Ne(async()=>(await ke(()=>Promise.resolve({}),__vite__mapDeps([14])),(await ke(async()=>{const{default:w}=await import("./index-CguqeYVt.js").then(p=>p.i);return{default:w}},__vite__mapDeps([15,1,2,3,4,5,6,13]))).default)),r=Ne(async()=>(await ke(async()=>{const{default:w}=await import("./index-xuRyvDfa.js").then(p=>p.i);return{default:w}},__vite__mapDeps([16,1,2,3,4,5,6,13]))).default),v=e,u=s,k=F(),f=F(),E=Z(()=>f.value?.controls),b=F(!1),P=F(!1),m=Z(()=>v.contentUrl!==void 0&&v.kind!=="unsupported");ne(()=>[v.contentUrl,v.kind],()=>{b.value=!1,P.value=["pdf","document","spreadsheet","presentation"].includes(v.kind)},{immediate:!0});function D(){b.value=!0,P.value=!1}function S(){k.value?.root?.focus()}function M(){return u("close"),!0}const H=tt({isOpen:()=>v.fullscreen===!0&&v.active!==!1,root:()=>k.value?.root,closeWindow:M,closeTab:M});return ge(()=>{v.active!==!1&&S(),v.fullscreen&&H.mount()}),he(()=>H.dispose()),o({focus:S,openFind:()=>!1,selectAll:()=>!1,toggleEdit:()=>"UNAVAILABLE",canClose:async()=>!0}),(w,p)=>{const x=Ie("tooltip");return l(),A(Wt,{ref_key:"root",ref:k,"file-name":e.file.path.split("/").at(-1)??e.file.path,path:e.file.path,loading:e.loading,"load-error":e.loadError,onRetry:p[10]||(p[10]=N=>u("reload")),fullscreen:e.fullscreen,contained:e.contained,"mobile-actions-layout":e.kind==="image"?"image":"compact",tabindex:"-1","aria-hidden":e.active===!1||void 0,inert:e.active===!1,"aria-label":t(i)("generated.filePreviewDialog.filePreview",{value0:e.file.path})},Da({"secondary-actions":C(()=>[U($(t(V),{class:"file-toolbar-control",loading:e.downloading,icon:t(ue)("download"),"aria-label":t(i)("generated.filePreviewDialog.downloadFile"),circle:"",onClick:p[0]||(p[0]=N=>u("download"))},null,8,["loading","icon","aria-label"]),[[x,t(i)("generated.filePreviewDialog.downloadFile")]]),e.fullscreen?U((l(),A(t(V),{key:0,class:"file-toolbar-control","aria-label":t(i)("generated.filePreviewDialog.closePreview"),circle:"",onClick:p[1]||(p[1]=N=>u("close"))},{default:C(()=>[$(t(K),{name:"close"})]),_:1},8,["aria-label"])),[[x,t(Q)(t(i)("generated.filePreviewDialog.closePreview"),[...t(Be),...t(G).dismiss])]]):I("",!0)]),"mobile-actions":C(()=>[E.value?(l(),A(Pt,{key:0,class:"file-image-controls",controls:E.value},null,8,["controls"])):I("",!0),U($(t(V),{class:"file-toolbar-control",loading:e.downloading,icon:t(ue)("download"),"aria-label":t(i)("generated.filePreviewDialog.downloadFile2"),circle:"",onClick:p[2]||(p[2]=N=>u("download"))},null,8,["loading","icon","aria-label"]),[[x,t(i)("generated.filePreviewDialog.downloadFile2")]]),e.fullscreen?U((l(),A(t(V),{key:1,class:"file-toolbar-control","aria-label":t(i)("generated.filePreviewDialog.closePreview2"),circle:"",onClick:p[3]||(p[3]=N=>u("close"))},{default:C(()=>[$(t(K),{name:"close"})]),_:1},8,["aria-label"])),[[x,t(Q)(t(i)("generated.filePreviewDialog.closePreview2"),[...t(Be),...t(G).dismiss])]]):I("",!0)]),default:C(()=>[W("main",tn,[e.loading?I("",!0):(l(),h(J,{key:0},[b.value?(l(),A(et,{key:0,message:t(i)("generated.filePreviewDialog.previewFailedDownloadInstead")},{actions:C(()=>[$(t(V),{loading:e.downloading,onClick:p[4]||(p[4]=N=>u("download"))},{default:C(()=>[Y(O(t(i)("generated.filePreviewDialog.downloadFile")),1)]),_:1},8,["loading"])]),_:1},8,["message"])):e.kind==="image"&&e.contentUrl?(l(),A(ma,{ref_key:"imageViewport",ref:f,key:e.contentUrl,"external-controls":"","image-class":"file-binary-preview",src:e.contentUrl,alt:e.file.path,onError:D},null,8,["src","alt"])):e.kind==="video"&&e.contentUrl?(l(),h("video",{key:2,class:"file-binary-preview",src:e.contentUrl,controls:"",preload:"metadata",onError:D},null,40,an)):e.kind==="audio"&&e.contentUrl?(l(),h("audio",{key:3,class:"file-audio-preview",src:e.contentUrl,controls:"",preload:"metadata",onError:D},null,40,on)):e.kind==="pdf"&&e.contentUrl?(l(),h("div",nn,[$(en,{src:e.contentUrl,onRendered:p[5]||(p[5]=N=>P.value=!1),onError:D},null,8,["src"]),P.value?(l(),A(Xe,{key:0,overlay:""})):I("",!0)])):m.value&&["document","spreadsheet","presentation"].includes(e.kind)?(l(),h("div",{key:5,class:Te(["file-office-preview",{"is-spreadsheet":e.kind==="spreadsheet","is-presentation":e.kind==="presentation"}])},[e.kind==="document"?(l(),A(t(a),{key:0,class:"file-document-renderer",src:e.contentUrl,onRendered:p[6]||(p[6]=N=>P.value=!1),onError:D},null,8,["src"])):e.kind==="spreadsheet"?(l(),A(t(y),{key:1,class:"file-spreadsheet-renderer",src:e.contentUrl,onRendered:p[7]||(p[7]=N=>P.value=!1),onError:D},null,8,["src"])):(l(),A(t(r),{key:2,class:"file-presentation-renderer",src:e.contentUrl,onRendered:p[8]||(p[8]=N=>P.value=!1),onError:D},null,8,["src"])),P.value?(l(),A(Xe,{key:3,overlay:""})):I("",!0)],2)):(l(),A(et,{key:6,message:t(i)("generated.filePreviewDialog.thisFileTypeCannotBePreviewedIn")},{actions:C(()=>[$(t(V),{loading:e.downloading,onClick:p[9]||(p[9]=N=>u("download"))},{default:C(()=>[Y(O(t(i)("generated.filePreviewDialog.downloadFile")),1)]),_:1},8,["loading"])]),_:1},8,["message"]))],64))])]),_:2},[e.file.size!==void 0?{name:"metadata",fn:C(()=>[Y(O(t(Bt)(e.file.size)),1)]),key:"0"}:void 0,E.value?{name:"leading-actions",fn:C(()=>[$(Pt,{class:"file-image-controls",controls:E.value,placement:"bottom"},null,8,["controls"])]),key:"1"}:void 0]),1032,["file-name","path","loading","load-error","fullscreen","contained","mobile-actions-layout","aria-hidden","inert","aria-label"])}}}),Nn=we(ln,[["__scopeId","data-v-91faed7b"]]),rn=me({__name:"FilePreviewSurface",props:{overlay:{type:Boolean},label:{}},emits:["focus","close"],setup(e,{expose:o,emit:s}){const a=e,y=s,r=F(),v=F(!1);let u;function k(){r.value?.panel===document.activeElement&&y("focus")}function f(){v.value||y("close")}function E(){return r.value?new Promise(m=>{u=m,v.value=!0}):Promise.resolve(!1)}function b(){const m=u;u=void 0,v.value=!1,m?.(!1)}function P(){u?.(!0),u=void 0}return he(()=>u?.(!1)),o({close:E,cancelClose:b}),(m,D)=>a.overlay?(l(),A(t(Nt),{key:0,ref_key:"dialog",ref:r,"model-value":a.overlay&&!v.value,title:a.label,"aria-label":a.label,"show-close":!1,"close-on-click-modal":!0,"before-close":f,"append-to-body":"","align-center":"","destroy-on-close":"",class:"file-preview-surface",onOpened:k,onClosed:P},{header:C(()=>[...D[0]||(D[0]=[])]),default:C(()=>[le(m.$slots,"default",{},void 0,!0)]),_:3},8,["model-value","title","aria-label"])):le(m.$slots,"default",{},void 0,!0,1)}}),sn=we(rn,[["__scopeId","data-v-b416d653"]]),cn=["inert","role","aria-label"],dn={class:"workspace-file-tab-header mar-tab-header"},un=["disabled","aria-label"],fn={class:"workspace-file-tab-content"},vn=["id","aria-labelledby"],mn=me({__name:"WorkspaceFileTabs",props:{tabs:{},presentation:{},activeTabId:{},canGoBack:{type:Boolean},canGoForward:{type:Boolean},canCloseUnmountedTab:{type:Function}},emits:["activate","close","closeAll","closeLast","pageReady","move","back","forward"],setup(e,{expose:o,emit:s}){const a=e,y=s,r=F(),v=`file-tabs-${Mt()}`,u=F(),k=new Map,f=F(!1),E=F(!1),b=Z(()=>a.tabs.find(g=>g.id===a.activeTabId)??a.tabs.at(-1)),P=Z(()=>{const g=b.value;return g?.kind==="TOOL_CHANGE_DIFF"?`${g.path} ${i("presentation.thisChange")}`:g?.kind==="WORKTREE_DIFF"||g?.kind==="HISTORY_DIFF"?`${g.path} ${i("common.gitDiff")}`:i("generated.filePreviewDialog.filePreview",{value0:g?.path??""})});let m;const D=tt({isOpen:()=>a.tabs.length>0,root:()=>r.value,closeWindow:w,closeTab:()=>b.value===void 0?!1:H(b.value.id)});function S(g,_){M(_)?(k.set(g,_),fe(()=>{k.get(g)===_&&y("pageReady",g)})):k.delete(g)}function M(g){return typeof g=="object"&&g!==null&&typeof g.focus=="function"&&typeof g.openFind=="function"&&typeof g.selectAll=="function"&&typeof g.toggleEdit=="function"&&typeof g.canClose=="function"}async function H(g){return p([g],!1)}async function w(){return p(a.tabs.map(g=>g.id),!0)}ne(()=>a.tabs,()=>{f.value&&u.value?.cancelClose()},{flush:"sync"});async function p(g,_){if(f.value||g.length===0)return!1;const R=[...a.tabs];if(g.some(ae=>!R.some(re=>re.id===ae)))return!1;const q=g.map(ae=>k.get(ae)),be=()=>a.tabs.length===R.length&&a.tabs.every((ae,re)=>ae===R[re])&&g.every((ae,re)=>k.get(ae)===q[re]);f.value=!0;try{for(const[re,Fe]of q.entries())if(!await(Fe?.canClose()??a.canCloseUnmountedTab?.(g[re])??!0))return!1;if(!be())return!1;const ae=g.length===a.tabs.length;if(ae&&a.presentation!=="window"&&u.value){if(E.value=!0,!await u.value.close())return!1;if(!be())return u.value?.cancelClose(),!1}for(const re of q)re?.prepareForConfirmedClose?.();return _?y("closeAll",g):y("close",g[0]),ae&&y("closeLast"),!0}finally{E.value=!1,f.value=!1}}const x=()=>r.value,N=()=>b.value===void 0?void 0:k.get(b.value.id),T=[{command:"filePreview.back",priority:100,scope:"file-preview",owner:x,keys:G.back,when:()=>!0,execute:()=>(a.canGoBack&&y("back"),"HANDLED")},{command:"filePreview.forward",priority:100,scope:"file-preview",owner:x,keys:G.forward,when:()=>!0,execute:()=>(a.canGoForward&&y("forward"),"HANDLED")},{command:"filePreview.find",priority:100,scope:"file-preview",owner:x,keys:G.find,when:()=>!0,execute:()=>N()?.openFind()?"HANDLED":"IGNORED"},{command:"filePreview.selectAll",priority:100,scope:"file-preview",owner:x,keys:G.selectAll,when:g=>!(g.target instanceof Element&&g.target.closest('input, textarea, [contenteditable]:not([contenteditable="false"])')!==null),execute:()=>N()?.selectAll()?"HANDLED":"IGNORED"},{command:"filePreview.toggleEdit",priority:100,scope:"file-preview",owner:x,keys:G.toggleEdit,when:()=>!0,execute:()=>N()?.toggleEdit()==="CHANGED"?"HANDLED":"IGNORED"}];function z(g){y("activate",g)}function ee(){return[...k.values()].flatMap(g=>g.captureDirtyDrafts?.()??[])}function X(){return[...k.values()].some(g=>g.isSaving?.()===!0)}function te(g){return k.get(g)?.cursorPosition?.()}function B(g,_,R){k.get(g)?.navigateTo?.(_,R)}function ce(g){const _=k.get(g);return _===void 0?!1:(_.focus(),!0)}function pe(){const g=b.value&&k.get(b.value.id);g?g.focus():r.value?.focus()}return ge(()=>{a.presentation==="window"&&(document.documentElement.classList.add("file-preview-open"),document.body.classList.add("file-preview-open")),D.mount();const g=T.map(_=>ve.register(_));g.push(ve.registerRegion({scope:"file-preview",root:x,blocksOtherScopes:!0})),m=()=>g.forEach(_=>_())}),he(()=>{m?.(),D.dispose(),a.presentation==="window"&&(document.documentElement.classList.remove("file-preview-open"),document.body.classList.remove("file-preview-open"))}),o({requestClose:H,requestCloseAll:w,captureDirtyDrafts:ee,hasPendingSave:X,cursorPosition:te,navigateTo:B,focusPage:ce}),(g,_)=>{const R=Ie("tooltip");return a.tabs.length>0?(l(),A(sn,{key:0,ref_key:"surface",ref:u,overlay:a.presentation!=="window",label:P.value,onFocus:pe,onClose:w},{default:C(()=>[W("section",{ref_key:"root",ref:r,class:Te(["workspace-file-tabs",{"is-window":a.presentation==="window"}]),inert:E.value,tabindex:"-1",role:a.presentation==="window"?"region":void 0,"aria-label":t(i)("generated.filePreviewDialog.filePreviewTabs")},[W("header",dn,[$(t(Oa),{mode:"strip",appearance:"workbench",class:"workspace-file-tab-list","id-prefix":v,tabs:a.tabs.map(q=>({name:q.id,label:q.fileName,description:q.path,closeLabel:t(i)("generated.filePreviewDialog.closePreview"),closeTooltip:t(Q)(t(i)("generated.filePreviewDialog.closePreview"),!f.value&&q.id===b.value?.id?t(wa):[]),closeDisabled:f.value})),"model-value":b.value?.id,label:t(i)("generated.filePreviewDialog.filePreviewTabs"),"item-class":"workspace-file-tab","tab-class":"workspace-file-tab-activate","close-class":"workspace-file-tab-close",onTabActivate:z,onTabClose:H},null,8,["tabs","model-value","label"]),U((l(),h("button",{class:"mar-icon-button mar-icon-action workspace-file-window-close",type:"button",disabled:f.value,"aria-label":t(i)("filePreviewDialog.closeFileWindow"),onClick:w},[$(t(K),{name:"close"})],8,un)),[[R,t(Q)(t(i)("filePreviewDialog.closeFileWindow"),f.value?[]:[...t(Be),...t(G).dismiss])]])]),W("div",fn,[(l(!0),h(J,null,xe(a.tabs,q=>U((l(),h("div",{id:t(Tt)(v,q.id).panel,key:q.id,class:"workspace-file-tab-panel",role:"tabpanel","aria-labelledby":t(Tt)(v,q.id).tab},[le(g.$slots,"default",{tab:q,active:q.id===b.value?.id,registerPageHandle:be=>S(q.id,be),requestClose:()=>H(q.id),requestCloseAll:w},void 0,!0)],8,vn)),[[Ca,q.id===b.value?.id]])),128))])],10,cn)]),_:3},8,["overlay","label"])):I("",!0)}}}),Bn=we(mn,[["__scopeId","data-v-dd76d47c"]]);function Un(e={}){async function o(s,a={},y=!1,r){const v=a.method!==void 0&&a.method!=="GET",u=await fetch(s,{credentials:"same-origin",...a,headers:{...a.body===void 0?{}:{"content-type":"application/json"},...v&&e.csrfToken!==void 0?{"x-csrf-token":r??e.csrfToken()}:{},...a.headers}});if(u.ok)return u.status===204?void 0:await u.json();const k=xa(await u.json().catch(()=>({})),u.status);if(k.code==="CSRF_INVALID"&&!y&&e.renewCsrfToken!==void 0)return o(s,a,!0,await e.renewCsrfToken());throw k}return{request:o}}export{et as F,to as I,Mn as W,On as a,xn as b,Sa as c,Rn as d,An as e,$n as f,In as g,Ln as h,tt as i,Nn as j,Bn as k,Cn as l,Ha as m,Un as n,Ga as o,Tn as p,Wt as q,Fn as r,Eo as s,Sn as t,Xa as u,Wa as v,Dn as w,lo as x,Va as y,sn as z};
|