@microvac/ui 0.1.0-rc.14 → 0.1.0-rc.15

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 (280) hide show
  1. package/dist/assets/{ActiveAgentsPanel-C9AP9hJu.js → ActiveAgentsPanel-BEx06tMt.js} +1 -1
  2. package/dist/assets/{AdapterManager-CmxTUKJH.js → AdapterManager-3kEEQWFJ.js} +1 -1
  3. package/dist/assets/{AdvancedToolsRoute-CXsQnTei.js → AdvancedToolsRoute-CgS6B-oh.js} +1 -1
  4. package/dist/assets/{AgentActionButtons-DWq2OuVK.js → AgentActionButtons-Cz3jCEd7.js} +1 -1
  5. package/dist/assets/{AgentAdvancedTab-dhBDxF-H.js → AgentAdvancedTab-BG6ZIAuN.js} +1 -1
  6. package/dist/assets/{AgentBulkSettingsSheet-DYT4ovDg.js → AgentBulkSettingsSheet-BrrbvspS.js} +1 -1
  7. package/dist/assets/{AgentChat-r0TPOfPK.js → AgentChat-Dw9iXD6H.js} +1 -1
  8. package/dist/assets/{AgentDetailPage-Bc_okBuS.js → AgentDetailPage-CuVIHv_q.js} +3 -3
  9. package/dist/assets/{AgentIdentityChip-CB2NBXkZ.js → AgentIdentityChip-BrVCcuHQ.js} +1 -1
  10. package/dist/assets/{AgentRosterFilters-b7qMLv8-.js → AgentRosterFilters-GQ2bdXfW.js} +2 -2
  11. package/dist/assets/{Agents-BsvXy3pZ.js → Agents-clrVQnvc.js} +2 -2
  12. package/dist/assets/{Agents.production-BeOZmzaF.js → Agents.production-DTopo7XB.js} +2 -2
  13. package/dist/assets/{AnimatedDialogContent-CWshmxP2.js → AnimatedDialogContent-CDLfw-dJ.js} +1 -1
  14. package/dist/assets/{AppDetail-DbqENTF_.js → AppDetail-BcWBg5yW.js} +1 -1
  15. package/dist/assets/{AppNotConnected-BhnCqL0F.js → AppNotConnected-NgfyHZ4L.js} +1 -1
  16. package/dist/assets/{ApprovalDetail-B2KiYLTj.js → ApprovalDetail-Dm_1V4tC.js} +1 -1
  17. package/dist/assets/{Approvals-j-wRmqKj.js → Approvals-i5AB3JPj.js} +1 -1
  18. package/dist/assets/{AppsConnect-CcPVEZ0C.js → AppsConnect-D660Tpuo.js} +1 -1
  19. package/dist/assets/{AppsReview-B8eWvKkS.js → AppsReview-DdTqOisY.js} +1 -1
  20. package/dist/assets/{ArtifactEmptyGraphic-5mdkS5jj.js → ArtifactEmptyGraphic-DzxCruYA.js} +1 -1
  21. package/dist/assets/{Artifacts-Bz7Oo6VX.js → Artifacts-CkXBz6nh.js} +1 -1
  22. package/dist/assets/{AssigneePickerInner-DdpF7hck.js → AssigneePickerInner-BNjyABBe.js} +1 -1
  23. package/dist/assets/{AssistantConnection-BpaaJDc_.js → AssistantConnection-CNF6mDmO.js} +1 -1
  24. package/dist/assets/{AttentionInlineVerbs-DlPQVCO-.js → AttentionInlineVerbs-BiyZ1ekZ.js} +1 -1
  25. package/dist/assets/{AttentionQueueRow-BC6ezctS.js → AttentionQueueRow-Bh0dKHpF.js} +1 -1
  26. package/dist/assets/{AuditHub-BVP7LKL9.js → AuditHub-BK848cb4.js} +1 -1
  27. package/dist/assets/{AuditRuns-DqizHgX1.js → AuditRuns-CUdlbP7S.js} +1 -1
  28. package/dist/assets/{Auth-DOF0snjp.js → Auth-DDqxm5gD.js} +1 -1
  29. package/dist/assets/{BoardChat-BYAbDtfd.js → BoardChat-fvKqk0R7.js} +1 -1
  30. package/dist/assets/{BoardClaim-7y41Pr8e.js → BoardClaim-BEC5BZfz.js} +1 -1
  31. package/dist/assets/{BootstrapSetupUxLab-BftH1vOv.js → BootstrapSetupUxLab-CXzErrin.js} +1 -1
  32. package/dist/assets/{Browse-Ck01W1Yl.js → Browse-DoovSMuF.js} +1 -1
  33. package/dist/assets/{BudgetPolicyCard-CKhrzfgy.js → BudgetPolicyCard-BYMlczCq.js} +1 -1
  34. package/dist/assets/{CaseDetail-qlXKJ66D.js → CaseDetail-UMAcSH_x.js} +1 -1
  35. package/dist/assets/{CaseStatus-B3RiZVDH.js → CaseStatus-BI0aMl9l.js} +1 -1
  36. package/dist/assets/{Cases-CFV3V-5X.js → Cases-CMTkGghU.js} +1 -1
  37. package/dist/assets/{ChatEndpointDetail-7Hi5TJNt.js → ChatEndpointDetail-CocNEInH.js} +1 -1
  38. package/dist/assets/{ChatEndpointSetup-CtwgH6sg.js → ChatEndpointSetup-Cyi2tI9K.js} +1 -1
  39. package/dist/assets/{ChatIdentityConfirm-CXjksBwX.js → ChatIdentityConfirm-Ba3JuTX1.js} +1 -1
  40. package/dist/assets/{CliAuth-KVjrGMfZ.js → CliAuth-D2jnueGH.js} +1 -1
  41. package/dist/assets/{Companies-oeJem3De.js → Companies-K75I9dJs.js} +1 -1
  42. package/dist/assets/{CompanyAccess-vWT6G-n_.js → CompanyAccess-Cw6nLUhE.js} +1 -1
  43. package/dist/assets/{CompanyActivity-zOzzeN1B.js → CompanyActivity-BsgmVpWS.js} +1 -1
  44. package/dist/assets/CompanyActivity.production-w-KGxvo6.js +1 -0
  45. package/dist/assets/{CompanyConnections-llSEaVa2.js → CompanyConnections-yRPYSdm7.js} +1 -1
  46. package/dist/assets/{CompanyEnvironments-DNyyGC_S.js → CompanyEnvironments-BA7kWdOJ.js} +1 -1
  47. package/dist/assets/{CompanyExport-CFa-F8Es.js → CompanyExport-DfsK4b9c.js} +1 -1
  48. package/dist/assets/{CompanyImport-DG6qwQ8F.js → CompanyImport-DJHAsmSF.js} +1 -1
  49. package/dist/assets/{CompanySettings-Dv5Z3ZQi.js → CompanySettings-DwzHGXec.js} +1 -1
  50. package/dist/assets/{CompanySettingsPluginPage-CZk1d_0d.js → CompanySettingsPluginPage-Bpa81PF3.js} +1 -1
  51. package/dist/assets/{CompanySkills-CdzWhJfQ.js → CompanySkills-eTqgbqQN.js} +1 -1
  52. package/dist/assets/{CompanySkills.production-IoCRW5FQ.js → CompanySkills.production-CQSWfH0r.js} +1 -1
  53. package/dist/assets/{ConfigureBuiltInAgentModal-BwW7XQ1O.js → ConfigureBuiltInAgentModal-DgeD7t_i.js} +1 -1
  54. package/dist/assets/{CopyableGatewayUrl-PTn061ft.js → CopyableGatewayUrl-B6K3rOal.js} +1 -1
  55. package/dist/assets/{CordisPluginSettings-C_BeeGEc.js → CordisPluginSettings-DD3AnD2G.js} +1 -1
  56. package/dist/assets/{Costs-DhuNxwSj.js → Costs-orBM8T-a.js} +1 -1
  57. package/dist/assets/{CrossIssueCollaborationUxLab-ZaAXq46r.js → CrossIssueCollaborationUxLab-Bv9y9-NE.js} +1 -1
  58. package/dist/assets/{Dashboard-BaDnqiKo.js → Dashboard-CrSBNKX1.js} +1 -1
  59. package/dist/assets/{DashboardLive-D-Ed7osd.js → DashboardLive-Cg8C9RiS.js} +1 -1
  60. package/dist/assets/{DecisionDateChips-D3pl_mLn.js → DecisionDateChips-BLZKZH71.js} +1 -1
  61. package/dist/assets/{DecisionHistoryPanel-D5MzyrOh.js → DecisionHistoryPanel-yK-CP7Qg.js} +1 -1
  62. package/dist/assets/{DecisionQueuePage-D3UZ9oRk.js → DecisionQueuePage-BKXbERai.js} +1 -1
  63. package/dist/assets/{DesignGuide-COTo7ICj.js → DesignGuide-2FswNsXz.js} +1 -1
  64. package/dist/assets/{DesignSandboxTaskThread-CMeCSQid.js → DesignSandboxTaskThread-CGU--FXR.js} +1 -1
  65. package/dist/assets/{EmailConnectionAccess-kCL7obSr.js → EmailConnectionAccess-CZ5QRKyg.js} +1 -1
  66. package/dist/assets/{EmailEndpointSetup-BGrksR_u.js → EmailEndpointSetup-BI2vsd8Y.js} +1 -1
  67. package/dist/assets/{EnforcementBanner-_Eb_nK3M.js → EnforcementBanner-B-iX466h.js} +1 -1
  68. package/dist/assets/{EntityRow-gpsOgEtu.js → EntityRow-BsICt6pd.js} +1 -1
  69. package/dist/assets/{ExecutionWorkspaceDetail-DwGkH6d3.js → ExecutionWorkspaceDetail-CMqR9puh.js} +1 -1
  70. package/dist/assets/{ExternalAgentInviteDialog-CGid6pM9.js → ExternalAgentInviteDialog-De30ZrLP.js} +1 -1
  71. package/dist/assets/{FilterBar-1D-VhrvG.js → FilterBar-rCmsTtG4.js} +1 -1
  72. package/dist/assets/{FolderControls-CQ6kef3c.js → FolderControls-CmnB7Ap-.js} +1 -1
  73. package/dist/assets/{GatewayDetail-CCqekM1J.js → GatewayDetail-Duw9pJ10.js} +1 -1
  74. package/dist/assets/{GatewaysList-nFsRcszh.js → GatewaysList-BBhVGhRq.js} +1 -1
  75. package/dist/assets/{GitHubConnectionRecovery-B9sFWJup.js → GitHubConnectionRecovery-6VshLoNV.js} +1 -1
  76. package/dist/assets/{GoalDetail-BQ8y55P-.js → GoalDetail-CahntjlI.js} +1 -1
  77. package/dist/assets/{GoalTree-laRjXp0P.js → GoalTree-CU4GBFCh.js} +1 -1
  78. package/dist/assets/{Goals-Cm14EaeP.js → Goals-CzM2NDFR.js} +1 -1
  79. package/dist/assets/{InstanceAccess-DxQ-Akt_.js → InstanceAccess-CZzkE65W.js} +1 -1
  80. package/dist/assets/{InstanceExperimentalSettings-BxwqbXNw.js → InstanceExperimentalSettings-DWumKtOK.js} +1 -1
  81. package/dist/assets/{InviteLanding-Cf0L_u6s.js → InviteLanding-BIy2z50u.js} +1 -1
  82. package/dist/assets/{IssueChatLongThreadPerf-BfsF6FdF.js → IssueChatLongThreadPerf-D4DJvdOG.js} +1 -1
  83. package/dist/assets/{JoinRequestQueue-BXCdTFG_.js → JoinRequestQueue-C5rauGYm.js} +1 -1
  84. package/dist/assets/{Layout.production-CqzU0qMi.js → Layout.production-BSDWnupa.js} +1 -1
  85. package/dist/assets/{McpConnect-COWnZ9Eb.js → McpConnect-BN8ST0RS.js} +1 -1
  86. package/dist/assets/{MembershipAction-C9i9Sdmi.js → MembershipAction-DTjhGn-L.js} +1 -1
  87. package/dist/assets/{MetricCard-Bwnt3_p3.js → MetricCard-CeL9Pdn5.js} +1 -1
  88. package/dist/assets/{MissingPluginTabPlaceholder-B0Zxv1Kx.js → MissingPluginTabPlaceholder-CbQiSVnZ.js} +1 -1
  89. package/dist/assets/{NewAgent-BIlJ5Dyt.js → NewAgent-BszrNpQk.js} +1 -1
  90. package/dist/assets/{NewAgentDialog-CJdMxxYL.js → NewAgentDialog-U9qAcTzc.js} +1 -1
  91. package/dist/assets/{NewGoalDialog-B8izfKLm.js → NewGoalDialog-DqKbk4-i.js} +1 -1
  92. package/dist/assets/{NewProjectDialog-DXqjTYFK.js → NewProjectDialog-DrlUAF-N.js} +1 -1
  93. package/dist/assets/{OnboardingPrimitives-DHYBqn_0.js → OnboardingPrimitives-BkgPF4Mu.js} +1 -1
  94. package/dist/assets/{OnboardingWizard-DqSfZ13V.js → OnboardingWizard-CMBMcuXv.js} +1 -1
  95. package/dist/assets/{OrgChart.production-DrSFUf7i.js → OrgChart.production-BLczTjRj.js} +1 -1
  96. package/dist/assets/{PaperclipCloudOAuthHandoff-jPUvjJ8q.js → PaperclipCloudOAuthHandoff-BTtF8UPD.js} +1 -1
  97. package/dist/assets/{PluginManager-h3LFPaUq.js → PluginManager-CCcqlfgK.js} +1 -1
  98. package/dist/assets/{PluginPage-E5Im4454.js → PluginPage-B1empV69.js} +1 -1
  99. package/dist/assets/{PluginSettings-BBO0jAgo.js → PluginSettings-DtopaRqR.js} +1 -1
  100. package/dist/assets/{ProfileDetailRoute-CQBD7fms.js → ProfileDetailRoute-BqvVpBZi.js} +1 -1
  101. package/dist/assets/{ProfileSettings-BwnVEHLp.js → ProfileSettings-5__tVfGi.js} +1 -1
  102. package/dist/assets/{ProfileWizardRoute-By_SC6Gn.js → ProfileWizardRoute-vt-MRLuD.js} +1 -1
  103. package/dist/assets/{ProjectDetail-CbiwFBAE.js → ProjectDetail-DJ4zjube.js} +1 -1
  104. package/dist/assets/{ProjectRepositoryInput-DZF9bX4E.js → ProjectRepositoryInput-BJcnj3At.js} +1 -1
  105. package/dist/assets/{ProjectWorkspaceDetail-DPsl_4bD.js → ProjectWorkspaceDetail-DEAO3q6v.js} +1 -1
  106. package/dist/assets/{ProjectWorkspacesContent-COH4dOWK.js → ProjectWorkspacesContent-CZvO7p0i.js} +1 -1
  107. package/dist/assets/{Projects-Ch9Qu7sn.js → Projects-Dm7-zXUH.js} +1 -1
  108. package/dist/assets/{QuotaBar-DIFOT9Uh.js → QuotaBar-Drp3CaxX.js} +1 -1
  109. package/dist/assets/{RepositoryEditor-DHB1bqId.js → RepositoryEditor-BT_VAkJu.js} +1 -1
  110. package/dist/assets/{Responsibilities-C5O0JXXG.js → Responsibilities-DbUEtGZu.js} +1 -1
  111. package/dist/assets/{ResponsibilityDetail-D6NpZpkm.js → ResponsibilityDetail--S8_GOkb.js} +1 -1
  112. package/dist/assets/{ResponsibleUserDenialUxLab-CFrIWYwe.js → ResponsibleUserDenialUxLab-1PB3JNG0.js} +1 -1
  113. package/dist/assets/{ReviewQueueCard-BPC4Lm67.js → ReviewQueueCard-B8w9aXKU.js} +1 -1
  114. package/dist/assets/{RoutineAuditActivity-sKyzMajz.js → RoutineAuditActivity-BCo7pYe5.js} +1 -1
  115. package/dist/assets/{RoutineDetail-CG8HF5fp.js → RoutineDetail-C9Dwn5G9.js} +1 -1
  116. package/dist/assets/{RoutineRunVariablesDialog-CKh3CmLD.js → RoutineRunVariablesDialog-Baomcbe3.js} +1 -1
  117. package/dist/assets/{Routines-tF2qfUKo.js → Routines-Dkv4gJno.js} +1 -1
  118. package/dist/assets/{Routines.production-BTyj1Ljr.js → Routines.production-Cs2Y-lpt.js} +1 -1
  119. package/dist/assets/{RoutinesToolbar-CvUFVCGN.js → RoutinesToolbar-BNKfCrTo.js} +1 -1
  120. package/dist/assets/{Search-Z9D0NuS1.js → Search-CVx4cl2o.js} +1 -1
  121. package/dist/assets/{Secrets-DgmbLOJK.js → Secrets-C2qv2HKZ.js} +1 -1
  122. package/dist/assets/{SkillBinaryFile-F3_9qcaM.js → SkillBinaryFile-DDkhLlfC.js} +1 -1
  123. package/dist/assets/{SkillCardIcon-CXHUCMej.js → SkillCardIcon-Cp_hws0N.js} +1 -1
  124. package/dist/assets/{SkillFolderTree-CB3lrTIE.js → SkillFolderTree-Cv0CmfYx.js} +1 -1
  125. package/dist/assets/{SkillSourceTree-BbuciCo6.js → SkillSourceTree-DmjlUswf.js} +1 -1
  126. package/dist/assets/{SkillSources-Dlo6Cew3.js → SkillSources-nmlYypUU.js} +1 -1
  127. package/dist/assets/{SkillStudio-ZO-Nf7eI.js → SkillStudio-BK3y_3zr.js} +1 -1
  128. package/dist/assets/{SkillsNavigationTabs-B9Iqnlqt.js → SkillsNavigationTabs-DRwMP1eu.js} +1 -1
  129. package/dist/assets/{SpekoPhoneCallback-C4VnMiZh.js → SpekoPhoneCallback-Cqi7AIyH.js} +1 -1
  130. package/dist/assets/{SpekoProviderSetup-I4evPZb3.js → SpekoProviderSetup-CJI4oXk5.js} +1 -1
  131. package/dist/assets/{StatusCards-D0MVzbsw.js → StatusCards-DKyyY81S.js} +1 -1
  132. package/dist/assets/{SummarySlotCard-DUXgZPxG.js → SummarySlotCard-f3RomdZS.js} +1 -1
  133. package/dist/assets/{TailscaleConnector-CMhT73gj.js → TailscaleConnector-yQWLR1Ra.js} +1 -1
  134. package/dist/assets/{TaskChatLab-D9-KAE-7.js → TaskChatLab-Dsr7eyj4.js} +1 -1
  135. package/dist/assets/{TaskSummaryList-CUxieFNe.js → TaskSummaryList-eFDfK_QH.js} +1 -1
  136. package/dist/assets/{Timeline-BNMoRbtK.js → Timeline-BWA9dyk6.js} +1 -1
  137. package/dist/assets/{ToolsAdminGate-CEr0zy2T.js → ToolsAdminGate-DpBg30hQ.js} +1 -1
  138. package/dist/assets/{TrustPresetSection-B9YXZtkh.js → TrustPresetSection-DtWjK9Kp.js} +1 -1
  139. package/dist/assets/{UserProfile-D-tnW96X.js → UserProfile-C66UI5xx.js} +1 -1
  140. package/dist/assets/{WebhookUrlWarning-Ba_DixKh.js → WebhookUrlWarning-CDygVnDH.js} +1 -1
  141. package/dist/assets/{WhatNeedsMe-B-Jzj8_M.js → WhatNeedsMe-BQ82RHus.js} +1 -1
  142. package/dist/assets/{Workspaces-BqhDI_Bl.js → Workspaces-DrjJes30.js} +1 -1
  143. package/dist/assets/{abnfDiagram-YUKMZFIV-Bn9P-nUW.js → abnfDiagram-YUKMZFIV-Crkksu2D.js} +1 -1
  144. package/dist/assets/{architecture-WOLXFQ4H-V1ldsZlt.js → architecture-WOLXFQ4H-bHU8FW0c.js} +1 -1
  145. package/dist/assets/{architectureDiagram-47P4ROYG-BkYxt-Gc.js → architectureDiagram-47P4ROYG-Bj5Styf9.js} +1 -1
  146. package/dist/assets/{arrow-down-left-o81ENfeW.js → arrow-down-left-Ck9VQyqQ.js} +1 -1
  147. package/dist/assets/{blockDiagram-E7TT5TSB-BO7pPYbp.js → blockDiagram-E7TT5TSB-OeHpNCQ-.js} +1 -1
  148. package/dist/assets/{budgets-0Dw6TH1A.js → budgets-CAWPqcn4.js} +1 -1
  149. package/dist/assets/{building-complex-DciZTnys.js → building-complex-Dxiyk_pH.js} +1 -1
  150. package/dist/assets/{c4Diagram-CRA5TL53-D4EpmmzV.js → c4Diagram-CRA5TL53-QbK5p76P.js} +1 -1
  151. package/dist/assets/channel-BSmZkKA8.js +1 -0
  152. package/dist/assets/{chat-channels-DWyry-9M.js → chat-channels-CzTZV2fr.js} +1 -1
  153. package/dist/assets/{chunk-2BW5OAIV-DFXIyCJy.js → chunk-2BW5OAIV-Ckr4HfBO.js} +1 -1
  154. package/dist/assets/{chunk-3YJQHVM4-Dj5wEKIw.js → chunk-3YJQHVM4-C_uoPpLR.js} +1 -1
  155. package/dist/assets/{chunk-4EA7E6EY-5XiUVgzK.js → chunk-4EA7E6EY-BeMEfIRS.js} +1 -1
  156. package/dist/assets/{chunk-7TKQ45FW-D0opKcsy.js → chunk-7TKQ45FW-DiwqWHvN.js} +1 -1
  157. package/dist/assets/{chunk-AW2ZBBNX-DnjsTe04.js → chunk-AW2ZBBNX-Cf57K3PO.js} +1 -1
  158. package/dist/assets/{chunk-DBDB3WZW-DNqSQPZ0.js → chunk-DBDB3WZW-B2qouVQO.js} +1 -1
  159. package/dist/assets/{chunk-E2ZNV5FY-cjSf_BTz.js → chunk-E2ZNV5FY-DG8wQ_NS.js} +1 -1
  160. package/dist/assets/{chunk-EU5HNXII-CZYBiaSw.js → chunk-EU5HNXII-cxRrXRGV.js} +1 -1
  161. package/dist/assets/{chunk-FVRAUYC3-DSc0-wJA.js → chunk-FVRAUYC3-Dizswk0V.js} +1 -1
  162. package/dist/assets/{chunk-HJ2JQQFS-MXK0gYSP.js → chunk-HJ2JQQFS-DL4lnpSv.js} +1 -1
  163. package/dist/assets/{chunk-HTAEGDNF-BjDZm_5k.js → chunk-HTAEGDNF-Zxjdb6kj.js} +1 -1
  164. package/dist/assets/{chunk-KQW6MTUR-Bfj0tDmO.js → chunk-KQW6MTUR-BsVaJdnu.js} +1 -1
  165. package/dist/assets/{chunk-NTY3LDVX-Bpz5TkVb.js → chunk-NTY3LDVX-DyT9N5sM.js} +1 -1
  166. package/dist/assets/{chunk-VPRB5NB3-CfeHjtbb.js → chunk-VPRB5NB3-BNz5CtBn.js} +1 -1
  167. package/dist/assets/{chunk-XC4XBNZT-FBCWmi6K.js → chunk-XC4XBNZT-CCgIhjYS.js} +1 -1
  168. package/dist/assets/{circle-slash-DqKFFqfb.js → circle-slash-uNv_ha0X.js} +1 -1
  169. package/dist/assets/{classDiagram-v2-K4WV4PDN-DbC_J0kK.js → classDiagram-v2-K4WV4PDN-Cdh3CEl4.js} +1 -1
  170. package/dist/assets/{coins-BztUbqyl.js → coins-BDAh8hDQ.js} +1 -1
  171. package/dist/assets/{collections-BxrcELwt.js → collections-B58p51lw.js} +1 -1
  172. package/dist/assets/{connection-owner-D-ikSHyR.js → connection-owner-D8fNrFqC.js} +1 -1
  173. package/dist/assets/{cynefin-EF2NZ3EQ-COwSJ4qP.js → cynefin-EF2NZ3EQ-BkwhfqJ0.js} +1 -1
  174. package/dist/assets/{cynefinDiagram-3GCD6N5R-diaEJq9Y.js → cynefinDiagram-3GCD6N5R-DuGb_wq2.js} +1 -1
  175. package/dist/assets/{dagre-W4DXFKR2-BPAMRuIj.js → dagre-W4DXFKR2-Bxq_Mhia.js} +1 -1
  176. package/dist/assets/{diagram-2UJZ2QOL-BvRnO1Id.js → diagram-2UJZ2QOL-B-P_hrXV.js} +1 -1
  177. package/dist/assets/{diagram-OVF4WLC6-CDgBeD0m.js → diagram-OVF4WLC6-Ds0BqQWH.js} +1 -1
  178. package/dist/assets/{diagram-PFPMY2P6-DAw9lREG.js → diagram-PFPMY2P6-Dpqb2-Cb.js} +1 -1
  179. package/dist/assets/{diagram-UMYRVEAY-ZQqQn22t.js → diagram-UMYRVEAY-BJSoxjiu.js} +1 -1
  180. package/dist/assets/{diagram-YEKJPTXX-CoJtGgWs.js → diagram-YEKJPTXX-BxaG_9tT.js} +1 -1
  181. package/dist/assets/{diagram-ZIFT7M5P-qW_Zn_bO.js → diagram-ZIFT7M5P-6acvVOtc.js} +1 -1
  182. package/dist/assets/{dist-B2E6oBK1.js → dist-0EWXio4m.js} +1 -1
  183. package/dist/assets/{dist-IcdxEhjC.js → dist-BGvZP_Cl.js} +1 -1
  184. package/dist/assets/{dist-DXjkgaZX.js → dist-BZ7AbEhN.js} +1 -1
  185. package/dist/assets/{dist-_EtfntKJ.js → dist-BlosHr86.js} +1 -1
  186. package/dist/assets/{dist-DylHAy-6.js → dist-Bmr4uhSk.js} +1 -1
  187. package/dist/assets/{dist-DML0cJH3.js → dist-C6yMfMNS.js} +1 -1
  188. package/dist/assets/{dist-Dl94YqeS.js → dist-CMZQedYl.js} +1 -1
  189. package/dist/assets/{dist-DKyBHaH2.js → dist-C_N_-eaT.js} +1 -1
  190. package/dist/assets/{dist-CvRpZH53.js → dist-CaUbG4Hl.js} +1 -1
  191. package/dist/assets/{dist-ptDa9fKh.js → dist-Cn7-nxjU.js} +1 -1
  192. package/dist/assets/{dist-CG-phytt.js → dist-Cnj95_pX.js} +1 -1
  193. package/dist/assets/{dist-DbXGl-wj.js → dist-D9DR7k9k.js} +1 -1
  194. package/dist/assets/{dist-CjRqeLFz.js → dist-DIwsVdS2.js} +1 -1
  195. package/dist/assets/{dist-BCJybC91.js → dist-DVE0lLId.js} +1 -1
  196. package/dist/assets/{dist-CPgRB-NQ.js → dist-DkAPL4CQ.js} +1 -1
  197. package/dist/assets/{dist-CeSzCyeG.js → dist-Dl6N3kpQ.js} +1 -1
  198. package/dist/assets/{dist-DZruZxAk.js → dist-DmBvXBzK.js} +1 -1
  199. package/dist/assets/{dist-CdmdXwCZ.js → dist-DpgXK0aZ.js} +1 -1
  200. package/dist/assets/{dist-CYRzGbSY.js → dist-gMRyU9GJ.js} +1 -1
  201. package/dist/assets/{dist-CG6fC1Db.js → dist-jQQX2kOU.js} +1 -1
  202. package/dist/assets/{dist-DZIxMHOT.js → dist-lUaUoFTq.js} +1 -1
  203. package/dist/assets/{dist-CuwPDbnL.js → dist-qw1ZF2vD.js} +1 -1
  204. package/dist/assets/{dist-B6Qde8KJ.js → dist-rH4qrNAn.js} +1 -1
  205. package/dist/assets/{ebnfDiagram-VR2GEFS7-DA4UvKXV.js → ebnfDiagram-VR2GEFS7-Ytj3Z5qC.js} +1 -1
  206. package/dist/assets/{elk-IJKZMXRS-CM74d3mJ.js → elk-IJKZMXRS-CJurNqqK.js} +1 -1
  207. package/dist/assets/{erDiagram-O2IAPWRE-d869V0qL.js → erDiagram-O2IAPWRE-hyXckW2d.js} +1 -1
  208. package/dist/assets/{eventmodeling-K75KTNOO-C-oz_eyI.js → eventmodeling-K75KTNOO-D3xQujrh.js} +1 -1
  209. package/dist/assets/flowDiagram-OXPTDLAJ-D4ojBTuY.js +1 -0
  210. package/dist/assets/{folder-plus-CxWXoYCi.js → folder-plus-BJZSMzuj.js} +1 -1
  211. package/dist/assets/{ganttDiagram-R7TSEDQI-BBul4Kpm.js → ganttDiagram-R7TSEDQI-C8U_ITl4.js} +1 -1
  212. package/dist/assets/{gitGraph-VSP46ZUC-BriEZgAq.js → gitGraph-VSP46ZUC-CDeq3yKT.js} +1 -1
  213. package/dist/assets/{gitGraphDiagram-XJZIOB7I-I12rg8s1.js → gitGraphDiagram-XJZIOB7I-CST3EWE9.js} +1 -1
  214. package/dist/assets/{goals-CvMWzjH4.js → goals-BNJZ4nzg.js} +1 -1
  215. package/dist/assets/{index-Bt31d8ga.js → index-BJtnP7H1.js} +8 -8
  216. package/dist/assets/{info-OHQRW6UA-CxrcGiem.js → info-OHQRW6UA-CPvTWk7J.js} +1 -1
  217. package/dist/assets/{infoDiagram-5W2HQ5XZ-4Sm0LiOu.js → infoDiagram-5W2HQ5XZ-BPUiNdxI.js} +1 -1
  218. package/dist/assets/{ishikawaDiagram-K3B6WC7H-CKXvKV-s.js → ishikawaDiagram-K3B6WC7H-D5Z3rmaA.js} +1 -1
  219. package/dist/assets/{issue-detail-4PCbYpdv.js → issue-detail-CZfjXs0M.js} +3 -3
  220. package/dist/assets/{journeyDiagram-COXZFDF6-BHsrZLvQ.js → journeyDiagram-COXZFDF6-CEkwEYdR.js} +1 -1
  221. package/dist/assets/{kanban-definition-P3RFRI5V-8HhnIs_l.js → kanban-definition-P3RFRI5V-8h_R6Qjq.js} +1 -1
  222. package/dist/assets/{line-rrKrpB-b.js → line-Ljt_vfsb.js} +1 -1
  223. package/dist/assets/{link-BecLzmfo.js → link-DvgFK0mz.js} +1 -1
  224. package/dist/assets/{list-filter-BC3D4IoX.js → list-filter-BR4_dvwm.js} +1 -1
  225. package/dist/assets/{log-in-BJCGwGGT.js → log-in-Dvx9-FMC.js} +1 -1
  226. package/dist/assets/{mcpSkills-DRs3pGKn.js → mcpSkills-76szK_k1.js} +1 -1
  227. package/dist/assets/{mermaid-parser.core-DmG0b4S0.js → mermaid-parser.core-BjFu937m.js} +3 -3
  228. package/dist/assets/{mermaid.core-D1vILTuF.js → mermaid.core-B0t95EIS.js} +4 -4
  229. package/dist/assets/{mindmap-definition-LZFPQGKD-DIMpL0de.js → mindmap-definition-LZFPQGKD-TVnHYUR4.js} +1 -1
  230. package/dist/assets/{packet-JDAUHWVQ-BnbYht3G.js → packet-JDAUHWVQ-aNGiRWLy.js} +1 -1
  231. package/dist/assets/{pegDiagram-BGZESJAR-BUjtJVjT.js → pegDiagram-BGZESJAR-DDadxqWQ.js} +1 -1
  232. package/dist/assets/{pie-XZMESJXO-CM4VXUb-.js → pie-XZMESJXO-CydFP1hd.js} +1 -1
  233. package/dist/assets/{pieDiagram-CAPJLFHJ-B3v8ryvG.js → pieDiagram-CAPJLFHJ-KhdUDwDS.js} +1 -1
  234. package/dist/assets/{power-0mw59G-l.js → power-sYV-WuqQ.js} +1 -1
  235. package/dist/assets/{profile-summary-B5rPf8v-.js → profile-summary-D4LPX-Dv.js} +1 -1
  236. package/dist/assets/{quadrantDiagram-GDMTTRAM-Cv-dS2Rn.js → quadrantDiagram-GDMTTRAM-B1X8K2Fs.js} +1 -1
  237. package/dist/assets/{radar-ABXABTNO-v6yZj4Fk.js → radar-ABXABTNO-BqodkLpx.js} +1 -1
  238. package/dist/assets/{railroad-I3PHUGI6-D-U8Cs0m.js → railroad-I3PHUGI6-HmRKXDJj.js} +1 -1
  239. package/dist/assets/{railroad-abnf-LNEFI6M7-Dw3fkrVy.js → railroad-abnf-LNEFI6M7-CkBttaHp.js} +1 -1
  240. package/dist/assets/{railroad-ebnf-DWYD2UWJ-_ln-e3Tx.js → railroad-ebnf-DWYD2UWJ-C6DBawFA.js} +1 -1
  241. package/dist/assets/{railroad-peg-JR7BVNR7-Bf8u1-RZ.js → railroad-peg-JR7BVNR7-Z9df3u5o.js} +1 -1
  242. package/dist/assets/{railroadDiagram-SM67HX2B-Drr5UhQI.js → railroadDiagram-SM67HX2B-2vDUUppL.js} +1 -1
  243. package/dist/assets/{requirementDiagram-X7JNWC4A-D5ef6_ac.js → requirementDiagram-X7JNWC4A-DAuP39Hc.js} +1 -1
  244. package/dist/assets/{sankeyDiagram-UM26HJRW-DncJWIz_.js → sankeyDiagram-UM26HJRW-ByS54QZK.js} +1 -1
  245. package/dist/assets/{saved-permissions-CizWg8-P.js → saved-permissions-CPiYtxkZ.js} +1 -1
  246. package/dist/assets/{scroll-text-Ck6HB7eM.js → scroll-text-CVSt6aO2.js} +1 -1
  247. package/dist/assets/{sdk-CWyUlmcn.js → sdk-vrG4HtB4.js} +1 -1
  248. package/dist/assets/{search-DkTqg7ab.js → search-CG-QtPVH.js} +1 -1
  249. package/dist/assets/{send-CYVi50sh.js → send-CH-0xdLm.js} +1 -1
  250. package/dist/assets/{sequenceDiagram-ZO4K6R2Y-Cs0nGCCg.js → sequenceDiagram-ZO4K6R2Y-DvWxKTLK.js} +1 -1
  251. package/dist/assets/{shared-CIwISWMj.js → shared-D37zfckm.js} +1 -1
  252. package/dist/assets/{smoke-lab-matrix-A7ubFpfk.js → smoke-lab-matrix-C5gR81E3.js} +1 -1
  253. package/dist/assets/{stateDiagram-v2-TBUQTH76-Dpp3m5Wq.js → stateDiagram-v2-TBUQTH76-DtiiZIXq.js} +1 -1
  254. package/dist/assets/{swimlanes-N4OXWK64-NXVbx1w8.js → swimlanes-N4OXWK64-BWSEtCbX.js} +1 -1
  255. package/dist/assets/swimlanesDiagram-K3J5GTZL-Bl_9DvHU.js +8 -0
  256. package/dist/assets/{timeline-definition-YOQAKGHF-DqI-Mv2e.js → timeline-definition-YOQAKGHF-U4QcniMh.js} +1 -1
  257. package/dist/assets/{treeView-D4JQ5SDB-CZBlE7ya.js → treeView-D4JQ5SDB-B2tdrtsj.js} +1 -1
  258. package/dist/assets/{treemap-SAJKECNS-BlueznID.js → treemap-SAJKECNS-DodN8j4n.js} +1 -1
  259. package/dist/assets/{useAgentlessOnboardingAutoOpen-CnFwEQ-H.js → useAgentlessOnboardingAutoOpen-DSWW7Juw.js} +1 -1
  260. package/dist/assets/{useAuthorizationWindow-DnFQsiFj.js → useAuthorizationWindow-tg3aKEU7.js} +1 -1
  261. package/dist/assets/{useDateRange-9EbqkWXy.js → useDateRange-CnZQr2KO.js} +1 -1
  262. package/dist/assets/{useFastResponsesEnabled-D8dunm4j.js → useFastResponsesEnabled-B8tHSJ1y.js} +1 -1
  263. package/dist/assets/{usePageView-BiX5i8ck.js → usePageView-CtFMs34g.js} +1 -1
  264. package/dist/assets/{useProfilesData-0VYQ4lAT.js → useProfilesData-CWHdMSuL.js} +1 -1
  265. package/dist/assets/{useReviewCount-WBWxwKI3.js → useReviewCount-W_bCZ2Hz.js} +1 -1
  266. package/dist/assets/{useRoutineFormOptions-DnX5DBn1.js → useRoutineFormOptions-CCLMmVSF.js} +1 -1
  267. package/dist/assets/{useSummaryDraftStream-DPQRvaXT.js → useSummaryDraftStream-NVNYNt72.js} +1 -1
  268. package/dist/assets/{useTailscaleConnections-BDff6dWx.js → useTailscaleConnections-Dy52nCY3.js} +1 -1
  269. package/dist/assets/{usecaseDiagram-VIAY4XPW-BSDn8OaJ.js → usecaseDiagram-VIAY4XPW-kEHhqgOj.js} +1 -1
  270. package/dist/assets/{vennDiagram-BLWOH2XV-BBSA9KNN.js → vennDiagram-BLWOH2XV-NPJU0aCU.js} +1 -1
  271. package/dist/assets/{wardley-7MLQ67FV-CsT-rTZ9.js → wardley-7MLQ67FV-bUGKvIPT.js} +1 -1
  272. package/dist/assets/{wardleyDiagram-YMQ3BMBF-BLClsIjw.js → wardleyDiagram-YMQ3BMBF-qtUDHfhb.js} +1 -1
  273. package/dist/assets/{xychartDiagram-TAQBALBS-2x4wB0gq.js → xychartDiagram-TAQBALBS-C-z57aZj.js} +1 -1
  274. package/dist/index.html +4 -4
  275. package/dist/sw.js +1 -1
  276. package/package.json +1 -1
  277. package/dist/assets/CompanyActivity.production-DbaFBsM0.js +0 -1
  278. package/dist/assets/channel-BQh2vFIU.js +0 -1
  279. package/dist/assets/flowDiagram-OXPTDLAJ-Be1xLbJu.js +0 -1
  280. package/dist/assets/swimlanesDiagram-K3J5GTZL-Ct3LnXZt.js +0 -8
@@ -1,4 +1,4 @@
1
- var Ae=Object.defineProperty;var x=(t,l)=>Ae(t,"name",{value:l,configurable:!0});import{n as r}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as mt,p as vt}from"./src-DYjgETqR.js";import{C as ne,E as ke,H as Fe,U as Pe,_ as ve,a as Ce,b as Et,c as Le,f as V,q as Ee,v as De,z as ze}from"./chunk-VPRB5NB3-CfeHjtbb.js";import{t as ae}from"./linear-BRQgexd0.js";var Ct=(function(){var t=r(function(s,c,S,u){for(S=S||{},u=s.length;u--;S[s[u]]=c);return S},"o"),l=[1,3],m=[1,4],g=[1,5],o=[1,6],d=[1,7],_=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],h=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],n=[55,56,57],w=[2,36],q=[1,37],b=[1,36],y=[1,38],T=[1,35],p=[1,43],A=[1,41],k=[1,45],dt=[1,14],ut=[1,23],xt=[1,18],ot=[1,19],ht=[1,20],e=[1,21],Dt=[1,22],zt=[1,24],Vt=[1,25],It=[1,26],wt=[1,27],Bt=[1,28],Rt=[1,29],O=[1,32],H=[1,33],P=[1,34],v=[1,39],C=[1,40],L=[1,42],E=[1,44],M=[1,63],Y=[1,62],D=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],Nt=[1,66],Wt=[1,67],Ut=[1,68],Qt=[1,69],Ot=[1,70],Ht=[1,71],Xt=[1,72],Mt=[1,73],Yt=[1,74],jt=[1,75],Gt=[1,76],Kt=[1,77],N=[4,5,6,7,8,9,10,11,12,13,14,15,18],Z=[1,91],J=[1,92],$=[1,93],tt=[1,100],et=[1,94],it=[1,97],at=[1,95],nt=[1,96],st=[1,98],rt=[1,99],bt=[1,103],Zt=[10,55,56,57],W=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],St={trace:r(x(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:r(x(function(c,S,u,f,F,i,ct){var a=i.length-1;switch(F){case 23:this.$=i[a];break;case 24:this.$=i[a-1]+""+i[a];break;case 26:this.$=i[a-1]+i[a];break;case 27:this.$=[i[a].trim()];break;case 28:i[a-2].push(i[a].trim()),this.$=i[a-2];break;case 29:this.$=i[a-4],f.addClass(i[a-2],i[a]);break;case 37:this.$=[];break;case 42:this.$=i[a].trim(),f.setDiagramTitle(this.$);break;case 43:this.$=i[a].trim(),f.setAccTitle(this.$);break;case 44:case 45:this.$=i[a].trim(),f.setAccDescription(this.$);break;case 46:f.addSection(i[a].substr(8)),this.$=i[a].substr(8);break;case 47:f.addPoint(i[a-3],"",i[a-1],i[a],[]);break;case 48:f.addPoint(i[a-4],i[a-3],i[a-1],i[a],[]);break;case 49:f.addPoint(i[a-4],"",i[a-2],i[a-1],i[a]);break;case 50:f.addPoint(i[a-5],i[a-4],i[a-2],i[a-1],i[a]);break;case 51:f.setXAxisLeftText(i[a-2]),f.setXAxisRightText(i[a]);break;case 52:i[a-1].text+=" ⟶ ",f.setXAxisLeftText(i[a-1]);break;case 53:f.setXAxisLeftText(i[a]);break;case 54:f.setYAxisBottomText(i[a-2]),f.setYAxisTopText(i[a]);break;case 55:i[a-1].text+=" ⟶ ",f.setYAxisBottomText(i[a-1]);break;case 56:f.setYAxisBottomText(i[a]);break;case 57:f.setQuadrant1Text(i[a]);break;case 58:f.setQuadrant2Text(i[a]);break;case 59:f.setQuadrant3Text(i[a]);break;case 60:f.setQuadrant4Text(i[a]);break;case 64:this.$={text:i[a],type:"text"};break;case 65:this.$={text:i[a-1].text+""+i[a],type:i[a-1].type};break;case 66:this.$={text:i[a],type:"text"};break;case 67:this.$={text:i[a],type:"markdown"};break;case 68:this.$=i[a];break;case 69:this.$=i[a-1]+""+i[a]}},"anonymous"),"anonymous"),table:[{18:l,26:1,27:2,28:m,55:g,56:o,57:d},{1:[3]},{18:l,26:8,27:2,28:m,55:g,56:o,57:d},{18:l,26:9,27:2,28:m,55:g,56:o,57:d},t(_,[2,33],{29:10}),t(h,[2,61]),t(h,[2,62]),t(h,[2,63]),{1:[2,30]},{1:[2,31]},t(n,w,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:q,5:b,10:y,12:T,13:p,14:A,15:k,18:dt,25:ut,35:xt,37:ot,39:ht,41:e,42:Dt,48:zt,50:Vt,51:It,52:wt,53:Bt,54:Rt,60:O,61:H,63:P,64:v,65:C,66:L,67:E}),t(_,[2,34]),{27:46,55:g,56:o,57:d},t(n,[2,37]),t(n,w,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:q,5:b,10:y,12:T,13:p,14:A,15:k,18:dt,25:ut,35:xt,37:ot,39:ht,41:e,42:Dt,48:zt,50:Vt,51:It,52:wt,53:Bt,54:Rt,60:O,61:H,63:P,64:v,65:C,66:L,67:E}),t(n,[2,39]),t(n,[2,40]),t(n,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(n,[2,45]),t(n,[2,46]),{18:[1,51]},{4:q,5:b,10:y,12:T,13:p,14:A,15:k,43:52,58:31,60:O,61:H,63:P,64:v,65:C,66:L,67:E},{4:q,5:b,10:y,12:T,13:p,14:A,15:k,43:53,58:31,60:O,61:H,63:P,64:v,65:C,66:L,67:E},{4:q,5:b,10:y,12:T,13:p,14:A,15:k,43:54,58:31,60:O,61:H,63:P,64:v,65:C,66:L,67:E},{4:q,5:b,10:y,12:T,13:p,14:A,15:k,43:55,58:31,60:O,61:H,63:P,64:v,65:C,66:L,67:E},{4:q,5:b,10:y,12:T,13:p,14:A,15:k,43:56,58:31,60:O,61:H,63:P,64:v,65:C,66:L,67:E},{4:q,5:b,10:y,12:T,13:p,14:A,15:k,43:57,58:31,60:O,61:H,63:P,64:v,65:C,66:L,67:E},{4:q,5:b,8:M,10:y,12:T,13:p,14:A,15:k,18:Y,44:[1,58],47:[1,59],58:61,59:60,63:P,64:v,65:C,66:L,67:E},t(D,[2,64]),t(D,[2,66]),t(D,[2,67]),t(D,[2,70]),t(D,[2,71]),t(D,[2,72]),t(D,[2,73]),t(D,[2,74]),t(D,[2,75]),t(D,[2,76]),t(D,[2,77]),t(D,[2,78]),t(D,[2,79]),t(D,[2,80]),t(D,[2,81]),t(_,[2,35]),t(n,[2,38]),t(n,[2,42]),t(n,[2,43]),t(n,[2,44]),{3:65,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Ht,10:Xt,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,21:64},t(n,[2,53],{59:60,58:61,4:q,5:b,8:M,10:y,12:T,13:p,14:A,15:k,18:Y,49:[1,78],63:P,64:v,65:C,66:L,67:E}),t(n,[2,56],{59:60,58:61,4:q,5:b,8:M,10:y,12:T,13:p,14:A,15:k,18:Y,49:[1,79],63:P,64:v,65:C,66:L,67:E}),t(n,[2,57],{59:60,58:61,4:q,5:b,8:M,10:y,12:T,13:p,14:A,15:k,18:Y,63:P,64:v,65:C,66:L,67:E}),t(n,[2,58],{59:60,58:61,4:q,5:b,8:M,10:y,12:T,13:p,14:A,15:k,18:Y,63:P,64:v,65:C,66:L,67:E}),t(n,[2,59],{59:60,58:61,4:q,5:b,8:M,10:y,12:T,13:p,14:A,15:k,18:Y,63:P,64:v,65:C,66:L,67:E}),t(n,[2,60],{59:60,58:61,4:q,5:b,8:M,10:y,12:T,13:p,14:A,15:k,18:Y,63:P,64:v,65:C,66:L,67:E}),{45:[1,80]},{44:[1,81]},t(D,[2,65]),t(D,[2,82]),t(D,[2,83]),t(D,[2,84]),{3:83,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Ht,10:Xt,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,18:[1,82]},t(N,[2,23]),t(N,[2,1]),t(N,[2,2]),t(N,[2,3]),t(N,[2,4]),t(N,[2,5]),t(N,[2,6]),t(N,[2,7]),t(N,[2,8]),t(N,[2,9]),t(N,[2,10]),t(N,[2,11]),t(N,[2,12]),t(n,[2,52],{58:31,43:84,4:q,5:b,10:y,12:T,13:p,14:A,15:k,60:O,61:H,63:P,64:v,65:C,66:L,67:E}),t(n,[2,55],{58:31,43:85,4:q,5:b,10:y,12:T,13:p,14:A,15:k,60:O,61:H,63:P,64:v,65:C,66:L,67:E}),{46:[1,86]},{45:[1,87]},{4:Z,5:J,6:$,8:tt,11:et,13:it,16:90,17:at,18:nt,19:st,20:rt,22:89,23:88},t(N,[2,24]),t(n,[2,51],{59:60,58:61,4:q,5:b,8:M,10:y,12:T,13:p,14:A,15:k,18:Y,63:P,64:v,65:C,66:L,67:E}),t(n,[2,54],{59:60,58:61,4:q,5:b,8:M,10:y,12:T,13:p,14:A,15:k,18:Y,63:P,64:v,65:C,66:L,67:E}),t(n,[2,47],{22:89,16:90,23:101,4:Z,5:J,6:$,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt}),{46:[1,102]},t(n,[2,29],{10:bt}),t(Zt,[2,27],{16:104,4:Z,5:J,6:$,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt}),t(W,[2,25]),t(W,[2,13]),t(W,[2,14]),t(W,[2,15]),t(W,[2,16]),t(W,[2,17]),t(W,[2,18]),t(W,[2,19]),t(W,[2,20]),t(W,[2,21]),t(W,[2,22]),t(n,[2,49],{10:bt}),t(n,[2,48],{22:89,16:90,23:105,4:Z,5:J,6:$,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt}),{4:Z,5:J,6:$,8:tt,11:et,13:it,16:90,17:at,18:nt,19:st,20:rt,22:106},t(W,[2,26]),t(n,[2,50],{10:bt}),t(Zt,[2,28],{16:104,4:Z,5:J,6:$,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt})],defaultActions:{8:[2,30],9:[2,31]},parseError:r(x(function(c,S){if(S.recoverable)this.trace(c);else{var u=new Error(c);throw u.hash=S,u}},"parseError"),"parseError"),parse:r(x(function(c){var S=this,u=[0],f=[],F=[null],i=[],ct=this.table,a="",gt=0,Jt=0,$t=0,qe=2,te=1,be=i.slice.call(arguments,1),z=Object.create(this.lexer),G={yy:{}};for(var _t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_t)&&(G.yy[_t]=this.yy[_t]);z.setInput(c,G.yy),G.yy.lexer=z,G.yy.parser=this,typeof z.yylloc>"u"&&(z.yylloc={});var At=z.yylloc;i.push(At);var Se=z.options&&z.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(Q){u.length=u.length-2*Q,F.length=F.length-Q,i.length=i.length-Q}x(_e,"popStack"),r(_e,"popStack");function ee(){var Q=f.pop()||z.lex()||te;return typeof Q!="number"&&(Q instanceof Array&&(f=Q,Q=f.pop()),Q=S.symbols_[Q]||Q),Q}x(ee,"lex"),r(ee,"lex");for(var B,kt,K,U,Ft,lt={},pt,j,ie,yt;;){if(K=u[u.length-1],this.defaultActions[K]?U=this.defaultActions[K]:((B===null||typeof B>"u")&&(B=ee()),U=ct[K]&&ct[K][B]),typeof U>"u"||!U.length||!U[0]){var Pt="";yt=[];for(pt in ct[K])this.terminals_[pt]&&pt>qe&&yt.push("'"+this.terminals_[pt]+"'");z.showPosition?Pt="Parse error on line "+(gt+1)+`:
1
+ var Ae=Object.defineProperty;var x=(t,l)=>Ae(t,"name",{value:l,configurable:!0});import{n as r}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as mt,p as vt}from"./src-DYjgETqR.js";import{C as ne,E as ke,H as Fe,U as Pe,_ as ve,a as Ce,b as Et,c as Le,f as V,q as Ee,v as De,z as ze}from"./chunk-VPRB5NB3-BNz5CtBn.js";import{t as ae}from"./linear-BRQgexd0.js";var Ct=(function(){var t=r(function(s,c,S,u){for(S=S||{},u=s.length;u--;S[s[u]]=c);return S},"o"),l=[1,3],m=[1,4],g=[1,5],o=[1,6],d=[1,7],_=[1,4,5,10,12,13,14,15,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],h=[1,4,5,10,12,13,14,15,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],n=[55,56,57],w=[2,36],q=[1,37],b=[1,36],y=[1,38],T=[1,35],p=[1,43],A=[1,41],k=[1,45],dt=[1,14],ut=[1,23],xt=[1,18],ot=[1,19],ht=[1,20],e=[1,21],Dt=[1,22],zt=[1,24],Vt=[1,25],It=[1,26],wt=[1,27],Bt=[1,28],Rt=[1,29],O=[1,32],H=[1,33],P=[1,34],v=[1,39],C=[1,40],L=[1,42],E=[1,44],M=[1,63],Y=[1,62],D=[4,5,8,10,12,13,14,15,18,44,47,49,55,56,57,63,64,65,66,67],Nt=[1,66],Wt=[1,67],Ut=[1,68],Qt=[1,69],Ot=[1,70],Ht=[1,71],Xt=[1,72],Mt=[1,73],Yt=[1,74],jt=[1,75],Gt=[1,76],Kt=[1,77],N=[4,5,6,7,8,9,10,11,12,13,14,15,18],Z=[1,91],J=[1,92],$=[1,93],tt=[1,100],et=[1,94],it=[1,97],at=[1,95],nt=[1,96],st=[1,98],rt=[1,99],bt=[1,103],Zt=[10,55,56,57],W=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],St={trace:r(x(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:r(x(function(c,S,u,f,F,i,ct){var a=i.length-1;switch(F){case 23:this.$=i[a];break;case 24:this.$=i[a-1]+""+i[a];break;case 26:this.$=i[a-1]+i[a];break;case 27:this.$=[i[a].trim()];break;case 28:i[a-2].push(i[a].trim()),this.$=i[a-2];break;case 29:this.$=i[a-4],f.addClass(i[a-2],i[a]);break;case 37:this.$=[];break;case 42:this.$=i[a].trim(),f.setDiagramTitle(this.$);break;case 43:this.$=i[a].trim(),f.setAccTitle(this.$);break;case 44:case 45:this.$=i[a].trim(),f.setAccDescription(this.$);break;case 46:f.addSection(i[a].substr(8)),this.$=i[a].substr(8);break;case 47:f.addPoint(i[a-3],"",i[a-1],i[a],[]);break;case 48:f.addPoint(i[a-4],i[a-3],i[a-1],i[a],[]);break;case 49:f.addPoint(i[a-4],"",i[a-2],i[a-1],i[a]);break;case 50:f.addPoint(i[a-5],i[a-4],i[a-2],i[a-1],i[a]);break;case 51:f.setXAxisLeftText(i[a-2]),f.setXAxisRightText(i[a]);break;case 52:i[a-1].text+=" ⟶ ",f.setXAxisLeftText(i[a-1]);break;case 53:f.setXAxisLeftText(i[a]);break;case 54:f.setYAxisBottomText(i[a-2]),f.setYAxisTopText(i[a]);break;case 55:i[a-1].text+=" ⟶ ",f.setYAxisBottomText(i[a-1]);break;case 56:f.setYAxisBottomText(i[a]);break;case 57:f.setQuadrant1Text(i[a]);break;case 58:f.setQuadrant2Text(i[a]);break;case 59:f.setQuadrant3Text(i[a]);break;case 60:f.setQuadrant4Text(i[a]);break;case 64:this.$={text:i[a],type:"text"};break;case 65:this.$={text:i[a-1].text+""+i[a],type:i[a-1].type};break;case 66:this.$={text:i[a],type:"text"};break;case 67:this.$={text:i[a],type:"markdown"};break;case 68:this.$=i[a];break;case 69:this.$=i[a-1]+""+i[a]}},"anonymous"),"anonymous"),table:[{18:l,26:1,27:2,28:m,55:g,56:o,57:d},{1:[3]},{18:l,26:8,27:2,28:m,55:g,56:o,57:d},{18:l,26:9,27:2,28:m,55:g,56:o,57:d},t(_,[2,33],{29:10}),t(h,[2,61]),t(h,[2,62]),t(h,[2,63]),{1:[2,30]},{1:[2,31]},t(n,w,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:q,5:b,10:y,12:T,13:p,14:A,15:k,18:dt,25:ut,35:xt,37:ot,39:ht,41:e,42:Dt,48:zt,50:Vt,51:It,52:wt,53:Bt,54:Rt,60:O,61:H,63:P,64:v,65:C,66:L,67:E}),t(_,[2,34]),{27:46,55:g,56:o,57:d},t(n,[2,37]),t(n,w,{24:13,32:15,33:16,34:17,43:30,58:31,31:47,4:q,5:b,10:y,12:T,13:p,14:A,15:k,18:dt,25:ut,35:xt,37:ot,39:ht,41:e,42:Dt,48:zt,50:Vt,51:It,52:wt,53:Bt,54:Rt,60:O,61:H,63:P,64:v,65:C,66:L,67:E}),t(n,[2,39]),t(n,[2,40]),t(n,[2,41]),{36:[1,48]},{38:[1,49]},{40:[1,50]},t(n,[2,45]),t(n,[2,46]),{18:[1,51]},{4:q,5:b,10:y,12:T,13:p,14:A,15:k,43:52,58:31,60:O,61:H,63:P,64:v,65:C,66:L,67:E},{4:q,5:b,10:y,12:T,13:p,14:A,15:k,43:53,58:31,60:O,61:H,63:P,64:v,65:C,66:L,67:E},{4:q,5:b,10:y,12:T,13:p,14:A,15:k,43:54,58:31,60:O,61:H,63:P,64:v,65:C,66:L,67:E},{4:q,5:b,10:y,12:T,13:p,14:A,15:k,43:55,58:31,60:O,61:H,63:P,64:v,65:C,66:L,67:E},{4:q,5:b,10:y,12:T,13:p,14:A,15:k,43:56,58:31,60:O,61:H,63:P,64:v,65:C,66:L,67:E},{4:q,5:b,10:y,12:T,13:p,14:A,15:k,43:57,58:31,60:O,61:H,63:P,64:v,65:C,66:L,67:E},{4:q,5:b,8:M,10:y,12:T,13:p,14:A,15:k,18:Y,44:[1,58],47:[1,59],58:61,59:60,63:P,64:v,65:C,66:L,67:E},t(D,[2,64]),t(D,[2,66]),t(D,[2,67]),t(D,[2,70]),t(D,[2,71]),t(D,[2,72]),t(D,[2,73]),t(D,[2,74]),t(D,[2,75]),t(D,[2,76]),t(D,[2,77]),t(D,[2,78]),t(D,[2,79]),t(D,[2,80]),t(D,[2,81]),t(_,[2,35]),t(n,[2,38]),t(n,[2,42]),t(n,[2,43]),t(n,[2,44]),{3:65,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Ht,10:Xt,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,21:64},t(n,[2,53],{59:60,58:61,4:q,5:b,8:M,10:y,12:T,13:p,14:A,15:k,18:Y,49:[1,78],63:P,64:v,65:C,66:L,67:E}),t(n,[2,56],{59:60,58:61,4:q,5:b,8:M,10:y,12:T,13:p,14:A,15:k,18:Y,49:[1,79],63:P,64:v,65:C,66:L,67:E}),t(n,[2,57],{59:60,58:61,4:q,5:b,8:M,10:y,12:T,13:p,14:A,15:k,18:Y,63:P,64:v,65:C,66:L,67:E}),t(n,[2,58],{59:60,58:61,4:q,5:b,8:M,10:y,12:T,13:p,14:A,15:k,18:Y,63:P,64:v,65:C,66:L,67:E}),t(n,[2,59],{59:60,58:61,4:q,5:b,8:M,10:y,12:T,13:p,14:A,15:k,18:Y,63:P,64:v,65:C,66:L,67:E}),t(n,[2,60],{59:60,58:61,4:q,5:b,8:M,10:y,12:T,13:p,14:A,15:k,18:Y,63:P,64:v,65:C,66:L,67:E}),{45:[1,80]},{44:[1,81]},t(D,[2,65]),t(D,[2,82]),t(D,[2,83]),t(D,[2,84]),{3:83,4:Nt,5:Wt,6:Ut,7:Qt,8:Ot,9:Ht,10:Xt,11:Mt,12:Yt,13:jt,14:Gt,15:Kt,18:[1,82]},t(N,[2,23]),t(N,[2,1]),t(N,[2,2]),t(N,[2,3]),t(N,[2,4]),t(N,[2,5]),t(N,[2,6]),t(N,[2,7]),t(N,[2,8]),t(N,[2,9]),t(N,[2,10]),t(N,[2,11]),t(N,[2,12]),t(n,[2,52],{58:31,43:84,4:q,5:b,10:y,12:T,13:p,14:A,15:k,60:O,61:H,63:P,64:v,65:C,66:L,67:E}),t(n,[2,55],{58:31,43:85,4:q,5:b,10:y,12:T,13:p,14:A,15:k,60:O,61:H,63:P,64:v,65:C,66:L,67:E}),{46:[1,86]},{45:[1,87]},{4:Z,5:J,6:$,8:tt,11:et,13:it,16:90,17:at,18:nt,19:st,20:rt,22:89,23:88},t(N,[2,24]),t(n,[2,51],{59:60,58:61,4:q,5:b,8:M,10:y,12:T,13:p,14:A,15:k,18:Y,63:P,64:v,65:C,66:L,67:E}),t(n,[2,54],{59:60,58:61,4:q,5:b,8:M,10:y,12:T,13:p,14:A,15:k,18:Y,63:P,64:v,65:C,66:L,67:E}),t(n,[2,47],{22:89,16:90,23:101,4:Z,5:J,6:$,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt}),{46:[1,102]},t(n,[2,29],{10:bt}),t(Zt,[2,27],{16:104,4:Z,5:J,6:$,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt}),t(W,[2,25]),t(W,[2,13]),t(W,[2,14]),t(W,[2,15]),t(W,[2,16]),t(W,[2,17]),t(W,[2,18]),t(W,[2,19]),t(W,[2,20]),t(W,[2,21]),t(W,[2,22]),t(n,[2,49],{10:bt}),t(n,[2,48],{22:89,16:90,23:105,4:Z,5:J,6:$,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt}),{4:Z,5:J,6:$,8:tt,11:et,13:it,16:90,17:at,18:nt,19:st,20:rt,22:106},t(W,[2,26]),t(n,[2,50],{10:bt}),t(Zt,[2,28],{16:104,4:Z,5:J,6:$,8:tt,11:et,13:it,17:at,18:nt,19:st,20:rt})],defaultActions:{8:[2,30],9:[2,31]},parseError:r(x(function(c,S){if(S.recoverable)this.trace(c);else{var u=new Error(c);throw u.hash=S,u}},"parseError"),"parseError"),parse:r(x(function(c){var S=this,u=[0],f=[],F=[null],i=[],ct=this.table,a="",gt=0,Jt=0,$t=0,qe=2,te=1,be=i.slice.call(arguments,1),z=Object.create(this.lexer),G={yy:{}};for(var _t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_t)&&(G.yy[_t]=this.yy[_t]);z.setInput(c,G.yy),G.yy.lexer=z,G.yy.parser=this,typeof z.yylloc>"u"&&(z.yylloc={});var At=z.yylloc;i.push(At);var Se=z.options&&z.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function _e(Q){u.length=u.length-2*Q,F.length=F.length-Q,i.length=i.length-Q}x(_e,"popStack"),r(_e,"popStack");function ee(){var Q=f.pop()||z.lex()||te;return typeof Q!="number"&&(Q instanceof Array&&(f=Q,Q=f.pop()),Q=S.symbols_[Q]||Q),Q}x(ee,"lex"),r(ee,"lex");for(var B,kt,K,U,Ft,lt={},pt,j,ie,yt;;){if(K=u[u.length-1],this.defaultActions[K]?U=this.defaultActions[K]:((B===null||typeof B>"u")&&(B=ee()),U=ct[K]&&ct[K][B]),typeof U>"u"||!U.length||!U[0]){var Pt="";yt=[];for(pt in ct[K])this.terminals_[pt]&&pt>qe&&yt.push("'"+this.terminals_[pt]+"'");z.showPosition?Pt="Parse error on line "+(gt+1)+`:
2
2
  `+z.showPosition()+`
3
3
  Expecting `+yt.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Pt="Parse error on line "+(gt+1)+": Unexpected "+(B==te?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Pt,{text:z.match,token:this.terminals_[B]||B,line:z.yylineno,loc:At,expected:yt})}if(U[0]instanceof Array&&U.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+B);switch(U[0]){case 1:u.push(B),F.push(z.yytext),i.push(z.yylloc),u.push(U[1]),B=null,kt?(B=kt,kt=null):(Jt=z.yyleng,a=z.yytext,gt=z.yylineno,At=z.yylloc,$t>0&&$t--);break;case 2:if(j=this.productions_[U[1]][1],lt.$=F[F.length-j],lt._$={first_line:i[i.length-(j||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(j||1)].first_column,last_column:i[i.length-1].last_column},Se&&(lt._$.range=[i[i.length-(j||1)].range[0],i[i.length-1].range[1]]),Ft=this.performAction.apply(lt,[a,Jt,gt,G.yy,U[1],F,i].concat(be)),typeof Ft<"u")return Ft;j&&(u=u.slice(0,-1*j*2),F=F.slice(0,-1*j),i=i.slice(0,-1*j)),u.push(this.productions_[U[1]][0]),F.push(lt.$),i.push(lt._$),ie=ct[u[u.length-2]][u[u.length-1]],u.push(ie);break;case 3:return!0}}return!0},"parse"),"parse")};St.lexer=(function(){return{EOF:1,parseError:r(x(function(c,S){if(this.yy.parser)this.yy.parser.parseError(c,S);else throw new Error(c)},"parseError"),"parseError"),setInput:r(function(s,c){return this.yy=c||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:r(function(){var s=this._input[0];return this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s,s.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),s},"input"),unput:r(function(s){var c=s.length,S=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var u=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),S.length-1&&(this.yylineno-=S.length-1);var f=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:S?(S.length===u.length?this.yylloc.first_column:0)+u[u.length-S.length].length-S[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:r(function(){return this._more=!0,this},"more"),reject:r(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:r(function(s){this.unput(this.match.slice(s))},"less"),pastInput:r(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r(function(){var s=this.pastInput(),c=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
@@ -1 +1 @@
1
- import"./chunk-NGNAAXSQ-e5XI1hSt.js";import{v as o}from"./mermaid-parser.core-DmG0b4S0.js";export{o as createRadarServices};
1
+ import"./chunk-NGNAAXSQ-e5XI1hSt.js";import{v as o}from"./mermaid-parser.core-BjFu937m.js";export{o as createRadarServices};
@@ -1 +1 @@
1
- import"./chunk-NGNAAXSQ-e5XI1hSt.js";import{g as o}from"./mermaid-parser.core-DmG0b4S0.js";export{o as createRailroadServices};
1
+ import"./chunk-NGNAAXSQ-e5XI1hSt.js";import{g as o}from"./mermaid-parser.core-BjFu937m.js";export{o as createRailroadServices};
@@ -1 +1 @@
1
- import"./chunk-NGNAAXSQ-e5XI1hSt.js";import{m as o}from"./mermaid-parser.core-DmG0b4S0.js";export{o as createRailroadAbnfServices};
1
+ import"./chunk-NGNAAXSQ-e5XI1hSt.js";import{m as o}from"./mermaid-parser.core-BjFu937m.js";export{o as createRailroadAbnfServices};
@@ -1 +1 @@
1
- import"./chunk-NGNAAXSQ-e5XI1hSt.js";import{f as e}from"./mermaid-parser.core-DmG0b4S0.js";export{e as createRailroadEbnfServices};
1
+ import"./chunk-NGNAAXSQ-e5XI1hSt.js";import{f as e}from"./mermaid-parser.core-BjFu937m.js";export{e as createRailroadEbnfServices};
@@ -1 +1 @@
1
- import"./chunk-NGNAAXSQ-e5XI1hSt.js";import{u as o}from"./mermaid-parser.core-DmG0b4S0.js";export{o as createRailroadPegServices};
1
+ import"./chunk-NGNAAXSQ-e5XI1hSt.js";import{u as o}from"./mermaid-parser.core-BjFu937m.js";export{o as createRailroadPegServices};
@@ -1 +1 @@
1
- import{g as s,t as l}from"./mermaid-parser.core-DmG0b4S0.js";import{n}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as o}from"./src-DYjgETqR.js";import"./chunk-VPRB5NB3-CfeHjtbb.js";import{n as m,r as p,t}from"./chunk-AW2ZBBNX-DnjsTe04.js";import{t as u}from"./chunk-JWPE2WC7--HEGjv3t.js";import"./mermaid.core-D1vILTuF.js";var d=s().Railroad.parser.LangiumParser,a=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{const r=e.elements.map(a);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{const r=e.alternatives.map(a);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:a(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:a(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=n(e=>({name:e.name,definition:a(e.definition)}),"transformRule"),f=n(e=>{u(e,t),e.title&&t.setTitle(e.title),e.rules.map(r=>t.addRule(c(r)))},"populateDb"),P={parser:{parse:n(e=>{t.clear(),o.debug("[Railroad Parser] Starting Langium parse");const r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new l(r);const i=r.value;o.debug("[Railroad Parser] Parsed rules:",i.rules.length),f(i),o.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t}},db:t,renderer:p,styles:m};export{P as diagram};
1
+ import{g as s,t as l}from"./mermaid-parser.core-BjFu937m.js";import{n}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as o}from"./src-DYjgETqR.js";import"./chunk-VPRB5NB3-BNz5CtBn.js";import{n as m,r as p,t}from"./chunk-AW2ZBBNX-Cf57K3PO.js";import{t as u}from"./chunk-JWPE2WC7--HEGjv3t.js";import"./mermaid.core-B0t95EIS.js";var d=s().Railroad.parser.LangiumParser,a=n(e=>{switch(e.$type){case"RailroadTerminalExpr":return{type:"terminal",value:e.value};case"RailroadNonTerminalExpr":return{type:"nonterminal",name:e.name};case"RailroadSpecialExpr":return{type:"special",text:e.text};case"RailroadSequenceExpr":{const r=e.elements.map(a);return r.length===1?r[0]:{type:"sequence",elements:r}}case"RailroadChoiceExpr":{const r=e.alternatives.map(a);return r.length===1?r[0]:{type:"choice",alternatives:r}}case"RailroadOptionalExpr":return{type:"optional",element:a(e.element)};case"RailroadOneOrMoreExpr":return{type:"repetition",element:a(e.element),min:1,max:1/0};case"RailroadZeroOrMoreExpr":return{type:"repetition",element:a(e.element),min:0,max:1/0};default:throw new Error(`Unsupported railroad expression: ${e.$type}`)}},"transformExpression"),c=n(e=>({name:e.name,definition:a(e.definition)}),"transformRule"),f=n(e=>{u(e,t),e.title&&t.setTitle(e.title),e.rules.map(r=>t.addRule(c(r)))},"populateDb"),P={parser:{parse:n(e=>{t.clear(),o.debug("[Railroad Parser] Starting Langium parse");const r=d.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new l(r);const i=r.value;o.debug("[Railroad Parser] Parsed rules:",i.rules.length),f(i),o.debug("[Railroad Parser] Parse complete")},"parse"),parser:{yy:t}},db:t,renderer:p,styles:m};export{P as diagram};
@@ -1,4 +1,4 @@
1
- var Xe=Object.defineProperty;var g=(e,u)=>Xe(e,"name",{value:u,configurable:!0});import{n as m,t as Je}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as qe}from"./src-DYjgETqR.js";import{C as Ze,H as et,U as tt,_ as st,a as it,b as Ce,q as rt,v as nt,y as He}from"./chunk-VPRB5NB3-CfeHjtbb.js";import{_ as at}from"./chunk-3YJQHVM4-Dj5wEKIw.js";import"./chunk-HJ2JQQFS-MXK0gYSP.js";import"./chunk-E2ZNV5FY-cjSf_BTz.js";import"./chunk-4EA7E6EY-5XiUVgzK.js";import{a as lt,i as ot,o as ct,r as ht}from"./chunk-J5ZVWO5B-ClU583ja.js";import"./chunk-XC4XBNZT-FBCWmi6K.js";import"./chunk-DBDB3WZW-DNqSQPZ0.js";import"./chunk-2BW5OAIV-DFXIyCJy.js";import{t as ut}from"./chunk-XXDRQBXY-BdWplhUD.js";import{t as mt}from"./chunk-KQW6MTUR-Bfj0tDmO.js";import"./chunk-NTY3LDVX-Bpz5TkVb.js";import{i as ft,r as dt}from"./mermaid.core-D1vILTuF.js";var Ae=(function(){var e=m(function(i,l,f,o){for(f=f||{},o=i.length;o--;f[i[o]]=l);return f},"o"),u=[1,3],h=[1,4],c=[1,5],r=[1,6],a=[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],T=[2,7],d=[1,26],b=[1,27],I=[1,28],A=[1,29],V=[1,33],v=[1,34],L=[1,35],x=[1,36],w=[1,37],D=[1,38],O=[1,24],M=[1,31],F=[1,32],$=[1,30],E=[1,39],R=[1,40],p=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],U=[1,61],J=[89,90],Ve=[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],pe=[27,29],ve=[1,70],Le=[1,71],xe=[1,72],we=[1,73],De=[1,74],Oe=[1,75],Me=[1,76],ee=[1,83],Y=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],oe=[1,91],ce=[1,92],Ee=[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],B=[63,64],Fe=[1,101],$e=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],N=[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],Q=[1,110],H=[1,106],K=[1,107],W=[1,108],j=[1,109],G=[1,111],he=[1,116],ue=[1,117],me=[1,114],fe=[1,115],Se={trace:m(g(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:m(g(function(l,f,o,s,y,t,de){var n=t.length-1;switch(y){case 4:this.$=t[n].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[n].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[n-3],t[n-4]);break;case 22:s.addRequirement(t[n-5],t[n-6]),s.setClass([t[n-5]],t[n-3]);break;case 23:s.setNewReqId(t[n-2]);break;case 24:s.setNewReqText(t[n-2]);break;case 25:s.setNewReqRisk(t[n-2]);break;case 26:s.setNewReqVerifyMethod(t[n-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[n-3]);break;case 43:s.addElement(t[n-5]),s.setClass([t[n-5]],t[n-3]);break;case 44:s.setNewElementType(t[n-2]);break;case 45:s.setNewElementDocRef(t[n-2]);break;case 48:s.addRelationship(t[n-2],t[n],t[n-4]);break;case 49:s.addRelationship(t[n-2],t[n-4],t[n]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[n-2],s.defineClass(t[n-1],t[n]);break;case 58:s.setClass(t[n-1],t[n]);break;case 59:s.setClass([t[n-2]],t[n]);break;case 60:case 62:this.$=[t[n]];break;case 61:case 63:this.$=t[n-2].concat([t[n]]);break;case 64:this.$=t[n-2],s.setCssStyle(t[n-1],t[n]);break;case 65:this.$=[t[n]];break;case 66:t[n-2].push(t[n]),this.$=t[n-2];break;case 68:this.$=t[n-1]+t[n]}},"anonymous"),"anonymous"),table:[{3:1,4:2,6:u,9:h,11:c,13:r},{1:[3]},{3:8,4:2,5:[1,7],6:u,9:h,11:c,13:r},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(a,[2,6]),{3:12,4:2,6:u,9:h,11:c,13:r},{1:[2,2]},{4:17,5:S,7:13,8:T,9:h,11:c,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:b,23:I,24:A,25:23,33:25,41:V,42:v,43:L,44:x,45:w,46:D,54:O,72:M,74:F,77:$,89:E,90:R},e(a,[2,4]),e(a,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:S,7:42,8:T,9:h,11:c,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:b,23:I,24:A,25:23,33:25,41:V,42:v,43:L,44:x,45:w,46:D,54:O,72:M,74:F,77:$,89:E,90:R},{4:17,5:S,7:43,8:T,9:h,11:c,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:b,23:I,24:A,25:23,33:25,41:V,42:v,43:L,44:x,45:w,46:D,54:O,72:M,74:F,77:$,89:E,90:R},{4:17,5:S,7:44,8:T,9:h,11:c,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:b,23:I,24:A,25:23,33:25,41:V,42:v,43:L,44:x,45:w,46:D,54:O,72:M,74:F,77:$,89:E,90:R},{4:17,5:S,7:45,8:T,9:h,11:c,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:b,23:I,24:A,25:23,33:25,41:V,42:v,43:L,44:x,45:w,46:D,54:O,72:M,74:F,77:$,89:E,90:R},{4:17,5:S,7:46,8:T,9:h,11:c,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:b,23:I,24:A,25:23,33:25,41:V,42:v,43:L,44:x,45:w,46:D,54:O,72:M,74:F,77:$,89:E,90:R},{4:17,5:S,7:47,8:T,9:h,11:c,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:b,23:I,24:A,25:23,33:25,41:V,42:v,43:L,44:x,45:w,46:D,54:O,72:M,74:F,77:$,89:E,90:R},{4:17,5:S,7:48,8:T,9:h,11:c,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:b,23:I,24:A,25:23,33:25,41:V,42:v,43:L,44:x,45:w,46:D,54:O,72:M,74:F,77:$,89:E,90:R},{4:17,5:S,7:49,8:T,9:h,11:c,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:b,23:I,24:A,25:23,33:25,41:V,42:v,43:L,44:x,45:w,46:D,54:O,72:M,74:F,77:$,89:E,90:R},{4:17,5:S,7:50,8:T,9:h,11:c,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:b,23:I,24:A,25:23,33:25,41:V,42:v,43:L,44:x,45:w,46:D,54:O,72:M,74:F,77:$,89:E,90:R},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(p,[2,17]),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),{30:60,33:62,75:U,89:E,90:R},{30:63,33:62,75:U,89:E,90:R},{30:64,33:62,75:U,89:E,90:R},e(J,[2,29]),e(J,[2,30]),e(J,[2,31]),e(J,[2,32]),e(J,[2,33]),e(J,[2,34]),e(Ve,[2,81]),e(Ve,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(pe,[2,79]),e(pe,[2,80]),{27:[1,67],29:[1,68]},e(pe,[2,85]),e(pe,[2,86]),{62:69,65:ve,66:Le,67:xe,68:we,69:De,70:Oe,71:Me},{62:77,65:ve,66:Le,67:xe,68:we,69:De,70:Oe,71:Me},{30:78,33:62,75:U,89:E,90:R},{73:79,75:ee,76:Y,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:oe,88:ce},e(Ee,[2,60]),e(Ee,[2,62]),{73:93,75:ee,76:Y,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:oe,88:ce},{30:94,33:62,75:U,76:Y,89:E,90:R},{5:[1,95]},{30:96,33:62,75:U,89:E,90:R},{5:[1,97]},{30:98,33:62,75:U,89:E,90:R},{63:[1,99]},e(B,[2,50]),e(B,[2,51]),e(B,[2,52]),e(B,[2,53]),e(B,[2,54]),e(B,[2,55]),e(B,[2,56]),{64:[1,100]},e(p,[2,59],{76:Y}),e(p,[2,64],{76:Fe}),{33:103,75:[1,102],89:E,90:R},e($e,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:oe,88:ce}),e(N,[2,67]),e(N,[2,69]),e(N,[2,70]),e(N,[2,71]),e(N,[2,72]),e(N,[2,73]),e(N,[2,74]),e(N,[2,75]),e(N,[2,76]),e(N,[2,77]),e(N,[2,78]),e(p,[2,57],{76:Fe}),e(p,[2,58],{76:Y}),{5:Q,28:105,31:H,34:K,36:W,38:j,40:G},{27:[1,112],76:Y},{5:he,40:ue,56:113,57:me,59:fe},{27:[1,118],76:Y},{33:119,89:E,90:R},{33:120,89:E,90:R},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:oe,88:ce},e(Ee,[2,61]),e(Ee,[2,63]),e(N,[2,68]),e(p,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:Q,28:126,31:H,34:K,36:W,38:j,40:G},e(p,[2,28]),{5:[1,127]},e(p,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:me,59:fe},e(p,[2,47]),{5:[1,131]},e(p,[2,48]),e(p,[2,49]),e($e,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:oe,88:ce}),{33:132,89:E,90:R},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(p,[2,27]),{5:Q,28:145,31:H,34:K,36:W,38:j,40:G},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(p,[2,46]),{5:he,40:ue,56:152,57:me,59:fe},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(p,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(p,[2,43]),{5:Q,28:159,31:H,34:K,36:W,38:j,40:G},{5:Q,28:160,31:H,34:K,36:W,38:j,40:G},{5:Q,28:161,31:H,34:K,36:W,38:j,40:G},{5:Q,28:162,31:H,34:K,36:W,38:j,40:G},{5:he,40:ue,56:163,57:me,59:fe},{5:he,40:ue,56:164,57:me,59:fe},e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,26]),e(p,[2,44]),e(p,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:m(g(function(l,f){if(f.recoverable)this.trace(l);else{var o=new Error(l);throw o.hash=f,o}},"parseError"),"parseError"),parse:m(g(function(l){var f=this,o=[0],s=[],y=[null],t=[],de=this.table,n="",ye=0,Pe=0,Ue=0,We=2,Ye=1,je=t.slice.call(arguments,1),_=Object.create(this.lexer),z={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(z.yy[be]=this.yy[be]);_.setInput(l,z.yy),z.yy.lexer=_,z.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Ie=_.yylloc;t.push(Ie);var Ge=_.options&&_.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ze(C){o.length=o.length-2*C,y.length=y.length-C,t.length=t.length-C}g(ze,"popStack"),m(ze,"popStack");function Be(){var C=s.pop()||_.lex()||Ye;return typeof C!="number"&&(C instanceof Array&&(s=C,C=s.pop()),C=f.symbols_[C]||C),C}g(Be,"lex"),m(Be,"lex");for(var k,ke,X,q,Te,Z={},ge,P,Qe,_e;;){if(X=o[o.length-1],this.defaultActions[X]?q=this.defaultActions[X]:((k===null||typeof k>"u")&&(k=Be()),q=de[X]&&de[X][k]),typeof q>"u"||!q.length||!q[0]){var Ne="";_e=[];for(ge in de[X])this.terminals_[ge]&&ge>We&&_e.push("'"+this.terminals_[ge]+"'");_.showPosition?Ne="Parse error on line "+(ye+1)+`:
1
+ var Xe=Object.defineProperty;var g=(e,u)=>Xe(e,"name",{value:u,configurable:!0});import{n as m,t as Je}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{m as qe}from"./src-DYjgETqR.js";import{C as Ze,H as et,U as tt,_ as st,a as it,b as Ce,q as rt,v as nt,y as He}from"./chunk-VPRB5NB3-BNz5CtBn.js";import{_ as at}from"./chunk-3YJQHVM4-C_uoPpLR.js";import"./chunk-HJ2JQQFS-DL4lnpSv.js";import"./chunk-E2ZNV5FY-DG8wQ_NS.js";import"./chunk-4EA7E6EY-BeMEfIRS.js";import{a as lt,i as ot,o as ct,r as ht}from"./chunk-J5ZVWO5B-ClU583ja.js";import"./chunk-XC4XBNZT-CCgIhjYS.js";import"./chunk-DBDB3WZW-B2qouVQO.js";import"./chunk-2BW5OAIV-Ckr4HfBO.js";import{t as ut}from"./chunk-XXDRQBXY-BdWplhUD.js";import{t as mt}from"./chunk-KQW6MTUR-BsVaJdnu.js";import"./chunk-NTY3LDVX-DyT9N5sM.js";import{i as ft,r as dt}from"./mermaid.core-B0t95EIS.js";var Ae=(function(){var e=m(function(i,l,f,o){for(f=f||{},o=i.length;o--;f[i[o]]=l);return f},"o"),u=[1,3],h=[1,4],c=[1,5],r=[1,6],a=[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],T=[2,7],d=[1,26],b=[1,27],I=[1,28],A=[1,29],V=[1,33],v=[1,34],L=[1,35],x=[1,36],w=[1,37],D=[1,38],O=[1,24],M=[1,31],F=[1,32],$=[1,30],E=[1,39],R=[1,40],p=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],U=[1,61],J=[89,90],Ve=[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],pe=[27,29],ve=[1,70],Le=[1,71],xe=[1,72],we=[1,73],De=[1,74],Oe=[1,75],Me=[1,76],ee=[1,83],Y=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],oe=[1,91],ce=[1,92],Ee=[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],B=[63,64],Fe=[1,101],$e=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],N=[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],Q=[1,110],H=[1,106],K=[1,107],W=[1,108],j=[1,109],G=[1,111],he=[1,116],ue=[1,117],me=[1,114],fe=[1,115],Se={trace:m(g(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:m(g(function(l,f,o,s,y,t,de){var n=t.length-1;switch(y){case 4:this.$=t[n].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[n].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[n-3],t[n-4]);break;case 22:s.addRequirement(t[n-5],t[n-6]),s.setClass([t[n-5]],t[n-3]);break;case 23:s.setNewReqId(t[n-2]);break;case 24:s.setNewReqText(t[n-2]);break;case 25:s.setNewReqRisk(t[n-2]);break;case 26:s.setNewReqVerifyMethod(t[n-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[n-3]);break;case 43:s.addElement(t[n-5]),s.setClass([t[n-5]],t[n-3]);break;case 44:s.setNewElementType(t[n-2]);break;case 45:s.setNewElementDocRef(t[n-2]);break;case 48:s.addRelationship(t[n-2],t[n],t[n-4]);break;case 49:s.addRelationship(t[n-2],t[n-4],t[n]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[n-2],s.defineClass(t[n-1],t[n]);break;case 58:s.setClass(t[n-1],t[n]);break;case 59:s.setClass([t[n-2]],t[n]);break;case 60:case 62:this.$=[t[n]];break;case 61:case 63:this.$=t[n-2].concat([t[n]]);break;case 64:this.$=t[n-2],s.setCssStyle(t[n-1],t[n]);break;case 65:this.$=[t[n]];break;case 66:t[n-2].push(t[n]),this.$=t[n-2];break;case 68:this.$=t[n-1]+t[n]}},"anonymous"),"anonymous"),table:[{3:1,4:2,6:u,9:h,11:c,13:r},{1:[3]},{3:8,4:2,5:[1,7],6:u,9:h,11:c,13:r},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(a,[2,6]),{3:12,4:2,6:u,9:h,11:c,13:r},{1:[2,2]},{4:17,5:S,7:13,8:T,9:h,11:c,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:b,23:I,24:A,25:23,33:25,41:V,42:v,43:L,44:x,45:w,46:D,54:O,72:M,74:F,77:$,89:E,90:R},e(a,[2,4]),e(a,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:S,7:42,8:T,9:h,11:c,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:b,23:I,24:A,25:23,33:25,41:V,42:v,43:L,44:x,45:w,46:D,54:O,72:M,74:F,77:$,89:E,90:R},{4:17,5:S,7:43,8:T,9:h,11:c,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:b,23:I,24:A,25:23,33:25,41:V,42:v,43:L,44:x,45:w,46:D,54:O,72:M,74:F,77:$,89:E,90:R},{4:17,5:S,7:44,8:T,9:h,11:c,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:b,23:I,24:A,25:23,33:25,41:V,42:v,43:L,44:x,45:w,46:D,54:O,72:M,74:F,77:$,89:E,90:R},{4:17,5:S,7:45,8:T,9:h,11:c,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:b,23:I,24:A,25:23,33:25,41:V,42:v,43:L,44:x,45:w,46:D,54:O,72:M,74:F,77:$,89:E,90:R},{4:17,5:S,7:46,8:T,9:h,11:c,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:b,23:I,24:A,25:23,33:25,41:V,42:v,43:L,44:x,45:w,46:D,54:O,72:M,74:F,77:$,89:E,90:R},{4:17,5:S,7:47,8:T,9:h,11:c,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:b,23:I,24:A,25:23,33:25,41:V,42:v,43:L,44:x,45:w,46:D,54:O,72:M,74:F,77:$,89:E,90:R},{4:17,5:S,7:48,8:T,9:h,11:c,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:b,23:I,24:A,25:23,33:25,41:V,42:v,43:L,44:x,45:w,46:D,54:O,72:M,74:F,77:$,89:E,90:R},{4:17,5:S,7:49,8:T,9:h,11:c,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:b,23:I,24:A,25:23,33:25,41:V,42:v,43:L,44:x,45:w,46:D,54:O,72:M,74:F,77:$,89:E,90:R},{4:17,5:S,7:50,8:T,9:h,11:c,13:r,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:b,23:I,24:A,25:23,33:25,41:V,42:v,43:L,44:x,45:w,46:D,54:O,72:M,74:F,77:$,89:E,90:R},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(p,[2,17]),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),{30:60,33:62,75:U,89:E,90:R},{30:63,33:62,75:U,89:E,90:R},{30:64,33:62,75:U,89:E,90:R},e(J,[2,29]),e(J,[2,30]),e(J,[2,31]),e(J,[2,32]),e(J,[2,33]),e(J,[2,34]),e(Ve,[2,81]),e(Ve,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(pe,[2,79]),e(pe,[2,80]),{27:[1,67],29:[1,68]},e(pe,[2,85]),e(pe,[2,86]),{62:69,65:ve,66:Le,67:xe,68:we,69:De,70:Oe,71:Me},{62:77,65:ve,66:Le,67:xe,68:we,69:De,70:Oe,71:Me},{30:78,33:62,75:U,89:E,90:R},{73:79,75:ee,76:Y,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:oe,88:ce},e(Ee,[2,60]),e(Ee,[2,62]),{73:93,75:ee,76:Y,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:oe,88:ce},{30:94,33:62,75:U,76:Y,89:E,90:R},{5:[1,95]},{30:96,33:62,75:U,89:E,90:R},{5:[1,97]},{30:98,33:62,75:U,89:E,90:R},{63:[1,99]},e(B,[2,50]),e(B,[2,51]),e(B,[2,52]),e(B,[2,53]),e(B,[2,54]),e(B,[2,55]),e(B,[2,56]),{64:[1,100]},e(p,[2,59],{76:Y}),e(p,[2,64],{76:Fe}),{33:103,75:[1,102],89:E,90:R},e($e,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:oe,88:ce}),e(N,[2,67]),e(N,[2,69]),e(N,[2,70]),e(N,[2,71]),e(N,[2,72]),e(N,[2,73]),e(N,[2,74]),e(N,[2,75]),e(N,[2,76]),e(N,[2,77]),e(N,[2,78]),e(p,[2,57],{76:Fe}),e(p,[2,58],{76:Y}),{5:Q,28:105,31:H,34:K,36:W,38:j,40:G},{27:[1,112],76:Y},{5:he,40:ue,56:113,57:me,59:fe},{27:[1,118],76:Y},{33:119,89:E,90:R},{33:120,89:E,90:R},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:oe,88:ce},e(Ee,[2,61]),e(Ee,[2,63]),e(N,[2,68]),e(p,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:Q,28:126,31:H,34:K,36:W,38:j,40:G},e(p,[2,28]),{5:[1,127]},e(p,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:me,59:fe},e(p,[2,47]),{5:[1,131]},e(p,[2,48]),e(p,[2,49]),e($e,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:oe,88:ce}),{33:132,89:E,90:R},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(p,[2,27]),{5:Q,28:145,31:H,34:K,36:W,38:j,40:G},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(p,[2,46]),{5:he,40:ue,56:152,57:me,59:fe},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(p,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(p,[2,43]),{5:Q,28:159,31:H,34:K,36:W,38:j,40:G},{5:Q,28:160,31:H,34:K,36:W,38:j,40:G},{5:Q,28:161,31:H,34:K,36:W,38:j,40:G},{5:Q,28:162,31:H,34:K,36:W,38:j,40:G},{5:he,40:ue,56:163,57:me,59:fe},{5:he,40:ue,56:164,57:me,59:fe},e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,26]),e(p,[2,44]),e(p,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:m(g(function(l,f){if(f.recoverable)this.trace(l);else{var o=new Error(l);throw o.hash=f,o}},"parseError"),"parseError"),parse:m(g(function(l){var f=this,o=[0],s=[],y=[null],t=[],de=this.table,n="",ye=0,Pe=0,Ue=0,We=2,Ye=1,je=t.slice.call(arguments,1),_=Object.create(this.lexer),z={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(z.yy[be]=this.yy[be]);_.setInput(l,z.yy),z.yy.lexer=_,z.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Ie=_.yylloc;t.push(Ie);var Ge=_.options&&_.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ze(C){o.length=o.length-2*C,y.length=y.length-C,t.length=t.length-C}g(ze,"popStack"),m(ze,"popStack");function Be(){var C=s.pop()||_.lex()||Ye;return typeof C!="number"&&(C instanceof Array&&(s=C,C=s.pop()),C=f.symbols_[C]||C),C}g(Be,"lex"),m(Be,"lex");for(var k,ke,X,q,Te,Z={},ge,P,Qe,_e;;){if(X=o[o.length-1],this.defaultActions[X]?q=this.defaultActions[X]:((k===null||typeof k>"u")&&(k=Be()),q=de[X]&&de[X][k]),typeof q>"u"||!q.length||!q[0]){var Ne="";_e=[];for(ge in de[X])this.terminals_[ge]&&ge>We&&_e.push("'"+this.terminals_[ge]+"'");_.showPosition?Ne="Parse error on line "+(ye+1)+`:
2
2
  `+_.showPosition()+`
3
3
  Expecting `+_e.join(", ")+", got '"+(this.terminals_[k]||k)+"'":Ne="Parse error on line "+(ye+1)+": Unexpected "+(k==Ye?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(Ne,{text:_.match,token:this.terminals_[k]||k,line:_.yylineno,loc:Ie,expected:_e})}if(q[0]instanceof Array&&q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+X+", token: "+k);switch(q[0]){case 1:o.push(k),y.push(_.yytext),t.push(_.yylloc),o.push(q[1]),k=null,ke?(k=ke,ke=null):(Pe=_.yyleng,n=_.yytext,ye=_.yylineno,Ie=_.yylloc,Ue>0&&Ue--);break;case 2:if(P=this.productions_[q[1]][1],Z.$=y[y.length-P],Z._$={first_line:t[t.length-(P||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(P||1)].first_column,last_column:t[t.length-1].last_column},Ge&&(Z._$.range=[t[t.length-(P||1)].range[0],t[t.length-1].range[1]]),Te=this.performAction.apply(Z,[n,Pe,ye,z.yy,q[1],y,t].concat(je)),typeof Te<"u")return Te;P&&(o=o.slice(0,-1*P*2),y=y.slice(0,-1*P),t=t.slice(0,-1*P)),o.push(this.productions_[q[1]][0]),y.push(Z.$),t.push(Z._$),Qe=de[o[o.length-2]][o[o.length-1]],o.push(Qe);break;case 3:return!0}}return!0},"parse"),"parse")};Se.lexer=(function(){return{EOF:1,parseError:m(g(function(l,f){if(this.yy.parser)this.yy.parser.parseError(l,f);else throw new Error(l)},"parseError"),"parseError"),setInput:m(function(i,l){return this.yy=l||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:m(function(){var i=this._input[0];return this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i,i.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),i},"input"),unput:m(function(i){var l=i.length,f=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var o=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),f.length-1&&(this.yylineno-=f.length-1);var s=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===o.length?this.yylloc.first_column:0)+o[o.length-f.length].length-f[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[s[0],s[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:m(function(){return this._more=!0,this},"more"),reject:m(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:m(function(i){this.unput(this.match.slice(i))},"less"),pastInput:m(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:m(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:m(function(){var i=this.pastInput(),l=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- var kt=Object.defineProperty;var l=(t,i)=>kt(t,"name",{value:i,configurable:!0});import{n as g}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{p as Y}from"./src-DYjgETqR.js";import{C as _t,H as xt,U as vt,Y as bt,_ as St,a as wt,b as et,d as Lt,q as Et,s as At,v as Tt}from"./chunk-VPRB5NB3-CfeHjtbb.js";import{t as Mt}from"./ordinal-BJyFM1v8.js";function Nt(t){for(var i=t.length/6|0,s=new Array(i),u=0;u<i;)s[u]="#"+t.slice(u*6,++u*6);return s}l(Nt,"colors_default");var Ct=Nt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function lt(t,i){let s;if(i===void 0)for(const u of t)u!=null&&(s<u||s===void 0&&u>=u)&&(s=u);else{let u=-1;for(let h of t)(h=i(h,++u,t))!=null&&(s<h||s===void 0&&h>=h)&&(s=h)}return s}l(lt,"max");function gt(t,i){let s;if(i===void 0)for(const u of t)u!=null&&(s>u||s===void 0&&u>=u)&&(s=u);else{let u=-1;for(let h of t)(h=i(h,++u,t))!=null&&(s>h||s===void 0&&h>=h)&&(s=h)}return s}l(gt,"min");function J(t,i){let s=0;if(i===void 0)for(let u of t)(u=+u)&&(s+=u);else{let u=-1;for(let h of t)(h=+i(h,++u,t))&&(s+=h)}return s}l(J,"sum");function Pt(t){return t.target.depth}l(Pt,"targetDepth");function It(t){return t.depth}l(It,"left");function Ot(t,i){return i-1-t.height}l(Ot,"right");function pt(t,i){return t.sourceLinks.length?t.depth:i-1}l(pt,"justify");function $t(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?gt(t.sourceLinks,Pt)-1:0}l($t,"center");function H(t){return function(){return t}}l(H,"constant");function ct(t,i){return Q(t.source,i.source)||t.index-i.index}l(ct,"ascendingSourceBreadth");function ut(t,i){return Q(t.target,i.target)||t.index-i.index}l(ut,"ascendingTargetBreadth");function Q(t,i){return t.y0-i.y0}l(Q,"ascendingBreadth");function tt(t){return t.value}l(tt,"value");function Dt(t){return t.index}l(Dt,"defaultId");function zt(t){return t.nodes}l(zt,"defaultNodes");function jt(t){return t.links}l(jt,"defaultLinks");function ht(t,i){const s=t.get(i);if(!s)throw new Error("missing: "+i);return s}l(ht,"find");function ft({nodes:t}){for(const i of t){let s=i.y0,u=s;for(const h of i.sourceLinks)h.y0=s+h.width/2,s+=h.width;for(const h of i.targetLinks)h.y1=u+h.width/2,u+=h.width}}l(ft,"computeLinkBreadths");function Bt(){let t=0,i=0,s=1,u=1,h=24,k=8,r,c=Dt,d=pt,f,m,v=zt,_=jt,E=6;function x(){const e={nodes:v.apply(null,arguments),links:_.apply(null,arguments)};return T(e),A(e),N(e),D(e),b(e),ft(e),e}l(x,"sankey"),x.update=function(e){return ft(e),e},x.nodeId=function(e){return arguments.length?(c=typeof e=="function"?e:H(e),x):c},x.nodeAlign=function(e){return arguments.length?(d=typeof e=="function"?e:H(e),x):d},x.nodeSort=function(e){return arguments.length?(f=e,x):f},x.nodeWidth=function(e){return arguments.length?(h=+e,x):h},x.nodePadding=function(e){return arguments.length?(k=r=+e,x):k},x.nodes=function(e){return arguments.length?(v=typeof e=="function"?e:H(e),x):v},x.links=function(e){return arguments.length?(_=typeof e=="function"?e:H(e),x):_},x.linkSort=function(e){return arguments.length?(m=e,x):m},x.size=function(e){return arguments.length?(t=i=0,s=+e[0],u=+e[1],x):[s-t,u-i]},x.extent=function(e){return arguments.length?(t=+e[0][0],s=+e[1][0],i=+e[0][1],u=+e[1][1],x):[[t,i],[s,u]]},x.iterations=function(e){return arguments.length?(E=+e,x):E};function T({nodes:e,links:y}){for(const[o,a]of e.entries())a.index=o,a.sourceLinks=[],a.targetLinks=[];const n=new Map(e.map((o,a)=>[c(o,a,e),o]));for(const[o,a]of y.entries()){a.index=o;let{source:p,target:S}=a;typeof p!="object"&&(p=a.source=ht(n,p)),typeof S!="object"&&(S=a.target=ht(n,S)),p.sourceLinks.push(a),S.targetLinks.push(a)}if(m!=null)for(const{sourceLinks:o,targetLinks:a}of e)o.sort(m),a.sort(m)}l(T,"computeNodeLinks");function A({nodes:e}){for(const y of e)y.value=y.fixedValue===void 0?Math.max(J(y.sourceLinks,tt),J(y.targetLinks,tt)):y.fixedValue}l(A,"computeNodeValues");function N({nodes:e}){const y=e.length;let n=new Set(e),o=new Set,a=0;for(;n.size;){for(const p of n){p.depth=a;for(const{target:S}of p.sourceLinks)o.add(S)}if(++a>y)throw new Error("circular link");n=o,o=new Set}}l(N,"computeNodeDepths");function D({nodes:e}){const y=e.length;let n=new Set(e),o=new Set,a=0;for(;n.size;){for(const p of n){p.height=a;for(const{source:S}of p.targetLinks)o.add(S)}if(++a>y)throw new Error("circular link");n=o,o=new Set}}l(D,"computeNodeHeights");function C({nodes:e}){const y=lt(e,a=>a.depth)+1,n=(s-t-h)/(y-1),o=new Array(y);for(const a of e){const p=Math.max(0,Math.min(y-1,Math.floor(d.call(null,a,y))));a.layer=p,a.x0=t+p*n,a.x1=a.x0+h,o[p]?o[p].push(a):o[p]=[a]}if(f)for(const a of o)a.sort(f);return o}l(C,"computeNodeLayers");function z(e){const y=gt(e,n=>(u-i-(n.length-1)*r)/J(n,tt));for(const n of e){let o=i;for(const a of n){a.y0=o,a.y1=o+a.value*y,o=a.y1+r;for(const p of a.sourceLinks)p.width=p.value*y}o=(u-o+r)/(n.length+1);for(let a=0;a<n.length;++a){const p=n[a];p.y0+=o*(a+1),p.y1+=o*(a+1)}w(n)}}l(z,"initializeNodeBreadths");function b(e){const y=C(e);r=Math.min(k,(u-i)/(lt(y,n=>n.length)-1)),z(y);for(let n=0;n<E;++n){const o=Math.pow(.99,n),a=Math.max(1-o,(n+1)/E);F(y,o,a),P(y,o,a)}}l(b,"computeNodeBreadths");function P(e,y,n){for(let o=1,a=e.length;o<a;++o){const p=e[o];for(const S of p){let O=0,L=0;for(const{source:W,value:G}of S.targetLinks){let at=G*(S.layer-W.layer);O+=$(W,S)*at,L+=at}if(!(L>0))continue;let U=(O/L-S.y0)*y;S.y0+=U,S.y1+=U,B(S)}f===void 0&&p.sort(Q),j(p,n)}}l(P,"relaxLeftToRight");function F(e,y,n){for(let o=e.length-2;o>=0;--o){const a=e[o];for(const p of a){let S=0,O=0;for(const{target:U,value:W}of p.sourceLinks){let G=W*(U.layer-p.layer);S+=M(p,U)*G,O+=G}if(!(O>0))continue;let L=(S/O-p.y0)*y;p.y0+=L,p.y1+=L,B(p)}f===void 0&&a.sort(Q),j(a,n)}}l(F,"relaxRightToLeft");function j(e,y){const n=e.length>>1,o=e[n];V(e,o.y0-r,n-1,y),I(e,o.y1+r,n+1,y),V(e,u,e.length-1,y),I(e,i,0,y)}l(j,"resolveCollisions");function I(e,y,n,o){for(;n<e.length;++n){const a=e[n],p=(y-a.y0)*o;p>1e-6&&(a.y0+=p,a.y1+=p),y=a.y1+r}}l(I,"resolveCollisionsTopToBottom");function V(e,y,n,o){for(;n>=0;--n){const a=e[n],p=(a.y1-y)*o;p>1e-6&&(a.y0-=p,a.y1-=p),y=a.y0-r}}l(V,"resolveCollisionsBottomToTop");function B({sourceLinks:e,targetLinks:y}){if(m===void 0){for(const{source:{sourceLinks:n}}of y)n.sort(ut);for(const{target:{targetLinks:n}}of e)n.sort(ct)}}l(B,"reorderNodeLinks");function w(e){if(m===void 0)for(const{sourceLinks:y,targetLinks:n}of e)y.sort(ut),n.sort(ct)}l(w,"reorderLinks");function $(e,y){let n=e.y0-(e.sourceLinks.length-1)*r/2;for(const{target:o,width:a}of e.sourceLinks){if(o===y)break;n+=a+r}for(const{source:o,width:a}of y.targetLinks){if(o===e)break;n-=a}return n}l($,"targetTop");function M(e,y){let n=y.y0-(y.targetLinks.length-1)*r/2;for(const{source:o,width:a}of y.targetLinks){if(o===e)break;n+=a+r}for(const{target:o,width:a}of e.sourceLinks){if(o===y)break;n-=a}return n}return l(M,"sourceTop"),x}l(Bt,"Sankey");var nt=Math.PI,it=2*nt,R=1e-6,Ft=it-R;function rt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}l(rt,"Path");function mt(){return new rt}l(mt,"path");rt.prototype=mt.prototype={constructor:rt,moveTo:l(function(t,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)},"moveTo"),closePath:l(function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},"closePath"),lineTo:l(function(t,i){this._+="L"+(this._x1=+t)+","+(this._y1=+i)},"lineTo"),quadraticCurveTo:l(function(t,i,s,u){this._+="Q"+ +t+","+ +i+","+(this._x1=+s)+","+(this._y1=+u)},"quadraticCurveTo"),bezierCurveTo:l(function(t,i,s,u,h,k){this._+="C"+ +t+","+ +i+","+ +s+","+ +u+","+(this._x1=+h)+","+(this._y1=+k)},"bezierCurveTo"),arcTo:l(function(t,i,s,u,h){t=+t,i=+i,s=+s,u=+u,h=+h;var k=this._x1,r=this._y1,c=s-t,d=u-i,f=k-t,m=r-i,v=f*f+m*m;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=i);else if(v>R)if(!(Math.abs(m*c-d*f)>R)||!h)this._+="L"+(this._x1=t)+","+(this._y1=i);else{var _=s-k,E=u-r,x=c*c+d*d,T=_*_+E*E,A=Math.sqrt(x),N=Math.sqrt(v),D=h*Math.tan((nt-Math.acos((x+v-T)/(2*A*N)))/2),C=D/N,z=D/A;Math.abs(C-1)>R&&(this._+="L"+(t+C*f)+","+(i+C*m)),this._+="A"+h+","+h+",0,0,"+ +(m*_>f*E)+","+(this._x1=t+z*c)+","+(this._y1=i+z*d)}},"arcTo"),arc:l(function(t,i,s,u,h,k){t=+t,i=+i,s=+s,k=!!k;var r=s*Math.cos(u),c=s*Math.sin(u),d=t+r,f=i+c,m=1^k,v=k?u-h:h-u;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+d+","+f:(Math.abs(this._x1-d)>R||Math.abs(this._y1-f)>R)&&(this._+="L"+d+","+f),s&&(v<0&&(v=v%it+it),v>Ft?this._+="A"+s+","+s+",0,1,"+m+","+(t-r)+","+(i-c)+"A"+s+","+s+",0,1,"+m+","+(this._x1=d)+","+(this._y1=f):v>R&&(this._+="A"+s+","+s+",0,"+ +(v>=nt)+","+m+","+(this._x1=t+s*Math.cos(h))+","+(this._y1=i+s*Math.sin(h))))},"arc"),rect:l(function(t,i,s,u){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)+"h"+ +s+"v"+ +u+"h"+-s+"Z"},"rect"),toString:l(function(){return this._},"toString")};function yt(t){return l(function(){return t},"constant")}l(yt,"constant_default");function Rt(t){return t[0]}l(Rt,"x");function Vt(t){return t[1]}l(Vt,"y");var Ut=Array.prototype.slice;function Wt(t){return t.source}l(Wt,"linkSource");function Gt(t){return t.target}l(Gt,"linkTarget");function Yt(t){var i=Wt,s=Gt,u=Rt,h=Vt,k=null;function r(){var c,d=Ut.call(arguments),f=i.apply(this,d),m=s.apply(this,d);if(k||(k=c=mt()),t(k,+u.apply(this,(d[0]=f,d)),+h.apply(this,d),+u.apply(this,(d[0]=m,d)),+h.apply(this,d)),c)return k=null,c+""||null}return l(r,"link"),r.source=function(c){return arguments.length?(i=c,r):i},r.target=function(c){return arguments.length?(s=c,r):s},r.x=function(c){return arguments.length?(u=typeof c=="function"?c:yt(+c),r):u},r.y=function(c){return arguments.length?(h=typeof c=="function"?c:yt(+c),r):h},r.context=function(c){return arguments.length?(k=c??null,r):k},r}l(Yt,"link");function Ht(t,i,s,u,h){t.moveTo(i,s),t.bezierCurveTo(i=(i+u)/2,s,i,h,u,h)}l(Ht,"curveHorizontal");function qt(){return Yt(Ht)}l(qt,"linkHorizontal");function Xt(t){return[t.source.x1,t.y0]}l(Xt,"horizontalSource");function Qt(t){return[t.target.x0,t.y1]}l(Qt,"horizontalTarget");function Kt(){return qt().source(Xt).target(Qt)}l(Kt,"sankeyLinkHorizontal_default");var st=(function(){var t=g(function(r,c,d,f){for(d=d||{},f=r.length;f--;d[r[f]]=c);return d},"o"),i=[1,9],s=[1,10],u=[1,5,10,12],h={trace:g(l(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:g(l(function(c,d,f,m,v,_,E){var x=_.length-1;switch(v){case 7:const T=m.findOrCreateNode(_[x-4].trim().replaceAll('""','"')),A=m.findOrCreateNode(_[x-2].trim().replaceAll('""','"')),N=parseFloat(_[x].trim());m.addLink(T,A,N);break;case 8:case 9:case 11:this.$=_[x];break;case 10:this.$=_[x-1]}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:i,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(u,[2,8]),t(u,[2,9]),{19:[1,16]},t(u,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:i,20:s},{15:18,16:7,17:8,18:i,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(u,[2,10]),{15:21,16:7,17:8,18:i,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:g(l(function(c,d){if(d.recoverable)this.trace(c);else{var f=new Error(c);throw f.hash=d,f}},"parseError"),"parseError"),parse:g(l(function(c){var d=this,f=[0],m=[],v=[null],_=[],E=this.table,x="",T=0,A=0,N=0,D=2,C=1,z=_.slice.call(arguments,1),b=Object.create(this.lexer),P={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(P.yy[F]=this.yy[F]);b.setInput(c,P.yy),P.yy.lexer=b,P.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var j=b.yylloc;_.push(j);var I=b.options&&b.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function V(L){f.length=f.length-2*L,v.length=v.length-L,_.length=_.length-L}l(V,"popStack"),g(V,"popStack");function B(){var L=m.pop()||b.lex()||C;return typeof L!="number"&&(L instanceof Array&&(m=L,L=m.pop()),L=d.symbols_[L]||L),L}l(B,"lex"),g(B,"lex");for(var w,$,M,e,y,n={},o,a,p,S;;){if(M=f[f.length-1],this.defaultActions[M]?e=this.defaultActions[M]:((w===null||typeof w>"u")&&(w=B()),e=E[M]&&E[M][w]),typeof e>"u"||!e.length||!e[0]){var O="";S=[];for(o in E[M])this.terminals_[o]&&o>D&&S.push("'"+this.terminals_[o]+"'");b.showPosition?O="Parse error on line "+(T+1)+`:
1
+ var kt=Object.defineProperty;var l=(t,i)=>kt(t,"name",{value:i,configurable:!0});import{n as g}from"./chunk-Y2CYZVJY-OvsAdhaO.js";import{p as Y}from"./src-DYjgETqR.js";import{C as _t,H as xt,U as vt,Y as bt,_ as St,a as wt,b as et,d as Lt,q as Et,s as At,v as Tt}from"./chunk-VPRB5NB3-BNz5CtBn.js";import{t as Mt}from"./ordinal-BJyFM1v8.js";function Nt(t){for(var i=t.length/6|0,s=new Array(i),u=0;u<i;)s[u]="#"+t.slice(u*6,++u*6);return s}l(Nt,"colors_default");var Ct=Nt("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function lt(t,i){let s;if(i===void 0)for(const u of t)u!=null&&(s<u||s===void 0&&u>=u)&&(s=u);else{let u=-1;for(let h of t)(h=i(h,++u,t))!=null&&(s<h||s===void 0&&h>=h)&&(s=h)}return s}l(lt,"max");function gt(t,i){let s;if(i===void 0)for(const u of t)u!=null&&(s>u||s===void 0&&u>=u)&&(s=u);else{let u=-1;for(let h of t)(h=i(h,++u,t))!=null&&(s>h||s===void 0&&h>=h)&&(s=h)}return s}l(gt,"min");function J(t,i){let s=0;if(i===void 0)for(let u of t)(u=+u)&&(s+=u);else{let u=-1;for(let h of t)(h=+i(h,++u,t))&&(s+=h)}return s}l(J,"sum");function Pt(t){return t.target.depth}l(Pt,"targetDepth");function It(t){return t.depth}l(It,"left");function Ot(t,i){return i-1-t.height}l(Ot,"right");function pt(t,i){return t.sourceLinks.length?t.depth:i-1}l(pt,"justify");function $t(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?gt(t.sourceLinks,Pt)-1:0}l($t,"center");function H(t){return function(){return t}}l(H,"constant");function ct(t,i){return Q(t.source,i.source)||t.index-i.index}l(ct,"ascendingSourceBreadth");function ut(t,i){return Q(t.target,i.target)||t.index-i.index}l(ut,"ascendingTargetBreadth");function Q(t,i){return t.y0-i.y0}l(Q,"ascendingBreadth");function tt(t){return t.value}l(tt,"value");function Dt(t){return t.index}l(Dt,"defaultId");function zt(t){return t.nodes}l(zt,"defaultNodes");function jt(t){return t.links}l(jt,"defaultLinks");function ht(t,i){const s=t.get(i);if(!s)throw new Error("missing: "+i);return s}l(ht,"find");function ft({nodes:t}){for(const i of t){let s=i.y0,u=s;for(const h of i.sourceLinks)h.y0=s+h.width/2,s+=h.width;for(const h of i.targetLinks)h.y1=u+h.width/2,u+=h.width}}l(ft,"computeLinkBreadths");function Bt(){let t=0,i=0,s=1,u=1,h=24,k=8,r,c=Dt,d=pt,f,m,v=zt,_=jt,E=6;function x(){const e={nodes:v.apply(null,arguments),links:_.apply(null,arguments)};return T(e),A(e),N(e),D(e),b(e),ft(e),e}l(x,"sankey"),x.update=function(e){return ft(e),e},x.nodeId=function(e){return arguments.length?(c=typeof e=="function"?e:H(e),x):c},x.nodeAlign=function(e){return arguments.length?(d=typeof e=="function"?e:H(e),x):d},x.nodeSort=function(e){return arguments.length?(f=e,x):f},x.nodeWidth=function(e){return arguments.length?(h=+e,x):h},x.nodePadding=function(e){return arguments.length?(k=r=+e,x):k},x.nodes=function(e){return arguments.length?(v=typeof e=="function"?e:H(e),x):v},x.links=function(e){return arguments.length?(_=typeof e=="function"?e:H(e),x):_},x.linkSort=function(e){return arguments.length?(m=e,x):m},x.size=function(e){return arguments.length?(t=i=0,s=+e[0],u=+e[1],x):[s-t,u-i]},x.extent=function(e){return arguments.length?(t=+e[0][0],s=+e[1][0],i=+e[0][1],u=+e[1][1],x):[[t,i],[s,u]]},x.iterations=function(e){return arguments.length?(E=+e,x):E};function T({nodes:e,links:y}){for(const[o,a]of e.entries())a.index=o,a.sourceLinks=[],a.targetLinks=[];const n=new Map(e.map((o,a)=>[c(o,a,e),o]));for(const[o,a]of y.entries()){a.index=o;let{source:p,target:S}=a;typeof p!="object"&&(p=a.source=ht(n,p)),typeof S!="object"&&(S=a.target=ht(n,S)),p.sourceLinks.push(a),S.targetLinks.push(a)}if(m!=null)for(const{sourceLinks:o,targetLinks:a}of e)o.sort(m),a.sort(m)}l(T,"computeNodeLinks");function A({nodes:e}){for(const y of e)y.value=y.fixedValue===void 0?Math.max(J(y.sourceLinks,tt),J(y.targetLinks,tt)):y.fixedValue}l(A,"computeNodeValues");function N({nodes:e}){const y=e.length;let n=new Set(e),o=new Set,a=0;for(;n.size;){for(const p of n){p.depth=a;for(const{target:S}of p.sourceLinks)o.add(S)}if(++a>y)throw new Error("circular link");n=o,o=new Set}}l(N,"computeNodeDepths");function D({nodes:e}){const y=e.length;let n=new Set(e),o=new Set,a=0;for(;n.size;){for(const p of n){p.height=a;for(const{source:S}of p.targetLinks)o.add(S)}if(++a>y)throw new Error("circular link");n=o,o=new Set}}l(D,"computeNodeHeights");function C({nodes:e}){const y=lt(e,a=>a.depth)+1,n=(s-t-h)/(y-1),o=new Array(y);for(const a of e){const p=Math.max(0,Math.min(y-1,Math.floor(d.call(null,a,y))));a.layer=p,a.x0=t+p*n,a.x1=a.x0+h,o[p]?o[p].push(a):o[p]=[a]}if(f)for(const a of o)a.sort(f);return o}l(C,"computeNodeLayers");function z(e){const y=gt(e,n=>(u-i-(n.length-1)*r)/J(n,tt));for(const n of e){let o=i;for(const a of n){a.y0=o,a.y1=o+a.value*y,o=a.y1+r;for(const p of a.sourceLinks)p.width=p.value*y}o=(u-o+r)/(n.length+1);for(let a=0;a<n.length;++a){const p=n[a];p.y0+=o*(a+1),p.y1+=o*(a+1)}w(n)}}l(z,"initializeNodeBreadths");function b(e){const y=C(e);r=Math.min(k,(u-i)/(lt(y,n=>n.length)-1)),z(y);for(let n=0;n<E;++n){const o=Math.pow(.99,n),a=Math.max(1-o,(n+1)/E);F(y,o,a),P(y,o,a)}}l(b,"computeNodeBreadths");function P(e,y,n){for(let o=1,a=e.length;o<a;++o){const p=e[o];for(const S of p){let O=0,L=0;for(const{source:W,value:G}of S.targetLinks){let at=G*(S.layer-W.layer);O+=$(W,S)*at,L+=at}if(!(L>0))continue;let U=(O/L-S.y0)*y;S.y0+=U,S.y1+=U,B(S)}f===void 0&&p.sort(Q),j(p,n)}}l(P,"relaxLeftToRight");function F(e,y,n){for(let o=e.length-2;o>=0;--o){const a=e[o];for(const p of a){let S=0,O=0;for(const{target:U,value:W}of p.sourceLinks){let G=W*(U.layer-p.layer);S+=M(p,U)*G,O+=G}if(!(O>0))continue;let L=(S/O-p.y0)*y;p.y0+=L,p.y1+=L,B(p)}f===void 0&&a.sort(Q),j(a,n)}}l(F,"relaxRightToLeft");function j(e,y){const n=e.length>>1,o=e[n];V(e,o.y0-r,n-1,y),I(e,o.y1+r,n+1,y),V(e,u,e.length-1,y),I(e,i,0,y)}l(j,"resolveCollisions");function I(e,y,n,o){for(;n<e.length;++n){const a=e[n],p=(y-a.y0)*o;p>1e-6&&(a.y0+=p,a.y1+=p),y=a.y1+r}}l(I,"resolveCollisionsTopToBottom");function V(e,y,n,o){for(;n>=0;--n){const a=e[n],p=(a.y1-y)*o;p>1e-6&&(a.y0-=p,a.y1-=p),y=a.y0-r}}l(V,"resolveCollisionsBottomToTop");function B({sourceLinks:e,targetLinks:y}){if(m===void 0){for(const{source:{sourceLinks:n}}of y)n.sort(ut);for(const{target:{targetLinks:n}}of e)n.sort(ct)}}l(B,"reorderNodeLinks");function w(e){if(m===void 0)for(const{sourceLinks:y,targetLinks:n}of e)y.sort(ut),n.sort(ct)}l(w,"reorderLinks");function $(e,y){let n=e.y0-(e.sourceLinks.length-1)*r/2;for(const{target:o,width:a}of e.sourceLinks){if(o===y)break;n+=a+r}for(const{source:o,width:a}of y.targetLinks){if(o===e)break;n-=a}return n}l($,"targetTop");function M(e,y){let n=y.y0-(y.targetLinks.length-1)*r/2;for(const{source:o,width:a}of y.targetLinks){if(o===e)break;n+=a+r}for(const{target:o,width:a}of e.sourceLinks){if(o===y)break;n-=a}return n}return l(M,"sourceTop"),x}l(Bt,"Sankey");var nt=Math.PI,it=2*nt,R=1e-6,Ft=it-R;function rt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}l(rt,"Path");function mt(){return new rt}l(mt,"path");rt.prototype=mt.prototype={constructor:rt,moveTo:l(function(t,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)},"moveTo"),closePath:l(function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},"closePath"),lineTo:l(function(t,i){this._+="L"+(this._x1=+t)+","+(this._y1=+i)},"lineTo"),quadraticCurveTo:l(function(t,i,s,u){this._+="Q"+ +t+","+ +i+","+(this._x1=+s)+","+(this._y1=+u)},"quadraticCurveTo"),bezierCurveTo:l(function(t,i,s,u,h,k){this._+="C"+ +t+","+ +i+","+ +s+","+ +u+","+(this._x1=+h)+","+(this._y1=+k)},"bezierCurveTo"),arcTo:l(function(t,i,s,u,h){t=+t,i=+i,s=+s,u=+u,h=+h;var k=this._x1,r=this._y1,c=s-t,d=u-i,f=k-t,m=r-i,v=f*f+m*m;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=i);else if(v>R)if(!(Math.abs(m*c-d*f)>R)||!h)this._+="L"+(this._x1=t)+","+(this._y1=i);else{var _=s-k,E=u-r,x=c*c+d*d,T=_*_+E*E,A=Math.sqrt(x),N=Math.sqrt(v),D=h*Math.tan((nt-Math.acos((x+v-T)/(2*A*N)))/2),C=D/N,z=D/A;Math.abs(C-1)>R&&(this._+="L"+(t+C*f)+","+(i+C*m)),this._+="A"+h+","+h+",0,0,"+ +(m*_>f*E)+","+(this._x1=t+z*c)+","+(this._y1=i+z*d)}},"arcTo"),arc:l(function(t,i,s,u,h,k){t=+t,i=+i,s=+s,k=!!k;var r=s*Math.cos(u),c=s*Math.sin(u),d=t+r,f=i+c,m=1^k,v=k?u-h:h-u;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+d+","+f:(Math.abs(this._x1-d)>R||Math.abs(this._y1-f)>R)&&(this._+="L"+d+","+f),s&&(v<0&&(v=v%it+it),v>Ft?this._+="A"+s+","+s+",0,1,"+m+","+(t-r)+","+(i-c)+"A"+s+","+s+",0,1,"+m+","+(this._x1=d)+","+(this._y1=f):v>R&&(this._+="A"+s+","+s+",0,"+ +(v>=nt)+","+m+","+(this._x1=t+s*Math.cos(h))+","+(this._y1=i+s*Math.sin(h))))},"arc"),rect:l(function(t,i,s,u){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)+"h"+ +s+"v"+ +u+"h"+-s+"Z"},"rect"),toString:l(function(){return this._},"toString")};function yt(t){return l(function(){return t},"constant")}l(yt,"constant_default");function Rt(t){return t[0]}l(Rt,"x");function Vt(t){return t[1]}l(Vt,"y");var Ut=Array.prototype.slice;function Wt(t){return t.source}l(Wt,"linkSource");function Gt(t){return t.target}l(Gt,"linkTarget");function Yt(t){var i=Wt,s=Gt,u=Rt,h=Vt,k=null;function r(){var c,d=Ut.call(arguments),f=i.apply(this,d),m=s.apply(this,d);if(k||(k=c=mt()),t(k,+u.apply(this,(d[0]=f,d)),+h.apply(this,d),+u.apply(this,(d[0]=m,d)),+h.apply(this,d)),c)return k=null,c+""||null}return l(r,"link"),r.source=function(c){return arguments.length?(i=c,r):i},r.target=function(c){return arguments.length?(s=c,r):s},r.x=function(c){return arguments.length?(u=typeof c=="function"?c:yt(+c),r):u},r.y=function(c){return arguments.length?(h=typeof c=="function"?c:yt(+c),r):h},r.context=function(c){return arguments.length?(k=c??null,r):k},r}l(Yt,"link");function Ht(t,i,s,u,h){t.moveTo(i,s),t.bezierCurveTo(i=(i+u)/2,s,i,h,u,h)}l(Ht,"curveHorizontal");function qt(){return Yt(Ht)}l(qt,"linkHorizontal");function Xt(t){return[t.source.x1,t.y0]}l(Xt,"horizontalSource");function Qt(t){return[t.target.x0,t.y1]}l(Qt,"horizontalTarget");function Kt(){return qt().source(Xt).target(Qt)}l(Kt,"sankeyLinkHorizontal_default");var st=(function(){var t=g(function(r,c,d,f){for(d=d||{},f=r.length;f--;d[r[f]]=c);return d},"o"),i=[1,9],s=[1,10],u=[1,5,10,12],h={trace:g(l(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:g(l(function(c,d,f,m,v,_,E){var x=_.length-1;switch(v){case 7:const T=m.findOrCreateNode(_[x-4].trim().replaceAll('""','"')),A=m.findOrCreateNode(_[x-2].trim().replaceAll('""','"')),N=parseFloat(_[x].trim());m.addLink(T,A,N);break;case 8:case 9:case 11:this.$=_[x];break;case 10:this.$=_[x-1]}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:i,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(u,[2,8]),t(u,[2,9]),{19:[1,16]},t(u,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:i,20:s},{15:18,16:7,17:8,18:i,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(u,[2,10]),{15:21,16:7,17:8,18:i,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:g(l(function(c,d){if(d.recoverable)this.trace(c);else{var f=new Error(c);throw f.hash=d,f}},"parseError"),"parseError"),parse:g(l(function(c){var d=this,f=[0],m=[],v=[null],_=[],E=this.table,x="",T=0,A=0,N=0,D=2,C=1,z=_.slice.call(arguments,1),b=Object.create(this.lexer),P={yy:{}};for(var F in this.yy)Object.prototype.hasOwnProperty.call(this.yy,F)&&(P.yy[F]=this.yy[F]);b.setInput(c,P.yy),P.yy.lexer=b,P.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var j=b.yylloc;_.push(j);var I=b.options&&b.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function V(L){f.length=f.length-2*L,v.length=v.length-L,_.length=_.length-L}l(V,"popStack"),g(V,"popStack");function B(){var L=m.pop()||b.lex()||C;return typeof L!="number"&&(L instanceof Array&&(m=L,L=m.pop()),L=d.symbols_[L]||L),L}l(B,"lex"),g(B,"lex");for(var w,$,M,e,y,n={},o,a,p,S;;){if(M=f[f.length-1],this.defaultActions[M]?e=this.defaultActions[M]:((w===null||typeof w>"u")&&(w=B()),e=E[M]&&E[M][w]),typeof e>"u"||!e.length||!e[0]){var O="";S=[];for(o in E[M])this.terminals_[o]&&o>D&&S.push("'"+this.terminals_[o]+"'");b.showPosition?O="Parse error on line "+(T+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+S.join(", ")+", got '"+(this.terminals_[w]||w)+"'":O="Parse error on line "+(T+1)+": Unexpected "+(w==C?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(O,{text:b.match,token:this.terminals_[w]||w,line:b.yylineno,loc:j,expected:S})}if(e[0]instanceof Array&&e.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+w);switch(e[0]){case 1:f.push(w),v.push(b.yytext),_.push(b.yylloc),f.push(e[1]),w=null,$?(w=$,$=null):(A=b.yyleng,x=b.yytext,T=b.yylineno,j=b.yylloc,N>0&&N--);break;case 2:if(a=this.productions_[e[1]][1],n.$=v[v.length-a],n._$={first_line:_[_.length-(a||1)].first_line,last_line:_[_.length-1].last_line,first_column:_[_.length-(a||1)].first_column,last_column:_[_.length-1].last_column},I&&(n._$.range=[_[_.length-(a||1)].range[0],_[_.length-1].range[1]]),y=this.performAction.apply(n,[x,A,T,P.yy,e[1],v,_].concat(z)),typeof y<"u")return y;a&&(f=f.slice(0,-1*a*2),v=v.slice(0,-1*a),_=_.slice(0,-1*a)),f.push(this.productions_[e[1]][0]),v.push(n.$),_.push(n._$),p=E[f[f.length-2]][f[f.length-1]],f.push(p);break;case 3:return!0}}return!0},"parse"),"parse")};h.lexer=(function(){return{EOF:1,parseError:g(l(function(c,d){if(this.yy.parser)this.yy.parser.parseError(c,d);else throw new Error(c)},"parseError"),"parseError"),setInput:g(function(r,c){return this.yy=c||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:g(function(){var r=this._input[0];return this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r,r.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),r},"input"),unput:g(function(r){var c=r.length,d=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var f=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var m=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===f.length?this.yylloc.first_column:0)+f[f.length-d.length].length-d[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:g(function(){return this._more=!0,this},"more"),reject:g(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:g(function(r){this.unput(this.match.slice(r))},"less"),pastInput:g(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:g(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:g(function(){var r=this.pastInput(),c=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
@@ -1 +1 @@
1
- var ke=Object.defineProperty;var n=(s,t)=>ke(s,"name",{value:t,configurable:!0});import{a as fe}from"./rolldown-runtime-DhZMWcEn.js";import{t as Se}from"./building-complex-DciZTnys.js";import{$A as Ie,$S as w,AE as Ae,Bc as De,Cb as $e,Cx as Re,Db as we,Eb as Ee,Ex as Te,Fc as ze,GS as A,Gb as Pe,HC as ae,HS as Ue,IE as _e,Ic as Me,Jp as J,ME as ee,Mb as ie,NE as k,Nc as Fe,OE as Le,Ob as Ge,Pc as Oe,Qv as oe,Rc as qe,Sb as He,Sp as Be,Tb as Ke,To as Qe,Tx as We,VD as Ve,WE as re,Yb as Ye,Zp as K,__ as Je,_v as Ze,_w as L,ab as Xe,bE as Q,cv as es,df as xe,dy as ss,fy as ts,gO as ns,hC as as,hE as G,hw as is,kT as rs,kb as ls,lf as M,ly as os,mC as cs,mb as le,my as ds,nj as us,oT as ge,ov as ms,pm as ve,qE as be,rS as ps,sy as hs,uC as de,uE as W,ub as V,ux as Y,uy as fs,vb as xs,vp as gs,wb as vs,xE as Z,xb as bs,yb as js,yp as je,zE as P,zc as ys}from"./index-Bt31d8ga.js";import{n as Ns}from"./googleAccessRemoval-CQIi1dvu.js";import{t as Cs}from"./QuotaBar-DIFOT9Uh.js";function ks(s,t){return t==="subscription"?s==="openai"||s==="anthropic"||s==="xai":s==="openrouter"}n(ks,"supportsAiConnectionUsage");function Ws(s){return s.config?.sourceTemplateKey==="composio"&&s.transport==="rest_api"||s.config?.provider==="composio"}n(Ws,"isRetiredComposioConnection");var Vs="This legacy Composio connection is no longer supported. Add a new Composio MCP connection from Connectors, then remove this connection. Existing credentials and permissions are not migrated.",b=fe(us(),1);function ue(s,t){return s.findAll(t.filters).map(r=>t.select?t.select(r):r.state)}n(ue,"getResult");function Ss(s={},t){const r=ee(t).getMutationCache(),a=b.useRef(s),i=b.useRef(null);return i.current===null&&(i.current=ue(r,s)),b.useEffect(()=>{a.current=s}),b.useSyncExternalStore(b.useCallback(l=>r.subscribe(()=>{const d=Ae(i.current,ue(r,a.current));i.current!==d&&(i.current=d,Le.schedule(l))}),[r]),()=>i.current,()=>i.current)}n(Ss,"useMutationState");var Ys={list:n(s=>W.get(`/companies/${s}/ai-connection-pools`),"list"),save:n((s,t)=>W.post(`/companies/${s}/ai-connection-pools`,t),"save"),inspect:n((s,t)=>W.get(`/companies/${s}/ai-connection-pools/${t}/inspection`),"inspect"),remove:n((s,t,r)=>W.delete(`/companies/${s}/ai-connection-pools/${t}`,{expectedRevision:r}),"remove")},e=fe(Ie(),1),X=n(s=>be(s,{maximumFractionDigits:20}),"usageNumber"),_=n((s,t)=>t==="USD"?be(s,{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:20}):`${X(s)}${t?` ${t}`:""}`,"amount");function me(s){const t=s.label.replace(/\b(\d+(?:\.\d+)?) hour limit\b/i,"$1h").replace(/\bweekly limit\b/i,"Weekly");if(s.windowDurationSeconds==null)return t;const r=s.windowDurationSeconds/3600,a=r===168?"Weekly":`${X(r)}h`;return/\b(?:Primary|Secondary)$/.test(t)?`${t} · ${a}`:r===168&&/weekly/i.test(t)||t.split(/[\s·()]+/).includes(a)?t:`${t} · ${a}`}n(me,"limitLabel");function pe(s){return s.used===0&&s.limit===0?`${_(s.limit,s.unit)} cap`:s.used!=null&&s.limit!=null?`${_(s.used,s.unit)} / ${_(s.limit,s.unit)} used`:s.usedPercent!=null?`${X(s.usedPercent)}% used`:s.used!=null?`${_(s.used,s.unit)} used`:s.remainingPercent!=null?`${X(s.remainingPercent)}% left`:"Not reported"}n(pe,"limitValue");function Is(s){const t=[];return s.allowed===!1?t.push("Blocked"):s.limitReached===!0&&t.push("Limit reached"),s.allowed===!0&&(s.limitReached===!0||s.usedPercent==null)&&t.push("Usage allowed"),(s.used==null||s.limit==null)&&(s.remaining!=null&&t.push(`${_(s.remaining,s.unit)} left`),s.limit!=null&&t.push(`${_(s.limit,s.unit)} cap`)),s.resetsAt?t.push(`Resets ${re(s.resetsAt,{includeYear:!1})}`):s.resetInterval&&t.push(`Resets ${s.resetInterval}`),t.join(" · ")}n(Is,"limitDetails");function As(s){const t=s.overage,r=[t.available===!0?"Available":t.enabled===!1?"Off":t.available===!1?t.enabled===!0?"On · Unavailable":"Unavailable":t.enabled===!0?"On · Availability unknown":"Not reported"];return t.unlimited===!0?r.push("Unlimited"):t.balance!=null&&(t.balance!==0||t.enabled!==!1)&&r.push(_(t.balance,t.unit)),t.remaining!=null&&(t.remaining!==0||t.enabled!==!1)&&!s.limits.some(a=>a.scope==="overage"&&a.remaining===t.remaining&&a.unit===t.unit)&&r.push(`${_(t.remaining,t.unit)} left`),r.join(" · ")}n(As,"overageSummary");function Ds(s){switch(s.errorCode){case"authentication_required":return"Sign in again to check usage.";case"permission_denied":return"Usage access denied.";case"rate_limited":return"Too many checks. Try again later.";case"provider_unavailable":return"Provider unavailable. Try again.";case"invalid_response":return"Couldn’t read usage. Try again.";case"connection_unavailable":return"Reconnect to check usage.";case"unsupported":return"Usage unavailable.";default:return s.message??"Usage unavailable."}}n(Ds,"usageError");function $s({account:s,observation:t,cachedOnly:r=!1}){const a=Q({mutationFn:n(()=>K.probeUsage(s.companyId,s.id,s.grantId),"mutationFn")}),i=ks(s.provider,s.method),l=r?t:a.isSuccess?a.data:void 0;return(0,e.jsxs)("section",{"aria-label":"Account usage limits",className:"space-y-3",children:[(0,e.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,e.jsx)("h3",{className:"text-sm font-semibold",children:"Usage"}),i&&!r&&(0,e.jsx)(k,{variant:"outline",size:"sm",disabled:a.isPending||s.status!=="connected",onClick:n(()=>a.mutate(),"onClick"),children:a.isPending?"Checking…":l?.status==="ok"?"Refresh":"Check usage"})]}),r&&!l&&(0,e.jsx)("p",{className:"text-xs text-muted-foreground",children:"Usage not observed."}),!i&&(0,e.jsx)("p",{className:"text-xs text-muted-foreground",children:"Unavailable for this sign-in method."}),a.error&&(0,e.jsx)("p",{role:"alert",className:"text-sm text-destructive",children:G(a.error).body}),l&&l.status!=="ok"&&(0,e.jsx)("p",{role:l.status==="unsupported"?"status":"alert",className:"text-sm text-muted-foreground",children:Ds(l)}),l?.status==="ok"&&(0,e.jsxs)("div",{className:"space-y-3","aria-live":"polite",children:[l.limits.length===0&&(0,e.jsx)("p",{className:"text-xs text-muted-foreground",children:"Usage not reported."}),l.limits.map(d=>{const u=Is(d);return(0,e.jsxs)("div",{className:"space-y-1.5",children:[d.usedPercent!=null?(0,e.jsx)(Cs,{label:me(d),percentUsed:d.usedPercent,leftLabel:pe(d)}):(0,e.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[(0,e.jsx)("span",{className:"text-muted-foreground",children:me(d)}),(0,e.jsx)("span",{className:"font-mono",children:pe(d)})]}),u&&(0,e.jsx)("p",{className:"text-xs text-muted-foreground",children:u})]},d.id)}),l.overage&&(0,e.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[(0,e.jsx)("span",{className:"text-muted-foreground",children:"Overage"}),(0,e.jsx)("span",{className:"font-mono",children:As(l)})]}),(0,e.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Updated ",(0,e.jsx)("time",{className:"font-mono",dateTime:l.checkedAt,title:re(l.checkedAt),children:re(l.checkedAt,{includeYear:!1})}),l.planType?` · ${l.planType}`:""]})]})]})}n($s,"AiConnectionUsagePanel");function B(s){return s.name?.trim()||s.email?.trim()||s.userId}n(B,"memberOptionLabel");function Rs({members:s,selectedUserIds:t,onChange:r,onSave:a,loading:i=!1,disabled:l=!1,pending:d=!1,getDescription:u,triggerLabel:f,triggerVariant:m="outline",triggerSize:x="default",triggerFullWidth:v=!0,triggerClassName:N,contentAlign:y="start",emptyMessage:D="No members yet.",showSelectionPreview:p=!0,filterPlaceholder:h="Filter people",onOpenChange:j}){const[C,g]=(0,b.useState)(!1),[S,E]=(0,b.useState)(""),[T,z]=(0,b.useState)(new Set(t)),o=!!a,I=o?T:t;(0,b.useEffect)(()=>{C&&o&&z(new Set(t))},[C,t,o]);const U=S.trim().toLowerCase(),F=(0,b.useMemo)(()=>s.filter(c=>{const $=u?.(c)??c.email??"";return`${B(c)} ${$}`.toLowerCase().includes(U)}).sort((c,$)=>{const H=I.has(c.userId);return H!==I.has($.userId)?H?-1:1:B(c).localeCompare(B($))}),[s,u,U,I]),O=t.size,R=s.filter(c=>t.has(c.userId));function q(c){o?z(c):r?.(c)}return n(q,"setSelection"),(0,e.jsxs)("div",{className:"space-y-2",children:[(0,e.jsxs)(Re,{open:C,onOpenChange:n(c=>{g(c),j?.(c),c||E("")},"onOpenChange"),children:[(0,e.jsx)(Te,{asChild:!0,children:(0,e.jsxs)(k,{type:"button",variant:m,size:x,className:P("justify-between",v&&"w-full",N),disabled:l||d,children:[(0,e.jsx)("span",{className:"flex min-w-0 items-center",children:(0,e.jsx)("span",{className:"truncate",children:f??(O===0?"Select people":`${O} ${O===1?"person":"people"} selected`)})}),(0,e.jsx)(rs,{className:"h-4 w-4 shrink-0 text-muted-foreground"})]})}),(0,e.jsxs)(We,{className:"w-80 p-0",align:y,children:[(0,e.jsx)("div",{className:"border-b border-border p-3",children:(0,e.jsx)(Je,{value:S,onChange:n(c=>E(c.target.value),"onChange"),placeholder:h,className:"h-8",autoFocus:!0})}),i?(0,e.jsxs)("div",{className:"space-y-2 p-3",children:[(0,e.jsx)(le,{className:"h-6 w-full"}),(0,e.jsx)(le,{className:"h-6 w-full"})]}):s.length===0?(0,e.jsx)("div",{className:"px-3 py-4 text-sm text-muted-foreground",children:D}):(0,e.jsxs)("div",{className:"max-h-60 overflow-y-auto py-1",children:[F.map(c=>{const $=B(c),H=u?.(c)??(c.email&&c.email!==$?c.email:null);return(0,e.jsxs)("label",{className:"flex cursor-pointer items-start gap-2 px-3 py-2 hover:bg-accent/30",children:[(0,e.jsx)(Be,{checked:I.has(c.userId),"aria-label":`Allow ${$}`,onCheckedChange:n(Ce=>{const se=new Set(I);Ce?se.add(c.userId):se.delete(c.userId),q(se)},"onCheckedChange")}),(0,e.jsxs)("span",{className:"flex min-w-0 flex-col",children:[(0,e.jsx)(ie,{name:$,avatarUrl:c.image??null,size:"sm"}),H?(0,e.jsx)("span",{className:"truncate text-xs text-muted-foreground",children:H}):null]})]},c.userId)}),F.length===0?(0,e.jsx)("div",{className:"px-3 py-4 text-sm text-muted-foreground",children:"No matches."}):null]}),(0,e.jsxs)("div",{className:"flex items-center justify-between border-t border-border px-3 py-2",children:[(0,e.jsx)("span",{className:"text-xs text-muted-foreground","aria-live":"polite",children:I.size===0?"No people selected":`${I.size} selected`}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[o?(0,e.jsx)(k,{type:"button",variant:"ghost",size:"sm",onClick:n(()=>g(!1),"onClick"),disabled:d,children:"Cancel"}):null,(0,e.jsx)(k,{type:"button",size:"sm",onClick:n(()=>{o&&a?.(T),g(!1)},"onClick"),disabled:d,children:o?d?"Saving…":"Save":"Done"})]})]})]})]}),p&&R.length>0?(0,e.jsxs)("div",{className:"space-y-0.5",children:[R.slice(0,3).map(c=>(0,e.jsx)("div",{className:"flex items-center gap-2 px-1.5 py-1 text-sm",children:(0,e.jsx)(ie,{name:B(c),avatarUrl:c.image??null,size:"sm"})},c.userId)),R.length>3?(0,e.jsxs)("p",{className:"px-1.5 pt-0.5 text-xs text-muted-foreground",children:["and ",R.length-3," more"]}):null]}):null]})}n(Rs,"MemberMultiSelect");var ye="px-4 text-sm text-muted-foreground",ws={connected:Y.green,attention:Y.amber,inactive:Y.gray,missing:Y.gray};function Ne({status:s}){const t=Me(s);return(0,e.jsx)("span",{className:P("inline-flex shrink-0 items-center rounded-full border px-2 py-0.5 text-xs font-medium",ws[t]),children:ze(s)})}n(Ne,"StatusText");function Js({appName:s,credentialPolicy:t,ownerUserId:r,connectedUser:a,dedicatedAgent:i,grantsQuery:l,loading:d,error:u,onConnectAsMe:f,onConnectOrganization:m,onConnectAgent:x,onRefreshAccess:v,refreshAccessPending:N=!1,onReplaceAudience:y,connectPending:D,audiencePending:p,audienceError:h,audienceGrantId:j,onOpenAudience:C,onCloseAudience:g}){const S=l?.grants??[],E=l?.capabilities,T=l?.currentUserId??null,z=l?.members??[],o=(0,b.useMemo)(()=>ys(S),[S]),I=(0,b.useMemo)(()=>De(S,T),[S,T]),U=(0,b.useMemo)(()=>{const c=S.filter($=>$.kind==="user");return c.find($=>$.subjectUserId===r)??I??c.find($=>$.status==="active")??c[0]??null},[S,I,r]),F=(0,b.useMemo)(()=>S.find(c=>c.kind==="agent"&&c.subjectAgentId===i?.id)??S.find(c=>c.kind==="agent")??null,[i?.id,S]),O=qe(z,U?.subjectUserId??r??T),R=t==="per_user"||t==="per_user_with_fallback"&&!!I,q=j?S.find(c=>c.id===j)??null:null;if(d)return(0,e.jsxs)("section",{className:"flex flex-col gap-3","aria-busy":"true",children:[(0,e.jsx)(te,{}),(0,e.jsx)(le,{className:"h-14 w-full rounded-2xl"})]});if(u)return(0,e.jsxs)("section",{className:"flex flex-col gap-3",children:[(0,e.jsx)(te,{}),(0,e.jsx)(ve,{tone:"warning",compact:!0,children:"We couldn't load who this connection acts as. Reload the page to try again."})]});if(t==="per_agent"){const c=F?.providerTenant?.github;return(0,e.jsxs)("section",{className:"flex flex-col gap-3",children:[(0,e.jsx)("h2",{className:ye,children:"GitHub identity"}),(0,e.jsx)("p",{className:"px-4 text-sm text-muted-foreground",children:"This agent uses this GitHub account for everyone’s work, instead of the person giving instructions."}),(0,e.jsx)(ne,{title:c?(0,e.jsxs)("span",{className:w,children:["@",c.login]}):"Dedicated GitHub account",status:F?.status??null,detail:i?(0,e.jsxs)(Pe,{to:_e(i),className:"transition-colors hover:text-foreground hover:underline",children:["Used only by ",i.name]}):"Dedicated to one agent",actions:!F&&i&&E?.canConfigure?(0,e.jsxs)(k,{size:"sm",disabled:D,onClick:n(()=>x(i.id),"onClick"),children:[D?(0,e.jsx)(L,{className:"mr-1.5 h-3.5 w-3.5 animate-spin"}):null,"Connect dedicated account"]}):null}),c?(0,e.jsx)(he,{grant:F,onRefreshAccess:v,refreshPending:N}):null]})}return(0,e.jsxs)("section",{className:"flex flex-col gap-3",children:[(0,e.jsx)(te,{}),(0,e.jsx)(Es,{personal:R,restricted:!R&&!!o?.members?.length,connectedName:R?O??a?.label??null:null,connectedImage:R?a?.image??null:null,status:(R?U:o)?.status??null,canEditAudience:o?.capabilities?.canEditAudience??!1,onChooseAll:n(()=>{o&&y(o,[])},"onChooseAll"),onChooseSelected:n(()=>{o&&C(o.id)},"onChooseSelected")}),(R?U:o)?.providerTenant?.github?(0,e.jsx)(he,{grant:R?U:o,onRefreshAccess:v,refreshPending:N}):null,(0,e.jsx)("div",{children:R?U?null:(0,e.jsx)(ne,{id:"personal-identity",title:"Personal account",status:null,detail:"Personal identity",actions:E?.canConnectAsCurrentUser?(0,e.jsxs)(k,{size:"sm",disabled:D,onClick:f,children:[D?(0,e.jsx)(L,{className:"mr-1.5 h-3.5 w-3.5 animate-spin"}):null,"Connect as me"]}):null}):o?o.capabilities?.canEditAudience?(0,e.jsx)("div",{className:"flex justify-end px-4",children:(0,e.jsx)(k,{size:"sm",variant:"outline",onClick:n(()=>C(o.id),"onClick"),children:"Manage access"})}):null:(0,e.jsx)(ne,{title:"Organization account",status:null,detail:"Organization identity",actions:E?.canCreateOrganizationGrant?(0,e.jsx)(k,{size:"sm",disabled:D,onClick:m,children:"Connect organization identity"}):null})}),q?(0,e.jsx)(Ts,{appName:s,grant:q,members:z,pending:p,error:h,onCancel:g,onSave:n(c=>y(q,c),"onSave")}):null]})}n(Js,"IdentitiesSection");function he({grant:s,onRefreshAccess:t,refreshPending:r}){const a=s.providerTenant?.github;if(!a)return null;const i=a.appSlug?`https://github.com/apps/${encodeURIComponent(a.appSlug)}/installations/new`:/^https:\/\/github\.com\/apps\/[a-z0-9-]+\/installations\/new$/.test(a.installationUrl??"")?a.installationUrl:null,l=a.repositorySelection==="all"?"All current and future repositories":a.repositorySelection==="mixed"?"Mixed access; scope varies by installation":null,d=a.repositorySelection==="none"?"No repositories selected":`${a.repositoryCount} selected ${a.repositoryCount===1?"repository":"repositories"}`;return(0,e.jsxs)("div",{className:"divide-y divide-border overflow-hidden rounded-2xl bg-muted/50",children:[(0,e.jsxs)("div",{className:"flex min-h-11 items-center justify-between gap-4 px-4 py-2",children:[(0,e.jsx)("div",{className:"text-sm text-muted-foreground",children:"GitHub account"}),(0,e.jsxs)("a",{className:P("truncate text-sm text-foreground hover:underline",w),href:`https://github.com/${encodeURIComponent(a.login)}`,target:"_blank",rel:"noreferrer",children:["@",a.login]})]}),(0,e.jsxs)("div",{className:"space-y-3 px-4 py-3",children:[(0,e.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsx)("div",{className:"text-sm font-medium text-foreground",children:"Repositories"}),l?(0,e.jsxs)("div",{role:"note",className:"mt-1 inline-flex h-6 items-center gap-1.5 rounded-md bg-(--status-task-todo)/15 px-2 text-xs text-(--status-task-icon-todo)",children:[(0,e.jsx)(as,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":"true"}),l]}):(0,e.jsx)("div",{className:"text-xs text-muted-foreground",children:d})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[t&&i?(0,e.jsx)(k,{size:"icon-sm",variant:"ghost","aria-label":"Refresh access",title:"Refresh access",disabled:r,onClick:t,children:r?(0,e.jsx)(L,{className:"animate-spin","aria-hidden":"true"}):(0,e.jsx)(ae,{"aria-hidden":"true"})}):null,i?(0,e.jsx)(k,{asChild:!0,size:"sm",variant:"outline",children:(0,e.jsx)("a",{href:i,target:"_blank",rel:"noreferrer",children:"Add More Repos on GitHub"})}):t?(0,e.jsxs)(k,{size:"sm",variant:"outline",disabled:r,onClick:t,children:[r?(0,e.jsx)(L,{className:"animate-spin","aria-hidden":"true"}):(0,e.jsx)(ae,{"aria-hidden":"true"}),"Load GitHub configuration"]}):null]})]}),a.repositories?a.repositories.length?(0,e.jsx)("ul",{"aria-label":"Accessible GitHub repositories",tabIndex:0,className:P("max-h-(--sz-github-repository-list) space-y-2 overflow-y-auto text-sm",w),children:a.repositories.map(u=>(0,e.jsx)("li",{children:(0,e.jsxs)("a",{className:"flex items-center gap-2 text-muted-foreground hover:underline",href:`https://github.com/${u.fullName.split("/").map(encodeURIComponent).join("/")}`,target:"_blank",rel:"noreferrer",children:[(0,e.jsx)(Qe,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":"true"}),(0,e.jsx)("span",{className:"break-all",children:u.fullName}),u.private===!0?(0,e.jsx)(is,{className:"h-3 w-3 shrink-0",role:"img","aria-label":"Private repository"}):null]})},u.id))}):(0,e.jsx)("p",{role:"status",className:"text-sm text-muted-foreground",children:"No accessible repositories."}):(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"Refresh access to load the current repository list."}),i?(0,e.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Missing an organization or repository? ",(0,e.jsx)("a",{href:i,target:"_blank",rel:"noreferrer",className:"text-foreground hover:underline",children:"Configure access on GitHub"}),", then refresh this list."]}):null]})]})}n(he,"GitHubConnectionSummary");function te(){return(0,e.jsx)("h2",{className:ye,children:"Which humans can use this credential?"})}n(te,"IdentitiesHeading");function Es({personal:s,restricted:t,connectedName:r,connectedImage:a,status:i,canEditAudience:l,onChooseAll:d,onChooseSelected:u}){return(0,e.jsxs)("div",{className:"space-y-3",children:[(0,e.jsx)(je,{ariaLabel:"Which humans can use this credential",value:s?"personal":t?"selected":"company",className:"*:rounded-2xl sm:grid-cols-2",onValueChange:n(f=>{!l||s||(f==="company"&&d(),f==="selected"&&u())},"onValueChange"),options:s?[{value:"personal",title:"Just me",description:"Only you can use this connection.",icon:(0,e.jsx)(de,{className:"h-4 w-4"})}]:[{value:"selected",title:"Humans I pick",description:"Only selected people in your company.",icon:(0,e.jsx)(de,{className:"h-4 w-4"}),disabled:!l},{value:"company",title:"Any human in the company",description:"Anyone in your company can use this connection.",icon:(0,e.jsx)(Se,{className:"h-4 w-4"}),disabled:!l}]}),r&&i!==null?(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2 px-4",children:[(0,e.jsx)(ie,{name:r,avatarUrl:a,className:w}),i==="active"?null:(0,e.jsx)(Ne,{status:i})]}):null]})}n(Es,"HumanAccessCards");function ne({id:s,title:t,status:r,detail:a,actions:i}){return(0,e.jsxs)("div",{id:s,className:"flex flex-col gap-4 rounded-2xl bg-muted/50 px-4 py-3 sm:flex-row sm:items-center sm:justify-between sm:gap-8",children:[(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,e.jsx)("span",{className:"text-sm font-semibold text-foreground",children:t}),r==="active"?null:(0,e.jsx)(Ne,{status:r})]}),a?(0,e.jsx)("div",{className:"mt-0.5 text-xs text-muted-foreground",children:a}):null]}),(0,e.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:i})]})}n(ne,"IdentityRow");function Ts({appName:s,grant:t,members:r,pending:a,error:i,onCancel:l,onSave:d}){const u=(0,b.useMemo)(()=>Fe(t),[t]),[f,m]=(0,b.useState)(u.size===0?"all":"selected"),[x,v]=(0,b.useState)(u);(0,b.useEffect)(()=>{v(u),m(u.size===0?"all":"selected")},[u]);const N=f==="all"||x.size>0;return(0,e.jsx)(hs,{open:!0,onOpenChange:n(y=>{y||l()},"onOpenChange"),children:(0,e.jsxs)(os,{className:w,children:[(0,e.jsxs)(ts,{children:[(0,e.jsx)(ds,{children:"Who can use this identity"}),(0,e.jsxs)(fs,{className:w,children:[Oe(t)," · ",s]})]}),(0,e.jsxs)("div",{className:"space-y-3",children:[(0,e.jsx)(je,{ariaLabel:"Who can use this identity",value:f,onValueChange:n(y=>m(y),"onValueChange"),options:[{value:"all",title:"All organization members",description:"Anyone in this organization can have work use this identity."},{value:"selected",title:"Selected members",description:"Only the people you choose."}]}),f==="selected"?(0,e.jsx)(Rs,{members:r.map(y=>({userId:y.userId,name:y.name,email:y.email})),selectedUserIds:x,onChange:v,triggerLabel:x.size===0?"Choose people":`${x.size} ${x.size===1?"person":"people"} selected`}):null,(0,e.jsx)("p",{className:"text-xs text-muted-foreground",children:"This controls whose work can use the identity. It does not change which agents have the connection."}),i?(0,e.jsx)(ve,{tone:"warning",compact:!0,children:i}):null]}),(0,e.jsxs)(ss,{children:[(0,e.jsx)(k,{variant:"ghost",onClick:l,disabled:a,children:"Cancel"}),(0,e.jsxs)(k,{disabled:a||!N,onClick:n(()=>d(f==="all"?[]:[...x]),"onClick"),children:[a?(0,e.jsx)(L,{className:"mr-2 h-4 w-4 animate-spin"}):null,"Save audience"]})]})]})})}n(Ts,"AudienceDialog");function zs({grant:s,providerName:t,pending:r,isOwnIdentity:a,credentialPolicy:i,description:l,children:d,onCancel:u,onConfirm:f}){const m=s.kind==="user",x=m?a?`Revoke your ${t} identity?`:`Revoke this ${t} identity?`:"Revoke the organization identity?";return(0,e.jsx)(He,{open:!0,onOpenChange:n(v=>{v||u()},"onOpenChange"),children:(0,e.jsxs)(Ke,{className:w,children:[(0,e.jsxs)(Ge,{children:[(0,e.jsx)(ls,{className:w,children:x}),(0,e.jsx)(Ee,{children:l??(m?a?"Agents will stop acting as you. Work that needs this identity can ask you to connect again.":"Agents will stop acting as this person. They can connect again themselves; no one else can do it for them.":i==="per_user"?"Installed agents lose this shared identity immediately.":"Eligible members and installed agents will lose this shared identity immediately.")})]}),d,(0,e.jsxs)(we,{children:[(0,e.jsx)(vs,{disabled:r,autoFocus:!0,children:"Cancel"}),(0,e.jsx)($e,{disabled:r,onClick:n(v=>{v.preventDefault(),f()},"onClick"),children:"Revoke identity"})]})]})})}n(zs,"RevokeGrantDialog");function Ps({account:s}){const[t,r]=(0,b.useState)(!1),a=`Your default for ${M[s.provider].name}`;return(0,e.jsxs)(xs,{open:t,onOpenChange:r,children:[(0,e.jsx)(bs,{asChild:!0,children:(0,e.jsx)("button",{type:"button","aria-label":a,className:"shrink-0 rounded-sm text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",onClick:n(i=>{i.preventDefault(),r(!0)},"onClick"),children:(0,e.jsx)(ge,{className:"size-4","aria-hidden":"true"})})}),(0,e.jsx)(js,{className:w,children:a})]})}n(Ps,"AiDefaultCrown");function Zs({account:s,pending:t,onSelect:r}){const a=M[s.provider].name,i=s.unavailableReason??(s.status!=="connected"?"Reconnect this account before making it your default.":null);return(0,e.jsxs)(Ze,{disabled:s.isDefault||t||!!i,onSelect:r,children:[t?(0,e.jsx)(L,{className:"animate-spin","aria-hidden":"true"}):(0,e.jsx)(ge,{"aria-hidden":"true"}),(0,e.jsxs)("span",{className:"flex min-w-0 flex-col gap-1",children:[(0,e.jsx)("span",{children:s.isDefault?`Default for ${a}`:`Set as default for ${a}`}),!s.isDefault&&i&&(0,e.jsx)("span",{className:"text-xs text-muted-foreground",children:i})]})]})}n(Zs,"AiDefaultMenuItem");function Us({provider:s,pending:t,onRetry:r}){return(0,e.jsxs)("div",{role:"alert",className:"flex flex-wrap items-center gap-2 text-sm text-destructive",children:[(0,e.jsxs)("p",{children:["Couldn’t change your ",s," default."]}),(0,e.jsx)(k,{variant:"outline",size:"sm",disabled:t,onClick:r,children:"Retry"})]})}n(Us,"AiDefaultError");function ce(s,t){return s.ownership==="personal"&&s.ownerUserId===t&&!s.routing}n(ce,"isOwnAiAccount");function _s(s,t){const r=new Map;for(const a of s){if(!ce(a,t))continue;const i=JSON.stringify([a.companyId,a.id]),l=r.get(i);l?l.push(a):r.set(i,[a])}return new Map([...r].map(([a,i])=>[a,i.length===1?i[0]:i.find(l=>l.isDefault)]))}n(_s,"indexAiAccounts");function Ms(s,t,r=!0){const a=ee(),i=ms(),l=JSON.stringify([s,t.userId,t.settled]),d=(0,b.useRef)(l);d.current=l,(0,b.useEffect)(()=>(d.current=l,()=>{d.current=null}),[l]);const u=["ai-connections",s,void 0,t.userId],f=Z({queryKey:u,queryFn:n(async({signal:p})=>{const h=await K.list(s,void 0,{signal:p,fresh:!0});if(t.userId&&h.currentUserId!==t.userId)throw new Error("Your account changed. Refresh your connections.");return h},"queryFn"),enabled:!!s&&t.settled&&r,retry:oe(1),refetchOnWindowFocus:"always"}),m=["ai-default",s,t.userId],x=Ss({filters:{mutationKey:m,status:"pending"},select:n(p=>p.state.variables.account.provider,"select")}),v=Q({mutationKey:m,mutationFn:n(async p=>{const h=p.retry?(await f.refetch({throwOnError:!0})).data:f.data,j=h?.connections.find(C=>C.id===p.account.id&&C.grantId===p.account.grantId);if(d.current!==p.scope||!t.settled||!h||!j||j.companyId!==s||!ce(j,h.currentUserId)||!j.canSetDefault||j.status!=="connected"||j.unavailableReason)throw new Error("This account is unavailable as your default. Refresh or reconnect it, then try again.");j.isDefault||await K.setDefault(j.companyId,j.grantId)},"mutationFn"),onSuccess:n(async(p,h)=>{if(await a.invalidateQueries({queryKey:["ai-connections",h.account.companyId]}),d.current!==h.scope)return;const j=a.getQueryData(u)?.connections.find(C=>C.grantId===h.account.grantId);i?.pushToast(j?.isDefault?{tone:"success",title:`${h.account.name} is now your ${M[h.account.provider].name} default`}:{tone:"info",title:`Your ${M[h.account.provider].name} default was updated`,body:"The latest saved selection is shown in Connectors."})},"onSuccess"),onError:n((p,h)=>{d.current===h.scope&&i?.pushToast({tone:"error",title:`Couldn’t change your ${M[h.account.provider].name} default`,body:G(p).body,action:{label:"Retry",onClick:n(()=>N(h.account,!0,h.scope),"onClick")}})},"onError")});function N(p,h=!1,j=l){d.current!==j||!t.settled||!s||a.getMutationCache().findAll({mutationKey:m,status:"pending"}).some(C=>C.state.variables.account.provider===p.provider)||v.mutate({account:p,retry:h,scope:j})}n(N,"choose");const y=t.settled&&(!t.userId||f.data?.currentUserId===t.userId)?f.data:void 0,D=(0,b.useMemo)(()=>y?_s(y.connections,y.currentUserId):void 0,[y]);return{accounts:f,data:y,accountForConnection:n(p=>p.connectionPurpose==="ai"&&!Ve(p)?D?.get(JSON.stringify([p.companyId,p.id])):void 0,"accountForConnection"),choose:N,pending:n(p=>x.includes(p),"pending"),error:v.variables?.scope===l?v.error:null,failedProvider:v.variables?.account.provider,retry:n(()=>{v.variables&&N(v.variables.account,!0,v.variables.scope)},"retry")}}n(Ms,"useAiConnectionDefaults");function Fs({account:s,grant:t,currentUserId:r,readOnly:a,defaultPending:i,onMakeDefault:l,onReconnect:d,onRevoke:u,revocationDetails:f}){const[m,x]=(0,b.useState)(!1),[v,N]=(0,b.useState)(!1),[y,D]=(0,b.useState)(),p=ce(s,r),h=s.status==="connected",j=s.isDefault&&h,C=M[s.provider].name;return(0,e.jsxs)("section",{className:"space-y-4","aria-label":"AI account settings",children:[p&&(0,e.jsxs)("div",{className:P("flex flex-wrap items-center justify-between gap-3 rounded-lg border border-border p-3",j&&"border-(--status-task-done)/30 bg-(--status-task-done)/5"),children:[(0,e.jsxs)("div",{className:"flex items-center gap-3",children:[s.isDefault&&(0,e.jsx)(Ps,{account:s}),(0,e.jsx)("h3",{role:s.isDefault?"status":void 0,className:P("text-sm font-semibold",s.isDefault&&!h&&"text-destructive"),children:s.isDefault?h?`Default for ${C}`:"Default unavailable":`Your ${C} default`})]}),!s.isDefault&&(!a&&s.canSetDefault?(0,e.jsxs)(k,{variant:"outline",size:"sm",disabled:!h||!!s.unavailableReason||i,onClick:l,children:["Set as default for ",C]}):(0,e.jsx)("span",{className:"text-xs text-muted-foreground",children:"Not default"}))]}),(0,e.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,e.jsx)("div",{className:"min-w-0 text-sm",children:(0,e.jsxs)("p",{className:P("break-words text-xs text-muted-foreground",w),children:[s.method==="subscription"?"Subscription":"API key",s.accountLabel?` · ${s.accountLabel}`:""]})}),!a&&t.capabilities?.canRevoke&&(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,e.jsxs)(k,{variant:"outline",size:"sm",onClick:d,children:[(0,e.jsx)(ae,{className:"size-4","aria-hidden":!0}),"Reconnect"]}),s.status!=="revoked"&&(0,e.jsxs)(k,{variant:"ghost",size:"sm",className:"text-destructive",onClick:n(()=>x(!0),"onClick"),children:[(0,e.jsx)(cs,{className:"size-4","aria-hidden":!0}),"Revoke identity"]})]})]}),m&&(0,e.jsxs)(zs,{grant:t,providerName:s.name,pending:v,credentialPolicy:s.ownership==="shared"?"shared":"per_user",isOwnIdentity:s.ownerUserId===r,description:"New runs using this account will be blocked. Existing runs may retain credentials already issued to them. No other account will be selected automatically.",onCancel:n(()=>x(!1),"onCancel"),onConfirm:n(async()=>{N(!0),D(void 0);try{await u(),x(!1)}catch(g){D(G(g).body)}finally{N(!1)}},"onConfirm"),children:[y&&(0,e.jsx)("p",{role:"alert",className:"text-sm text-destructive",children:y}),f]})]})}n(Fs,"AiConnectionAccountControls");function Ls({account:s,grant:t}){const r=s.provider==="openai"&&s.method==="subscription"&&!s.routing,a=!s.routing&&(s.provider==="anthropic"||r)&&s.method==="subscription"&&s.status==="connected",i=Z({queryKey:["ai-account-identity",s.companyId,s.id,t.id,t.updatedAt],queryFn:n(({signal:f})=>K.accountIdentity(s.companyId,s.id,t.id,{signal:f}),"queryFn"),enabled:a,staleTime:3e5,retry:oe(0)}),l=i.data?.accountLabel??s.accountLabel,d=i.error?G(i.error).body:i.data?.message,u=i.isError||i.data?.status==="error";return(0,e.jsxs)("section",{className:"space-y-3","aria-label":"Connected account",children:[(0,e.jsx)("h3",{className:"text-sm font-semibold",children:"Connected account"}),(0,e.jsxs)("dl",{className:"grid grid-cols-2 gap-3 text-sm",children:[(0,e.jsxs)("dt",{className:"text-muted-foreground",children:[M[s.provider].name," account"]}),(0,e.jsx)("dd",{className:P("break-words",w),children:l??"Not available"}),(r||i.data?.organizationLabel)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("dt",{className:"text-muted-foreground",children:r?"ChatGPT workspace":"Organization"}),(0,e.jsx)("dd",{className:P("break-words","ph-mask ph-sensitive"),children:i.data?.organizationLabel??(i.isPending&&a?"Checking…":"Not available")})]}),(0,e.jsx)("dt",{className:"text-muted-foreground",children:"Sign-in method"}),(0,e.jsx)("dd",{children:xe(s.provider,s.method)}),(0,e.jsx)("dt",{className:"text-muted-foreground",children:"Access"}),(0,e.jsx)("dd",{children:s.ownership==="shared"?"Company shared":`Personal · ${s.ownerName??"Account owner"}`})]}),a&&i.isPending&&(0,e.jsx)("p",{role:"status",className:"text-xs text-muted-foreground",children:"Checking account details…"}),d&&(0,e.jsx)("p",{role:u?"alert":void 0,className:"text-xs text-muted-foreground",children:d}),u&&(0,e.jsx)(k,{variant:"outline",size:"sm",disabled:i.isFetching,onClick:n(()=>{i.refetch()},"onClick"),children:"Retry account check"})]})}n(Ls,"AiConnectionAccountDetails");function Xs({connection:s}){const t=s.config?.ai;return t?(0,e.jsxs)("p",{className:"text-xs text-muted-foreground",children:[t.routing?t.routing.kind==="bedrock"?`Bedrock · ${t.routing.region}`:t.routing.kind==="openrouter"?"OpenRouter":t.routing.baseUrl:xe(t.provider,t.method)," ·"," ",s.credentialPolicy==="per_user"?"Personal":"Company shared"]}):null}n(Xs,"ManagedAiConnectionRow");function et({connection:s}){const t=ee(),r=Ye(),a=Z({queryKey:["ai-connection-active-runs",s.id],queryFn:n(()=>K.activeRuns(s.companyId,s.id),"queryFn")}),i=Ue(),l=Ms(s.companyId,{userId:i.data?.user.id??null,settled:i.isSuccess}),d=l.accounts,u=Z({queryKey:A.tools.connectionGrants(s.id),queryFn:n(({signal:o})=>J.listConnectionGrants(s.id,{signal:o}),"queryFn"),retry:oe(1)}),f=V(a),m=V(i),x=V(d),v=V(u),N=n(()=>t.invalidateQueries(),"refresh"),{pushToast:y}=es(),D=Q({mutationFn:n(o=>J.revokeConnectionGrant(s.id,o),"mutationFn"),onSuccess:n(o=>{const I=Ns(o.signInRemoval);return I&&y({title:"Account disconnected",body:I.body,tone:I.tone,...I.action?{action:I.action}:{}}),N()},"onSuccess")}),p=Q({mutationFn:n(o=>ps.cancel(o),"mutationFn"),onSuccess:N}),h=new Set(u.data?.grants.map(o=>o.id)),j=l.data?.connections.filter(o=>o.id===s.id&&o.companyId===s.companyId&&h.has(o.grantId))??[],C=n(o=>o.ownership==="personal"&&o.ownerUserId===l.data?.currentUserId,"ownPersonal"),g=j.find(o=>C(o)&&o.isDefault)??j.find(C)??j[0],S=u.data?.grants.find(o=>o.id===g?.grantId),E=[m,x,v].find(o=>o.kind==="error")?.error,T=p.error,z=E?(0,e.jsxs)("div",{role:"alert",className:"space-y-2",children:[(0,e.jsx)("p",{className:"text-sm text-destructive",children:G(E).body}),(0,e.jsx)(k,{variant:"outline",size:"sm",disabled:m.isFetching||d.isFetching||u.isFetching,onClick:n(()=>{if(m.kind==="error"){m.retry();return}d.error&&d.refetch(),u.error&&u.refetch()},"onClick"),children:"Retry"})]}):null;return(!g||!S)&&z?z:!g||!S?(0,e.jsx)("p",{role:"status",className:"text-sm text-muted-foreground",children:d.isPending||u.isPending||m.kind==="reconnecting"||x.kind==="reconnecting"||v.kind==="reconnecting"?"Loading AI account…":"This account is not available to you."}):(0,e.jsxs)("div",{className:"space-y-4",children:[z,T&&(0,e.jsx)("p",{role:"alert",className:"text-sm text-destructive",children:G(T).body}),l.error&&l.failedProvider&&(0,e.jsx)(Us,{provider:M[l.failedProvider].name,pending:l.pending(l.failedProvider),onRetry:l.retry}),(0,e.jsx)(Ls,{account:g,grant:S}),g.routing&&(0,e.jsxs)("details",{className:"rounded-lg border border-border p-4",children:[(0,e.jsx)("summary",{className:"cursor-pointer text-sm font-medium",children:"Provider settings"}),(0,e.jsxs)("dl",{className:"mt-4 grid grid-cols-2 gap-3 text-sm",children:[(0,e.jsx)("dt",{className:"text-muted-foreground",children:"Destination"}),(0,e.jsx)("dd",{className:"break-all",children:g.routing.baseUrl??(g.routing.kind==="bedrock"?g.routing.region:"OpenRouter")}),(0,e.jsx)("dt",{className:"text-muted-foreground",children:"API format"}),(0,e.jsx)("dd",{children:g.routing.kind==="openrouter"?"Selected by harness":g.routing.protocol}),(0,e.jsx)("dt",{className:"text-muted-foreground",children:"Authentication"}),(0,e.jsx)("dd",{children:g.routing.auth}),(0,e.jsx)("dt",{className:"text-muted-foreground",children:"Models"}),(0,e.jsx)("dd",{children:g.routing.models.map(o=>o.label??o.id).join(", ")||"Enter a model ID on the agent"})]})]}),(0,e.jsx)(Fs,{account:g,grant:S,currentUserId:d.data.currentUserId,defaultPending:l.pending(g.provider),onMakeDefault:n(()=>l.choose(g),"onMakeDefault"),onRevoke:n(()=>D.mutateAsync(S.id).then(()=>{}),"onRevoke"),revocationDetails:(0,e.jsxs)("div",{className:"space-y-2",children:[f.kind==="error"&&(0,e.jsx)(Xe,{size:"inline",error:a.error,action:"load active runs",onRetry:f.retry,retrying:f.isFetching}),a.data?.map(o=>(0,e.jsxs)("div",{className:"flex items-center justify-between gap-3 text-sm",children:[(0,e.jsxs)("span",{children:[o.agentName," · ",o.status]}),(0,e.jsx)(k,{variant:"outline",size:"sm",disabled:p.isPending,onClick:n(()=>p.mutate(o.id),"onClick"),children:"Stop run"})]},o.id))]}),onReconnect:n(()=>r(`/apps/connect?source=${ns(g.provider)}&reconnect=${s.id}&method=ai-${g.method}`),"onReconnect")}),(0,e.jsx)($s,{account:g},`${g.id}:${g.grantId}:${g.status}`)]})}n(et,"ManagedAiConnectionDetails");function Gs(s,t){const r=new Set(gs(s.enabled,t));return{enabledCatalogEntryIds:[...r],askFirstCatalogEntryIds:[...s.askFirst].filter(a=>r.has(a)),...s.reviewed?{reviewedCatalogEntryIds:[...s.reviewed]}:{},access:s.access.mode==="all"?"all_agents":{agentIds:[...s.access.agentIds]}}}n(Gs,"finishAppPermissions");function st({companyId:s,connectionId:t,connection:r,catalog:a,onError:i}){const l=ee(),[d,u]=(0,b.useState)(null),f=Q({mutationFn:n(async m=>r?.connectionPurpose==="ai"?J.putConnectionInstalls(t,m.access.mode==="all"?[{targetType:"company",targetId:s}]:[...m.access.agentIds].map(x=>({targetType:"agent",targetId:x}))):J.finishApp(s,t,Gs(m,a)),"mutationFn"),onMutate:n(async m=>{u(m),await Promise.all([A.tools.connectionProfileConfiguration(s,t),A.tools.policies(s),A.tools.connection(t),A.tools.connectionInstalls(t)].map(x=>l.cancelQueries({queryKey:x})))},"onMutate"),onSuccess:n(m=>{if("profile"in m){const x={...m.profile,entries:m.profileEntries,bindings:m.profileBindings};l.setQueryData(A.tools.connectionProfileConfiguration(s,t),v=>({profiles:[...(v?.profiles??[]).filter(N=>N.profileKey!==m.profile.profileKey),x]})),l.setQueryData(A.tools.policies(s),v=>({policies:[...(v?.policies??[]).filter(N=>!(N.policyType==="require_approval"&&N.config?.source==="app_gallery_finish"&&N.config.connectionId===t)),...m.policies]})),l.setQueryData(A.tools.connection(t),m.connection)}else"installs"in m&&l.setQueryData(A.tools.connectionInstalls(t),m);for(const x of[A.tools.connectionInstalls(t),A.tools.testAgentAccessesForConnection(t),A.tools.connection(t),A.tools.catalog(t),A.tools.profiles(s),A.tools.policies(s),A.tools.connections(s),A.apps.attention(s)])l.invalidateQueries({queryKey:x})},"onSuccess"),onError:i,onSettled:n(()=>u(null),"onSettled")});return{draft:d,pending:f.isPending,save:f.mutate}}n(st,"useConnectionPermissionSave");function tt(s){const t=new Set;for(const r of s?.entries??[])r.effect==="include"&&r.catalogEntryId&&t.add(r.catalogEntryId);return t}n(tt,"enabledCatalogIds");function nt(s,t){const r=new Set;for(const a of s){if(a.policyType!=="require_approval"||a.enabled===!1)continue;const i=a.config??{};i.source==="app_gallery_finish"&&i.connectionId===t&&typeof i.catalogEntryId=="string"&&r.add(i.catalogEntryId)}return r}n(nt,"askFirstCatalogIds");function at(s,t){const r=s?.bindings??[];if(r.some(i=>i.targetType==="company"))return{mode:"all",agentIds:new Set};const a=new Set(r.filter(i=>i.targetType==="agent").map(i=>i.targetId));return a.size>0?{mode:"specific",agentIds:a}:t.onAll?{mode:"all",agentIds:new Set}:{mode:"specific",agentIds:new Set(t.agentIds)}}n(at,"accessFrom");function it(s,t){return t.onAll||s.mode==="all"?{mode:"all",agentIds:new Set}:{mode:"specific",agentIds:new Set([...s.agentIds,...t.agentIds])}}n(it,"accessIncludingInstalls");export{Ws as _,st as a,Ms as c,Zs as d,Js as f,Vs as g,Ys as h,tt as i,Ps as l,$s as m,it as n,et as o,zs as p,nt as r,Xs as s,at as t,Us as u};
1
+ var ke=Object.defineProperty;var n=(s,t)=>ke(s,"name",{value:t,configurable:!0});import{a as fe}from"./rolldown-runtime-DhZMWcEn.js";import{t as Se}from"./building-complex-Dxiyk_pH.js";import{$A as Ie,$S as w,AE as Ae,Bc as De,Cb as $e,Cx as Re,Db as we,Eb as Ee,Ex as Te,Fc as ze,GS as A,Gb as Pe,HC as ae,HS as Ue,IE as _e,Ic as Me,Jp as J,ME as ee,Mb as ie,NE as k,Nc as Fe,OE as Le,Ob as Ge,Pc as Oe,Qv as oe,Rc as qe,Sb as He,Sp as Be,Tb as Ke,To as Qe,Tx as We,VD as Ve,WE as re,Yb as Ye,Zp as K,__ as Je,_v as Ze,_w as L,ab as Xe,bE as Q,cv as es,df as xe,dy as ss,fy as ts,gO as ns,hC as as,hE as G,hw as is,kT as rs,kb as ls,lf as M,ly as os,mC as cs,mb as le,my as ds,nj as us,oT as ge,ov as ms,pm as ve,qE as be,rS as ps,sy as hs,uC as de,uE as W,ub as V,ux as Y,uy as fs,vb as xs,vp as gs,wb as vs,xE as Z,xb as bs,yb as js,yp as je,zE as P,zc as ys}from"./index-BJtnP7H1.js";import{n as Ns}from"./googleAccessRemoval-CQIi1dvu.js";import{t as Cs}from"./QuotaBar-Drp3CaxX.js";function ks(s,t){return t==="subscription"?s==="openai"||s==="anthropic"||s==="xai":s==="openrouter"}n(ks,"supportsAiConnectionUsage");function Ws(s){return s.config?.sourceTemplateKey==="composio"&&s.transport==="rest_api"||s.config?.provider==="composio"}n(Ws,"isRetiredComposioConnection");var Vs="This legacy Composio connection is no longer supported. Add a new Composio MCP connection from Connectors, then remove this connection. Existing credentials and permissions are not migrated.",b=fe(us(),1);function ue(s,t){return s.findAll(t.filters).map(r=>t.select?t.select(r):r.state)}n(ue,"getResult");function Ss(s={},t){const r=ee(t).getMutationCache(),a=b.useRef(s),i=b.useRef(null);return i.current===null&&(i.current=ue(r,s)),b.useEffect(()=>{a.current=s}),b.useSyncExternalStore(b.useCallback(l=>r.subscribe(()=>{const d=Ae(i.current,ue(r,a.current));i.current!==d&&(i.current=d,Le.schedule(l))}),[r]),()=>i.current,()=>i.current)}n(Ss,"useMutationState");var Ys={list:n(s=>W.get(`/companies/${s}/ai-connection-pools`),"list"),save:n((s,t)=>W.post(`/companies/${s}/ai-connection-pools`,t),"save"),inspect:n((s,t)=>W.get(`/companies/${s}/ai-connection-pools/${t}/inspection`),"inspect"),remove:n((s,t,r)=>W.delete(`/companies/${s}/ai-connection-pools/${t}`,{expectedRevision:r}),"remove")},e=fe(Ie(),1),X=n(s=>be(s,{maximumFractionDigits:20}),"usageNumber"),_=n((s,t)=>t==="USD"?be(s,{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:20}):`${X(s)}${t?` ${t}`:""}`,"amount");function me(s){const t=s.label.replace(/\b(\d+(?:\.\d+)?) hour limit\b/i,"$1h").replace(/\bweekly limit\b/i,"Weekly");if(s.windowDurationSeconds==null)return t;const r=s.windowDurationSeconds/3600,a=r===168?"Weekly":`${X(r)}h`;return/\b(?:Primary|Secondary)$/.test(t)?`${t} · ${a}`:r===168&&/weekly/i.test(t)||t.split(/[\s·()]+/).includes(a)?t:`${t} · ${a}`}n(me,"limitLabel");function pe(s){return s.used===0&&s.limit===0?`${_(s.limit,s.unit)} cap`:s.used!=null&&s.limit!=null?`${_(s.used,s.unit)} / ${_(s.limit,s.unit)} used`:s.usedPercent!=null?`${X(s.usedPercent)}% used`:s.used!=null?`${_(s.used,s.unit)} used`:s.remainingPercent!=null?`${X(s.remainingPercent)}% left`:"Not reported"}n(pe,"limitValue");function Is(s){const t=[];return s.allowed===!1?t.push("Blocked"):s.limitReached===!0&&t.push("Limit reached"),s.allowed===!0&&(s.limitReached===!0||s.usedPercent==null)&&t.push("Usage allowed"),(s.used==null||s.limit==null)&&(s.remaining!=null&&t.push(`${_(s.remaining,s.unit)} left`),s.limit!=null&&t.push(`${_(s.limit,s.unit)} cap`)),s.resetsAt?t.push(`Resets ${re(s.resetsAt,{includeYear:!1})}`):s.resetInterval&&t.push(`Resets ${s.resetInterval}`),t.join(" · ")}n(Is,"limitDetails");function As(s){const t=s.overage,r=[t.available===!0?"Available":t.enabled===!1?"Off":t.available===!1?t.enabled===!0?"On · Unavailable":"Unavailable":t.enabled===!0?"On · Availability unknown":"Not reported"];return t.unlimited===!0?r.push("Unlimited"):t.balance!=null&&(t.balance!==0||t.enabled!==!1)&&r.push(_(t.balance,t.unit)),t.remaining!=null&&(t.remaining!==0||t.enabled!==!1)&&!s.limits.some(a=>a.scope==="overage"&&a.remaining===t.remaining&&a.unit===t.unit)&&r.push(`${_(t.remaining,t.unit)} left`),r.join(" · ")}n(As,"overageSummary");function Ds(s){switch(s.errorCode){case"authentication_required":return"Sign in again to check usage.";case"permission_denied":return"Usage access denied.";case"rate_limited":return"Too many checks. Try again later.";case"provider_unavailable":return"Provider unavailable. Try again.";case"invalid_response":return"Couldn’t read usage. Try again.";case"connection_unavailable":return"Reconnect to check usage.";case"unsupported":return"Usage unavailable.";default:return s.message??"Usage unavailable."}}n(Ds,"usageError");function $s({account:s,observation:t,cachedOnly:r=!1}){const a=Q({mutationFn:n(()=>K.probeUsage(s.companyId,s.id,s.grantId),"mutationFn")}),i=ks(s.provider,s.method),l=r?t:a.isSuccess?a.data:void 0;return(0,e.jsxs)("section",{"aria-label":"Account usage limits",className:"space-y-3",children:[(0,e.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,e.jsx)("h3",{className:"text-sm font-semibold",children:"Usage"}),i&&!r&&(0,e.jsx)(k,{variant:"outline",size:"sm",disabled:a.isPending||s.status!=="connected",onClick:n(()=>a.mutate(),"onClick"),children:a.isPending?"Checking…":l?.status==="ok"?"Refresh":"Check usage"})]}),r&&!l&&(0,e.jsx)("p",{className:"text-xs text-muted-foreground",children:"Usage not observed."}),!i&&(0,e.jsx)("p",{className:"text-xs text-muted-foreground",children:"Unavailable for this sign-in method."}),a.error&&(0,e.jsx)("p",{role:"alert",className:"text-sm text-destructive",children:G(a.error).body}),l&&l.status!=="ok"&&(0,e.jsx)("p",{role:l.status==="unsupported"?"status":"alert",className:"text-sm text-muted-foreground",children:Ds(l)}),l?.status==="ok"&&(0,e.jsxs)("div",{className:"space-y-3","aria-live":"polite",children:[l.limits.length===0&&(0,e.jsx)("p",{className:"text-xs text-muted-foreground",children:"Usage not reported."}),l.limits.map(d=>{const u=Is(d);return(0,e.jsxs)("div",{className:"space-y-1.5",children:[d.usedPercent!=null?(0,e.jsx)(Cs,{label:me(d),percentUsed:d.usedPercent,leftLabel:pe(d)}):(0,e.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[(0,e.jsx)("span",{className:"text-muted-foreground",children:me(d)}),(0,e.jsx)("span",{className:"font-mono",children:pe(d)})]}),u&&(0,e.jsx)("p",{className:"text-xs text-muted-foreground",children:u})]},d.id)}),l.overage&&(0,e.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-2 text-xs",children:[(0,e.jsx)("span",{className:"text-muted-foreground",children:"Overage"}),(0,e.jsx)("span",{className:"font-mono",children:As(l)})]}),(0,e.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Updated ",(0,e.jsx)("time",{className:"font-mono",dateTime:l.checkedAt,title:re(l.checkedAt),children:re(l.checkedAt,{includeYear:!1})}),l.planType?` · ${l.planType}`:""]})]})]})}n($s,"AiConnectionUsagePanel");function B(s){return s.name?.trim()||s.email?.trim()||s.userId}n(B,"memberOptionLabel");function Rs({members:s,selectedUserIds:t,onChange:r,onSave:a,loading:i=!1,disabled:l=!1,pending:d=!1,getDescription:u,triggerLabel:f,triggerVariant:m="outline",triggerSize:x="default",triggerFullWidth:v=!0,triggerClassName:N,contentAlign:y="start",emptyMessage:D="No members yet.",showSelectionPreview:p=!0,filterPlaceholder:h="Filter people",onOpenChange:j}){const[C,g]=(0,b.useState)(!1),[S,E]=(0,b.useState)(""),[T,z]=(0,b.useState)(new Set(t)),o=!!a,I=o?T:t;(0,b.useEffect)(()=>{C&&o&&z(new Set(t))},[C,t,o]);const U=S.trim().toLowerCase(),F=(0,b.useMemo)(()=>s.filter(c=>{const $=u?.(c)??c.email??"";return`${B(c)} ${$}`.toLowerCase().includes(U)}).sort((c,$)=>{const H=I.has(c.userId);return H!==I.has($.userId)?H?-1:1:B(c).localeCompare(B($))}),[s,u,U,I]),O=t.size,R=s.filter(c=>t.has(c.userId));function q(c){o?z(c):r?.(c)}return n(q,"setSelection"),(0,e.jsxs)("div",{className:"space-y-2",children:[(0,e.jsxs)(Re,{open:C,onOpenChange:n(c=>{g(c),j?.(c),c||E("")},"onOpenChange"),children:[(0,e.jsx)(Te,{asChild:!0,children:(0,e.jsxs)(k,{type:"button",variant:m,size:x,className:P("justify-between",v&&"w-full",N),disabled:l||d,children:[(0,e.jsx)("span",{className:"flex min-w-0 items-center",children:(0,e.jsx)("span",{className:"truncate",children:f??(O===0?"Select people":`${O} ${O===1?"person":"people"} selected`)})}),(0,e.jsx)(rs,{className:"h-4 w-4 shrink-0 text-muted-foreground"})]})}),(0,e.jsxs)(We,{className:"w-80 p-0",align:y,children:[(0,e.jsx)("div",{className:"border-b border-border p-3",children:(0,e.jsx)(Je,{value:S,onChange:n(c=>E(c.target.value),"onChange"),placeholder:h,className:"h-8",autoFocus:!0})}),i?(0,e.jsxs)("div",{className:"space-y-2 p-3",children:[(0,e.jsx)(le,{className:"h-6 w-full"}),(0,e.jsx)(le,{className:"h-6 w-full"})]}):s.length===0?(0,e.jsx)("div",{className:"px-3 py-4 text-sm text-muted-foreground",children:D}):(0,e.jsxs)("div",{className:"max-h-60 overflow-y-auto py-1",children:[F.map(c=>{const $=B(c),H=u?.(c)??(c.email&&c.email!==$?c.email:null);return(0,e.jsxs)("label",{className:"flex cursor-pointer items-start gap-2 px-3 py-2 hover:bg-accent/30",children:[(0,e.jsx)(Be,{checked:I.has(c.userId),"aria-label":`Allow ${$}`,onCheckedChange:n(Ce=>{const se=new Set(I);Ce?se.add(c.userId):se.delete(c.userId),q(se)},"onCheckedChange")}),(0,e.jsxs)("span",{className:"flex min-w-0 flex-col",children:[(0,e.jsx)(ie,{name:$,avatarUrl:c.image??null,size:"sm"}),H?(0,e.jsx)("span",{className:"truncate text-xs text-muted-foreground",children:H}):null]})]},c.userId)}),F.length===0?(0,e.jsx)("div",{className:"px-3 py-4 text-sm text-muted-foreground",children:"No matches."}):null]}),(0,e.jsxs)("div",{className:"flex items-center justify-between border-t border-border px-3 py-2",children:[(0,e.jsx)("span",{className:"text-xs text-muted-foreground","aria-live":"polite",children:I.size===0?"No people selected":`${I.size} selected`}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[o?(0,e.jsx)(k,{type:"button",variant:"ghost",size:"sm",onClick:n(()=>g(!1),"onClick"),disabled:d,children:"Cancel"}):null,(0,e.jsx)(k,{type:"button",size:"sm",onClick:n(()=>{o&&a?.(T),g(!1)},"onClick"),disabled:d,children:o?d?"Saving…":"Save":"Done"})]})]})]})]}),p&&R.length>0?(0,e.jsxs)("div",{className:"space-y-0.5",children:[R.slice(0,3).map(c=>(0,e.jsx)("div",{className:"flex items-center gap-2 px-1.5 py-1 text-sm",children:(0,e.jsx)(ie,{name:B(c),avatarUrl:c.image??null,size:"sm"})},c.userId)),R.length>3?(0,e.jsxs)("p",{className:"px-1.5 pt-0.5 text-xs text-muted-foreground",children:["and ",R.length-3," more"]}):null]}):null]})}n(Rs,"MemberMultiSelect");var ye="px-4 text-sm text-muted-foreground",ws={connected:Y.green,attention:Y.amber,inactive:Y.gray,missing:Y.gray};function Ne({status:s}){const t=Me(s);return(0,e.jsx)("span",{className:P("inline-flex shrink-0 items-center rounded-full border px-2 py-0.5 text-xs font-medium",ws[t]),children:ze(s)})}n(Ne,"StatusText");function Js({appName:s,credentialPolicy:t,ownerUserId:r,connectedUser:a,dedicatedAgent:i,grantsQuery:l,loading:d,error:u,onConnectAsMe:f,onConnectOrganization:m,onConnectAgent:x,onRefreshAccess:v,refreshAccessPending:N=!1,onReplaceAudience:y,connectPending:D,audiencePending:p,audienceError:h,audienceGrantId:j,onOpenAudience:C,onCloseAudience:g}){const S=l?.grants??[],E=l?.capabilities,T=l?.currentUserId??null,z=l?.members??[],o=(0,b.useMemo)(()=>ys(S),[S]),I=(0,b.useMemo)(()=>De(S,T),[S,T]),U=(0,b.useMemo)(()=>{const c=S.filter($=>$.kind==="user");return c.find($=>$.subjectUserId===r)??I??c.find($=>$.status==="active")??c[0]??null},[S,I,r]),F=(0,b.useMemo)(()=>S.find(c=>c.kind==="agent"&&c.subjectAgentId===i?.id)??S.find(c=>c.kind==="agent")??null,[i?.id,S]),O=qe(z,U?.subjectUserId??r??T),R=t==="per_user"||t==="per_user_with_fallback"&&!!I,q=j?S.find(c=>c.id===j)??null:null;if(d)return(0,e.jsxs)("section",{className:"flex flex-col gap-3","aria-busy":"true",children:[(0,e.jsx)(te,{}),(0,e.jsx)(le,{className:"h-14 w-full rounded-2xl"})]});if(u)return(0,e.jsxs)("section",{className:"flex flex-col gap-3",children:[(0,e.jsx)(te,{}),(0,e.jsx)(ve,{tone:"warning",compact:!0,children:"We couldn't load who this connection acts as. Reload the page to try again."})]});if(t==="per_agent"){const c=F?.providerTenant?.github;return(0,e.jsxs)("section",{className:"flex flex-col gap-3",children:[(0,e.jsx)("h2",{className:ye,children:"GitHub identity"}),(0,e.jsx)("p",{className:"px-4 text-sm text-muted-foreground",children:"This agent uses this GitHub account for everyone’s work, instead of the person giving instructions."}),(0,e.jsx)(ne,{title:c?(0,e.jsxs)("span",{className:w,children:["@",c.login]}):"Dedicated GitHub account",status:F?.status??null,detail:i?(0,e.jsxs)(Pe,{to:_e(i),className:"transition-colors hover:text-foreground hover:underline",children:["Used only by ",i.name]}):"Dedicated to one agent",actions:!F&&i&&E?.canConfigure?(0,e.jsxs)(k,{size:"sm",disabled:D,onClick:n(()=>x(i.id),"onClick"),children:[D?(0,e.jsx)(L,{className:"mr-1.5 h-3.5 w-3.5 animate-spin"}):null,"Connect dedicated account"]}):null}),c?(0,e.jsx)(he,{grant:F,onRefreshAccess:v,refreshPending:N}):null]})}return(0,e.jsxs)("section",{className:"flex flex-col gap-3",children:[(0,e.jsx)(te,{}),(0,e.jsx)(Es,{personal:R,restricted:!R&&!!o?.members?.length,connectedName:R?O??a?.label??null:null,connectedImage:R?a?.image??null:null,status:(R?U:o)?.status??null,canEditAudience:o?.capabilities?.canEditAudience??!1,onChooseAll:n(()=>{o&&y(o,[])},"onChooseAll"),onChooseSelected:n(()=>{o&&C(o.id)},"onChooseSelected")}),(R?U:o)?.providerTenant?.github?(0,e.jsx)(he,{grant:R?U:o,onRefreshAccess:v,refreshPending:N}):null,(0,e.jsx)("div",{children:R?U?null:(0,e.jsx)(ne,{id:"personal-identity",title:"Personal account",status:null,detail:"Personal identity",actions:E?.canConnectAsCurrentUser?(0,e.jsxs)(k,{size:"sm",disabled:D,onClick:f,children:[D?(0,e.jsx)(L,{className:"mr-1.5 h-3.5 w-3.5 animate-spin"}):null,"Connect as me"]}):null}):o?o.capabilities?.canEditAudience?(0,e.jsx)("div",{className:"flex justify-end px-4",children:(0,e.jsx)(k,{size:"sm",variant:"outline",onClick:n(()=>C(o.id),"onClick"),children:"Manage access"})}):null:(0,e.jsx)(ne,{title:"Organization account",status:null,detail:"Organization identity",actions:E?.canCreateOrganizationGrant?(0,e.jsx)(k,{size:"sm",disabled:D,onClick:m,children:"Connect organization identity"}):null})}),q?(0,e.jsx)(Ts,{appName:s,grant:q,members:z,pending:p,error:h,onCancel:g,onSave:n(c=>y(q,c),"onSave")}):null]})}n(Js,"IdentitiesSection");function he({grant:s,onRefreshAccess:t,refreshPending:r}){const a=s.providerTenant?.github;if(!a)return null;const i=a.appSlug?`https://github.com/apps/${encodeURIComponent(a.appSlug)}/installations/new`:/^https:\/\/github\.com\/apps\/[a-z0-9-]+\/installations\/new$/.test(a.installationUrl??"")?a.installationUrl:null,l=a.repositorySelection==="all"?"All current and future repositories":a.repositorySelection==="mixed"?"Mixed access; scope varies by installation":null,d=a.repositorySelection==="none"?"No repositories selected":`${a.repositoryCount} selected ${a.repositoryCount===1?"repository":"repositories"}`;return(0,e.jsxs)("div",{className:"divide-y divide-border overflow-hidden rounded-2xl bg-muted/50",children:[(0,e.jsxs)("div",{className:"flex min-h-11 items-center justify-between gap-4 px-4 py-2",children:[(0,e.jsx)("div",{className:"text-sm text-muted-foreground",children:"GitHub account"}),(0,e.jsxs)("a",{className:P("truncate text-sm text-foreground hover:underline",w),href:`https://github.com/${encodeURIComponent(a.login)}`,target:"_blank",rel:"noreferrer",children:["@",a.login]})]}),(0,e.jsxs)("div",{className:"space-y-3 px-4 py-3",children:[(0,e.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsx)("div",{className:"text-sm font-medium text-foreground",children:"Repositories"}),l?(0,e.jsxs)("div",{role:"note",className:"mt-1 inline-flex h-6 items-center gap-1.5 rounded-md bg-(--status-task-todo)/15 px-2 text-xs text-(--status-task-icon-todo)",children:[(0,e.jsx)(as,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":"true"}),l]}):(0,e.jsx)("div",{className:"text-xs text-muted-foreground",children:d})]}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[t&&i?(0,e.jsx)(k,{size:"icon-sm",variant:"ghost","aria-label":"Refresh access",title:"Refresh access",disabled:r,onClick:t,children:r?(0,e.jsx)(L,{className:"animate-spin","aria-hidden":"true"}):(0,e.jsx)(ae,{"aria-hidden":"true"})}):null,i?(0,e.jsx)(k,{asChild:!0,size:"sm",variant:"outline",children:(0,e.jsx)("a",{href:i,target:"_blank",rel:"noreferrer",children:"Add More Repos on GitHub"})}):t?(0,e.jsxs)(k,{size:"sm",variant:"outline",disabled:r,onClick:t,children:[r?(0,e.jsx)(L,{className:"animate-spin","aria-hidden":"true"}):(0,e.jsx)(ae,{"aria-hidden":"true"}),"Load GitHub configuration"]}):null]})]}),a.repositories?a.repositories.length?(0,e.jsx)("ul",{"aria-label":"Accessible GitHub repositories",tabIndex:0,className:P("max-h-(--sz-github-repository-list) space-y-2 overflow-y-auto text-sm",w),children:a.repositories.map(u=>(0,e.jsx)("li",{children:(0,e.jsxs)("a",{className:"flex items-center gap-2 text-muted-foreground hover:underline",href:`https://github.com/${u.fullName.split("/").map(encodeURIComponent).join("/")}`,target:"_blank",rel:"noreferrer",children:[(0,e.jsx)(Qe,{className:"h-3.5 w-3.5 shrink-0","aria-hidden":"true"}),(0,e.jsx)("span",{className:"break-all",children:u.fullName}),u.private===!0?(0,e.jsx)(is,{className:"h-3 w-3 shrink-0",role:"img","aria-label":"Private repository"}):null]})},u.id))}):(0,e.jsx)("p",{role:"status",className:"text-sm text-muted-foreground",children:"No accessible repositories."}):(0,e.jsx)("p",{className:"text-sm text-muted-foreground",children:"Refresh access to load the current repository list."}),i?(0,e.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Missing an organization or repository? ",(0,e.jsx)("a",{href:i,target:"_blank",rel:"noreferrer",className:"text-foreground hover:underline",children:"Configure access on GitHub"}),", then refresh this list."]}):null]})]})}n(he,"GitHubConnectionSummary");function te(){return(0,e.jsx)("h2",{className:ye,children:"Which humans can use this credential?"})}n(te,"IdentitiesHeading");function Es({personal:s,restricted:t,connectedName:r,connectedImage:a,status:i,canEditAudience:l,onChooseAll:d,onChooseSelected:u}){return(0,e.jsxs)("div",{className:"space-y-3",children:[(0,e.jsx)(je,{ariaLabel:"Which humans can use this credential",value:s?"personal":t?"selected":"company",className:"*:rounded-2xl sm:grid-cols-2",onValueChange:n(f=>{!l||s||(f==="company"&&d(),f==="selected"&&u())},"onValueChange"),options:s?[{value:"personal",title:"Just me",description:"Only you can use this connection.",icon:(0,e.jsx)(de,{className:"h-4 w-4"})}]:[{value:"selected",title:"Humans I pick",description:"Only selected people in your company.",icon:(0,e.jsx)(de,{className:"h-4 w-4"}),disabled:!l},{value:"company",title:"Any human in the company",description:"Anyone in your company can use this connection.",icon:(0,e.jsx)(Se,{className:"h-4 w-4"}),disabled:!l}]}),r&&i!==null?(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2 px-4",children:[(0,e.jsx)(ie,{name:r,avatarUrl:a,className:w}),i==="active"?null:(0,e.jsx)(Ne,{status:i})]}):null]})}n(Es,"HumanAccessCards");function ne({id:s,title:t,status:r,detail:a,actions:i}){return(0,e.jsxs)("div",{id:s,className:"flex flex-col gap-4 rounded-2xl bg-muted/50 px-4 py-3 sm:flex-row sm:items-center sm:justify-between sm:gap-8",children:[(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,e.jsx)("span",{className:"text-sm font-semibold text-foreground",children:t}),r==="active"?null:(0,e.jsx)(Ne,{status:r})]}),a?(0,e.jsx)("div",{className:"mt-0.5 text-xs text-muted-foreground",children:a}):null]}),(0,e.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:i})]})}n(ne,"IdentityRow");function Ts({appName:s,grant:t,members:r,pending:a,error:i,onCancel:l,onSave:d}){const u=(0,b.useMemo)(()=>Fe(t),[t]),[f,m]=(0,b.useState)(u.size===0?"all":"selected"),[x,v]=(0,b.useState)(u);(0,b.useEffect)(()=>{v(u),m(u.size===0?"all":"selected")},[u]);const N=f==="all"||x.size>0;return(0,e.jsx)(hs,{open:!0,onOpenChange:n(y=>{y||l()},"onOpenChange"),children:(0,e.jsxs)(os,{className:w,children:[(0,e.jsxs)(ts,{children:[(0,e.jsx)(ds,{children:"Who can use this identity"}),(0,e.jsxs)(fs,{className:w,children:[Oe(t)," · ",s]})]}),(0,e.jsxs)("div",{className:"space-y-3",children:[(0,e.jsx)(je,{ariaLabel:"Who can use this identity",value:f,onValueChange:n(y=>m(y),"onValueChange"),options:[{value:"all",title:"All organization members",description:"Anyone in this organization can have work use this identity."},{value:"selected",title:"Selected members",description:"Only the people you choose."}]}),f==="selected"?(0,e.jsx)(Rs,{members:r.map(y=>({userId:y.userId,name:y.name,email:y.email})),selectedUserIds:x,onChange:v,triggerLabel:x.size===0?"Choose people":`${x.size} ${x.size===1?"person":"people"} selected`}):null,(0,e.jsx)("p",{className:"text-xs text-muted-foreground",children:"This controls whose work can use the identity. It does not change which agents have the connection."}),i?(0,e.jsx)(ve,{tone:"warning",compact:!0,children:i}):null]}),(0,e.jsxs)(ss,{children:[(0,e.jsx)(k,{variant:"ghost",onClick:l,disabled:a,children:"Cancel"}),(0,e.jsxs)(k,{disabled:a||!N,onClick:n(()=>d(f==="all"?[]:[...x]),"onClick"),children:[a?(0,e.jsx)(L,{className:"mr-2 h-4 w-4 animate-spin"}):null,"Save audience"]})]})]})})}n(Ts,"AudienceDialog");function zs({grant:s,providerName:t,pending:r,isOwnIdentity:a,credentialPolicy:i,description:l,children:d,onCancel:u,onConfirm:f}){const m=s.kind==="user",x=m?a?`Revoke your ${t} identity?`:`Revoke this ${t} identity?`:"Revoke the organization identity?";return(0,e.jsx)(He,{open:!0,onOpenChange:n(v=>{v||u()},"onOpenChange"),children:(0,e.jsxs)(Ke,{className:w,children:[(0,e.jsxs)(Ge,{children:[(0,e.jsx)(ls,{className:w,children:x}),(0,e.jsx)(Ee,{children:l??(m?a?"Agents will stop acting as you. Work that needs this identity can ask you to connect again.":"Agents will stop acting as this person. They can connect again themselves; no one else can do it for them.":i==="per_user"?"Installed agents lose this shared identity immediately.":"Eligible members and installed agents will lose this shared identity immediately.")})]}),d,(0,e.jsxs)(we,{children:[(0,e.jsx)(vs,{disabled:r,autoFocus:!0,children:"Cancel"}),(0,e.jsx)($e,{disabled:r,onClick:n(v=>{v.preventDefault(),f()},"onClick"),children:"Revoke identity"})]})]})})}n(zs,"RevokeGrantDialog");function Ps({account:s}){const[t,r]=(0,b.useState)(!1),a=`Your default for ${M[s.provider].name}`;return(0,e.jsxs)(xs,{open:t,onOpenChange:r,children:[(0,e.jsx)(bs,{asChild:!0,children:(0,e.jsx)("button",{type:"button","aria-label":a,className:"shrink-0 rounded-sm text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",onClick:n(i=>{i.preventDefault(),r(!0)},"onClick"),children:(0,e.jsx)(ge,{className:"size-4","aria-hidden":"true"})})}),(0,e.jsx)(js,{className:w,children:a})]})}n(Ps,"AiDefaultCrown");function Zs({account:s,pending:t,onSelect:r}){const a=M[s.provider].name,i=s.unavailableReason??(s.status!=="connected"?"Reconnect this account before making it your default.":null);return(0,e.jsxs)(Ze,{disabled:s.isDefault||t||!!i,onSelect:r,children:[t?(0,e.jsx)(L,{className:"animate-spin","aria-hidden":"true"}):(0,e.jsx)(ge,{"aria-hidden":"true"}),(0,e.jsxs)("span",{className:"flex min-w-0 flex-col gap-1",children:[(0,e.jsx)("span",{children:s.isDefault?`Default for ${a}`:`Set as default for ${a}`}),!s.isDefault&&i&&(0,e.jsx)("span",{className:"text-xs text-muted-foreground",children:i})]})]})}n(Zs,"AiDefaultMenuItem");function Us({provider:s,pending:t,onRetry:r}){return(0,e.jsxs)("div",{role:"alert",className:"flex flex-wrap items-center gap-2 text-sm text-destructive",children:[(0,e.jsxs)("p",{children:["Couldn’t change your ",s," default."]}),(0,e.jsx)(k,{variant:"outline",size:"sm",disabled:t,onClick:r,children:"Retry"})]})}n(Us,"AiDefaultError");function ce(s,t){return s.ownership==="personal"&&s.ownerUserId===t&&!s.routing}n(ce,"isOwnAiAccount");function _s(s,t){const r=new Map;for(const a of s){if(!ce(a,t))continue;const i=JSON.stringify([a.companyId,a.id]),l=r.get(i);l?l.push(a):r.set(i,[a])}return new Map([...r].map(([a,i])=>[a,i.length===1?i[0]:i.find(l=>l.isDefault)]))}n(_s,"indexAiAccounts");function Ms(s,t,r=!0){const a=ee(),i=ms(),l=JSON.stringify([s,t.userId,t.settled]),d=(0,b.useRef)(l);d.current=l,(0,b.useEffect)(()=>(d.current=l,()=>{d.current=null}),[l]);const u=["ai-connections",s,void 0,t.userId],f=Z({queryKey:u,queryFn:n(async({signal:p})=>{const h=await K.list(s,void 0,{signal:p,fresh:!0});if(t.userId&&h.currentUserId!==t.userId)throw new Error("Your account changed. Refresh your connections.");return h},"queryFn"),enabled:!!s&&t.settled&&r,retry:oe(1),refetchOnWindowFocus:"always"}),m=["ai-default",s,t.userId],x=Ss({filters:{mutationKey:m,status:"pending"},select:n(p=>p.state.variables.account.provider,"select")}),v=Q({mutationKey:m,mutationFn:n(async p=>{const h=p.retry?(await f.refetch({throwOnError:!0})).data:f.data,j=h?.connections.find(C=>C.id===p.account.id&&C.grantId===p.account.grantId);if(d.current!==p.scope||!t.settled||!h||!j||j.companyId!==s||!ce(j,h.currentUserId)||!j.canSetDefault||j.status!=="connected"||j.unavailableReason)throw new Error("This account is unavailable as your default. Refresh or reconnect it, then try again.");j.isDefault||await K.setDefault(j.companyId,j.grantId)},"mutationFn"),onSuccess:n(async(p,h)=>{if(await a.invalidateQueries({queryKey:["ai-connections",h.account.companyId]}),d.current!==h.scope)return;const j=a.getQueryData(u)?.connections.find(C=>C.grantId===h.account.grantId);i?.pushToast(j?.isDefault?{tone:"success",title:`${h.account.name} is now your ${M[h.account.provider].name} default`}:{tone:"info",title:`Your ${M[h.account.provider].name} default was updated`,body:"The latest saved selection is shown in Connectors."})},"onSuccess"),onError:n((p,h)=>{d.current===h.scope&&i?.pushToast({tone:"error",title:`Couldn’t change your ${M[h.account.provider].name} default`,body:G(p).body,action:{label:"Retry",onClick:n(()=>N(h.account,!0,h.scope),"onClick")}})},"onError")});function N(p,h=!1,j=l){d.current!==j||!t.settled||!s||a.getMutationCache().findAll({mutationKey:m,status:"pending"}).some(C=>C.state.variables.account.provider===p.provider)||v.mutate({account:p,retry:h,scope:j})}n(N,"choose");const y=t.settled&&(!t.userId||f.data?.currentUserId===t.userId)?f.data:void 0,D=(0,b.useMemo)(()=>y?_s(y.connections,y.currentUserId):void 0,[y]);return{accounts:f,data:y,accountForConnection:n(p=>p.connectionPurpose==="ai"&&!Ve(p)?D?.get(JSON.stringify([p.companyId,p.id])):void 0,"accountForConnection"),choose:N,pending:n(p=>x.includes(p),"pending"),error:v.variables?.scope===l?v.error:null,failedProvider:v.variables?.account.provider,retry:n(()=>{v.variables&&N(v.variables.account,!0,v.variables.scope)},"retry")}}n(Ms,"useAiConnectionDefaults");function Fs({account:s,grant:t,currentUserId:r,readOnly:a,defaultPending:i,onMakeDefault:l,onReconnect:d,onRevoke:u,revocationDetails:f}){const[m,x]=(0,b.useState)(!1),[v,N]=(0,b.useState)(!1),[y,D]=(0,b.useState)(),p=ce(s,r),h=s.status==="connected",j=s.isDefault&&h,C=M[s.provider].name;return(0,e.jsxs)("section",{className:"space-y-4","aria-label":"AI account settings",children:[p&&(0,e.jsxs)("div",{className:P("flex flex-wrap items-center justify-between gap-3 rounded-lg border border-border p-3",j&&"border-(--status-task-done)/30 bg-(--status-task-done)/5"),children:[(0,e.jsxs)("div",{className:"flex items-center gap-3",children:[s.isDefault&&(0,e.jsx)(Ps,{account:s}),(0,e.jsx)("h3",{role:s.isDefault?"status":void 0,className:P("text-sm font-semibold",s.isDefault&&!h&&"text-destructive"),children:s.isDefault?h?`Default for ${C}`:"Default unavailable":`Your ${C} default`})]}),!s.isDefault&&(!a&&s.canSetDefault?(0,e.jsxs)(k,{variant:"outline",size:"sm",disabled:!h||!!s.unavailableReason||i,onClick:l,children:["Set as default for ",C]}):(0,e.jsx)("span",{className:"text-xs text-muted-foreground",children:"Not default"}))]}),(0,e.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,e.jsx)("div",{className:"min-w-0 text-sm",children:(0,e.jsxs)("p",{className:P("break-words text-xs text-muted-foreground",w),children:[s.method==="subscription"?"Subscription":"API key",s.accountLabel?` · ${s.accountLabel}`:""]})}),!a&&t.capabilities?.canRevoke&&(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,e.jsxs)(k,{variant:"outline",size:"sm",onClick:d,children:[(0,e.jsx)(ae,{className:"size-4","aria-hidden":!0}),"Reconnect"]}),s.status!=="revoked"&&(0,e.jsxs)(k,{variant:"ghost",size:"sm",className:"text-destructive",onClick:n(()=>x(!0),"onClick"),children:[(0,e.jsx)(cs,{className:"size-4","aria-hidden":!0}),"Revoke identity"]})]})]}),m&&(0,e.jsxs)(zs,{grant:t,providerName:s.name,pending:v,credentialPolicy:s.ownership==="shared"?"shared":"per_user",isOwnIdentity:s.ownerUserId===r,description:"New runs using this account will be blocked. Existing runs may retain credentials already issued to them. No other account will be selected automatically.",onCancel:n(()=>x(!1),"onCancel"),onConfirm:n(async()=>{N(!0),D(void 0);try{await u(),x(!1)}catch(g){D(G(g).body)}finally{N(!1)}},"onConfirm"),children:[y&&(0,e.jsx)("p",{role:"alert",className:"text-sm text-destructive",children:y}),f]})]})}n(Fs,"AiConnectionAccountControls");function Ls({account:s,grant:t}){const r=s.provider==="openai"&&s.method==="subscription"&&!s.routing,a=!s.routing&&(s.provider==="anthropic"||r)&&s.method==="subscription"&&s.status==="connected",i=Z({queryKey:["ai-account-identity",s.companyId,s.id,t.id,t.updatedAt],queryFn:n(({signal:f})=>K.accountIdentity(s.companyId,s.id,t.id,{signal:f}),"queryFn"),enabled:a,staleTime:3e5,retry:oe(0)}),l=i.data?.accountLabel??s.accountLabel,d=i.error?G(i.error).body:i.data?.message,u=i.isError||i.data?.status==="error";return(0,e.jsxs)("section",{className:"space-y-3","aria-label":"Connected account",children:[(0,e.jsx)("h3",{className:"text-sm font-semibold",children:"Connected account"}),(0,e.jsxs)("dl",{className:"grid grid-cols-2 gap-3 text-sm",children:[(0,e.jsxs)("dt",{className:"text-muted-foreground",children:[M[s.provider].name," account"]}),(0,e.jsx)("dd",{className:P("break-words",w),children:l??"Not available"}),(r||i.data?.organizationLabel)&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("dt",{className:"text-muted-foreground",children:r?"ChatGPT workspace":"Organization"}),(0,e.jsx)("dd",{className:P("break-words","ph-mask ph-sensitive"),children:i.data?.organizationLabel??(i.isPending&&a?"Checking…":"Not available")})]}),(0,e.jsx)("dt",{className:"text-muted-foreground",children:"Sign-in method"}),(0,e.jsx)("dd",{children:xe(s.provider,s.method)}),(0,e.jsx)("dt",{className:"text-muted-foreground",children:"Access"}),(0,e.jsx)("dd",{children:s.ownership==="shared"?"Company shared":`Personal · ${s.ownerName??"Account owner"}`})]}),a&&i.isPending&&(0,e.jsx)("p",{role:"status",className:"text-xs text-muted-foreground",children:"Checking account details…"}),d&&(0,e.jsx)("p",{role:u?"alert":void 0,className:"text-xs text-muted-foreground",children:d}),u&&(0,e.jsx)(k,{variant:"outline",size:"sm",disabled:i.isFetching,onClick:n(()=>{i.refetch()},"onClick"),children:"Retry account check"})]})}n(Ls,"AiConnectionAccountDetails");function Xs({connection:s}){const t=s.config?.ai;return t?(0,e.jsxs)("p",{className:"text-xs text-muted-foreground",children:[t.routing?t.routing.kind==="bedrock"?`Bedrock · ${t.routing.region}`:t.routing.kind==="openrouter"?"OpenRouter":t.routing.baseUrl:xe(t.provider,t.method)," ·"," ",s.credentialPolicy==="per_user"?"Personal":"Company shared"]}):null}n(Xs,"ManagedAiConnectionRow");function et({connection:s}){const t=ee(),r=Ye(),a=Z({queryKey:["ai-connection-active-runs",s.id],queryFn:n(()=>K.activeRuns(s.companyId,s.id),"queryFn")}),i=Ue(),l=Ms(s.companyId,{userId:i.data?.user.id??null,settled:i.isSuccess}),d=l.accounts,u=Z({queryKey:A.tools.connectionGrants(s.id),queryFn:n(({signal:o})=>J.listConnectionGrants(s.id,{signal:o}),"queryFn"),retry:oe(1)}),f=V(a),m=V(i),x=V(d),v=V(u),N=n(()=>t.invalidateQueries(),"refresh"),{pushToast:y}=es(),D=Q({mutationFn:n(o=>J.revokeConnectionGrant(s.id,o),"mutationFn"),onSuccess:n(o=>{const I=Ns(o.signInRemoval);return I&&y({title:"Account disconnected",body:I.body,tone:I.tone,...I.action?{action:I.action}:{}}),N()},"onSuccess")}),p=Q({mutationFn:n(o=>ps.cancel(o),"mutationFn"),onSuccess:N}),h=new Set(u.data?.grants.map(o=>o.id)),j=l.data?.connections.filter(o=>o.id===s.id&&o.companyId===s.companyId&&h.has(o.grantId))??[],C=n(o=>o.ownership==="personal"&&o.ownerUserId===l.data?.currentUserId,"ownPersonal"),g=j.find(o=>C(o)&&o.isDefault)??j.find(C)??j[0],S=u.data?.grants.find(o=>o.id===g?.grantId),E=[m,x,v].find(o=>o.kind==="error")?.error,T=p.error,z=E?(0,e.jsxs)("div",{role:"alert",className:"space-y-2",children:[(0,e.jsx)("p",{className:"text-sm text-destructive",children:G(E).body}),(0,e.jsx)(k,{variant:"outline",size:"sm",disabled:m.isFetching||d.isFetching||u.isFetching,onClick:n(()=>{if(m.kind==="error"){m.retry();return}d.error&&d.refetch(),u.error&&u.refetch()},"onClick"),children:"Retry"})]}):null;return(!g||!S)&&z?z:!g||!S?(0,e.jsx)("p",{role:"status",className:"text-sm text-muted-foreground",children:d.isPending||u.isPending||m.kind==="reconnecting"||x.kind==="reconnecting"||v.kind==="reconnecting"?"Loading AI account…":"This account is not available to you."}):(0,e.jsxs)("div",{className:"space-y-4",children:[z,T&&(0,e.jsx)("p",{role:"alert",className:"text-sm text-destructive",children:G(T).body}),l.error&&l.failedProvider&&(0,e.jsx)(Us,{provider:M[l.failedProvider].name,pending:l.pending(l.failedProvider),onRetry:l.retry}),(0,e.jsx)(Ls,{account:g,grant:S}),g.routing&&(0,e.jsxs)("details",{className:"rounded-lg border border-border p-4",children:[(0,e.jsx)("summary",{className:"cursor-pointer text-sm font-medium",children:"Provider settings"}),(0,e.jsxs)("dl",{className:"mt-4 grid grid-cols-2 gap-3 text-sm",children:[(0,e.jsx)("dt",{className:"text-muted-foreground",children:"Destination"}),(0,e.jsx)("dd",{className:"break-all",children:g.routing.baseUrl??(g.routing.kind==="bedrock"?g.routing.region:"OpenRouter")}),(0,e.jsx)("dt",{className:"text-muted-foreground",children:"API format"}),(0,e.jsx)("dd",{children:g.routing.kind==="openrouter"?"Selected by harness":g.routing.protocol}),(0,e.jsx)("dt",{className:"text-muted-foreground",children:"Authentication"}),(0,e.jsx)("dd",{children:g.routing.auth}),(0,e.jsx)("dt",{className:"text-muted-foreground",children:"Models"}),(0,e.jsx)("dd",{children:g.routing.models.map(o=>o.label??o.id).join(", ")||"Enter a model ID on the agent"})]})]}),(0,e.jsx)(Fs,{account:g,grant:S,currentUserId:d.data.currentUserId,defaultPending:l.pending(g.provider),onMakeDefault:n(()=>l.choose(g),"onMakeDefault"),onRevoke:n(()=>D.mutateAsync(S.id).then(()=>{}),"onRevoke"),revocationDetails:(0,e.jsxs)("div",{className:"space-y-2",children:[f.kind==="error"&&(0,e.jsx)(Xe,{size:"inline",error:a.error,action:"load active runs",onRetry:f.retry,retrying:f.isFetching}),a.data?.map(o=>(0,e.jsxs)("div",{className:"flex items-center justify-between gap-3 text-sm",children:[(0,e.jsxs)("span",{children:[o.agentName," · ",o.status]}),(0,e.jsx)(k,{variant:"outline",size:"sm",disabled:p.isPending,onClick:n(()=>p.mutate(o.id),"onClick"),children:"Stop run"})]},o.id))]}),onReconnect:n(()=>r(`/apps/connect?source=${ns(g.provider)}&reconnect=${s.id}&method=ai-${g.method}`),"onReconnect")}),(0,e.jsx)($s,{account:g},`${g.id}:${g.grantId}:${g.status}`)]})}n(et,"ManagedAiConnectionDetails");function Gs(s,t){const r=new Set(gs(s.enabled,t));return{enabledCatalogEntryIds:[...r],askFirstCatalogEntryIds:[...s.askFirst].filter(a=>r.has(a)),...s.reviewed?{reviewedCatalogEntryIds:[...s.reviewed]}:{},access:s.access.mode==="all"?"all_agents":{agentIds:[...s.access.agentIds]}}}n(Gs,"finishAppPermissions");function st({companyId:s,connectionId:t,connection:r,catalog:a,onError:i}){const l=ee(),[d,u]=(0,b.useState)(null),f=Q({mutationFn:n(async m=>r?.connectionPurpose==="ai"?J.putConnectionInstalls(t,m.access.mode==="all"?[{targetType:"company",targetId:s}]:[...m.access.agentIds].map(x=>({targetType:"agent",targetId:x}))):J.finishApp(s,t,Gs(m,a)),"mutationFn"),onMutate:n(async m=>{u(m),await Promise.all([A.tools.connectionProfileConfiguration(s,t),A.tools.policies(s),A.tools.connection(t),A.tools.connectionInstalls(t)].map(x=>l.cancelQueries({queryKey:x})))},"onMutate"),onSuccess:n(m=>{if("profile"in m){const x={...m.profile,entries:m.profileEntries,bindings:m.profileBindings};l.setQueryData(A.tools.connectionProfileConfiguration(s,t),v=>({profiles:[...(v?.profiles??[]).filter(N=>N.profileKey!==m.profile.profileKey),x]})),l.setQueryData(A.tools.policies(s),v=>({policies:[...(v?.policies??[]).filter(N=>!(N.policyType==="require_approval"&&N.config?.source==="app_gallery_finish"&&N.config.connectionId===t)),...m.policies]})),l.setQueryData(A.tools.connection(t),m.connection)}else"installs"in m&&l.setQueryData(A.tools.connectionInstalls(t),m);for(const x of[A.tools.connectionInstalls(t),A.tools.testAgentAccessesForConnection(t),A.tools.connection(t),A.tools.catalog(t),A.tools.profiles(s),A.tools.policies(s),A.tools.connections(s),A.apps.attention(s)])l.invalidateQueries({queryKey:x})},"onSuccess"),onError:i,onSettled:n(()=>u(null),"onSettled")});return{draft:d,pending:f.isPending,save:f.mutate}}n(st,"useConnectionPermissionSave");function tt(s){const t=new Set;for(const r of s?.entries??[])r.effect==="include"&&r.catalogEntryId&&t.add(r.catalogEntryId);return t}n(tt,"enabledCatalogIds");function nt(s,t){const r=new Set;for(const a of s){if(a.policyType!=="require_approval"||a.enabled===!1)continue;const i=a.config??{};i.source==="app_gallery_finish"&&i.connectionId===t&&typeof i.catalogEntryId=="string"&&r.add(i.catalogEntryId)}return r}n(nt,"askFirstCatalogIds");function at(s,t){const r=s?.bindings??[];if(r.some(i=>i.targetType==="company"))return{mode:"all",agentIds:new Set};const a=new Set(r.filter(i=>i.targetType==="agent").map(i=>i.targetId));return a.size>0?{mode:"specific",agentIds:a}:t.onAll?{mode:"all",agentIds:new Set}:{mode:"specific",agentIds:new Set(t.agentIds)}}n(at,"accessFrom");function it(s,t){return t.onAll||s.mode==="all"?{mode:"all",agentIds:new Set}:{mode:"specific",agentIds:new Set([...s.agentIds,...t.agentIds])}}n(it,"accessIncludingInstalls");export{Ws as _,st as a,Ms as c,Zs as d,Js as f,Vs as g,Ys as h,tt as i,Ps as l,$s as m,it as n,et as o,zs as p,nt as r,Xs as s,at as t,Us as u};
@@ -1 +1 @@
1
- import{QT as e}from"./index-Bt31d8ga.js";var a={name:"scroll-text",size:24,node:[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]};a.node;var h=e(a);export{h as t};
1
+ import{QT as e}from"./index-BJtnP7H1.js";var a={name:"scroll-text",size:24,node:[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]};a.node;var h=e(a);export{h as t};