ryco-cli 0.1.29 → 0.1.31

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 (500) hide show
  1. package/README.md +37 -0
  2. package/dist/{AcpAdapter-8CSe4HK7.cjs → AcpAdapter-ByUp9-wk.cjs} +74 -54
  3. package/dist/{AcpAdapter-CG1wRWcf.mjs → AcpAdapter-CY_ANTKu.mjs} +74 -54
  4. package/dist/{AcpNativeLogging-B6TtnnKL.mjs → AcpNativeLogging-C7PC6imv.mjs} +30 -4
  5. package/dist/{AcpNativeLogging-DbjnRnTf.cjs → AcpNativeLogging-OQeAya9d.cjs} +33 -1
  6. package/dist/{AcpRegistryDriver-16ZTxUs3.cjs → AcpRegistryDriver-CD9GN7rI.cjs} +3 -3
  7. package/dist/{AcpRegistryDriver-DZFasKaz.mjs → AcpRegistryDriver-DMZ5VBWJ.mjs} +4 -4
  8. package/dist/AzureDevOpsSourceControlProvider-5giVYoNi.mjs +2053 -0
  9. package/dist/AzureDevOpsSourceControlProvider-BKMXEUaN.cjs +2055 -0
  10. package/dist/{BitbucketSourceControlProvider-DplKc8Wo.mjs → BitbucketSourceControlProvider-BVUBsEUF.mjs} +63 -23
  11. package/dist/{BitbucketSourceControlProvider-B-ZwKj72.cjs → BitbucketSourceControlProvider-BWnnrbch.cjs} +62 -22
  12. package/dist/{BunPTY-Dcl1Lp62.mjs → BunPTY-CMbDQ1Xb.mjs} +1 -1
  13. package/dist/{ClaudeDriver-r0lJ9vmE.cjs → ClaudeDriver-DCrqouOR.cjs} +1376 -194
  14. package/dist/{ClaudeDriver-0gGVop27.mjs → ClaudeDriver-DVOss8cC.mjs} +1377 -195
  15. package/dist/{CodexDriver-bJAbhSwY.cjs → CodexDriver-CBQPHJqU.cjs} +259 -29
  16. package/dist/{CodexDriver-baT02xVb.mjs → CodexDriver-DJoTky7Z.mjs} +261 -31
  17. package/dist/{CodexTextGeneration-Dwp6X3dq.mjs → CodexTextGeneration-BSgNgfZv.mjs} +6 -6
  18. package/dist/{CodexTextGeneration-DFZ5y4gj.cjs → CodexTextGeneration-C9MDQmZm.cjs} +7 -7
  19. package/dist/{CopilotDriver-C0OhnSB1.mjs → CopilotDriver-CUkdPXcH.mjs} +78 -20
  20. package/dist/{CopilotDriver-B_jEqfYQ.cjs → CopilotDriver-DbaMDH16.cjs} +76 -18
  21. package/dist/{CursorDriver-DinXkGP9.mjs → CursorDriver-B-ZilXJB.mjs} +115 -98
  22. package/dist/{CursorDriver-BBFEW7ZI.cjs → CursorDriver-DKQqPbKH.cjs} +116 -99
  23. package/dist/{ForgejoSourceControlProvider-iG9o7aZB.cjs → ForgejoSourceControlProvider-CgpjFECj.cjs} +94 -60
  24. package/dist/{ForgejoSourceControlProvider-Dr0fxfud.mjs → ForgejoSourceControlProvider-DemMYUye.mjs} +95 -61
  25. package/dist/{GitHubSourceControlProvider-L1yFpep4.cjs → GitHubSourceControlProvider-C4un6hOK.cjs} +218 -119
  26. package/dist/{GitHubSourceControlProvider-CnIu0n2Y.mjs → GitHubSourceControlProvider-CRSDYcjc.mjs} +206 -108
  27. package/dist/GitLabSourceControlProvider-D8W1ZLPh.cjs +2260 -0
  28. package/dist/GitLabSourceControlProvider-DpWkJ0M3.mjs +2258 -0
  29. package/dist/{GrokDriver-D_Ylzh5z.cjs → GrokDriver-BQ6G_7ZZ.cjs} +11 -12
  30. package/dist/{GrokDriver-pX-N6HGS.mjs → GrokDriver-Buvas9-q.mjs} +7 -8
  31. package/dist/{Metrics-BjqGlIP4.mjs → Metrics-C3vLS9rz.mjs} +1264 -1151
  32. package/dist/{Metrics-Bf96NJ4j.cjs → Metrics-DjRPLE98.cjs} +1295 -1134
  33. package/dist/{NodePTY-D7tFWuQe.mjs → NodePTY-DgnuBruq.mjs} +1 -1
  34. package/dist/{NodeSqliteClient-BGg70C7Q.cjs → NodeSqliteClient-D8bzGgPN.cjs} +1 -1
  35. package/dist/{OpenCodeDriver-Byu1pf_i.mjs → OpenCodeDriver-BWEZD841.mjs} +184 -50
  36. package/dist/{OpenCodeDriver-BFEw5t09.cjs → OpenCodeDriver-qUiX0RLH.cjs} +185 -51
  37. package/dist/{SideQuestionIsolation-81IoAuoi.mjs → SideQuestionIsolation-B1T-DsR0.mjs} +1 -1
  38. package/dist/{SideQuestionIsolation-CMPkCUP0.cjs → SideQuestionIsolation-BPC-Bxsz.cjs} +1 -1
  39. package/dist/bin.cjs +50689 -15659
  40. package/dist/bin.mjs +50578 -15585
  41. package/dist/client/assets/AccountSettings-B88Q_w9Y.js +1 -0
  42. package/dist/client/assets/AiFocusSettings-Bb0TrCPn.js +1 -0
  43. package/dist/client/assets/{AnimatedHeight-BNg7wnTK.js → AnimatedHeight-epXOsgdm.js} +1 -1
  44. package/dist/client/assets/AppearanceSettings-XS9WRVPU.js +1 -0
  45. package/dist/client/assets/AutomationsDialog-bZckh4Y3.js +1 -0
  46. package/dist/client/assets/AutomationsSummary-wPFZCF49.js +1 -0
  47. package/dist/client/assets/BranchToolbar.logic-DjzLKbbB.js +3 -0
  48. package/dist/client/assets/BrowserPanel-CdBLnnfz.js +1 -0
  49. package/dist/client/assets/ChatRightPanel-BCINd0vP.js +34 -0
  50. package/dist/client/assets/ChatThreadRouteView-BFZ0Si-l.js +1 -0
  51. package/dist/client/assets/ColorSwatchPicker-CGyo99o0.js +1 -0
  52. package/dist/client/assets/CommandPalette.logic-BIOMtnEQ.js +1 -0
  53. package/dist/client/assets/CommandPaletteDialog-Db4LH--z.js +2 -0
  54. package/dist/client/assets/CompositeRoot-DtnwMJKj.js +1 -0
  55. package/dist/client/assets/ComputerUseSettings-CkqCqDsU.js +1 -0
  56. package/dist/client/assets/ConnectionsSettings-B9mxExdG.js +7 -0
  57. package/dist/client/assets/CreatePullRequestDialog-CJ7pNCue.js +1 -0
  58. package/dist/client/assets/CreatePullRequestDialogHost-n4ZjdSr4.js +1 -0
  59. package/dist/client/assets/DiagnosticsSettings-f9rFG9re.js +2 -0
  60. package/dist/client/assets/DiagnosticsSettings.logic-Byf-Bu4S.js +1 -0
  61. package/dist/client/assets/DialogHandle-C0c_rK3I.js +1 -0
  62. package/dist/client/assets/{DialogPopup-DdZlhHuQ.js → DialogPopup-BKW1PEEa.js} +1 -1
  63. package/dist/client/assets/DialogRoot-BIubqrv0.js +1 -0
  64. package/dist/client/assets/DialogTitle-BAX_FLoG.js +1 -0
  65. package/dist/client/assets/{DialogViewport-BwuqbGLY.js → DialogViewport-C2iOUx0O.js} +1 -1
  66. package/dist/client/assets/DiffPanel-BkqDt_SS.js +25 -0
  67. package/dist/client/assets/DisclosureRegion-B8556yU0.js +1 -0
  68. package/dist/client/assets/DraftChatThreadRouteView-BKgRKJ2w.js +1 -0
  69. package/dist/client/assets/{ExternalIdentityWeb.logic-DsTJQkg-.js → ExternalIdentityWeb.logic-Cu6suNrN.js} +1 -1
  70. package/dist/client/assets/GlassSurface-DLYYzRdP.js +1 -0
  71. package/dist/client/assets/HostedConnectionControls-CoVqtnrK.js +1 -0
  72. package/dist/client/assets/HostedHubRoot-CM2CwPUr.js +2 -0
  73. package/dist/client/assets/{HostedNativeAuthorizationRoute-BSq_AlY2.js → HostedNativeAuthorizationRoute-Bizmqrh_.js} +2 -2
  74. package/dist/client/assets/HostedNodeRenameDialog-SXWMsTO0.js +1 -0
  75. package/dist/client/assets/HostedRelayTrustNotice-BfTyrBi5.js +1 -0
  76. package/dist/client/assets/InboxStatusGlyph-BPTqzp7l.js +1 -0
  77. package/dist/client/assets/IntegrationsSettingsPanel-DAPvkV4i.js +1 -0
  78. package/dist/client/assets/KeybindingsSettings-B8g-YI2O.js +1 -0
  79. package/dist/client/assets/LazyBrowserPanel-Ds9cdOC_.js +2 -0
  80. package/dist/client/assets/McpServersSettings-Dw6G3ff3.js +6 -0
  81. package/dist/client/assets/MobileSheet-DfgXNWbd.js +1 -0
  82. package/dist/client/assets/ModelTuningDial-DQBAbuNL.js +1 -0
  83. package/dist/client/assets/NewWorktreeDialog-CDZAJmK6.js +4 -0
  84. package/dist/client/assets/NodeSecuritySettings-3MELA9ru.js +1 -0
  85. package/dist/client/assets/NullStore-gT_6_xZE.js +1 -0
  86. package/dist/client/assets/OnboardingDialog-CAAtNnJf.js +1 -0
  87. package/dist/client/assets/OpinionatedPluginsSettings-AiDB0Vl4.js +1 -0
  88. package/dist/client/assets/{PdfAttachmentPreview-CTo1AyZs.js → PdfAttachmentPreview-BFNW2wjN.js} +2 -2
  89. package/dist/client/assets/{PhoneGetAppInterstitial-DwopOWnQ.js → PhoneGetAppInterstitial-D8fwZ8E9.js} +1 -1
  90. package/dist/client/assets/PhoneHome-YHgHljA0.js +1 -0
  91. package/dist/client/assets/PhoneSettingsSurface-BVxJppvK.js +2 -0
  92. package/dist/client/assets/PreviewPanel-BYcEnkv9.js +643 -0
  93. package/dist/client/assets/ProjectScriptDialog-K34K2Kzm.js +1 -0
  94. package/dist/client/assets/ProjectsPage-DXnMYLjb.js +1 -0
  95. package/dist/client/assets/PromoteChatDialog-CAY7_wJ-.js +1 -0
  96. package/dist/client/assets/ProviderLimitWindow-CK04BSkM.js +1 -0
  97. package/dist/client/assets/ProviderUpdateLaunchNotification.logic-BMBrDDOC.js +1 -0
  98. package/dist/client/assets/ProvidersSettingsPanel-C85PX9Es.js +1 -0
  99. package/dist/client/assets/PullRequestsPage-C0rgfGwB.js +1 -0
  100. package/dist/client/assets/{QuitShortcutFeedback-eCvP_MNj.js → QuitShortcutFeedback-DSkKqETs.js} +1 -1
  101. package/dist/client/assets/RedactedSensitiveText-DQ0YveQd.js +1 -0
  102. package/dist/client/assets/RollingText-BzvpP5fa.js +1 -0
  103. package/dist/client/assets/RootAppShell-BYQ-eGNT.js +6 -0
  104. package/dist/client/assets/{Separator-BiINUUQl.js → Separator-DpiW19Vw.js} +1 -1
  105. package/dist/client/assets/SettingsPage-BCFN7Ju2.js +2 -0
  106. package/dist/client/assets/SettingsPanels-CP6z2b1x.js +3 -0
  107. package/dist/client/assets/SettingsPanels.editor-D8U-TWWG.js +1 -0
  108. package/dist/client/assets/SettingsSelect-DEhNaz3E.js +1 -0
  109. package/dist/client/assets/Sidebar.logic-D_ODfSpl.js +1 -0
  110. package/dist/client/assets/SimulatorPanel-DCT6fZ0X.js +1 -0
  111. package/dist/client/assets/SourceControlSettings-DxUtvPMK.js +1 -0
  112. package/dist/client/assets/StatisticsPage-C9SrwtM4.js +1 -0
  113. package/dist/client/assets/StatisticsPanel-BMYLETs0.js +1 -0
  114. package/dist/client/assets/ThreadLinkList-BN5z5EpS.js +169 -0
  115. package/dist/client/assets/ThreadTerminalDrawer-CgIFOlR-.js +18 -0
  116. package/dist/client/assets/ThreadWorkspacePanel-DvXoqQPF.js +3 -0
  117. package/dist/client/assets/ToolbarRootContext-8FsV9Cpj.js +1 -0
  118. package/dist/client/assets/TraitsPicker-DcrpJahy.js +1 -0
  119. package/dist/client/assets/Virtualizer-CwXeUPla.js +1345 -0
  120. package/dist/client/assets/WorkspacePullRequestPanel-3mlcJn9G.js +1 -0
  121. package/dist/client/assets/WorkspaceReview-UGbCgXeK.js +2 -0
  122. package/dist/client/assets/{abnfDiagram-N423BO3Z-DAmGykdr.js → abnfDiagram-N423BO3Z-DVEM6Scc.js} +1 -1
  123. package/dist/client/assets/{activity-DRZlu-MC.js → activity-DVCuAejY.js} +1 -1
  124. package/dist/client/assets/{alert-CwrDisFU.js → alert-FV7ZIit_.js} +1 -1
  125. package/dist/client/assets/alert-dialog-CgXR9tED.js +1 -0
  126. package/dist/client/assets/app-window-3xtwqZgI.js +1 -0
  127. package/dist/client/assets/appChrome-COCz-T7w.js +1 -0
  128. package/dist/client/assets/{appearancePreferences-nFx4MHoI.js → appearancePreferences-NnsvXwBe.js} +1 -1
  129. package/dist/client/assets/architecture-7GRP2DOG-DXXb_0_g.js +1 -0
  130. package/dist/client/assets/{architectureDiagram-T3A2C74G-DypU2ERW.js → architectureDiagram-T3A2C74G-B6pcKiCj.js} +1 -1
  131. package/dist/client/assets/{arrow-left-XhcJWpRy.js → arrow-left-Blu3LSE2.js} +1 -1
  132. package/dist/client/assets/{arrow-right-BBs6iTUL.js → arrow-right-CO3CH0ne.js} +1 -1
  133. package/dist/client/assets/arrow-up-B69gV2Bq.js +1 -0
  134. package/dist/client/assets/{arrow-up-right-CJ9Vq7nK.js → arrow-up-right-BbPGFOLA.js} +1 -1
  135. package/dist/client/assets/authorization-Ob6YwWiI.js +1 -0
  136. package/dist/client/assets/autocomplete-RVpjsrDv.js +1 -0
  137. package/dist/client/assets/ban-BIm2PVkE.js +1 -0
  138. package/dist/client/assets/{blockDiagram-VBNYF7ZC-B9MhR9hY.js → blockDiagram-VBNYF7ZC-WNerGp9V.js} +1 -1
  139. package/dist/client/assets/{bot-D5wgL7pu.js → bot-C9nWtaWq.js} +1 -1
  140. package/dist/client/assets/browserState-jt47YsqD.js +1 -0
  141. package/dist/client/assets/{c4Diagram-5PPSVZJV-C22FWSoE.js → c4Diagram-5PPSVZJV-wp1ioOoM.js} +1 -1
  142. package/dist/client/assets/camera-C13VoW3c.js +1 -0
  143. package/dist/client/assets/capabilities-CfOhq009.js +1 -0
  144. package/dist/client/assets/channel-56r2qL2v.js +1 -0
  145. package/dist/client/assets/{chart-column-D6Lnkklk.js → chart-column-DRv0YtL_.js} +1 -1
  146. package/dist/client/assets/checkbox-CIIIY9FA.js +1 -0
  147. package/dist/client/assets/checks-Dw022Bvy.js +1 -0
  148. package/dist/client/assets/{chunk-2GRJ4B5K-D1tZuCzA.js → chunk-2GRJ4B5K-DRl3ILpc.js} +1 -1
  149. package/dist/client/assets/{chunk-4I5QYGJK-Clf86zK0.js → chunk-4I5QYGJK-CYTRl4bo.js} +1 -1
  150. package/dist/client/assets/{chunk-5RXB4S5H-B36N5RYZ.js → chunk-5RXB4S5H-VCNwRsOa.js} +1 -1
  151. package/dist/client/assets/{chunk-6Q2QTUOP-IAxdzsQJ.js → chunk-6Q2QTUOP-DnSeKGPG.js} +1 -1
  152. package/dist/client/assets/{chunk-7Z6QIM7H-Ctqebv_4.js → chunk-7Z6QIM7H-Cjilh9TF.js} +1 -1
  153. package/dist/client/assets/{chunk-GF5L2VYU-CAfciJae.js → chunk-GF5L2VYU-CGR7AW0t.js} +1 -1
  154. package/dist/client/assets/{chunk-I66GZJ75-BZ7XtZf4.js → chunk-I66GZJ75-CXSn8dDu.js} +1 -1
  155. package/dist/client/assets/{chunk-JQJVKLGR-DVuZCWnv.js → chunk-JQJVKLGR-Dro-75lU.js} +1 -1
  156. package/dist/client/assets/{chunk-KBJHAD2P-DtWbzsRm.js → chunk-KBJHAD2P-BDqN2kVf.js} +1 -1
  157. package/dist/client/assets/{chunk-NSK5VX7P-BVMz_Hc4.js → chunk-NSK5VX7P-DGo5UczH.js} +1 -1
  158. package/dist/client/assets/{chunk-QR6OTTB3-DWitTCy-.js → chunk-QR6OTTB3-RWuyWnBI.js} +1 -1
  159. package/dist/client/assets/{chunk-UBXNYLIW-BuxXXP2s.js → chunk-UBXNYLIW-BPRzeB0w.js} +1 -1
  160. package/dist/client/assets/{chunk-W5SLKNZC-Bnf3sQl4.js → chunk-W5SLKNZC-DYWocTFi.js} +1 -1
  161. package/dist/client/assets/{chunk-WRU74C26-xu-KDOon.js → chunk-WRU74C26-ChbB1jY3.js} +1 -1
  162. package/dist/client/assets/circle-stop-D8B4hRpY.js +1 -0
  163. package/dist/client/assets/circle-x-CNLfrTqR.js +1 -0
  164. package/dist/client/assets/classDiagram-JCYQIIEL-DGvmFev3.js +1 -0
  165. package/dist/client/assets/classDiagram-v2-OCEON4UE-DGvmFev3.js +1 -0
  166. package/dist/client/assets/{clipboard-copy-oDSkUUg4.js → clipboard-copy-DGi8FKNO.js} +1 -1
  167. package/dist/client/assets/clock-3-DmJ4_XPI.js +1 -0
  168. package/dist/client/assets/clock-DZIuPtNG.js +1 -0
  169. package/dist/client/assets/color-picker-BdBXje-a.js +1 -0
  170. package/dist/client/assets/columns-2-CWlMOClK.js +1 -0
  171. package/dist/client/assets/combobox-Dtjtf7AB.js +1 -0
  172. package/dist/client/assets/{cynefin-OW5HDTMX-DGNyiNSf.js → cynefin-OW5HDTMX-TuShvMuM.js} +1 -1
  173. package/dist/client/assets/{cynefinDiagram-MW4NZA55-_ctibv4i.js → cynefinDiagram-MW4NZA55-B0Edt2Em.js} +1 -1
  174. package/dist/client/assets/{dagre-VZM6K2ZE-Bo-bS1Y0.js → dagre-VZM6K2ZE-D-eiuqHx.js} +1 -1
  175. package/dist/client/assets/{data-list-DLsM39Hp.js → data-list-BAx6jBY1.js} +1 -1
  176. package/dist/client/assets/desktopUpdateAtoms-BjrLa3tl.js +1 -0
  177. package/dist/client/assets/desktopWorkspace-C2wXVBhc.js +1 -0
  178. package/dist/client/assets/{deviceName-z0ZWSq0z.js → deviceName-B4youG0v.js} +1 -1
  179. package/dist/client/assets/{diagram-7IWD3JNH-DSjtw1SY.js → diagram-7IWD3JNH-DgM6lMlR.js} +1 -1
  180. package/dist/client/assets/{diagram-B4RE2ZJO-B7fWEvIa.js → diagram-B4RE2ZJO-CyHNDjzV.js} +1 -1
  181. package/dist/client/assets/{diagram-LBJQPF4R-trRYCE5d.js → diagram-LBJQPF4R-DDzuLIN5.js} +1 -1
  182. package/dist/client/assets/{diagram-Q27KOJAE-_DYcRggk.js → diagram-Q27KOJAE-BaBvK9QB.js} +1 -1
  183. package/dist/client/assets/{diagram-UB23O5K3-BkMzOHX8.js → diagram-UB23O5K3-CzZ2ewuZ.js} +1 -1
  184. package/dist/client/assets/dialogWords-Cg0YkJVg.js +1 -0
  185. package/dist/client/assets/diffRouteSearch-D2MKN_ah.js +1 -0
  186. package/dist/client/assets/disclosureMotion-cbMJn5-z.js +1 -0
  187. package/dist/client/assets/{download-CHdS3R_v.js → download-TvtXS4hE.js} +1 -1
  188. package/dist/client/assets/{ebnfDiagram-BXEA7PRR-DubiOMCG.js → ebnfDiagram-BXEA7PRR-CL1vdOKi.js} +1 -1
  189. package/dist/client/assets/editorPreferences-DqKyA-2Z.js +1 -0
  190. package/dist/client/assets/ellipsis-CDK1dNFZ.js +1 -0
  191. package/dist/client/assets/ellipsis-vertical-CwzEUTwV.js +1 -0
  192. package/dist/client/assets/{empty-BlBl_Vvw.js → empty-BovKoxbn.js} +1 -1
  193. package/dist/client/assets/{erDiagram-JOGREHBK-CFDiNfSJ.js → erDiagram-JOGREHBK-DmQR2if6.js} +1 -1
  194. package/dist/client/assets/eventmodeling-NTZA5JFV-D272GIcY.js +1 -0
  195. package/dist/client/assets/external-link-CJeVJZ7s.js +1 -0
  196. package/dist/client/assets/eye-BUmrXqzg.js +1 -0
  197. package/dist/client/assets/file-diff-BWc3mYsz.js +1 -0
  198. package/dist/client/assets/flowDiagram-UKHOOZJN-DLyS38Mm.js +1 -0
  199. package/dist/client/assets/folder-git-2-CPxg5wKP.js +1 -0
  200. package/dist/client/assets/folder-open-DcMymvp1.js +1 -0
  201. package/dist/client/assets/formatCount-B4KLI651.js +1 -0
  202. package/dist/client/assets/{ganttDiagram-PKOTCBZU-DT2XhE-m.js → ganttDiagram-PKOTCBZU-1q2nUL92.js} +1 -1
  203. package/dist/client/assets/git-pull-request-BFPwpm3c.js +1 -0
  204. package/dist/client/assets/{gitGraph-4MIJSDKK-BI5UGiqb.js → gitGraph-4MIJSDKK-COtwmv2S.js} +1 -1
  205. package/dist/client/assets/{gitGraphDiagram-DS77QQ5N-CzAB97Rd.js → gitGraphDiagram-DS77QQ5N-ChsvaxX4.js} +1 -1
  206. package/dist/client/assets/{group-DZJuSiJL.js → group-DWWn0dTx.js} +1 -1
  207. package/dist/client/assets/hammer-BXo-EU88.js +1 -0
  208. package/dist/client/assets/hostedConnectionCoordinator-BkAE-RhA.js +1 -0
  209. package/dist/client/assets/hostedPairing-5n5srRC9.js +1 -0
  210. package/dist/client/assets/{index-BAJdq3TK.js → index-DARIYokI.js} +2 -2
  211. package/dist/client/assets/{info-A6RAGUB7-DdGYYgLX.js → info-A6RAGUB7-CI2qZ9wW.js} +1 -1
  212. package/dist/client/assets/{infoDiagram-6WML65LV-zhUpER6a.js → infoDiagram-6WML65LV-BPmgcTPH.js} +1 -1
  213. package/dist/client/assets/{input-CzU08wbL.js → input-CCie4mm1.js} +1 -1
  214. package/dist/client/assets/{ishikawaDiagram-WSZJBQD7-BQLkqykE.js → ishikawaDiagram-WSZJBQD7-LyS9p3Yg.js} +1 -1
  215. package/dist/client/assets/{journeyDiagram-NVQOT4AX-DBgsbKOF.js → journeyDiagram-NVQOT4AX-BYaAmN65.js} +1 -1
  216. package/dist/client/assets/{kanban-definition-27J2QSJJ-DF-Rr-xs.js → kanban-definition-27J2QSJJ-D-pwzqFt.js} +1 -1
  217. package/dist/client/assets/{key-round-CvyrSjb2.js → key-round-BlrUTfxB.js} +1 -1
  218. package/dist/client/assets/keyboard-DlBdq6sz.js +1 -0
  219. package/dist/client/assets/label-ChtVI9lp.js +1 -0
  220. package/dist/client/assets/layers-BB-ruGvd.js +1 -0
  221. package/dist/client/assets/lifecycleSuggestionPolicy-0ERe_O53.js +1 -0
  222. package/dist/client/assets/list-checks-BkM_ZRsj.js +1 -0
  223. package/dist/client/assets/loader-3vQnfqIT.js +1 -0
  224. package/dist/client/assets/{log-out-D3rICSt5.js → log-out-CKq9YiLY.js} +1 -1
  225. package/dist/client/assets/{logging-C6tXZlGQ.js → logging-CCg76rgn.js} +1 -1
  226. package/dist/client/assets/main-Ch0bwS-M.js +9 -0
  227. package/dist/client/assets/main-Di0isH9D.css +2 -0
  228. package/dist/client/assets/{mermaid-parser.core-BiGKtilP.js → mermaid-parser.core-RK9ah5RM.js} +2 -2
  229. package/dist/client/assets/{mermaidEngine-Cjfgf3Bg.js → mermaidEngine-Dr8UsPhH.js} +3 -3
  230. package/dist/client/assets/message-circle-dashed-BrjwqS7-.js +1 -0
  231. package/dist/client/assets/messageQueueDrain-B7R7Qmq6.js +1 -0
  232. package/dist/client/assets/messages-square-cDTkDJv_.js +1 -0
  233. package/dist/client/assets/{mindmap-definition-FAOFIHXS-SiU9JwWJ.js → mindmap-definition-FAOFIHXS-DVudWasx.js} +1 -1
  234. package/dist/client/assets/{packet-AYTQ26CC-F-HuW5Dr.js → packet-AYTQ26CC-DnkTsVhD.js} +1 -1
  235. package/dist/client/assets/{pairingUrl-rQM9kSGT.js → pairingUrl-Dn1e2CVw.js} +1 -1
  236. package/dist/client/assets/panels-top-left-B7jZiLth.js +1 -0
  237. package/dist/client/assets/path-text-3Rfu6lt8.js +1 -0
  238. package/dist/client/assets/{pegDiagram-VL7TDLO6-cC-QUd7I.js → pegDiagram-VL7TDLO6-Do5PIp8B.js} +1 -1
  239. package/dist/client/assets/pencil-Bzg-nc6d.js +1 -0
  240. package/dist/client/assets/{pie-WAS4IAKB-BI3XUcLN.js → pie-WAS4IAKB-B_nNQOzn.js} +1 -1
  241. package/dist/client/assets/{pieDiagram-7S7Q4E2Y-BP4gJ4ZK.js → pieDiagram-7S7Q4E2Y-D_IG4xwA.js} +1 -1
  242. package/dist/client/assets/{play-BJZrOx6T.js → play-DpXXQ1qB.js} +1 -1
  243. package/dist/client/assets/popover-OWEv6cQz.js +48 -0
  244. package/dist/client/assets/presentationTier-DPVAxTK4.js +1 -0
  245. package/dist/client/assets/previewRouteSearch-BjZdTuSf.js +1 -0
  246. package/dist/client/assets/primary-Cf-xJExj.js +4 -0
  247. package/dist/client/assets/primitives-CxTBN7D4.js +1 -0
  248. package/dist/client/assets/projectCheckouts.logic-DUT4AxXr.js +1 -0
  249. package/dist/client/assets/projectPaths-B8aVmOZX.js +1 -0
  250. package/dist/client/assets/projectPreferences-CzWBItFj.js +1 -0
  251. package/dist/client/assets/providerCapabilities-B2YOPsLN.js +1 -0
  252. package/dist/client/assets/providerDriverMeta-BHHL9uw0.js +1 -0
  253. package/dist/client/assets/providerModels-v9PYbzRE.js +1 -0
  254. package/dist/client/assets/providerStatus-CDPaqb0S.js +1 -0
  255. package/dist/client/assets/pullRequestsModel.logic-Dv_om_C4.js +1 -0
  256. package/dist/client/assets/{qr-code-BFO8lV1M.js → qr-code-BlbiBIwH.js} +1 -1
  257. package/dist/client/assets/{qr-code-Cmfz5JKf.js → qr-code-DywzVgQC.js} +1 -1
  258. package/dist/client/assets/{quadrantDiagram-CIZ2JOQS-DO-N1m-q.js → quadrantDiagram-CIZ2JOQS-DY6fJyrM.js} +1 -1
  259. package/dist/client/assets/{radar-RG4KPBEZ-CfayXQ5F.js → radar-RG4KPBEZ-D9689I5m.js} +1 -1
  260. package/dist/client/assets/radio-group-DVwD6Cuy.js +1 -0
  261. package/dist/client/assets/{railroad-74A4TZTK-CT6f-etT.js → railroad-74A4TZTK-DVzWbQnl.js} +1 -1
  262. package/dist/client/assets/railroad-abnf-HS5TGJTU-C_2P6umA.js +1 -0
  263. package/dist/client/assets/railroad-ebnf-LZEXJU2U-aGlR3R3z.js +1 -0
  264. package/dist/client/assets/railroad-peg-WCYAUIDC-DCB9oE8y.js +1 -0
  265. package/dist/client/assets/{railroadDiagram-AXF67PYL-DC8egbob.js → railroadDiagram-AXF67PYL-D1oJ6Jtl.js} +1 -1
  266. package/dist/client/assets/readCache-B7cDPz2O.js +1 -0
  267. package/dist/client/assets/{refresh-cw-K_hU8_ld.js → refresh-cw-CRUTivd6.js} +1 -1
  268. package/dist/client/assets/{requirementDiagram-LRYGKXZP-DJMzcLk_.js → requirementDiagram-LRYGKXZP-7RM8iREp.js} +1 -1
  269. package/dist/client/assets/rotate-ccw-BE2ZCwL6.js +1 -0
  270. package/dist/client/assets/roving-radio-group-NMPWrDqe.js +1 -0
  271. package/dist/client/assets/rows-2-DDS4dGTX.js +1 -0
  272. package/dist/client/assets/runtime-DjjjAcTE.js +18 -0
  273. package/dist/client/assets/safePolygon-C1AzMRS4.js +1 -0
  274. package/dist/client/assets/{sankeyDiagram-W5VNT64P-YR6aIYLj.js → sankeyDiagram-W5VNT64P-C1tKAPGN.js} +1 -1
  275. package/dist/client/assets/{save-Mh-PA_2P.js → save-OZdkPs_y.js} +1 -1
  276. package/dist/client/assets/scroll-area-80P7vbjw.js +1 -0
  277. package/dist/client/assets/{scrollEdges-Zcpuz3un.js → scrollEdges-C0Oc-5qi.js} +1 -1
  278. package/dist/client/assets/select-Cb9FUPHD.js +1 -0
  279. package/dist/client/assets/separator-CO8bC7Wc.js +1 -0
  280. package/dist/client/assets/{sequenceDiagram-SI44F4Z6-BVeSqWDA.js → sequenceDiagram-SI44F4Z6-DGVpb7jL.js} +1 -1
  281. package/dist/client/assets/settings-2-PrRDu6Lc.js +1 -0
  282. package/dist/client/assets/settingsLayout-CRFNCk_D.js +1 -0
  283. package/dist/client/assets/sheet-C5DW7qVO.js +1 -0
  284. package/dist/client/assets/{shield-i098Bm_B.js → shield-CBHYqlkR.js} +1 -1
  285. package/dist/client/assets/{shield-alert-CXmR7fM9.js → shield-alert-Dc2cGwyR.js} +1 -1
  286. package/dist/client/assets/{shield-check-CdFhWT_o.js → shield-check-_wl7R4Js.js} +1 -1
  287. package/dist/client/assets/sidebar-0BBaFNm3.js +1 -0
  288. package/dist/client/assets/sidebarProjectFolders-BjWzbt8C.js +3 -0
  289. package/dist/client/assets/sidebarProjectGrouping-nQRStWrZ.js +1 -0
  290. package/dist/client/assets/sidebarStatusText-BBKuNies.js +1 -0
  291. package/dist/client/assets/sidebarUndo-Dfq1lvyF.js +1 -0
  292. package/dist/client/assets/{skeleton-BwFgUtuE.js → skeleton-DfUe6VV_.js} +1 -1
  293. package/dist/client/assets/sliders-horizontal-BGXkwvKv.js +1 -0
  294. package/dist/client/assets/sliding-tabs-BnDSjRU3.js +39 -0
  295. package/dist/client/assets/{smartphone-DGfizz51.js → smartphone-OEAQOTdv.js} +1 -1
  296. package/dist/client/assets/spinner-lHRJWsym.js +1 -0
  297. package/dist/client/assets/square-B05NKv3e.js +1 -0
  298. package/dist/client/assets/{star-J3x3fktG.js → star-C8mHmfZu.js} +1 -1
  299. package/dist/client/assets/{stateDiagram-OKZ733FA-DoIZN669.js → stateDiagram-OKZ733FA-CCOAegCG.js} +1 -1
  300. package/dist/client/assets/stateDiagram-v2-UEYNNEHI-D60qqBed.js +1 -0
  301. package/dist/client/assets/storeSelectors-BichCKDC.js +1 -0
  302. package/dist/client/assets/surfaceMorph-BTRijmlU.js +1 -0
  303. package/dist/client/assets/{swimlanes-SLNWSIFB-BoFLigyK.js → swimlanes-SLNWSIFB-CFsLYT4h.js} +1 -1
  304. package/dist/client/assets/swimlanesDiagram-ULZ7WXOC-D0SaJgSn.js +8 -0
  305. package/dist/client/assets/switch-oQc7Ifbl.js +1 -0
  306. package/dist/client/assets/text-wrap-DSRdSfDm.js +1 -0
  307. package/dist/client/assets/textarea-VyiIZ0wQ.js +1 -0
  308. package/dist/client/assets/threadPriorityRefreshRuntime-H656C1J_.js +1 -0
  309. package/dist/client/assets/ticker-CPutfhZ4.js +1 -0
  310. package/dist/client/assets/{timeline-definition-Z64GVDOM-D65EmNWc.js → timeline-definition-Z64GVDOM-B4agmO7R.js} +1 -1
  311. package/dist/client/assets/toggle-DFqtCPt-.js +1 -0
  312. package/dist/client/assets/toggle-group-C5ICmqkI.js +1 -0
  313. package/dist/client/assets/{tokenModePresentation-C0-NgmX5.js → tokenModePresentation-umDRm4k1.js} +1 -1
  314. package/dist/client/assets/tooltip-DbqhseXd.js +1 -0
  315. package/dist/client/assets/{treeView-Q6P3EWNA-C2S-OPgI.js → treeView-Q6P3EWNA-C_S3udFB.js} +1 -1
  316. package/dist/client/assets/{treemap-WGGIJYW6-6Ovsu9iH.js → treemap-WGGIJYW6-B-kUSAkE.js} +1 -1
  317. package/dist/client/assets/undo-2-lyluTGMW.js +1 -0
  318. package/dist/client/assets/{unplug-BEfcl9Ht.js → unplug-D6iu-qlh.js} +1 -1
  319. package/dist/client/assets/usage-ClF-eUmy.js +1 -0
  320. package/dist/client/assets/useActiveIndicator-R5NWu8Fg.js +1 -0
  321. package/dist/client/assets/useAppSidebarCollapsed-BbMxfio5.js +1 -0
  322. package/dist/client/assets/useAppearancePreference-Ix13pMKy.js +1 -0
  323. package/dist/client/assets/useAtlassian-BYDCc9lv.js +0 -0
  324. package/dist/client/assets/useCheckoutResolution-CR-oOp5-.js +1 -0
  325. package/dist/client/assets/useDesktopRelaunchGuard-Jmh615iZ.js +1 -0
  326. package/dist/client/assets/useDiffFileNavigation-DeuzdD5E.js +15 -0
  327. package/dist/client/assets/useDiffLayout-DhcXwhBL.js +1 -0
  328. package/dist/client/assets/useEnvironmentSettingsTarget-DM6BRDT7.js +1 -0
  329. package/dist/client/assets/useFocus-CV0KIZwg.js +1 -0
  330. package/dist/client/assets/useGit-CUcs7h5_.js +1 -0
  331. package/dist/client/assets/useGitBranchSearch-CeKFtnCL.js +1 -0
  332. package/dist/client/assets/useHostedDraftExecutionTarget-DvQU5UOq.js +1 -0
  333. package/dist/client/assets/useLabelableId-CEgCRi6q.js +1 -0
  334. package/dist/client/assets/useLandingFlash-BfOOlFtW.js +1 -0
  335. package/dist/client/assets/useLogicalProjectSnapshots-CRNZke74.js +1 -0
  336. package/dist/client/assets/useNavigate-sQZthdyT.js +1 -0
  337. package/dist/client/assets/usePageLeadingInsetClass-Bf4nUvx4.js +1 -0
  338. package/dist/client/assets/usePhoneThreadActions-VaQ-mZex.js +1 -0
  339. package/dist/client/assets/usePopupHandleStore-DimKo2Yy.js +1 -0
  340. package/dist/client/assets/usePopupViewport-YeqX_UM3.js +1 -0
  341. package/dist/client/assets/usePresentationTier-B9kCQ4YH.js +1 -0
  342. package/dist/client/assets/useProject-Kt74Z12J.js +1 -0
  343. package/dist/client/assets/useProviderOptionsUpdater-CTzNh2B7.js +2 -0
  344. package/dist/client/assets/usePullRequestFilesViewed-D5Snmzys.js +1 -0
  345. package/dist/client/assets/usePullRequestsModel-DJL5HHbP.js +40 -0
  346. package/dist/client/assets/useScrollLock-CLZ31xsK.js +1 -0
  347. package/dist/client/assets/useSidebarThreadActions-n6EkLATf.js +6 -0
  348. package/dist/client/assets/{useStatistics-D55-xLMz.js → useStatistics-DD0mYS4J.js} +14 -14
  349. package/dist/client/assets/{useTheme-B441xg4F.js → useTheme-Bdy-BDs-.js} +1 -1
  350. package/dist/client/assets/useValueChanged-DoumqMnV.js +1 -0
  351. package/dist/client/assets/{user-round-C-U7TZKG.js → user-round-BPDXr8Gq.js} +1 -1
  352. package/dist/client/assets/{vennDiagram-T6HMQDX7-fZAexcYr.js → vennDiagram-T6HMQDX7-B1UEn_j_.js} +1 -1
  353. package/dist/client/assets/{vscode-icons-BYX6fBsM.js → vscode-icons-Ccy-gzFN.js} +1 -1
  354. package/dist/client/assets/{wardley-WFR3VGLG-gdYWSMxK.js → wardley-WFR3VGLG-gPdyDc-7.js} +1 -1
  355. package/dist/client/assets/{wardleyDiagram-T6FBY63Y-iDJxQb70.js → wardleyDiagram-T6FBY63Y-2aDcwOA4.js} +1 -1
  356. package/dist/client/assets/workspaceLifecycle-OJ1aKksw.js +3 -0
  357. package/dist/client/assets/workspaceMetadataProjection-CyEyJhUa.js +1 -0
  358. package/dist/client/assets/workspaceRouteSearch-CCavUdbH.js +1 -0
  359. package/dist/client/assets/{wrench-D79uBUSl.js → wrench-CPUCA_rn.js} +1 -1
  360. package/dist/client/assets/wsTransport-C88seBPA.js +15 -0
  361. package/dist/client/assets/{xychartDiagram-ELKLHX3M-B4cfMwpJ.js → xychartDiagram-ELKLHX3M-C1_7Q-1i.js} +1 -1
  362. package/dist/client/favicon.svg +1 -1
  363. package/dist/client/index.html +1 -1
  364. package/dist/collectUint8StreamText-BsLSgI8i.mjs +710 -0
  365. package/dist/collectUint8StreamText-D5olwfpM.cjs +757 -0
  366. package/dist/{deviceHostWorker-L8C9wy38.mjs → deviceHostWorker-B-Dn-6An.mjs} +1 -1
  367. package/dist/{deviceHostWorker-CYnrwfrv.cjs → deviceHostWorker-D4HauWIV.cjs} +1 -1
  368. package/dist/{makeManagedServerProvider-CUwxc0Pn.cjs → makeManagedServerProvider-B5tP7tvg.cjs} +2 -2
  369. package/dist/{makeManagedServerProvider-B_lPFNpL.mjs → makeManagedServerProvider-B65ipCxM.mjs} +2 -2
  370. package/dist/resource-monitor/linux-arm64/ryco-resource-monitor +0 -0
  371. package/dist/resource-monitor/ryco-resource-monitor +0 -0
  372. package/dist/resource-monitor/ryco-resource-monitor.exe +0 -0
  373. package/dist/resource-monitor/win32-arm64/ryco-resource-monitor.exe +0 -0
  374. package/dist/resource-monitor/win32-x64/ryco-resource-monitor.exe +0 -0
  375. package/dist/{rolldown-runtime-LGfotAqq.cjs → rolldown-runtime-HbSU0i7K.cjs} +7 -0
  376. package/dist/{runtimeSession-V3RIy8Ao.mjs → runtimeSession-D_BZ-wRH.mjs} +1 -1
  377. package/dist/{src-BzVJd3Me.cjs → src-FmeCeBJ9.cjs} +3408 -308
  378. package/dist/{src-7E1M4gTQ.mjs → src-VTj60bUm.mjs} +2154 -140
  379. package/package.json +1 -1
  380. package/dist/AzureDevOpsSourceControlProvider-DmJD1-WL.cjs +0 -190
  381. package/dist/AzureDevOpsSourceControlProvider-d5Ogsspk.mjs +0 -188
  382. package/dist/GitLabSourceControlProvider-BZdwXdJl.mjs +0 -186
  383. package/dist/GitLabSourceControlProvider-CrcBR6KQ.cjs +0 -188
  384. package/dist/client/assets/AccountSettings-FN7pwqYA.js +0 -1
  385. package/dist/client/assets/AiFocusSettings-xcDAMaqH.js +0 -1
  386. package/dist/client/assets/AppearanceSettings-BvsvAOsG.js +0 -1
  387. package/dist/client/assets/BranchToolbar.logic-DFsXV3Qs.js +0 -3
  388. package/dist/client/assets/BrowserPanel-D-g_xDZs.js +0 -1
  389. package/dist/client/assets/ChatRightPanel-Bm906qNi.js +0 -201
  390. package/dist/client/assets/ChatThreadRouteView-CATwakjI.js +0 -1
  391. package/dist/client/assets/CommandPaletteDialog-Obv1bvxj.js +0 -1
  392. package/dist/client/assets/CompositeRoot-CfkIdky8.js +0 -1
  393. package/dist/client/assets/ComputerUseSettings-ljYmTHea.js +0 -1
  394. package/dist/client/assets/ConnectionsSettings-CIXs7x_E.js +0 -7
  395. package/dist/client/assets/ContextHandoffEndpointLabel-BzI4Wi1i.js +0 -4
  396. package/dist/client/assets/DiagnosticsSettings-DGX_2T2M.js +0 -2
  397. package/dist/client/assets/DialogHandle-CTtSYpsC.js +0 -1
  398. package/dist/client/assets/DialogRoot-k2_0SNKA.js +0 -1
  399. package/dist/client/assets/DialogTitle-Du7CAbaO.js +0 -1
  400. package/dist/client/assets/DialogTrigger-VpFh8Xza.js +0 -1
  401. package/dist/client/assets/DraftChatThreadRouteView-Cmc5HpWf.js +0 -1
  402. package/dist/client/assets/GlassSurface-BlWIlQ0s.js +0 -1
  403. package/dist/client/assets/HostedConnectionControls-ySHqwr4K.js +0 -1
  404. package/dist/client/assets/HostedHubRoot-Caz8PElK.js +0 -2
  405. package/dist/client/assets/HostedNodeRenameDialog-ChxJdr-Z.js +0 -1
  406. package/dist/client/assets/HostedRelayTrustNotice-DPVrIfj_.js +0 -1
  407. package/dist/client/assets/IntegrationsSettingsPanel-eAq5h-D5.js +0 -2
  408. package/dist/client/assets/KeybindingsSettings-D1XaEVGH.js +0 -7
  409. package/dist/client/assets/LazyBrowserPanel-B6POLJh3.js +0 -2
  410. package/dist/client/assets/McpServersSettings-DqLA6n5v.js +0 -6
  411. package/dist/client/assets/MobileSheet-CtQIYRlY.js +0 -1
  412. package/dist/client/assets/NodeSecuritySettings-Skm7GQDl.js +0 -1
  413. package/dist/client/assets/NullStore-b8PhjwPZ.js +0 -1
  414. package/dist/client/assets/OnboardingDialog-8-fKvY5H.js +0 -1
  415. package/dist/client/assets/OpinionatedPluginsSettings-BIJfJ34L.js +0 -1
  416. package/dist/client/assets/PhoneHome-CUzxhhR4.js +0 -1
  417. package/dist/client/assets/PhoneSettingsSurface-BK2RHmYJ.js +0 -2
  418. package/dist/client/assets/ProvidersSettingsPanel-DPxL7AsR.js +0 -1
  419. package/dist/client/assets/RedactedSensitiveText-DH4mWpB6.js +0 -1
  420. package/dist/client/assets/RootAppShell-DwiWD4Cy.js +0 -7
  421. package/dist/client/assets/SettingsDialog-CE8qy0qL.js +0 -2
  422. package/dist/client/assets/SettingsPanels-BYknk6GO.js +0 -3
  423. package/dist/client/assets/SettingsPanels.editor-64bM0lhg.js +0 -2
  424. package/dist/client/assets/SourceControlSettings-BbveiAj3.js +0 -1
  425. package/dist/client/assets/StatisticsPage-CAO_tCeC.js +0 -1
  426. package/dist/client/assets/StatisticsPanel-SNlgMv2o.js +0 -1
  427. package/dist/client/assets/StatisticsSettingsLink-BpkNubL2.js +0 -1
  428. package/dist/client/assets/ThreadTerminalDrawer-9x_kqQPy.js +0 -18
  429. package/dist/client/assets/ThreadWorkspacePanel-BXE17C4x.js +0 -2073
  430. package/dist/client/assets/appChrome-B_VWWDFj.js +0 -1
  431. package/dist/client/assets/architecture-7GRP2DOG-CQNNG5gU.js +0 -1
  432. package/dist/client/assets/authorization-BugIGt5e.js +0 -1
  433. package/dist/client/assets/badge-BswOCwph.js +0 -1
  434. package/dist/client/assets/capabilities-Bj_X9FZ-.js +0 -1
  435. package/dist/client/assets/channel-BtX-w3CK.js +0 -1
  436. package/dist/client/assets/chevron-right-Ddq5gL-L.js +0 -1
  437. package/dist/client/assets/classDiagram-JCYQIIEL-BgDa3HFl.js +0 -1
  438. package/dist/client/assets/classDiagram-v2-OCEON4UE-BgDa3HFl.js +0 -1
  439. package/dist/client/assets/compiler-runtime-C4g8XhC5.js +0 -1
  440. package/dist/client/assets/desktopWorkspace-Ocqt625W.js +0 -1
  441. package/dist/client/assets/editorPreferences-DVhg0CXd.js +0 -1
  442. package/dist/client/assets/eventmodeling-NTZA5JFV-DpzGHjmu.js +0 -1
  443. package/dist/client/assets/flowDiagram-UKHOOZJN-CaDVMm72.js +0 -1
  444. package/dist/client/assets/hostedConnectionCoordinator-BztHfGNt.js +0 -1
  445. package/dist/client/assets/hostedPairing-CqhLPQqG.js +0 -1
  446. package/dist/client/assets/hubRoutes-DExWSvVE.js +0 -1
  447. package/dist/client/assets/kbd-DKuvGqFP.js +0 -1
  448. package/dist/client/assets/layers-CwP65mnC.js +0 -1
  449. package/dist/client/assets/liquidGlass-CA2o_Cq0.js +0 -1
  450. package/dist/client/assets/liquidGlass.worker-icvLJKHf.js +0 -1
  451. package/dist/client/assets/main-BqSANuAs.css +0 -2
  452. package/dist/client/assets/main-RFllWEko.js +0 -9
  453. package/dist/client/assets/motion-C9rN_t9p.js +0 -1
  454. package/dist/client/assets/palette-gaqgtube.js +0 -1
  455. package/dist/client/assets/perfInstrumentation-BT27w4tn.js +0 -1
  456. package/dist/client/assets/presentationTier-xlIjcFab.js +0 -1
  457. package/dist/client/assets/primary-CQh_KHGG.js +0 -5
  458. package/dist/client/assets/providerDriverMeta-LJ2vJxm-.js +0 -1
  459. package/dist/client/assets/providerStatus-DBGvvkyF.js +0 -1
  460. package/dist/client/assets/radio-group-BueX1AVO.js +0 -1
  461. package/dist/client/assets/railroad-abnf-HS5TGJTU-B890iayj.js +0 -1
  462. package/dist/client/assets/railroad-ebnf-LZEXJU2U-C079Tzw6.js +0 -1
  463. package/dist/client/assets/railroad-peg-WCYAUIDC-DxvOX5Rh.js +0 -1
  464. package/dist/client/assets/runtime-OM-uAtaj.js +0 -18
  465. package/dist/client/assets/scroll-area-BC-LB_zE.js +0 -1
  466. package/dist/client/assets/separator-yx1r9ZDw.js +0 -1
  467. package/dist/client/assets/settingsLayout-BbjDM-p0.js +0 -1
  468. package/dist/client/assets/sheet-CpEwjOWn.js +0 -1
  469. package/dist/client/assets/sidebar-DayQTDZp.js +0 -1
  470. package/dist/client/assets/sidebarProjectFolders-DXqx3OlZ.js +0 -4
  471. package/dist/client/assets/sidebarStatusText-kdA6QMZS.js +0 -1
  472. package/dist/client/assets/sidebarUndo-BHFfJj0k.js +0 -1
  473. package/dist/client/assets/square-Cd2WS1gv.js +0 -1
  474. package/dist/client/assets/src-DHNjfMxR.js +0 -14
  475. package/dist/client/assets/stateDiagram-v2-UEYNNEHI-BnzsGHaN.js +0 -1
  476. package/dist/client/assets/storeSelectors-D60AAN01.js +0 -1
  477. package/dist/client/assets/swimlanesDiagram-ULZ7WXOC-BnA-oDvU.js +0 -8
  478. package/dist/client/assets/switch-D9inWKdd.js +0 -48
  479. package/dist/client/assets/toggle-group-YNqzWsK0.js +0 -1
  480. package/dist/client/assets/toggle-wMq3LLn1.js +0 -1
  481. package/dist/client/assets/tooltip-mwOCSCXF.js +0 -1
  482. package/dist/client/assets/usage-DF8oQrsy.js +0 -1
  483. package/dist/client/assets/useAppSidebarCollapsed-C0jpPtER.js +0 -1
  484. package/dist/client/assets/useAppearancePreference-Dlh9P8iu.js +0 -1
  485. package/dist/client/assets/useBaseUiId-Bz8dcyjd.js +0 -1
  486. package/dist/client/assets/useLabelableId-C8bc9a0F.js +0 -1
  487. package/dist/client/assets/useNavigate-01O5dMQe.js +0 -1
  488. package/dist/client/assets/usePhoneThreadActions-BIdh81kF.js +0 -1
  489. package/dist/client/assets/usePopupViewport-DYYZwfTW.js +0 -1
  490. package/dist/client/assets/usePresentationTier-hxB7Yv_Q.js +0 -1
  491. package/dist/client/assets/useScrollLock-BO185DkJ.js +0 -1
  492. package/dist/client/assets/useTriggerFocusGuards-CMLVr18J.js +0 -1
  493. package/dist/client/assets/useValueChanged-DSyRHPje.js +0 -1
  494. package/dist/client/assets/workspaceMetadataProjection-So9-wSEZ.js +0 -1
  495. package/dist/collectUint8StreamText-BAUF-vzz.mjs +0 -37
  496. package/dist/collectUint8StreamText-vagpNUMJ.cjs +0 -42
  497. package/dist/git-BKwGfw8A.mjs +0 -132
  498. package/dist/git-Dn5wrgFY.cjs +0 -218
  499. package/dist/sourceControl-B0D1Op29.cjs +0 -253
  500. package/dist/sourceControl-BiEBxN01.mjs +0 -224
@@ -0,0 +1 @@
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import"./wsTransport-C88seBPA.js";import{Cs as t,I as n,N as r,P as i,Xi as a,Zi as o,ad as s,hs as c,vs as l,ws as u}from"./runtime-DjjjAcTE.js";import{t as d}from"./react-CwJFpaho.js";import{A as f,D as p,M as ee,N as m,P as h,j as g,k as _}from"./popover-OWEv6cQz.js";import{i as v}from"./presentationTier-DPVAxTK4.js";import{x as y}from"./workspaceLifecycle-OJ1aKksw.js";import{t as b}from"./key-round-BlrUTfxB.js";import{t as x}from"./refresh-cw-CRUTivd6.js";import{t as S}from"./shield-check-_wl7R4Js.js";import{V as C}from"./combobox-Dtjtf7AB.js";import{t as w}from"./user-round-BPDXr8Gq.js";import{A as T,o as E}from"./authorization-Ob6YwWiI.js";import{n as D,t as O}from"./input-CCie4mm1.js";import{c as k}from"./select-Cb9FUPHD.js";import{i as A,n as j,r as M,t as N}from"./alert-FV7ZIit_.js";import{a as te,i as ne,n as re,o as ie,r as ae,s as oe,t as se}from"./alert-dialog-CgXR9tED.js";import{t as P}from"./spinner-lHRJWsym.js";import{t as ce}from"./label-ChtVI9lp.js";import{C as F,S as I,_ as L,a as le,b as R,c as ue,d as de,f as z,g as B,h as V,i as H,l as U,m as W,n as G,o as K,p as q,r as fe,s as J,t as pe,u as Y,v as X,x as Z,y as me}from"./ExternalIdentityWeb.logic-Cu6suNrN.js";import{d as he,l as ge,u as _e}from"./settingsLayout-CRFNCk_D.js";import{t as ve}from"./qr-code-BlbiBIwH.js";var ye={name:`monitor-smartphone`,size:24,node:[[`path`,{d:`M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8`,key:`10dyio`}],[`path`,{d:`M10 19v-3.96 3.15`,key:`1irgej`}],[`path`,{d:`M7 19h5`,key:`qswx4l`}],[`rect`,{width:`6`,height:`10`,x:`16`,y:`12`,rx:`2`,key:`1egngj`}]]};ye.node;var be=u(ye),Q=e(d(),1),xe=v(),Se=`Signed-in native apps use these device keys to establish encrypted connections automatically. The Hub authorizes account-trusted connections, so this does not protect against a malicious Hub; independent node verification remains the stronger option.`,Ce={darwin:`macOS`,linux:`Linux`,windows:`Windows`,ios:`iPhone or iPad`,android:`Android`},we={"secure-enclave":`Secure Enclave`,strongbox:`StrongBox`,tee:`Hardware-backed TEE`,tpm:`TPM`,"hardware-backed":`Hardware backed`,unavailable:`Unavailable`};function Te(e){return Ce[e.platform]}function Ee(e){return`${we[e.reportedKeyBacking]} · reported by device`}function De(e){switch(e.status){case`active`:return`Active`;case`revoked`:return`Revoked`;case`superseded`:return`Superseded`}}function Oe(e){let t=e.trim();return t.length>0&&t.length<=100?t:null}function ke(e,t){return[{label:`Enrollment`,value:e.enrollmentId},{label:`Identity fingerprint`,value:e.identityFingerprint,fingerprint:!0},{label:`Agreement fingerprint`,value:e.agreementFingerprint,fingerprint:!0},{label:`Key backing`,value:Ee(e)},{label:`First enrolled`,value:t(e.createdAt)},{label:`Last used`,value:e.lastUsedAt===null?`Not used yet`:t(e.lastUsedAt)},...e.revokedAt===null?[]:[{label:`Revoked`,value:t(e.revokedAt)}]]}var $=s(),Ae=new Intl.DateTimeFormat(void 0,{dateStyle:`medium`,timeStyle:`short`});function je(e){return Ae.format(new Date(e))}function Me(){let e=(0,xe.c)(75),t=r(Re),n=r(Le),i=r(Ie),[a,s]=(0,Q.useState)(null),[c,l]=(0,Q.useState)(``),[u,d]=(0,Q.useState)(null),v=i!==`idle`,y=i===`renaming-e2ee-device`,b=i===`revoking-e2ee-device`,x;e[0]===c?x=e[1]:(x=Oe(c),e[0]=c,e[1]=x);let S=x,C;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(C=[],e[2]=C):C=e[2],(0,Q.useEffect)(Fe,C);let w;e[3]!==S||e[4]!==a?(w=async()=>{a&&S!==null&&(await E.renameE2eeDevice(a.enrollmentId,{expectedEnrollmentRevision:a.enrollmentRevision,deviceLabel:S})).status===`committed`&&(s(null),l(``))},e[3]=S,e[4]=a,e[5]=w):w=e[5];let T=w,A;e[6]===u?A=e[7]:(A=async()=>{u&&(await E.revokeE2eeDevice(u.enrollmentId,{expectedEnrollmentRevision:u.enrollmentRevision,reasonCode:`owner_requested`})).status===`committed`&&d(null)},e[6]=u,e[7]=A);let j=A,M;e[8]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,$.jsx)(be,{"aria-hidden":!0,className:`size-3.5`}),e[8]=M):M=e[8];let N=v||n===`loading`,F;e[9]===N?F=e[10]:(F=(0,$.jsx)(o,{size:`xs`,variant:`ghost`,disabled:N,onClick:Pe,children:`Refresh`}),e[9]=N,e[10]=F);let I;e[11]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,$.jsx)(_e,{title:`Automatic native encryption`,description:Se,status:`A new signed-in Desktop or mobile app enrolls its own keys; private keys stay on that device.`}),e[11]=I):I=e[11];let L;e[12]!==v||e[13]!==t||e[14]!==n?(L=t.length===0?(0,$.jsx)(_e,{title:n===`loading`?`Loading devices…`:`No native devices yet`,description:`Sign in from Ryco Desktop or mobile to enroll that app automatically. Web sessions stay separate and do not join this native device trust set.`,status:n===`stale`?`The device directory is temporarily unavailable.`:null,control:n===`loading`?(0,$.jsx)(P,{className:`size-3.5`}):null}):t.map(e=>{let t=e.status===`active`;return(0,$.jsx)(_e,{title:(0,$.jsxs)(`span`,{className:`flex flex-wrap items-center gap-2`,children:[e.deviceLabel,(0,$.jsx)(k,{variant:t?`success`:`secondary`,children:De(e)})]}),description:`${Te(e)} · Ryco ${e.appVersion}`,status:n===`stale`?`Showing the last device directory Ryco read.`:null,control:t?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(o,{size:`xs`,variant:`outline`,disabled:v,onClick:()=>{s(e),l(e.deviceLabel)},children:`Rename`}),(0,$.jsx)(o,{size:`xs`,variant:`destructive-outline`,disabled:v,onClick:()=>d(e),children:`Revoke`})]}):null,children:(0,$.jsx)(`dl`,{className:`mt-3 grid grid-cols-[auto_1fr] gap-x-4 gap-y-2 border-t border-border/60 py-3`,children:ke(e,je).map(Ne)})},`${e.enrollmentId}:${String(e.enrollmentRevision)}`)}),e[12]=v,e[13]=t,e[14]=n,e[15]=L):L=e[15];let le=a!==null,R;e[16]===y?R=e[17]:(R=e=>{e||y||(s(null),l(``))},e[16]=y,e[17]=R);let ue;e[18]===T?ue=e[19]:(ue=e=>{e.preventDefault(),T()},e[18]=T,e[19]=ue);let de;e[20]===Symbol.for(`react.memo_cache_sentinel`)?(de=(0,$.jsxs)(g,{children:[(0,$.jsx)(h,{children:`Rename encrypted device`}),(0,$.jsx)(_,{children:`This label is account metadata. Renaming does not rotate or replace the device keys.`})]}),e[20]=de):de=e[20];let z;e[21]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,$.jsx)(ce,{htmlFor:`account-e2ee-device-label`,children:`Device name`}),e[21]=z):z=e[21];let B;e[22]===Symbol.for(`react.memo_cache_sentinel`)?(B=e=>l(e.target.value),e[22]=B):B=e[22];let V;e[23]!==c||e[24]!==y?(V=(0,$.jsxs)(ee,{className:`space-y-2`,children:[z,(0,$.jsx)(O,{id:`account-e2ee-device-label`,value:c,maxLength:100,disabled:y,className:D,onChange:B})]}),e[23]=c,e[24]=y,e[25]=V):V=e[25];let H;e[26]===Symbol.for(`react.memo_cache_sentinel`)?(H=()=>{s(null),l(``)},e[26]=H):H=e[26];let U;e[27]===y?U=e[28]:(U=(0,$.jsx)(o,{type:`button`,variant:`outline`,disabled:y,onClick:H,children:`Cancel`}),e[27]=y,e[28]=U);let W=y||S===null,G;e[29]===y?G=e[30]:(G=y?(0,$.jsx)(P,{className:`size-3.5`}):null,e[29]=y,e[30]=G);let K;e[31]!==W||e[32]!==G?(K=(0,$.jsxs)(o,{type:`submit`,disabled:W,children:[G,`Save name`]}),e[31]=W,e[32]=G,e[33]=K):K=e[33];let q;e[34]!==U||e[35]!==K?(q=(0,$.jsxs)(f,{children:[U,K]}),e[34]=U,e[35]=K,e[36]=q):q=e[36];let fe;e[37]!==ue||e[38]!==V||e[39]!==q?(fe=(0,$.jsx)(m,{className:`max-w-sm`,children:(0,$.jsxs)(`form`,{onSubmit:ue,children:[de,V,q]})}),e[37]=ue,e[38]=V,e[39]=q,e[40]=fe):fe=e[40];let J;e[41]!==R||e[42]!==fe||e[43]!==le?(J=(0,$.jsx)(p,{open:le,onOpenChange:R,children:fe}),e[41]=R,e[42]=fe,e[43]=le,e[44]=J):J=e[44];let pe=u!==null,Y;e[45]===b?Y=e[46]:(Y=e=>{!e&&!b&&d(null)},e[45]=b,e[46]=Y);let X;e[47]===Symbol.for(`react.memo_cache_sentinel`)?(X=(0,$.jsx)(oe,{children:`Revoke this encrypted device?`}),e[47]=X):X=e[47];let Z=u?.deviceLabel??`The selected device`,me;e[48]===Z?me=e[49]:(me=(0,$.jsxs)(te,{children:[X,(0,$.jsxs)(ae,{children:[Z,` will lose account-authorized native connections, and this enrollment cannot be restored. Enrolling it again takes a fresh sign-in on that device, and on a Hub that cannot re-enroll a removed installation, a reinstall of Ryco there.`]})]}),e[48]=Z,e[49]=me);let ge;e[50]===b?ge=e[51]:(ge=(0,$.jsx)(re,{render:(0,$.jsx)(o,{variant:`outline`,disabled:b}),children:`Cancel`}),e[50]=b,e[51]=ge);let ve;e[52]===j?ve=e[53]:(ve=()=>void j(),e[52]=j,e[53]=ve);let ye;e[54]===b?ye=e[55]:(ye=b?(0,$.jsx)(P,{className:`size-3.5`}):null,e[54]=b,e[55]=ye);let Ce;e[56]!==b||e[57]!==ve||e[58]!==ye?(Ce=(0,$.jsxs)(o,{variant:`destructive`,disabled:b,onClick:ve,children:[ye,`Revoke device`]}),e[56]=b,e[57]=ve,e[58]=ye,e[59]=Ce):Ce=e[59];let we;e[60]!==ge||e[61]!==Ce?(we=(0,$.jsxs)(ne,{children:[ge,Ce]}),e[60]=ge,e[61]=Ce,e[62]=we):we=e[62];let Ee;e[63]!==me||e[64]!==we?(Ee=(0,$.jsxs)(ie,{children:[me,we]}),e[63]=me,e[64]=we,e[65]=Ee):Ee=e[65];let Ae;e[66]!==pe||e[67]!==Y||e[68]!==Ee?(Ae=(0,$.jsx)(se,{open:pe,onOpenChange:Y,children:Ee}),e[66]=pe,e[67]=Y,e[68]=Ee,e[69]=Ae):Ae=e[69];let Me;return e[70]!==J||e[71]!==Ae||e[72]!==F||e[73]!==L?(Me=(0,$.jsxs)(he,{title:`Encrypted devices`,icon:M,headerAction:F,children:[I,L,J,Ae]}),e[70]=J,e[71]=Ae,e[72]=F,e[73]=L,e[74]=Me):Me=e[74],Me}function Ne(e){return(0,$.jsxs)(`div`,{className:`contents`,children:[(0,$.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:e.label}),(0,$.jsx)(`dd`,{className:e.fingerprint?`min-w-0 font-mono text-xs break-all`:`min-w-0 text-xs break-all`,children:e.value})]},e.label)}function Pe(){E.refreshE2eeDevices({force:!0})}function Fe(){E.refreshE2eeDevices()}function Ie(e){return e.actionStatus}function Le(e){return e.e2eeDevicesStatus??`idle`}function Re(e){return e.e2eeDevices??[]}var ze=new Intl.DateTimeFormat(void 0,{dateStyle:`medium`,timeStyle:`short`});function Be(e){return e===null||!Number.isFinite(e)?null:ze.format(new Date(e))}function Ve(){let e=(0,xe.c)(15),[t,n]=(0,Q.useState)(null),[r,i]=(0,Q.useState)(0),[a,o]=(0,Q.useState)(``),[s,c]=(0,Q.useState)(!1),l=(0,Q.useRef)(0),u;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>{n(null),i(0),o(``)},e[0]=u):u=e[0];let d=u,f;e[1]===t?.options?f=e[2]:(f=()=>{l.current+=1,E.cancelAccountAction(),t?.options?.onAbandoned?.(),c(!1),d()},e[1]=t?.options,e[2]=f);let p=f,ee;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(ee=async(e,t,r)=>{let a=l.current+=1;c(!1);let s=await t({});if(l.current===a){if(z(s)){o(``),i(0),n({action:e,run:t,options:r,inferred:s.inferredErrorCode===!0});return}s.status===`committed`&&r?.onCommitted?.()}},e[3]=ee):ee=e[3];let m=ee,h;e[4]!==t||e[5]!==a||e[6]!==r?(h=async()=>{if(!t)return;let e=V(a);if(e.length===0)return;let n=l.current+=1,s=await t.run({totpCode:e});if(l.current===n){if(z(s)){let e=r+1;if(R(s,e)){i(e),o(``);return}c(!0),t.options?.onAbandoned?.(),d();return}s.status===`committed`&&t.options?.onCommitted?.(),d()}},e[4]=t,e[5]=a,e[6]=r,e[7]=h):h=e[7];let g=h,_;return e[8]!==p||e[9]!==t||e[10]!==a||e[11]!==r||e[12]!==s||e[13]!==g?(_={run:m,cancel:p,stepUp:t,stepUpAttempts:r,stepUpCode:a,stepUpUnresolved:s,setStepUpCode:o,submitStepUp:g},e[8]=p,e[9]=t,e[10]=a,e[11]=r,e[12]=s,e[13]=g,e[14]=_):_=e[14],_}function He(){let e=(0,xe.c)(1),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=[],e[0]=t):t=e[0],(0,Q.useEffect)(Ue,t)}function Ue(){return E.leaseRecoveryCodeDisplay()}function We(e){let t=(0,xe.c)(3),{busy:n,children:r}=e,i;return t[0]!==n||t[1]!==r?(i=n?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(P,{className:`size-3.5`}),r]}):(0,$.jsx)($.Fragment,{children:r}),t[0]=n,t[1]=r,t[2]=i):i=t[2],i}function Ge(){let e=(0,xe.c)(100),t=i(ut),a=i(lt),[s,l]=(0,Q.useState)(!1),u=r(ct),d=r(st),f=r(ot),p=r(at),ee=r(it),m=r(rt),h=r(nt),g=r(tt),_=i(et),v=i($e),[y,b]=(0,Q.useState)(!1),[x,C]=(0,Q.useState)(null),E=(0,Q.useRef)(!1),D=Ve(),O=D.run;He();let k=m!==`idle`,te;e[0]===ee?te=e[1]:(te=fe(ee),e[0]=ee,e[1]=te);let ne=te,re;e[2]===f?.externalIdentities?re=e[3]:(re=f?.externalIdentities.find(Qe)??null,e[2]=f?.externalIdentities,e[3]=re);let ie=re,ae;e[4]===y?ae=e[5]:(ae=async()=>{if(!y){b(!0),C(null);try{await pe({intent:`link`,returnTo:`/account/security`,start:Ze,navigate:Xe})}catch(e){let t=e;C(t instanceof T?t.message:`GitHub connection is temporarily unavailable.`),b(!1)}}},e[4]=y,e[5]=ae);let oe=ae,se;e[6]===Symbol.for(`react.memo_cache_sentinel`)?(se=[],e[6]=se):se=e[6],(0,Q.useEffect)(Ye,se);let P,ce;if(e[7]!==t||e[8]!==O?(P=()=>{if(t!==`authenticated`||E.current)return;E.current=!0;let e=new AbortController;return n.getPendingExternalIdentity(e.signal).then(e=>{if(e.status===`link`)return O(`connect-github`,Je);e.status===`error`&&C(G(e.code))}).catch(qe),()=>e.abort()},ce=[t,O],e[7]=t,e[8]=O,e[9]=P,e[10]=ce):(P=e[9],ce=e[10]),(0,Q.useEffect)(P,ce),t!==`authenticated`){let t;return e[11]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(ge,{children:(0,$.jsxs)(N,{variant:`warning`,children:[(0,$.jsx)(c,{"aria-hidden":!0}),(0,$.jsx)(A,{children:`Not signed in`}),(0,$.jsx)(M,{children:`Sign in to the Hub to manage passkeys, two-factor authentication, and recovery codes.`})]})}),e[11]=t):t=e[11],t}let F;e[12]!==D.stepUp||e[13]!==D.stepUpUnresolved||e[14]!==g||e[15]!==h?(F=D.stepUpUnresolved?H:U(h,g,D.stepUp!==null),e[12]=D.stepUp,e[13]=D.stepUpUnresolved,e[14]=g,e[15]=h,e[16]=F):F=e[16];let I=F,L;e[17]!==D.stepUpUnresolved||e[18]!==g?(L=!D.stepUpUnresolved&&de(g),e[17]=D.stepUpUnresolved,e[18]=g,e[19]=L):L=e[19];let R=L,ue;e[20]!==u||e[21]!==d?(ue=le(u,d),e[20]=u,e[21]=d,e[22]=ue):ue=e[22];let z=ue,B;e[23]!==I||e[24]!==R?(B=I?(0,$.jsxs)(N,{variant:R?`info`:`error`,"aria-live":`polite`,children:[(0,$.jsx)(c,{"aria-hidden":!0}),(0,$.jsx)(A,{children:R?`Passkey needed`:`That did not work`}),(0,$.jsx)(M,{children:I})]}):null,e[23]=I,e[24]=R,e[25]=B):B=e[25];let V;e[26]===x?V=e[27]:(V=x?(0,$.jsxs)(N,{variant:`warning`,"aria-live":`polite`,children:[(0,$.jsx)(c,{"aria-hidden":!0}),(0,$.jsx)(A,{children:`GitHub connection did not complete`}),(0,$.jsx)(M,{children:x})]}):null,e[26]=x,e[27]=V);let W;e[28]!==f||e[29]!==p?(W=f===null&&p!==`stale`?(0,$.jsxs)(N,{variant:`info`,"aria-live":`polite`,children:[(0,$.jsx)(S,{"aria-hidden":!0}),(0,$.jsx)(A,{children:`Checking account security`}),(0,$.jsx)(M,{children:`Reading which fallback sign-in methods are configured on this Hub.`})]}):null,e[28]=f,e[29]=p,e[30]=W):W=e[30];let K;e[31]!==k||e[32]!==f||e[33]!==p?(K=p===`stale`?(0,$.jsxs)(N,{variant:`warning`,"aria-live":`polite`,children:[(0,$.jsx)(c,{"aria-hidden":!0}),(0,$.jsx)(A,{children:f===null?`Account security unavailable`:`Account security may be outdated`}),(0,$.jsx)(M,{children:f===null?`Ryco could not read the current password, authenticator, and email state.`:`These controls use the last state Ryco successfully read from the Hub.`}),(0,$.jsx)(j,{children:(0,$.jsx)(o,{size:`xs`,variant:`outline`,disabled:k,onClick:Ke,children:`Retry`})})]}):null,e[31]=k,e[32]=f,e[33]=p,e[34]=K):K=e[34];let q;e[35]!==k||e[36]!==z?(q=z?(0,$.jsxs)(N,{variant:z.variant,"aria-live":`polite`,children:[(0,$.jsx)(c,{"aria-hidden":!0}),(0,$.jsx)(A,{children:z.title}),(0,$.jsx)(M,{children:z.description}),(0,$.jsx)(j,{children:(0,$.jsx)(o,{size:`xs`,variant:`outline`,disabled:k,onClick:()=>l(!0),children:z.actionLabel})})]}):null,e[35]=k,e[36]=z,e[37]=q):q=e[37];let J;e[38]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,$.jsx)(w,{"aria-hidden":!0,className:`size-3.5`}),e[38]=J):J=e[38];let Y=a?.displayName??`Signed in`,X;e[39]===a?X=e[40]:(X=a?`${a.role} · joined ${Be(a.createdAt)??`unknown`}`:null,e[39]=a,e[40]=X);let Z;e[41]!==Y||e[42]!==X?(Z=(0,$.jsx)(he,{title:`Account`,icon:J,children:(0,$.jsx)(_e,{title:Y,description:`The Hub account these credentials belong to.`,status:X})}),e[41]=Y,e[42]=X,e[43]=Z):Z=e[43];let me;e[44]===Symbol.for(`react.memo_cache_sentinel`)?(me=(0,$.jsx)(Me,{}),e[44]=me):me=e[44];let ve;e[45]!==m||e[46]!==k||e[47]!==y||e[48]!==ie||e[49]!==ne?.link||e[50]!==O||e[51]!==oe?(ve=ie||ne?.link?(0,$.jsx)(dt,{identity:ie,actionsAvailable:ne?.link===!0,busy:k||y,actionStatus:m,onConnect:()=>void oe(),run:O}):null,e[45]=m,e[46]=k,e[47]=y,e[48]=ie,e[49]=ne?.link,e[50]=O,e[51]=oe,e[52]=ve):ve=e[52];let ye=d===`loading`,be=d===`stale`,Se;e[53]!==D.cancel||e[54]!==D.run||e[55]!==m||e[56]!==s||e[57]!==k||e[58]!==u||e[59]!==ye||e[60]!==be?(Se=(0,$.jsx)(pt,{passkeys:u,loading:ye,stale:be,busy:k,actionStatus:m,addOpen:s,setAddOpen:l,run:D.run,cancel:D.cancel}),e[53]=D.cancel,e[54]=D.run,e[55]=m,e[56]=s,e[57]=k,e[58]=u,e[59]=ye,e[60]=be,e[61]=Se):Se=e[61];let Ce=f?.totpEnrolled??null,we;e[62]!==D.run||e[63]!==m||e[64]!==k||e[65]!==Ce||e[66]!==v?(we=(0,$.jsx)(mt,{busy:k,actionStatus:m,enrollment:v,enrolled:Ce,run:D.run}),e[62]=D.run,e[63]=m,e[64]=k,e[65]=Ce,e[66]=v,e[67]=we):we=e[67];let Te;e[68]!==D.run||e[69]!==m||e[70]!==k||e[71]!==_?(Te=(0,$.jsx)(bt,{busy:k,actionStatus:m,recoveryCodes:_,run:D.run}),e[68]=D.run,e[69]=m,e[70]=k,e[71]=_,e[72]=Te):Te=e[72];let Ee;e[73]!==D.cancel||e[74]!==D.run||e[75]!==m||e[76]!==k||e[77]!==f?(Ee=(0,$.jsx)(_t,{busy:k,actionStatus:m,security:f,run:D.run,cancel:D.cancel}),e[73]=D.cancel,e[74]=D.run,e[75]=m,e[76]=k,e[77]=f,e[78]=Ee):Ee=e[78];let De;e[79]!==D.cancel||e[80]!==D.setStepUpCode||e[81]!==D.stepUp||e[82]!==D.stepUpAttempts||e[83]!==D.stepUpCode||e[84]!==D.submitStepUp||e[85]!==k?(De=(0,$.jsx)(Tt,{pending:D.stepUp,attempts:D.stepUpAttempts,code:D.stepUpCode,onCodeChange:D.setStepUpCode,onSubmit:D.submitStepUp,onCancel:D.cancel,busy:k}),e[79]=D.cancel,e[80]=D.setStepUpCode,e[81]=D.stepUp,e[82]=D.stepUpAttempts,e[83]=D.stepUpCode,e[84]=D.submitStepUp,e[85]=k,e[86]=De):De=e[86];let Oe;return e[87]!==V||e[88]!==W||e[89]!==K||e[90]!==q||e[91]!==Z||e[92]!==ve||e[93]!==Se||e[94]!==we||e[95]!==Te||e[96]!==Ee||e[97]!==De||e[98]!==B?(Oe=(0,$.jsxs)(ge,{children:[B,V,W,K,q,Z,me,ve,Se,we,Te,Ee,De]}),e[87]=V,e[88]=W,e[89]=K,e[90]=q,e[91]=Z,e[92]=ve,e[93]=Se,e[94]=we,e[95]=Te,e[96]=Ee,e[97]=De,e[98]=B,e[99]=Oe):Oe=e[99],Oe}function Ke(){E.refreshAccountSecurity({force:!0})}function qe(){}function Je(e){return E.finishBrowserExternalIdentityConnection(`github`,e)}function Ye(){E.refreshPasskeys(),E.refreshAccountSecurity(),E.refreshExternalIdentityConfiguration()}function Xe(e){return window.location.assign(e)}function Ze(e){return n.startExternalIdentityAuthorization(e)}function Qe(e){return e.provider===`github`}function $e(e){return e.totpEnrollment??null}function et(e){return e.recoveryCodes}function tt(e){return e.errorCode??null}function nt(e){return e.errorMessage}function rt(e){return e.actionStatus}function it(e){return e.externalIdentityConfiguration}function at(e){return e.securityStatus}function ot(e){return e.security}function st(e){return e.passkeysStatus}function ct(e){return e.passkeys}function lt(e){return e.account}function ut(e){return e.accountStatus}function dt(e){let t=(0,xe.c)(33),{identity:n,actionsAvailable:r,busy:i,actionStatus:a,onConnect:s,run:c}=e,[l,u]=(0,Q.useState)(!1),d=a===`connecting-external-identity`,f=a===`disconnecting-external-identity`,p;t[0]===c?p=t[1]:(p=async()=>{await c(`disconnect-github`,ft,{onCommitted:()=>u(!1)})},t[0]=c,t[1]=p);let ee=p,m;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,$.jsx)(y,{"aria-hidden":!0,className:`size-3.5`}),t[2]=m):m=t[2];let h=n?`GitHub · @${n.login}`:`GitHub`,g=n?`Use this GitHub identity to sign in to Ryco. Repository access remains separate.`:`Connect GitHub as another way to sign in. Ryco requests no repository access.`,_;t[3]===n?_=t[4]:(_=n?`Connected ${Be(n.connectedAt)??`at an unknown time`}${n.lastUsedAt===null?``:` · last used ${Be(n.lastUsedAt)??`at an unknown time`}`}`:null,t[3]=n,t[4]=_);let v;t[5]!==r||t[6]!==i||t[7]!==d||t[8]!==f||t[9]!==n||t[10]!==s?(v=r?n?(0,$.jsx)(o,{size:`sm`,variant:`outline`,disabled:i,onClick:()=>u(!0),children:(0,$.jsx)(We,{busy:f,children:`Disconnect`})}):(0,$.jsx)(o,{size:`sm`,variant:`outline`,disabled:i,onClick:s,children:(0,$.jsx)(We,{busy:d,children:`Connect GitHub`})}):null,t[5]=r,t[6]=i,t[7]=d,t[8]=f,t[9]=n,t[10]=s,t[11]=v):v=t[11];let b;t[12]!==h||t[13]!==g||t[14]!==_||t[15]!==v?(b=(0,$.jsx)(_e,{title:h,description:g,status:_,control:v}),t[12]=h,t[13]=g,t[14]=_,t[15]=v,t[16]=b):b=t[16];let x;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,$.jsxs)(te,{children:[(0,$.jsx)(oe,{children:`Disconnect GitHub?`}),(0,$.jsx)(ae,{children:`You will no longer be able to sign in with GitHub. Ryco refuses this change if GitHub is your only remaining sign-in method.`})]}),t[17]=x):x=t[17];let S;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(S=(0,$.jsx)(re,{render:(0,$.jsx)(o,{variant:`outline`}),children:`Cancel`}),t[18]=S):S=t[18];let C;t[19]===ee?C=t[20]:(C=()=>void ee(),t[19]=ee,t[20]=C);let w;t[21]===f?w=t[22]:(w=(0,$.jsx)(We,{busy:f,children:`Disconnect GitHub`}),t[21]=f,t[22]=w);let T;t[23]!==i||t[24]!==C||t[25]!==w?(T=(0,$.jsxs)(ie,{children:[x,(0,$.jsxs)(ne,{children:[S,(0,$.jsx)(o,{disabled:i,onClick:C,children:w})]})]}),t[23]=i,t[24]=C,t[25]=w,t[26]=T):T=t[26];let E;t[27]!==l||t[28]!==T?(E=(0,$.jsx)(se,{open:l,onOpenChange:u,children:T}),t[27]=l,t[28]=T,t[29]=E):E=t[29];let D;return t[30]!==E||t[31]!==b?(D=(0,$.jsxs)(he,{title:`Connected accounts`,icon:m,children:[b,E]}),t[30]=E,t[31]=b,t[32]=D):D=t[32],D}function ft(e){return E.disconnectExternalIdentity(`github`,e)}function pt({passkeys:e,loading:t,stale:n,busy:r,actionStatus:i,addOpen:a,setAddOpen:s,run:c,cancel:l}){let[u,d]=(0,Q.useState)(``),[v,y]=(0,Q.useState)(null),[x,S]=(0,Q.useState)(null),w=i===`adding-passkey`,T=i===`revoking-passkey`,A=K(e),j=F(e),M=B(e),N=(0,Q.useCallback)(()=>{d(``),s(!1)},[s]),P=async e=>{e.preventDefault();let t=W(u);await c(`add-passkey`,e=>E.addPasskey({passkeyLabel:t,...e}),{onCommitted:N,onAbandoned:N})},I=async()=>{let e=v;if(e){y(null),S(e.id);try{await E.revokePasskey(e.id)}finally{S(null)}}};return(0,$.jsxs)(he,{title:`Passkeys`,icon:(0,$.jsx)(b,{"aria-hidden":!0,className:`size-3.5`}),headerAction:(0,$.jsx)(o,{size:`xs`,variant:`outline`,disabled:r,onClick:()=>s(!0),children:`Add passkey`}),children:[(0,$.jsx)(_e,{title:`Passkeys on this account`,description:`A passkey is the strongest way in. Add one for every device you sign in from, and keep at least two so losing a device does not lock you out.`,status:n?`This list could not be refreshed and may be out of date.`:(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`span`,{children:`${String(A.length)} usable ${A.length===1?`passkey`:`passkeys`}`}),j>0?(0,$.jsx)(`span`,{children:` · ${String(j)} synced to a password manager`}):null]})}),t&&e.length===0?(0,$.jsx)(_e,{title:`Loading passkeys…`,description:`Reading the credentials on file.`}):null,!t&&e.length===0?(0,$.jsx)(_e,{title:`No passkeys yet`,description:`Add one now — without a passkey you can only get back in through a fallback credential.`}):null,M.map(e=>{let t=Y(e),n=L(e),i=Be(e.createdAt),a=Be(e.lastUsedAt);return(0,$.jsx)(_e,{title:(0,$.jsxs)(`span`,{className:`flex items-center gap-2`,children:[X(e),t?(0,$.jsx)(k,{variant:`error`,size:`sm`,children:`Revoked`}):null]}),description:t?`Revoked${e.revocationReasonCode?` — ${e.revocationReasonCode}`:``}. This credential can no longer sign in.`:n??`The Hub did not report whether this credential is backed up.`,status:[i?`Added ${i}`:null,a?`Last used ${a}`:`Never used`].filter(e=>e!==null).join(` · `),control:t?null:(0,$.jsx)(o,{size:`xs`,variant:`destructive-outline`,"aria-label":`Revoke ${X(e)}`,disabled:r,onClick:()=>y(e),children:(0,$.jsxs)(We,{busy:T&&x===e.id,children:[(0,$.jsx)(C,{"aria-hidden":!0}),`Revoke`]})})},e.id)}),(0,$.jsx)(p,{open:a,onOpenChange:e=>{if(e){s(!0);return}r||N()},children:(0,$.jsx)(m,{className:`max-w-md`,children:(0,$.jsxs)(`form`,{onSubmit:e=>void P(e),children:[(0,$.jsxs)(g,{children:[(0,$.jsx)(h,{children:`Add a passkey`}),(0,$.jsx)(_,{children:`Your browser will ask you to create a passkey for this account. Adding one replaces the current Hub session with a fresh one.`})]}),(0,$.jsxs)(ee,{className:`space-y-3`,children:[(0,$.jsx)(ce,{htmlFor:`account-passkey-label`,children:`Name (optional)`}),(0,$.jsx)(O,{id:`account-passkey-label`,value:u,autoComplete:`off`,placeholder:`Work laptop`,disabled:w,className:D,onChange:e=>d(e.target.value)})]}),(0,$.jsxs)(f,{children:[(0,$.jsx)(o,{variant:`outline`,onClick:()=>{l(),N()},children:`Cancel`}),(0,$.jsx)(o,{type:`submit`,disabled:r,children:(0,$.jsx)(We,{busy:w,children:`Create passkey`})})]})]})})}),(0,$.jsx)(se,{open:v!==null,onOpenChange:e=>{r||e||y(null)},children:(0,$.jsxs)(ie,{children:[(0,$.jsxs)(te,{children:[(0,$.jsx)(oe,{children:`Revoke this passkey?`}),(0,$.jsxs)(ae,{children:[A.length===1?`This is the only usable passkey on this account. `:``,v?X(v):``,` will stop working immediately, on every device it is stored on. This cannot be undone — you would have to enrol the device again.`]})]}),(0,$.jsxs)(ne,{children:[(0,$.jsx)(re,{render:(0,$.jsx)(o,{variant:`outline`}),children:`Keep it`}),(0,$.jsx)(o,{variant:`destructive`,disabled:r,onClick:()=>void I(),children:`Revoke passkey`})]})]})})]})}function mt(e){let t=(0,xe.c)(61),{busy:n,actionStatus:r,enrollment:i,enrolled:a,run:s}=e,[c,l]=(0,Q.useState)(``),[u,d]=(0,Q.useState)(!1),v=r===`enrolling-totp`,y=r===`confirming-totp`,b=r===`revoking-totp`,x;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(x=()=>{l(``),E.dismissTotpEnrollment()},t[0]=x):x=t[0];let C=x,w;t[1]===c?w=t[2]:(w=async e=>{e.preventDefault();let t=V(c);t.length!==0&&(await E.confirmTotpEnrollment({code:t}),l(``))},t[1]=c,t[2]=w);let T=w,k;t[3]===s?k=t[4]:(k=async()=>{d(!1),await s(`revoke-totp`,gt)},t[3]=s,t[4]=k);let A=k,j;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(j=(0,$.jsx)(S,{"aria-hidden":!0,className:`size-3.5`}),t[5]=j):j=t[5];let M=a===null?`Checking current state…`:a?`On`:`Off`,N;t[6]!==n||t[7]!==a||t[8]!==v||t[9]!==b?(N=a===null?null:a?(0,$.jsx)(o,{size:`xs`,variant:`destructive-outline`,"aria-label":`Turn off two-factor authentication`,disabled:n,onClick:()=>d(!0),children:(0,$.jsx)(We,{busy:b,children:`Turn off`})}):(0,$.jsx)(o,{size:`xs`,variant:`outline`,disabled:n,onClick:ht,children:(0,$.jsx)(We,{busy:v,children:`Set up`})}),t[6]=n,t[7]=a,t[8]=v,t[9]=b,t[10]=N):N=t[10];let P;t[11]!==M||t[12]!==N?(P=(0,$.jsx)(_e,{title:`Authenticator app`,description:`A six-digit code from an authenticator app, required whenever you change credentials from a session that was not started with a passkey. Signing in with a passkey never asks for one.`,status:M,control:N}),t[11]=M,t[12]=N,t[13]=P):P=t[13];let F=i!==null,I;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(I=e=>{e||C()},t[14]=I):I=t[14];let L;t[15]===T?L=t[16]:(L=e=>void T(e),t[15]=T,t[16]=L);let le;t[17]===Symbol.for(`react.memo_cache_sentinel`)?(le=(0,$.jsxs)(g,{children:[(0,$.jsx)(h,{children:`Set up two-factor authentication`}),(0,$.jsx)(_,{children:`Scan this with your authenticator app, then enter the code it shows. This is the only time the key is displayed.`})]}),t[17]=le):le=t[17];let R;t[18]===i?R=t[19]:(R=i?(0,$.jsxs)($.Fragment,{children:[(0,$.jsx)(`div`,{className:`flex justify-center rounded-xl border border-border bg-white p-4`,children:(0,$.jsx)(ve,{value:i.provisioningUri,size:168,level:`M`,marginSize:1,title:`Two-factor setup code`})}),(0,$.jsxs)(`div`,{className:`space-y-1`,children:[(0,$.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Can't scan? Enter this key manually:`}),(0,$.jsx)(`p`,{"aria-label":`Two-factor setup key`,className:`rounded-lg border border-border bg-background px-3 py-2 font-mono text-sm break-all`,children:i.secretBase32})]})]}):null,t[18]=i,t[19]=R);let ue;t[20]===Symbol.for(`react.memo_cache_sentinel`)?(ue=(0,$.jsx)(ce,{htmlFor:`account-totp-confirm`,children:`Code from your app`}),t[20]=ue):ue=t[20];let de;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(de=e=>l(V(e.target.value)),t[21]=de):de=t[21];let z;t[22]!==c||t[23]!==y?(z=(0,$.jsxs)(`div`,{className:`space-y-2`,children:[ue,(0,$.jsx)(O,{id:`account-totp-confirm`,value:c,inputMode:`numeric`,autoComplete:`one-time-code`,maxLength:16,disabled:y,className:D,onChange:de})]}),t[22]=c,t[23]=y,t[24]=z):z=t[24];let B;t[25]!==R||t[26]!==z?(B=(0,$.jsxs)(ee,{className:`space-y-4`,children:[R,z]}),t[25]=R,t[26]=z,t[27]=B):B=t[27];let H;t[28]===Symbol.for(`react.memo_cache_sentinel`)?(H=(0,$.jsx)(o,{variant:`outline`,onClick:C,children:`Cancel`}),t[28]=H):H=t[28];let U;t[29]!==n||t[30]!==c?(U=n||!q(c),t[29]=n,t[30]=c,t[31]=U):U=t[31];let W;t[32]===y?W=t[33]:(W=(0,$.jsx)(We,{busy:y,children:`Turn on`}),t[32]=y,t[33]=W);let G;t[34]!==U||t[35]!==W?(G=(0,$.jsxs)(f,{children:[H,(0,$.jsx)(o,{type:`submit`,disabled:U,children:W})]}),t[34]=U,t[35]=W,t[36]=G):G=t[36];let K;t[37]!==L||t[38]!==B||t[39]!==G?(K=(0,$.jsx)(m,{className:`max-w-md`,children:(0,$.jsxs)(`form`,{onSubmit:L,children:[le,B,G]})}),t[37]=L,t[38]=B,t[39]=G,t[40]=K):K=t[40];let fe;t[41]!==K||t[42]!==F?(fe=(0,$.jsx)(p,{open:F,onOpenChange:I,children:K}),t[41]=K,t[42]=F,t[43]=fe):fe=t[43];let J;t[44]===n?J=t[45]:(J=e=>{n||d(e)},t[44]=n,t[45]=J);let pe;t[46]===Symbol.for(`react.memo_cache_sentinel`)?(pe=(0,$.jsxs)(te,{children:[(0,$.jsx)(oe,{children:`Remove two-factor authentication?`}),(0,$.jsx)(ae,{children:`Password, recovery-code, and emailed-link sign-ins will no longer need a code from your authenticator app. You can set it up again at any time.`})]}),t[46]=pe):pe=t[46];let Y;t[47]===Symbol.for(`react.memo_cache_sentinel`)?(Y=(0,$.jsx)(re,{render:(0,$.jsx)(o,{variant:`outline`}),children:`Keep it on`}),t[47]=Y):Y=t[47];let X;t[48]===A?X=t[49]:(X=()=>void A(),t[48]=A,t[49]=X);let Z;t[50]!==n||t[51]!==X?(Z=(0,$.jsxs)(ie,{children:[pe,(0,$.jsxs)(ne,{children:[Y,(0,$.jsx)(o,{variant:`destructive`,disabled:n,onClick:X,children:`Remove two-factor`})]})]}),t[50]=n,t[51]=X,t[52]=Z):Z=t[52];let me;t[53]!==u||t[54]!==J||t[55]!==Z?(me=(0,$.jsx)(se,{open:u,onOpenChange:J,children:Z}),t[53]=u,t[54]=J,t[55]=Z,t[56]=me):me=t[56];let ge;return t[57]!==fe||t[58]!==me||t[59]!==P?(ge=(0,$.jsxs)(he,{title:`Two-factor authentication`,icon:j,children:[P,fe,me]}),t[57]=fe,t[58]=me,t[59]=P,t[60]=ge):ge=t[60],ge}function ht(){E.beginTotpEnrollment()}function gt(e){return E.revokeTotp(e)}function _t(e){let t=(0,xe.c)(86),{busy:n,actionStatus:r,security:i,run:a,cancel:s}=e,[c,l]=(0,Q.useState)(!1),[u,d]=(0,Q.useState)(``),[v,y]=(0,Q.useState)(``),[x,S]=(0,Q.useState)(!1),[C,w]=(0,Q.useState)(!1),T=r===`setting-password`,k=r===`removing-password`,A;t[0]!==v||t[1]!==u?(A=me(u,v),t[0]=v,t[1]=u,t[2]=A):A=t[2];let j=A,M;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(M=()=>{d(``),y(``),S(!1)},t[3]=M):M=t[3];let N=M,P;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(P=()=>{N(),l(!1)},t[4]=P):P=t[4];let F=P,I;t[5]===s?I=t[6]:(I=()=>{s(),F()},t[5]=s,t[6]=I);let L=I,le;t[7]!==j||t[8]!==u||t[9]!==a?(le=async e=>{e.preventDefault(),S(!0),!j&&await a(`set-password`,e=>E.setPassword({password:u,...e}),{onCommitted:F,onAbandoned:F})},t[7]=j,t[8]=u,t[9]=a,t[10]=le):le=t[10];let R=le,ue;t[11]===a?ue=t[12]:(ue=async()=>{w(!1),await a(`remove-password`,vt)},t[11]=a,t[12]=ue);let de=ue,z;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(z=(0,$.jsx)(b,{"aria-hidden":!0,className:`size-3.5`}),t[13]=z):z=t[13];let B=i===null?`Checking current state…`:i.passwordConfigured?`Set`:`Not set`,V;t[14]!==n||t[15]!==k||t[16]!==i||t[17]!==T?(V=i===null?null:(0,$.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,$.jsx)(o,{size:`xs`,variant:`outline`,disabled:n,onClick:()=>l(!0),children:(0,$.jsx)(We,{busy:T,children:i.passwordConfigured?`Change`:`Set password`})}),i.passwordConfigured?(0,$.jsx)(o,{size:`xs`,variant:`destructive-outline`,"aria-label":`Delete the fallback password`,disabled:n,onClick:()=>w(!0),children:(0,$.jsx)(We,{busy:k,children:`Remove`})}):null]}),t[14]=n,t[15]=k,t[16]=i,t[17]=T,t[18]=V):V=t[18];let H;t[19]!==B||t[20]!==V?(H=(0,$.jsx)(_e,{title:`Fallback password`,description:`A password is a fallback, not an equal of a passkey: it can be phished and reused, and a session started with one has to prove itself again before changing credentials. Keep a passkey as your normal way in.`,status:B,control:V}),t[19]=B,t[20]=V,t[21]=H):H=t[21];let U=i===null?void 0:i.email,W=i?.emailDeliveryConfigured,G;t[22]!==r||t[23]!==n||t[24]!==a||t[25]!==U||t[26]!==W?(G=(0,$.jsx)(yt,{busy:n,actionStatus:r,email:U,deliveryConfigured:W,run:a}),t[22]=r,t[23]=n,t[24]=a,t[25]=U,t[26]=W,t[27]=G):G=t[27];let K;t[28]===L?K=t[29]:(K=e=>{if(e){l(!0);return}L()},t[28]=L,t[29]=K);let q;t[30]===R?q=t[31]:(q=e=>void R(e),t[30]=R,t[31]=q);let fe;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(fe=(0,$.jsxs)(g,{children:[(0,$.jsx)(h,{children:`Set a fallback password`}),(0,$.jsx)(_,{children:`This replaces any password already on the account. The Hub rejects passwords that have appeared in a known breach.`})]}),t[32]=fe):fe=t[32];let J;t[33]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,$.jsx)(ce,{htmlFor:`account-password`,children:`New password`}),t[33]=J):J=t[33];let pe;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(pe=e=>d(e.target.value),t[34]=pe):pe=t[34];let Y;t[35]!==u||t[36]!==T?(Y=(0,$.jsxs)(`div`,{className:`space-y-2`,children:[J,(0,$.jsx)(O,{id:`account-password`,type:`password`,value:u,autoComplete:`new-password`,maxLength:256,disabled:T,className:D,onChange:pe})]}),t[35]=u,t[36]=T,t[37]=Y):Y=t[37];let X;t[38]===Symbol.for(`react.memo_cache_sentinel`)?(X=(0,$.jsx)(ce,{htmlFor:`account-password-confirm`,children:`Confirm password`}),t[38]=X):X=t[38];let Z;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(Z=e=>y(e.target.value),t[39]=Z):Z=t[39];let ge;t[40]!==v||t[41]!==T?(ge=(0,$.jsxs)(`div`,{className:`space-y-2`,children:[X,(0,$.jsx)(O,{id:`account-password-confirm`,type:`password`,value:v,autoComplete:`new-password`,maxLength:256,disabled:T,className:D,onChange:Z})]}),t[40]=v,t[41]=T,t[42]=ge):ge=t[42];let ve;t[43]!==j||t[44]!==x?(ve=x&&j?(0,$.jsx)(`p`,{role:`alert`,className:`text-xs text-destructive-foreground`,children:j}):null,t[43]=j,t[44]=x,t[45]=ve):ve=t[45];let ye;t[46]!==Y||t[47]!==ge||t[48]!==ve?(ye=(0,$.jsxs)(ee,{className:`space-y-3`,children:[Y,ge,ve]}),t[46]=Y,t[47]=ge,t[48]=ve,t[49]=ye):ye=t[49];let be;t[50]===L?be=t[51]:(be=(0,$.jsx)(o,{variant:`outline`,onClick:L,children:`Cancel`}),t[50]=L,t[51]=be);let Se;t[52]===T?Se=t[53]:(Se=(0,$.jsx)(We,{busy:T,children:`Save password`}),t[52]=T,t[53]=Se);let Ce;t[54]!==n||t[55]!==Se?(Ce=(0,$.jsx)(o,{type:`submit`,disabled:n,children:Se}),t[54]=n,t[55]=Se,t[56]=Ce):Ce=t[56];let we;t[57]!==be||t[58]!==Ce?(we=(0,$.jsxs)(f,{children:[be,Ce]}),t[57]=be,t[58]=Ce,t[59]=we):we=t[59];let Te;t[60]!==q||t[61]!==ye||t[62]!==we?(Te=(0,$.jsx)(m,{className:`max-w-md`,children:(0,$.jsxs)(`form`,{onSubmit:q,children:[fe,ye,we]})}),t[60]=q,t[61]=ye,t[62]=we,t[63]=Te):Te=t[63];let Ee;t[64]!==c||t[65]!==K||t[66]!==Te?(Ee=(0,$.jsx)(p,{open:c,onOpenChange:K,children:Te}),t[64]=c,t[65]=K,t[66]=Te,t[67]=Ee):Ee=t[67];let De;t[68]===n?De=t[69]:(De=e=>{n||w(e)},t[68]=n,t[69]=De);let Oe;t[70]===Symbol.for(`react.memo_cache_sentinel`)?(Oe=(0,$.jsxs)(te,{children:[(0,$.jsx)(oe,{children:`Remove the password?`}),(0,$.jsx)(ae,{children:`You will no longer be able to sign in with a password. Make sure you still have a passkey, or recovery codes you have saved.`})]}),t[70]=Oe):Oe=t[70];let ke;t[71]===Symbol.for(`react.memo_cache_sentinel`)?(ke=(0,$.jsx)(re,{render:(0,$.jsx)(o,{variant:`outline`}),children:`Keep it`}),t[71]=ke):ke=t[71];let Ae;t[72]===de?Ae=t[73]:(Ae=()=>void de(),t[72]=de,t[73]=Ae);let je;t[74]!==n||t[75]!==Ae?(je=(0,$.jsxs)(ie,{children:[Oe,(0,$.jsxs)(ne,{children:[ke,(0,$.jsx)(o,{variant:`destructive`,disabled:n,onClick:Ae,children:`Remove password`})]})]}),t[74]=n,t[75]=Ae,t[76]=je):je=t[76];let Me;t[77]!==C||t[78]!==De||t[79]!==je?(Me=(0,$.jsx)(se,{open:C,onOpenChange:De,children:je}),t[77]=C,t[78]=De,t[79]=je,t[80]=Me):Me=t[80];let Ne;return t[81]!==H||t[82]!==G||t[83]!==Ee||t[84]!==Me?(Ne=(0,$.jsxs)(he,{title:`Fallback sign-in`,icon:z,children:[H,G,Ee,Me]}),t[81]=H,t[82]=G,t[83]=Ee,t[84]=Me,t[85]=Ne):Ne=t[85],Ne}function vt(e){return E.removePassword(e)}function yt(e){let t=(0,xe.c)(25),{busy:n,actionStatus:r,email:i,deliveryConfigured:a,run:s}=e,[l,u]=(0,Q.useState)(``),[d,f]=(0,Q.useState)(!1),[p,ee]=(0,Q.useState)(!1),m=r===`requesting-email-verification`,h;t[0]===l?h=t[1]:(h=J(l),t[0]=l,t[1]=h);let g=h,_;t[2]!==l||t[3]!==g||t[4]!==s?(_=async e=>{e.preventDefault(),f(!0),ee(!1),!g&&await s(`request-email-verification`,e=>E.requestEmailVerification({email:l.trim(),...e}),{onCommitted:()=>{ee(!0),u(``),f(!1)}})},t[2]=l,t[3]=g,t[4]=s,t[5]=_):_=t[5];let v=_,y;t[6]===a?y=t[7]:(y=a===!1?(0,$.jsx)(`div`,{className:`border-t border-border/60 px-4 pt-3.5 sm:px-5`,children:(0,$.jsxs)(N,{variant:`warning`,children:[(0,$.jsx)(c,{"aria-hidden":!0}),(0,$.jsx)(A,{children:`No mail will arrive yet`}),(0,$.jsx)(M,{children:`This Hub has no mail transport configured, so verification messages are generated and discarded. The request below will be accepted and nothing will be delivered until an operator wires one up. Do not rely on email as your way back into the account.`})]})}):null,t[6]=a,t[7]=y);let b=a?`Used for account recovery after verification. The Hub answers the same way whether or not the address is already known, so this never confirms who owns it.`:`Used for account recovery once mail delivery is switched on. The Hub answers the same way whether or not the address is already known, so this never confirms who owns it.`,x=i===void 0?`Checking current state…`:i===null?`Not set`:`${i.verified?`Verified`:`Verification pending`} · ${i.address}`,S;t[8]!==p||t[9]!==n||t[10]!==i||t[11]!==a||t[12]!==l||t[13]!==g||t[14]!==m||t[15]!==v||t[16]!==d?(S=i===void 0?null:(0,$.jsxs)(`form`,{className:`pt-3 pb-3.5`,onSubmit:e=>void v(e),children:[(0,$.jsxs)(`div`,{className:`flex flex-col gap-2 sm:flex-row`,children:[(0,$.jsx)(O,{"aria-label":`Email address`,type:`email`,value:l,autoComplete:`email`,placeholder:`you@example.com`,maxLength:254,disabled:m,className:D,onChange:e=>{u(e.target.value),ee(!1)}}),(0,$.jsx)(o,{type:`submit`,size:`sm`,variant:`outline`,disabled:n,className:`shrink-0`,children:(0,$.jsx)(We,{busy:m,children:i===null?`Send verification`:i.verified?`Change email`:`Resend or change`})})]}),d&&g?(0,$.jsx)(`p`,{role:`alert`,className:`pt-2 text-xs text-destructive-foreground`,children:g}):null,p?(0,$.jsx)(`p`,{role:`status`,className:`pt-2 text-xs text-muted-foreground`,children:a?`Verification email requested. Check your inbox and spam folder; delivery may take a moment.`:`Request accepted by the Hub. No message will be delivered until a mail transport is configured.`}):null]}),t[8]=p,t[9]=n,t[10]=i,t[11]=a,t[12]=l,t[13]=g,t[14]=m,t[15]=v,t[16]=d,t[17]=S):S=t[17];let C;t[18]!==b||t[19]!==x||t[20]!==S?(C=(0,$.jsx)(_e,{title:`Recovery email`,description:b,status:x,children:S}),t[18]=b,t[19]=x,t[20]=S,t[21]=C):C=t[21];let w;return t[22]!==y||t[23]!==C?(w=(0,$.jsxs)($.Fragment,{children:[y,C]}),t[22]=y,t[23]=C,t[24]=w):w=t[24],w}function bt(e){let n=(0,xe.c)(52),{busy:r,actionStatus:i,recoveryCodes:s,run:c}=e,[u,d]=(0,Q.useState)(!1),v=i===`regenerating-recovery-codes`,{copyToClipboard:y,isCopied:b}=a(),S;n[0]===c?S=n[1]:(S=async()=>{d(!1),await c(`regenerate-recovery-codes`,wt)},n[0]=c,n[1]=S);let C=S,w;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,$.jsx)(x,{"aria-hidden":!0,className:`size-3.5`}),n[2]=w):w=n[2];let T;n[3]===Symbol.for(`react.memo_cache_sentinel`)?(T=()=>d(!0),n[3]=T):T=n[3];let E;n[4]===v?E=n[5]:(E=(0,$.jsx)(We,{busy:v,children:`Generate new codes`}),n[4]=v,n[5]=E);let D;n[6]!==r||n[7]!==E?(D=(0,$.jsx)(_e,{title:`One-time recovery codes`,description:`Single-use codes that get you back in when you have lost every passkey. They are a last resort, not a substitute for one — anyone holding a code can sign in as you.`,status:`Ryco shows them once and never writes them to browser storage.`,control:(0,$.jsx)(o,{size:`xs`,variant:`destructive-outline`,disabled:r,onClick:T,children:E})}),n[6]=r,n[7]=E,n[8]=D):D=n[8];let O;n[9]===r?O=n[10]:(O=e=>{r||d(e)},n[9]=r,n[10]=O);let k;n[11]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,$.jsxs)(te,{children:[(0,$.jsx)(oe,{children:`Replace your recovery codes?`}),(0,$.jsx)(ae,{children:`Every code you have already saved stops working immediately. You will get a new set, shown once — if you lose them you will have to generate another set from a session you can still sign in to.`})]}),n[11]=k):k=n[11];let A;n[12]===Symbol.for(`react.memo_cache_sentinel`)?(A=(0,$.jsx)(re,{render:(0,$.jsx)(o,{variant:`outline`}),children:`Cancel`}),n[12]=A):A=n[12];let j;n[13]===C?j=n[14]:(j=()=>void C(),n[13]=C,n[14]=j);let M;n[15]!==r||n[16]!==j?(M=(0,$.jsxs)(ie,{children:[k,(0,$.jsxs)(ne,{children:[A,(0,$.jsx)(o,{variant:`destructive`,disabled:r,onClick:j,children:`Replace codes`})]})]}),n[15]=r,n[16]=j,n[17]=M):M=n[17];let N;n[18]!==u||n[19]!==M||n[20]!==O?(N=(0,$.jsx)(se,{open:u,onOpenChange:O,children:M}),n[18]=u,n[19]=M,n[20]=O,n[21]=N):N=n[21];let P=s.length>0,ce;n[22]===Symbol.for(`react.memo_cache_sentinel`)?(ce=(0,$.jsx)(h,{children:`Save your recovery codes`}),n[22]=ce):ce=n[22];let F=String(s.length),I;n[23]===F?I=n[24]:(I=(0,$.jsxs)(g,{children:[ce,(0,$.jsxs)(_,{children:[`Save all `,F,` codes — they are shown once and cannot be retrieved later. Store them somewhere only you can reach — a password manager, or paper somewhere safe.`]})]}),n[23]=F,n[24]=I);let L;n[25]===s?L=n[26]:(L=s.map(St),n[25]=s,n[26]=L);let le;n[27]===L?le=n[28]:(le=(0,$.jsx)(ee,{children:(0,$.jsx)(`ul`,{"aria-label":`Recovery codes`,className:`grid gap-2 rounded-xl border border-border bg-background p-4 font-mono text-sm break-all sm:grid-cols-2`,children:L})}),n[27]=L,n[28]=le);let R;n[29]!==y||n[30]!==s?(R=()=>y(ue(s),void 0),n[29]=y,n[30]=s,n[31]=R):R=n[31];let de;n[32]===b?de=n[33]:(de=b?(0,$.jsx)(t,{"aria-hidden":!0}):(0,$.jsx)(l,{"aria-hidden":!0}),n[32]=b,n[33]=de);let z=b?`Copied`:`Copy codes`,B;n[34]!==R||n[35]!==de||n[36]!==z?(B=(0,$.jsxs)(o,{variant:`outline`,onClick:R,children:[de,z]}),n[34]=R,n[35]=de,n[36]=z,n[37]=B):B=n[37];let V;n[38]===Symbol.for(`react.memo_cache_sentinel`)?(V=(0,$.jsx)(o,{onClick:xt,children:`I saved the codes`}),n[38]=V):V=n[38];let H;n[39]===B?H=n[40]:(H=(0,$.jsxs)(f,{children:[B,V]}),n[39]=B,n[40]=H);let U;n[41]!==I||n[42]!==le||n[43]!==H?(U=(0,$.jsxs)(m,{className:`max-w-md`,showCloseButton:!1,children:[I,le,H]}),n[41]=I,n[42]=le,n[43]=H,n[44]=U):U=n[44];let W;n[45]!==P||n[46]!==U?(W=(0,$.jsx)(p,{open:P,disablePointerDismissal:!0,onOpenChange:Ct,children:U}),n[45]=P,n[46]=U,n[47]=W):W=n[47];let G;return n[48]!==N||n[49]!==W||n[50]!==D?(G=(0,$.jsxs)(he,{title:`Recovery codes`,icon:w,children:[D,N,W]}),n[48]=N,n[49]=W,n[50]=D,n[51]=G):G=n[51],G}function xt(){return E.dismissRecoveryCodes()}function St(e){return(0,$.jsx)(`li`,{children:e},e)}function Ct(e,t){e||t.cancel()}function wt(e){return E.regenerateRecoveryCodes(e)}function Tt(e){let t=(0,xe.c)(45),{pending:n,attempts:r,code:i,onCodeChange:a,onSubmit:s,onCancel:c,busy:l}=e,u=n!==null,d;t[0]===c?d=t[1]:(d=e=>{e||c()},t[0]=c,t[1]=d);let v;t[2]===s?v=t[3]:(v=e=>{e.preventDefault(),s()},t[2]=s,t[3]=v);let y;t[4]===n?y=t[5]:(y=n?I(n.action):``,t[4]=n,t[5]=y);let b;t[6]===y?b=t[7]:(b=(0,$.jsx)(h,{children:y}),t[6]=y,t[7]=b);let x=n?.inferred??!1,S;t[8]!==r||t[9]!==x?(S=Z(r,x),t[8]=r,t[9]=x,t[10]=S):S=t[10];let C;t[11]===S?C=t[12]:(C=(0,$.jsx)(_,{children:S}),t[11]=S,t[12]=C);let w;t[13]!==b||t[14]!==C?(w=(0,$.jsxs)(g,{children:[b,C]}),t[13]=b,t[14]=C,t[15]=w):w=t[15];let T;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,$.jsx)(ce,{htmlFor:`account-step-up-code`,children:`Authenticator code`}),t[16]=T):T=t[16];let E;t[17]===a?E=t[18]:(E=e=>a(V(e.target.value)),t[17]=a,t[18]=E);let k;t[19]!==l||t[20]!==i||t[21]!==E?(k=(0,$.jsxs)(ee,{className:`space-y-2`,children:[T,(0,$.jsx)(O,{id:`account-step-up-code`,value:i,inputMode:`numeric`,autoComplete:`one-time-code`,maxLength:16,disabled:l,className:D,onChange:E})]}),t[19]=l,t[20]=i,t[21]=E,t[22]=k):k=t[22];let A;t[23]===c?A=t[24]:(A=(0,$.jsx)(o,{variant:`outline`,onClick:c,children:`Cancel`}),t[23]=c,t[24]=A);let j;t[25]!==l||t[26]!==i?(j=l||!q(i),t[25]=l,t[26]=i,t[27]=j):j=t[27];let M;t[28]===l?M=t[29]:(M=(0,$.jsx)(We,{busy:l,children:`Confirm code`}),t[28]=l,t[29]=M);let N;t[30]!==j||t[31]!==M?(N=(0,$.jsx)(o,{type:`submit`,disabled:j,children:M}),t[30]=j,t[31]=M,t[32]=N):N=t[32];let te;t[33]!==A||t[34]!==N?(te=(0,$.jsxs)(f,{children:[A,N]}),t[33]=A,t[34]=N,t[35]=te):te=t[35];let ne;t[36]!==k||t[37]!==te||t[38]!==v||t[39]!==w?(ne=(0,$.jsx)(m,{className:`max-w-sm`,children:(0,$.jsxs)(`form`,{onSubmit:v,children:[w,k,te]})}),t[36]=k,t[37]=te,t[38]=v,t[39]=w,t[40]=ne):ne=t[40];let re;return t[41]!==u||t[42]!==ne||t[43]!==d?(re=(0,$.jsx)(p,{open:u,onOpenChange:d,children:ne}),t[41]=u,t[42]=ne,t[43]=d,t[44]=re):re=t[44],re}export{Ge as AccountSettingsPanel};
@@ -0,0 +1 @@
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t}from"./primary-Cf-xJExj.js";import{Gi as n,I as r,Pi as i,U as a}from"./wsTransport-C88seBPA.js";import{Bi as o,Gi as s,To as c,Vi as l,Xu as ee,Zi as u,_s as d,ad as f,b as p,cd as m,id as te,ko as h,oi as ne,p as g,rd as re,u as _,xo as v,y,yo as b}from"./runtime-DjjjAcTE.js";import{t as x}from"./react-CwJFpaho.js";import{i as S}from"./presentationTier-DPVAxTK4.js";import{n as C}from"./useEnvironmentSettingsTarget-DM6BRDT7.js";import{t as ie}from"./refresh-cw-CRUTivd6.js";import{i as ae}from"./capabilities-CfOhq009.js";import"./useProviderOptionsUpdater-CTzNh2B7.js";import{t as w}from"./toastHelpers-CSQRKo4F.js";import{i as oe}from"./threadPriorityRefreshRuntime-H656C1J_.js";import{a as T,i as E,o as se,s as ce,t as le}from"./select-Cb9FUPHD.js";import{t as ue}from"./switch-oQc7Ifbl.js";import{d as D,i as de,l as fe,o as pe,u as O}from"./settingsLayout-CRFNCk_D.js";import{i as k}from"./TraitsPicker-DcrpJahy.js";var me=[`Thread titles`,`Project or repository names`,`Branch names`,`Bucketed creation and activity age`,`Running, approval, input, queue, failure, and delivery state`,`Pull request or linked issue title and state`,`Up to 600 characters from the latest user request`],he=[{value:0,label:`Manual only`},{value:3e5,label:`Every 5 minutes`},{value:6e5,label:`Every 10 minutes`},{value:18e5,label:`Every 30 minutes`},{value:36e5,label:`Every hour`},{value:216e5,label:`Every 6 hours`},{value:864e5,label:`Every 24 hours`}];function ge(e){return{...e.enabled===void 0?{}:{aiFocusEnabled:e.enabled},...e.refreshIntervalMs===void 0?{}:{aiFocusRefreshIntervalMs:e.refreshIntervalMs}}}function _e(e){return e.map(e=>{let t=e.serverConfig,n=t?.environment.capabilities.threadPriorityRanking===!0,r=t?.settings.inboxPriorityModelSelection??null,i=t?r??t.settings.textGenerationModelSelection:null,a=i===null?null:t?.providers.find(e=>e.instanceId===i.instanceId)??null;return{...e,supported:n,inherited:r===null,effectiveModelSelection:i,effectiveProvider:a}})}function A(e,t){let n=e.find(e=>e.instanceId===t);return!!(n&&n.enabled&&n.installed&&n.availability!==`unavailable`&&n.status!==`disabled`&&n.status!==`error`)}function j(e){if(e.selection!==null&&!A(e.serverConfig.providers,e.selection.instanceId))throw Error(`That provider instance is not available on this environment.`);return{inboxPriorityModelSelection:e.selection}}var M=S(),N=e(x(),1),P=f();function F(e){return e instanceof Error?e.message:`An unexpected error occurred.`}function ve(e){let t=(0,M.c)(12),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,P.jsx)(C,{className:`size-3.5`}),t[0]=n):n=t[0];let r;t[1]===e.value?r=t[2]:(r=e.value?.toString()??`off`,t[1]=e.value,t[2]=r);let i;t[3]===e?i=t[4]:(i=t=>{let n=t===`off`?null:Number(t);(n===null||a.includes(n))&&e.onChange(n)},t[3]=e,t[4]=i);let o=e.value===null?`Off`:`After ${e.value} ${e.value===1?`day`:`days`}`,s;t[5]===o?s=t[6]:(s=(0,P.jsx)(se,{className:`w-48`,"aria-label":`Auto-settle inactive tasks`,children:(0,P.jsx)(ce,{children:o})}),t[5]=o,t[6]=s);let c;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,P.jsxs)(T,{align:`end`,alignItemWithTrigger:!1,children:[(0,P.jsx)(E,{hideIndicator:!0,value:`off`,children:`Off`}),a.map(I)]}),t[7]=c):c=t[7];let l;return t[8]!==r||t[9]!==i||t[10]!==s?(l=(0,P.jsx)(D,{owner:`client`,title:`Housekeeping`,icon:n,children:(0,P.jsx)(O,{title:`Auto-settle inactive tasks`,description:`Move inactive tasks to Settled after their last message or turn. Running work, queued messages, pending input, open pull requests, and tasks kept active are protected.`,control:(0,P.jsxs)(le,{value:r,onValueChange:i,children:[s,c]})})}),t[8]=r,t[9]=i,t[10]=s,t[11]=l):l=t[11],l}function I(e){return(0,P.jsxs)(E,{hideIndicator:!0,value:String(e),children:[`After `,e,` `,e===1?`day`:`days`]},e)}function ye(){let e=(0,M.c)(2),[t,n]=(0,N.useState)(L),r,i;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>y(()=>{n(_())}),i=[],e[0]=r,e[1]=i):(r=e[0],i=e[1]),(0,N.useEffect)(r,i),t}function L(){return _()}function R({row:e}){let[t,n]=(0,N.useState)(!1),i=e.serverConfig;if(!i||!e.effectiveModelSelection)return null;let a={...i.settings,...r},o=e.effectiveModelSelection,l=h(c(i.providers)),ee=b(a,i.providers,o.instanceId,o.model),d=async t=>{n(!0);try{let n=j({serverConfig:i,selection:t});await p(e.environmentId,n)}catch(t){s.add(w({type:`error`,title:`Could not update ${e.label}`,description:F(t)}))}finally{n(!1)}};return(0,P.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:[(0,P.jsx)(k,{activeInstanceId:o.instanceId,model:o.model,modelOptions:o.options,lockedProvider:null,instanceEntries:l,modelOptionsByInstance:ee,compact:!0,disabled:t||!e.connected,...e.connected?{}:{disabledReason:`Connect this environment to change its model.`},onInstanceModelChange:(e,t,n)=>{d(v({...a,textGenerationModelSelection:m(e,t,n)},i.providers))}}),e.inherited?null:(0,P.jsx)(u,{size:`xs`,variant:`ghost`,disabled:t||!e.connected,onClick:()=>void d(null),children:`Use text model`})]})}function z(e){let t=(0,M.c)(6),{row:n}=e,r=n.effectiveProvider?.displayName??n.effectiveProvider?.driver??null,i=n.connected?n.supported?n.inherited?`Inherits the text-generation model${r?` (${r})`:``}.`:`Uses a separate model for Inbox ranking.`:`This node version does not support AI Focus ranking. Other supported nodes still work.`:`Offline — ranking waits for an existing connection.`,a;t[0]===n?a=t[1]:(a=n.supported?(0,P.jsx)(R,{row:n}):void 0,t[0]=n,t[1]=a);let o;return t[2]!==n.label||t[3]!==i||t[4]!==a?(o=(0,P.jsx)(O,{title:n.label,description:i,control:a}),t[2]=n.label,t[3]=i,t[4]=a,t[5]=o):o=t[5],o}function B(){let e=(0,M.c)(59),n=re(),r=te(),a=o(),{updateSettings:c}=l(),f=ee(),p;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(p=t(),e[0]=p):p=e[0];let m=p,h=ne(we),g=ye(),[_,v]=(0,N.useState)(!1);m?.environmentId,m?.label;let y;bb0:{if(n===`node`&&r){let t=r.connected&&r.canManage!==!1,n;e[1]!==t||e[2]!==r.environmentId||e[3]!==r.nodeLabel||e[4]!==r.serverConfig?(n=_e([{environmentId:r.environmentId,label:r.nodeLabel,connected:t,serverConfig:r.serverConfig}]),e[1]=t,e[2]=r.environmentId,e[3]=r.nodeLabel,e[4]=r.serverConfig,e[5]=n):n=e[5],y=n;break bb0}let t;if(e[6]!==g||e[7]!==f||e[8]!==h){let n=new Map;m?.environmentId&&n.set(m.environmentId,{label:m.label,config:f});for(let e of g){if(n.has(e.environmentId))continue;let t=h[e.environmentId];n.set(e.environmentId,{label:t?.descriptor?.label??e.knownEnvironment.label,config:t?.serverConfig??null})}for(let[e,t]of Object.entries(h)){let r=i.make(e);n.has(r)||n.set(r,{label:t.descriptor?.label??`Saved environment`,config:t.serverConfig})}t=_e([...n].map(Ce)),e[6]=g,e[7]=f,e[8]=h,e[9]=t}else t=e[9];y=t}let b=y,x;e[10]===b?x=e[11]:(x=async()=>{v(!0);let e=await oe(),t=e.failures;t.length>0?s.add(w({type:`error`,title:`AI Focus refresh failed`,description:t.map(e=>{let{environmentId:t,error:n}=e;return`${b.find(e=>e.environmentId===t)?.label??`Environment`}: ${F(n)}`}).join(` · `)})):s.add(w({type:`success`,title:e.attempted.length>0?`AI Focus refreshed`:`No connected supported nodes`,description:e.attempted.length>0?`Updated ${e.succeeded.length} environment${e.succeeded.length===1?``:`s`}.`:`Connect a supported node to rank its Inbox.`})),v(!1)},e[10]=b,e[11]=x);let S=x,C;e[12]===c?C=e[13]:(C=e=>c({sidebarAutoSettleAfterDays:e}),e[12]=c,e[13]=C);let E;e[14]!==a.sidebarAutoSettleAfterDays||e[15]!==C?(E=(0,P.jsx)(ve,{value:a.sidebarAutoSettleAfterDays,onChange:C}),e[14]=a.sidebarAutoSettleAfterDays,e[15]=C,e[16]=E):E=e[16];let k;e[17]===Symbol.for(`react.memo_cache_sentinel`)?(k=(0,P.jsx)(ae,{className:`size-3.5`}),e[17]=k):k=e[17];let A;e[18]===c?A=e[19]:(A=e=>c(ge({enabled:e})),e[18]=c,e[19]=A);let j;e[20]!==a.aiFocusEnabled||e[21]!==A?(j=(0,P.jsx)(O,{title:`Prioritize the Inbox`,description:`Create a Focus section from pinned, actionable, and model-ranked threads. Focused threads are removed from Active, never duplicated.`,control:(0,P.jsx)(ue,{"aria-label":`Enable AI Focus`,checked:a.aiFocusEnabled,onCheckedChange:A})}),e[20]=a.aiFocusEnabled,e[21]=A,e[22]=j):j=e[22];let I=String(a.aiFocusRefreshIntervalMs),L;e[23]===c?L=e[24]:(L=e=>{let t=Number(e);c(ge({refreshIntervalMs:t}))},e[23]=c,e[24]=L);let R;e[25]===a.aiFocusRefreshIntervalMs?R=e[26]:(R=he.find(e=>e.value===a.aiFocusRefreshIntervalMs)?.label??`Every 10 minutes`,e[25]=a.aiFocusRefreshIntervalMs,e[26]=R);let z;e[27]===R?z=e[28]:(z=(0,P.jsx)(se,{className:`w-48`,"aria-label":`AI Focus refresh interval`,children:(0,P.jsx)(ce,{children:R})}),e[27]=R,e[28]=z);let B;e[29]===Symbol.for(`react.memo_cache_sentinel`)?(B=(0,P.jsx)(T,{align:`end`,alignItemWithTrigger:!1,children:he.map(Se)}),e[29]=B):B=e[29];let V;e[30]!==z||e[31]!==I||e[32]!==L?(V=(0,P.jsxs)(le,{value:I,onValueChange:L,children:[z,B]}),e[30]=z,e[31]=I,e[32]=L,e[33]=V):V=e[33];let H;e[34]===S?H=e[35]:(H=()=>void S(),e[34]=S,e[35]=H);let U=_?`size-4 animate-spin`:`size-4`,W;e[36]===U?W=e[37]:(W=(0,P.jsx)(ie,{className:U}),e[36]=U,e[37]=W);let G;e[38]!==_||e[39]!==H||e[40]!==W?(G=(0,P.jsx)(u,{size:`icon-sm`,variant:`outline`,"aria-label":`Refresh AI Focus now`,disabled:_,onClick:H,children:W}),e[38]=_,e[39]=H,e[40]=W,e[41]=G):G=e[41];let K;e[42]!==V||e[43]!==G?(K=(0,P.jsx)(O,{title:`Refresh rankings`,description:`Automatic checks use only nodes that are already connected. Manual-only never starts a connection.`,control:(0,P.jsxs)(`div`,{className:`flex items-center gap-2`,children:[V,G]})}),e[42]=V,e[43]=G,e[44]=K):K=e[44];let q;e[45]!==K||e[46]!==j?(q=(0,P.jsxs)(D,{owner:`client`,title:`AI Focus`,icon:k,children:[j,K]}),e[45]=K,e[46]=j,e[47]=q):q=e[47];let J;e[48]===b?J=e[49]:(J=b.length>0?b.map(xe):(0,P.jsx)(pe,{title:`No environments available`,description:`Connect a device to configure its Inbox ranking model.`,className:`py-8`}),e[48]=b,e[49]=J);let Y;e[50]===J?Y=e[51]:(Y=(0,P.jsx)(D,{owner:`node`,title:`Models`,children:J}),e[50]=J,e[51]=Y);let X;e[52]===Symbol.for(`react.memo_cache_sentinel`)?(X=(0,P.jsx)(d,{className:`size-3.5`}),e[52]=X):X=e[52];let Z;e[53]===Symbol.for(`react.memo_cache_sentinel`)?(Z=(0,P.jsx)(`p`,{className:`mb-3 text-xs leading-relaxed text-muted-foreground`,children:`Ranking sends only this bounded metadata from each environment. It does not send full chat history, file contents, or message responses.`}),e[53]=Z):Z=e[53];let Q;e[54]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,P.jsx)(D,{owner:`node`,title:`Data sent to the selected model`,icon:X,children:(0,P.jsxs)(de,{children:[Z,(0,P.jsx)(`ul`,{className:`grid gap-x-6 gap-y-1.5 text-xs text-foreground sm:grid-cols-2`,children:me.map(be)})]})}),e[54]=Q):Q=e[54];let $;return e[55]!==q||e[56]!==Y||e[57]!==E?($=(0,P.jsxs)(fe,{children:[E,q,Y,Q]}),e[55]=q,e[56]=Y,e[57]=E,e[58]=$):$=e[58],$}function be(e){return(0,P.jsxs)(`li`,{className:`flex items-baseline gap-2`,children:[(0,P.jsx)(`span`,{"aria-hidden":!0,className:`size-1 shrink-0 translate-y-[-2px] rounded-full bg-muted-foreground/60`}),(0,P.jsx)(`span`,{children:e})]},e)}function xe(e){return(0,P.jsx)(z,{row:e},e.environmentId)}function Se(e){return(0,P.jsx)(E,{hideIndicator:!0,value:String(e.value),children:e.label},e.value)}function Ce(e){let[t,r]=e;return{environmentId:t,label:r.label,connected:g(t)!==null&&n(t).phase===`connected`,serverConfig:r.config}}function we(e){return e.byId}export{B as AiFocusSettings};
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{$l as t}from"./runtime-OM-uAtaj.js";import{t as n}from"./react-CwJFpaho.js";import{t as r}from"./compiler-runtime-C4g8XhC5.js";var i=r(),a=e(n(),1),o=t(),s=250;function c(e){let t=(0,i.c)(17),{children:n}=e,r=(0,a.useRef)(null),c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c={height:null,isClipping:!1},t[0]=c):c=t[0];let[d,f]=(0,a.useState)(c),p;t[1]===d.isClipping?p=t[2]:(p=()=>{if(!d.isClipping)return;let e=window.setTimeout(()=>{f(u)},s);return()=>window.clearTimeout(e)},t[1]=d.isClipping,t[2]=p);let m;t[3]!==d.height||t[4]!==d.isClipping?(m=[d.height,d.isClipping],t[3]=d.height,t[4]=d.isClipping,t[5]=m):m=t[5],(0,a.useEffect)(p,m);let h,g;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(h=()=>{let e=r.current;if(!e)return;let t=null,n=null,i=()=>{let t=Math.ceil(e.scrollHeight||e.getBoundingClientRect().height);f(e=>e.height===t?e:{height:t,isClipping:e.height!==null})},a=()=>{t!==null&&(window.cancelAnimationFrame(t),t=null),n!==null&&(window.cancelAnimationFrame(n),n=null)},o=()=>{a(),i(),t=window.requestAnimationFrame(()=>{t=null,i(),n=window.requestAnimationFrame(()=>{n=null,i()})})};o();let s=new ResizeObserver(o);return s.observe(e),()=>{s.disconnect(),a()}},g=[],t[6]=h,t[7]=g):(h=t[6],g=t[7]),(0,a.useLayoutEffect)(h,g);let _;t[8]!==d.height||t[9]!==d.isClipping?(_=d.height===null?void 0:{height:d.height,overflow:d.isClipping?`hidden`:`visible`},t[8]=d.height,t[9]=d.isClipping,t[10]=_):_=t[10];let v;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(v=e=>{e.target===e.currentTarget&&e.propertyName===`height`&&f(l)},t[11]=v):v=t[11];let y;t[12]===n?y=t[13]:(y=(0,o.jsx)(`div`,{ref:r,children:n}),t[12]=n,t[13]=y);let b;return t[14]!==_||t[15]!==y?(b=(0,o.jsx)(`div`,{"data-slot":`animated-height`,className:`transition-[height] duration-200 ease-out motion-reduce:transition-none`,style:_,onTransitionEnd:v,children:y}),t[14]=_,t[15]=y,t[16]=b):b=t[16],b}function l(e){return e.isClipping?{...e,isClipping:!1}:e}function u(e){return e.isClipping?{...e,isClipping:!1}:e}export{c as t};
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{ad as t}from"./runtime-DjjjAcTE.js";import{t as n}from"./react-CwJFpaho.js";import{i as r}from"./presentationTier-DPVAxTK4.js";var i=r(),a=e(n(),1),o=t(),s=250;function c(e){let t=(0,i.c)(17),{children:n}=e,r=(0,a.useRef)(null),c;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(c={height:null,isClipping:!1},t[0]=c):c=t[0];let[d,f]=(0,a.useState)(c),p;t[1]===d.isClipping?p=t[2]:(p=()=>{if(!d.isClipping)return;let e=window.setTimeout(()=>{f(u)},s);return()=>window.clearTimeout(e)},t[1]=d.isClipping,t[2]=p);let m;t[3]!==d.height||t[4]!==d.isClipping?(m=[d.height,d.isClipping],t[3]=d.height,t[4]=d.isClipping,t[5]=m):m=t[5],(0,a.useEffect)(p,m);let h,g;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(h=()=>{let e=r.current;if(!e)return;let t=null,n=null,i=()=>{let t=Math.ceil(e.scrollHeight||e.getBoundingClientRect().height);f(e=>e.height===t?e:{height:t,isClipping:e.height!==null})},a=()=>{t!==null&&(window.cancelAnimationFrame(t),t=null),n!==null&&(window.cancelAnimationFrame(n),n=null)},o=()=>{a(),i(),t=window.requestAnimationFrame(()=>{t=null,i(),n=window.requestAnimationFrame(()=>{n=null,i()})})};o();let s=new ResizeObserver(o);return s.observe(e),()=>{s.disconnect(),a()}},g=[],t[6]=h,t[7]=g):(h=t[6],g=t[7]),(0,a.useLayoutEffect)(h,g);let _;t[8]!==d.height||t[9]!==d.isClipping?(_=d.height===null?void 0:{height:d.height,overflow:d.isClipping?`hidden`:`visible`},t[8]=d.height,t[9]=d.isClipping,t[10]=_):_=t[10];let v;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(v=e=>{e.target===e.currentTarget&&e.propertyName===`height`&&f(l)},t[11]=v):v=t[11];let y;t[12]===n?y=t[13]:(y=(0,o.jsx)(`div`,{ref:r,children:n}),t[12]=n,t[13]=y);let b;return t[14]!==_||t[15]!==y?(b=(0,o.jsx)(`div`,{"data-slot":`animated-height`,className:`transition-[height] duration-(--app-motion-duration-pop) ease-out motion-reduce:transition-none`,style:_,onTransitionEnd:v,children:y}),t[14]=_,t[15]=y,t[16]=b):b=t[16],b}function l(e){return e.isClipping?{...e,isClipping:!1}:e}function u(e){return e.isClipping?{...e,isClipping:!1}:e}export{c as t};
@@ -0,0 +1 @@
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{$i as t,Cs as n,Gi as r,Zi as i,ad as a,ms as o,vs as s,ws as c}from"./runtime-DjjjAcTE.js";import{t as l}from"./react-CwJFpaho.js";import{S as u,l as d,m as f,p}from"./popover-OWEv6cQz.js";import{i as m}from"./presentationTier-DPVAxTK4.js";import{t as h}from"./clipboard-copy-DGi8FKNO.js";import{t as g}from"./download-TvtXS4hE.js";import{t as _}from"./ellipsis-CDK1dNFZ.js";import{t as v}from"./pencil-Bzg-nc6d.js";import{V as y}from"./combobox-Dtjtf7AB.js";import{t as b}from"./input-CCie4mm1.js";import{_ as x,a as S,b as C,d as w,h as T,m as E,o as D,p as O,s as ee,u as k,x as te}from"./appearancePreferences-NnsvXwBe.js";import{t as A}from"./useDiffLayout-DhcXwhBL.js";import{C as j,S as ne,T as M,_ as re,a as N,b as ie,c as P,d as ae,f as F,g as I,h as L,l as oe,m as se,o as ce,p as le,r as ue,s as de,t as fe,u as pe,v as R,w as z,y as B}from"./useTheme-Bdy-BDs-.js";import{c as me}from"./select-Cb9FUPHD.js";import{n as V,t as H}from"./toggle-group-C5ICmqkI.js";import{a as he,i as ge,n as _e,o as ve,r as ye,s as be,t as xe}from"./alert-dialog-CgXR9tED.js";import{t as Se}from"./textarea-VyiIZ0wQ.js";import{t as Ce}from"./switch-oQc7Ifbl.js";import{a as we,d as U,l as Te,r as W,u as G}from"./settingsLayout-CRFNCk_D.js";import{t as Ee}from"./SettingsSelect-DEhNaz3E.js";import{t as K}from"./color-picker-BdBXje-a.js";import{Ut as De}from"./main-Ch0bwS-M.js";var Oe={name:`upload`,size:24,node:[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]};Oe.node;var ke=c(Oe),q=e(l(),1),J=m(),Ae=`.rycotheme.json`,je=/[^a-z0-9-_]+/gi;function Me(e){let t=(e.name||e.id).trim().replace(je,`-`).replace(/^-+|-+$/g,``);return`${t.length>0?t:e.id||`theme`}${Ae}`}function Ne(e){let t={id:e.id,name:e.name};return e.description&&(t.description=e.description),e.light&&(t.light={...e.light}),e.dark&&(t.dark={...e.dark}),JSON.stringify(t,null,2)}function Pe(e){let t;try{t=JSON.parse(e)}catch(e){throw Error(`Could not parse theme JSON: ${e instanceof Error?e.message:`invalid JSON`}`,{cause:e})}if(!se(t))throw Error(`Theme JSON does not match the schema (need string id/name and string-only light/dark tokens).`);let n={id:t.id,name:t.name,builtIn:!1};return t.description&&(n.description=t.description),t.light&&(n.light={...t.light}),t.dark&&(n.dark={...t.dark}),n}function Fe(e,t=`rename`){let n=Pe(e);if(!ae().find(e=>e.id===n.id))return N(n),{theme:n,action:`added`};if(F(n.id)||t===`rename`){let e={...n,id:pe(n.id)};return N(e),{theme:e,action:`renamed`}}return ne(n.id,n),{theme:n,action:`replaced`}}typeof TextEncoder>`u`||new TextEncoder,typeof TextDecoder>`u`||new TextDecoder;async function Ie(e){let t=Ne(e);if(typeof navigator>`u`||!navigator.clipboard)throw Error(`Clipboard API not available in this environment.`);await navigator.clipboard.writeText(t)}function Le(e){if(typeof document>`u`||typeof URL>`u`||typeof Blob>`u`)throw Error(`Download not supported in this environment.`);let t=new Blob([Ne(e)],{type:`application/json`}),n=URL.createObjectURL(t),r=document.createElement(`a`);r.href=n,r.download=Me(e),r.rel=`noopener`,document.body.append(r),r.click(),r.remove(),URL.revokeObjectURL(n)}async function Re(e,t={}){let n=Fe(await e.text(),t.collision??`rename`);return t.activate&&(ie(n.theme.id),ce(n.theme)),n}var Y=a(),ze=[{value:`stacked`,label:`Unified`,description:`Removed and added lines together in one column.`},{value:`split`,label:`Split`,description:`Compare the original and updated code side by side.`}];function X(e){let t=(0,J.c)(16),{number:n,kind:r,children:i}=e,a;t[0]===r?a=t[1]:(a=r?{backgroundColor:`color-mix(in srgb, var(--background) 92%, var(--${r===`added`?`success`:`destructive`}))`}:void 0,t[0]=r,t[1]=a);let o;t[2]===n?o=t[3]:(o=(0,Y.jsx)(`span`,{className:`w-7 shrink-0 select-none text-center text-muted-foreground/60`,children:n}),t[2]=n,t[3]=o);let s=r===`added`?`var(--success)`:`var(--destructive)`,c;t[4]===s?c=t[5]:(c={color:s},t[4]=s,t[5]=c);let l=r===`added`?`+`:r===`removed`?`−`:` `,u;t[6]!==c||t[7]!==l?(u=(0,Y.jsx)(`span`,{className:`w-4 shrink-0`,style:c,children:l}),t[6]=c,t[7]=l,t[8]=u):u=t[8];let d;t[9]===i?d=t[10]:(d=(0,Y.jsx)(`span`,{children:i}),t[9]=i,t[10]=d);let f;return t[11]!==a||t[12]!==o||t[13]!==u||t[14]!==d?(f=(0,Y.jsxs)(`div`,{className:`flex whitespace-pre leading-6`,style:a,children:[o,u,d]}),t[11]=a,t[12]=o,t[13]=u,t[14]=d,t[15]=f):f=t[15],f}function Be(e){let n=(0,J.c)(10),{layout:r}=e,i,a;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Y.jsx)(`span`,{children:`greeting.ts`}),a=(0,Y.jsx)(`span`,{className:`text-success`,children:`+1`}),n[0]=i,n[1]=a):(i=n[0],a=n[1]);let o;n[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,Y.jsxs)(`div`,{className:`flex justify-between border-b border-border bg-muted/30 px-3 py-2`,children:[i,(0,Y.jsxs)(`span`,{children:[a,` `,(0,Y.jsx)(`span`,{className:`text-destructive`,children:`−1`})]})]}),n[2]=o):o=n[2];let s=r===`split`&&`grid grid-cols-2 divide-x divide-border`,c;n[3]===s?c=n[4]:(c=t(`min-h-32 py-3`,s),n[3]=s,n[4]=c);let l;n[5]===r?l=n[6]:(l=r===`split`?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(`div`,{className:`overflow-hidden`,children:[(0,Y.jsx)(X,{number:1,children:`// Greeting`}),(0,Y.jsx)(X,{number:2,kind:`removed`,children:`hello("world");`}),(0,Y.jsx)(X,{number:3,children:``})]}),(0,Y.jsxs)(`div`,{className:`overflow-hidden`,children:[(0,Y.jsx)(X,{number:1,children:`// Greeting`}),(0,Y.jsx)(X,{number:2,kind:`added`,children:`hello("Ryco");`}),(0,Y.jsx)(X,{number:3,children:``})]})]}):(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(X,{number:1,children:`// Greeting`}),(0,Y.jsx)(X,{number:2,kind:`removed`,children:`hello("world");`}),(0,Y.jsx)(X,{number:2,kind:`added`,children:`hello("Ryco");`}),(0,Y.jsx)(X,{number:3,children:``})]}),n[5]=r,n[6]=l);let u;return n[7]!==c||n[8]!==l?(u=(0,Y.jsxs)(`div`,{"aria-hidden":`true`,className:`overflow-hidden rounded-lg border border-border bg-background text-left font-mono text-[10px] text-foreground`,children:[o,(0,Y.jsx)(`div`,{className:c,children:l})]}),n[7]=c,n[8]=l,n[9]=u):u=n[9],u}function Ve(){let e=(0,J.c)(5),[r,i]=A(),a;e[0]!==r||e[1]!==i?(a=ze.map(e=>(0,Y.jsxs)(`button`,{type:`button`,"aria-pressed":r===e.value,"aria-label":`${e.label} diff style`,onClick:()=>i(e.value),className:t(`min-w-0 rounded-[min(var(--radius-xl),0.875rem)] border bg-card p-3 text-left outline-none transition-[border-color,box-shadow,background-color] duration-(--app-motion-duration-chip) focus-visible:ring-2 focus-visible:ring-ring`,r===e.value?`border-primary/70 shadow-[0_0_0_1px_var(--color-primary)]`:`border-border/70 hover:border-foreground/20 hover:bg-muted/30`),children:[(0,Y.jsx)(Be,{layout:e.value}),(0,Y.jsxs)(`span`,{className:`mt-3 flex items-center justify-between text-[13px] font-medium text-foreground`,children:[e.label,r===e.value&&(0,Y.jsx)(n,{"aria-hidden":`true`,className:`size-4`})]}),(0,Y.jsx)(`span`,{className:`mt-1 block text-xs text-muted-foreground`,children:e.description})]},e.value)),e[0]=r,e[1]=i,e[2]=a):a=e[2];let o;return e[3]===a?o=e[4]:(o=(0,Y.jsx)(U,{title:`Diff style`,description:`How code changes appear in the diff viewer. You can also switch from its toolbar.`,bare:!0,children:(0,Y.jsx)(`div`,{role:`group`,"aria-label":`Diff style`,className:`grid gap-3 lg:grid-cols-2`,children:a})}),e[3]=a,e[4]=o),o}function Z(e){let t=(0,J.c)(22),{theme:n,variant:r,compact:i}=e,a=i!==void 0&&i,o;t[0]!==n||t[1]!==r?(o=Object.fromEntries(Object.entries(re(B(n,r))).map(Ue)),t[0]=n,t[1]=r,t[2]=o):o=t[2];let s=o,c;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,Y.jsxs)(`div`,{className:`flex w-[26%] flex-col gap-2 border-r border-[var(--sidebar-border)] bg-[var(--sidebar)] p-[4%]`,children:[(0,Y.jsx)(`span`,{className:`font-semibold`,children:`Ryco`}),(0,Y.jsx)(`span`,{className:`h-1.5 w-4/5 rounded bg-[var(--muted-foreground)] opacity-40`}),(0,Y.jsx)(`span`,{className:`h-3 rounded bg-[var(--sidebar-accent)]`}),(0,Y.jsx)(`span`,{className:`h-1.5 w-3/4 rounded bg-[var(--muted-foreground)] opacity-25`}),(0,Y.jsx)(`span`,{className:`h-1.5 w-4/5 rounded bg-[var(--muted-foreground)] opacity-25`})]}),t[3]=c):c=t[3];let l;t[4]===a?l=t[5]:(l=a?(0,Y.jsx)(`div`,{className:`h-3 w-2/3 shrink-0 self-end rounded bg-[var(--secondary)]`}):(0,Y.jsx)(`div`,{className:`self-end rounded bg-[var(--secondary)] px-2 py-1`,children:`Build something great`}),t[4]=a,t[5]=l);let u;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,Y.jsx)(`div`,{className:`h-1.5 w-4/5 rounded bg-[var(--muted-foreground)] opacity-40`}),t[6]=u):u=t[6];let d;t[7]===a?d=t[8]:(d=a?(0,Y.jsx)(`div`,{className:`h-1.5 w-2/3 rounded bg-[var(--muted-foreground)] opacity-25`}):(0,Y.jsxs)(`div`,{className:`rounded border border-[var(--border)] bg-[var(--card)] p-2 font-mono`,children:[(0,Y.jsx)(`span`,{style:{color:`var(--info)`},children:`const `}),`theme =`,` `,(0,Y.jsx)(`span`,{style:{color:`var(--success)`},children:`"ryco"`}),`;`,(0,Y.jsx)(`br`,{}),(0,Y.jsx)(`span`,{style:{color:`var(--muted-foreground)`},children:`// Make it yours`})]}),t[7]=a,t[8]=d);let f;t[9]===a?f=t[10]:(f=a?(0,Y.jsx)(`span`,{className:`h-1 w-1/2 rounded bg-[var(--muted-foreground)] opacity-30`}):(0,Y.jsx)(`span`,{style:{color:`var(--muted-foreground)`},children:`Ask anything…`}),t[9]=a,t[10]=f);let p;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,Y.jsx)(`span`,{className:`size-3 rounded-full bg-[var(--primary)]`}),t[11]=p):p=t[11];let m;t[12]===f?m=t[13]:(m=(0,Y.jsxs)(`div`,{className:`mt-auto flex items-center justify-between rounded-md border border-[var(--input)] px-2 py-1.5`,children:[f,p]}),t[12]=f,t[13]=m);let h;t[14]!==l||t[15]!==d||t[16]!==m?(h=(0,Y.jsxs)(`div`,{className:`flex aspect-[16/9] text-[9px] leading-relaxed`,children:[c,(0,Y.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-2 p-[4%]`,children:[l,u,d,m]})]}),t[14]=l,t[15]=d,t[16]=m,t[17]=h):h=t[17];let g;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,Y.jsx)(`div`,{className:`flex h-2`,children:[`sidebar`,`background`,`primary`,`info`,`success`,`warning`,`destructive`].map(He)}),t[18]=g):g=t[18];let _;return t[19]!==s||t[20]!==h?(_=(0,Y.jsxs)(`div`,{"aria-hidden":`true`,style:s,className:`w-full overflow-hidden rounded-lg border border-[var(--border)] bg-[var(--background)] text-[var(--foreground)]`,children:[h,g]}),t[19]=s,t[20]=h,t[21]=_):_=t[21],_}function He(e){return(0,Y.jsx)(`span`,{className:`flex-1`,style:{backgroundColor:`var(--${e})`}},e)}function Ue(e){let[t,n]=e;return[`--${t}`,n]}var We=[{title:`Surfaces`,tokens:[`background`,`app-chrome-background`,`foreground`,`card`,`card-foreground`,`popover`,`popover-foreground`]},{title:`Brand & focus`,tokens:[`primary`,`primary-foreground`,`ring`]},{title:`Neutrals`,tokens:[`secondary`,`secondary-foreground`,`muted`,`muted-foreground`,`accent`,`accent-foreground`]},{title:`Status`,tokens:[`destructive`,`destructive-foreground`,`info`,`info-foreground`,`success`,`success-foreground`,`warning`,`warning-foreground`]},{title:`Borders & inputs`,tokens:[`border`,`input`]},{title:`Scrollbars`,tokens:[`scrollbar-thumb`,`scrollbar-thumb-hover`,`scrollbar-thumb-thin`,`scrollbar-thumb-thin-hover`]}],Ge=new Set(j),Q=null,$=null;function Ke(e){if(typeof document>`u`||document.body===void 0||!e)return`#000000`;Q||(Q=document.createElement(`div`),Q.style.position=`absolute`,Q.style.visibility=`hidden`,Q.style.pointerEvents=`none`,document.body.append(Q)),Q.style.color=``,Q.style.color=e;let t=getComputedStyle(Q).color;$||=document.createElement(`canvas`),$.width=1,$.height=1;let n=$.getContext(`2d`,{willReadFrequently:!0});if(!n)return`#000000`;n.clearRect(0,0,1,1);try{n.fillStyle=t}catch{return`#000000`}n.fillRect(0,0,1,1);let r=n.getImageData(0,0,1,1).data;return`#${[r[0],r[1],r[2]].map(e=>(e??0).toString(16).padStart(2,`0`)).join(``)}`}function qe(e,t,n,r){let i={...e[t]};return r.length===0?delete i[n]:i[n]=r,t===`light`?{...e,light:i}:{...e,dark:i}}function Je(e,t){return{...e,name:t}}function Ye(e,t){let n={...e};return t.length===0?delete n.description:n.description=t,n}function Xe(e){return ue.includes(e)}function Ze(e){let t=(0,J.c)(124),{source:n,draft:r,onDraftChange:a,onSave:o,onCancel:s,resolvedVariant:c}=e,[l,u]=(0,q.useState)(`form`),[d,f]=(0,q.useState)(c),p;t[0]===r?p=t[1]:(p=()=>JSON.stringify(r,null,2),t[0]=r,t[1]=p);let[m,h]=(0,q.useState)(p),[g,_]=(0,q.useState)(null),[v,y]=(0,q.useState)(!1),x;t[2]===n?x=t[3]:(x=JSON.stringify(n),t[2]=n,t[3]=x);let S;t[4]===r?S=t[5]:(S=JSON.stringify(r),t[4]=r,t[5]=S);let C=x!==S,w;t[6]===r?w=t[7]:(w=()=>{ce(r)},t[6]=r,t[7]=w);let T;t[8]!==r||t[9]!==c?(T=[r,c],t[8]=r,t[9]=c,t[10]=T):T=t[10],(0,q.useEffect)(w,T);let E,D;t[11]!==r||t[12]!==l?(E=()=>{l===`form`&&h(JSON.stringify(r,null,2))},D=[r,l],t[11]=r,t[12]=l,t[13]=E,t[14]=D):(E=t[13],D=t[14]),(0,q.useEffect)(E,D);let O;t[15]!==r||t[16]!==a?(O=e=>{a(Je(r,e))},t[15]=r,t[16]=a,t[17]=O):O=t[17];let ee=O,k;t[18]!==r||t[19]!==a?(k=e=>{a(Ye(r,e))},t[18]=r,t[19]=a,t[20]=k):k=t[20];let te=k,A;t[21]!==r||t[22]!==a||t[23]!==d?(A=(e,t)=>{a(qe(r,d,e,t))},t[21]=r,t[22]=a,t[23]=d,t[24]=A):A=t[24];let j=A,ne;t[25]===a?ne=t[26]:(ne=e=>{h(e);let t;try{t=JSON.parse(e)}catch(e){let t=e;_(t instanceof Error?t.message:`Invalid JSON`);return}if(!se(t)){_(`Invalid theme schema. Need string id/name and string-only light/dark tokens.`);return}_(null),a(t)},t[25]=a,t[26]=ne);let re=ne,N;t[27]!==C||t[28]!==s?(N=()=>{if(C){y(!0);return}s()},t[27]=C,t[28]=s,t[29]=N):N=t[29];let ie=N,P,ae,F;if(t[30]!==r.dark||t[31]!==r.light||t[32]!==d){F=(d===`dark`?r.dark:r.light)??{};let e;t[36]===d?e=t[37]:(e=(d===`dark`?M.dark:M.light)??{},t[36]=d,t[37]=e),P=e,ae=Object.entries(F).filter(et),t[30]=r.dark,t[31]=r.light,t[32]=d,t[33]=P,t[34]=ae,t[35]=F}else P=t[33],ae=t[34],F=t[35];let I=ae,L=Qe,oe=L(r.light)||L(r.dark),le;t[38]!==r.name||t[39]!==oe||t[40]!==g?(le=g!==null||r.name.trim().length===0||oe,t[38]=r.name,t[39]=oe,t[40]=g,t[41]=le):le=t[41];let ue=le,de;t[42]===Symbol.for(`react.memo_cache_sentinel`)?(de=(0,Y.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:`Editing`}),t[42]=de):de=t[42];let fe=r.name||`Untitled`,pe;t[43]!==r.name||t[44]!==fe?(pe=(0,Y.jsx)(`span`,{className:`truncate text-[13px] font-medium text-foreground`,title:r.name,children:fe}),t[43]=r.name,t[44]=fe,t[45]=pe):pe=t[45];let R;t[46]===C?R=t[47]:(R=C?(0,Y.jsx)(me,{size:`sm`,variant:`warning`,children:`Unsaved`}):null,t[46]=C,t[47]=R);let B;t[48]===ie?B=t[49]:(B=(0,Y.jsx)(i,{size:`xs`,variant:`ghost`,onClick:ie,children:`Cancel`}),t[48]=ie,t[49]=B);let Ce;t[50]!==o||t[51]!==ue?(Ce=(0,Y.jsx)(i,{size:`xs`,onClick:o,disabled:ue,children:`Save`}),t[50]=o,t[51]=ue,t[52]=Ce):Ce=t[52];let we;t[53]!==B||t[54]!==Ce?(we=(0,Y.jsxs)(`div`,{className:`ms-auto flex items-center gap-2`,children:[B,Ce]}),t[53]=B,t[54]=Ce,t[55]=we):we=t[55];let U;t[56]!==pe||t[57]!==R||t[58]!==we?(U=(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 border-b border-border/60 bg-muted/40 px-4 py-2.5 sm:px-5`,children:[de,pe,R,we]}),t[56]=pe,t[57]=R,t[58]=we,t[59]=U):U=t[59];let Te;t[60]===l?Te=t[61]:(Te=[l],t[60]=l,t[61]=Te);let W,G,Ee;t[62]===Symbol.for(`react.memo_cache_sentinel`)?(W=e=>{let t=e[0];(t===`form`||t===`json`)&&u(t)},G=(0,Y.jsx)(H,{value:`form`,"aria-label":`Form editor`,className:`px-3 sm:px-3`,children:`Form`}),Ee=(0,Y.jsx)(H,{value:`json`,"aria-label":`JSON editor`,className:`px-3 sm:px-3`,children:`JSON`}),t[62]=W,t[63]=G,t[64]=Ee):(W=t[62],G=t[63],Ee=t[64]);let K;t[65]===Te?K=t[66]:(K=(0,Y.jsxs)(V,{value:Te,variant:`outline`,size:`sm`,onValueChange:W,children:[G,Ee]}),t[65]=Te,t[66]=K);let De;t[67]===d?De=t[68]:(De=[d],t[67]=d,t[68]=De);let Oe,ke,Ae;t[69]===Symbol.for(`react.memo_cache_sentinel`)?(Oe=e=>{let t=e[0];(t===`light`||t===`dark`)&&f(t)},ke=(0,Y.jsx)(H,{value:`light`,"aria-label":`Light variant`,className:`px-3 sm:px-3`,children:`Light`}),Ae=(0,Y.jsx)(H,{value:`dark`,"aria-label":`Dark variant`,className:`px-3 sm:px-3`,children:`Dark`}),t[69]=Oe,t[70]=ke,t[71]=Ae):(Oe=t[69],ke=t[70],Ae=t[71]);let je;t[72]===De?je=t[73]:(je=(0,Y.jsxs)(V,{value:De,variant:`outline`,size:`sm`,onValueChange:Oe,children:[ke,Ae]}),t[72]=De,t[73]=je);let Me;t[74]!==K||t[75]!==je?(Me=(0,Y.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-2`,children:[K,je]}),t[74]=K,t[75]=je,t[76]=Me):Me=t[76];let Ne;t[77]===Symbol.for(`react.memo_cache_sentinel`)?(Ne=(0,Y.jsx)(`span`,{className:`text-xs font-medium text-foreground`,children:`Name`}),t[77]=Ne):Ne=t[77];let Pe;t[78]===ee?Pe=t[79]:(Pe=e=>ee(e.currentTarget.value),t[78]=ee,t[79]=Pe);let Fe;t[80]===r.name?Fe=t[81]:(Fe=r.name.trim().length===0||void 0,t[80]=r.name,t[81]=Fe);let Ie;t[82]!==r.name||t[83]!==Pe||t[84]!==Fe?(Ie=(0,Y.jsxs)(`label`,{className:`space-y-1.5`,children:[Ne,(0,Y.jsx)(b,{value:r.name,nativeInput:!0,onChange:Pe,"aria-invalid":Fe})]}),t[82]=r.name,t[83]=Pe,t[84]=Fe,t[85]=Ie):Ie=t[85];let Le;t[86]===Symbol.for(`react.memo_cache_sentinel`)?(Le=(0,Y.jsx)(`span`,{className:`text-xs font-medium text-foreground`,children:`Description`}),t[86]=Le):Le=t[86];let Re=r.description??``,ze;t[87]===te?ze=t[88]:(ze=e=>te(e.currentTarget.value),t[87]=te,t[88]=ze);let X;t[89]!==Re||t[90]!==ze?(X=(0,Y.jsxs)(`label`,{className:`space-y-1.5`,children:[Le,(0,Y.jsx)(b,{value:Re,nativeInput:!0,onChange:ze,placeholder:`Optional, shown under the picker.`})]}),t[89]=Re,t[90]=ze,t[91]=X):X=t[91];let Be;t[92]!==Ie||t[93]!==X?(Be=(0,Y.jsxs)(`div`,{className:`mt-4 grid gap-3 sm:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]`,children:[Ie,X]}),t[92]=Ie,t[93]=X,t[94]=Be):Be=t[94];let Ve;t[95]!==re||t[96]!==j||t[97]!==P||t[98]!==g||t[99]!==m||t[100]!==l||t[101]!==I||t[102]!==F?(Ve=l===`form`?(0,Y.jsxs)(`div`,{className:`mt-5 space-y-5`,children:[We.map(e=>(0,Y.jsxs)(`div`,{className:`space-y-2`,children:[(0,Y.jsx)(`h4`,{className:`text-[11px] font-semibold uppercase tracking-[0.08em] text-muted-foreground`,children:e.title}),(0,Y.jsx)(`div`,{className:`grid gap-2 sm:grid-cols-2`,children:e.tokens.map(e=>{let t=F[e]??``,n=P[e]??``,r=z(e);return r?(0,Y.jsx)(tt,{token:e,kind:r,value:t,inherited:n,onChange:t=>j(e,t)},e):null})})]},e.title)),I.length>0?(0,Y.jsxs)(`p`,{className:`text-xs text-warning-foreground`,children:[I.length,` token`,I.length===1?``:`s`,` not in the allow-list will be ignored on save.`]}):null]}):(0,Y.jsxs)(`div`,{className:`mt-5 space-y-2`,children:[(0,Y.jsx)(Se,{value:m,size:`sm`,className:`font-mono text-xs`,spellCheck:!1,rows:18,onChange:e=>re(e.currentTarget.value),"aria-invalid":g!==null||void 0}),g?(0,Y.jsx)(`p`,{className:`text-xs text-destructive-foreground`,children:g}):(0,Y.jsx)(`p`,{className:`text-xs text-muted-foreground/80`,children:`Edit the JSON directly. Save is disabled while the schema is invalid.`})]}),t[95]=re,t[96]=j,t[97]=P,t[98]=g,t[99]=m,t[100]=l,t[101]=I,t[102]=F,t[103]=Ve):Ve=t[103];let Z;t[104]!==Me||t[105]!==Be||t[106]!==Ve?(Z=(0,Y.jsxs)(`div`,{className:`px-4 py-4 sm:px-5`,children:[Me,Be,Ve]}),t[104]=Me,t[105]=Be,t[106]=Ve,t[107]=Z):Z=t[107];let He;t[108]===Symbol.for(`react.memo_cache_sentinel`)?(He=(0,Y.jsx)(be,{children:`Discard your changes?`}),t[108]=He):He=t[108];let Ue;t[109]===n.name?Ue=t[110]:(Ue=(0,Y.jsxs)(he,{children:[He,(0,Y.jsxs)(ye,{children:[`You have unsaved edits to `,n.name,`. Discarding will revert any token changes you made.`]})]}),t[109]=n.name,t[110]=Ue);let Ge;t[111]===Symbol.for(`react.memo_cache_sentinel`)?(Ge=(0,Y.jsx)(_e,{render:(0,Y.jsx)(i,{variant:`outline`}),children:`Keep editing`}),t[111]=Ge):Ge=t[111];let Q;t[112]===s?Q=t[113]:(Q=(0,Y.jsxs)(ge,{children:[Ge,(0,Y.jsx)(i,{variant:`destructive`,onClick:()=>{y(!1),s()},children:`Discard changes`})]}),t[112]=s,t[113]=Q);let $;t[114]!==Ue||t[115]!==Q?($=(0,Y.jsxs)(ve,{children:[Ue,Q]}),t[114]=Ue,t[115]=Q,t[116]=$):$=t[116];let Ke;t[117]!==v||t[118]!==$?(Ke=(0,Y.jsx)(xe,{open:v,onOpenChange:y,children:$}),t[117]=v,t[118]=$,t[119]=Ke):Ke=t[119];let Xe;return t[120]!==U||t[121]!==Z||t[122]!==Ke?(Xe=(0,Y.jsxs)(`div`,{children:[U,Z,Ke]}),t[120]=U,t[121]=Z,t[122]=Ke,t[123]=Xe):Xe=t[123],Xe}function Qe(e){return Object.entries(e??{}).some($e)}function $e(e){let[t,n]=e;if(typeof n!=`string`||n.length===0)return!1;let r=z(t);return r?!L(r,n):!1}function et(e){let[t]=e;return!Ge.has(t)}function tt(e){let n=(0,J.c)(12),{token:r,kind:i,value:a,inherited:o,onChange:s}=e,c=a.length>0,l=i===`font-family`&&`sm:col-span-2`,u;n[0]===l?u=n[1]:(u=t(`rounded-md border border-border/60 bg-background px-2 py-1.5`,l),n[0]=l,n[1]=u);let d;n[2]!==o||n[3]!==i||n[4]!==s||n[5]!==c||n[6]!==r||n[7]!==a?(d=i===`color`?(0,Y.jsx)(it,{token:r,value:a,inherited:o,overridden:c,onChange:s}):i===`opacity`?(0,Y.jsx)(at,{token:r,value:a,inherited:o,overridden:c,onChange:s}):i===`length`?(0,Y.jsx)(ot,{token:r,value:a,inherited:o,overridden:c,onChange:s}):(0,Y.jsx)(ct,{token:r,value:a,inherited:o,overridden:c,onChange:s}),n[2]=o,n[3]=i,n[4]=s,n[5]=c,n[6]=r,n[7]=a,n[8]=d):d=n[8];let f;return n[9]!==u||n[10]!==d?(f=(0,Y.jsx)(`div`,{className:u,children:d}),n[9]=u,n[10]=d,n[11]=f):f=n[11],f}function nt(e){let t=(0,J.c)(6),{token:n,onChange:r}=e,a=`Reset --${n}`,s;t[0]===r?s=t[1]:(s=()=>r(``),t[0]=r,t[1]=s);let c;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,Y.jsx)(o,{className:`size-3.5`,"aria-hidden":!0}),t[2]=c):c=t[2];let l;return t[3]!==a||t[4]!==s?(l=(0,Y.jsx)(i,{size:`icon-xs`,variant:`ghost`,"aria-label":a,onClick:s,className:`text-muted-foreground`,children:c}),t[3]=a,t[4]=s,t[5]=l):l=t[5],l}function rt(e){let n=(0,J.c)(6),{token:r,overridden:i}=e,a=i?`text-foreground`:`text-muted-foreground/70`,o;n[0]===a?o=n[1]:(o=t(`truncate font-mono text-[11px]`,a),n[0]=a,n[1]=o);let s=`--${r}`,c;return n[2]!==o||n[3]!==s||n[4]!==r?(c=(0,Y.jsxs)(`span`,{className:o,title:s,children:[`--`,r]}),n[2]=o,n[3]=s,n[4]=r,n[5]=c):c=n[5],c}function it(e){let t=(0,J.c)(41),{token:n,value:r,inherited:i,overridden:a,onChange:o}=e,s=r||i,c,l,u,d,f;if(t[0]!==s||t[1]!==r){u=I(s);let e;t[7]===r?e=t[8]:(e=r.length>0&&!le(r),t[7]=r,t[8]=e),l=e,f=`flex items-center gap-2`,c=K,d=Ke(u),t[0]=s,t[1]=r,t[2]=c,t[3]=l,t[4]=u,t[5]=d,t[6]=f}else c=t[2],l=t[3],u=t[4],d=t[5],f=t[6];let p;t[9]===o?p=t[10]:(p=e=>o(e),t[9]=o,t[10]=p);let m=`Pick a color for --${n}`,h=l?`transparent`:u||`transparent`,g;t[11]===h?g=t[12]:(g=(0,Y.jsx)(`span`,{className:`pointer-events-none absolute inset-0`,style:{backgroundColor:h},"aria-hidden":!0}),t[11]=h,t[12]=g);let _;t[13]!==c||t[14]!==d||t[15]!==p||t[16]!==m||t[17]!==g?(_=(0,Y.jsx)(c,{value:d,onChange:p,ariaLabel:m,children:g}),t[13]=c,t[14]=d,t[15]=p,t[16]=m,t[17]=g,t[18]=_):_=t[18];let v;t[19]!==a||t[20]!==n?(v=(0,Y.jsx)(rt,{token:n,overridden:a}),t[19]=a,t[20]=n,t[21]=v):v=t[21];let y=i||`inherit default`,x=l||void 0,S;t[22]===o?S=t[23]:(S=e=>o(e.currentTarget.value),t[22]=o,t[23]=S);let C;t[24]!==x||t[25]!==S||t[26]!==y||t[27]!==r?(C=(0,Y.jsx)(b,{value:r,nativeInput:!0,unstyled:!0,size:`sm`,className:`border-0 bg-transparent p-0 shadow-none focus-within:shadow-none`,placeholder:y,"aria-invalid":x,onChange:S}),t[24]=x,t[25]=S,t[26]=y,t[27]=r,t[28]=C):C=t[28];let w;t[29]!==C||t[30]!==v?(w=(0,Y.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col`,children:[v,C]}),t[29]=C,t[30]=v,t[31]=w):w=t[31];let T;t[32]!==o||t[33]!==a||t[34]!==n?(T=a?(0,Y.jsx)(nt,{token:n,onChange:o}):null,t[32]=o,t[33]=a,t[34]=n,t[35]=T):T=t[35];let E;return t[36]!==w||t[37]!==T||t[38]!==f||t[39]!==_?(E=(0,Y.jsxs)(`div`,{className:f,children:[_,w,T]}),t[36]=w,t[37]=T,t[38]=f,t[39]=_,t[40]=E):E=t[40],E}function at(e){let t=(0,J.c)(31),{token:n,value:r,inherited:i,overridden:a,onChange:o}=e,s=Number(r||i),c;t[0]===s?c=t[1]:(c=Number.isFinite(s)?Math.min(1,Math.max(0,s)):0,t[0]=s,t[1]=c);let l=c,u;t[2]===r?u=t[3]:(u=r.length>0&&!L(`opacity`,r),t[2]=r,t[3]=u);let d=u,f;t[4]!==a||t[5]!==n?(f=(0,Y.jsx)(rt,{token:n,overridden:a}),t[4]=a,t[5]=n,t[6]=f):f=t[6];let p;t[7]===o?p=t[8]:(p=e=>o(e.currentTarget.value),t[7]=o,t[8]=p);let m=`--${n} value`,h;t[9]!==l||t[10]!==p||t[11]!==m?(h=(0,Y.jsx)(`input`,{type:`range`,min:0,max:1,step:.005,value:l,onChange:p,"aria-label":m,className:`settings-range h-7.5 flex-1 cursor-pointer`}),t[9]=l,t[10]=p,t[11]=m,t[12]=h):h=t[12];let g=i||`0`,_=d||void 0,v;t[13]===o?v=t[14]:(v=e=>o(e.currentTarget.value),t[13]=o,t[14]=v);let y;t[15]!==g||t[16]!==_||t[17]!==v||t[18]!==r?(y=(0,Y.jsx)(`div`,{className:`w-20 shrink-0`,children:(0,Y.jsx)(b,{value:r,nativeInput:!0,type:`number`,min:0,max:1,step:.005,size:`sm`,placeholder:g,"aria-invalid":_,onChange:v})}),t[15]=g,t[16]=_,t[17]=v,t[18]=r,t[19]=y):y=t[19];let x;t[20]!==o||t[21]!==a||t[22]!==n?(x=a?(0,Y.jsx)(nt,{token:n,onChange:o}):null,t[20]=o,t[21]=a,t[22]=n,t[23]=x):x=t[23];let S;t[24]!==y||t[25]!==x||t[26]!==h?(S=(0,Y.jsxs)(`div`,{className:`flex items-center gap-2`,children:[h,y,x]}),t[24]=y,t[25]=x,t[26]=h,t[27]=S):S=t[27];let C;return t[28]!==S||t[29]!==f?(C=(0,Y.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[f,S]}),t[28]=S,t[29]=f,t[30]=C):C=t[30],C}function ot(e){let t=(0,J.c)(65),{token:n,value:r,inherited:i,overridden:a,onChange:o}=e,s,c,l,u,d;if(t[0]!==i||t[1]!==o||t[2]!==a||t[3]!==n||t[4]!==r){d=Symbol.for(`react.early_return_sentinel`);bb0:{l=R(r),c=R(i);let e=c?Xe(c.unit):!1,f=l?Xe(l.unit):!1;if(r.length>0&&!f||r.length===0&&i.length>0&&!e){let e;t[10]===r?e=t[11]:(e=r.length>0&&!L(`length`,r),t[10]=r,t[11]=e);let s=e,c;t[12]!==a||t[13]!==n?(c=(0,Y.jsx)(rt,{token:n,overridden:a}),t[12]=a,t[13]=n,t[14]=c):c=t[14];let l=i||`e.g. 1rem`,u=s||void 0,f;t[15]===o?f=t[16]:(f=e=>o(e.currentTarget.value),t[15]=o,t[16]=f);let p;t[17]!==l||t[18]!==u||t[19]!==f||t[20]!==r?(p=(0,Y.jsx)(b,{value:r,nativeInput:!0,size:`sm`,placeholder:l,"aria-invalid":u,onChange:f}),t[17]=l,t[18]=u,t[19]=f,t[20]=r,t[21]=p):p=t[21];let m;t[22]!==o||t[23]!==a||t[24]!==n?(m=a?(0,Y.jsx)(nt,{token:n,onChange:o}):null,t[22]=o,t[23]=a,t[24]=n,t[25]=m):m=t[25];let h;t[26]!==p||t[27]!==m?(h=(0,Y.jsxs)(`div`,{className:`flex items-center gap-2`,children:[p,m]}),t[26]=p,t[27]=m,t[28]=h):h=t[28];let g;t[29]!==h||t[30]!==c?(g=(0,Y.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[c,h]}),t[29]=h,t[30]=c,t[31]=g):g=t[31],d=g;break bb0}s=l?String(l.number):``,u=l&&Xe(l.unit)?l.unit:c&&Xe(c.unit)?c.unit:`rem`}t[0]=i,t[1]=o,t[2]=a,t[3]=n,t[4]=r,t[5]=s,t[6]=c,t[7]=l,t[8]=u,t[9]=d}else s=t[5],c=t[6],l=t[7],u=t[8],d=t[9];if(d!==Symbol.for(`react.early_return_sentinel`))return d;let f=u,p=c?String(c.number):``,m;t[32]!==o||t[33]!==f?(m=e=>{let t=e.trim();if(t.length===0){o(``);return}let n=Number(t);Number.isFinite(n)&&o(`${n}${f}`)},t[32]=o,t[33]=f,t[34]=m):m=t[34];let h=m,g;t[35]!==o||t[36]!==c||t[37]!==l?(g=e=>{if(l){o(`${l.number}${e}`);return}c&&o(`${c.number}${e}`)},t[35]=o,t[36]=c,t[37]=l,t[38]=g):g=t[38];let _=g,v;t[39]!==a||t[40]!==n?(v=(0,Y.jsx)(rt,{token:n,overridden:a}),t[39]=a,t[40]=n,t[41]=v):v=t[41];let y=n===`font-size-base`?1:.05,x;t[42]===h?x=t[43]:(x=e=>h(e.currentTarget.value),t[42]=h,t[43]=x);let S;t[44]!==p||t[45]!==s||t[46]!==y||t[47]!==x?(S=(0,Y.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,Y.jsx)(b,{value:s,nativeInput:!0,type:`number`,step:y,size:`sm`,placeholder:p,onChange:x})}),t[44]=p,t[45]=s,t[46]=y,t[47]=x,t[48]=S):S=t[48];let C=`--${n} unit`,w;t[49]===Symbol.for(`react.memo_cache_sentinel`)?(w=ue.map(st),t[49]=w):w=t[49];let T;t[50]!==_||t[51]!==C||t[52]!==f?(T=(0,Y.jsx)(Ee,{ariaLabel:C,size:`sm`,width:`sm`,className:`w-20 min-w-0 sm:w-20`,value:f,onValueChange:_,options:w}),t[50]=_,t[51]=C,t[52]=f,t[53]=T):T=t[53];let E;t[54]!==o||t[55]!==a||t[56]!==n?(E=a?(0,Y.jsx)(nt,{token:n,onChange:o}):null,t[54]=o,t[55]=a,t[56]=n,t[57]=E):E=t[57];let D;t[58]!==T||t[59]!==E||t[60]!==S?(D=(0,Y.jsxs)(`div`,{className:`flex items-center gap-2`,children:[S,T,E]}),t[58]=T,t[59]=E,t[60]=S,t[61]=D):D=t[61];let O;return t[62]!==D||t[63]!==v?(O=(0,Y.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[v,D]}),t[62]=D,t[63]=v,t[64]=O):O=t[64],O}function st(e){return{value:e,label:e}}function ct(e){let t=(0,J.c)(25),{token:n,value:r,inherited:i,overridden:a,onChange:o}=e,s=r||i,c;t[0]===r?c=t[1]:(c=r.length>0&&!L(`font-family`,r),t[0]=r,t[1]=c);let l=c,u;t[2]!==a||t[3]!==n?(u=(0,Y.jsx)(rt,{token:n,overridden:a}),t[2]=a,t[3]=n,t[4]=u):u=t[4];let d=i||`system-ui, sans-serif`,f=s||void 0,p;t[5]===f?p=t[6]:(p={fontFamily:f},t[5]=f,t[6]=p);let m=l||void 0,h;t[7]===o?h=t[8]:(h=e=>o(e.currentTarget.value),t[7]=o,t[8]=h);let g;t[9]!==d||t[10]!==p||t[11]!==m||t[12]!==h||t[13]!==r?(g=(0,Y.jsx)(`div`,{className:`min-w-0 flex-1`,children:(0,Y.jsx)(b,{value:r,nativeInput:!0,size:`sm`,placeholder:d,style:p,"aria-invalid":m,onChange:h})}),t[9]=d,t[10]=p,t[11]=m,t[12]=h,t[13]=r,t[14]=g):g=t[14];let _;t[15]!==o||t[16]!==a||t[17]!==n?(_=a?(0,Y.jsx)(nt,{token:n,onChange:o}):null,t[15]=o,t[16]=a,t[17]=n,t[18]=_):_=t[18];let v;t[19]!==g||t[20]!==_?(v=(0,Y.jsxs)(`div`,{className:`flex items-center gap-2`,children:[g,_]}),t[19]=g,t[20]=_,t[21]=v):v=t[21];let y;return t[22]!==v||t[23]!==u?(y=(0,Y.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[u,v]}),t[22]=v,t[23]=u,t[24]=y):y=t[24],y}var lt=[{value:`system`,label:`System`},{value:`light`,label:`Light`},{value:`dark`,label:`Dark`}],ut={default:1,light:.92,medium:.84,high:.78,glass:.72};function dt({surface:e=`node`}={}){let n=e===`hub`,{theme:a,setTheme:o,resolvedTheme:c,activeThemeId:l,setActiveTheme:m}=fe(),[b,k]=(0,q.useState)(null),[A,j]=(0,q.useState)(null),[M,re]=(0,q.useState)(null),[I,L]=(0,q.useState)(()=>T()),[se,le]=(0,q.useState)(0),ue=(0,q.useRef)(null),R=ae(),z=(0,q.useMemo)(()=>b!==null&&A!==null?{source:oe(b),draft:A}:null,[A,b,se]),B=M?oe(M):null,V=(0,q.useCallback)(()=>le(e=>e+1),[]);(0,q.useEffect)(()=>{if(typeof window>`u`)return;let e=e=>{e.key===`ryco:appearance-preferences`&&L(T())};return window.addEventListener(`storage`,e),()=>window.removeEventListener(`storage`,e)},[]);let H=(0,q.useCallback)((e,t)=>{te(e,t),E(),L(T())},[]),Se=(0,q.useCallback)(e=>{C(e),E(),L(T())},[]),Ee=(0,q.useCallback)(()=>{C(`primaryColorMode`),C(`primaryColor`),E(),L(T())},[]),K=(0,q.useCallback)(e=>{te(`primaryColorMode`,e?`custom`:`theme`),E(),L(T())},[]),Oe=(0,q.useCallback)(e=>{te(`primaryColor`,e),te(`primaryColorMode`,`custom`),E(),L(T())},[]),J=(0,q.useCallback)(e=>{if(F(e.id)){let t=P(e);N(t),ie(t.id),m(t.id),k(t.id),j(t),V();return}m(e.id),k(e.id),j(e)},[V,m]),Ae=(0,q.useCallback)(e=>{let t=P(e);N(t),m(t.id),k(t.id),j(t),V()},[V,m]),je=(0,q.useCallback)(()=>{let e={id:pe(`new`),name:`New theme`,builtIn:!1};N(e),m(e.id),k(e.id),j(e),V()},[V,m]),Me=(0,q.useCallback)(()=>{z&&(ne(z.source.id,z.draft),z.source.id===z.draft.id?ce(z.draft):m(z.draft.id),k(null),j(null),V())},[z,V,m]),Ne=(0,q.useCallback)(()=>{z&&ce(z.source),k(null),j(null)},[z]),Pe=(0,q.useCallback)(()=>{M&&(b===M&&(k(null),j(null)),de(M),re(null),V())},[b,M,V]),Fe=(0,q.useCallback)(e=>{try{Le(e)}catch(e){r.add({type:`error`,title:`Could not export theme`,description:e instanceof Error?e.message:`Download failed.`})}},[]),ze=(0,q.useCallback)(async e=>{try{await Ie(e),r.add({type:`success`,title:`Copied theme JSON`,description:`${e.name} is ready to paste.`})}catch(e){r.add({type:`error`,title:`Could not copy theme`,description:e instanceof Error?e.message:`Clipboard write failed.`})}},[]),X=(0,q.useCallback)(()=>{ue.current?.click()},[]),Be=(0,q.useCallback)(async e=>{let t=e.target.files?.[0];if(e.target.value=``,t)try{let e=await Re(t,{collision:`rename`,activate:!0});m(e.theme.id),V(),r.add({type:`success`,title:`Imported "${e.theme.name}"`,description:e.action===`renamed`?`An existing theme used the same id, so it was imported as "${e.theme.id}".`:`Theme imported and activated.`})}catch(e){r.add({type:`error`,title:`Could not import theme`,description:e instanceof Error?e.message:`Invalid theme file.`})}},[V,m]);return(0,Y.jsxs)(Te,{children:[(0,Y.jsx)(U,{title:`Color mode`,bare:!0,children:(0,Y.jsx)(`div`,{className:`grid grid-cols-3 gap-3`,role:`group`,"aria-label":`Color mode`,children:lt.map(e=>(0,Y.jsxs)(`button`,{type:`button`,"aria-pressed":a===e.value,onClick:()=>o(e.value),className:t(ft,`p-1.5`,a===e.value?pt:mt),children:[(0,Y.jsxs)(`div`,{className:`relative overflow-hidden rounded-[min(var(--radius-lg),0.625rem)]`,children:[(0,Y.jsx)(Z,{compact:!0,theme:oe(l),variant:e.value===`dark`?`dark`:`light`}),e.value===`system`&&(0,Y.jsx)(`div`,{className:`absolute inset-0 [clip-path:inset(0_0_0_50%)]`,children:(0,Y.jsx)(Z,{compact:!0,theme:oe(l),variant:`dark`})})]}),(0,Y.jsx)(`span`,{className:`block px-1.5 pt-2 pb-1 text-[13px] font-medium text-foreground`,children:e.label})]},e.value))})}),(0,Y.jsx)(U,{title:`Theme palette`,bare:!0,headerAction:(0,Y.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,Y.jsx)(`input`,{ref:ue,type:`file`,accept:`.json,application/json`,className:`sr-only`,onChange:Be,"aria-hidden":!0,tabIndex:-1}),(0,Y.jsxs)(i,{size:`xs`,variant:`ghost`,onClick:je,"aria-label":`Create a new theme`,title:`Create a new theme`,className:`text-muted-foreground`,children:[(0,Y.jsx)(De,{className:`size-3.5`}),`New`]}),(0,Y.jsxs)(i,{size:`xs`,variant:`ghost`,onClick:X,"aria-label":`Import a theme from file`,title:`Import a theme from disk`,className:`text-muted-foreground`,children:[(0,Y.jsx)(ke,{className:`size-3.5`}),`Import`]})]}),children:(0,Y.jsx)(`div`,{role:`radiogroup`,"aria-label":`Theme palette`,className:`grid gap-3 sm:grid-cols-2`,children:R.map(e=>{let n=e.id===l,r=b===e.id;return(0,Y.jsxs)(q.Fragment,{children:[(0,Y.jsxs)(`div`,{role:`radio`,"aria-checked":n,tabIndex:n?0:-1,onClick:()=>m(e.id),onKeyDown:t=>{let n=t.key===`ArrowRight`||t.key===`ArrowDown`?1:t.key===`ArrowLeft`||t.key===`ArrowUp`?-1:0;if(n){t.preventDefault();let r=(R.findIndex(t=>t.id===e.id)+n+R.length)%R.length;m(R[r].id),(t.currentTarget.parentElement?.querySelectorAll(`[role="radio"]`))?.item(r).focus()}(t.key===` `||t.key===`Enter`)&&(t.preventDefault(),m(e.id))},className:t(ft,`flex cursor-pointer flex-col gap-2.5 p-2`,n?pt:mt),children:[(0,Y.jsx)(Z,{theme:e,variant:c}),(0,Y.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2.5 px-1 pb-0.5`,children:[(0,Y.jsx)(`span`,{"aria-hidden":!0,className:t(`relative flex size-4 shrink-0 items-center justify-center rounded-full border-2 transition-colors`,n?`border-primary`:`border-muted-foreground/40`),children:n?(0,Y.jsx)(`span`,{className:`size-2 rounded-full bg-primary`,"aria-hidden":!0}):null}),(0,Y.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col gap-0.5`,children:[(0,Y.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,Y.jsx)(`span`,{className:`truncate text-[13px] font-medium text-foreground`,title:e.name,children:e.name}),(0,Y.jsx)(me,{variant:`outline`,size:`sm`,children:e.builtIn?`Built-in`:`Custom`})]}),e.description?(0,Y.jsx)(`span`,{className:`truncate text-xs text-muted-foreground/80`,title:e.description,children:e.description}):null]}),(0,Y.jsx)(`div`,{onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),children:(0,Y.jsxs)(d,{children:[(0,Y.jsx)(u,{render:(0,Y.jsx)(i,{size:`icon-xs`,variant:`ghost`,"aria-label":`Theme actions for ${e.name}`,children:(0,Y.jsx)(_,{className:`size-4`})})}),(0,Y.jsxs)(f,{align:`end`,children:[!e.builtIn&&(0,Y.jsxs)(p,{onClick:()=>J(e),children:[(0,Y.jsx)(v,{}),` Edit`]}),(0,Y.jsxs)(p,{onClick:()=>Ae(e),children:[(0,Y.jsx)(s,{}),` Duplicate`]}),(0,Y.jsxs)(p,{onClick:()=>Fe(e),children:[(0,Y.jsx)(g,{}),` Export`]}),(0,Y.jsxs)(p,{onClick:()=>void ze(e),children:[(0,Y.jsx)(h,{}),` Copy JSON`]}),!e.builtIn&&(0,Y.jsxs)(p,{onClick:()=>re(e.id),children:[(0,Y.jsx)(y,{}),` Delete`]})]})]})})]})]}),r&&z?(0,Y.jsx)(we,{className:`settings-panel-enter col-span-full`,children:(0,Y.jsx)(Ze,{source:z.source,draft:z.draft,onDraftChange:e=>j(e),onSave:Me,onCancel:Ne,resolvedVariant:c})}):null]},e.id)})})}),!n&&(0,Y.jsx)(Ve,{}),(0,Y.jsxs)(U,{title:`Typography`,children:[(0,Y.jsx)(G,{title:`Interface font`,description:`Normal app text, navigation, dialogs, and controls.`,resetAction:x(`fontFamilySans`)?(0,Y.jsx)(W,{label:`interface font`,onClick:()=>Se(`fontFamilySans`)}):null,control:(0,Y.jsx)(yt,{options:D,value:I.fontFamilySans,sample:`The quick brown fox`}),children:(0,Y.jsx)(bt,{ariaLabel:`Interface font`,options:D,value:I.fontFamilySans,onChange:e=>H(`fontFamilySans`,e)})}),n?null:(0,Y.jsx)(G,{title:`Code font`,description:`Code blocks, diffs, file paths, and terminal surfaces.`,resetAction:x(`fontFamilyMono`)?(0,Y.jsx)(W,{label:`code font`,onClick:()=>Se(`fontFamilyMono`)}):null,control:(0,Y.jsx)(yt,{options:S,value:I.fontFamilyMono,sample:`const answer = 42`}),children:(0,Y.jsx)(bt,{ariaLabel:`Code font`,options:S,value:I.fontFamilyMono,onChange:e=>H(`fontFamilyMono`,e)})}),(0,Y.jsx)(G,{title:`Text size`,description:`Scale the interface independently from the active theme.`,resetAction:x(`fontSizeBase`)?(0,Y.jsx)(W,{label:`text size`,onClick:()=>Se(`fontSizeBase`)}):null,control:(0,Y.jsx)(St,{options:ee,value:I.fontSizeBase,preview:(0,Y.jsx)(`span`,{className:`flex h-8 min-w-12 items-center justify-center rounded-md border border-border/70 bg-background px-2 font-semibold text-foreground shadow-xs/5`,children:(0,Y.jsx)(`span`,{style:{fontSize:I.fontSizeBase},children:`Aa`})})}),children:(0,Y.jsx)(Ct,{ariaLabel:`Text size`,options:ee,value:I.fontSizeBase,onChange:e=>H(`fontSizeBase`,e)})})]}),(0,Y.jsxs)(U,{title:`Interface`,children:[n?null:(0,Y.jsx)(G,{title:`Corner radius`,description:`Adjust rounding for panels, buttons, inputs, and menus globally.`,resetAction:x(`radius`)?(0,Y.jsx)(W,{label:`corner radius`,onClick:()=>Se(`radius`)}):null,control:(0,Y.jsx)(St,{options:w,value:I.radius,preview:(0,Y.jsxs)(`span`,{className:`grid h-8 min-w-12 grid-cols-2 gap-1 rounded-md border border-border/70 bg-background p-1.5 shadow-xs/5`,children:[(0,Y.jsx)(`span`,{className:`border border-primary/55 bg-primary/15`,style:{borderRadius:I.radius}}),(0,Y.jsx)(`span`,{className:`border border-muted-foreground/30 bg-muted`,style:{borderRadius:I.radius}})]})}),children:(0,Y.jsx)(Ct,{ariaLabel:`Corner radius`,options:w,value:I.radius,onChange:e=>H(`radius`,e)})}),(0,Y.jsx)(G,{title:`Primary color`,description:`Theme palettes control buttons by default; enable a custom color to pin one app accent.`,resetAction:x(`primaryColorMode`)||x(`primaryColor`)?(0,Y.jsx)(W,{label:`primary color`,onClick:Ee}):null,control:(0,Y.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-2 text-xs text-muted-foreground`,children:[`Use theme color`,(0,Y.jsx)(Ce,{checked:I.primaryColorMode!==`custom`,onCheckedChange:e=>K(!e),"aria-label":`Use theme primary color`})]}),children:(0,Y.jsx)(xt,{mode:I.primaryColorMode,value:I.primaryColor,onColorChange:Oe})}),(0,Y.jsx)(G,{title:`Transparency`,description:`Adjust glass and floating surfaces like dialogs, menus, popups, and toasts.`,resetAction:x(`surfaceTransparency`)?(0,Y.jsx)(W,{label:`transparency`,onClick:()=>Se(`surfaceTransparency`)}):null,control:(0,Y.jsx)(St,{options:O,value:I.surfaceTransparency,preview:(0,Y.jsx)(`span`,{className:`relative h-8 min-w-12 overflow-hidden rounded-md border border-border/70 bg-[linear-gradient(135deg,var(--color-sky-500)_0_20%,var(--color-emerald-500)_20%_40%,var(--color-amber-500)_40%_60%,var(--color-fuchsia-500)_60%_80%,var(--color-slate-500)_80%_100%)] p-1.5 shadow-xs/5`,children:(0,Y.jsx)(`span`,{className:`block h-full rounded border border-border/70 bg-popover`,style:{opacity:ut[I.surfaceTransparency]??ut.default}})})}),children:(0,Y.jsx)(Ct,{ariaLabel:`Transparency`,options:O,value:I.surfaceTransparency,onChange:e=>H(`surfaceTransparency`,e)})})]}),(0,Y.jsx)(xe,{open:M!==null,onOpenChange:e=>{e||re(null)},children:(0,Y.jsxs)(ve,{children:[(0,Y.jsxs)(he,{children:[(0,Y.jsx)(be,{children:`Delete custom theme?`}),(0,Y.jsx)(ye,{children:B?`"${B.name}" will be removed permanently. This action cannot be undone.`:`This action cannot be undone.`})]}),(0,Y.jsxs)(ge,{children:[(0,Y.jsx)(_e,{render:(0,Y.jsx)(i,{variant:`outline`}),children:`Cancel`}),(0,Y.jsx)(i,{variant:`destructive`,onClick:Pe,children:`Delete theme`})]})]})})]})}var ft=`min-w-0 rounded-[min(var(--radius-xl),0.875rem)] border bg-card text-left outline-none transition-[background-color,border-color,box-shadow] duration-(--app-motion-duration-chip) focus-visible:ring-2 focus-visible:ring-ring`,pt=`border-primary/70 shadow-[0_0_0_1px_var(--color-primary)]`,mt=`border-border/70 hover:border-foreground/20 hover:bg-muted/30`,ht=`min-h-12 min-w-0 rounded-[min(var(--radius-md),0.5rem)] border px-2.5 py-1.5 text-left outline-none transition-[background-color,border-color,color,box-shadow] duration-(--app-motion-duration-chip) focus-visible:ring-2 focus-visible:ring-ring`,gt=`border-primary/70 bg-primary/8 text-foreground shadow-[0_0_0_1px_var(--color-primary)]`,_t=`border-border/70 text-muted-foreground hover:border-foreground/25 hover:bg-muted/45 hover:text-foreground`;function vt(e){let t=(0,J.c)(10),{label:n,description:r,preview:i}=e,a;t[0]===n?a=t[1]:(a=(0,Y.jsx)(`span`,{className:`block truncate text-xs font-medium text-foreground`,children:n}),t[0]=n,t[1]=a);let o;t[2]===r?o=t[3]:(o=r?(0,Y.jsx)(`span`,{className:`block truncate text-[11px] text-muted-foreground`,children:r}):null,t[2]=r,t[3]=o);let s;t[4]!==a||t[5]!==o?(s=(0,Y.jsxs)(`span`,{className:`min-w-0 text-right`,children:[a,o]}),t[4]=a,t[5]=o,t[6]=s):s=t[6];let c;return t[7]!==i||t[8]!==s?(c=(0,Y.jsxs)(`span`,{className:`flex min-w-0 items-center gap-3`,children:[s,i]}),t[7]=i,t[8]=s,t[9]=c):c=t[9],c}function yt(e){let t=(0,J.c)(13),{options:n,value:r,sample:i}=e,a;if(t[0]!==n||t[1]!==r){let e;t[3]===r?e=t[4]:(e=e=>e.value===r,t[3]=r,t[4]=e),a=n.find(e),t[0]=n,t[1]=r,t[2]=a}else a=t[2];let o=a?.label??`Custom`,s;t[5]===r?s=t[6]:(s={fontFamily:r},t[5]=r,t[6]=s);let c;t[7]!==i||t[8]!==s?(c=(0,Y.jsx)(`span`,{className:`flex h-8 max-w-40 min-w-24 items-center truncate rounded-[min(var(--radius-md),0.5rem)] border border-border/70 bg-background px-2.5 text-xs text-foreground`,style:s,title:i,children:i}),t[7]=i,t[8]=s,t[9]=c):c=t[9];let l;return t[10]!==o||t[11]!==c?(l=(0,Y.jsx)(vt,{label:o,preview:c}),t[10]=o,t[11]=c,t[12]=l):l=t[12],l}function bt(e){let n=(0,J.c)(17),{ariaLabel:r,options:i,value:a,onChange:o}=e,s;if(n[0]!==i||n[1]!==a){let e;n[3]===a?e=n[4]:(e=e=>e.value===a,n[3]=a,n[4]=e),s=i.findIndex(e),n[0]=i,n[1]=a,n[2]=s}else s=n[2];let c=Math.max(0,s),l;if(n[5]!==r||n[6]!==o||n[7]!==i||n[8]!==c){let e;n[10]!==r||n[11]!==o||n[12]!==c?(e=(e,n)=>{let i=n===c;return(0,Y.jsxs)(`button`,{type:`button`,role:`radio`,"aria-checked":i,"aria-label":`Use ${e.label} for ${r.toLowerCase()}`,title:`${e.label} (${e.description})`,onClick:()=>o(e.value),className:t(ht,i?gt:_t),children:[(0,Y.jsx)(`span`,{className:`block truncate text-[12px] font-semibold leading-4`,style:{fontFamily:e.value},children:e.label}),(0,Y.jsx)(`span`,{className:`block truncate text-[10px] leading-3 opacity-75`,children:e.description})]},e.value)},n[10]=r,n[11]=o,n[12]=c,n[13]=e):e=n[13],l=i.map(e),n[5]=r,n[6]=o,n[7]=i,n[8]=c,n[9]=l}else l=n[9];let u;return n[14]!==r||n[15]!==l?(u=(0,Y.jsx)(`div`,{className:`w-full`,children:(0,Y.jsx)(`div`,{role:`radiogroup`,"aria-label":r,className:`grid grid-cols-2 gap-1.5 sm:grid-cols-3 lg:grid-cols-4`,children:l})}),n[14]=r,n[15]=l,n[16]=u):u=n[16],u}function xt(e){let n=(0,J.c)(29),{mode:r,value:i,onColorChange:a}=e,o=r===`custom`,s;n[0]===i?s=n[1]:(s=/^#[0-9a-f]{6}$/i.test(i)?i.toLowerCase():k[0].value,n[0]=i,n[1]=s);let c=s,l=k.find(e=>e.value===c),u=o&&!l?gt:_t,d=!o&&`cursor-not-allowed hover:border-border/70 hover:bg-transparent`,f;n[2]!==u||n[3]!==d?(f=t(ht,`h-12 w-full size-auto shadow-none`,u,d),n[2]=u,n[3]=d,n[4]=f):f=n[4];let p=f,m;n[5]===c?m=n[6]:(m=(0,Y.jsx)(`span`,{"aria-hidden":!0,className:`size-5 shrink-0 rounded-full border border-black/10 shadow-xs dark:border-white/20`,style:{backgroundColor:c}}),n[5]=c,n[6]=m);let h;n[7]===Symbol.for(`react.memo_cache_sentinel`)?(h=(0,Y.jsx)(`span`,{className:`block truncate text-[12px] font-semibold leading-4`,children:`Custom`}),n[7]=h):h=n[7];let g;n[8]===c?g=n[9]:(g=(0,Y.jsxs)(`span`,{className:`min-w-0`,children:[h,(0,Y.jsx)(`span`,{className:`block truncate font-mono text-[10px] leading-3 opacity-75`,children:c})]}),n[8]=c,n[9]=g);let _;n[10]!==m||n[11]!==g?(_=(0,Y.jsxs)(`span`,{className:`flex size-full min-w-0 items-center gap-2`,children:[m,g]}),n[10]=m,n[11]=g,n[12]=_):_=n[12];let v=_,y=!o&&`opacity-60`,b;n[13]===y?b=n[14]:(b=t(`grid grid-cols-2 gap-1.5 transition-opacity duration-(--app-motion-duration-chip) sm:grid-cols-3 lg:grid-cols-4`,y),n[13]=y,n[14]=b);let x;n[15]!==o||n[16]!==c||n[17]!==a?(x=k.map(e=>{let n=c===e.value;return(0,Y.jsxs)(`button`,{type:`button`,role:`radio`,"aria-checked":o&&n,"aria-label":`Use ${e.label} as primary color`,title:`${e.label} (${e.value})`,onClick:()=>a(e.value),disabled:!o,className:t(ht,`flex items-center gap-2`,o&&n?gt:_t,!o&&`cursor-not-allowed hover:border-border/70 hover:bg-transparent hover:text-muted-foreground`),children:[(0,Y.jsx)(`span`,{"aria-hidden":!0,className:`size-5 shrink-0 rounded-full border border-black/10 shadow-xs dark:border-white/20`,style:{backgroundColor:e.value}}),(0,Y.jsxs)(`span`,{className:`min-w-0`,children:[(0,Y.jsx)(`span`,{className:`block truncate text-[12px] font-semibold leading-4`,children:e.label}),(0,Y.jsx)(`span`,{className:`block truncate text-[10px] leading-3 opacity-75`,children:e.description})]})]},e.value)}),n[15]=o,n[16]=c,n[17]=a,n[18]=x):x=n[18];let S;n[19]!==o||n[20]!==p||n[21]!==v||n[22]!==c||n[23]!==a?(S=o?(0,Y.jsx)(K,{value:c,onChange:a,ariaLabel:`Pick custom primary color`,triggerClassName:p,children:v}):(0,Y.jsx)(`button`,{type:`button`,disabled:!0,"aria-label":`Pick custom primary color`,className:p,children:v}),n[19]=o,n[20]=p,n[21]=v,n[22]=c,n[23]=a,n[24]=S):S=n[24];let C;return n[25]!==b||n[26]!==x||n[27]!==S?(C=(0,Y.jsx)(`div`,{className:`w-full`,children:(0,Y.jsxs)(`div`,{role:`radiogroup`,"aria-label":`Primary color`,className:b,children:[x,S]})}),n[25]=b,n[26]=x,n[27]=S,n[28]=C):C=n[28],C}function St(e){let t=(0,J.c)(9),{options:n,value:r,preview:i}=e,a;if(t[0]!==n||t[1]!==r){let e;t[3]===r?e=t[4]:(e=e=>e.value===r,t[3]=r,t[4]=e),a=n.find(e),t[0]=n,t[1]=r,t[2]=a}else a=t[2];let o=a,s=o?.label??r,c=o?.description,l;return t[5]!==i||t[6]!==s||t[7]!==c?(l=(0,Y.jsx)(vt,{label:s,description:c,preview:i}),t[5]=i,t[6]=s,t[7]=c,t[8]=l):l=t[8],l}function Ct(e){let n=(0,J.c)(34),{ariaLabel:r,options:i,value:a,onChange:o}=e,s;if(n[0]!==i||n[1]!==a){let e;n[3]===a?e=n[4]:(e=e=>e.value===a,n[3]=a,n[4]=e),s=i.findIndex(e),n[0]=i,n[1]=a,n[2]=s}else s=n[2];let c=Math.max(0,s),l=i.length>1?c/(i.length-1)*100:0,u;n[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=t(`h-5 w-full cursor-pointer appearance-none bg-transparent outline-none`,`[&::-webkit-slider-runnable-track]:h-1.5 [&::-webkit-slider-runnable-track]:rounded-full`,`[&::-webkit-slider-thumb]:mt-[-5px] [&::-webkit-slider-thumb]:size-4 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-background [&::-webkit-slider-thumb]:bg-primary [&::-webkit-slider-thumb]:shadow-sm`,`[&::-moz-range-track]:h-1.5 [&::-moz-range-track]:rounded-full [&::-moz-range-track]:border-0`,`[&::-moz-range-thumb]:size-4 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-background [&::-moz-range-thumb]:bg-primary [&::-moz-range-thumb]:shadow-sm`,`focus-visible:[&::-webkit-slider-thumb]:ring-2 focus-visible:[&::-webkit-slider-thumb]:ring-ring focus-visible:[&::-moz-range-thumb]:ring-2 focus-visible:[&::-moz-range-thumb]:ring-ring`),n[5]=u):u=n[5];let d=Math.max(0,i.length-1),f=`linear-gradient(to right, var(--color-primary) 0%, var(--color-primary) ${l}%, color-mix(in srgb, var(--color-muted-foreground) 18%, transparent) ${l}%, color-mix(in srgb, var(--color-muted-foreground) 18%, transparent) 100%)`,p;n[6]===f?p=n[7]:(p={background:f,borderRadius:`999px`},n[6]=f,n[7]=p);let m;n[8]!==o||n[9]!==i?(m=e=>{let t=i[Number(e.currentTarget.value)];t&&o(t.value)},n[8]=o,n[9]=i,n[10]=m):m=n[10];let h;n[11]!==r||n[12]!==c||n[13]!==d||n[14]!==p||n[15]!==m?(h=(0,Y.jsx)(`input`,{"aria-label":r,className:u,max:d,min:0,step:1,type:`range`,value:c,style:p,onChange:m}),n[11]=r,n[12]=c,n[13]=d,n[14]=p,n[15]=m,n[16]=h):h=n[16];let g=`repeat(${i.length}, minmax(0, 1fr))`,_;n[17]===g?_=n[18]:(_={gridTemplateColumns:g},n[17]=g,n[18]=_);let v;if(n[19]!==r||n[20]!==o||n[21]!==i||n[22]!==c){let e;n[24]!==r||n[25]!==o||n[26]!==c?(e=(e,n)=>{let i=n===c;return(0,Y.jsxs)(`button`,{type:`button`,"aria-label":`Set ${r.toLowerCase()} to ${e.label}`,title:`${e.label} (${e.description})`,onClick:()=>o(e.value),className:t(`flex min-h-7 min-w-0 flex-col items-center justify-start gap-1 rounded-md px-1 py-1 text-center outline-none transition-colors focus-visible:ring-2 focus-visible:ring-ring`,i?`text-foreground`:`text-muted-foreground hover:bg-muted/50`),children:[(0,Y.jsx)(`span`,{className:t(`size-1.5 rounded-full`,i?`bg-primary`:`bg-muted-foreground/35`),"aria-hidden":!0}),(0,Y.jsx)(`span`,{className:`max-w-full truncate text-[10px] leading-none`,children:e.label})]},e.value)},n[24]=r,n[25]=o,n[26]=c,n[27]=e):e=n[27],v=i.map(e),n[19]=r,n[20]=o,n[21]=i,n[22]=c,n[23]=v}else v=n[23];let y;n[28]!==v||n[29]!==_?(y=(0,Y.jsx)(`div`,{className:`mt-1.5 grid gap-1`,style:_,children:v}),n[28]=v,n[29]=_,n[30]=y):y=n[30];let b;return n[31]!==y||n[32]!==h?(b=(0,Y.jsxs)(`div`,{className:`w-full`,children:[h,y]}),n[31]=y,n[32]=h,n[33]=b):b=n[33],b}export{dt as AppearanceSettingsPanel};