@p4code/cli 0.8.1 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (378) hide show
  1. package/dist/bin.mjs +1 -1
  2. package/dist/{binCli-mL63pmet.mjs → binCli-C1tFongj.mjs} +12 -36
  3. package/dist/client/.vite/manifest.json +2139 -2133
  4. package/dist/client/assets/{AnimatedHeight-CcLJhBdM.js → AnimatedHeight-PJxVEp27.js} +2 -2
  5. package/dist/client/assets/{AuthSurfaceShell-DV9IfxfT.js → AuthSurfaceShell-BrPHaco9.js} +2 -2
  6. package/dist/client/assets/{CSPContext-5fUBIm56.js → CSPContext-C7uwFl6f.js} +2 -2
  7. package/dist/client/assets/{ChatGptUsageButton-BjxGhmRJ.js → ChatGptUsageButton-7IZqWaQq.js} +2 -2
  8. package/dist/client/assets/{ChatMarkdown-S_dLZdsH.js → ChatMarkdown-D3ITm4U-.js} +7 -7
  9. package/dist/client/assets/CodexSetupSection.logic-DyTuN6tg.js +2 -0
  10. package/dist/client/assets/{ComboboxClear-DCanpiKf.js → ComboboxClear-BXGqqvsR.js} +2 -2
  11. package/dist/client/assets/{CommandBlock-CCY3uLti.js → CommandBlock-JrUX9e8E.js} +2 -2
  12. package/dist/client/assets/{ComposerPromptEditor-CTei4iV_.js → ComposerPromptEditor-Ba1dvqDN.js} +54 -54
  13. package/dist/client/assets/{CompositeRoot-Dz15SC7i.js → CompositeRoot-CW06ANMY.js} +2 -2
  14. package/dist/client/assets/{ConnectionStatusDot-BXxnqJgm.js → ConnectionStatusDot-Cjh57o6i.js} +2 -2
  15. package/dist/client/assets/{DevicePanel-hMvCLVG0.js → DevicePanel-zG3feCFw.js} +2 -2
  16. package/dist/client/assets/{DeviceSetup--U2_cth3.js → DeviceSetup-DccRVnjb.js} +2 -2
  17. package/dist/client/assets/{DialogTitle-CdRWiE23.js → DialogTitle-7tvQYVxE.js} +2 -2
  18. package/dist/client/assets/{DiffCommentAnnotation-BO9ZEof3.js → DiffCommentAnnotation-DDBZcMFv.js} +2 -2
  19. package/dist/client/assets/{DiffFileTree-DOh6vP89.js → DiffFileTree-BhSPT6m_.js} +2 -2
  20. package/dist/client/assets/{DiffPanel-BdHAXHTV.js → DiffPanel-D7QMWq_A.js} +2 -2
  21. package/dist/client/assets/{DiffWorkerPoolProvider-HxohyeGq.js → DiffWorkerPoolProvider-RcplgHGv.js} +3 -3
  22. package/dist/client/assets/{EnvironmentMachineIcon-DYqBsAxl.js → EnvironmentMachineIcon-DMZGa766.js} +2 -2
  23. package/dist/client/assets/{ExpandableText-B9MQs34j.js → ExpandableText-DfY-qqRW.js} +2 -2
  24. package/dist/client/assets/{FieldControl-DuWupdaP.js → FieldControl-C9UnFGZn.js} +2 -2
  25. package/dist/client/assets/{FileDiff-XdtrigfB.js → FileDiff-BXlBWSxx.js} +2 -2
  26. package/dist/client/assets/{FilePreviewPanel-Dj_tLsu8.js → FilePreviewPanel-CSKeM-xZ.js} +5 -5
  27. package/dist/client/assets/{FoldedSettingsSection-CJhrFR0_.js → FoldedSettingsSection-BJm8ZaTy.js} +2 -2
  28. package/dist/client/assets/{FormContext-DzMW0viI.js → FormContext-haYZgWIK.js} +2 -2
  29. package/dist/client/assets/{Icons-DJ824_3l.js → Icons-C12feMOO.js} +2 -2
  30. package/dist/client/assets/{KeybindingsSettings.logic-DBks3HZy.js → KeybindingsSettings.logic-DhXMdk5O.js} +2 -2
  31. package/dist/client/assets/{NoProjectsHero-DyYs0dvZ.js → NoProjectsHero-CDoSxJVV.js} +2 -2
  32. package/dist/client/assets/{PanelLayoutControls-DmAKKHlt.js → PanelLayoutControls-CCKUTh1H.js} +6 -6
  33. package/dist/client/assets/{PierreEntryIcon-uqPwKknu.js → PierreEntryIcon-7x50Pz_C.js} +2 -2
  34. package/dist/client/assets/{PreviewPanel-BQkFJlas.js → PreviewPanel-BEWZuH6o.js} +2 -2
  35. package/dist/client/assets/{ProjectDefaultsSettings-DglkVzkM.js → ProjectDefaultsSettings-BRRQlvgR.js} +2 -2
  36. package/dist/client/assets/{ProjectFavicon-CDpXbAhP.js → ProjectFavicon-ExMHrN16.js} +3 -3
  37. package/dist/client/assets/{ProjectIconPickerDialog-yxBKY_6V.js → ProjectIconPickerDialog-DXSyEGg8.js} +2 -2
  38. package/dist/client/assets/{ProjectMonogram-Dd6xeLhS.js → ProjectMonogram-um8sYqIi.js} +2 -2
  39. package/dist/client/assets/{ProviderAuthTerminal-DgUIYMm9.js → ProviderAuthTerminal-Tw3kH5vc.js} +2 -2
  40. package/dist/client/assets/ProviderModelPicker-CpgHpUCG.js +2 -0
  41. package/dist/client/assets/{ProviderSettingsForm-DGMc_kKy.js → ProviderSettingsForm-CaNO8FYK.js} +2 -2
  42. package/dist/client/assets/{PullRequestCodeTab-CXrKDJ3m.js → PullRequestCodeTab-DwqL4aAJ.js} +2 -2
  43. package/dist/client/assets/{ReadOnlySourcePreview-DkXxXiTJ.js → ReadOnlySourcePreview-Cw6lfMjA.js} +2 -2
  44. package/dist/client/assets/{RedactedSensitiveText-DtYR94zZ.js → RedactedSensitiveText-citJBx4E.js} +2 -2
  45. package/dist/client/assets/{RenderErrorBoundary-Dla4qj6V.js → RenderErrorBoundary-D21mPr47.js} +2 -2
  46. package/dist/client/assets/{ScheduledTasksSettings-2vzTutJz.js → ScheduledTasksSettings-BXOG7dPV.js} +4 -4
  47. package/dist/client/assets/{ScopedSwitch-BdMg8rKM.js → ScopedSwitch-2MBm4Srn.js} +2 -2
  48. package/dist/client/assets/{SettingsPanels-XjjE56Xl.js → SettingsPanels-DjzXV7Dm.js} +7 -7
  49. package/dist/client/assets/{SettingsPanels.logic-DSOfF88n.js → SettingsPanels.logic-DpdMN_lX.js} +2 -2
  50. package/dist/client/assets/{SettingsScopeNotice-um2bOG_J.js → SettingsScopeNotice-CdNfxmW3.js} +2 -2
  51. package/dist/client/assets/{T3ConnectAccountPages-Dx0LK6U5.js → T3ConnectAccountPages-C6qHq26m.js} +2 -2
  52. package/dist/client/assets/{T3ConnectSidebarSignIn-2r05ubXZ.js → T3ConnectSidebarSignIn-DewmE1PI.js} +2 -2
  53. package/dist/client/assets/ThemeEditorPanel-aEsLfkYx.js +5 -0
  54. package/dist/client/assets/{ThreadTerminalDrawer-BzElqolI.js → ThreadTerminalDrawer-C1NDkTSs.js} +4 -4
  55. package/dist/client/assets/{UsageLimits-B_IIjpyx.js → UsageLimits-BUS51Bjr.js} +2 -2
  56. package/dist/client/assets/{Virtualizer-DItXd38b.js → Virtualizer-B2BG0GB9.js} +2 -2
  57. package/dist/client/assets/{WorkspaceBreadcrumb-Y41aNu4D.js → WorkspaceBreadcrumb-DX3xH6tC.js} +2 -2
  58. package/dist/client/assets/{WorkspacePageContainer-D3YV5jc4.js → WorkspacePageContainer-BFo6qTGJ.js} +2 -2
  59. package/dist/client/assets/{WorkspacePageHeader-Dduxade-.js → WorkspacePageHeader-BCZXPSxj.js} +2 -2
  60. package/dist/client/assets/_chat-B3j3XTUJ.js +58 -0
  61. package/dist/client/assets/{_chat.index-BGOR58rk.js → _chat.index-7o1_qjfU.js} +2 -2
  62. package/dist/client/assets/{_chat.new-CioC4l4P.js → _chat.new-W2E0MZ4y.js} +2 -2
  63. package/dist/client/assets/{_chat.pull-requests-Cs7eiOH6.js → _chat.pull-requests-DnQ-MKRG.js} +2 -2
  64. package/dist/client/assets/{abnfDiagram-VCTEODGH-l9yoycqs.js → abnfDiagram-VCTEODGH-DJY5x2uS.js} +2 -2
  65. package/dist/client/assets/{alert-B49R80NU.js → alert-yllEf0yh.js} +2 -2
  66. package/dist/client/assets/app-window-D2LBv8RE.js +2 -0
  67. package/dist/client/assets/architecture-7GRP2DOG-nO5xG-8k.js +1 -0
  68. package/dist/client/assets/{architectureDiagram-5GKGNRK7-BQwAkSAo.js → architectureDiagram-5GKGNRK7-6YiKazHv.js} +2 -2
  69. package/dist/client/assets/arrow-left-yEW5WFYj.js +1 -0
  70. package/dist/client/assets/arrow-right-BzVZfSb7.js +1 -0
  71. package/dist/client/assets/arrow-up-down-DjL7trCL.js +1 -0
  72. package/dist/client/assets/{assets-CLIqG-m-.js → assets-BxSVuao2.js} +2 -2
  73. package/dist/client/assets/bell-ue7A6JFg.js +1 -0
  74. package/dist/client/assets/{blockDiagram-I7D4REHJ-C1YTuxst.js → blockDiagram-I7D4REHJ-D_EURhbV.js} +2 -2
  75. package/dist/client/assets/blocks-De0WwZYY.js +1 -0
  76. package/dist/client/assets/bot-_T9E-nkd.js +1 -0
  77. package/dist/client/assets/brain-CQYem3Oz.js +2 -0
  78. package/dist/client/assets/{browserHistoryStore-D6dhsqE8.js → browserHistoryStore-B-t3Vc_Z.js} +2 -2
  79. package/dist/client/assets/{browserLinkTarget-D0HujxdB.js → browserLinkTarget-CiQS1wUg.js} +2 -2
  80. package/dist/client/assets/{c4Diagram-7LVT6UL2-DpPcyaba.js → c4Diagram-7LVT6UL2-CmfPrrIj.js} +2 -2
  81. package/dist/client/assets/calendar-clock-DXFNSdXM.js +1 -0
  82. package/dist/client/assets/channel-BE0ymtNV.js +2 -0
  83. package/dist/client/assets/chart-no-axes-column-Dx_cyfN9.js +1 -0
  84. package/dist/client/assets/{checkbox-WRJ0D_10.js → checkbox-CIeee0-J.js} +2 -2
  85. package/dist/client/assets/chromium-BusoCgri.js +2 -0
  86. package/dist/client/assets/{chunk-4HAMMTFA-C0t_GKFv.js → chunk-4HAMMTFA-BdvKUuii.js} +2 -2
  87. package/dist/client/assets/{chunk-75Z2AOVW-B6rgeqZP.js → chunk-75Z2AOVW-DXz8BlJz.js} +2 -2
  88. package/dist/client/assets/{chunk-DU6HZSFF-BuYM0Cu8.js → chunk-DU6HZSFF-ebFBoLTT.js} +2 -2
  89. package/dist/client/assets/{chunk-F27PBJKO-CvPd3lcw.js → chunk-F27PBJKO-B1MlVcaX.js} +2 -2
  90. package/dist/client/assets/{chunk-GMAD6QVW-DbBkxyCE.js → chunk-GMAD6QVW-CEXqem_-.js} +2 -2
  91. package/dist/client/assets/{chunk-GVQU2GXP-CVZeJiG5.js → chunk-GVQU2GXP-wsgr7T0u.js} +2 -2
  92. package/dist/client/assets/{chunk-IMKFNOWR-CbY3DGV3.js → chunk-IMKFNOWR-Daxc_3WP.js} +2 -2
  93. package/dist/client/assets/{chunk-L3NEJ4N5-Bhkym4YW.js → chunk-L3NEJ4N5-C4NnipZ0.js} +2 -2
  94. package/dist/client/assets/{chunk-OSK3NFVY-B89_sN-h.js → chunk-OSK3NFVY-DDd2Ay5_.js} +2 -2
  95. package/dist/client/assets/{chunk-P2QGCYS3-zeIYnZbd.js → chunk-P2QGCYS3-I9iEYMEJ.js} +2 -2
  96. package/dist/client/assets/{chunk-POPQ4Y6H-Bv7ZWEJI.js → chunk-POPQ4Y6H-Cgwl0wkZ.js} +2 -2
  97. package/dist/client/assets/{chunk-PWAF6VOD-BnsKTwi6.js → chunk-PWAF6VOD-kBB0Jquc.js} +2 -2
  98. package/dist/client/assets/{chunk-SHT3W25Y-Daoidttm.js → chunk-SHT3W25Y-gtUoMWd0.js} +2 -2
  99. package/dist/client/assets/{chunk-SVP7TREG-BK4Qxtm6.js → chunk-SVP7TREG-CbL5vJ0z.js} +2 -2
  100. package/dist/client/assets/{chunk-TICWLB2K-CihSBYRG.js → chunk-TICWLB2K-CMgrptzc.js} +2 -2
  101. package/dist/client/assets/classDiagram-ZZMXUADV-YRduSbl9.js +2 -0
  102. package/dist/client/assets/classDiagram-v2-VYDZK3BY-YRduSbl9.js +2 -0
  103. package/dist/client/assets/{collapsible-DyaDJVJ5.js → collapsible-C3qenpEI.js} +2 -2
  104. package/dist/client/assets/{color-picker-BWffD8SG.js → color-picker-Cj2frYnP.js} +2 -2
  105. package/dist/client/assets/{combobox-zg5NNJOT.js → combobox-DixSlhgy.js} +2 -2
  106. package/dist/client/assets/{command-CBIpuXFt.js → command-B45LRbFT.js} +2 -2
  107. package/dist/client/assets/{connect-BVveo2H6.js → connect-CYM5DIkv.js} +2 -2
  108. package/dist/client/assets/{connect-agent-Rlpt-C4T.js → connect-agent-nn3QLMb4.js} +2 -2
  109. package/dist/client/assets/corner-left-up-DohBMTTI.js +1 -0
  110. package/dist/client/assets/{cynefin-OW5HDTMX-BTvkQvHj.js → cynefin-OW5HDTMX-CmLjrFzm.js} +1 -1
  111. package/dist/client/assets/{cynefinDiagram-5FMLGOSQ-glf_yMKF.js → cynefinDiagram-5FMLGOSQ-xQBevUIj.js} +2 -2
  112. package/dist/client/assets/{dagre-GXQ25YYZ-XUkjXaQW.js → dagre-GXQ25YYZ-Ck8BwJaT.js} +2 -2
  113. package/dist/client/assets/{device-Bu2mO4gL.js → device-BRhRKysY.js} +2 -2
  114. package/dist/client/assets/{diagram-S7CK7UJ4-CiNxlSJZ.js → diagram-S7CK7UJ4-Bl0e661x.js} +2 -2
  115. package/dist/client/assets/{diagram-UQ7AKVKN-C4_9QuDF.js → diagram-UQ7AKVKN-TO9a3uQI.js} +2 -2
  116. package/dist/client/assets/{diagram-VSXAHHWV-BoRcnfst.js → diagram-VSXAHHWV-BZ7xQ8wz.js} +2 -2
  117. package/dist/client/assets/{diagram-VX7I27RA-g5AlZjEL.js → diagram-VX7I27RA-C4cA30qa.js} +2 -2
  118. package/dist/client/assets/{diagram-Z3DM3KII-Crw_yJrX.js → diagram-Z3DM3KII-Hl3MmqeP.js} +2 -2
  119. package/dist/client/assets/{dialog-C5PVc2Dc.js → dialog-DhJeevKt.js} +2 -2
  120. package/dist/client/assets/{diffRendering-DVfiIxj4.js → diffRendering-QVeYVRDU.js} +2 -2
  121. package/dist/client/assets/{discovery-list-Bb2RP3-9.js → discovery-list-VoilmsP7.js} +2 -2
  122. package/dist/client/assets/{dist-BTyn8sKm.js → dist-CxgL3edJ.js} +3 -3
  123. package/dist/client/assets/download-B587khDU.js +1 -0
  124. package/dist/client/assets/{draft-input-CwdApNsc.js → draft-input-BrEXLyuj.js} +2 -2
  125. package/dist/client/assets/{duoViewer-BsAzTMk3.js → duoViewer-D-_bD3-L.js} +2 -2
  126. package/dist/client/assets/dynamic-R3OtJZHK.js +3 -0
  127. package/dist/client/assets/earth-26IFbzWm.js +1 -0
  128. package/dist/client/assets/{ebnfDiagram-PWID7BFC-Co02q3t2.js → ebnfDiagram-PWID7BFC-Bo_ALmgV.js} +2 -2
  129. package/dist/client/assets/ellipsis-BScTTB_n.js +1 -0
  130. package/dist/client/assets/{embeddedScripts-cxUGD6UP.js → embeddedScripts-DKKE5k7D.js} +2 -2
  131. package/dist/client/assets/{empty-B9cgefGv.js → empty-uoiaKPHo.js} +2 -2
  132. package/dist/client/assets/{entities-B0tFBQjY.js → entities-DNKDCsf2.js} +2 -2
  133. package/dist/client/assets/{erDiagram-RLTQ6QDP-BuoWr1gw.js → erDiagram-RLTQ6QDP-B38FLl2U.js} +2 -2
  134. package/dist/client/assets/eventmodeling-NTZA5JFV-6XFarcvj.js +1 -0
  135. package/dist/client/assets/eye-DTlv8Vet.js +1 -0
  136. package/dist/client/assets/file-search-gFHOfI6S.js +1 -0
  137. package/dist/client/assets/{fileLinks-BBnShh-N.js → fileLinks-VfyxNu8P.js} +2 -2
  138. package/dist/client/assets/{fileTreeExpansion-DaFd8SRp.js → fileTreeExpansion-BfMZMaRV.js} +2 -2
  139. package/dist/client/assets/flowDiagram-HODETNUW-DQXavjl4.js +1 -0
  140. package/dist/client/assets/fold-vertical-BNQMJ6gu.js +1 -0
  141. package/dist/client/assets/folder-git-2-6ON-nxul.js +1 -0
  142. package/dist/client/assets/folder-open-Rja0vZjv.js +1 -0
  143. package/dist/client/assets/folder-plus-CfJ5c8wa.js +1 -0
  144. package/dist/client/assets/{ganttDiagram-EL5Y4UJY-CMAUkeMs.js → ganttDiagram-EL5Y4UJY-Cj0Kstgh.js} +2 -2
  145. package/dist/client/assets/{getDiffFileInput-D0WCXPuc.js → getDiffFileInput-XUe1xsym.js} +2 -2
  146. package/dist/client/assets/git-branch-BuWXMpmq.js +1 -0
  147. package/dist/client/assets/{gitGraph-4MIJSDKK-B22BskFD.js → gitGraph-4MIJSDKK-C84uaaYZ.js} +1 -1
  148. package/dist/client/assets/{gitGraphDiagram-WWUBYQGX-D9yz6pSR.js → gitGraphDiagram-WWUBYQGX-CvyimLfZ.js} +2 -2
  149. package/dist/client/assets/grip-vertical-qjSy6wXX.js +1 -0
  150. package/dist/client/assets/{guideRunStore-CPFfk-BJ.js → guideRunStore-DwmmS8D0.js} +2 -2
  151. package/dist/client/assets/hard-drive-DAxFba08.js +1 -0
  152. package/dist/client/assets/history-CrY611k2.js +1 -0
  153. package/dist/client/assets/house-CKS51Vx8.js +1 -0
  154. package/dist/client/assets/{htmlRender-Cdm053qU.js → htmlRender-DRfZ8nFp.js} +2 -2
  155. package/dist/client/assets/{index-TkyxWt2Q.js → index-G0rP4C-v.js} +3 -3
  156. package/dist/client/assets/{info-A6RAGUB7-CicHHROU.js → info-A6RAGUB7-AXJa674d.js} +1 -1
  157. package/dist/client/assets/{infoDiagram-27XIBGKW-DAFhUj2V.js → infoDiagram-27XIBGKW-CgaIIar7.js} +2 -2
  158. package/dist/client/assets/{input-group-CV0ZpOg5.js → input-group-DIOgVvbV.js} +2 -2
  159. package/dist/client/assets/{input-CN9xdIYL.js → input-u5qjnfMr.js} +2 -2
  160. package/dist/client/assets/{ishikawaDiagram-5VMMS53U-CBEywTMi.js → ishikawaDiagram-5VMMS53U-DSDzMD_t.js} +2 -2
  161. package/dist/client/assets/{journeyDiagram-3NMN7TZE-BIKjvqRL.js → journeyDiagram-3NMN7TZE-Be6o5a7O.js} +2 -2
  162. package/dist/client/assets/{kanban-definition-UXKFOSKX-XOFfprGt.js → kanban-definition-UXKFOSKX-Fpr0ne16.js} +2 -2
  163. package/dist/client/assets/{kbd-Fa27fInv.js → kbd-D4mDfHPa.js} +2 -2
  164. package/dist/client/assets/{keybindings-C81QSEVL.js → keybindings-CzL-fWkh.js} +2 -2
  165. package/dist/client/assets/keyboard-Y7zJXIRo.js +1 -0
  166. package/dist/client/assets/{lazyRouteComponent-BTBK1UDq.js → lazyRouteComponent-dLOOuQ-r.js} +2 -2
  167. package/dist/client/assets/{line-CEyB3WPo.js → line-BXhbrPh0.js} +2 -2
  168. package/dist/client/assets/link-CbhoiCa8.js +1 -0
  169. package/dist/client/assets/{link-C1pmqztR.js → link-YLDgrmSN.js} +2 -2
  170. package/dist/client/assets/{linkedPrompt-B6Q0Cmi6.js → linkedPrompt-E32o3H76.js} +2 -2
  171. package/dist/client/assets/list-Cq4wtMwR.js +1 -0
  172. package/dist/client/assets/main-D9nJEeym.css +2 -0
  173. package/dist/client/assets/main-D9z9rMK1.js +27 -0
  174. package/dist/client/assets/{mediaReference-o1DLUGKI.js → mediaReference-C-grVzJf.js} +2 -2
  175. package/dist/client/assets/{mediaSource-Cfv5uiFj.js → mediaSource-CxVHZYDj.js} +2 -2
  176. package/dist/client/assets/{mermaid-parser.core-BT2QN4a3.js → mermaid-parser.core-BFPy42Wg.js} +4 -4
  177. package/dist/client/assets/{mermaid.core-EPDLhovC.js → mermaid.core-zK2u82e-.js} +5 -5
  178. package/dist/client/assets/message-circle-question-mark-BwzHSg4C.js +1 -0
  179. package/dist/client/assets/message-square-DcSgYDZ6.js +1 -0
  180. package/dist/client/assets/message-square-dashed-Cu56tC0F.js +1 -0
  181. package/dist/client/assets/messages-square-BNeF2306.js +2 -0
  182. package/dist/client/assets/{mindmap-definition-YA3MSWOX-aqL3ALYK.js → mindmap-definition-YA3MSWOX-RzkTvFrT.js} +2 -2
  183. package/dist/client/assets/mouse-pointer-2-DxhF1Woc.js +1 -0
  184. package/dist/client/assets/{number-field-BiWh0ioY.js → number-field-BLz8W5SU.js} +2 -2
  185. package/dist/client/assets/{observeResize-DBJpB0Hu.js → observeResize-WQaFQjbx.js} +2 -2
  186. package/dist/client/assets/{onboarding-gue-HaiI.js → onboarding-DNafmm6s.js} +2 -2
  187. package/dist/client/assets/{openFileInPreview-BuKYchiT.js → openFileInPreview-l6IXWIxV.js} +2 -2
  188. package/dist/client/assets/{p4ProjectFile-DH7qoFHx.js → p4ProjectFile-BzCYJ8I-.js} +2 -2
  189. package/dist/client/assets/{packet-AYTQ26CC-BkyzJMIf.js → packet-AYTQ26CC-rDYSbNWh.js} +1 -1
  190. package/dist/client/assets/{pair-DESVHftX.js → pair-nG9A6oxp.js} +2 -2
  191. package/dist/client/assets/palette-B79srcx1.js +1 -0
  192. package/dist/client/assets/panel-left-Bp59PK2R.js +1 -0
  193. package/dist/client/assets/{panel-tab-close-button-DKugpobT.js → panel-tab-close-button-B2GW1bDy.js} +2 -2
  194. package/dist/client/assets/panels-top-left-CC3HCiIs.js +1 -0
  195. package/dist/client/assets/{pegDiagram-XKGWAZYB-DilAu2aa.js → pegDiagram-XKGWAZYB-8wodyYDi.js} +2 -2
  196. package/dist/client/assets/{phoneViewer-xqyGZwKn.js → phoneViewer-Bei8FsYJ.js} +2 -2
  197. package/dist/client/assets/{pie-WAS4IAKB-DgPx2D64.js → pie-WAS4IAKB-Ce0_zpeP.js} +1 -1
  198. package/dist/client/assets/{pieDiagram-E7YTZNPT-D9PFl5qt.js → pieDiagram-E7YTZNPT-C3QJYWCY.js} +2 -2
  199. package/dist/client/assets/{pierre-icons-BVuUNHGs.js → pierre-icons-CsjmRq9p.js} +2 -2
  200. package/dist/client/assets/{popover-aTTlR6NX.js → popover-6BYEGLLK.js} +2 -2
  201. package/dist/client/assets/{preview-DgLUnqIn.js → preview-BpTu6A2K.js} +2 -2
  202. package/dist/client/assets/{preview-8KYmxrad.js → preview-DFDpDpup.js} +2 -2
  203. package/dist/client/assets/{previewMiniPlayerStore-CZUX4gpf.js → previewMiniPlayerStore-BfMwexwO.js} +2 -2
  204. package/dist/client/assets/{primary-GHQewxsn.js → primary-Cc8Am8Ju.js} +2 -2
  205. package/dist/client/assets/{primaryCloudLinkState-BS4O3v7M.js → primaryCloudLinkState-N7pLty-_.js} +2 -2
  206. package/dist/client/assets/{projectFilesQueryState-DmDFr3yJ.js → projectFilesQueryState-CrGsc81w.js} +2 -2
  207. package/dist/client/assets/projectScriptEditor-RR3KkKhh.js +2 -0
  208. package/dist/client/assets/{pullRequestDetail.logic-C6mxjZFd.js → pullRequestDetail.logic-CE7fVOsp.js} +2 -2
  209. package/dist/client/assets/{pullRequestReviewStore-VIPIhGsh.js → pullRequestReviewStore-BHEIYvsP.js} +2 -2
  210. package/dist/client/assets/{pullRequests-DEHxyBeZ.js → pullRequests-KhjrMCa0.js} +2 -2
  211. package/dist/client/assets/{quadrantDiagram-AXDQQJYC-36GcvWjt.js → quadrantDiagram-AXDQQJYC-Cqx4Dcqi.js} +2 -2
  212. package/dist/client/assets/{queries-BAbZ6wRj.js → queries-Cn1FJB1_.js} +2 -2
  213. package/dist/client/assets/{query-gfas_Faw.js → query-CK8MOmXr.js} +2 -2
  214. package/dist/client/assets/{radar-RG4KPBEZ-B_1p1XBS.js → radar-RG4KPBEZ-DsccxBWq.js} +1 -1
  215. package/dist/client/assets/{radio-group-BcuemB8E.js → radio-group-CM6Ra-QS.js} +2 -2
  216. package/dist/client/assets/{railroad-74A4TZTK-DjaD7aBa.js → railroad-74A4TZTK-B-UN2mSQ.js} +1 -1
  217. package/dist/client/assets/railroad-abnf-HS5TGJTU-CIxA0Vp4.js +1 -0
  218. package/dist/client/assets/railroad-ebnf-LZEXJU2U-Czs81Kdn.js +1 -0
  219. package/dist/client/assets/railroad-peg-WCYAUIDC-B7O8OPsa.js +1 -0
  220. package/dist/client/assets/{railroadDiagram-O6MQD6OU-BfFU3IUU.js → railroadDiagram-O6MQD6OU-B_PdDy5r.js} +2 -2
  221. package/dist/client/assets/{renderScheduler-DE6WzqZi.js → renderScheduler-D1ml_j--.js} +2 -2
  222. package/dist/client/assets/{requirementDiagram-BXWQKSXE-WVgmezGx.js → requirementDiagram-BXWQKSXE-CKZ6HpQu.js} +2 -2
  223. package/dist/client/assets/{rightPanelStore-CsSGBQ8t.js → rightPanelStore-6LLb3GY0.js} +2 -2
  224. package/dist/client/assets/rotate-ccw-dcahmZQ2.js +1 -0
  225. package/dist/client/assets/rotate-cw-CIep6yNT.js +1 -0
  226. package/dist/client/assets/{runtime-C9evwoB9.js → runtime-BVgeNXTV.js} +2 -2
  227. package/dist/client/assets/{runtime-CxeCZPZ3.js → runtime-CCr9UADV.js} +3 -3
  228. package/dist/client/assets/{sankeyDiagram-P5KCCOFB-BsCi2aYb.js → sankeyDiagram-P5KCCOFB-BLF-VPcj.js} +2 -2
  229. package/dist/client/assets/{scheduledTasksSettings.logic-Bin7R9R3.js → scheduledTasksSettings.logic-ozIaTRfT.js} +2 -2
  230. package/dist/client/assets/{scroll-area-CRoS-lxP.js → scroll-area-CsrtHuL8.js} +2 -2
  231. package/dist/client/assets/{select-BXOHHCMJ.js → select-BiARKKgd.js} +2 -2
  232. package/dist/client/assets/{sequenceDiagram-WJ2MYXX4-C_qj_Szb.js → sequenceDiagram-WJ2MYXX4-BpJGkNAx.js} +2 -2
  233. package/dist/client/assets/{server-BBIVfjrf.js → server-B26doYv6.js} +2 -2
  234. package/dist/client/assets/{session-DZH3pyoG.js → session-CQXL-cTI.js} +2 -2
  235. package/dist/client/assets/{session-logic-RDMPhilH.js → session-logic-C0mrkZ0j.js} +2 -2
  236. package/dist/client/assets/settings-2-C2dIdVBr.js +1 -0
  237. package/dist/client/assets/{settings-0qbtr9oy.js → settings-B5Dj0jhP.js} +2 -2
  238. package/dist/client/assets/settings-DiBtchmK.js +1 -0
  239. package/dist/client/assets/{settings.appearance-CtG85Hzv.js → settings.appearance-Di8HZa2Q.js} +2 -2
  240. package/dist/client/assets/settings.archived-By34XjbG.js +2 -0
  241. package/dist/client/assets/settings.computer-use-DuW-mXPO.js +2 -0
  242. package/dist/client/assets/settings.connections-BJuKrJhl.js +2 -0
  243. package/dist/client/assets/settings.decisions-BO8hfyYm.js +2 -0
  244. package/dist/client/assets/{settings.diagnostics-Ct39tZgQ.js → settings.diagnostics-DSw1QN-I.js} +2 -2
  245. package/dist/client/assets/{settings.general-YgAeT2ec.js → settings.general-RyWWgxqp.js} +2 -2
  246. package/dist/client/assets/{settings.integrations-DIuNSxXg.js → settings.integrations--N8SMmw7.js} +2 -2
  247. package/dist/client/assets/{settings.keybindings-BHpTOm8T.js → settings.keybindings-BeQmUtKv.js} +2 -2
  248. package/dist/client/assets/{settings.open-source-licenses-Dlp4u1NR.js → settings.open-source-licenses-BmgFSigO.js} +2 -2
  249. package/dist/client/assets/{settings.projects-BZP8BJZK.js → settings.projects--jLA2A5b.js} +4 -4
  250. package/dist/client/assets/{settings.providers-Dad6hRGg.js → settings.providers-Cvt1-bmr.js} +3 -3
  251. package/dist/client/assets/{settings.scheduled-tasks-B1Q7wnRI.js → settings.scheduled-tasks-D5IG4nj_.js} +2 -2
  252. package/dist/client/assets/{settings.snap-shot-ZBGDHF90.js → settings.snap-shot-CUZNOX9M.js} +2 -2
  253. package/dist/client/assets/settings.source-control-R63Z9kEM.js +2 -0
  254. package/dist/client/assets/{settings.storage-Dl3cI_3U.js → settings.storage-J1kthey9.js} +2 -2
  255. package/dist/client/assets/{settingsLayout-DKjAOwp4.js → settingsLayout-BzyY4qHt.js} +2 -2
  256. package/dist/client/assets/shield-question-mark-l31p7uuJ.js +1 -0
  257. package/dist/client/assets/{sidebar-D6V5N0ZC.js → sidebar-Dj0htG-5.js} +2 -2
  258. package/dist/client/assets/{sidebarProjectGrouping-DVAIOuq4.js → sidebarProjectGrouping-DxzT7QCQ.js} +2 -2
  259. package/dist/client/assets/{skeleton-DuFqUDDw.js → skeleton-CtSxs1y1.js} +2 -2
  260. package/dist/client/assets/{sortable.esm-DdMawn0Y.js → sortable.esm-n8ce5zjO.js} +2 -2
  261. package/dist/client/assets/{sourceControl-U8x7jR8g.js → sourceControl-C3RSledt.js} +2 -2
  262. package/dist/client/assets/{spinner-C6X42yHv.js → spinner-BXr4m38K.js} +2 -2
  263. package/dist/client/assets/square-pen-CxvvUOOt.js +1 -0
  264. package/dist/client/assets/{standalone-page-hDUmjFb0.js → standalone-page-DSQDdNcR.js} +2 -2
  265. package/dist/client/assets/{stateDiagram-D77RDMKH-FdsqVfsR.js → stateDiagram-D77RDMKH-DFGb4Fx3.js} +2 -2
  266. package/dist/client/assets/stateDiagram-v2-MP3YSRHH-BFcRJjAO.js +2 -0
  267. package/dist/client/assets/{swimlanes-42K2YHIH-D65Z1Od_.js → swimlanes-42K2YHIH-D0z9osG6.js} +2 -2
  268. package/dist/client/assets/swimlanesDiagram-VR7AAH4N-B7z2b1Qv.js +9 -0
  269. package/dist/client/assets/{terminalSessions-DhPFaHUr.js → terminalSessions-3aynRXX1.js} +2 -2
  270. package/dist/client/assets/text-search-DsadxNJw.js +1 -0
  271. package/dist/client/assets/{textarea-CCFZJhy-.js → textarea-DZLyhzuZ.js} +2 -2
  272. package/dist/client/assets/{themePalette-CxbxrCEH.js → themePalette-BZeqG2Hu.js} +2 -2
  273. package/dist/client/assets/{threadSort-TlzPAte9.js → threadSort-BvhI6zOp.js} +2 -2
  274. package/dist/client/assets/{timeline-definition-24CTP7MA-DrXF0NCa.js → timeline-definition-24CTP7MA-oHM5IS4i.js} +2 -2
  275. package/dist/client/assets/{toast-B-l3XS_F.js → toast-Bm36EaG6.js} +2 -2
  276. package/dist/client/assets/{toggle-DOFhC9C7.js → toggle-BzIEPTf7.js} +2 -2
  277. package/dist/client/assets/{toggle-group-B1ghB_yR.js → toggle-group-_C7nJPTT.js} +2 -2
  278. package/dist/client/assets/{tooltip-CYNXW1Ow.js → tooltip-Df-4YKs5.js} +2 -2
  279. package/dist/client/assets/{treeView-Q6P3EWNA-D6bZIPSq.js → treeView-Q6P3EWNA-ONHv8oqx.js} +1 -1
  280. package/dist/client/assets/{treemap-WGGIJYW6-CJr_vK1t.js → treemap-WGGIJYW6-Go2hwkyn.js} +1 -1
  281. package/dist/client/assets/unfold-vertical--twzQtvn.js +1 -0
  282. package/dist/client/assets/{usage-1aJeDf79.js → usage-B26GT0RK.js} +2 -2
  283. package/dist/client/assets/{usageAccess-9ld15_dP.js → usageAccess-BNLOTFbF.js} +2 -2
  284. package/dist/client/assets/{usageFormat-D7uBkeaA.js → usageFormat-DKCO_wk0.js} +2 -2
  285. package/dist/client/assets/{usageShortcuts--2waLBa-.js → usageShortcuts-DxLRXv0W.js} +2 -2
  286. package/dist/client/assets/{use-atom-command-DdGPgtPS.js → use-atom-command-CiEeUGsC.js} +2 -2
  287. package/dist/client/assets/{useAriaLabelledBy-Bp_qmGgf.js → useAriaLabelledBy-CJjXf8Fd.js} +2 -2
  288. package/dist/client/assets/useHandleNewThread-DTz3ztCG.js +2 -0
  289. package/dist/client/assets/{useLocation-yjRHv-GS.js → useLocation-9axGTsrg.js} +2 -2
  290. package/dist/client/assets/useNavigate-BK_XZ1It.js +2 -0
  291. package/dist/client/assets/{useNavigateBack-NMRi6phK.js → useNavigateBack-AIHPN0Oo.js} +2 -2
  292. package/dist/client/assets/{useParams-OFLEf5Ub.js → useParams-CCV3vN4E.js} +2 -2
  293. package/dist/client/assets/{usePermissionStatus-D4K04nHy.js → usePermissionStatus-BnBF7CdE.js} +2 -2
  294. package/dist/client/assets/{usePullRequestActions-DyXuVFpA.js → usePullRequestActions-aKrHzIiJ.js} +2 -2
  295. package/dist/client/assets/{useRegisterFieldControl-QWoLGfik.js → useRegisterFieldControl-Daf1iBkI.js} +2 -2
  296. package/dist/client/assets/{useScopedModelAvailability-udJ9IYpQ.js → useScopedModelAvailability-IKTxpeQL.js} +2 -2
  297. package/dist/client/assets/{useSettings-C1hmCYRR.js → useSettings-CckatJFa.js} +2 -2
  298. package/dist/client/assets/{useT3ConnectAuthPrompt-NQ5SmnTg.js → useT3ConnectAuthPrompt-CK8il-7e.js} +2 -2
  299. package/dist/client/assets/{utils-Nv21__t3.js → utils-DmS758az.js} +5 -5
  300. package/dist/client/assets/{vcsRefInvalidation-CEbBuVCf.js → vcsRefInvalidation-lkYjTxah.js} +2 -2
  301. package/dist/client/assets/{vennDiagram-4TSXK5OY-BJt3j1aO.js → vennDiagram-4TSXK5OY-BwVRZPOj.js} +2 -2
  302. package/dist/client/assets/{wardley-WFR3VGLG-D_UZZZRB.js → wardley-WFR3VGLG-CYl4h3U-.js} +1 -1
  303. package/dist/client/assets/{wardleyDiagram-VM6X3IG4-gZMVt8-K.js → wardleyDiagram-VM6X3IG4-yHMYVGhg.js} +2 -2
  304. package/dist/client/assets/{welcome-BRjof1AW.js → welcome-CGBWwWzE.js} +2 -2
  305. package/dist/client/assets/{xychartDiagram-S5SC5T6Z-BwaDo7WT.js → xychartDiagram-S5SC5T6Z-Td7MQ_xN.js} +2 -2
  306. package/dist/client/index.html +1 -1
  307. package/package.json +1 -1
  308. package/dist/client/assets/CodexSetupSection.logic-CpyIRPfJ.js +0 -2
  309. package/dist/client/assets/ProviderModelPicker-lxEwYGAB.js +0 -2
  310. package/dist/client/assets/ThemeEditorPanel-CnhjGelD.js +0 -5
  311. package/dist/client/assets/_chat-B4G7pIId.js +0 -58
  312. package/dist/client/assets/app-window-CVIo0C1R.js +0 -2
  313. package/dist/client/assets/architecture-7GRP2DOG-B67w-l9F.js +0 -1
  314. package/dist/client/assets/arrow-left-D1nB4UjJ.js +0 -1
  315. package/dist/client/assets/arrow-right-Cbg5uZyw.js +0 -1
  316. package/dist/client/assets/arrow-up-down-DRcJBavW.js +0 -1
  317. package/dist/client/assets/bell-D5jiydSo.js +0 -1
  318. package/dist/client/assets/blocks-mHGBm843.js +0 -1
  319. package/dist/client/assets/bot-Db9dBVz5.js +0 -1
  320. package/dist/client/assets/brain-B_3rxsLd.js +0 -2
  321. package/dist/client/assets/calendar-clock-KAbrMUlv.js +0 -1
  322. package/dist/client/assets/channel-D8Is9vbt.js +0 -2
  323. package/dist/client/assets/chart-no-axes-column-CnM4ppv4.js +0 -1
  324. package/dist/client/assets/chromium-CvI58Z0o.js +0 -2
  325. package/dist/client/assets/classDiagram-ZZMXUADV-CxsiNRJs.js +0 -2
  326. package/dist/client/assets/classDiagram-v2-VYDZK3BY-CxsiNRJs.js +0 -2
  327. package/dist/client/assets/corner-left-up-DSgsQQJh.js +0 -1
  328. package/dist/client/assets/download-BrSkg4EE.js +0 -1
  329. package/dist/client/assets/dynamic-COZhF9Vt.js +0 -3
  330. package/dist/client/assets/earth-D0ZhOX9I.js +0 -1
  331. package/dist/client/assets/ellipsis-Dze-H3uy.js +0 -1
  332. package/dist/client/assets/eventmodeling-NTZA5JFV-jDgS08dP.js +0 -1
  333. package/dist/client/assets/eye-OVEPp8Os.js +0 -1
  334. package/dist/client/assets/file-search-Y-7Ql86o.js +0 -1
  335. package/dist/client/assets/flowDiagram-HODETNUW-DsHnGCQL.js +0 -1
  336. package/dist/client/assets/fold-vertical-BMLbHh0a.js +0 -2
  337. package/dist/client/assets/folder-git-2-DdgpEuW8.js +0 -1
  338. package/dist/client/assets/folder-open-B9DmXcog.js +0 -1
  339. package/dist/client/assets/folder-plus-CLFJj-Gh.js +0 -1
  340. package/dist/client/assets/git-branch-SJsNyJlB.js +0 -1
  341. package/dist/client/assets/grip-vertical-_2pxkeEI.js +0 -1
  342. package/dist/client/assets/hard-drive-DMfAIp4-.js +0 -1
  343. package/dist/client/assets/history-C7dJNEkM.js +0 -1
  344. package/dist/client/assets/house-BpsJcs6J.js +0 -1
  345. package/dist/client/assets/keyboard-C0H4XsBS.js +0 -1
  346. package/dist/client/assets/link-CsVCGX_A.js +0 -1
  347. package/dist/client/assets/list-BKOLPymO.js +0 -1
  348. package/dist/client/assets/main-CJvawsJJ.js +0 -27
  349. package/dist/client/assets/main-DjXoj7An.css +0 -2
  350. package/dist/client/assets/message-circle-question-mark-0PixhBRe.js +0 -1
  351. package/dist/client/assets/message-square-dashed-jX8EWVKo.js +0 -1
  352. package/dist/client/assets/message-square-xfL83Fxi.js +0 -1
  353. package/dist/client/assets/messages-square-DwkvqiPv.js +0 -1
  354. package/dist/client/assets/mouse-pointer-2-DbBU41il.js +0 -2
  355. package/dist/client/assets/palette-DvhXYFMC.js +0 -1
  356. package/dist/client/assets/panel-left-DCz3M7jv.js +0 -1
  357. package/dist/client/assets/panels-top-left-C1xu8Xiu.js +0 -1
  358. package/dist/client/assets/projectScriptEditor-DxxYqdMP.js +0 -2
  359. package/dist/client/assets/railroad-abnf-HS5TGJTU-CA1GF-5t.js +0 -1
  360. package/dist/client/assets/railroad-ebnf-LZEXJU2U-Beda5tl-.js +0 -1
  361. package/dist/client/assets/railroad-peg-WCYAUIDC-D2CRVbbY.js +0 -1
  362. package/dist/client/assets/rotate-ccw-CyPuoUiH.js +0 -1
  363. package/dist/client/assets/rotate-cw-B20Q7RJJ.js +0 -1
  364. package/dist/client/assets/settings-2-DmZK5Wif.js +0 -1
  365. package/dist/client/assets/settings-Br2yM9q3.js +0 -1
  366. package/dist/client/assets/settings.archived-D1CPem1-.js +0 -2
  367. package/dist/client/assets/settings.computer-use-DvBtreaX.js +0 -2
  368. package/dist/client/assets/settings.connections-CeSH1Y-S.js +0 -2
  369. package/dist/client/assets/settings.decisions-FBz5pyct.js +0 -2
  370. package/dist/client/assets/settings.source-control-BXuO43FQ.js +0 -2
  371. package/dist/client/assets/shield-question-mark-Cmz7w9_M.js +0 -1
  372. package/dist/client/assets/square-pen-Dew4fHbM.js +0 -1
  373. package/dist/client/assets/stateDiagram-v2-MP3YSRHH-PvZEFfKe.js +0 -2
  374. package/dist/client/assets/swimlanesDiagram-VR7AAH4N-DIDrEY3U.js +0 -9
  375. package/dist/client/assets/text-search-Cchv2p-9.js +0 -1
  376. package/dist/client/assets/unfold-vertical-BLnEY4R7.js +0 -2
  377. package/dist/client/assets/useHandleNewThread-DtCuKpGU.js +0 -2
  378. package/dist/client/assets/useNavigate-DfvN7ISg.js +0 -2
@@ -1,4 +1,4 @@
1
- import{n as e,t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as n}from"./src-oBChb5qS.js";import{H as r,K as i,U as a,a as o,b as s,v as c,w as l,x as u,y as d}from"./chunk-DU6HZSFF-BuYM0Cu8.js";import{g as f}from"./chunk-75Z2AOVW-B6rgeqZP.js";import"./chunk-PWAF6VOD-BnsKTwi6.js";import"./chunk-GMAD6QVW-DbBkxyCE.js";import"./chunk-P2QGCYS3-zeIYnZbd.js";import"./chunk-4HAMMTFA-C0t_GKFv.js";import"./chunk-GVQU2GXP-CVZeJiG5.js";import"./chunk-OSK3NFVY-B89_sN-h.js";import{t as p}from"./chunk-XXDRQBXY-BvKO0v-W.js";import{t as m}from"./chunk-POPQ4Y6H-Bv7ZWEJI.js";import"./chunk-L3NEJ4N5-Bhkym4YW.js";import{d as h,u as g}from"./mermaid.core-EPDLhovC.js";var _=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,3],r=[1,4],i=[1,5],a=[1,6],o=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],s=[1,22],c=[2,7],l=[1,26],u=[1,27],d=[1,28],f=[1,29],p=[1,33],m=[1,34],h=[1,35],g=[1,36],_=[1,37],v=[1,38],y=[1,24],b=[1,31],x=[1,32],S=[1,30],C=[1,39],w=[1,40],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],E=[1,61],D=[89,90],O=[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],k=[27,29],ee=[1,70],A=[1,71],te=[1,72],ne=[1,73],re=[1,74],ie=[1,75],ae=[1,76],j=[1,83],M=[1,80],N=[1,84],P=[1,85],F=[1,86],I=[1,87],L=[1,88],R=[1,89],z=[1,90],B=[1,91],V=[1,92],oe=[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],H=[63,64],se=[1,101],ce=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],U=[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],W=[1,110],G=[1,106],K=[1,107],q=[1,108],J=[1,109],Y=[1,111],X=[1,116],Z=[1,117],Q=[1,114],$=[1,115],le={trace:e(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:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:r.setDirection(`TB`);break;case 18:r.setDirection(`BT`);break;case 19:r.setDirection(`RL`);break;case 20:r.setDirection(`LR`);break;case 21:r.addRequirement(a[s-3],a[s-4]);break;case 22:r.addRequirement(a[s-5],a[s-6]),r.setClass([a[s-5]],a[s-3]);break;case 23:r.setNewReqId(a[s-2]);break;case 24:r.setNewReqText(a[s-2]);break;case 25:r.setNewReqRisk(a[s-2]);break;case 26:r.setNewReqVerifyMethod(a[s-2]);break;case 29:this.$=r.RequirementType.REQUIREMENT;break;case 30:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=r.RiskLevel.LOW_RISK;break;case 36:this.$=r.RiskLevel.MED_RISK;break;case 37:this.$=r.RiskLevel.HIGH_RISK;break;case 38:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=r.VerifyType.VERIFY_TEST;break;case 42:r.addElement(a[s-3]);break;case 43:r.addElement(a[s-5]),r.setClass([a[s-5]],a[s-3]);break;case 44:r.setNewElementType(a[s-2]);break;case 45:r.setNewElementDocRef(a[s-2]);break;case 48:r.addRelationship(a[s-2],a[s],a[s-4]);break;case 49:r.addRelationship(a[s-2],a[s-4],a[s]);break;case 50:this.$=r.Relationships.CONTAINS;break;case 51:this.$=r.Relationships.COPIES;break;case 52:this.$=r.Relationships.DERIVES;break;case 53:this.$=r.Relationships.SATISFIES;break;case 54:this.$=r.Relationships.VERIFIES;break;case 55:this.$=r.Relationships.REFINES;break;case 56:this.$=r.Relationships.TRACES;break;case 57:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 58:r.setClass(a[s-1],a[s]);break;case 59:r.setClass([a[s-2]],a[s]);break;case 60:case 62:this.$=[a[s]];break;case 61:case 63:this.$=a[s-2].concat([a[s]]);break;case 64:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 65:this.$=[a[s]];break;case 66:a[s-2].push(a[s]),this.$=a[s-2];break;case 68:this.$=a[s-1]+a[s]}},`anonymous`),table:[{3:1,4:2,6:n,9:r,11:i,13:a},{1:[3]},{3:8,4:2,5:[1,7],6:n,9:r,11:i,13:a},{5:[1,9]},{10:[1,10]},{12:[1,11]},t(o,[2,6]),{3:12,4:2,6:n,9:r,11:i,13:a},{1:[2,2]},{4:17,5:s,7:13,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},t(o,[2,4]),t(o,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:s,7:42,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:43,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:44,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:45,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:46,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:47,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:48,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:49,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:50,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{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]},t(T,[2,17]),t(T,[2,18]),t(T,[2,19]),t(T,[2,20]),{30:60,33:62,75:E,89:C,90:w},{30:63,33:62,75:E,89:C,90:w},{30:64,33:62,75:E,89:C,90:w},t(D,[2,29]),t(D,[2,30]),t(D,[2,31]),t(D,[2,32]),t(D,[2,33]),t(D,[2,34]),t(O,[2,81]),t(O,[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]},t(k,[2,79]),t(k,[2,80]),{27:[1,67],29:[1,68]},t(k,[2,85]),t(k,[2,86]),{62:69,65:ee,66:A,67:te,68:ne,69:re,70:ie,71:ae},{62:77,65:ee,66:A,67:te,68:ne,69:re,70:ie,71:ae},{30:78,33:62,75:E,89:C,90:w},{73:79,75:j,76:M,78:81,79:82,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V},t(oe,[2,60]),t(oe,[2,62]),{73:93,75:j,76:M,78:81,79:82,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V},{30:94,33:62,75:E,76:M,89:C,90:w},{5:[1,95]},{30:96,33:62,75:E,89:C,90:w},{5:[1,97]},{30:98,33:62,75:E,89:C,90:w},{63:[1,99]},t(H,[2,50]),t(H,[2,51]),t(H,[2,52]),t(H,[2,53]),t(H,[2,54]),t(H,[2,55]),t(H,[2,56]),{64:[1,100]},t(T,[2,59],{76:M}),t(T,[2,64],{76:se}),{33:103,75:[1,102],89:C,90:w},t(ce,[2,65],{79:104,75:j,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V}),t(U,[2,67]),t(U,[2,69]),t(U,[2,70]),t(U,[2,71]),t(U,[2,72]),t(U,[2,73]),t(U,[2,74]),t(U,[2,75]),t(U,[2,76]),t(U,[2,77]),t(U,[2,78]),t(T,[2,57],{76:se}),t(T,[2,58],{76:M}),{5:W,28:105,31:G,34:K,36:q,38:J,40:Y},{27:[1,112],76:M},{5:X,40:Z,56:113,57:Q,59:$},{27:[1,118],76:M},{33:119,89:C,90:w},{33:120,89:C,90:w},{75:j,78:121,79:82,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V},t(oe,[2,61]),t(oe,[2,63]),t(U,[2,68]),t(T,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:W,28:126,31:G,34:K,36:q,38:J,40:Y},t(T,[2,28]),{5:[1,127]},t(T,[2,42]),{32:[1,128]},{32:[1,129]},{5:X,40:Z,56:130,57:Q,59:$},t(T,[2,47]),{5:[1,131]},t(T,[2,48]),t(T,[2,49]),t(ce,[2,66],{79:104,75:j,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V}),{33:132,89:C,90:w},{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]},t(T,[2,27]),{5:W,28:145,31:G,34:K,36:q,38:J,40:Y},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},t(T,[2,46]),{5:X,40:Z,56:152,57:Q,59:$},{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]},t(T,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},t(T,[2,43]),{5:W,28:159,31:G,34:K,36:q,38:J,40:Y},{5:W,28:160,31:G,34:K,36:q,38:J,40:Y},{5:W,28:161,31:G,34:K,36:q,38:J,40:Y},{5:W,28:162,31:G,34:K,36:q,38:J,40:Y},{5:X,40:Z,56:163,57:Q,59:$},{5:X,40:Z,56:164,57:Q,59:$},t(T,[2,23]),t(T,[2,24]),t(T,[2,25]),t(T,[2,26]),t(T,[2,44]),t(T,[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:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,ee,A;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var te=``;for(O in A=[],s[w])this.terminals_[O]&&O>f&&A.push(`'`+this.terminals_[O]+`'`);te=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import{n as e,t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as n}from"./src-oBChb5qS.js";import{H as r,K as i,U as a,a as o,b as s,v as c,w as l,x as u,y as d}from"./chunk-DU6HZSFF-ebFBoLTT.js";import{g as f}from"./chunk-75Z2AOVW-DXz8BlJz.js";import"./chunk-PWAF6VOD-kBB0Jquc.js";import"./chunk-GMAD6QVW-CEXqem_-.js";import"./chunk-P2QGCYS3-I9iEYMEJ.js";import"./chunk-4HAMMTFA-BdvKUuii.js";import"./chunk-GVQU2GXP-wsgr7T0u.js";import"./chunk-OSK3NFVY-DDd2Ay5_.js";import{t as p}from"./chunk-XXDRQBXY-BvKO0v-W.js";import{t as m}from"./chunk-POPQ4Y6H-Cgwl0wkZ.js";import"./chunk-L3NEJ4N5-C4NnipZ0.js";import{d as h,u as g}from"./mermaid.core-zK2u82e-.js";var _=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[1,3],r=[1,4],i=[1,5],a=[1,6],o=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],s=[1,22],c=[2,7],l=[1,26],u=[1,27],d=[1,28],f=[1,29],p=[1,33],m=[1,34],h=[1,35],g=[1,36],_=[1,37],v=[1,38],y=[1,24],b=[1,31],x=[1,32],S=[1,30],C=[1,39],w=[1,40],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],E=[1,61],D=[89,90],O=[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],k=[27,29],ee=[1,70],A=[1,71],te=[1,72],ne=[1,73],re=[1,74],ie=[1,75],ae=[1,76],j=[1,83],M=[1,80],N=[1,84],P=[1,85],F=[1,86],I=[1,87],L=[1,88],R=[1,89],z=[1,90],B=[1,91],V=[1,92],oe=[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],H=[63,64],se=[1,101],ce=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],U=[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],W=[1,110],G=[1,106],K=[1,107],q=[1,108],J=[1,109],Y=[1,111],X=[1,116],Z=[1,117],Q=[1,114],$=[1,115],le={trace:e(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:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 4:this.$=a[s].trim(),r.setAccTitle(this.$);break;case 5:case 6:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:r.setDirection(`TB`);break;case 18:r.setDirection(`BT`);break;case 19:r.setDirection(`RL`);break;case 20:r.setDirection(`LR`);break;case 21:r.addRequirement(a[s-3],a[s-4]);break;case 22:r.addRequirement(a[s-5],a[s-6]),r.setClass([a[s-5]],a[s-3]);break;case 23:r.setNewReqId(a[s-2]);break;case 24:r.setNewReqText(a[s-2]);break;case 25:r.setNewReqRisk(a[s-2]);break;case 26:r.setNewReqVerifyMethod(a[s-2]);break;case 29:this.$=r.RequirementType.REQUIREMENT;break;case 30:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=r.RiskLevel.LOW_RISK;break;case 36:this.$=r.RiskLevel.MED_RISK;break;case 37:this.$=r.RiskLevel.HIGH_RISK;break;case 38:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=r.VerifyType.VERIFY_TEST;break;case 42:r.addElement(a[s-3]);break;case 43:r.addElement(a[s-5]),r.setClass([a[s-5]],a[s-3]);break;case 44:r.setNewElementType(a[s-2]);break;case 45:r.setNewElementDocRef(a[s-2]);break;case 48:r.addRelationship(a[s-2],a[s],a[s-4]);break;case 49:r.addRelationship(a[s-2],a[s-4],a[s]);break;case 50:this.$=r.Relationships.CONTAINS;break;case 51:this.$=r.Relationships.COPIES;break;case 52:this.$=r.Relationships.DERIVES;break;case 53:this.$=r.Relationships.SATISFIES;break;case 54:this.$=r.Relationships.VERIFIES;break;case 55:this.$=r.Relationships.REFINES;break;case 56:this.$=r.Relationships.TRACES;break;case 57:this.$=a[s-2],r.defineClass(a[s-1],a[s]);break;case 58:r.setClass(a[s-1],a[s]);break;case 59:r.setClass([a[s-2]],a[s]);break;case 60:case 62:this.$=[a[s]];break;case 61:case 63:this.$=a[s-2].concat([a[s]]);break;case 64:this.$=a[s-2],r.setCssStyle(a[s-1],a[s]);break;case 65:this.$=[a[s]];break;case 66:a[s-2].push(a[s]),this.$=a[s-2];break;case 68:this.$=a[s-1]+a[s]}},`anonymous`),table:[{3:1,4:2,6:n,9:r,11:i,13:a},{1:[3]},{3:8,4:2,5:[1,7],6:n,9:r,11:i,13:a},{5:[1,9]},{10:[1,10]},{12:[1,11]},t(o,[2,6]),{3:12,4:2,6:n,9:r,11:i,13:a},{1:[2,2]},{4:17,5:s,7:13,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},t(o,[2,4]),t(o,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:s,7:42,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:43,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:44,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:45,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:46,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:47,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:48,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:49,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{4:17,5:s,7:50,8:c,9:r,11:i,13:a,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:l,22:u,23:d,24:f,25:23,33:25,41:p,42:m,43:h,44:g,45:_,46:v,54:y,72:b,74:x,77:S,89:C,90:w},{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]},t(T,[2,17]),t(T,[2,18]),t(T,[2,19]),t(T,[2,20]),{30:60,33:62,75:E,89:C,90:w},{30:63,33:62,75:E,89:C,90:w},{30:64,33:62,75:E,89:C,90:w},t(D,[2,29]),t(D,[2,30]),t(D,[2,31]),t(D,[2,32]),t(D,[2,33]),t(D,[2,34]),t(O,[2,81]),t(O,[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]},t(k,[2,79]),t(k,[2,80]),{27:[1,67],29:[1,68]},t(k,[2,85]),t(k,[2,86]),{62:69,65:ee,66:A,67:te,68:ne,69:re,70:ie,71:ae},{62:77,65:ee,66:A,67:te,68:ne,69:re,70:ie,71:ae},{30:78,33:62,75:E,89:C,90:w},{73:79,75:j,76:M,78:81,79:82,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V},t(oe,[2,60]),t(oe,[2,62]),{73:93,75:j,76:M,78:81,79:82,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V},{30:94,33:62,75:E,76:M,89:C,90:w},{5:[1,95]},{30:96,33:62,75:E,89:C,90:w},{5:[1,97]},{30:98,33:62,75:E,89:C,90:w},{63:[1,99]},t(H,[2,50]),t(H,[2,51]),t(H,[2,52]),t(H,[2,53]),t(H,[2,54]),t(H,[2,55]),t(H,[2,56]),{64:[1,100]},t(T,[2,59],{76:M}),t(T,[2,64],{76:se}),{33:103,75:[1,102],89:C,90:w},t(ce,[2,65],{79:104,75:j,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V}),t(U,[2,67]),t(U,[2,69]),t(U,[2,70]),t(U,[2,71]),t(U,[2,72]),t(U,[2,73]),t(U,[2,74]),t(U,[2,75]),t(U,[2,76]),t(U,[2,77]),t(U,[2,78]),t(T,[2,57],{76:se}),t(T,[2,58],{76:M}),{5:W,28:105,31:G,34:K,36:q,38:J,40:Y},{27:[1,112],76:M},{5:X,40:Z,56:113,57:Q,59:$},{27:[1,118],76:M},{33:119,89:C,90:w},{33:120,89:C,90:w},{75:j,78:121,79:82,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V},t(oe,[2,61]),t(oe,[2,63]),t(U,[2,68]),t(T,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:W,28:126,31:G,34:K,36:q,38:J,40:Y},t(T,[2,28]),{5:[1,127]},t(T,[2,42]),{32:[1,128]},{32:[1,129]},{5:X,40:Z,56:130,57:Q,59:$},t(T,[2,47]),{5:[1,131]},t(T,[2,48]),t(T,[2,49]),t(ce,[2,66],{79:104,75:j,80:N,81:P,82:F,83:I,84:L,85:R,86:z,87:B,88:V}),{33:132,89:C,90:w},{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]},t(T,[2,27]),{5:W,28:145,31:G,34:K,36:q,38:J,40:Y},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},t(T,[2,46]),{5:X,40:Z,56:152,57:Q,59:$},{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]},t(T,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},t(T,[2,43]),{5:W,28:159,31:G,34:K,36:q,38:J,40:Y},{5:W,28:160,31:G,34:K,36:q,38:J,40:Y},{5:W,28:161,31:G,34:K,36:q,38:J,40:Y},{5:W,28:162,31:G,34:K,36:q,38:J,40:Y},{5:X,40:Z,56:163,57:Q,59:$},{5:X,40:Z,56:164,57:Q,59:$},t(T,[2,23]),t(T,[2,24]),t(T,[2,25]),t(T,[2,26]),t(T,[2,44]),t(T,[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:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,ee,A;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var te=``;for(O in A=[],s[w])this.terminals_[O]&&O>f&&A.push(`'`+this.terminals_[O]+`'`);te=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+A.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(te,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:A})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),ee=s[r[r.length-2]][r[r.length-1]],r.push(ee);break;case 3:return!0}}return!0},`parse`)};le.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(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:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -82,4 +82,4 @@ Expecting `+A.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l
82
82
  }
83
83
 
84
84
  `},`getStyles`),S={};t(S,{draw:()=>C});var C=e(async function(e,t,r,i){n.info(`REF0:`),n.info(`Drawing requirement diagram (unified)`,t);let{securityLevel:a,state:o,layout:s,look:c}=u(),l=i.db.getData(),d=p(t,a);l.type=i.type,l.layoutAlgorithm=g(s),l.nodeSpacing=o?.nodeSpacing??50,l.rankSpacing=o?.rankSpacing??50,l.markers=c===`neo`?[`requirement_contains_neo`,`requirement_arrow_neo`]:[`requirement_contains`,`requirement_arrow`],l.diagramId=t,await h(l,d),f.insertTitle(d,`requirementDiagramTitleText`,o?.titleTopMargin??25,i.db.getDiagramTitle()),m(d,8,`requirementDiagram`,o?.useMaxWidth??!0)},`draw`),w={parser:v,get db(){return new y},renderer:S,styles:x};export{w as diagram};
85
- //# sourceMappingURL=requirementDiagram-BXWQKSXE-WVgmezGx.js.map
85
+ //# sourceMappingURL=requirementDiagram-BXWQKSXE-CKZ6HpQu.js.map
@@ -1,2 +1,2 @@
1
- import{Bs as e,H as t,Id as n,Is as r,L as i,Mm as a,Rs as o,Tm as s,U as c,V as l,l as u,tu as d,uf as f,yh as p}from"./utils-Nv21__t3.js";var m=(t,n)=>{if(t.kind!==n.kind||e(t.threadRef)!==e(n.threadRef))return!1;switch(t.kind){case`panel-tab`:return n.kind===`panel-tab`&&t.surface.id===n.surface.id;case`browser`:return n.kind===`browser`&&t.snapshot.tabId===n.snapshot.tabId}},h=e=>e.kind!==`browser`||e.snapshot.profileId!==`incognito`,g=p(f),_=p(d),v=p(n),y=e=>{let t=e;if(!t||typeof t.id!=`string`||!g(t.threadRef))return!1;if(t.kind===`browser`)return _(t.snapshot);if(t.kind!==`panel-tab`)return!1;let n=t.surface;if(!n||typeof n.id!=`string`)return!1;switch(n.kind){case`diff`:case`files`:case`pull-requests`:return n.id===n.kind;case`preview`:return n.resourceId===null||typeof n.resourceId==`string`;case`file`:return typeof n.relativePath==`string`&&(n.revealLine===null||Number.isSafeInteger(n.revealLine))&&Number.isSafeInteger(n.revealRequestId)&&(n.attachment===void 0||v(n.attachment));case`device`:return(n.title===void 0||typeof n.title==`string`)&&(n.target===void 0||n.target!==null&&typeof n.target.hostId==`string`&&typeof n.target.deviceId==`string`&&typeof n.target.name==`string`&&(n.target.platform===`ios`||n.target.platform===`android`));case`pull-request`:return typeof n.projectId==`string`&&typeof n.repository==`string`&&Number.isSafeInteger(n.number)&&n.number>0&&(n.environmentId===void 0||typeof n.environmentId==`string`)&&(n.host===void 0||typeof n.host==`string`)&&(n.url===void 0||typeof n.url==`string`);default:return!1}},b=c()(t(e=>({entries:[],remember:t=>{let n=u();return e(e=>({entries:[{...t,id:n},...e.entries.filter(e=>!m(e,t))].slice(0,20)})),n},defer:t=>e(e=>{let n=e.entries.find(e=>e.id===t);return n?{entries:[...e.entries.filter(e=>e.id!==t),n]}:e}),remove:t=>e(e=>({entries:e.entries.filter(e=>e.id!==t)}))}),{name:`t3code:closed-views:v2`,storage:l(()=>i(typeof window<`u`?window.localStorage:void 0)),version:2,migrate:e=>{let t=e?.entries;return{entries:Array.isArray(t)?t.filter(y).filter(h):[]}},partialize:({entries:e})=>({entries:e.filter(h)})})),x=`t3code:right-panel-state:v2`,S=14,C=o(s.make(`pull-requests-panel`),a.make(`pull-requests-panel`)),w=e=>e.endsWith(`:pull-requests-panel`),T={isOpen:!1,activeSurfaceId:null,surfaces:[]},E={inlineOpen:!0,popoverOpen:!1},D=e=>{switch(e){case`diff`:return{id:`diff`,kind:e};case`files`:return{id:`files`,kind:e};case`pull-requests`:return{id:`pull-requests`,kind:e};case`device`:return{id:`device`,kind:e}}},O=e=>e?{id:`browser:${e}`,kind:`preview`,resourceId:e}:{id:`browser:new`,kind:`preview`,resourceId:null},k=(e,t,n)=>({id:`file:${e}`,kind:`file`,relativePath:e,revealLine:t,revealRequestId:n}),A=e=>({id:`attachment:${e.id}`,kind:`file`,relativePath:e.name,revealLine:null,revealRequestId:0,attachment:e}),j=e=>({id:`terminal:${e}`,kind:`terminal`,resourceId:e,terminalIds:[e],activeTerminalId:e});function M(e){let t=e.environmentId===void 0?``:`${encodeURIComponent(e.environmentId)}:`,n=e.host===void 0?``:`${encodeURIComponent(e.host.toLowerCase())}:`;return`pull-request:${t}${encodeURIComponent(e.projectId)}:${n}${encodeURIComponent(e.repository)}:${e.number}`}function N(e){return{id:M(e),kind:`pull-request`,...e.environmentId===void 0?{}:{environmentId:e.environmentId},projectId:e.projectId,...typeof e.host==`string`?{host:e.host.toLowerCase()}:{},repository:e.repository,number:e.number,...typeof e.url==`string`?{url:e.url}:{}}}var P=(e,t,n=!0)=>({...e,isOpen:!0,surfaces:e.surfaces.some(e=>e.id===t.id)?e.surfaces:[...e.surfaces,t],activeSurfaceId:n?t.id:e.activeSurfaceId}),F=(e,t,n)=>{let r=e[t]??T,i=n(r);if(!i.isOpen&&i.activeSurfaceId===null&&i.surfaces.length===0&&!i.dismissedDeviceSurfaceIds?.length){if(!(t in e))return e;let{[t]:n,...r}=e;return r}return i===r?e:{...e,[t]:i}},I=(e,t,n)=>{let r=e[t]??E,i=n(r);if(i.inlineOpen&&!i.popoverOpen){if(!(t in e))return e;let{[t]:n,...r}=e;return r}return i===r?e:{...e,[t]:i}},L=(e,t,n)=>{let r=e.byThreadKey[t]??T,i=F(e.byThreadKey,t,n),a=i[t]??T,o=e.threadPanelVisibilityByThreadKey;return!r.isOpen&&a.isOpen?o=I(o,t,e=>e.popoverOpen?{...e,popoverOpen:!1}:e):r.isOpen&&!a.isOpen&&(o=I(o,t,e=>e.popoverOpen&&!e.inlineOpen?{...e,inlineOpen:!0}:e)),{byThreadKey:i,threadPanelVisibilityByThreadKey:o}},R=(e,t,n)=>({...L(e,t,n)}),z=(e,t,n,r=!1)=>({...L(e,t,e=>{let t=n(e);if(t===e)return e;let r=e.surfaces.filter(e=>e.kind===`device`&&!t.surfaces.some(t=>t.id===e.id));return r.length===0?t:{...t,dismissedDeviceSurfaceIds:[...new Set([...t.dismissedDeviceSurfaceIds??[],...r.map(e=>e.id)])]}}),userActionRevisionByThreadKey:{...e.userActionRevisionByThreadKey,[t]:(e.userActionRevisionByThreadKey[t]??0)+1},...r?{closeRevisionByThreadKey:{...e.closeRevisionByThreadKey,[t]:(e.closeRevisionByThreadKey[t]??0)+1}}:{}}),B=(e,t,n)=>z(e,t,n,!0);function V(e){return e===void 0||!Number.isFinite(e)?null:Math.max(1,Math.trunc(e))}function H(e){return!e||typeof e!=`object`?{byThreadKey:{},threadPanelVisibilityByThreadKey:{}}:{byThreadKey:`byThreadKey`in e&&e.byThreadKey&&typeof e.byThreadKey==`object`?Object.fromEntries(Object.entries(e.byThreadKey).filter(([e])=>!w(e)).map(([e,t])=>{let n=t&&typeof t==`object`?t:null,r=Array.isArray(n?.surfaces)?n.surfaces.flatMap(e=>{let t=e.kind;if(t===`plan`||t===`agents`)return[];if(e.kind===`file`){let t=typeof e.revealLine==`number`&&Number.isFinite(e.revealLine)?Math.max(1,Math.trunc(e.revealLine)):null,n=typeof e.revealRequestId==`number`&&Number.isSafeInteger(e.revealRequestId)&&e.revealRequestId>=0?e.revealRequestId:0;return[{...e,revealLine:t,revealRequestId:n}]}if(e.kind===`pull-request`){if(typeof e.projectId!=`string`||typeof e.repository!=`string`||typeof e.number!=`number`||!Number.isSafeInteger(e.number)||e.number<1)return[];let{environmentId:t,...n}=e;return[N({...n,...typeof t==`string`?{environmentId:t}:{}})]}if(e.kind!==`terminal`)return[e];if(!(`resourceId`in e)||typeof e.resourceId!=`string`||e.id!==`terminal:${e.resourceId}`)return[];let n=`terminalIds`in e&&Array.isArray(e.terminalIds)?[...new Set(e.terminalIds.filter(e=>typeof e==`string`))]:[e.resourceId],r=`activeTerminalId`in e&&typeof e.activeTerminalId==`string`&&n.includes(e.activeTerminalId)?e.activeTerminalId:n[0]??e.resourceId;return[{...e,terminalIds:n.length>0?n:[e.resourceId],activeTerminalId:r}]}):[],i=n?.activeSurfaceId,a=r.some(e=>e.id===i)?i??null:i===`pull-request`?r.find(e=>e.kind===`pull-request`)?.id??null:null,o=r.length>0&&(typeof n?.isOpen==`boolean`?n.isOpen:a!==null);return[e,{isOpen:o,surfaces:r,activeSurfaceId:a??(o||i===`agents`?r[0]?.id??null:null),...Array.isArray(n?.dismissedDeviceSurfaceIds)?{dismissedDeviceSurfaceIds:n.dismissedDeviceSurfaceIds.filter(e=>typeof e==`string`)}:{},...n?.maximized===!0?{maximized:!0}:{}}]})):{},threadPanelVisibilityByThreadKey:`threadPanelVisibilityByThreadKey`in e&&e.threadPanelVisibilityByThreadKey&&typeof e.threadPanelVisibilityByThreadKey==`object`?Object.fromEntries(Object.entries(e.threadPanelVisibilityByThreadKey).flatMap(([e,t])=>!t||typeof t!=`object`||!(`inlineOpen`in t)?[]:t.inlineOpen===!1?[[e,{inlineOpen:!1,popoverOpen:!1}]]:[])):{}}}var U=c()(t((t,n)=>({byThreadKey:{},pendingMaximizeThreadKey:null,requestMaximize:n=>t({pendingMaximizeThreadKey:e(n)}),consumeMaximizeRequest:r=>n().pendingMaximizeThreadKey===e(r)&&(t({pendingMaximizeThreadKey:null}),!0),threadPanelVisibilityByThreadKey:{},userActionRevisionByThreadKey:{},closeRevisionByThreadKey:{},getUserActionRevision:t=>n().userActionRevisionByThreadKey[e(t)]??0,openProactive:(n,r,i)=>{let a=!1;return t(t=>{let o=e(n);return(t.userActionRevisionByThreadKey[o]??0)!==i||r.kind===`diff`&&(q(t.byThreadKey,n)===`pull-request`||q(t.byThreadKey,n)===`pull-requests`)?t:(a=!0,R(t,o,e=>P(e,r)))}),a},open:(n,r)=>t(t=>z(t,e(n),e=>r===`preview`?P(e,e.surfaces.find(e=>e.kind===`preview`)??O(null)):P(e,D(r)))),openDevice:(n,r,i=!1)=>t(t=>(i?R:z)(t,e(n),e=>{let t=`device:${encodeURIComponent(r.hostId)}:${encodeURIComponent(r.deviceId)}`;if(i&&e.dismissedDeviceSurfaceIds?.includes(t))return e;let n={id:t,kind:`device`,target:r},a=e.surfaces.find(e=>e.id===t),o=a?e.surfaces.filter(e=>e.id!==`device`):e.surfaces.map(e=>e.id===`device`?n:e);return P({...e,surfaces:o,dismissedDeviceSurfaceIds:(e.dismissedDeviceSurfaceIds??[]).filter(e=>e!==t)},a??n)})),renameDevice:(n,r,i)=>t(t=>z(t,e(n),e=>({...e,surfaces:e.surfaces.map(e=>e.id===r&&e.kind===`device`?{...e,title:i.trim()||e.target?.name||`Device`}:e)}))),openBrowser:(n,r)=>t(t=>z(t,e(n),e=>{let t=O(r),n=r?e.surfaces.filter(e=>e.id!==`browser:new`):e.surfaces;return P({...e,surfaces:n},t)})),openPullRequest:(n,r)=>t(t=>z(t,e(n),e=>{let t=N(r),n=P(e,t);return r.url?{...n,surfaces:n.surfaces.map(e=>e.id===t.id?t:e)}:n})),openFile:(n,r,i)=>t(t=>z(t,e(n),e=>{if(r===`.`)return P(e,D(`files`));let t=/^[A-Za-z]:\/+$/.test(r)?r:r.replace(/\/+$/,``)||r,n=e.surfaces.filter(e=>e.kind!==`files`),a=`file:${t}`,o=n.find(e=>e.id===a&&e.kind===`file`),s=k(t,V(i),(o?.revealRequestId??0)+1);return{...e,isOpen:!0,activeSurfaceId:s.id,surfaces:o?n.map(e=>e.id===s.id?s:e):[...n,s]}})),openAttachment:(n,r)=>t(t=>z(t,e(n),e=>{let t=e.surfaces.filter(e=>e.kind!==`files`);return P({...e,surfaces:t},A(r))})),openTerminal:(n,r)=>t(t=>z(t,e(n),e=>P(e,j(r)))),splitTerminal:(n,r,i,a=`horizontal`)=>t(t=>z(t,e(n),e=>({...e,isOpen:!0,activeSurfaceId:r,surfaces:e.surfaces.map(e=>{if(e.id!==r||e.kind!==`terminal`)return e;let{splitDirection:t,...n}=e;return{...n,terminalIds:e.terminalIds.includes(i)?e.terminalIds:[...e.terminalIds,i],activeTerminalId:i,...a===`vertical`?{splitDirection:`vertical`}:{}}})}))),activateTerminal:(n,r,i)=>t(t=>z(t,e(n),e=>({...e,activeSurfaceId:r,surfaces:e.surfaces.map(e=>e.id===r&&e.kind===`terminal`&&e.terminalIds.includes(i)?{...e,activeTerminalId:i}:e)}))),closeTerminal:(n,r,i)=>t(t=>B(t,e(n),e=>{let t=e.surfaces.find(e=>e.id===r&&e.kind===`terminal`);if(!t||t.kind!==`terminal`)return e;let n=t.terminalIds.filter(e=>e!==i);if(n.length===0){let t=e.surfaces.findIndex(e=>e.id===r),n=e.surfaces.filter(e=>e.id!==r),i=n[Math.min(t,n.length-1)]??null;return{...e,isOpen:n.length>0&&e.isOpen,surfaces:n,activeSurfaceId:e.activeSurfaceId===r?i?.id??null:e.activeSurfaceId}}return{...e,surfaces:e.surfaces.map(e=>e.id===r&&e.kind===`terminal`?{...e,terminalIds:n,activeTerminalId:e.activeTerminalId===i?n.at(-1)??n[0]:e.activeTerminalId}:e)}})),activateSurface:(n,r)=>t(t=>z(t,e(n),e=>e.surfaces.some(e=>e.id===r)?{...e,isOpen:!0,activeSurfaceId:r}:e)),closeSurface:(n,r)=>t(t=>B(t,e(n),e=>{let t=e.surfaces.findIndex(e=>e.id===r);if(t<0)return e;let n=e.surfaces.filter(e=>e.id!==r),i={...e,isOpen:n.length>0&&e.isOpen,surfaces:n};if(e.activeSurfaceId!==r)return i;let a=n[Math.min(t,n.length-1)]??null;return{...i,activeSurfaceId:a?.id??null}})),closeOtherSurfaces:(n,r)=>t(t=>B(t,e(n),e=>{let t=e.surfaces.find(e=>e.id===r);return!t||e.surfaces.length===1?e:{...e,isOpen:!0,surfaces:[t],activeSurfaceId:t.id}})),closeSurfacesToRight:(n,r)=>t(t=>B(t,e(n),e=>{let t=e.surfaces.findIndex(e=>e.id===r);if(t<0||t===e.surfaces.length-1)return e;let n=e.surfaces.slice(0,t+1),i=n.some(t=>t.id===e.activeSurfaceId);return{...e,surfaces:n,activeSurfaceId:i?e.activeSurfaceId:r}})),closeAllSurfaces:n=>t(t=>B(t,e(n),e=>e.surfaces.length===0?e:{...e,isOpen:!1,surfaces:[],activeSurfaceId:null})),moveSurface:(n,r,i)=>t(t=>L(t,e(n),e=>{let t=e.surfaces.findIndex(e=>e.id===r);if(t<0||t===i)return e;let n=[...e.surfaces];return n.splice(i,0,...n.splice(t,1)),{...e,surfaces:n}})),reconcileBrowserSurfaces:(n,r,i)=>t(t=>R(t,e(n),e=>{let t=new Set(r.map(e=>`browser:${e}`)),n=e.surfaces.filter(e=>e.kind!==`preview`||e.id!==`browser:new`&&t.has(e.id)),a=new Set(n.map(e=>e.id)),o=r.filter(e=>!a.has(`browser:${e}`)&&!i?.has(e)).map(e=>O(e)),s=[...n,...o],c=s.some(t=>t.id===e.activeSurfaceId),l=s.find(e=>e.kind===`preview`);return{...e,surfaces:s,activeSurfaceId:c?e.activeSurfaceId:l?.id??s[0]?.id??null}})),reconcileFileSurfaces:(n,r)=>t(t=>R(t,e(n),e=>{if(r)return e;let t=e.surfaces.filter(e=>e.kind!==`files`&&(e.kind!==`file`||e.attachment!==void 0));if(t.length===e.surfaces.length)return e;let n=t.some(t=>t.id===e.activeSurfaceId);return{...e,isOpen:t.length>0&&e.isOpen,surfaces:t,activeSurfaceId:n?e.activeSurfaceId:t.at(-1)?.id??null}})),show:n=>t(t=>z(t,e(n),e=>e.isOpen?e:{...e,isOpen:!0})),close:n=>t(t=>z(t,e(n),e=>e.isOpen?{...e,isOpen:!1}:e)),setMaximized:(n,r)=>t(t=>R(t,e(n),e=>{if((e.maximized??!1)===r)return e;let{maximized:t,...n}=e;return r?{...n,maximized:!0}:n})),toggleVisibility:n=>t(t=>z(t,e(n),e=>({...e,isOpen:!e.isOpen}))),toggle:(n,r)=>t(t=>z(t,e(n),e=>{let t=e.surfaces.find(t=>t.id===e.activeSurfaceId);return e.isOpen&&t?.kind===r?{...e,isOpen:!1}:r===`preview`?P(e,e.surfaces.find(e=>e.kind===`preview`)??O(null)):P(e,D(r))})),setThreadPanelOpen:(n,r,i)=>t(t=>({threadPanelVisibilityByThreadKey:I(t.threadPanelVisibilityByThreadKey,e(n),e=>{let t=r===`inline`?`inlineOpen`:`popoverOpen`;return e[t]===i?e:{...e,[t]:i}})})),toggleThreadPanel:(n,r)=>t(t=>({threadPanelVisibilityByThreadKey:I(t.threadPanelVisibilityByThreadKey,e(n),e=>r===`inline`?{...e,inlineOpen:!e.inlineOpen}:{...e,popoverOpen:!e.popoverOpen})})),removeThread:n=>t(t=>{let r=e(n);if(!(r in t.byThreadKey)&&!(r in t.threadPanelVisibilityByThreadKey)&&!(r in t.userActionRevisionByThreadKey)&&!(r in t.closeRevisionByThreadKey))return t;let{[r]:i,...a}=t.byThreadKey,{[r]:o,...s}=t.threadPanelVisibilityByThreadKey,{[r]:c,...l}=t.userActionRevisionByThreadKey,{[r]:u,...d}=t.closeRevisionByThreadKey;return{byThreadKey:a,threadPanelVisibilityByThreadKey:s,userActionRevisionByThreadKey:l,closeRevisionByThreadKey:d}})}),{name:x,version:S,storage:l(()=>i(typeof window<`u`?window.localStorage:void 0)),partialize:e=>({byThreadKey:Object.fromEntries(Object.entries(e.byThreadKey).filter(([e])=>!w(e))),threadPanelVisibilityByThreadKey:Object.fromEntries(Object.entries(e.threadPanelVisibilityByThreadKey).flatMap(([e,t])=>t.inlineOpen?[]:[[e,{inlineOpen:!1,popoverOpen:!1}]]))}),migrate:H}));U.subscribe((e,t)=>{if(e.closeRevisionByThreadKey!==t.closeRevisionByThreadKey)for(let[n,i]of Object.entries(e.closeRevisionByThreadKey)){if(i===t.closeRevisionByThreadKey[n])continue;let a=r(n);if(!a)continue;let o=t.byThreadKey[n]??T,s=e.byThreadKey[n]??T,c=o.surfaces.filter(e=>!s.surfaces.some(t=>t.id===e.id)),l=[...c.filter(e=>e.id!==o.activeSurfaceId),...c.filter(e=>e.id===o.activeSurfaceId)];for(let e of l)e.kind===`terminal`||e.kind===`preview`&&e.resourceId!==null||b.getState().remember({kind:`panel-tab`,threadRef:a,surface:e})}});function W(t,n){return n?t[e(n)]??T:T}function G(t,n){return n?t[e(n)]??E:E}function K(e,t,n){let r=G(e,t);return n===`inline`?r.inlineOpen:r.popoverOpen}function q(e,t){let n=W(e,t);return n.isOpen?n.surfaces.find(e=>e.id===n.activeSurfaceId)?.kind??null:null}function J(e,t){return W(e,t).isOpen?Y(e,t):null}function Y(e,t){let n=W(e,t);return n.surfaces.find(e=>e.id===n.activeSurfaceId)??null}export{J as a,W as c,q as i,U as l,N as n,Y as o,M as r,K as s,C as t,b as u};
2
- //# sourceMappingURL=rightPanelStore-CsSGBQ8t.js.map
1
+ import{Bs as e,H as t,Id as n,Is as r,L as i,Mm as a,Rs as o,Tm as s,U as c,V as l,l as u,tu as d,uf as f,yh as p}from"./utils-DmS758az.js";var m=(t,n)=>{if(t.kind!==n.kind||e(t.threadRef)!==e(n.threadRef))return!1;switch(t.kind){case`panel-tab`:return n.kind===`panel-tab`&&t.surface.id===n.surface.id;case`browser`:return n.kind===`browser`&&t.snapshot.tabId===n.snapshot.tabId}},h=e=>e.kind!==`browser`||e.snapshot.profileId!==`incognito`,g=p(f),_=p(d),v=p(n),y=e=>{let t=e;if(!t||typeof t.id!=`string`||!g(t.threadRef))return!1;if(t.kind===`browser`)return _(t.snapshot);if(t.kind!==`panel-tab`)return!1;let n=t.surface;if(!n||typeof n.id!=`string`)return!1;switch(n.kind){case`diff`:case`files`:case`pull-requests`:return n.id===n.kind;case`preview`:return n.resourceId===null||typeof n.resourceId==`string`;case`file`:return typeof n.relativePath==`string`&&(n.revealLine===null||Number.isSafeInteger(n.revealLine))&&Number.isSafeInteger(n.revealRequestId)&&(n.attachment===void 0||v(n.attachment));case`device`:return(n.title===void 0||typeof n.title==`string`)&&(n.target===void 0||n.target!==null&&typeof n.target.hostId==`string`&&typeof n.target.deviceId==`string`&&typeof n.target.name==`string`&&(n.target.platform===`ios`||n.target.platform===`android`));case`pull-request`:return typeof n.projectId==`string`&&typeof n.repository==`string`&&Number.isSafeInteger(n.number)&&n.number>0&&(n.environmentId===void 0||typeof n.environmentId==`string`)&&(n.host===void 0||typeof n.host==`string`)&&(n.url===void 0||typeof n.url==`string`);default:return!1}},b=c()(t(e=>({entries:[],remember:t=>{let n=u();return e(e=>({entries:[{...t,id:n},...e.entries.filter(e=>!m(e,t))].slice(0,20)})),n},defer:t=>e(e=>{let n=e.entries.find(e=>e.id===t);return n?{entries:[...e.entries.filter(e=>e.id!==t),n]}:e}),remove:t=>e(e=>({entries:e.entries.filter(e=>e.id!==t)}))}),{name:`t3code:closed-views:v2`,storage:l(()=>i(typeof window<`u`?window.localStorage:void 0)),version:2,migrate:e=>{let t=e?.entries;return{entries:Array.isArray(t)?t.filter(y).filter(h):[]}},partialize:({entries:e})=>({entries:e.filter(h)})})),x=`t3code:right-panel-state:v2`,S=14,C=o(s.make(`pull-requests-panel`),a.make(`pull-requests-panel`)),w=e=>e.endsWith(`:pull-requests-panel`),T={isOpen:!1,activeSurfaceId:null,surfaces:[]},E={inlineOpen:!0,popoverOpen:!1},D=e=>{switch(e){case`diff`:return{id:`diff`,kind:e};case`files`:return{id:`files`,kind:e};case`pull-requests`:return{id:`pull-requests`,kind:e};case`device`:return{id:`device`,kind:e}}},O=e=>e?{id:`browser:${e}`,kind:`preview`,resourceId:e}:{id:`browser:new`,kind:`preview`,resourceId:null},k=(e,t,n)=>({id:`file:${e}`,kind:`file`,relativePath:e,revealLine:t,revealRequestId:n}),A=e=>({id:`attachment:${e.id}`,kind:`file`,relativePath:e.name,revealLine:null,revealRequestId:0,attachment:e}),j=e=>({id:`terminal:${e}`,kind:`terminal`,resourceId:e,terminalIds:[e],activeTerminalId:e});function M(e){let t=e.environmentId===void 0?``:`${encodeURIComponent(e.environmentId)}:`,n=e.host===void 0?``:`${encodeURIComponent(e.host.toLowerCase())}:`;return`pull-request:${t}${encodeURIComponent(e.projectId)}:${n}${encodeURIComponent(e.repository)}:${e.number}`}function N(e){return{id:M(e),kind:`pull-request`,...e.environmentId===void 0?{}:{environmentId:e.environmentId},projectId:e.projectId,...typeof e.host==`string`?{host:e.host.toLowerCase()}:{},repository:e.repository,number:e.number,...typeof e.url==`string`?{url:e.url}:{}}}var P=(e,t,n=!0)=>({...e,isOpen:!0,surfaces:e.surfaces.some(e=>e.id===t.id)?e.surfaces:[...e.surfaces,t],activeSurfaceId:n?t.id:e.activeSurfaceId}),F=(e,t,n)=>{let r=e[t]??T,i=n(r);if(!i.isOpen&&i.activeSurfaceId===null&&i.surfaces.length===0&&!i.dismissedDeviceSurfaceIds?.length){if(!(t in e))return e;let{[t]:n,...r}=e;return r}return i===r?e:{...e,[t]:i}},I=(e,t,n)=>{let r=e[t]??E,i=n(r);if(i.inlineOpen&&!i.popoverOpen){if(!(t in e))return e;let{[t]:n,...r}=e;return r}return i===r?e:{...e,[t]:i}},L=(e,t,n)=>{let r=e.byThreadKey[t]??T,i=F(e.byThreadKey,t,n),a=i[t]??T,o=e.threadPanelVisibilityByThreadKey;return!r.isOpen&&a.isOpen?o=I(o,t,e=>e.popoverOpen?{...e,popoverOpen:!1}:e):r.isOpen&&!a.isOpen&&(o=I(o,t,e=>e.popoverOpen&&!e.inlineOpen?{...e,inlineOpen:!0}:e)),{byThreadKey:i,threadPanelVisibilityByThreadKey:o}},R=(e,t,n)=>({...L(e,t,n)}),z=(e,t,n,r=!1)=>({...L(e,t,e=>{let t=n(e);if(t===e)return e;let r=e.surfaces.filter(e=>e.kind===`device`&&!t.surfaces.some(t=>t.id===e.id));return r.length===0?t:{...t,dismissedDeviceSurfaceIds:[...new Set([...t.dismissedDeviceSurfaceIds??[],...r.map(e=>e.id)])]}}),userActionRevisionByThreadKey:{...e.userActionRevisionByThreadKey,[t]:(e.userActionRevisionByThreadKey[t]??0)+1},...r?{closeRevisionByThreadKey:{...e.closeRevisionByThreadKey,[t]:(e.closeRevisionByThreadKey[t]??0)+1}}:{}}),B=(e,t,n)=>z(e,t,n,!0);function V(e){return e===void 0||!Number.isFinite(e)?null:Math.max(1,Math.trunc(e))}function H(e){return!e||typeof e!=`object`?{byThreadKey:{},threadPanelVisibilityByThreadKey:{}}:{byThreadKey:`byThreadKey`in e&&e.byThreadKey&&typeof e.byThreadKey==`object`?Object.fromEntries(Object.entries(e.byThreadKey).filter(([e])=>!w(e)).map(([e,t])=>{let n=t&&typeof t==`object`?t:null,r=Array.isArray(n?.surfaces)?n.surfaces.flatMap(e=>{let t=e.kind;if(t===`plan`||t===`agents`)return[];if(e.kind===`file`){let t=typeof e.revealLine==`number`&&Number.isFinite(e.revealLine)?Math.max(1,Math.trunc(e.revealLine)):null,n=typeof e.revealRequestId==`number`&&Number.isSafeInteger(e.revealRequestId)&&e.revealRequestId>=0?e.revealRequestId:0;return[{...e,revealLine:t,revealRequestId:n}]}if(e.kind===`pull-request`){if(typeof e.projectId!=`string`||typeof e.repository!=`string`||typeof e.number!=`number`||!Number.isSafeInteger(e.number)||e.number<1)return[];let{environmentId:t,...n}=e;return[N({...n,...typeof t==`string`?{environmentId:t}:{}})]}if(e.kind!==`terminal`)return[e];if(!(`resourceId`in e)||typeof e.resourceId!=`string`||e.id!==`terminal:${e.resourceId}`)return[];let n=`terminalIds`in e&&Array.isArray(e.terminalIds)?[...new Set(e.terminalIds.filter(e=>typeof e==`string`))]:[e.resourceId],r=`activeTerminalId`in e&&typeof e.activeTerminalId==`string`&&n.includes(e.activeTerminalId)?e.activeTerminalId:n[0]??e.resourceId;return[{...e,terminalIds:n.length>0?n:[e.resourceId],activeTerminalId:r}]}):[],i=n?.activeSurfaceId,a=r.some(e=>e.id===i)?i??null:i===`pull-request`?r.find(e=>e.kind===`pull-request`)?.id??null:null,o=r.length>0&&(typeof n?.isOpen==`boolean`?n.isOpen:a!==null);return[e,{isOpen:o,surfaces:r,activeSurfaceId:a??(o||i===`agents`?r[0]?.id??null:null),...Array.isArray(n?.dismissedDeviceSurfaceIds)?{dismissedDeviceSurfaceIds:n.dismissedDeviceSurfaceIds.filter(e=>typeof e==`string`)}:{},...n?.maximized===!0?{maximized:!0}:{}}]})):{},threadPanelVisibilityByThreadKey:`threadPanelVisibilityByThreadKey`in e&&e.threadPanelVisibilityByThreadKey&&typeof e.threadPanelVisibilityByThreadKey==`object`?Object.fromEntries(Object.entries(e.threadPanelVisibilityByThreadKey).flatMap(([e,t])=>!t||typeof t!=`object`||!(`inlineOpen`in t)?[]:t.inlineOpen===!1?[[e,{inlineOpen:!1,popoverOpen:!1}]]:[])):{}}}var U=c()(t((t,n)=>({byThreadKey:{},pendingMaximizeThreadKey:null,requestMaximize:n=>t({pendingMaximizeThreadKey:e(n)}),consumeMaximizeRequest:r=>n().pendingMaximizeThreadKey===e(r)&&(t({pendingMaximizeThreadKey:null}),!0),threadPanelVisibilityByThreadKey:{},userActionRevisionByThreadKey:{},closeRevisionByThreadKey:{},getUserActionRevision:t=>n().userActionRevisionByThreadKey[e(t)]??0,openProactive:(n,r,i)=>{let a=!1;return t(t=>{let o=e(n);return(t.userActionRevisionByThreadKey[o]??0)!==i||r.kind===`diff`&&(q(t.byThreadKey,n)===`pull-request`||q(t.byThreadKey,n)===`pull-requests`)?t:(a=!0,R(t,o,e=>P(e,r)))}),a},open:(n,r)=>t(t=>z(t,e(n),e=>r===`preview`?P(e,e.surfaces.find(e=>e.kind===`preview`)??O(null)):P(e,D(r)))),openDevice:(n,r,i=!1)=>t(t=>(i?R:z)(t,e(n),e=>{let t=`device:${encodeURIComponent(r.hostId)}:${encodeURIComponent(r.deviceId)}`;if(i&&e.dismissedDeviceSurfaceIds?.includes(t))return e;let n={id:t,kind:`device`,target:r},a=e.surfaces.find(e=>e.id===t),o=a?e.surfaces.filter(e=>e.id!==`device`):e.surfaces.map(e=>e.id===`device`?n:e);return P({...e,surfaces:o,dismissedDeviceSurfaceIds:(e.dismissedDeviceSurfaceIds??[]).filter(e=>e!==t)},a??n)})),renameDevice:(n,r,i)=>t(t=>z(t,e(n),e=>({...e,surfaces:e.surfaces.map(e=>e.id===r&&e.kind===`device`?{...e,title:i.trim()||e.target?.name||`Device`}:e)}))),openBrowser:(n,r)=>t(t=>z(t,e(n),e=>{let t=O(r),n=r?e.surfaces.filter(e=>e.id!==`browser:new`):e.surfaces;return P({...e,surfaces:n},t)})),openPullRequest:(n,r)=>t(t=>z(t,e(n),e=>{let t=N(r),n=P(e,t);return r.url?{...n,surfaces:n.surfaces.map(e=>e.id===t.id?t:e)}:n})),openFile:(n,r,i)=>t(t=>z(t,e(n),e=>{if(r===`.`)return P(e,D(`files`));let t=/^[A-Za-z]:\/+$/.test(r)?r:r.replace(/\/+$/,``)||r,n=e.surfaces.filter(e=>e.kind!==`files`),a=`file:${t}`,o=n.find(e=>e.id===a&&e.kind===`file`),s=k(t,V(i),(o?.revealRequestId??0)+1);return{...e,isOpen:!0,activeSurfaceId:s.id,surfaces:o?n.map(e=>e.id===s.id?s:e):[...n,s]}})),openAttachment:(n,r)=>t(t=>z(t,e(n),e=>{let t=e.surfaces.filter(e=>e.kind!==`files`);return P({...e,surfaces:t},A(r))})),openTerminal:(n,r)=>t(t=>z(t,e(n),e=>P(e,j(r)))),splitTerminal:(n,r,i,a=`horizontal`)=>t(t=>z(t,e(n),e=>({...e,isOpen:!0,activeSurfaceId:r,surfaces:e.surfaces.map(e=>{if(e.id!==r||e.kind!==`terminal`)return e;let{splitDirection:t,...n}=e;return{...n,terminalIds:e.terminalIds.includes(i)?e.terminalIds:[...e.terminalIds,i],activeTerminalId:i,...a===`vertical`?{splitDirection:`vertical`}:{}}})}))),activateTerminal:(n,r,i)=>t(t=>z(t,e(n),e=>({...e,activeSurfaceId:r,surfaces:e.surfaces.map(e=>e.id===r&&e.kind===`terminal`&&e.terminalIds.includes(i)?{...e,activeTerminalId:i}:e)}))),closeTerminal:(n,r,i)=>t(t=>B(t,e(n),e=>{let t=e.surfaces.find(e=>e.id===r&&e.kind===`terminal`);if(!t||t.kind!==`terminal`)return e;let n=t.terminalIds.filter(e=>e!==i);if(n.length===0){let t=e.surfaces.findIndex(e=>e.id===r),n=e.surfaces.filter(e=>e.id!==r),i=n[Math.min(t,n.length-1)]??null;return{...e,isOpen:n.length>0&&e.isOpen,surfaces:n,activeSurfaceId:e.activeSurfaceId===r?i?.id??null:e.activeSurfaceId}}return{...e,surfaces:e.surfaces.map(e=>e.id===r&&e.kind===`terminal`?{...e,terminalIds:n,activeTerminalId:e.activeTerminalId===i?n.at(-1)??n[0]:e.activeTerminalId}:e)}})),activateSurface:(n,r)=>t(t=>z(t,e(n),e=>e.surfaces.some(e=>e.id===r)?{...e,isOpen:!0,activeSurfaceId:r}:e)),closeSurface:(n,r)=>t(t=>B(t,e(n),e=>{let t=e.surfaces.findIndex(e=>e.id===r);if(t<0)return e;let n=e.surfaces.filter(e=>e.id!==r),i={...e,isOpen:n.length>0&&e.isOpen,surfaces:n};if(e.activeSurfaceId!==r)return i;let a=n[Math.min(t,n.length-1)]??null;return{...i,activeSurfaceId:a?.id??null}})),closeOtherSurfaces:(n,r)=>t(t=>B(t,e(n),e=>{let t=e.surfaces.find(e=>e.id===r);return!t||e.surfaces.length===1?e:{...e,isOpen:!0,surfaces:[t],activeSurfaceId:t.id}})),closeSurfacesToRight:(n,r)=>t(t=>B(t,e(n),e=>{let t=e.surfaces.findIndex(e=>e.id===r);if(t<0||t===e.surfaces.length-1)return e;let n=e.surfaces.slice(0,t+1),i=n.some(t=>t.id===e.activeSurfaceId);return{...e,surfaces:n,activeSurfaceId:i?e.activeSurfaceId:r}})),closeAllSurfaces:n=>t(t=>B(t,e(n),e=>e.surfaces.length===0?e:{...e,isOpen:!1,surfaces:[],activeSurfaceId:null})),moveSurface:(n,r,i)=>t(t=>L(t,e(n),e=>{let t=e.surfaces.findIndex(e=>e.id===r);if(t<0||t===i)return e;let n=[...e.surfaces];return n.splice(i,0,...n.splice(t,1)),{...e,surfaces:n}})),reconcileBrowserSurfaces:(n,r,i)=>t(t=>R(t,e(n),e=>{let t=new Set(r.map(e=>`browser:${e}`)),n=e.surfaces.filter(e=>e.kind!==`preview`||e.id!==`browser:new`&&t.has(e.id)),a=new Set(n.map(e=>e.id)),o=r.filter(e=>!a.has(`browser:${e}`)&&!i?.has(e)).map(e=>O(e)),s=[...n,...o],c=s.some(t=>t.id===e.activeSurfaceId),l=s.find(e=>e.kind===`preview`);return{...e,surfaces:s,activeSurfaceId:c?e.activeSurfaceId:l?.id??s[0]?.id??null}})),reconcileFileSurfaces:(n,r)=>t(t=>R(t,e(n),e=>{if(r)return e;let t=e.surfaces.filter(e=>e.kind!==`files`&&(e.kind!==`file`||e.attachment!==void 0));if(t.length===e.surfaces.length)return e;let n=t.some(t=>t.id===e.activeSurfaceId);return{...e,isOpen:t.length>0&&e.isOpen,surfaces:t,activeSurfaceId:n?e.activeSurfaceId:t.at(-1)?.id??null}})),show:n=>t(t=>z(t,e(n),e=>e.isOpen?e:{...e,isOpen:!0})),close:n=>t(t=>z(t,e(n),e=>e.isOpen?{...e,isOpen:!1}:e)),setMaximized:(n,r)=>t(t=>R(t,e(n),e=>{if((e.maximized??!1)===r)return e;let{maximized:t,...n}=e;return r?{...n,maximized:!0}:n})),toggleVisibility:n=>t(t=>z(t,e(n),e=>({...e,isOpen:!e.isOpen}))),toggle:(n,r)=>t(t=>z(t,e(n),e=>{let t=e.surfaces.find(t=>t.id===e.activeSurfaceId);return e.isOpen&&t?.kind===r?{...e,isOpen:!1}:r===`preview`?P(e,e.surfaces.find(e=>e.kind===`preview`)??O(null)):P(e,D(r))})),setThreadPanelOpen:(n,r,i)=>t(t=>({threadPanelVisibilityByThreadKey:I(t.threadPanelVisibilityByThreadKey,e(n),e=>{let t=r===`inline`?`inlineOpen`:`popoverOpen`;return e[t]===i?e:{...e,[t]:i}})})),toggleThreadPanel:(n,r)=>t(t=>({threadPanelVisibilityByThreadKey:I(t.threadPanelVisibilityByThreadKey,e(n),e=>r===`inline`?{...e,inlineOpen:!e.inlineOpen}:{...e,popoverOpen:!e.popoverOpen})})),removeThread:n=>t(t=>{let r=e(n);if(!(r in t.byThreadKey)&&!(r in t.threadPanelVisibilityByThreadKey)&&!(r in t.userActionRevisionByThreadKey)&&!(r in t.closeRevisionByThreadKey))return t;let{[r]:i,...a}=t.byThreadKey,{[r]:o,...s}=t.threadPanelVisibilityByThreadKey,{[r]:c,...l}=t.userActionRevisionByThreadKey,{[r]:u,...d}=t.closeRevisionByThreadKey;return{byThreadKey:a,threadPanelVisibilityByThreadKey:s,userActionRevisionByThreadKey:l,closeRevisionByThreadKey:d}})}),{name:x,version:S,storage:l(()=>i(typeof window<`u`?window.localStorage:void 0)),partialize:e=>({byThreadKey:Object.fromEntries(Object.entries(e.byThreadKey).filter(([e])=>!w(e))),threadPanelVisibilityByThreadKey:Object.fromEntries(Object.entries(e.threadPanelVisibilityByThreadKey).flatMap(([e,t])=>t.inlineOpen?[]:[[e,{inlineOpen:!1,popoverOpen:!1}]]))}),migrate:H}));U.subscribe((e,t)=>{if(e.closeRevisionByThreadKey!==t.closeRevisionByThreadKey)for(let[n,i]of Object.entries(e.closeRevisionByThreadKey)){if(i===t.closeRevisionByThreadKey[n])continue;let a=r(n);if(!a)continue;let o=t.byThreadKey[n]??T,s=e.byThreadKey[n]??T,c=o.surfaces.filter(e=>!s.surfaces.some(t=>t.id===e.id)),l=[...c.filter(e=>e.id!==o.activeSurfaceId),...c.filter(e=>e.id===o.activeSurfaceId)];for(let e of l)e.kind===`terminal`||e.kind===`preview`&&e.resourceId!==null||b.getState().remember({kind:`panel-tab`,threadRef:a,surface:e})}});function W(t,n){return n?t[e(n)]??T:T}function G(t,n){return n?t[e(n)]??E:E}function K(e,t,n){let r=G(e,t);return n===`inline`?r.inlineOpen:r.popoverOpen}function q(e,t){let n=W(e,t);return n.isOpen?n.surfaces.find(e=>e.id===n.activeSurfaceId)?.kind??null:null}function J(e,t){return W(e,t).isOpen?Y(e,t):null}function Y(e,t){let n=W(e,t);return n.surfaces.find(e=>e.id===n.activeSurfaceId)??null}export{J as a,W as c,q as i,U as l,N as n,Y as o,M as r,K as s,C as t,b as u};
2
+ //# sourceMappingURL=rightPanelStore-6LLb3GY0.js.map
@@ -0,0 +1 @@
1
+ import{Qa as e,Za as t}from"./main-D9z9rMK1.js";export{e as __iconNode,t as default};
@@ -0,0 +1 @@
1
+ import{Xa as e,Ya as t}from"./main-D9z9rMK1.js";export{e as __iconNode,t as default};