@inkeep/open-knowledge 0.89.18 → 0.89.19

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 (96) hide show
  1. package/dist/{cli-B9KZG_G-.mjs → cli-DLImjNh5.mjs} +6 -6
  2. package/dist/cli.mjs +1 -1
  3. package/dist/constants-DMo5XxF6.mjs +1 -0
  4. package/dist/{dist-DHvKP_UT.mjs → dist-BCXC4aiu.mjs} +1 -1
  5. package/dist/{dist-BhC8nyIm.mjs → dist-D2u5wzuy.mjs} +1 -1
  6. package/dist/index.mjs +222 -222
  7. package/dist/init-D0GeXndE.mjs +1 -0
  8. package/dist/{init-Cgw6Kyy_.mjs → init-DQCZHuN5.mjs} +2 -2
  9. package/dist/{launch-json-removal-BxNNEiNc.mjs → launch-json-removal--y7oKSIm.mjs} +1 -1
  10. package/dist/{loader-LXyGMjA2.mjs → loader-CdeqEFSl.mjs} +1 -1
  11. package/dist/loader-Cq_gRwIy.mjs +1 -0
  12. package/dist/{md-manager-BGnqyqi1-CmUAdK_J.mjs → md-manager-BGnqyqi1-VEQrXxbn.mjs} +153 -153
  13. package/dist/{open-browser-CNemiJ5U.mjs → open-browser-DSgNDGbX.mjs} +1 -1
  14. package/dist/parse-worker.mjs +1 -1
  15. package/dist/{preview-DCRA8h8X.mjs → preview-Cuo46DxR.mjs} +1 -1
  16. package/dist/preview-DbOPZdWY.mjs +1 -0
  17. package/dist/public/assets/{AccountSection-OhGXTG8W.js → AccountSection-CWEVZ7pB.js} +1 -1
  18. package/dist/public/assets/{ActivityModeContent-D2u_a7Ey.js → ActivityModeContent-BJr5J_i9.js} +1 -1
  19. package/dist/public/assets/{AddPropertiesButton-BoAPqA99.js → AddPropertiesButton-B0BFEg_S.js} +1 -1
  20. package/dist/public/assets/{AgentConnectionsSection-BK8iVfX2.js → AgentConnectionsSection-lzUCmXzJ.js} +1 -1
  21. package/dist/public/assets/{AgentDiffPane-ClGd8B2g.js → AgentDiffPane-BZYXKfZK.js} +1 -1
  22. package/dist/public/assets/{AttachmentsSection-z_Rd8AEq.js → AttachmentsSection-BGMrBJ3W.js} +1 -1
  23. package/dist/public/assets/{CodeMirrorPropInput-CgYXNCD0.js → CodeMirrorPropInput-DRqfG7N4.js} +1 -1
  24. package/dist/public/assets/{ContentRulesSection-BOcWSOyx.js → ContentRulesSection-DDmlnPre.js} +1 -1
  25. package/dist/public/assets/{DiffViewBoundary-RTb_nqDv.js → DiffViewBoundary-CeuqIgmQ.js} +1 -1
  26. package/dist/public/assets/{DocumentContext-B5nDVELQ.js → DocumentContext-CpIPRs5a.js} +1 -1
  27. package/dist/public/assets/{EditorModeToggle-YthgWQKw.js → EditorModeToggle-CtE-vUpH.js} +1 -1
  28. package/dist/public/assets/{ExcalidrawDocEditor-DxdgOVK9.js → ExcalidrawDocEditor-CbJB7how.js} +1 -1
  29. package/dist/public/assets/FeedbackForm-Cy7CZV7O.js +1 -0
  30. package/dist/public/assets/{ImportSkillDialog-CC_5e-hB.js → ImportSkillDialog-BILQoO7i.js} +1 -1
  31. package/dist/public/assets/{LinkPreviewsSection-DMStNFgD.js → LinkPreviewsSection-Cjtxnsji.js} +1 -1
  32. package/dist/public/assets/{LintConfigEditor-BdMNwNah.js → LintConfigEditor-BZ5wNgLm.js} +1 -1
  33. package/dist/public/assets/{LintingSection-BF9mnl0V.js → LintingSection-DR8jISYs.js} +1 -1
  34. package/dist/public/assets/ManagedArtifactProperties-AaTwNAVU.js +1 -0
  35. package/dist/public/assets/{ManagedArtifactProperties-CppSLnXT.js → ManagedArtifactProperties-Bnjrh997.js} +1 -1
  36. package/dist/public/assets/{Mermaid-DviN8rnL.js → Mermaid-CnbT83v8.js} +1 -1
  37. package/dist/public/assets/{MermaidDocEditor-CPp0ud0k.js → MermaidDocEditor-D1DiErJo.js} +1 -1
  38. package/dist/public/assets/{NetworkAccessSection-OZU6AI-D.js → NetworkAccessSection-60v06CZ5.js} +1 -1
  39. package/dist/public/assets/{PropertyDisplayRow-COrSBo6t.js → PropertyDisplayRow-e7W9s0vt.js} +1 -1
  40. package/dist/public/assets/{PublishToGitHubDialog-CxoN1EVl.js → PublishToGitHubDialog-C1_s9SF9.js} +1 -1
  41. package/dist/public/assets/{SchemaConfigEditor-lFoV8qoA.js → SchemaConfigEditor-CTX78gYe.js} +1 -1
  42. package/dist/public/assets/{SearchSection-ZCM9SGj0.js → SearchSection-I05VM72v.js} +1 -1
  43. package/dist/public/assets/{SessionsHost-BQ7QkR39.js → SessionsHost-_a299z9Q.js} +2 -2
  44. package/dist/public/assets/{SettingsDialogBody-AtEhUROV.js → SettingsDialogBody-CzAGDQbp.js} +2 -2
  45. package/dist/public/assets/{ShareReceiveMissDialog-CXWJQwW-.js → ShareReceiveMissDialog-WAX-tIoj.js} +1 -1
  46. package/dist/public/assets/{SkillToolbarControls-DoEY6UgB.js → SkillToolbarControls-D5iZ5JYo.js} +1 -1
  47. package/dist/public/assets/{SlidesToolbarControls-CGQKzdpl.js → SlidesToolbarControls-BMpnWFlk.js} +1 -1
  48. package/dist/public/assets/{SourceEditor-DzfyMnpp.js → SourceEditor-B5udBOw8.js} +1 -1
  49. package/dist/public/assets/{SyncSection-RxxCFzl8.js → SyncSection-CR83qwRV.js} +1 -1
  50. package/dist/public/assets/{SyncStatusBadge-CcDPFZ-j.js → SyncStatusBadge-GBSSUnTL.js} +1 -1
  51. package/dist/public/assets/{TerminalLaunchContext-9IwOR9rn.js → TerminalLaunchContext-DWEUWxkF.js} +1 -1
  52. package/dist/public/assets/{TerminalSection-DldAZvhF.js → TerminalSection-jQMiN2NM.js} +1 -1
  53. package/dist/public/assets/{TerminalWindowApp-CjONTqka.js → TerminalWindowApp-DY5SjqaO.js} +1 -1
  54. package/dist/public/assets/{TextDocEditor-D03GQ4g0.js → TextDocEditor-CamOIjPA.js} +1 -1
  55. package/dist/public/assets/{ThreadView-CeTMjsN_.js → ThreadView-Dk1uolzz.js} +1 -1
  56. package/dist/public/assets/{TimelineDiffPane-CBjpuccG.js → TimelineDiffPane-DTEKPhRL.js} +1 -1
  57. package/dist/public/assets/{bridge-DiZIRFy1.js → bridge-C8V1oYmB.js} +1 -1
  58. package/dist/public/assets/{client-version-DeZw3ljy.js → client-version-B9WTb77m.js} +1 -1
  59. package/dist/public/assets/{comment-chips-zfzVI5Au.js → comment-chips-BUJ1ddgE.js} +1 -1
  60. package/dist/public/assets/{config-provider-Cip-TSZl.js → config-provider-CX3e9KjB.js} +1 -1
  61. package/dist/public/assets/{doc-undo-manager-CqeudyU_.js → doc-undo-manager-DOnEJY3O.js} +1 -1
  62. package/dist/public/assets/{follow-file-D9RBLSAg.js → follow-file-CjM0fc84.js} +1 -1
  63. package/dist/public/assets/{index-D04aUN69.js → index-CXONQ7nv.js} +7 -7
  64. package/dist/public/assets/{lint-plugins-Bvweiwi9.js → lint-plugins-BhTcQnAm.js} +1 -1
  65. package/dist/public/assets/{pending-receive-nav-store-CixUztAW.js → pending-receive-nav-store-CnY93rdh.js} +1 -1
  66. package/dist/public/assets/{preferred-session-events-D1VdoRFK.js → preferred-session-events-CSEKZFF3.js} +1 -1
  67. package/dist/public/assets/{selection-context-Qfujtbe5.js → selection-context-DKivCAwn.js} +1 -1
  68. package/dist/public/assets/{src-BfWNYb5E.js → src-C8M8viko.js} +1 -1
  69. package/dist/public/assets/storage-scope-C4iKsRB3.js +1 -0
  70. package/dist/public/assets/{structural-freshness-C6rR7cV3-BcZbesJq.js → structural-freshness-CGhYCLVL-BrI36Iuq.js} +1 -1
  71. package/dist/public/assets/{telemetry-impl-E_oWw6ko.js → telemetry-impl-DaJFmK9H.js} +1 -1
  72. package/dist/public/assets/{telemetry-startup-DDMdxaIj.js → telemetry-startup-DqC3DMWF.js} +1 -1
  73. package/dist/public/assets/{typing-burst-detector-Cyz41azX.js → typing-burst-detector-R7tjAT4x.js} +1 -1
  74. package/dist/public/assets/{use-activity-panel-DjR6ZX0I.js → use-activity-panel-DGar_Edl.js} +1 -1
  75. package/dist/public/assets/{use-open-skill-DHIEuXjA.js → use-open-skill-By8vpD7A.js} +1 -1
  76. package/dist/public/assets/{use-terminal-enabled-CjukantD.js → use-terminal-enabled-BqfjZ8mE.js} +1 -1
  77. package/dist/public/assets/{use-timeline-entry-diff-DYqii4B9.js → use-timeline-entry-diff-oKmljZR7.js} +1 -1
  78. package/dist/public/index.html +24 -24
  79. package/dist/{registry-probes-o5aJMkuw.mjs → registry-probes-BQSJrnfA.mjs} +1 -1
  80. package/dist/{removal-file-path-CdNleIaz.mjs → removal-file-path-CLP-IKE4.mjs} +1 -1
  81. package/dist/{repair-launch-json-CfOBfB_N.mjs → repair-launch-json-CYf1PCfI.mjs} +1 -1
  82. package/dist/{repair-mcp-configs-C6PE9N18.mjs → repair-mcp-configs-HxDNeyZv.mjs} +1 -1
  83. package/dist/src-BtdbMtgy.mjs +1 -0
  84. package/dist/{src-DUd50wo0.mjs → src-CbYZW0n7.mjs} +1 -1
  85. package/dist/start-BbtolYfA.mjs +1 -0
  86. package/dist/{start-BchmoOkC.mjs → start-CK18LMzB.mjs} +3 -3
  87. package/package.json +4 -4
  88. package/dist/constants-DdJQusFD.mjs +0 -1
  89. package/dist/init-C3EajjwQ.mjs +0 -1
  90. package/dist/loader-aMd2FOhm.mjs +0 -1
  91. package/dist/preview-D45BXDGR.mjs +0 -1
  92. package/dist/public/assets/FeedbackForm-BSWvs91E.js +0 -1
  93. package/dist/public/assets/ManagedArtifactProperties-tVXF-y2X.js +0 -1
  94. package/dist/public/assets/storage-scope-DXvQJHST.js +0 -1
  95. package/dist/src-3yHLDhHB.mjs +0 -1
  96. package/dist/start-C8V39ug2.mjs +0 -1
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AboutSection-CY0aFaPP.js","./chunk-CYidjpOJ.js","./dist-Nvb76hAm.js","./jsx-runtime-BUgB2tll.js","./react-f2sANaYj.js","./label-CvMpFFbN.js","./dist-DTFuvKje.js","./dist-CSCUSbQc.js","./react-dom-DPxgxlDT.js","./compiler-runtime-BfE3aGVn.js","./utils-CPqDy6Hr.js","./bundle-mjs-SHeFpKGC.js","./switch-BKZTXkzu.js","./dist-DBXmXNZF.js","./dist-CRjqnzU7.js","./arrow-up-right-BuM5_PNk.js","./createLucideIcon-CB3nKwwz.js","./spinner-x1_HPy7D.js","./V1UpgradeNotice-CWOsK_ZX.js","./preload-helper-Chd9yIcd.js","./triangle-alert-DNmGlBDf.js","./x-hoz52v9J.js","./button-DzgjsZzC.js","./dist-BsJYDohW.js","./v1-upgrade-store-DKiS99ih.js","./SettingsSectionHeader-2IUjvHgB.js","./tooltip-BjuCvy5N.js","./dist-DXjgFhPl2.js","./floating-ui.dom-BYl7JZd0.js","./dist-CxbWbOvU.js","./badge-Ds1xg06u.js","./external-link-BgXpGqMz.js","./SharingSection-DPJQEB4U.js","./radio-group-G1GR05Rb.js","./dist-uiDX6Nr9.js","./dist-BKgU0kag.js","./dist-Bs8bPT30.js","./ConfigSharingInfoTooltip-aZjSCTHB.js","./info-BtVOX9do.js","./skeleton-CjpLzvC2.js","./channel-cli-copy-CSauaW4H.js","./constants-product-DTeqlnBa.js","./AccountSection-OhGXTG8W.js","./SyncStatusBadge-CcDPFZ-j.js","./config-provider-Cip-TSZl.js","./trace-api-D3teyEWp.js","./status-BKf6n_rI.js","./dist-PQ5KMVDh.js","./schemas-api-C0HskKob.js","./schemas-DN_HD0k4.js","./_envelope-DuFpUEag-DIV0rnvM.js","./share-D-LUU2aX-iU4CJWyG.js","./util-doc-name-ICsmfVCh.js","./constants-cc1-DSBEUyZb.js","./constants-github-CG_3Vnhk.js","./doc-extensions-CcO7K8uD-BsCiKh3N.js","./logging-renderer-log-BxHgdJfM.js","./skill-targets-schema-CqL94mYR.js","./constants-editors-IUfUQiPg.js","./use-apply-config-language-CsSqJtcT.js","./dist-XgwTV-oh2.js","./messages-C2qGgazi.js","./client-version-DeZw3ljy.js","./css-color-to-hex-DOpQ8lDF.js","./use-apply-config-color-theme-DjHYsCxl.js","./use-apply-config-theme-DDZzWhZD.js","./config-context-DmzX_4s_.js","./saved-themes-client-DW8Bg2_g.js","./constants-upload-kkBkFBty.js","./select-BuIwBy1a.js","./es2015-Dtr4fzLT.js","./check-DY-dMFs2.js","./chevron-down-eCPqD6WM.js","./collapsible-BKbszYZV.js","./arrow-up-VsvqTAMX.js","./chevron-right-D04ny0op.js","./settings-2-CPJ2efEY.js","./git-merge-hyTwvob4.js","./refresh-cw-oswk3nky.js","./terminal-Bm6gwhFk.js","./DisclosureWarning-YLWn31cu.js","./terminal-command-events-Aq8I_fAw.js","./handoff-rTg39zAU.js","./dialog-C_xJSQj5.js","./electron-drag-strip-D9GZhMg_.js","./popover-DRwB9TYJ.js","./dist-Cj3Bpren.js","./use-conflicts-Bh2awOW1.js","./documents-events-DD7-XBOS.js","./schemas-cc1-tjl2gPeT.js","./config-errors-BXj4CTPy.js","./use-git-sync-status-BupWCxHX.js","./doc-hash-BGIO8NA0.js","./reveal-editor-DH65Bioi.js","./use-settings-route-Bv3gbPs-.js","./keyboard-shortcuts-BqVfFaC6.js","./dist-CdgIFD0J.js","./w3c-keyname-DElaZB74.js","./trash-2-DII6GTkE.js","./AuthModal-CYGu_t54.js","./copy-BdJxtD8X.js","./input-ChLhhLqr.js","./auth-state-cache-FCU2oLOa.js","./AgentConnectionsSection-BK8iVfX2.js","./useQuery-ZeEDLtxh.js","./RegisteredAgentIcon-BLJHBvCe.js","./cursor-D4CapP83.js","./agent-registry-0mqN6WP3.js","./search-BejzIwN4.js","./TerminalLaunchContext-9IwOR9rn.js","./agent-connections-B8bi5P2u.js","./alert-dialog-Mwvu63aS.js","./checkbox-sDYEOsNL.js","./minus-CoovtLmg.js","./folder-bQZMXu-W.js","./monitor-CgZek04W.js","./sparkles-DNbwGwtt.js","./AgentIconCluster-DBRL0S-J.js","./OpenInAgentMenuItem-NYARRegn.js","./dropdown-menu-CKxMZXce.js","./dist-C0nuYMFu.js","./dist-d2WYntJB.js","./copilot-CArBqDJb.js","./utils-random-uuid-CZ2BgcSX.js","./mascot-outline-CtS592mc.js","./field-Y3sjmgnw.js","./separator-D7s_9ZwH.js","./tool-list-format-BF3gA5iW.js","./constants-skills-CIijCHaN.js","./bool-pref-BC0eWf6R.js","./storage-scope-DXvQJHST.js","./bridge-DiZIRFy1.js","./structural-freshness-C6rR7cV3-BcZbesJq.js","./terminal-cli-display-C7V3aJhC.js","./settings-section-labels-D_MVAZfI.js","./catalog-9jwfk-6h.js","./use-workspace-DtmPnC8Q.js","./AttachmentsSection-z_Rd8AEq.js","./field-controls-C38JfTQ8.js","./toggle-group-aEGkM0EG.js","./circle-alert-Bzl1eeiU.js","./ThemePicker-Dd6kqm7g.js","./plus-DyJkO9Yb.js","./rotate-ccw-AjwOre17.js","./form-CeX56mla.js","./textarea-D9PjrPjk.js","./config-schema-DYFhQn3Z.js","./config-validation-events-BbfLpWd9.js","./ContentRulesSection-BOcWSOyx.js","./markdown-lint-C_6WZKjR.js","./lib-BJEFuEwC.js","./ccount-Bd_1xJAg.js","./syntax-DcTWJ_S_.js","./markdownit-DSCc3e8P.js","./field-controls-BCV9U3so.js","./HotkeysSection-BP1rNtbg.js","./settings-host-gates-D6Q-lrmL.js","./kbd-Cg1nrB7U.js","./IntegrationsSection-CqgI7U2u.js","./InstallInClaudeDesktopDialog-BJiDcyas.js","./arrow-right-9zZjHMAu.js","./circle-check-CNrZDx3v.js","./download-cNyCwGxf.js","./LinkPreviewsSection-DMStNFgD.js","./LintingSection-BF9mnl0V.js","./CodeMirrorPropInput-CgYXNCD0.js","./dist-BMmhsNLt.js","./dist-DDahyGUu.js","./dist-B8TQy9xi.js","./dist-B_eHJbaz.js","./dist-C8DjhI_T.js","./dist-ZVfp923o.js","./dist-DLoZ_P3d.js","./dist-lr1rqCPs.js","./dist-C5nHW8_Q2.js","./dist-K24i7e9d.js","./stex-C1y00cKF.js","./lib-BdqIoeMy.js","./space-separated-tokens-CejTWgsn.js","./trim-lines-BTVRWUIT.js","./folder-open-DoR6VDtv.js","./with-selector-zVo3Fruj.js","./navigation-targets-DmcvbdXU.js","./file-tree-utils-D2Pu3gTD.js","./doc-paths-DEsdzFI4.js","./cm-theme-0t8b_a5N.js","./desktop-bridge-BP9UHO45.js","./page-list-cache-DWEng1Sw.js","./documents-fetch-CAoh8zGg.js","./note-window-mode-DK36peY8.js","./DocumentContext-B5nDVELQ.js","./propagation-api-L58pgj3j.js","./context-api-Ccav3azS.js","./lib-DvBPuJe0.js","./lib-COZ1ck7F.js","./lib-sz3BTiOu.js","./git-branch-EQxRRYB4.js","./Mermaid-DviN8rnL.js","./use-app-color-mode-vBLU_rER.js","./perf-CCuuR_Xb.js","./diagnostic-breadcrumb-SSTr0wqA.js","./ime-composition-BM625UOt.js","./prop-types-DIQK3GLv.js","./hash-CI6N380e.js","./local-menu-action-bus-BRwk7KU_.js","./paperclip-CvuJcETP.js","./react-error-boundary-6ac6QM6R.js","./CopyButton-DPqQBOBe.js","./PageListContext-B9JJJqir.js","./parse-api-error-B-hICRsf.js","./startup-marks-Bg1k_Pfs.js","./file-tree-rename-validation-Dqgj7_Ab.js","./use-collab-url-VmULqFZe.js","./api-config-DkLRTYct.js","./excalidraw-scene-CDaSGrMg.js","./known-skill-dirs-zrXV8hey.js","./single-file-mode-BbPcZtOI.js","./skill-scope-BRYeXgDz.js","./skills-api-DRAfwDth.js","./DocumentContext-B0sQn39F.css","./lint-plugin-meta-DSTN5LP6.js","./square-pen-Dr2IoFig.js","./DeleteConfirmationDialog-Bsx5ZlsH.js","./SkillPluginBundleDialog-C1zoly4g.js","./SkillInstallMenu-CTOEoaFJ.js","./ChangedOutsideBadge-QO3QYBpf.js","./context-menu-IR3hteiG.js","./dist-BzicVdNV.js","./use-skills-Cixo0YAs.js","./use-skill-targets-B-YS_fjU.js","./markdownlint-rule-browser-CFvqABQW.js","./tag-pill-input-B4zcXpTw.js","./lint-config-client-MPuLlXpZ.js","./use-open-skill-DHIEuXjA.js","./open-managed-artifact-tab-DGz2Od36.js","./schema-fields-view-intent-CtpdW0oB.js","./NetworkAccessSection-OZU6AI-D.js","./restart-collab-server-DQXHLezq.js","./OkignoreSection-DM6w7SmV.js","./sortable.esm-Ca4B7-y_.js","./grip-vertical-DVSm0qk2.js","./config-ignore-nested-error-events-CdP-xKB6.js","./save-held-message-C87AhHaj.js","./ProjectTemplatesSection-UXsBnF5A.js","./TemplateRow-CDzqjDcu.js","./file-plus-BHzi5G4b.js","./folder-config-api-Cow37a-H.js","./SearchSection-ZCM9SGj0.js","./use-semantic-search-status-B-mw_J5v.js","./SkillsManagerSection-DvXQM6m3.js","./SlidesPluginSection-DIUKOMCd.js","./input-group-B9P3q8W3.js","./SyncSection-RxxCFzl8.js","./PublishToGitHubDialog-CxoN1EVl.js","./clipboard-adapter-BSMTjxp1.js","./TerminalSection-DldAZvhF.js","./use-terminal-enabled-CjukantD.js","./ThemePluginSection-nI1GgdHf.js","./schema-section-q8gLZzk5.js","./settings-fields-BxgwZmIp.js","./lint-plugins-Bvweiwi9.js","./OkCliPathRow-WU7DzKHc.js","./SpellingSettings-BrfpyGGQ.js"])))=>i.map(i=>d[i]);
2
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./preload-helper-Chd9yIcd.js";import{t as n}from"./jsx-runtime-BUgB2tll.js";import{t as r}from"./react-f2sANaYj.js";import{n as i,r as a}from"./dist-Nvb76hAm.js";import{t as o}from"./compiler-runtime-BfE3aGVn.js";import{t as s}from"./triangle-alert-DNmGlBDf.js";import{t as c}from"./lazy-with-preload-vnGlTC0I.js";import{n as l,r as u,t as d}from"./alert-B7oZeWZd.js";import{r as f}from"./settings-host-gates-D6Q-lrmL.js";import{n as p}from"./settings-fields-BxgwZmIp.js";import{t as m}from"./SettingsSectionHeader-2IUjvHgB.js";var h=o(),g=e(r(),1),_=n();function v(e){return(0,g.lazy)(async()=>({default:await e()}))}var y=v(async()=>(await t(async()=>{let{AboutSection:e}=await import(`./AboutSection-CY0aFaPP.js`);return{AboutSection:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]),import.meta.url)).AboutSection),b=v(async()=>(await t(async()=>{let{SharingSection:e}=await import(`./SharingSection-DPJQEB4U.js`);return{SharingSection:e}},__vite__mapDeps([32,1,2,3,4,33,6,7,8,34,35,13,14,9,10,11,36,37,26,27,28,29,38,16,25,15,30,23,31,22,39,40,41]),import.meta.url)).SharingSection),x=v(async()=>(await t(async()=>{let{AccountSection:e}=await import(`./AccountSection-OhGXTG8W.js`);return{AccountSection:e}},__vite__mapDeps([42,1,2,3,4,5,6,7,8,9,10,11,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,41,59,19,60,36,61,62,63,64,65,66,67,68,69,27,28,14,34,29,70,26,13,16,71,72,73,74,15,75,76,77,17,78,79,20,80,81,82,30,23,22,83,84,21,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,31,25,39,102,40]),import.meta.url)).AccountSection),S=v(async()=>(await t(async()=>{let{AgentConnectionsSection:e}=await import(`./AgentConnectionsSection-BK8iVfX2.js`);return{AgentConnectionsSection:e}},__vite__mapDeps([103,1,60,2,3,4,12,6,7,8,13,14,9,10,11,104,16,15,105,106,107,48,49,50,51,52,53,54,55,56,57,58,41,82,71,17,108,20,109,110,111,84,29,70,22,23,112,113,5,26,27,28,114,38,115,116,21,117,118,119,120,121,34,35,75,47,122,123,124,30,83,125,126,127,128,129,130,131,132,133,25,31,134,101,135,136]),import.meta.url)).AgentConnectionsSection),C=v(async()=>(await t(async()=>{let{AttachmentsSection:e}=await import(`./AttachmentsSection-z_Rd8AEq.js`);return{AttachmentsSection:e}},__vite__mapDeps([137,1,44,45,46,47,4,9,3,48,49,50,51,52,53,54,55,56,57,58,41,59,19,60,36,8,61,62,63,64,65,66,2,67,68,138,69,27,28,6,7,14,34,29,70,26,10,11,13,16,71,72,12,139,35,23,140,141,33,115,142,143,98,20,144,5,22,83,84,21,125,126,101,39,145,90,146,25,15,30,31,147]),import.meta.url)).AttachmentsSection),w=v(async()=>(await t(async()=>{let{ContentRulesSection:e}=await import(`./ContentRulesSection-BOcWSOyx.js`);return{ContentRulesSection:e}},__vite__mapDeps([148,44,1,45,46,47,4,9,3,48,49,50,51,52,53,54,55,56,57,58,41,59,19,60,36,8,61,62,63,64,65,66,2,67,68,69,27,28,6,7,14,34,29,70,26,10,11,13,16,71,72,5,12,149,150,151,152,153,25,15,30,23,31,90]),import.meta.url)).ContentRulesSection),T=v(async()=>(await t(async()=>{let{SectionSkeleton:e}=await import(`./field-controls-BCV9U3so.js`);return{SectionSkeleton:e}},__vite__mapDeps([154,138,1,2,3,4,45,69,27,28,6,7,8,14,34,29,70,26,9,10,11,13,16,71,72,12,139,35,23,140,141,33,115,65,47,142,143,98,20,144,5,36,48,49,50,51,52,53,54,55,56,57,58,41,22,83,84,21,125,126,101,39,145,59,19,60,61,64,66,67,68,90,146]),import.meta.url)).SectionSkeleton),E=v(async()=>(await t(async()=>{let{HotkeysSection:e}=await import(`./HotkeysSection-BP1rNtbg.js`);return{HotkeysSection:e}},__vite__mapDeps([155,2,1,3,4,9,25,26,27,28,6,7,8,14,29,10,11,15,16,30,23,31,156,157,95,96,97]),import.meta.url)).HotkeysSection),D=v(async()=>(await t(async()=>{let{IntegrationsSection:e}=await import(`./IntegrationsSection-CqgI7U2u.js`);return{IntegrationsSection:e}},__vite__mapDeps([158,1,2,3,4,159,16,160,161,100,162,17,9,10,11,36,8,22,7,23,83,84,6,29,70,21,31,25,26,27,28,14,15,30]),import.meta.url)).IntegrationsSection),O=v(async()=>(await t(async()=>{let{LinkPreviewsSection:e}=await import(`./LinkPreviewsSection-DMStNFgD.js`);return{LinkPreviewsSection:e}},__vite__mapDeps([163,1,44,45,46,47,4,9,3,48,49,50,51,52,53,54,55,56,57,58,41,59,19,60,36,8,61,62,63,64,65,66,2,67,68,12,6,7,13,14,10,11,25,26,27,28,29,15,16,30,23,31,22,83,84,70,21,90]),import.meta.url)).LinkPreviewsSection),k=v(async()=>(await t(async()=>{let{MarkdownlintPluginSection:e}=await import(`./LintingSection-BF9mnl0V.js`);return{MarkdownlintPluginSection:e}},__vite__mapDeps([164,1,165,19,166,167,97,168,169,170,171,172,173,174,175,176,28,44,45,46,47,4,9,3,48,49,50,51,52,53,54,55,56,57,58,41,59,60,36,8,61,62,63,64,65,66,2,67,68,96,150,151,177,178,179,152,16,180,98,181,182,183,184,185,186,187,31,92,188,189,132,111,6,7,84,29,70,22,23,11,10,5,12,13,14,190,191,192,69,27,34,26,71,72,73,193,131,194,195,196,74,197,160,198,20,83,21,199,200,75,140,161,100,162,201,76,202,203,38,17,113,204,205,142,108,116,206,207,208,88,89,90,209,210,211,30,101,157,85,86,39,212,213,214,95,215,93,216,217,128,218,130,136,123,219,149,153,15,220,77,221,222,80,223,112,224,119,120,121,35,114,117,118,106,122,124,225,226,227,228,229,25,230,143,125,126,231,232,233,234,235,94]),import.meta.url)).MarkdownlintPluginSection),A=v(async()=>(await t(async()=>{let{ProjectPluginsManageSection:e}=await import(`./LintingSection-BF9mnl0V.js`);return{ProjectPluginsManageSection:e}},__vite__mapDeps([164,1,165,19,166,167,97,168,169,170,171,172,173,174,175,176,28,44,45,46,47,4,9,3,48,49,50,51,52,53,54,55,56,57,58,41,59,60,36,8,61,62,63,64,65,66,2,67,68,96,150,151,177,178,179,152,16,180,98,181,182,183,184,185,186,187,31,92,188,189,132,111,6,7,84,29,70,22,23,11,10,5,12,13,14,190,191,192,69,27,34,26,71,72,73,193,131,194,195,196,74,197,160,198,20,83,21,199,200,75,140,161,100,162,201,76,202,203,38,17,113,204,205,142,108,116,206,207,208,88,89,90,209,210,211,30,101,157,85,86,39,212,213,214,95,215,93,216,217,128,218,130,136,123,219,149,153,15,220,77,221,222,80,223,112,224,119,120,121,35,114,117,118,106,122,124,225,226,227,228,229,25,230,143,125,126,231,232,233,234,235,94]),import.meta.url)).ProjectPluginsManageSection),j=v(async()=>(await t(async()=>{let{UserPluginsManageSection:e}=await import(`./LintingSection-BF9mnl0V.js`);return{UserPluginsManageSection:e}},__vite__mapDeps([164,1,165,19,166,167,97,168,169,170,171,172,173,174,175,176,28,44,45,46,47,4,9,3,48,49,50,51,52,53,54,55,56,57,58,41,59,60,36,8,61,62,63,64,65,66,2,67,68,96,150,151,177,178,179,152,16,180,98,181,182,183,184,185,186,187,31,92,188,189,132,111,6,7,84,29,70,22,23,11,10,5,12,13,14,190,191,192,69,27,34,26,71,72,73,193,131,194,195,196,74,197,160,198,20,83,21,199,200,75,140,161,100,162,201,76,202,203,38,17,113,204,205,142,108,116,206,207,208,88,89,90,209,210,211,30,101,157,85,86,39,212,213,214,95,215,93,216,217,128,218,130,136,123,219,149,153,15,220,77,221,222,80,223,112,224,119,120,121,35,114,117,118,106,122,124,225,226,227,228,229,25,230,143,125,126,231,232,233,234,235,94]),import.meta.url)).UserPluginsManageSection),M=v(async()=>(await t(async()=>{let{NetworkAccessSection:e}=await import(`./NetworkAccessSection-OZU6AI-D.js`);return{NetworkAccessSection:e}},__vite__mapDeps([236,1,44,45,46,47,4,9,3,48,49,50,51,52,53,54,55,56,57,58,41,59,19,60,36,8,61,62,63,64,65,66,2,67,68,111,6,7,84,29,70,22,23,11,10,5,33,34,35,13,14,12,25,26,27,28,15,16,30,31,101,40,237,90,146]),import.meta.url)).NetworkAccessSection),N=v(async()=>(await t(async()=>{let{OkignoreSection:e}=await import(`./OkignoreSection-DM6w7SmV.js`);return{OkignoreSection:e}},__vite__mapDeps([238,1,239,8,4,2,3,26,27,28,6,7,14,29,9,10,11,71,16,240,20,21,36,208,60,182,183,53,52,184,68,55,187,88,89,49,90,41,188,209,210,199,200,56,25,15,30,23,31,241,22,101,39,147,242]),import.meta.url)).OkignoreSection),P=v(async()=>(await t(async()=>{let{ProjectTemplatesSection:e}=await import(`./ProjectTemplatesSection-UXsBnF5A.js`);return{ProjectTemplatesSection:e}},__vite__mapDeps([243,1,2,3,4,142,16,9,244,60,111,6,7,8,84,29,70,22,23,11,10,119,120,121,27,28,14,34,35,71,75,245,98,21,36,48,49,50,51,52,53,54,55,56,57,58,41,222,17,83,125,5,126,101,145,88,89,90,246,209,25,26,15,30,31,39,234,92,94,95,96,97]),import.meta.url)).ProjectTemplatesSection),F=v(async()=>(await t(async()=>{let{SearchSection:e}=await import(`./SearchSection-ZCM9SGj0.js`);return{SearchSection:e}},__vite__mapDeps([247,1,44,45,46,47,4,9,3,48,49,50,51,52,53,54,55,56,57,58,41,59,19,60,36,8,61,62,63,64,65,66,2,67,68,73,6,7,12,13,14,10,11,75,16,248,88,89,90,25,26,27,28,29,15,30,23,31,22,83,84,70,21,125,5,126,101,146]),import.meta.url)).SearchSection),I=v(async()=>(await t(async()=>{let{SkillsManagerSection:e}=await import(`./SkillsManagerSection-DvXQM6m3.js`);return{SkillsManagerSection:e}},__vite__mapDeps([249,1,2,3,4,111,6,7,8,84,29,70,9,22,23,11,10,16,160,119,120,121,27,28,14,34,35,71,75,100,98,36,117,26,114,116,118,47,106,122,123,124,58,41,225,25,15,30,31,83,21,101,39,229,60,48,49,50,51,52,53,54,55,56,57,88,89,90,209,218,228,215,234,92,199,200,217,128,127]),import.meta.url)).SkillsManagerSection),L=v(async()=>(await t(async()=>{let{SlidesPluginSection:e}=await import(`./SlidesPluginSection-DIUKOMCd.js`);return{SlidesPluginSection:e}},__vite__mapDeps([250,1,2,3,4,15,16,79,9,207,26,27,28,6,7,8,14,29,10,11,71,100,22,23,81,82,50,49,51,52,25,30,31,251,101,145,94,95,96,97]),import.meta.url)).SlidesPluginSection),R=v(async()=>(await t(async()=>{let{SyncSection:e}=await import(`./SyncSection-RxxCFzl8.js`);return{SyncSection:e}},__vite__mapDeps([252,1,44,45,46,47,4,9,3,48,49,50,51,52,53,54,55,56,57,58,41,59,19,60,36,8,61,62,63,64,65,66,2,67,68,69,27,28,6,7,14,34,29,70,26,10,11,13,16,71,72,73,139,35,23,43,74,15,75,76,77,17,78,79,20,80,81,82,30,22,83,84,21,85,86,87,88,89,90,91,92,93,94,95,96,97,99,100,101,31,253,5,33,190,166,167,168,169,170,171,172,173,174,175,176,165,150,151,177,178,179,152,180,98,181,182,183,184,185,186,187,188,189,132,191,192,12,193,131,194,195,196,197,160,198,199,200,140,161,162,201,202,203,38,113,204,205,142,108,116,206,207,208,209,210,211,157,39,212,213,214,215,216,217,128,218,130,136,123,219,125,126,145,254,25]),import.meta.url)).SyncSection),z=v(async()=>(await t(async()=>{let{TerminalSection:e}=await import(`./TerminalSection-DldAZvhF.js`);return{TerminalSection:e}},__vite__mapDeps([255,1,44,45,46,47,4,9,3,48,49,50,51,52,53,54,55,56,57,58,41,59,19,60,36,8,61,62,63,64,65,66,2,67,68,12,6,7,13,14,10,11,25,26,27,28,29,15,16,30,23,31,256,90,40]),import.meta.url)).TerminalSection),B=v(async()=>(await t(async()=>{let{ThemePluginSection:e}=await import(`./ThemePluginSection-nI1GgdHf.js`);return{ThemePluginSection:e}},__vite__mapDeps([257,1,2,3,4,5,6,7,8,9,10,11,15,16,47,36,48,49,50,51,52,53,54,55,56,57,58,41,258,144,138,45,69,27,28,14,34,29,70,26,13,71,72,12,139,35,23,140,141,33,115,65,142,143,98,20,22,83,84,21,125,126,101,39,145,59,19,60,61,64,66,67,68,90,146,25,30,31,147,242,259]),import.meta.url)).ThemePluginSection),V=v(async()=>{let{LINT_PLUGIN_UI:e}=await t(async()=>{let{LINT_PLUGIN_UI:e}=await import(`./lint-plugins-Bvweiwi9.js`);return{LINT_PLUGIN_UI:e}},__vite__mapDeps([260,220,16,1,4,164,165,19,166,167,97,168,169,170,171,172,173,174,175,176,28,44,45,46,47,9,3,48,49,50,51,52,53,54,55,56,57,58,41,59,60,36,8,61,62,63,64,65,66,2,67,68,96,150,151,177,178,179,152,180,98,181,182,183,184,185,186,187,31,92,188,189,132,111,6,7,84,29,70,22,23,11,10,5,12,13,14,190,191,192,69,27,34,26,71,72,73,193,131,194,195,196,74,197,160,198,20,83,21,199,200,75,140,161,100,162,201,76,202,203,38,17,113,204,205,142,108,116,206,207,208,88,89,90,209,210,211,30,101,157,85,86,39,212,213,214,95,215,93,216,217,128,218,130,136,123,219,149,153,15,77,221,222,80,223,112,224,119,120,121,35,114,117,118,106,122,124,225,226,227,228,229,25,230,143,125,126,231,232,233,234,235,94]),import.meta.url);return function({id:t}){let n=e.find(e=>e.id===t);if(!n)return null;let r=n.Section;return(0,_.jsx)(r,{})}}),H=c(async()=>{let[{BoundSchemaSection:e},{OkCliPathRow:n},{SpellingSettings:r}]=await Promise.all([t(()=>import(`./schema-section-q8gLZzk5.js`),__vite__mapDeps([258,1,2,3,4,144,7,5,6,8,9,10,11,36,138,45,69,27,28,14,34,29,70,26,13,16,71,72,12,139,35,23,140,141,33,115,65,47,142,143,98,20,48,49,50,51,52,53,54,55,56,57,58,41,22,83,84,21,125,126,101,39,145,59,19,60,61,64,66,67,68,90,146,25,15,30,31,147,242]),import.meta.url),t(()=>import(`./OkCliPathRow-WU7DzKHc.js`),__vite__mapDeps([261,1,2,3,4,112,6,7,8,13,14,71,16,113,9,10,11,5,26,27,28,29,38,36,22,23,40,41]),import.meta.url),t(()=>import(`./SpellingSettings-BrfpyGGQ.js`),__vite__mapDeps([262,1,28,27,6,7,4,8,3,14,60,2,12,13,9,10,11,26,29,71,16,143,21,36,181,138,45,69,34,70,72,139,35,23,140,141,33,115,65,47,142,98,20,144,5,48,49,50,51,52,53,54,55,56,57,58,41,22,83,84,125,126,101,39,145,59,19,61,64,66,67,68,90,146,156]),import.meta.url)]);return{default:function({title:t,description:i,binding:a}){return(0,_.jsx)(e,{title:t,description:i,scope:`user`,scopeBadge:`user`,binding:a,fields:p,slotsAfter:{"appearance.theme":(0,_.jsx)(n,{}),"appearance.language":(0,_.jsx)(r,{})}})}}}),U=H.preload;function W(e){let t=(0,h.c)(4),{loadFailed:n}=e;if(!n){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(T,{}),t[0]=e):e=t[0],e}let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,_.jsx)(s,{"aria-hidden":`true`}),t[1]=r):r=t[1];let a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,_.jsx)(u,{children:(0,_.jsx)(i,{id:`PXg8xK`})}),t[2]=a):a=t[2];let o;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,_.jsxs)(d,{"data-testid":`settings-user-config-unavailable`,children:[r,a,(0,_.jsx)(l,{children:(0,_.jsx)(i,{id:`rFbQzX`})})]}),t[3]=o):o=t[3],o}function G(e){let t=(0,h.c)(37),{activeId:n,userBinding:r,userLoadFailed:o,okignoreBinding:s,okignoreSynced:c,markdownlintRuleQuery:l}=e,u=o===void 0?!1:o,{_:d}=a();if(n===`preferences`){let e;return t[0]!==d||t[1]!==r||t[2]!==u?(e=r?(0,_.jsx)(H,{title:d({id:`Q6hhn8`}),description:d({id:`Y_kL7X`}),binding:r}):(0,_.jsx)(W,{loadFailed:u}),t[0]=d,t[1]=r,t[2]=u,t[3]=e):e=t[3],e}if(n===`project-preferences`){let e;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(i,{id:`Q6hhn8`}),t[4]=e):e=t[4];let n;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,_.jsxs)(`section`,{"aria-labelledby":`settings-project-preferences-title`,className:`space-y-8`,"data-testid":`settings-project-preferences`,children:[(0,_.jsx)(m,{titleId:`settings-project-preferences-title`,title:e,scope:`project`,children:(0,_.jsx)(i,{id:`FKVmcC`})}),(0,_.jsx)(C,{}),(0,_.jsx)(w,{}),f()?(0,_.jsx)(z,{}):null]}),t[5]=n):n=t[5],n}if(n===`agent-connections`){let e;return t[6]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(S,{}),t[6]=e):e=t[6],e}if(n===`hotkeys`){let e;return t[7]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(E,{}),t[7]=e):e=t[7],e}if(n===`account`){let e;return t[8]!==r||t[9]!==u?(e=r?(0,_.jsx)(x,{userBinding:r}):(0,_.jsx)(W,{loadFailed:u}),t[8]=r,t[9]=u,t[10]=e):e=t[10],e}if(n===`sync`){let e;return t[11]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsxs)(`section`,{"aria-labelledby":`settings-sync-sharing-title`,className:`space-y-8`,"data-testid":`settings-sync-sharing`,children:[(0,_.jsx)(m,{titleId:`settings-sync-sharing-title`,title:(0,_.jsx)(i,{id:`AznQ2V`}),children:(0,_.jsx)(i,{id:`HADdBA`})}),(0,_.jsx)(R,{}),(0,_.jsx)(b,{})]}),t[11]=e):e=t[11],e}if(n===`search`){let e;return t[12]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(F,{}),t[12]=e):e=t[12],e}if(n===`link-previews`){let e;return t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(O,{}),t[13]=e):e=t[13],e}if(n===`plugins-manage`){let e;return t[14]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(A,{}),t[14]=e):e=t[14],e}if(n===`user-plugins-manage`){let e;return t[15]===r?e=t[16]:(e=(0,_.jsx)(j,{userBinding:r}),t[15]=r,t[16]=e),e}if(n===`plugin:theme`){let e;return t[17]!==r||t[18]!==u?(e=r?(0,_.jsx)(B,{userBinding:r}):(0,_.jsx)(W,{loadFailed:u}),t[17]=r,t[18]=u,t[19]=e):e=t[19],e}if(n===`plugin:slides`){let e;return t[20]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(L,{}),t[20]=e):e=t[20],e}if(n===`plugin:markdownlint`){let e=l??null,n;return t[21]===e?n=t[22]:(n=(0,_.jsx)(k,{initialRuleQuery:e}),t[21]=e,t[22]=n),n}if(n.startsWith(`plugin:`)){let e;t[23]===n?e=t[24]:(e=n.slice(7),t[23]=n,t[24]=e);let r;return t[25]!==n||t[26]!==e?(r=(0,_.jsx)(V,{id:e},n),t[25]=n,t[26]=e,t[27]=r):r=t[27],r}if(n===`project-templates`){let e;return t[28]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(P,{}),t[28]=e):e=t[28],e}if(n===`skills`){let e;return t[29]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(I,{scope:`project`}),t[29]=e):e=t[29],e}if(n===`user-skills`){let e;return t[30]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(I,{scope:`global`}),t[30]=e):e=t[30],e}if(n===`okignore`){let e;return t[31]!==s||t[32]!==c?(e=(0,_.jsx)(N,{binding:s,synced:c}),t[31]=s,t[32]=c,t[33]=e):e=t[33],e}if(n===`network-access`){let e;return t[34]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(M,{}),t[34]=e):e=t[34],e}if(n===`claude-desktop`){let e;return t[35]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(D,{}),t[35]=e):e=t[35],e}if(n===`about`){let e;return t[36]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(y,{}),t[36]=e):e=t[36],e}return null}export{G as SettingsDialogBody,U as preloadPreferencesSection};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./AboutSection-CY0aFaPP.js","./chunk-CYidjpOJ.js","./dist-Nvb76hAm.js","./jsx-runtime-BUgB2tll.js","./react-f2sANaYj.js","./label-CvMpFFbN.js","./dist-DTFuvKje.js","./dist-CSCUSbQc.js","./react-dom-DPxgxlDT.js","./compiler-runtime-BfE3aGVn.js","./utils-CPqDy6Hr.js","./bundle-mjs-SHeFpKGC.js","./switch-BKZTXkzu.js","./dist-DBXmXNZF.js","./dist-CRjqnzU7.js","./arrow-up-right-BuM5_PNk.js","./createLucideIcon-CB3nKwwz.js","./spinner-x1_HPy7D.js","./V1UpgradeNotice-CWOsK_ZX.js","./preload-helper-Chd9yIcd.js","./triangle-alert-DNmGlBDf.js","./x-hoz52v9J.js","./button-DzgjsZzC.js","./dist-BsJYDohW.js","./v1-upgrade-store-DKiS99ih.js","./SettingsSectionHeader-2IUjvHgB.js","./tooltip-BjuCvy5N.js","./dist-DXjgFhPl2.js","./floating-ui.dom-BYl7JZd0.js","./dist-CxbWbOvU.js","./badge-Ds1xg06u.js","./external-link-BgXpGqMz.js","./SharingSection-DPJQEB4U.js","./radio-group-G1GR05Rb.js","./dist-uiDX6Nr9.js","./dist-BKgU0kag.js","./dist-Bs8bPT30.js","./ConfigSharingInfoTooltip-aZjSCTHB.js","./info-BtVOX9do.js","./skeleton-CjpLzvC2.js","./channel-cli-copy-CSauaW4H.js","./constants-product-DTeqlnBa.js","./AccountSection-CWEVZ7pB.js","./SyncStatusBadge-GBSSUnTL.js","./config-provider-CX3e9KjB.js","./trace-api-D3teyEWp.js","./status-BKf6n_rI.js","./dist-PQ5KMVDh.js","./schemas-api-C0HskKob.js","./schemas-DN_HD0k4.js","./_envelope-DuFpUEag-DIV0rnvM.js","./share-D-LUU2aX-iU4CJWyG.js","./util-doc-name-ICsmfVCh.js","./constants-cc1-DSBEUyZb.js","./constants-github-CG_3Vnhk.js","./doc-extensions-CcO7K8uD-BsCiKh3N.js","./logging-renderer-log-BxHgdJfM.js","./skill-targets-schema-CqL94mYR.js","./constants-editors-IUfUQiPg.js","./use-apply-config-language-CsSqJtcT.js","./dist-XgwTV-oh2.js","./messages-C2qGgazi.js","./client-version-B9WTb77m.js","./css-color-to-hex-DOpQ8lDF.js","./use-apply-config-color-theme-DjHYsCxl.js","./use-apply-config-theme-DDZzWhZD.js","./config-context-DmzX_4s_.js","./saved-themes-client-DW8Bg2_g.js","./constants-upload-kkBkFBty.js","./select-BuIwBy1a.js","./es2015-Dtr4fzLT.js","./check-DY-dMFs2.js","./chevron-down-eCPqD6WM.js","./collapsible-BKbszYZV.js","./arrow-up-VsvqTAMX.js","./chevron-right-D04ny0op.js","./settings-2-CPJ2efEY.js","./git-merge-hyTwvob4.js","./refresh-cw-oswk3nky.js","./terminal-Bm6gwhFk.js","./DisclosureWarning-YLWn31cu.js","./terminal-command-events-Aq8I_fAw.js","./handoff-rTg39zAU.js","./dialog-C_xJSQj5.js","./electron-drag-strip-D9GZhMg_.js","./popover-DRwB9TYJ.js","./dist-Cj3Bpren.js","./use-conflicts-Bh2awOW1.js","./documents-events-DD7-XBOS.js","./schemas-cc1-tjl2gPeT.js","./config-errors-BXj4CTPy.js","./use-git-sync-status-BupWCxHX.js","./doc-hash-BGIO8NA0.js","./reveal-editor-DH65Bioi.js","./use-settings-route-Bv3gbPs-.js","./keyboard-shortcuts-BqVfFaC6.js","./dist-CdgIFD0J.js","./w3c-keyname-DElaZB74.js","./trash-2-DII6GTkE.js","./AuthModal-CYGu_t54.js","./copy-BdJxtD8X.js","./input-ChLhhLqr.js","./auth-state-cache-FCU2oLOa.js","./AgentConnectionsSection-lzUCmXzJ.js","./useQuery-ZeEDLtxh.js","./RegisteredAgentIcon-BLJHBvCe.js","./cursor-D4CapP83.js","./agent-registry-0mqN6WP3.js","./search-BejzIwN4.js","./TerminalLaunchContext-DWEUWxkF.js","./agent-connections-B8bi5P2u.js","./alert-dialog-Mwvu63aS.js","./checkbox-sDYEOsNL.js","./minus-CoovtLmg.js","./folder-bQZMXu-W.js","./monitor-CgZek04W.js","./sparkles-DNbwGwtt.js","./AgentIconCluster-DBRL0S-J.js","./OpenInAgentMenuItem-NYARRegn.js","./dropdown-menu-CKxMZXce.js","./dist-C0nuYMFu.js","./dist-d2WYntJB.js","./copilot-CArBqDJb.js","./utils-random-uuid-CZ2BgcSX.js","./mascot-outline-CtS592mc.js","./field-Y3sjmgnw.js","./separator-D7s_9ZwH.js","./tool-list-format-BF3gA5iW.js","./constants-skills-CIijCHaN.js","./bool-pref-BC0eWf6R.js","./storage-scope-C4iKsRB3.js","./bridge-C8V1oYmB.js","./structural-freshness-CGhYCLVL-BrI36Iuq.js","./terminal-cli-display-C7V3aJhC.js","./settings-section-labels-D_MVAZfI.js","./catalog-9jwfk-6h.js","./use-workspace-DtmPnC8Q.js","./AttachmentsSection-BGMrBJ3W.js","./field-controls-C38JfTQ8.js","./toggle-group-aEGkM0EG.js","./circle-alert-Bzl1eeiU.js","./ThemePicker-Dd6kqm7g.js","./plus-DyJkO9Yb.js","./rotate-ccw-AjwOre17.js","./form-CeX56mla.js","./textarea-D9PjrPjk.js","./config-schema-DYFhQn3Z.js","./config-validation-events-BbfLpWd9.js","./ContentRulesSection-DDmlnPre.js","./markdown-lint-C_6WZKjR.js","./lib-BJEFuEwC.js","./ccount-Bd_1xJAg.js","./syntax-DcTWJ_S_.js","./markdownit-DSCc3e8P.js","./field-controls-BCV9U3so.js","./HotkeysSection-BP1rNtbg.js","./settings-host-gates-D6Q-lrmL.js","./kbd-Cg1nrB7U.js","./IntegrationsSection-CqgI7U2u.js","./InstallInClaudeDesktopDialog-BJiDcyas.js","./arrow-right-9zZjHMAu.js","./circle-check-CNrZDx3v.js","./download-cNyCwGxf.js","./LinkPreviewsSection-Cjtxnsji.js","./LintingSection-DR8jISYs.js","./CodeMirrorPropInput-DRqfG7N4.js","./dist-BMmhsNLt.js","./dist-DDahyGUu.js","./dist-B8TQy9xi.js","./dist-B_eHJbaz.js","./dist-C8DjhI_T.js","./dist-ZVfp923o.js","./dist-DLoZ_P3d.js","./dist-lr1rqCPs.js","./dist-C5nHW8_Q2.js","./dist-K24i7e9d.js","./stex-C1y00cKF.js","./lib-BdqIoeMy.js","./space-separated-tokens-CejTWgsn.js","./trim-lines-BTVRWUIT.js","./folder-open-DoR6VDtv.js","./with-selector-zVo3Fruj.js","./navigation-targets-DmcvbdXU.js","./file-tree-utils-D2Pu3gTD.js","./doc-paths-DEsdzFI4.js","./cm-theme-0t8b_a5N.js","./desktop-bridge-BP9UHO45.js","./page-list-cache-DWEng1Sw.js","./documents-fetch-CAoh8zGg.js","./note-window-mode-DK36peY8.js","./DocumentContext-CpIPRs5a.js","./propagation-api-L58pgj3j.js","./context-api-Ccav3azS.js","./lib-DvBPuJe0.js","./lib-COZ1ck7F.js","./lib-sz3BTiOu.js","./git-branch-EQxRRYB4.js","./Mermaid-CnbT83v8.js","./use-app-color-mode-vBLU_rER.js","./perf-CCuuR_Xb.js","./diagnostic-breadcrumb-SSTr0wqA.js","./ime-composition-BM625UOt.js","./prop-types-DIQK3GLv.js","./hash-CI6N380e.js","./local-menu-action-bus-BRwk7KU_.js","./paperclip-CvuJcETP.js","./react-error-boundary-6ac6QM6R.js","./CopyButton-DPqQBOBe.js","./PageListContext-B9JJJqir.js","./parse-api-error-B-hICRsf.js","./startup-marks-Bg1k_Pfs.js","./file-tree-rename-validation-Dqgj7_Ab.js","./use-collab-url-VmULqFZe.js","./api-config-DkLRTYct.js","./excalidraw-scene-CDaSGrMg.js","./known-skill-dirs-zrXV8hey.js","./single-file-mode-BbPcZtOI.js","./skill-scope-BRYeXgDz.js","./skills-api-DRAfwDth.js","./DocumentContext-B0sQn39F.css","./lint-plugin-meta-DSTN5LP6.js","./square-pen-Dr2IoFig.js","./DeleteConfirmationDialog-Bsx5ZlsH.js","./SkillPluginBundleDialog-C1zoly4g.js","./SkillInstallMenu-CTOEoaFJ.js","./ChangedOutsideBadge-QO3QYBpf.js","./context-menu-IR3hteiG.js","./dist-BzicVdNV.js","./use-skills-Cixo0YAs.js","./use-skill-targets-B-YS_fjU.js","./markdownlint-rule-browser-CFvqABQW.js","./tag-pill-input-B4zcXpTw.js","./lint-config-client-MPuLlXpZ.js","./use-open-skill-By8vpD7A.js","./open-managed-artifact-tab-DGz2Od36.js","./schema-fields-view-intent-CtpdW0oB.js","./NetworkAccessSection-60v06CZ5.js","./restart-collab-server-DQXHLezq.js","./OkignoreSection-DM6w7SmV.js","./sortable.esm-Ca4B7-y_.js","./grip-vertical-DVSm0qk2.js","./config-ignore-nested-error-events-CdP-xKB6.js","./save-held-message-C87AhHaj.js","./ProjectTemplatesSection-UXsBnF5A.js","./TemplateRow-CDzqjDcu.js","./file-plus-BHzi5G4b.js","./folder-config-api-Cow37a-H.js","./SearchSection-I05VM72v.js","./use-semantic-search-status-B-mw_J5v.js","./SkillsManagerSection-DvXQM6m3.js","./SlidesPluginSection-DIUKOMCd.js","./input-group-B9P3q8W3.js","./SyncSection-CR83qwRV.js","./PublishToGitHubDialog-C1_s9SF9.js","./clipboard-adapter-BSMTjxp1.js","./TerminalSection-jQMiN2NM.js","./use-terminal-enabled-BqfjZ8mE.js","./ThemePluginSection-nI1GgdHf.js","./schema-section-q8gLZzk5.js","./settings-fields-BxgwZmIp.js","./lint-plugins-BhTcQnAm.js","./OkCliPathRow-WU7DzKHc.js","./SpellingSettings-BrfpyGGQ.js"])))=>i.map(i=>d[i]);
2
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./preload-helper-Chd9yIcd.js";import{t as n}from"./jsx-runtime-BUgB2tll.js";import{t as r}from"./react-f2sANaYj.js";import{n as i,r as a}from"./dist-Nvb76hAm.js";import{t as o}from"./compiler-runtime-BfE3aGVn.js";import{t as s}from"./triangle-alert-DNmGlBDf.js";import{t as c}from"./lazy-with-preload-vnGlTC0I.js";import{n as l,r as u,t as d}from"./alert-B7oZeWZd.js";import{r as f}from"./settings-host-gates-D6Q-lrmL.js";import{n as p}from"./settings-fields-BxgwZmIp.js";import{t as m}from"./SettingsSectionHeader-2IUjvHgB.js";var h=o(),g=e(r(),1),_=n();function v(e){return(0,g.lazy)(async()=>({default:await e()}))}var y=v(async()=>(await t(async()=>{let{AboutSection:e}=await import(`./AboutSection-CY0aFaPP.js`);return{AboutSection:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]),import.meta.url)).AboutSection),b=v(async()=>(await t(async()=>{let{SharingSection:e}=await import(`./SharingSection-DPJQEB4U.js`);return{SharingSection:e}},__vite__mapDeps([32,1,2,3,4,33,6,7,8,34,35,13,14,9,10,11,36,37,26,27,28,29,38,16,25,15,30,23,31,22,39,40,41]),import.meta.url)).SharingSection),x=v(async()=>(await t(async()=>{let{AccountSection:e}=await import(`./AccountSection-CWEVZ7pB.js`);return{AccountSection:e}},__vite__mapDeps([42,1,2,3,4,5,6,7,8,9,10,11,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,41,59,19,60,36,61,62,63,64,65,66,67,68,69,27,28,14,34,29,70,26,13,16,71,72,73,74,15,75,76,77,17,78,79,20,80,81,82,30,23,22,83,84,21,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,31,25,39,102,40]),import.meta.url)).AccountSection),S=v(async()=>(await t(async()=>{let{AgentConnectionsSection:e}=await import(`./AgentConnectionsSection-lzUCmXzJ.js`);return{AgentConnectionsSection:e}},__vite__mapDeps([103,1,60,2,3,4,12,6,7,8,13,14,9,10,11,104,16,15,105,106,107,48,49,50,51,52,53,54,55,56,57,58,41,82,71,17,108,20,109,110,111,84,29,70,22,23,112,113,5,26,27,28,114,38,115,116,21,117,118,119,120,121,34,35,75,47,122,123,124,30,83,125,126,127,128,129,130,131,132,133,25,31,134,101,135,136]),import.meta.url)).AgentConnectionsSection),C=v(async()=>(await t(async()=>{let{AttachmentsSection:e}=await import(`./AttachmentsSection-BGMrBJ3W.js`);return{AttachmentsSection:e}},__vite__mapDeps([137,1,44,45,46,47,4,9,3,48,49,50,51,52,53,54,55,56,57,58,41,59,19,60,36,8,61,62,63,64,65,66,2,67,68,138,69,27,28,6,7,14,34,29,70,26,10,11,13,16,71,72,12,139,35,23,140,141,33,115,142,143,98,20,144,5,22,83,84,21,125,126,101,39,145,90,146,25,15,30,31,147]),import.meta.url)).AttachmentsSection),w=v(async()=>(await t(async()=>{let{ContentRulesSection:e}=await import(`./ContentRulesSection-DDmlnPre.js`);return{ContentRulesSection:e}},__vite__mapDeps([148,44,1,45,46,47,4,9,3,48,49,50,51,52,53,54,55,56,57,58,41,59,19,60,36,8,61,62,63,64,65,66,2,67,68,69,27,28,6,7,14,34,29,70,26,10,11,13,16,71,72,5,12,149,150,151,152,153,25,15,30,23,31,90]),import.meta.url)).ContentRulesSection),T=v(async()=>(await t(async()=>{let{SectionSkeleton:e}=await import(`./field-controls-BCV9U3so.js`);return{SectionSkeleton:e}},__vite__mapDeps([154,138,1,2,3,4,45,69,27,28,6,7,8,14,34,29,70,26,9,10,11,13,16,71,72,12,139,35,23,140,141,33,115,65,47,142,143,98,20,144,5,36,48,49,50,51,52,53,54,55,56,57,58,41,22,83,84,21,125,126,101,39,145,59,19,60,61,64,66,67,68,90,146]),import.meta.url)).SectionSkeleton),E=v(async()=>(await t(async()=>{let{HotkeysSection:e}=await import(`./HotkeysSection-BP1rNtbg.js`);return{HotkeysSection:e}},__vite__mapDeps([155,2,1,3,4,9,25,26,27,28,6,7,8,14,29,10,11,15,16,30,23,31,156,157,95,96,97]),import.meta.url)).HotkeysSection),D=v(async()=>(await t(async()=>{let{IntegrationsSection:e}=await import(`./IntegrationsSection-CqgI7U2u.js`);return{IntegrationsSection:e}},__vite__mapDeps([158,1,2,3,4,159,16,160,161,100,162,17,9,10,11,36,8,22,7,23,83,84,6,29,70,21,31,25,26,27,28,14,15,30]),import.meta.url)).IntegrationsSection),O=v(async()=>(await t(async()=>{let{LinkPreviewsSection:e}=await import(`./LinkPreviewsSection-Cjtxnsji.js`);return{LinkPreviewsSection:e}},__vite__mapDeps([163,1,44,45,46,47,4,9,3,48,49,50,51,52,53,54,55,56,57,58,41,59,19,60,36,8,61,62,63,64,65,66,2,67,68,12,6,7,13,14,10,11,25,26,27,28,29,15,16,30,23,31,22,83,84,70,21,90]),import.meta.url)).LinkPreviewsSection),k=v(async()=>(await t(async()=>{let{MarkdownlintPluginSection:e}=await import(`./LintingSection-DR8jISYs.js`);return{MarkdownlintPluginSection:e}},__vite__mapDeps([164,1,165,19,166,167,97,168,169,170,171,172,173,174,175,176,28,44,45,46,47,4,9,3,48,49,50,51,52,53,54,55,56,57,58,41,59,60,36,8,61,62,63,64,65,66,2,67,68,96,150,151,177,178,179,152,16,180,98,181,182,183,184,185,186,187,31,92,188,189,132,111,6,7,84,29,70,22,23,11,10,5,12,13,14,190,191,192,69,27,34,26,71,72,73,193,131,194,195,196,74,197,160,198,20,83,21,199,200,75,140,161,100,162,201,76,202,203,38,17,113,204,205,142,108,116,206,207,208,88,89,90,209,210,211,30,101,157,85,86,39,212,213,214,95,215,93,216,217,128,218,130,136,123,219,149,153,15,220,77,221,222,80,223,112,224,119,120,121,35,114,117,118,106,122,124,225,226,227,228,229,25,230,143,125,126,231,232,233,234,235,94]),import.meta.url)).MarkdownlintPluginSection),A=v(async()=>(await t(async()=>{let{ProjectPluginsManageSection:e}=await import(`./LintingSection-DR8jISYs.js`);return{ProjectPluginsManageSection:e}},__vite__mapDeps([164,1,165,19,166,167,97,168,169,170,171,172,173,174,175,176,28,44,45,46,47,4,9,3,48,49,50,51,52,53,54,55,56,57,58,41,59,60,36,8,61,62,63,64,65,66,2,67,68,96,150,151,177,178,179,152,16,180,98,181,182,183,184,185,186,187,31,92,188,189,132,111,6,7,84,29,70,22,23,11,10,5,12,13,14,190,191,192,69,27,34,26,71,72,73,193,131,194,195,196,74,197,160,198,20,83,21,199,200,75,140,161,100,162,201,76,202,203,38,17,113,204,205,142,108,116,206,207,208,88,89,90,209,210,211,30,101,157,85,86,39,212,213,214,95,215,93,216,217,128,218,130,136,123,219,149,153,15,220,77,221,222,80,223,112,224,119,120,121,35,114,117,118,106,122,124,225,226,227,228,229,25,230,143,125,126,231,232,233,234,235,94]),import.meta.url)).ProjectPluginsManageSection),j=v(async()=>(await t(async()=>{let{UserPluginsManageSection:e}=await import(`./LintingSection-DR8jISYs.js`);return{UserPluginsManageSection:e}},__vite__mapDeps([164,1,165,19,166,167,97,168,169,170,171,172,173,174,175,176,28,44,45,46,47,4,9,3,48,49,50,51,52,53,54,55,56,57,58,41,59,60,36,8,61,62,63,64,65,66,2,67,68,96,150,151,177,178,179,152,16,180,98,181,182,183,184,185,186,187,31,92,188,189,132,111,6,7,84,29,70,22,23,11,10,5,12,13,14,190,191,192,69,27,34,26,71,72,73,193,131,194,195,196,74,197,160,198,20,83,21,199,200,75,140,161,100,162,201,76,202,203,38,17,113,204,205,142,108,116,206,207,208,88,89,90,209,210,211,30,101,157,85,86,39,212,213,214,95,215,93,216,217,128,218,130,136,123,219,149,153,15,220,77,221,222,80,223,112,224,119,120,121,35,114,117,118,106,122,124,225,226,227,228,229,25,230,143,125,126,231,232,233,234,235,94]),import.meta.url)).UserPluginsManageSection),M=v(async()=>(await t(async()=>{let{NetworkAccessSection:e}=await import(`./NetworkAccessSection-60v06CZ5.js`);return{NetworkAccessSection:e}},__vite__mapDeps([236,1,44,45,46,47,4,9,3,48,49,50,51,52,53,54,55,56,57,58,41,59,19,60,36,8,61,62,63,64,65,66,2,67,68,111,6,7,84,29,70,22,23,11,10,5,33,34,35,13,14,12,25,26,27,28,15,16,30,31,101,40,237,90,146]),import.meta.url)).NetworkAccessSection),N=v(async()=>(await t(async()=>{let{OkignoreSection:e}=await import(`./OkignoreSection-DM6w7SmV.js`);return{OkignoreSection:e}},__vite__mapDeps([238,1,239,8,4,2,3,26,27,28,6,7,14,29,9,10,11,71,16,240,20,21,36,208,60,182,183,53,52,184,68,55,187,88,89,49,90,41,188,209,210,199,200,56,25,15,30,23,31,241,22,101,39,147,242]),import.meta.url)).OkignoreSection),P=v(async()=>(await t(async()=>{let{ProjectTemplatesSection:e}=await import(`./ProjectTemplatesSection-UXsBnF5A.js`);return{ProjectTemplatesSection:e}},__vite__mapDeps([243,1,2,3,4,142,16,9,244,60,111,6,7,8,84,29,70,22,23,11,10,119,120,121,27,28,14,34,35,71,75,245,98,21,36,48,49,50,51,52,53,54,55,56,57,58,41,222,17,83,125,5,126,101,145,88,89,90,246,209,25,26,15,30,31,39,234,92,94,95,96,97]),import.meta.url)).ProjectTemplatesSection),F=v(async()=>(await t(async()=>{let{SearchSection:e}=await import(`./SearchSection-I05VM72v.js`);return{SearchSection:e}},__vite__mapDeps([247,1,44,45,46,47,4,9,3,48,49,50,51,52,53,54,55,56,57,58,41,59,19,60,36,8,61,62,63,64,65,66,2,67,68,73,6,7,12,13,14,10,11,75,16,248,88,89,90,25,26,27,28,29,15,30,23,31,22,83,84,70,21,125,5,126,101,146]),import.meta.url)).SearchSection),I=v(async()=>(await t(async()=>{let{SkillsManagerSection:e}=await import(`./SkillsManagerSection-DvXQM6m3.js`);return{SkillsManagerSection:e}},__vite__mapDeps([249,1,2,3,4,111,6,7,8,84,29,70,9,22,23,11,10,16,160,119,120,121,27,28,14,34,35,71,75,100,98,36,117,26,114,116,118,47,106,122,123,124,58,41,225,25,15,30,31,83,21,101,39,229,60,48,49,50,51,52,53,54,55,56,57,88,89,90,209,218,228,215,234,92,199,200,217,128,127]),import.meta.url)).SkillsManagerSection),L=v(async()=>(await t(async()=>{let{SlidesPluginSection:e}=await import(`./SlidesPluginSection-DIUKOMCd.js`);return{SlidesPluginSection:e}},__vite__mapDeps([250,1,2,3,4,15,16,79,9,207,26,27,28,6,7,8,14,29,10,11,71,100,22,23,81,82,50,49,51,52,25,30,31,251,101,145,94,95,96,97]),import.meta.url)).SlidesPluginSection),R=v(async()=>(await t(async()=>{let{SyncSection:e}=await import(`./SyncSection-CR83qwRV.js`);return{SyncSection:e}},__vite__mapDeps([252,1,44,45,46,47,4,9,3,48,49,50,51,52,53,54,55,56,57,58,41,59,19,60,36,8,61,62,63,64,65,66,2,67,68,69,27,28,6,7,14,34,29,70,26,10,11,13,16,71,72,73,139,35,23,43,74,15,75,76,77,17,78,79,20,80,81,82,30,22,83,84,21,85,86,87,88,89,90,91,92,93,94,95,96,97,99,100,101,31,253,5,33,190,166,167,168,169,170,171,172,173,174,175,176,165,150,151,177,178,179,152,180,98,181,182,183,184,185,186,187,188,189,132,191,192,12,193,131,194,195,196,197,160,198,199,200,140,161,162,201,202,203,38,113,204,205,142,108,116,206,207,208,209,210,211,157,39,212,213,214,215,216,217,128,218,130,136,123,219,125,126,145,254,25]),import.meta.url)).SyncSection),z=v(async()=>(await t(async()=>{let{TerminalSection:e}=await import(`./TerminalSection-jQMiN2NM.js`);return{TerminalSection:e}},__vite__mapDeps([255,1,44,45,46,47,4,9,3,48,49,50,51,52,53,54,55,56,57,58,41,59,19,60,36,8,61,62,63,64,65,66,2,67,68,12,6,7,13,14,10,11,25,26,27,28,29,15,16,30,23,31,256,90,40]),import.meta.url)).TerminalSection),B=v(async()=>(await t(async()=>{let{ThemePluginSection:e}=await import(`./ThemePluginSection-nI1GgdHf.js`);return{ThemePluginSection:e}},__vite__mapDeps([257,1,2,3,4,5,6,7,8,9,10,11,15,16,47,36,48,49,50,51,52,53,54,55,56,57,58,41,258,144,138,45,69,27,28,14,34,29,70,26,13,71,72,12,139,35,23,140,141,33,115,65,142,143,98,20,22,83,84,21,125,126,101,39,145,59,19,60,61,64,66,67,68,90,146,25,30,31,147,242,259]),import.meta.url)).ThemePluginSection),V=v(async()=>{let{LINT_PLUGIN_UI:e}=await t(async()=>{let{LINT_PLUGIN_UI:e}=await import(`./lint-plugins-BhTcQnAm.js`);return{LINT_PLUGIN_UI:e}},__vite__mapDeps([260,220,16,1,4,164,165,19,166,167,97,168,169,170,171,172,173,174,175,176,28,44,45,46,47,9,3,48,49,50,51,52,53,54,55,56,57,58,41,59,60,36,8,61,62,63,64,65,66,2,67,68,96,150,151,177,178,179,152,180,98,181,182,183,184,185,186,187,31,92,188,189,132,111,6,7,84,29,70,22,23,11,10,5,12,13,14,190,191,192,69,27,34,26,71,72,73,193,131,194,195,196,74,197,160,198,20,83,21,199,200,75,140,161,100,162,201,76,202,203,38,17,113,204,205,142,108,116,206,207,208,88,89,90,209,210,211,30,101,157,85,86,39,212,213,214,95,215,93,216,217,128,218,130,136,123,219,149,153,15,77,221,222,80,223,112,224,119,120,121,35,114,117,118,106,122,124,225,226,227,228,229,25,230,143,125,126,231,232,233,234,235,94]),import.meta.url);return function({id:t}){let n=e.find(e=>e.id===t);if(!n)return null;let r=n.Section;return(0,_.jsx)(r,{})}}),H=c(async()=>{let[{BoundSchemaSection:e},{OkCliPathRow:n},{SpellingSettings:r}]=await Promise.all([t(()=>import(`./schema-section-q8gLZzk5.js`),__vite__mapDeps([258,1,2,3,4,144,7,5,6,8,9,10,11,36,138,45,69,27,28,14,34,29,70,26,13,16,71,72,12,139,35,23,140,141,33,115,65,47,142,143,98,20,48,49,50,51,52,53,54,55,56,57,58,41,22,83,84,21,125,126,101,39,145,59,19,60,61,64,66,67,68,90,146,25,15,30,31,147,242]),import.meta.url),t(()=>import(`./OkCliPathRow-WU7DzKHc.js`),__vite__mapDeps([261,1,2,3,4,112,6,7,8,13,14,71,16,113,9,10,11,5,26,27,28,29,38,36,22,23,40,41]),import.meta.url),t(()=>import(`./SpellingSettings-BrfpyGGQ.js`),__vite__mapDeps([262,1,28,27,6,7,4,8,3,14,60,2,12,13,9,10,11,26,29,71,16,143,21,36,181,138,45,69,34,70,72,139,35,23,140,141,33,115,65,47,142,98,20,144,5,48,49,50,51,52,53,54,55,56,57,58,41,22,83,84,125,126,101,39,145,59,19,61,64,66,67,68,90,146,156]),import.meta.url)]);return{default:function({title:t,description:i,binding:a}){return(0,_.jsx)(e,{title:t,description:i,scope:`user`,scopeBadge:`user`,binding:a,fields:p,slotsAfter:{"appearance.theme":(0,_.jsx)(n,{}),"appearance.language":(0,_.jsx)(r,{})}})}}}),U=H.preload;function W(e){let t=(0,h.c)(4),{loadFailed:n}=e;if(!n){let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(T,{}),t[0]=e):e=t[0],e}let r;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,_.jsx)(s,{"aria-hidden":`true`}),t[1]=r):r=t[1];let a;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,_.jsx)(u,{children:(0,_.jsx)(i,{id:`PXg8xK`})}),t[2]=a):a=t[2];let o;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,_.jsxs)(d,{"data-testid":`settings-user-config-unavailable`,children:[r,a,(0,_.jsx)(l,{children:(0,_.jsx)(i,{id:`rFbQzX`})})]}),t[3]=o):o=t[3],o}function G(e){let t=(0,h.c)(37),{activeId:n,userBinding:r,userLoadFailed:o,okignoreBinding:s,okignoreSynced:c,markdownlintRuleQuery:l}=e,u=o===void 0?!1:o,{_:d}=a();if(n===`preferences`){let e;return t[0]!==d||t[1]!==r||t[2]!==u?(e=r?(0,_.jsx)(H,{title:d({id:`Q6hhn8`}),description:d({id:`Y_kL7X`}),binding:r}):(0,_.jsx)(W,{loadFailed:u}),t[0]=d,t[1]=r,t[2]=u,t[3]=e):e=t[3],e}if(n===`project-preferences`){let e;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(i,{id:`Q6hhn8`}),t[4]=e):e=t[4];let n;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,_.jsxs)(`section`,{"aria-labelledby":`settings-project-preferences-title`,className:`space-y-8`,"data-testid":`settings-project-preferences`,children:[(0,_.jsx)(m,{titleId:`settings-project-preferences-title`,title:e,scope:`project`,children:(0,_.jsx)(i,{id:`FKVmcC`})}),(0,_.jsx)(C,{}),(0,_.jsx)(w,{}),f()?(0,_.jsx)(z,{}):null]}),t[5]=n):n=t[5],n}if(n===`agent-connections`){let e;return t[6]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(S,{}),t[6]=e):e=t[6],e}if(n===`hotkeys`){let e;return t[7]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(E,{}),t[7]=e):e=t[7],e}if(n===`account`){let e;return t[8]!==r||t[9]!==u?(e=r?(0,_.jsx)(x,{userBinding:r}):(0,_.jsx)(W,{loadFailed:u}),t[8]=r,t[9]=u,t[10]=e):e=t[10],e}if(n===`sync`){let e;return t[11]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsxs)(`section`,{"aria-labelledby":`settings-sync-sharing-title`,className:`space-y-8`,"data-testid":`settings-sync-sharing`,children:[(0,_.jsx)(m,{titleId:`settings-sync-sharing-title`,title:(0,_.jsx)(i,{id:`AznQ2V`}),children:(0,_.jsx)(i,{id:`HADdBA`})}),(0,_.jsx)(R,{}),(0,_.jsx)(b,{})]}),t[11]=e):e=t[11],e}if(n===`search`){let e;return t[12]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(F,{}),t[12]=e):e=t[12],e}if(n===`link-previews`){let e;return t[13]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(O,{}),t[13]=e):e=t[13],e}if(n===`plugins-manage`){let e;return t[14]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(A,{}),t[14]=e):e=t[14],e}if(n===`user-plugins-manage`){let e;return t[15]===r?e=t[16]:(e=(0,_.jsx)(j,{userBinding:r}),t[15]=r,t[16]=e),e}if(n===`plugin:theme`){let e;return t[17]!==r||t[18]!==u?(e=r?(0,_.jsx)(B,{userBinding:r}):(0,_.jsx)(W,{loadFailed:u}),t[17]=r,t[18]=u,t[19]=e):e=t[19],e}if(n===`plugin:slides`){let e;return t[20]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(L,{}),t[20]=e):e=t[20],e}if(n===`plugin:markdownlint`){let e=l??null,n;return t[21]===e?n=t[22]:(n=(0,_.jsx)(k,{initialRuleQuery:e}),t[21]=e,t[22]=n),n}if(n.startsWith(`plugin:`)){let e;t[23]===n?e=t[24]:(e=n.slice(7),t[23]=n,t[24]=e);let r;return t[25]!==n||t[26]!==e?(r=(0,_.jsx)(V,{id:e},n),t[25]=n,t[26]=e,t[27]=r):r=t[27],r}if(n===`project-templates`){let e;return t[28]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(P,{}),t[28]=e):e=t[28],e}if(n===`skills`){let e;return t[29]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(I,{scope:`project`}),t[29]=e):e=t[29],e}if(n===`user-skills`){let e;return t[30]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(I,{scope:`global`}),t[30]=e):e=t[30],e}if(n===`okignore`){let e;return t[31]!==s||t[32]!==c?(e=(0,_.jsx)(N,{binding:s,synced:c}),t[31]=s,t[32]=c,t[33]=e):e=t[33],e}if(n===`network-access`){let e;return t[34]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(M,{}),t[34]=e):e=t[34],e}if(n===`claude-desktop`){let e;return t[35]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(D,{}),t[35]=e):e=t[35],e}if(n===`about`){let e;return t[36]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,_.jsx)(y,{}),t[36]=e):e=t[36],e}return null}export{G as SettingsDialogBody,U as preloadPreferencesSection};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{a as i,i as a,n as o,o as s,r as c}from"./pending-receive-nav-store-CixUztAW.js";import{t as l}from"./miss-dialog-store-CnhNzNGB.js";import{c as u,i as d,n as f,s as p,t as m}from"./dialog-C_xJSQj5.js";import{d as h,u as g}from"./doc-hash-BGIO8NA0.js";var _=r(),v=e(n(),1),y=t();function b(e){let t=e.split(`/`).filter(Boolean);return t.length>0?t[t.length-1]:e}function x(){let e=(0,_.c)(2),t=(0,v.useSyncExternalStore)(l.subscribe,l.getSnapshot,S);if(t===null)return null;let n;return e[0]===t?n=e[1]:(n=(0,y.jsx)(C,{nav:t},t.path),e[0]=t,e[1]=n),n}function S(){return null}function C(e){let t=(0,_.c)(28),{nav:n}=e,{state:r,refetch:v}=s(n),x;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(x=function(){l.dismiss()},t[0]=x):x=t[0];let S=x,C;t[1]===n.path?C=t[2]:(C=function(){window.location.hash=h(i(n.path)),S()},t[1]=n.path,t[2]=C);let w=C,T;t[3]===n?T=t[4]:(T=function(e){c.arm(o(n,e)),window.location.hash=n.kind===`folder`?h(e):g(e),S()},t[3]=n,t[4]=T);let E=T,D;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(D=e=>{e||S()},t[5]=D):D=t[5];let O=r.phase,k=r.phase===`resolved`?r.resolution.verdict:void 0,A;t[6]===n.path?A=t[7]:(A=b(n.path),t[6]=n.path,t[7]=A);let j;t[8]===A?j=t[9]:(j=(0,y.jsx)(p,{children:(0,y.jsx)(u,{className:`truncate`,children:A})}),t[8]=A,t[9]=j);let M=r.phase===`pending`?`flex flex-col items-center justify-center gap-3 py-6 text-center text-sm text-muted-foreground`:`flex flex-col items-center justify-center gap-6 py-2 text-center`,N;t[10]!==n.path||t[11]!==E?(N=()=>E(n.path),t[10]=n.path,t[11]=E,t[12]=N):N=t[12];let P;t[13]!==w||t[14]!==n||t[15]!==E||t[16]!==v||t[17]!==r||t[18]!==N?(P=(0,y.jsx)(a,{nav:n,state:r,onBrowseFolder:w,onOpenRenamed:E,onEnableAutoSync:S,onSyncCompleted:v,onPullApplied:N}),t[13]=w,t[14]=n,t[15]=E,t[16]=v,t[17]=r,t[18]=N,t[19]=P):P=t[19];let F;t[20]!==P||t[21]!==M?(F=(0,y.jsx)(f,{className:M,children:P}),t[20]=P,t[21]=M,t[22]=F):F=t[22];let I;return t[23]!==r.phase||t[24]!==F||t[25]!==k||t[26]!==j?(I=(0,y.jsx)(m,{open:!0,onOpenChange:D,children:(0,y.jsxs)(d,{className:`sm:max-w-md`,"data-testid":`share-receive-miss-dialog`,"data-phase":O,"data-verdict":k,children:[j,F]})}),t[23]=r.phase,t[24]=F,t[25]=k,t[26]=j,t[27]=I):I=t[27],I}export{x as ShareReceiveMissDialog};
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{t as r}from"./compiler-runtime-BfE3aGVn.js";import{a as i,i as a,n as o,o as s,r as c}from"./pending-receive-nav-store-CnY93rdh.js";import{t as l}from"./miss-dialog-store-CnhNzNGB.js";import{c as u,i as d,n as f,s as p,t as m}from"./dialog-C_xJSQj5.js";import{d as h,u as g}from"./doc-hash-BGIO8NA0.js";var _=r(),v=e(n(),1),y=t();function b(e){let t=e.split(`/`).filter(Boolean);return t.length>0?t[t.length-1]:e}function x(){let e=(0,_.c)(2),t=(0,v.useSyncExternalStore)(l.subscribe,l.getSnapshot,S);if(t===null)return null;let n;return e[0]===t?n=e[1]:(n=(0,y.jsx)(C,{nav:t},t.path),e[0]=t,e[1]=n),n}function S(){return null}function C(e){let t=(0,_.c)(28),{nav:n}=e,{state:r,refetch:v}=s(n),x;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(x=function(){l.dismiss()},t[0]=x):x=t[0];let S=x,C;t[1]===n.path?C=t[2]:(C=function(){window.location.hash=h(i(n.path)),S()},t[1]=n.path,t[2]=C);let w=C,T;t[3]===n?T=t[4]:(T=function(e){c.arm(o(n,e)),window.location.hash=n.kind===`folder`?h(e):g(e),S()},t[3]=n,t[4]=T);let E=T,D;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(D=e=>{e||S()},t[5]=D):D=t[5];let O=r.phase,k=r.phase===`resolved`?r.resolution.verdict:void 0,A;t[6]===n.path?A=t[7]:(A=b(n.path),t[6]=n.path,t[7]=A);let j;t[8]===A?j=t[9]:(j=(0,y.jsx)(p,{children:(0,y.jsx)(u,{className:`truncate`,children:A})}),t[8]=A,t[9]=j);let M=r.phase===`pending`?`flex flex-col items-center justify-center gap-3 py-6 text-center text-sm text-muted-foreground`:`flex flex-col items-center justify-center gap-6 py-2 text-center`,N;t[10]!==n.path||t[11]!==E?(N=()=>E(n.path),t[10]=n.path,t[11]=E,t[12]=N):N=t[12];let P;t[13]!==w||t[14]!==n||t[15]!==E||t[16]!==v||t[17]!==r||t[18]!==N?(P=(0,y.jsx)(a,{nav:n,state:r,onBrowseFolder:w,onOpenRenamed:E,onEnableAutoSync:S,onSyncCompleted:v,onPullApplied:N}),t[13]=w,t[14]=n,t[15]=E,t[16]=v,t[17]=r,t[18]=N,t[19]=P):P=t[19];let F;t[20]!==P||t[21]!==M?(F=(0,y.jsx)(f,{className:M,children:P}),t[20]=P,t[21]=M,t[22]=F):F=t[22];let I;return t[23]!==r.phase||t[24]!==F||t[25]!==k||t[26]!==j?(I=(0,y.jsx)(m,{open:!0,onOpenChange:D,children:(0,y.jsxs)(d,{className:`sm:max-w-md`,"data-testid":`share-receive-miss-dialog`,"data-phase":O,"data-verdict":k,children:[j,F]})}),t[23]=r.phase,t[24]=F,t[25]=k,t[26]=j,t[27]=I):I=t[27],I}export{x as ShareReceiveMissDialog};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as o}from"./utils-CPqDy6Hr.js";import{a as s,i as c,n as l,o as u,r as d,s as f,t as p}from"./select-BuIwBy1a.js";import{t as m}from"./button-DzgjsZzC.js";import{l as h,n as g,r as _,t as v}from"./AddPropertiesButton-BoAPqA99.js";import{a as y,h as b,r as x,t as S,u as C}from"./dropdown-menu-CKxMZXce.js";import{n as w}from"./file-plus-BHzi5G4b.js";import{t as T}from"./list-plus-DSbJ-YSd.js";import{p as E,t as D}from"./skill-scope-BRYeXgDz.js";var O=a(),k=t();function A(e){let t=(0,O.c)(21),{value:n,onRequestMove:a,disabled:m,triggerClassName:h}=e,{_:g}=i(),_=E(),v;t[0]===a?v=t[1]:(v=e=>a(e),t[0]=a,t[1]=v);let y;t[2]===g?y=t[3]:(y=g({id:`oCHfGC`}),t[2]=g,t[3]=y);let b;t[4]===h?b=t[5]:(b=o(`w-auto gap-1 text-xs font-mono uppercase`,h),t[4]=h,t[5]=b);let x;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,k.jsx)(f,{}),t[6]=x):x=t[6];let S;t[7]!==y||t[8]!==b?(S=(0,k.jsx)(u,{size:`sm`,"aria-label":y,"data-testid":`skill-level-select`,className:b,children:x}),t[7]=y,t[8]=b,t[9]=S):S=t[9];let C;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,k.jsx)(s,{children:(0,k.jsx)(r,{id:`oCHfGC`})}),t[10]=C):C=t[10];let w;t[11]===_?w=t[12]:(w=D.map(e=>(0,k.jsx)(c,{value:e,children:_[e]},e)),t[11]=_,t[12]=w);let T;t[13]===w?T=t[14]:(T=(0,k.jsx)(l,{align:`end`,children:(0,k.jsxs)(d,{children:[C,w]})}),t[13]=w,t[14]=T);let A;return t[15]!==m||t[16]!==v||t[17]!==S||t[18]!==T||t[19]!==n?(A=(0,k.jsxs)(p,{value:n,onValueChange:v,disabled:m,children:[S,T]}),t[15]=m,t[16]=v,t[17]=S,t[18]=T,t[19]=n,t[20]=A):A=t[20],A}var j=e(n(),1);function M(e){let t=(0,O.c)(12),{scope:n,name:r}=e,[i,a]=(0,j.useState)(null),o;t[0]===n?o=t[1]:(o=e=>{e!==n&&a(e)},t[0]=n,t[1]=o);let s;t[2]!==r||t[3]!==i||t[4]!==n?(s=i?{scope:n,name:r,toScope:i}:null,t[2]=r,t[3]=i,t[4]=n,t[5]=s):s=t[5];let c;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(c=e=>!e&&a(null),t[6]=c):c=t[6];let l;t[7]===s?l=t[8]:(l=(0,k.jsx)(h,{target:s,onOpenChange:c}),t[7]=s,t[8]=l);let u;return t[9]!==o||t[10]!==l?(u={requestMove:o,dialog:l},t[9]=o,t[10]=l,t[11]=u):u=t[11],u}function N(e){let t=(0,O.c)(41),{scope:n,name:a,showAddPropertyButton:o,onAddProperty:s,problemCount:c,problemMessages:l}=e,{_:u}=i(),d;t[0]!==a||t[1]!==n?(d={scope:n,name:a},t[0]=a,t[1]=n,t[2]=d):d=t[2];let f=M(d),p;t[3]!==f.requestMove||t[4]!==n?(p=(0,k.jsx)(A,{value:n,onRequestMove:f.requestMove,triggerClassName:`hidden @xl/toolbar:flex`}),t[3]=f.requestMove,t[4]=n,t[5]=p):p=t[5];let h;t[6]!==a||t[7]!==n?(h=(0,k.jsx)(_,{scope:n,name:a}),t[6]=a,t[7]=n,t[8]=h):h=t[8];let E;t[9]!==p||t[10]!==h?(E=(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[p,h]}),t[9]=p,t[10]=h,t[11]=E):E=t[11];let D;t[12]!==s||t[13]!==c||t[14]!==l||t[15]!==o?(D=o?(0,k.jsx)(v,{onAddProperty:s,problemCount:c,problemMessages:l,className:`hidden @xl/toolbar:inline-flex`}):null,t[12]=s,t[13]=c,t[14]=l,t[15]=o,t[16]=D):D=t[16];let j;t[17]===u?j=t[18]:(j=u({id:`Yzs3QX`}),t[17]=u,t[18]=j);let N;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,k.jsx)(w,{className:`size-4`,"aria-hidden":!0}),t[19]=N):N=t[19];let P;t[20]===j?P=t[21]:(P=(0,k.jsx)(b,{asChild:!0,children:(0,k.jsx)(m,{variant:`ghost`,size:`icon`,"aria-label":j,"data-testid":`skill-toolbar-overflow`,className:`@xl/toolbar:hidden`,children:N})}),t[20]=j,t[21]=P);let F;t[22]===f?F=t[23]:(F=e=>f.requestMove(e),t[22]=f,t[23]=F);let I;t[24]!==n||t[25]!==F?(I=(0,k.jsx)(g,{value:n,onSelect:F}),t[24]=n,t[25]=F,t[26]=I):I=t[26];let L;t[27]!==s||t[28]!==o?(L=o?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(C,{}),(0,k.jsxs)(y,{onSelect:s,children:[(0,k.jsx)(T,{}),(0,k.jsx)(r,{id:`81H_23`})]})]}):null,t[27]=s,t[28]=o,t[29]=L):L=t[29];let R;t[30]!==I||t[31]!==L?(R=(0,k.jsxs)(x,{align:`end`,className:`min-w-44`,children:[I,L]}),t[30]=I,t[31]=L,t[32]=R):R=t[32];let z;t[33]!==R||t[34]!==P?(z=(0,k.jsxs)(S,{children:[P,R]}),t[33]=R,t[34]=P,t[35]=z):z=t[35];let B;return t[36]!==f.dialog||t[37]!==z||t[38]!==E||t[39]!==D?(B=(0,k.jsxs)(k.Fragment,{children:[E,D,z,f.dialog]}),t[36]=f.dialog,t[37]=z,t[38]=E,t[39]=D,t[40]=B):B=t[40],B}export{N as SkillToolbarControls};
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as o}from"./utils-CPqDy6Hr.js";import{a as s,i as c,n as l,o as u,r as d,s as f,t as p}from"./select-BuIwBy1a.js";import{t as m}from"./button-DzgjsZzC.js";import{l as h,n as g,r as _,t as v}from"./AddPropertiesButton-B0BFEg_S.js";import{a as y,h as b,r as x,t as S,u as C}from"./dropdown-menu-CKxMZXce.js";import{n as w}from"./file-plus-BHzi5G4b.js";import{t as T}from"./list-plus-DSbJ-YSd.js";import{p as E,t as D}from"./skill-scope-BRYeXgDz.js";var O=a(),k=t();function A(e){let t=(0,O.c)(21),{value:n,onRequestMove:a,disabled:m,triggerClassName:h}=e,{_:g}=i(),_=E(),v;t[0]===a?v=t[1]:(v=e=>a(e),t[0]=a,t[1]=v);let y;t[2]===g?y=t[3]:(y=g({id:`oCHfGC`}),t[2]=g,t[3]=y);let b;t[4]===h?b=t[5]:(b=o(`w-auto gap-1 text-xs font-mono uppercase`,h),t[4]=h,t[5]=b);let x;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(x=(0,k.jsx)(f,{}),t[6]=x):x=t[6];let S;t[7]!==y||t[8]!==b?(S=(0,k.jsx)(u,{size:`sm`,"aria-label":y,"data-testid":`skill-level-select`,className:b,children:x}),t[7]=y,t[8]=b,t[9]=S):S=t[9];let C;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(C=(0,k.jsx)(s,{children:(0,k.jsx)(r,{id:`oCHfGC`})}),t[10]=C):C=t[10];let w;t[11]===_?w=t[12]:(w=D.map(e=>(0,k.jsx)(c,{value:e,children:_[e]},e)),t[11]=_,t[12]=w);let T;t[13]===w?T=t[14]:(T=(0,k.jsx)(l,{align:`end`,children:(0,k.jsxs)(d,{children:[C,w]})}),t[13]=w,t[14]=T);let A;return t[15]!==m||t[16]!==v||t[17]!==S||t[18]!==T||t[19]!==n?(A=(0,k.jsxs)(p,{value:n,onValueChange:v,disabled:m,children:[S,T]}),t[15]=m,t[16]=v,t[17]=S,t[18]=T,t[19]=n,t[20]=A):A=t[20],A}var j=e(n(),1);function M(e){let t=(0,O.c)(12),{scope:n,name:r}=e,[i,a]=(0,j.useState)(null),o;t[0]===n?o=t[1]:(o=e=>{e!==n&&a(e)},t[0]=n,t[1]=o);let s;t[2]!==r||t[3]!==i||t[4]!==n?(s=i?{scope:n,name:r,toScope:i}:null,t[2]=r,t[3]=i,t[4]=n,t[5]=s):s=t[5];let c;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(c=e=>!e&&a(null),t[6]=c):c=t[6];let l;t[7]===s?l=t[8]:(l=(0,k.jsx)(h,{target:s,onOpenChange:c}),t[7]=s,t[8]=l);let u;return t[9]!==o||t[10]!==l?(u={requestMove:o,dialog:l},t[9]=o,t[10]=l,t[11]=u):u=t[11],u}function N(e){let t=(0,O.c)(41),{scope:n,name:a,showAddPropertyButton:o,onAddProperty:s,problemCount:c,problemMessages:l}=e,{_:u}=i(),d;t[0]!==a||t[1]!==n?(d={scope:n,name:a},t[0]=a,t[1]=n,t[2]=d):d=t[2];let f=M(d),p;t[3]!==f.requestMove||t[4]!==n?(p=(0,k.jsx)(A,{value:n,onRequestMove:f.requestMove,triggerClassName:`hidden @xl/toolbar:flex`}),t[3]=f.requestMove,t[4]=n,t[5]=p):p=t[5];let h;t[6]!==a||t[7]!==n?(h=(0,k.jsx)(_,{scope:n,name:a}),t[6]=a,t[7]=n,t[8]=h):h=t[8];let E;t[9]!==p||t[10]!==h?(E=(0,k.jsxs)(`div`,{className:`flex items-center gap-2`,children:[p,h]}),t[9]=p,t[10]=h,t[11]=E):E=t[11];let D;t[12]!==s||t[13]!==c||t[14]!==l||t[15]!==o?(D=o?(0,k.jsx)(v,{onAddProperty:s,problemCount:c,problemMessages:l,className:`hidden @xl/toolbar:inline-flex`}):null,t[12]=s,t[13]=c,t[14]=l,t[15]=o,t[16]=D):D=t[16];let j;t[17]===u?j=t[18]:(j=u({id:`Yzs3QX`}),t[17]=u,t[18]=j);let N;t[19]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,k.jsx)(w,{className:`size-4`,"aria-hidden":!0}),t[19]=N):N=t[19];let P;t[20]===j?P=t[21]:(P=(0,k.jsx)(b,{asChild:!0,children:(0,k.jsx)(m,{variant:`ghost`,size:`icon`,"aria-label":j,"data-testid":`skill-toolbar-overflow`,className:`@xl/toolbar:hidden`,children:N})}),t[20]=j,t[21]=P);let F;t[22]===f?F=t[23]:(F=e=>f.requestMove(e),t[22]=f,t[23]=F);let I;t[24]!==n||t[25]!==F?(I=(0,k.jsx)(g,{value:n,onSelect:F}),t[24]=n,t[25]=F,t[26]=I):I=t[26];let L;t[27]!==s||t[28]!==o?(L=o?(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(C,{}),(0,k.jsxs)(y,{onSelect:s,children:[(0,k.jsx)(T,{}),(0,k.jsx)(r,{id:`81H_23`})]})]}):null,t[27]=s,t[28]=o,t[29]=L):L=t[29];let R;t[30]!==I||t[31]!==L?(R=(0,k.jsxs)(x,{align:`end`,className:`min-w-44`,children:[I,L]}),t[30]=I,t[31]=L,t[32]=R):R=t[32];let z;t[33]!==R||t[34]!==P?(z=(0,k.jsxs)(S,{children:[P,R]}),t[33]=R,t[34]=P,t[35]=z):z=t[35];let B;return t[36]!==f.dialog||t[37]!==z||t[38]!==E||t[39]!==D?(B=(0,k.jsxs)(k.Fragment,{children:[E,D,z,f.dialog]}),t[36]=f.dialog,t[37]=z,t[38]=E,t[39]=D,t[40]=B):B=t[40],B}export{N as SkillToolbarControls};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{i as o,n as s,t as c}from"./tooltip-BjuCvy5N.js";import{t as l}from"./button-DzgjsZzC.js";import{n as u}from"./dist-Bs8bPT30.js";import{n as d,t as f}from"./workspace-paths-C2i9A8jM.js";import{t as p}from"./createLucideIcon-CB3nKwwz.js";import{n as m}from"./bridge-DiZIRFy1.js";import{n as h}from"./use-workspace-DtmPnC8Q.js";import{t as g}from"./trace-api-D3teyEWp.js";var _=p(`presentation`,[[`path`,{d:`M2 3h20`,key:`91anmk`}],[`path`,{d:`M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3`,key:`2k9sn8`}],[`path`,{d:`m7 21 5-5 5 5`,key:`bip4we`}]]),v=e(n(),1),y=a(),b=`open-knowledge-app`;function x(e){try{g.getTracer(b).startSpan(e).end()}catch(e){console.warn(`[slides-telemetry] span emit failed:`,e instanceof Error?e:String(e))}}function S(){x(`ok.slides.opened`)}function C(e,t){return e[t]===!0}function w(e,t){let n=(0,y.c)(7),r;n[0]!==t||n[1]!==e?(r=()=>{let n=m(e),r=C(n.current().map,t);return n.dispose(),r},n[0]=t,n[1]=e,n[2]=r):r=n[2];let[i,a]=(0,v.useState)(r),o,s;return n[3]!==t||n[4]!==e?(o=()=>{let n=m(e);a(C(n.current().map,t));let r=n.subscribe(e=>{a(C(e.map,t))});return()=>{r(),n.dispose()}},s=[e,t],n[3]=t,n[4]=e,n[5]=o,n[6]=s):(o=n[5],s=n[6]),(0,v.useEffect)(o,s),i}var T=t();async function E(e,t,n,r){let i=u.loading(n.opening,{duration:1/0});try{let a=await e.open(t);if(a.ok){u.dismiss(i);return}if(a.reason===`cancelled`){u.dismiss(i);return}let o,s=!1;switch(a.reason){case`timeout`:o=n.timeout,s=!0;break;case`exited-early`:case`renderer-failed`:o=n.renderFailed,s=!0;break;case`load-failed`:o=n.openFailed,s=!0;break;case`unsupported-server`:o=n.unsupported;break;case`spawn-error`:case`port-error`:o=n.startFailed,s=!0;break;case`not-available`:case`invalid-path`:o=n.openFailed;break;default:a.reason,o=n.openFailed}u.error(o,{id:i,...s?{action:{label:n.retry,onClick:r}}:{}})}catch(e){console.warn(`[slides] open dispatch failed:`,e instanceof Error?e:String(e)),u.error(n.openFailed,{id:i,action:{label:n.retry,onClick:r}})}}async function D(e,t,n,r,i,a){if(!r.current.has(t)){r.current.add(t);try{i(new Set(r.current)),a&&S(),await E(e,t,n,()=>{D(e,t,n,r,i,!1)})}finally{r.current.delete(t),i(new Set(r.current))}}}function O(e){let t=(0,y.c)(3),[n,r]=(0,v.useState)(`pending`),i,a;return t[0]===e?(i=t[1],a=t[2]):(i=()=>{if(!e)return;let t=!0,n=0,i=!1,a=()=>{n=Date.now();let e=window.okDesktop?.slides;if(e==null){r(`unavailable`);return}e.status().then(e=>{t&&(r(e.available?`available`:`unavailable`),e.available&&(i=!0))}).catch(e=>{console.warn(`[slides] availability probe failed:`,e instanceof Error?e:String(e)),t&&r(`unavailable`)})},o=()=>{i||Date.now()-n<1e4||a()};return a(),window.addEventListener(`focus`,o),()=>{t=!1,window.removeEventListener(`focus`,o)}},a=[e],t[0]=e,t[1]=i,t[2]=a),(0,v.useEffect)(i,a),n}function k(e){let t=(0,y.c)(12),{provider:n,docName:a}=e,{_:u}=i(),p=w(n,`slides`),m=O(p),g=h(),b=(0,v.useRef)(new Set),[x,S]=(0,v.useState)(A);if(!p||m!==`available`)return null;let C=g==null?null:d(g.contentDir,f(a),g.pathSeparator),E=async function(){let e=window.okDesktop?.slides;e==null||C==null||await D(e,C,{opening:u({id:`PKLY-1`}),timeout:u({id:`NeY1Np`}),renderFailed:u({id:`Lm3r51`}),openFailed:u({id:`X59Fx2`}),unsupported:u({id:`T_j5G0`}),startFailed:u({id:`TBfy1C`}),retry:u({id:`KDw4GX`})},b,S,!0)},k=c,j=l,M;t[0]===u?M=t[1]:(M=u({id:`w52SKa`}),t[0]=u,t[1]=M);let N=C!=null&&x.has(C),P;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,T.jsx)(o,{children:(0,T.jsx)(_,{"aria-hidden":!0})}),t[2]=P):P=t[2];let F;t[3]!==j||t[4]!==E||t[5]!==M||t[6]!==N?(F=(0,T.jsx)(j,{variant:`ghost`,size:`icon`,onClick:E,"aria-label":M,"aria-busy":N,"data-testid":`slides-toolbar-action`,asChild:!0,children:P}),t[3]=j,t[4]=E,t[5]=M,t[6]=N,t[7]=F):F=t[7];let I;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,T.jsx)(s,{side:`bottom`,children:(0,T.jsx)(r,{id:`w52SKa`})}),t[8]=I):I=t[8];let L;return t[9]!==k||t[10]!==F?(L=(0,T.jsxs)(k,{children:[F,I]}),t[9]=k,t[10]=F,t[11]=L):L=t[11],L}function A(){return new Set}export{k as SlidesToolbarControls};
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{i as o,n as s,t as c}from"./tooltip-BjuCvy5N.js";import{t as l}from"./button-DzgjsZzC.js";import{n as u}from"./dist-Bs8bPT30.js";import{n as d,t as f}from"./workspace-paths-C2i9A8jM.js";import{t as p}from"./createLucideIcon-CB3nKwwz.js";import{n as m}from"./bridge-C8V1oYmB.js";import{n as h}from"./use-workspace-DtmPnC8Q.js";import{t as g}from"./trace-api-D3teyEWp.js";var _=p(`presentation`,[[`path`,{d:`M2 3h20`,key:`91anmk`}],[`path`,{d:`M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3`,key:`2k9sn8`}],[`path`,{d:`m7 21 5-5 5 5`,key:`bip4we`}]]),v=e(n(),1),y=a(),b=`open-knowledge-app`;function x(e){try{g.getTracer(b).startSpan(e).end()}catch(e){console.warn(`[slides-telemetry] span emit failed:`,e instanceof Error?e:String(e))}}function S(){x(`ok.slides.opened`)}function C(e,t){return e[t]===!0}function w(e,t){let n=(0,y.c)(7),r;n[0]!==t||n[1]!==e?(r=()=>{let n=m(e),r=C(n.current().map,t);return n.dispose(),r},n[0]=t,n[1]=e,n[2]=r):r=n[2];let[i,a]=(0,v.useState)(r),o,s;return n[3]!==t||n[4]!==e?(o=()=>{let n=m(e);a(C(n.current().map,t));let r=n.subscribe(e=>{a(C(e.map,t))});return()=>{r(),n.dispose()}},s=[e,t],n[3]=t,n[4]=e,n[5]=o,n[6]=s):(o=n[5],s=n[6]),(0,v.useEffect)(o,s),i}var T=t();async function E(e,t,n,r){let i=u.loading(n.opening,{duration:1/0});try{let a=await e.open(t);if(a.ok){u.dismiss(i);return}if(a.reason===`cancelled`){u.dismiss(i);return}let o,s=!1;switch(a.reason){case`timeout`:o=n.timeout,s=!0;break;case`exited-early`:case`renderer-failed`:o=n.renderFailed,s=!0;break;case`load-failed`:o=n.openFailed,s=!0;break;case`unsupported-server`:o=n.unsupported;break;case`spawn-error`:case`port-error`:o=n.startFailed,s=!0;break;case`not-available`:case`invalid-path`:o=n.openFailed;break;default:a.reason,o=n.openFailed}u.error(o,{id:i,...s?{action:{label:n.retry,onClick:r}}:{}})}catch(e){console.warn(`[slides] open dispatch failed:`,e instanceof Error?e:String(e)),u.error(n.openFailed,{id:i,action:{label:n.retry,onClick:r}})}}async function D(e,t,n,r,i,a){if(!r.current.has(t)){r.current.add(t);try{i(new Set(r.current)),a&&S(),await E(e,t,n,()=>{D(e,t,n,r,i,!1)})}finally{r.current.delete(t),i(new Set(r.current))}}}function O(e){let t=(0,y.c)(3),[n,r]=(0,v.useState)(`pending`),i,a;return t[0]===e?(i=t[1],a=t[2]):(i=()=>{if(!e)return;let t=!0,n=0,i=!1,a=()=>{n=Date.now();let e=window.okDesktop?.slides;if(e==null){r(`unavailable`);return}e.status().then(e=>{t&&(r(e.available?`available`:`unavailable`),e.available&&(i=!0))}).catch(e=>{console.warn(`[slides] availability probe failed:`,e instanceof Error?e:String(e)),t&&r(`unavailable`)})},o=()=>{i||Date.now()-n<1e4||a()};return a(),window.addEventListener(`focus`,o),()=>{t=!1,window.removeEventListener(`focus`,o)}},a=[e],t[0]=e,t[1]=i,t[2]=a),(0,v.useEffect)(i,a),n}function k(e){let t=(0,y.c)(12),{provider:n,docName:a}=e,{_:u}=i(),p=w(n,`slides`),m=O(p),g=h(),b=(0,v.useRef)(new Set),[x,S]=(0,v.useState)(A);if(!p||m!==`available`)return null;let C=g==null?null:d(g.contentDir,f(a),g.pathSeparator),E=async function(){let e=window.okDesktop?.slides;e==null||C==null||await D(e,C,{opening:u({id:`PKLY-1`}),timeout:u({id:`NeY1Np`}),renderFailed:u({id:`Lm3r51`}),openFailed:u({id:`X59Fx2`}),unsupported:u({id:`T_j5G0`}),startFailed:u({id:`TBfy1C`}),retry:u({id:`KDw4GX`})},b,S,!0)},k=c,j=l,M;t[0]===u?M=t[1]:(M=u({id:`w52SKa`}),t[0]=u,t[1]=M);let N=C!=null&&x.has(C),P;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,T.jsx)(o,{children:(0,T.jsx)(_,{"aria-hidden":!0})}),t[2]=P):P=t[2];let F;t[3]!==j||t[4]!==E||t[5]!==M||t[6]!==N?(F=(0,T.jsx)(j,{variant:`ghost`,size:`icon`,onClick:E,"aria-label":M,"aria-busy":N,"data-testid":`slides-toolbar-action`,asChild:!0,children:P}),t[3]=j,t[4]=E,t[5]=M,t[6]=N,t[7]=F):F=t[7];let I;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(I=(0,T.jsx)(s,{side:`bottom`,children:(0,T.jsx)(r,{id:`w52SKa`})}),t[8]=I):I=t[8];let L;return t[9]!==k||t[10]!==F?(L=(0,T.jsxs)(k,{children:[F,I]}),t[9]=k,t[10]=F,t[11]=L):L=t[11],L}function A(){return new Set}export{k as SlidesToolbarControls};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{L as n,M as r,m as i,p as a}from"./Mermaid-DviN8rnL.js";import{t as o}from"./react-f2sANaYj.js";import{r as s}from"./dist-Nvb76hAm.js";import{n as c}from"./dist-PQ5KMVDh.js";import{t as l}from"./compiler-runtime-BfE3aGVn.js";import{Cn as ee,Gt as u,Jt as d,K as f,Q as te,Qt as p,U as ne,Y as m,in as h,q as re,qt as ie,rn as g,wt as ae,xn as oe}from"./DocumentContext-B5nDVELQ.js";import{_t as _}from"./schemas-api-C0HskKob.js";import{n as se}from"./config-context-DmzX_4s_.js";import{T as ce,b as v,c as le,n as ue,o as y,r as de,t as fe,v as b,w as pe}from"./typing-burst-detector-Cyz41azX.js";import{Q as me,Vn as x,a as he,gt as S,i as ge,mt as C,o as _e,x as w,zn as ve}from"./CodeMirrorPropInput-CgYXNCD0.js";import{a as T,i as E}from"./constants-skills-CIijCHaN.js";import{t as ye}from"./diagnostic-breadcrumb-SSTr0wqA.js";import{n as D}from"./perf-CCuuR_Xb.js";import{m as be}from"./config-provider-Cip-TSZl.js";import{$ as O,At as k,Ct as A,E as j,J as M,K as N,Mt as P,N as F,Nt as I,Tt as xe,X as L,at as R,b as z,et as B,ft as Se,g as V,l as H,lt as Ce,ot as U,pt as W,st as G,tt as K,ut as q,v as J,wt as Y}from"./dist-DDahyGUu.js";import{i as we,r as Te}from"./cm-theme-0t8b_a5N.js";import{i as Ee,t as X}from"./dist-BMmhsNLt.js";import{i as Z,n as Q,o as De,r as Oe}from"./dist-DLoZ_P3d.js";import{o as ke,r as Ae}from"./selection-context-Qfujtbe5.js";import{C as je,D as Me,t as Ne}from"./markdown-lint-C_6WZKjR.js";import{l as Pe}from"./lint-config-client-MPuLlXpZ.js";import{a as Fe,i as Ie,n as Le,o as Re,r as ze,s as Be,t as Ve}from"./dist-DI5mwVj3.js";import{n as He,t as Ue}from"./src-BfWNYb5E.js";var $=e(o(),1),We=l();function Ge(){let e=g();return e===null?null:new Set(e.keys())}function Ke(e,t,n){let r=[],i=F(e);if(n!=null){let a=[];for(let{from:e,to:n}of t)i.iterate({from:e,to:n,enter(e){if(e.name===`InlineCode`||e.name===`FencedCode`)return a.push({from:e.from,to:e.to}),!1}});let o=(e,t)=>a.some(n=>e>=n.from&&t<=n.to);for(let{from:i,to:a}of t){let t=e.doc.sliceString(i,a);E.lastIndex=0;for(let e=E.exec(t);e!==null;e=E.exec(t)){let t=e[2];if(!T(t))continue;let a=i+(e.index??0)+e[1].length,s=a+t.length+1;o(a,s)||r.push(N.mark({class:n.has(t)?`cm-skill-ref`:`cm-skill-ref cm-skill-ref-missing`,attributes:{"data-skill-ref":t}}).range(a,s))}}}for(let{from:a,to:o}of t)i.iterate({from:a,to:o,enter(t){if(t.name!==`InlineCode`)return;let i=e.doc.sliceString(t.from,t.to),a=i.length-i.replace(/^`+/,``).length,o=i.length-i.replace(/`+$/,``).length,s=i.slice(a,i.length-o),c=/^\/([a-z0-9][a-z0-9-]{1,63})$/.exec(s)?.[1];if(c!==void 0&&T(c)&&n!=null)return r.push(N.mark({class:n.has(c)?`cm-skill-ref`:`cm-skill-ref cm-skill-ref-missing`,attributes:{"data-skill-ref":c}}).range(t.from+a,t.to-o)),!1;let l=u.exec(s);if(l)return r.push(N.mark({class:`cm-skill-path-link`,attributes:{"data-skill-path":l[1]}}).range(t.from+a,t.to-o)),!1}});return r.sort((e,t)=>e.from-t.from||e.value.startSide-t.value.startSide),N.set(r)}function qe(e){let t=d(e);return t===null?[]:[L.fromClass(class{decorations;constructor(e){this.decorations=Ke(e.state,e.visibleRanges,Ge())}update(e){(e.docChanged||e.viewportChanged||F(e.startState)!==F(e.state))&&(this.decorations=Ke(e.view.state,e.view.visibleRanges,Ge()))}},{decorations:e=>e.decorations}),M.domEventHandlers({mousedown(n){let r=n.target?.closest?.(`[data-skill-ref]`),i=r instanceof HTMLElement?r.dataset.skillRef:void 0;if(i!==void 0){n.preventDefault();let e=g()?.get(i);return e===void 0?p():window.location.hash=h(i,e),!0}let a=n.target?.closest?.(`.cm-skill-path-link`),o=a instanceof HTMLElement?a.dataset.skillPath:void 0;return o===void 0?!1:(n.preventDefault(),window.location.hash=ie(t,e,o),!0)}})]}var Je=N.line({attributes:{dir:`auto`}});function Ye(e){let t=new k;for(let n of e.visibleRanges)for(let r=n.from;r<=n.to;){let n=e.state.doc.lineAt(r);t.add(n.from,n.from,Je),r=n.to+1}return t.finish()}var Xe=L.fromClass(class{decorations;constructor(e){this.decorations=Ye(e)}update(e){(e.docChanged||e.viewportChanged)&&(this.decorations=Ye(e.view))}},{decorations:e=>e.decorations}),Ze=[M.perLineTextDirection.of(!0),Xe],Qe=new Set([`Link`,`Image`,`HTMLTag`,`HTMLBlock`]),$e=`cm-lint-local-target`;function et(e,t){let n=Math.min(Math.max(t.line+1,1),e.lines),r=e.line(n);return Math.min(r.from+Math.max(0,t.character),r.to)}function tt(e,t){let n=V(e,t+1,100);if(n){let e=n.resolveInner(t,1);for(;e;){if(Qe.has(e.name))return{from:e.from,to:e.to};e=e.parent}}return{from:t,to:t}}function nt(e){return e===`error`?`error`:e===`info`?`info`:`warning`}function rt(e,t){let n=e.doc,r=[];for(let i of t){if(i.source!==`links`)continue;let t=tt(e,et(n,i.range.start));r.push({from:t.from,to:Math.max(t.to,t.from),severity:nt(i.severity),message:v(i),source:`${i.source}/${i.code}`,markClass:$e})}return r}var it=P.define();function at(e){let t={findings:[]};return[Ie(e=>C()?rt(e.state,t.findings):[],{delay:300,needsRefresh:e=>e.transactions.some(e=>e.effects.some(e=>e.is(it)))}),L.define(n=>{let r=e=>{t.findings=e,n.dispatch({effects:it.of(null)}),Ve(n)},i=b(e,e=>{e.status===`loaded`&&r(e.findings)}),a=S(()=>r(t.findings));return{destroy(){i(),a()}}})]}function ot(e,t){return e.enabled?[Le(),Ie(async n=>ct(n.state.doc,await je(n.state.doc.toString(),e,t)),{delay:600})]:[]}function st(e,t){let n=Math.min(Math.max(t.line+1,1),e.lines),r=e.line(n);return Math.min(r.from+Math.max(0,t.character),r.to)}function ct(e,t){let n=[];for(let r of t){let t=st(e,r.range.start),i=st(e,r.range.end),a={from:t,to:Math.max(i,t),severity:r.severity,message:r.message,source:`${r.source}/${r.code}`},o=lt(r);o&&(a.actions=[o]),n.push(a)}return n}function lt(e){let t=e.fixes;return!t||t.length===0?null:{name:`Fix`,apply(e){let n=e.state.doc;e.dispatch({changes:t.map(e=>({from:st(n,e.range.start),to:st(n,e.range.end),insert:e.newText})),userEvent:`input.complete`})}}}var ut=[q(),U(),G(),J(),B(),K(),xe.allowMultipleSelections.of(!0),j(),H(),Oe(),Q(),W(),O(),R(),Fe(),Ce.of([...Z,...X,...Be,...z,...De,...ze])],dt=N.mark({class:`cm-link-ref-broken`}),ft=/^\s{0,3}\[([^\]]+)\]:\s/,pt=/\[([^\]]*)\]\[([^\]]*)\]/g,mt=new Set([`FencedCode`,`CodeBlock`,`InlineCode`]);function ht(e,t){let n=0,r=t.length-1;for(;n<=r;){let i=n+r>>1,a=t[i];if(e<a.from)r=i-1;else if(e>=a.to)n=i+1;else return!0}return!1}function gt(e){let t=[];return F(e).iterate({enter(e){if(mt.has(e.name))return t.push({from:e.from,to:e.to}),!1}}),t.sort((e,t)=>e.from-t.from),t}function _t(e){let t=new Set,n=[],r=e.doc,i=gt(e);for(let e=1;e<=r.lines;e++){let n=r.line(e);if(ht(n.from,i))continue;let a=ft.exec(n.text);a&&t.add(a[1].toLowerCase())}for(let e=1;e<=r.lines;e++){let t=r.line(e);if(!ht(t.from,i)&&!ft.test(t.text))for(pt.lastIndex=0;;){let e=pt.exec(t.text);if(!e)break;let r=t.from+e.index;if(ht(r,i))continue;let a=e[2]||e[1];n.push({from:r,to:r+e[0].length,label:a.toLowerCase()})}}let a=[];for(let e of n)t.has(e.label)||a.push(dt.range(e.from,e.to));return a.sort((e,t)=>e.from-t.from),N.set(a)}var vt=I.define({create(e){return _t(e)},update(e,t){return t.docChanged?_t(t.state):e},provide:e=>M.decorations.from(e)}),yt=/^(\s*(?:[-*+]|\d+[.)]) (?:\[[ x]\] )?)/,bt=N.mark({class:`cm-del`}),xt=N.line({class:`cm-table-header`,attributes:{style:`--list-hang: 2ch`}}),St=N.line({class:`cm-table-row`,attributes:{style:`--list-hang: 2ch`}});function Ct(e){let t=0;for(let n of e)if(n===` `)t++;else if(n===` `)t+=4;else break;return t}function wt(e){if(e.doc.lines<2)return null;let t=e.doc.line(1);if(!_.test(t.text))return null;for(let n=2;n<=e.doc.lines;n++){let r=e.doc.line(n);if(_.test(r.text))return{from:t.from,to:r.to}}return null}function Tt(e,t){let n=[],r=F(e),i=wt(e),a=e=>i!==null&&e>=i.from&&e<=i.to;for(let{from:i,to:o}of t)r.iterate({from:i,to:o,enter(t){if(!a(t.from)){if(t.name===`Strikethrough`){let e=t.from,r=t.to,i=t.node.cursor();if(i.firstChild())do i.name===`StrikethroughMark`&&(i.from===t.from?e=i.to:r=i.from);while(i.nextSibling());return e<r&&n.push(bt.range(e,r)),!1}if(t.name===`ListItem`){let r=e.doc.lineAt(t.from),i=yt.exec(r.text),a=i?i[1].length:2,o=N.line({class:`cm-list-item`,attributes:{style:`--list-hang: ${a}ch`}});n.push(o.range(r.from));return}if(t.name===`FencedCode`){let r=e.doc.lineAt(t.from),i=e.doc.lineAt(t.to);for(let t=r.number+1;t<i.number;t++){let r=e.doc.line(t),i=Ct(r.text),a=N.line({class:`cm-fenced-code-line`,attributes:{style:`--line-indent: ${i}`}});n.push(a.range(r.from))}return!1}if(t.name===`TableHeader`){let r=e.doc.lineAt(t.from);return n.push(xt.range(r.from)),!1}if(t.name===`TableRow`){let r=e.doc.lineAt(t.from);return n.push(St.range(r.from)),!1}if(t.name===`TableDelimiter`&&t.node.parent?.name===`Table`){let r=e.doc.lineAt(t.from);return n.push(St.range(r.from)),!1}}}});return n.sort((e,t)=>e.from-t.from||e.value.startSide-t.value.startSide),N.set(n)}var Et=class{decorations;constructor(e){this.decorations=Tt(e.state,e.visibleRanges)}update(e){(e.docChanged||e.viewportChanged||F(e.startState)!==F(e.state))&&(this.decorations=Tt(e.view.state,e.view.visibleRanges))}},Dt=L.fromClass(Et,{decorations:e=>e.decorations});function Ot(){return[Dt,vt]}function kt(e,t){let n=e.trackedOrigins;return n.has(t)?!0:t?n.has(t.constructor):!1}function At(e){let{docName:t,ytext:n,undoManager:r}=e,i=!1,a=!1,o=!1,s=(e,t)=>{i||kt(r,t.origin)||(a=!0)};return n.observe(s),{setSourceModeActive(e){if(!o&&e!==i){if(!e){i=!1,r.stopCapturing();return}a&&(r.clear(),D(`ok/source-undo/flip-clear`,{docName:t})),a=!1,i=!0}},destroy(){o||(o=!0,n.unobserve(s))}}}var jt=new WeakMap;function Mt(e){return L.define(t=>{let n=At(e);return jt.set(t,n),{destroy(){n.destroy()}}})}function Nt(e,t){let n=jt.get(e);if(!n)throw Error(`createSourceUndoFlipExtension is not installed on this EditorView`);n.setSourceModeActive(t)}var Pt=t(),Ft=P.define();function It(e,t){try{Nt(t.view,!1)}finally{try{i(t)}finally{x(e,t.view)}}}function Lt(e,t,r){let i=y(e.state.doc),a=i[t.index],o={docName:r,mode:`source`,index:t.index,sourceHeadingCount:i.length};if(!a)return ye(ue,{...o,outcome:`no-target`}),!1;let s=n(r,`outline`,()=>{e.dispatch({selection:Y.cursor(a.from),effects:M.scrollIntoView(a.from,{y:`start`})}),e.focus()});return ye(ue,{...o,outcome:s?`scrolled`:`declined`,targetLine:e.state.doc.lineAt(a.from).number}),s}function Rt(e,t,r,i){requestAnimationFrame(()=>{if(!r())return;let a=e.state.doc,o=Math.min(t.offset,a.length);n(i,`raw-mdx`,()=>{e.dispatch({selection:Y.cursor(o),effects:M.scrollIntoView(o,{y:`center`})}),e.focus()})})}function zt(e,t,r){let i=e.state.doc,a=Math.min(Math.max(t.line,1),i.lines),o=i.line(a),s=Math.min(o.from+Math.max(0,t.column-1),o.to);return n(r,`problems-row`,()=>{e.dispatch({selection:Y.cursor(s),effects:M.scrollIntoView(s,{y:`start`})}),e.focus()})}function Bt(e){let t=(0,We.c)(57),{docName:n,ytext:i,provider:o,placeholder:l,isSourceModeActive:u}=e,d=(0,$.useRef)(null),p=(0,$.useRef)(null),[h,ie]=(0,$.useState)(null);if(h)throw h;let{resolvedTheme:g}=c(),{_}=s(),v;t[0]===_?v=t[1]:(v=_({id:`xbdtfY`}),t[0]=_,t[1]=v);let y=v,{merged:b}=se(),me=(0,$.useRef)(u),x=b?.editor?.wordWrap??!0,{data:S}=Pe(n),C;t[2]!==S?.effective||t[3]!==b?(C=S?.effective??(b?.contentRules?Me(b.contentRules):Ne),t[2]=S?.effective,t[3]=b,t[4]=C):C=t[4];let w=C,T;t[5]===w?T=t[6]:(T=JSON.stringify(w),t[5]=w,t[6]=T);let E=T,D=(0,$.useRef)(null),O;t[7]!==y||t[8]!==n||t[9]!==u||t[10]!==w||t[11]!==l||t[12]!==o||t[13]!==g||t[14]!==x||t[15]!==i?(O=()=>{let e=d.current;if(!e)return;let t=o.configuration.name??``,s,c=Ht;try{s=a({docName:t,container:e,sizeStats:{viewCount:0,bytes:i.length},factory:e=>{let a=null,s=new be(i);try{let u=ae({ydoc:o.document,ytext:i,docName:t}),d=new A,f=new A,p=new A,ne=new A,m=new M({state:xe.create({doc:i.toString(),extensions:[Te(y),ut,Ze,Re({scrollToMatch:e=>r(t,`find-match`)?M.scrollIntoView(e,{y:`start`}):Ft.of(null)}),Ce.of([Ee]),Ue(i,o.awareness,{undoManager:s}),Ce.of(He),Mt({docName:t,ytext:i,undoManager:s}),...ge({themeCompartment:d,resolvedTheme:g,ydoc:o.document,wordWrapCompartment:f,wordWrap:x,currentDocName:t}),Ot(),qe(t),te(),ne.of(ot(w,n)),at(n),u,M.updateListener.of(e=>{oe(e)&&ee(t)}),M.updateListener.of(e=>{!e.selectionSet&&!e.docChanged||(a!==null&&clearTimeout(a),a=setTimeout(()=>{a=null,pe(t,`source`,ce(e.view)),Ae(t,`source`,ke(e.view,t))},120))}),p.of(Se(l??``)),M.theme({"&":{height:`100%`}}),M.scrollMargins.of(Vt)]}),parent:e});pe(t,`source`,ce(m)),Ae(t,`source`,ke(m,t));let h=m.contentDOM;return h.addEventListener(`keydown`,c),h.addEventListener(`paste`,c),h.addEventListener(`drop`,c),h.addEventListener(`cut`,c),{view:m,ydoc:o.document,ytext:i,provider:o,undoManager:s,themeCompartment:d,wordWrapCompartment:f,placeholderCompartment:p,lintCompartment:ne}}catch(e){let t=e;throw s.destroy(),t}}}),D.current=s,p.current=s.view,Nt(s.view,u),ve(n,s.view,`sourceEditor`),fe()&&s.view.focus()}catch(e){let t=e;console.error(`[SourceEditor] mountCmEditor failed`,t),D.current=null,p.current=null,ie(t instanceof Error?t:Error(String(t)))}return()=>{let e=D.current;D.current=null,p.current=null,e&&It(n,e)}},t[7]=y,t[8]=n,t[9]=u,t[10]=w,t[11]=l,t[12]=o,t[13]=g,t[14]=x,t[15]=i,t[16]=O):O=t[16];let k;t[17]!==o||t[18]!==i?(k=[i,o],t[17]=o,t[18]=i,t[19]=k):k=t[19],(0,$.useEffect)(O,k);let j,N;t[20]===u?(j=t[21],N=t[22]):(j=()=>{me.current=u;let e=p.current;e&&Nt(e,u)},N=[u],t[20]=u,t[21]=j,t[22]=N),(0,$.useEffect)(j,N);let P,F;t[23]===n?(P=t[24],F=t[25]):(P=()=>{},F=[n],t[23]=n,t[24]=P,t[25]=F),(0,$.useEffect)(P,F);let I,L;t[26]===g?(I=t[27],L=t[28]):(I=()=>{let e=D.current;e&&e.view.dispatch({effects:e.themeCompartment.reconfigure(g===`dark`?he:_e)})},L=[g],t[26]=g,t[27]=I,t[28]=L),(0,$.useEffect)(I,L);let R,z;t[29]===x?(R=t[30],z=t[31]):(R=()=>{let e=D.current;e&&e.view.dispatch({effects:e.wordWrapCompartment.reconfigure(x?M.lineWrapping:[])})},z=[x],t[29]=x,t[30]=R,t[31]=z),(0,$.useEffect)(R,z);let B,V;t[32]===l?(B=t[33],V=t[34]):(B=()=>{let e=D.current;e&&e.view.dispatch({effects:e.placeholderCompartment.reconfigure(Se(l??``))})},V=[l],t[32]=l,t[33]=B,t[34]=V),(0,$.useEffect)(B,V);let H,U;t[35]===y?(H=t[36],U=t[37]):(H=()=>{let e=D.current;e&&we(e.view,y)},U=[y],t[35]=y,t[36]=H,t[37]=U),(0,$.useEffect)(H,U);let W;t[38]!==n||t[39]!==w?(W=()=>{let e=D.current;e&&e.view.dispatch({effects:e.lintCompartment.reconfigure(ot(w,n))})},t[38]=n,t[39]=w,t[40]=W):W=t[40];let G;t[41]===E?G=t[42]:(G=[E],t[41]=E,t[42]=G),(0,$.useEffect)(W,G);let K,q;t[43]!==n||t[44]!==u?(K=()=>{let e=function(e){let t=e.detail;if(!t||t.docName!==n||t.mode!==`source`||!u)return;let r=p.current;if(!r){ye(ue,{docName:n,mode:`source`,index:t.index,outcome:`no-view`});return}Lt(r,t,n)&&t.onNavigated?.(r.contentDOM),f(n)};return window.addEventListener(de,e),()=>window.removeEventListener(de,e)},q=[n,u],t[43]=n,t[44]=u,t[45]=K,t[46]=q):(K=t[45],q=t[46]),(0,$.useEffect)(K,q);let J,Y;t[47]!==n||t[48]!==u?(J=()=>{let e=function(e){let t=e.detail;if(!t||t.docName!==n||!u)return;let r=p.current;r&&zt(r,t,n)&&(f(n),t.onNavigated?.(r.contentDOM))};return window.addEventListener(le,e),()=>window.removeEventListener(le,e)},Y=[n,u],t[47]=n,t[48]=u,t[49]=J,t[50]=Y):(J=t[49],Y=t[50]),(0,$.useEffect)(J,Y);let X,Z;t[51]!==n||t[52]!==u||t[53]!==o?(X=()=>{if(!u)return;let e=p.current;if(!e)return;let t=m(n);if(!t)return;if(t.kind!==`selection-offset`){re(n),t.kind===`outline`?Lt(e,t.detail,n)&&t.detail.onNavigated?.(e.contentDOM):t.kind===`lint`?zt(e,t.detail,n)&&t.detail.onNavigated?.(e.contentDOM):t.kind===`raw-mdx`&&Rt(e,t.detail,()=>me.current,n);return}let r=!1,i=null;return queueMicrotask(()=>{if(r)return;let t=m(n);t?.kind===`selection-offset`&&(i=ne({view:e,docName:n,navigation:t,ydoc:o.document,transition:{from:`wysiwyg`,to:`source`}}),i&&re(n))}),()=>{r=!0,i?.cancel(`mode-flip`)}},Z=[n,u,o],t[51]=n,t[52]=u,t[53]=o,t[54]=X,t[55]=Z):(X=t[54],Z=t[55]),(0,$.useEffect)(X,Z);let Q;return t[56]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,Pt.jsx)(`div`,{ref:d,className:`source-editor h-full pb-3`}),t[56]=Q):Q=t[56],Q}function Vt(){return{top:w()}}function Ht(){return me()}export{Bt as SourceEditor,Rt as applyRawMdxNavigation};
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{L as n,M as r,m as i,p as a}from"./Mermaid-CnbT83v8.js";import{t as o}from"./react-f2sANaYj.js";import{r as s}from"./dist-Nvb76hAm.js";import{n as c}from"./dist-PQ5KMVDh.js";import{t as l}from"./compiler-runtime-BfE3aGVn.js";import{Cn as ee,Gt as u,Jt as d,K as f,Q as te,Qt as p,U as ne,Y as m,in as h,q as re,qt as ie,rn as g,wt as ae,xn as oe}from"./DocumentContext-CpIPRs5a.js";import{_t as _}from"./schemas-api-C0HskKob.js";import{n as se}from"./config-context-DmzX_4s_.js";import{T as ce,b as v,c as le,n as ue,o as y,r as de,t as fe,v as b,w as pe}from"./typing-burst-detector-R7tjAT4x.js";import{Q as me,Vn as x,a as he,gt as S,i as ge,mt as C,o as _e,x as w,zn as ve}from"./CodeMirrorPropInput-DRqfG7N4.js";import{a as T,i as E}from"./constants-skills-CIijCHaN.js";import{t as ye}from"./diagnostic-breadcrumb-SSTr0wqA.js";import{n as D}from"./perf-CCuuR_Xb.js";import{m as be}from"./config-provider-CX3e9KjB.js";import{$ as O,At as k,Ct as A,E as j,J as M,K as N,Mt as P,N as F,Nt as I,Tt as xe,X as L,at as R,b as z,et as B,ft as Se,g as V,l as H,lt as Ce,ot as U,pt as W,st as G,tt as K,ut as q,v as J,wt as Y}from"./dist-DDahyGUu.js";import{i as we,r as Te}from"./cm-theme-0t8b_a5N.js";import{i as Ee,t as X}from"./dist-BMmhsNLt.js";import{i as Z,n as Q,o as De,r as Oe}from"./dist-DLoZ_P3d.js";import{o as ke,r as Ae}from"./selection-context-DKivCAwn.js";import{C as je,D as Me,t as Ne}from"./markdown-lint-C_6WZKjR.js";import{l as Pe}from"./lint-config-client-MPuLlXpZ.js";import{a as Fe,i as Ie,n as Le,o as Re,r as ze,s as Be,t as Ve}from"./dist-DI5mwVj3.js";import{n as He,t as Ue}from"./src-C8M8viko.js";var $=e(o(),1),We=l();function Ge(){let e=g();return e===null?null:new Set(e.keys())}function Ke(e,t,n){let r=[],i=F(e);if(n!=null){let a=[];for(let{from:e,to:n}of t)i.iterate({from:e,to:n,enter(e){if(e.name===`InlineCode`||e.name===`FencedCode`)return a.push({from:e.from,to:e.to}),!1}});let o=(e,t)=>a.some(n=>e>=n.from&&t<=n.to);for(let{from:i,to:a}of t){let t=e.doc.sliceString(i,a);E.lastIndex=0;for(let e=E.exec(t);e!==null;e=E.exec(t)){let t=e[2];if(!T(t))continue;let a=i+(e.index??0)+e[1].length,s=a+t.length+1;o(a,s)||r.push(N.mark({class:n.has(t)?`cm-skill-ref`:`cm-skill-ref cm-skill-ref-missing`,attributes:{"data-skill-ref":t}}).range(a,s))}}}for(let{from:a,to:o}of t)i.iterate({from:a,to:o,enter(t){if(t.name!==`InlineCode`)return;let i=e.doc.sliceString(t.from,t.to),a=i.length-i.replace(/^`+/,``).length,o=i.length-i.replace(/`+$/,``).length,s=i.slice(a,i.length-o),c=/^\/([a-z0-9][a-z0-9-]{1,63})$/.exec(s)?.[1];if(c!==void 0&&T(c)&&n!=null)return r.push(N.mark({class:n.has(c)?`cm-skill-ref`:`cm-skill-ref cm-skill-ref-missing`,attributes:{"data-skill-ref":c}}).range(t.from+a,t.to-o)),!1;let l=u.exec(s);if(l)return r.push(N.mark({class:`cm-skill-path-link`,attributes:{"data-skill-path":l[1]}}).range(t.from+a,t.to-o)),!1}});return r.sort((e,t)=>e.from-t.from||e.value.startSide-t.value.startSide),N.set(r)}function qe(e){let t=d(e);return t===null?[]:[L.fromClass(class{decorations;constructor(e){this.decorations=Ke(e.state,e.visibleRanges,Ge())}update(e){(e.docChanged||e.viewportChanged||F(e.startState)!==F(e.state))&&(this.decorations=Ke(e.view.state,e.view.visibleRanges,Ge()))}},{decorations:e=>e.decorations}),M.domEventHandlers({mousedown(n){let r=n.target?.closest?.(`[data-skill-ref]`),i=r instanceof HTMLElement?r.dataset.skillRef:void 0;if(i!==void 0){n.preventDefault();let e=g()?.get(i);return e===void 0?p():window.location.hash=h(i,e),!0}let a=n.target?.closest?.(`.cm-skill-path-link`),o=a instanceof HTMLElement?a.dataset.skillPath:void 0;return o===void 0?!1:(n.preventDefault(),window.location.hash=ie(t,e,o),!0)}})]}var Je=N.line({attributes:{dir:`auto`}});function Ye(e){let t=new k;for(let n of e.visibleRanges)for(let r=n.from;r<=n.to;){let n=e.state.doc.lineAt(r);t.add(n.from,n.from,Je),r=n.to+1}return t.finish()}var Xe=L.fromClass(class{decorations;constructor(e){this.decorations=Ye(e)}update(e){(e.docChanged||e.viewportChanged)&&(this.decorations=Ye(e.view))}},{decorations:e=>e.decorations}),Ze=[M.perLineTextDirection.of(!0),Xe],Qe=new Set([`Link`,`Image`,`HTMLTag`,`HTMLBlock`]),$e=`cm-lint-local-target`;function et(e,t){let n=Math.min(Math.max(t.line+1,1),e.lines),r=e.line(n);return Math.min(r.from+Math.max(0,t.character),r.to)}function tt(e,t){let n=V(e,t+1,100);if(n){let e=n.resolveInner(t,1);for(;e;){if(Qe.has(e.name))return{from:e.from,to:e.to};e=e.parent}}return{from:t,to:t}}function nt(e){return e===`error`?`error`:e===`info`?`info`:`warning`}function rt(e,t){let n=e.doc,r=[];for(let i of t){if(i.source!==`links`)continue;let t=tt(e,et(n,i.range.start));r.push({from:t.from,to:Math.max(t.to,t.from),severity:nt(i.severity),message:v(i),source:`${i.source}/${i.code}`,markClass:$e})}return r}var it=P.define();function at(e){let t={findings:[]};return[Ie(e=>C()?rt(e.state,t.findings):[],{delay:300,needsRefresh:e=>e.transactions.some(e=>e.effects.some(e=>e.is(it)))}),L.define(n=>{let r=e=>{t.findings=e,n.dispatch({effects:it.of(null)}),Ve(n)},i=b(e,e=>{e.status===`loaded`&&r(e.findings)}),a=S(()=>r(t.findings));return{destroy(){i(),a()}}})]}function ot(e,t){return e.enabled?[Le(),Ie(async n=>ct(n.state.doc,await je(n.state.doc.toString(),e,t)),{delay:600})]:[]}function st(e,t){let n=Math.min(Math.max(t.line+1,1),e.lines),r=e.line(n);return Math.min(r.from+Math.max(0,t.character),r.to)}function ct(e,t){let n=[];for(let r of t){let t=st(e,r.range.start),i=st(e,r.range.end),a={from:t,to:Math.max(i,t),severity:r.severity,message:r.message,source:`${r.source}/${r.code}`},o=lt(r);o&&(a.actions=[o]),n.push(a)}return n}function lt(e){let t=e.fixes;return!t||t.length===0?null:{name:`Fix`,apply(e){let n=e.state.doc;e.dispatch({changes:t.map(e=>({from:st(n,e.range.start),to:st(n,e.range.end),insert:e.newText})),userEvent:`input.complete`})}}}var ut=[q(),U(),G(),J(),B(),K(),xe.allowMultipleSelections.of(!0),j(),H(),Oe(),Q(),W(),O(),R(),Fe(),Ce.of([...Z,...X,...Be,...z,...De,...ze])],dt=N.mark({class:`cm-link-ref-broken`}),ft=/^\s{0,3}\[([^\]]+)\]:\s/,pt=/\[([^\]]*)\]\[([^\]]*)\]/g,mt=new Set([`FencedCode`,`CodeBlock`,`InlineCode`]);function ht(e,t){let n=0,r=t.length-1;for(;n<=r;){let i=n+r>>1,a=t[i];if(e<a.from)r=i-1;else if(e>=a.to)n=i+1;else return!0}return!1}function gt(e){let t=[];return F(e).iterate({enter(e){if(mt.has(e.name))return t.push({from:e.from,to:e.to}),!1}}),t.sort((e,t)=>e.from-t.from),t}function _t(e){let t=new Set,n=[],r=e.doc,i=gt(e);for(let e=1;e<=r.lines;e++){let n=r.line(e);if(ht(n.from,i))continue;let a=ft.exec(n.text);a&&t.add(a[1].toLowerCase())}for(let e=1;e<=r.lines;e++){let t=r.line(e);if(!ht(t.from,i)&&!ft.test(t.text))for(pt.lastIndex=0;;){let e=pt.exec(t.text);if(!e)break;let r=t.from+e.index;if(ht(r,i))continue;let a=e[2]||e[1];n.push({from:r,to:r+e[0].length,label:a.toLowerCase()})}}let a=[];for(let e of n)t.has(e.label)||a.push(dt.range(e.from,e.to));return a.sort((e,t)=>e.from-t.from),N.set(a)}var vt=I.define({create(e){return _t(e)},update(e,t){return t.docChanged?_t(t.state):e},provide:e=>M.decorations.from(e)}),yt=/^(\s*(?:[-*+]|\d+[.)]) (?:\[[ x]\] )?)/,bt=N.mark({class:`cm-del`}),xt=N.line({class:`cm-table-header`,attributes:{style:`--list-hang: 2ch`}}),St=N.line({class:`cm-table-row`,attributes:{style:`--list-hang: 2ch`}});function Ct(e){let t=0;for(let n of e)if(n===` `)t++;else if(n===` `)t+=4;else break;return t}function wt(e){if(e.doc.lines<2)return null;let t=e.doc.line(1);if(!_.test(t.text))return null;for(let n=2;n<=e.doc.lines;n++){let r=e.doc.line(n);if(_.test(r.text))return{from:t.from,to:r.to}}return null}function Tt(e,t){let n=[],r=F(e),i=wt(e),a=e=>i!==null&&e>=i.from&&e<=i.to;for(let{from:i,to:o}of t)r.iterate({from:i,to:o,enter(t){if(!a(t.from)){if(t.name===`Strikethrough`){let e=t.from,r=t.to,i=t.node.cursor();if(i.firstChild())do i.name===`StrikethroughMark`&&(i.from===t.from?e=i.to:r=i.from);while(i.nextSibling());return e<r&&n.push(bt.range(e,r)),!1}if(t.name===`ListItem`){let r=e.doc.lineAt(t.from),i=yt.exec(r.text),a=i?i[1].length:2,o=N.line({class:`cm-list-item`,attributes:{style:`--list-hang: ${a}ch`}});n.push(o.range(r.from));return}if(t.name===`FencedCode`){let r=e.doc.lineAt(t.from),i=e.doc.lineAt(t.to);for(let t=r.number+1;t<i.number;t++){let r=e.doc.line(t),i=Ct(r.text),a=N.line({class:`cm-fenced-code-line`,attributes:{style:`--line-indent: ${i}`}});n.push(a.range(r.from))}return!1}if(t.name===`TableHeader`){let r=e.doc.lineAt(t.from);return n.push(xt.range(r.from)),!1}if(t.name===`TableRow`){let r=e.doc.lineAt(t.from);return n.push(St.range(r.from)),!1}if(t.name===`TableDelimiter`&&t.node.parent?.name===`Table`){let r=e.doc.lineAt(t.from);return n.push(St.range(r.from)),!1}}}});return n.sort((e,t)=>e.from-t.from||e.value.startSide-t.value.startSide),N.set(n)}var Et=class{decorations;constructor(e){this.decorations=Tt(e.state,e.visibleRanges)}update(e){(e.docChanged||e.viewportChanged||F(e.startState)!==F(e.state))&&(this.decorations=Tt(e.view.state,e.view.visibleRanges))}},Dt=L.fromClass(Et,{decorations:e=>e.decorations});function Ot(){return[Dt,vt]}function kt(e,t){let n=e.trackedOrigins;return n.has(t)?!0:t?n.has(t.constructor):!1}function At(e){let{docName:t,ytext:n,undoManager:r}=e,i=!1,a=!1,o=!1,s=(e,t)=>{i||kt(r,t.origin)||(a=!0)};return n.observe(s),{setSourceModeActive(e){if(!o&&e!==i){if(!e){i=!1,r.stopCapturing();return}a&&(r.clear(),D(`ok/source-undo/flip-clear`,{docName:t})),a=!1,i=!0}},destroy(){o||(o=!0,n.unobserve(s))}}}var jt=new WeakMap;function Mt(e){return L.define(t=>{let n=At(e);return jt.set(t,n),{destroy(){n.destroy()}}})}function Nt(e,t){let n=jt.get(e);if(!n)throw Error(`createSourceUndoFlipExtension is not installed on this EditorView`);n.setSourceModeActive(t)}var Pt=t(),Ft=P.define();function It(e,t){try{Nt(t.view,!1)}finally{try{i(t)}finally{x(e,t.view)}}}function Lt(e,t,r){let i=y(e.state.doc),a=i[t.index],o={docName:r,mode:`source`,index:t.index,sourceHeadingCount:i.length};if(!a)return ye(ue,{...o,outcome:`no-target`}),!1;let s=n(r,`outline`,()=>{e.dispatch({selection:Y.cursor(a.from),effects:M.scrollIntoView(a.from,{y:`start`})}),e.focus()});return ye(ue,{...o,outcome:s?`scrolled`:`declined`,targetLine:e.state.doc.lineAt(a.from).number}),s}function Rt(e,t,r,i){requestAnimationFrame(()=>{if(!r())return;let a=e.state.doc,o=Math.min(t.offset,a.length);n(i,`raw-mdx`,()=>{e.dispatch({selection:Y.cursor(o),effects:M.scrollIntoView(o,{y:`center`})}),e.focus()})})}function zt(e,t,r){let i=e.state.doc,a=Math.min(Math.max(t.line,1),i.lines),o=i.line(a),s=Math.min(o.from+Math.max(0,t.column-1),o.to);return n(r,`problems-row`,()=>{e.dispatch({selection:Y.cursor(s),effects:M.scrollIntoView(s,{y:`start`})}),e.focus()})}function Bt(e){let t=(0,We.c)(57),{docName:n,ytext:i,provider:o,placeholder:l,isSourceModeActive:u}=e,d=(0,$.useRef)(null),p=(0,$.useRef)(null),[h,ie]=(0,$.useState)(null);if(h)throw h;let{resolvedTheme:g}=c(),{_}=s(),v;t[0]===_?v=t[1]:(v=_({id:`xbdtfY`}),t[0]=_,t[1]=v);let y=v,{merged:b}=se(),me=(0,$.useRef)(u),x=b?.editor?.wordWrap??!0,{data:S}=Pe(n),C;t[2]!==S?.effective||t[3]!==b?(C=S?.effective??(b?.contentRules?Me(b.contentRules):Ne),t[2]=S?.effective,t[3]=b,t[4]=C):C=t[4];let w=C,T;t[5]===w?T=t[6]:(T=JSON.stringify(w),t[5]=w,t[6]=T);let E=T,D=(0,$.useRef)(null),O;t[7]!==y||t[8]!==n||t[9]!==u||t[10]!==w||t[11]!==l||t[12]!==o||t[13]!==g||t[14]!==x||t[15]!==i?(O=()=>{let e=d.current;if(!e)return;let t=o.configuration.name??``,s,c=Ht;try{s=a({docName:t,container:e,sizeStats:{viewCount:0,bytes:i.length},factory:e=>{let a=null,s=new be(i);try{let u=ae({ydoc:o.document,ytext:i,docName:t}),d=new A,f=new A,p=new A,ne=new A,m=new M({state:xe.create({doc:i.toString(),extensions:[Te(y),ut,Ze,Re({scrollToMatch:e=>r(t,`find-match`)?M.scrollIntoView(e,{y:`start`}):Ft.of(null)}),Ce.of([Ee]),Ue(i,o.awareness,{undoManager:s}),Ce.of(He),Mt({docName:t,ytext:i,undoManager:s}),...ge({themeCompartment:d,resolvedTheme:g,ydoc:o.document,wordWrapCompartment:f,wordWrap:x,currentDocName:t}),Ot(),qe(t),te(),ne.of(ot(w,n)),at(n),u,M.updateListener.of(e=>{oe(e)&&ee(t)}),M.updateListener.of(e=>{!e.selectionSet&&!e.docChanged||(a!==null&&clearTimeout(a),a=setTimeout(()=>{a=null,pe(t,`source`,ce(e.view)),Ae(t,`source`,ke(e.view,t))},120))}),p.of(Se(l??``)),M.theme({"&":{height:`100%`}}),M.scrollMargins.of(Vt)]}),parent:e});pe(t,`source`,ce(m)),Ae(t,`source`,ke(m,t));let h=m.contentDOM;return h.addEventListener(`keydown`,c),h.addEventListener(`paste`,c),h.addEventListener(`drop`,c),h.addEventListener(`cut`,c),{view:m,ydoc:o.document,ytext:i,provider:o,undoManager:s,themeCompartment:d,wordWrapCompartment:f,placeholderCompartment:p,lintCompartment:ne}}catch(e){let t=e;throw s.destroy(),t}}}),D.current=s,p.current=s.view,Nt(s.view,u),ve(n,s.view,`sourceEditor`),fe()&&s.view.focus()}catch(e){let t=e;console.error(`[SourceEditor] mountCmEditor failed`,t),D.current=null,p.current=null,ie(t instanceof Error?t:Error(String(t)))}return()=>{let e=D.current;D.current=null,p.current=null,e&&It(n,e)}},t[7]=y,t[8]=n,t[9]=u,t[10]=w,t[11]=l,t[12]=o,t[13]=g,t[14]=x,t[15]=i,t[16]=O):O=t[16];let k;t[17]!==o||t[18]!==i?(k=[i,o],t[17]=o,t[18]=i,t[19]=k):k=t[19],(0,$.useEffect)(O,k);let j,N;t[20]===u?(j=t[21],N=t[22]):(j=()=>{me.current=u;let e=p.current;e&&Nt(e,u)},N=[u],t[20]=u,t[21]=j,t[22]=N),(0,$.useEffect)(j,N);let P,F;t[23]===n?(P=t[24],F=t[25]):(P=()=>{},F=[n],t[23]=n,t[24]=P,t[25]=F),(0,$.useEffect)(P,F);let I,L;t[26]===g?(I=t[27],L=t[28]):(I=()=>{let e=D.current;e&&e.view.dispatch({effects:e.themeCompartment.reconfigure(g===`dark`?he:_e)})},L=[g],t[26]=g,t[27]=I,t[28]=L),(0,$.useEffect)(I,L);let R,z;t[29]===x?(R=t[30],z=t[31]):(R=()=>{let e=D.current;e&&e.view.dispatch({effects:e.wordWrapCompartment.reconfigure(x?M.lineWrapping:[])})},z=[x],t[29]=x,t[30]=R,t[31]=z),(0,$.useEffect)(R,z);let B,V;t[32]===l?(B=t[33],V=t[34]):(B=()=>{let e=D.current;e&&e.view.dispatch({effects:e.placeholderCompartment.reconfigure(Se(l??``))})},V=[l],t[32]=l,t[33]=B,t[34]=V),(0,$.useEffect)(B,V);let H,U;t[35]===y?(H=t[36],U=t[37]):(H=()=>{let e=D.current;e&&we(e.view,y)},U=[y],t[35]=y,t[36]=H,t[37]=U),(0,$.useEffect)(H,U);let W;t[38]!==n||t[39]!==w?(W=()=>{let e=D.current;e&&e.view.dispatch({effects:e.lintCompartment.reconfigure(ot(w,n))})},t[38]=n,t[39]=w,t[40]=W):W=t[40];let G;t[41]===E?G=t[42]:(G=[E],t[41]=E,t[42]=G),(0,$.useEffect)(W,G);let K,q;t[43]!==n||t[44]!==u?(K=()=>{let e=function(e){let t=e.detail;if(!t||t.docName!==n||t.mode!==`source`||!u)return;let r=p.current;if(!r){ye(ue,{docName:n,mode:`source`,index:t.index,outcome:`no-view`});return}Lt(r,t,n)&&t.onNavigated?.(r.contentDOM),f(n)};return window.addEventListener(de,e),()=>window.removeEventListener(de,e)},q=[n,u],t[43]=n,t[44]=u,t[45]=K,t[46]=q):(K=t[45],q=t[46]),(0,$.useEffect)(K,q);let J,Y;t[47]!==n||t[48]!==u?(J=()=>{let e=function(e){let t=e.detail;if(!t||t.docName!==n||!u)return;let r=p.current;r&&zt(r,t,n)&&(f(n),t.onNavigated?.(r.contentDOM))};return window.addEventListener(le,e),()=>window.removeEventListener(le,e)},Y=[n,u],t[47]=n,t[48]=u,t[49]=J,t[50]=Y):(J=t[49],Y=t[50]),(0,$.useEffect)(J,Y);let X,Z;t[51]!==n||t[52]!==u||t[53]!==o?(X=()=>{if(!u)return;let e=p.current;if(!e)return;let t=m(n);if(!t)return;if(t.kind!==`selection-offset`){re(n),t.kind===`outline`?Lt(e,t.detail,n)&&t.detail.onNavigated?.(e.contentDOM):t.kind===`lint`?zt(e,t.detail,n)&&t.detail.onNavigated?.(e.contentDOM):t.kind===`raw-mdx`&&Rt(e,t.detail,()=>me.current,n);return}let r=!1,i=null;return queueMicrotask(()=>{if(r)return;let t=m(n);t?.kind===`selection-offset`&&(i=ne({view:e,docName:n,navigation:t,ydoc:o.document,transition:{from:`wysiwyg`,to:`source`}}),i&&re(n))}),()=>{r=!0,i?.cancel(`mode-flip`)}},Z=[n,u,o],t[51]=n,t[52]=u,t[53]=o,t[54]=X,t[55]=Z):(X=t[54],Z=t[55]),(0,$.useEffect)(X,Z);let Q;return t[56]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,Pt.jsx)(`div`,{ref:d,className:`source-editor h-full pb-3`}),t[56]=Q):Q=t[56],Q}function Vt(){return{top:w()}}function Ht(){return me()}export{Bt as SourceEditor,Rt as applyRawMdxNavigation};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{i as o,n as s,t as c}from"./tooltip-BjuCvy5N.js";import{n as ee,r as te,t as ne}from"./collapsible-BKbszYZV.js";import{i as l,n as u,o as d,s as f,t as p}from"./select-BuIwBy1a.js";import{n as m,t as h}from"./toggle-group-aEGkM0EG.js";import{t as g}from"./button-DzgjsZzC.js";import{n as _}from"./dist-Bs8bPT30.js";import{d as re,f as ie,h as ae,m as oe,p as se}from"./share-D-LUU2aX-iU4CJWyG.js";import{n as ce}from"./config-context-DmzX_4s_.js";import{C as le,T as ue,a as de,c as fe,h as pe,l as me,m as he,n as ge,o as _e,p as ve,t as ye,u as be,v as xe,w as Se,x as Ce}from"./SyncStatusBadge-CcDPFZ-j.js";import{t as we}from"./arrow-up-right-BuM5_PNk.js";import{t as Te}from"./chevron-right-D04ny0op.js";import{t as Ee}from"./use-settings-route-Bv3gbPs-.js";import"./config-provider-Cip-TSZl.js";import{n as De}from"./use-git-sync-status-BupWCxHX.js";import{t as Oe}from"./skeleton-CjpLzvC2.js";import{t as ke}from"./AuthModal-CYGu_t54.js";import{t as v}from"./PublishToGitHubDialog-CxoN1EVl.js";import{n as Ae,t as je}from"./SettingsSectionHeader-2IUjvHgB.js";var Me=a(),y=e(n(),1),b=t(),x=`data-[state=on]:border-primary data-[state=on]:bg-primary data-[state=on]:text-primary-foreground data-[state=on]:hover:bg-primary/90`;function S(){let e=(0,Me.c)(4),[t,n]=(0,y.useState)(!1),r=(0,y.useRef)(null),i=(0,y.useRef)(null),a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,b.jsx)(C,{onPublish:()=>n(!0),setUpSyncingRef:r}),e[0]=a):a=e[0];let o;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(o=()=>(r.current??i.current)?.focus(),e[1]=o):o=e[1];let s;return e[2]===t?s=e[3]:(s=(0,b.jsxs)(`section`,{ref:i,"aria-labelledby":`settings-sync-title`,tabIndex:-1,"data-testid":`settings-sync-section`,children:[a,(0,b.jsx)(v,{open:t,onOpenChange:n,returnFocus:o})]}),e[2]=t,e[3]=s),s}function C(e){let t=(0,Me.c)(149),{onPublish:n,setUpSyncingRef:a}=e,{_:v}=i(),{status:S,fetchError:C}=De(),{projectConfig:Fe,projectLocalConfig:Ie,projectLocalSynced:Le,projectSynced:Re}=ce(),ze=ue(),Be=Ce(),Ve=le(),[He,Ue]=(0,y.useState)(!1),We,Ge;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(We=()=>{Ee()&&Ue(!0)},Ge=[],t[0]=We,t[1]=Ge):(We=t[0],Ge=t[1]),(0,y.useEffect)(We,Ge);let w=oe(Ie?.autoSync),Ke=w.pushIntervalSeconds<w.pullIntervalSeconds,qe=Ie?.autoSync,Je;t[2]===qe?Je=t[3]:(Je=ae(qe),t[2]=qe,t[3]=Je);let Ye=Je,Xe=Fe?.autoSync?.default,Ze;t[4]===Xe?Ze=t[5]:(Ze=se(Xe),t[4]=Xe,t[5]=Ze);let Qe=Ze,$e;t[6]!==Ye||t[7]!==S?($e=Ye??(S===null?`off`:xe(S)),t[6]=Ye,t[7]=S,t[8]=$e):$e=t[8];let T=$e,E=Le&&Ye===null&&Qe!==null,{confirmOpen:et,setConfirmOpen:tt,pendingMode:nt,onModeSelect:D,onTurnOff:rt,onKeepCurrent:it,onConfirm:at}=Se(ze,T),[ot,O]=(0,y.useState)(!1),k=!Le;if(S===null){let e=C!==null,n=e?`settings-sync-unavailable`:`settings-sync-loading`,i;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,b.jsx)(je,{titleId:`settings-sync-title`,title:(0,b.jsx)(r,{id:`Nu4DdT`}),scope:`project-local`,level:`block`}),t[9]=i):i=t[9];let a=!e,o;t[10]!==C||t[11]!==e?(o=e?(0,b.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:C===`network`?(0,b.jsx)(r,{id:`epGMvx`}):(0,b.jsx)(r,{id:`wLRCZ8`})}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(`span`,{className:`sr-only`,children:(0,b.jsx)(r,{id:`OgvwrM`})}),(0,b.jsx)(Oe,{className:`h-24`})]}),t[10]=C,t[11]=e,t[12]=o):o=t[12];let s;t[13]!==a||t[14]!==o?(s=(0,b.jsx)(`div`,{role:`status`,"aria-live":`polite`,"aria-busy":a,children:o}),t[13]=a,t[14]=o,t[15]=s):s=t[15];let c;return t[16]!==s||t[17]!==n?(c=(0,b.jsxs)(`div`,{className:`space-y-3`,"data-testid":n,children:[i,s]}),t[16]=s,t[17]=n,t[18]=c):c=t[18],c}if(!S.hasRemote){let e=T!==`off`,i;t[19]!==rt||t[20]!==a?(i=()=>{rt()&&a.current?.focus()},t[19]=rt,t[20]=a,t[21]=i):i=t[21];let o=i,s;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,b.jsx)(r,{id:`Nu4DdT`}),t[22]=s):s=t[22];let c;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,b.jsx)(je,{titleId:`settings-sync-title`,title:s,scope:`project-local`,level:`block`,children:(0,b.jsx)(r,{id:`AiNMQ7`})}),t[23]=c):c=t[23];let l;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,b.jsx)(`div`,{className:`text-sm font-medium`,children:(0,b.jsx)(r,{id:`3_6U6f`})}),t[24]=l):l=t[24];let u;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,b.jsxs)(`div`,{className:`space-y-0.5`,children:[l,(0,b.jsx)(`p`,{className:`text-muted-foreground text-1sm`,children:(0,b.jsx)(r,{id:`i92eAT`})})]}),t[25]=u):u=t[25];let d;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,b.jsx)(r,{id:`zkz0Fg`}),t[26]=d):d=t[26];let f;t[27]!==n||t[28]!==a?(f=(0,b.jsxs)(`div`,{className:`flex items-center justify-between gap-3 rounded-md border p-3`,children:[u,(0,b.jsx)(g,{ref:a,onClick:n,"data-testid":`settings-sync-setup`,children:d})]}),t[27]=n,t[28]=a,t[29]=f):f=t[29];let p;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,b.jsx)(te,{asChild:!0,children:(0,b.jsxs)(g,{variant:`ghost`,size:`sm`,className:`group gap-1 px-1.5 text-muted-foreground`,children:[(0,b.jsx)(Te,{className:`size-3.5 transition-transform group-data-[state=open]:rotate-90`,"aria-hidden":!0}),(0,b.jsx)(r,{id:`6caB2T`})]})}),t[30]=p):p=t[30];let m;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,b.jsxs)(ne,{children:[p,(0,b.jsx)(ee,{className:`px-1.5 pt-2 text-sm text-muted-foreground`,children:(0,b.jsx)(r,{id:`44DSl0`,components:{0:(0,b.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 font-mono text-xs`})}})})]}),t[31]=m):m=t[31];let h;t[32]!==e||t[33]!==k||t[34]!==o?(h=e?(0,b.jsxs)(`div`,{className:`flex items-start gap-2 rounded-md border p-3`,"data-testid":`settings-sync-no-remote-auto-on`,children:[(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground flex-1 min-w-0`,children:(0,b.jsx)(r,{id:`9U-7Xv`})}),(0,b.jsx)(g,{variant:`outline`,size:`xs`,className:`self-start`,onClick:o,disabled:k,"data-testid":`settings-sync-no-remote-turn-off`,children:(0,b.jsx)(r,{id:`v6Glry`})})]}):null,t[32]=e,t[33]=k,t[34]=o,t[35]=h):h=t[35];let _;return t[36]!==f||t[37]!==h?(_=(0,b.jsxs)(`div`,{className:`space-y-4`,"data-testid":`settings-sync-empty`,children:[c,f,m,h]}),t[36]=f,t[37]=h,t[38]=_):_=t[38],_}let st=S.pushPermission?.checkStatus===`denied`||S.pausedReason===`no-push-permission`,ct;t[39]===S.pushPermission?ct=t[40]:(ct=ve(S.pushPermission),t[39]=S.pushPermission,t[40]=ct);let lt=ct,ut;t[41]===S?ut=t[42]:(ut=fe(S),t[41]=S,t[42]=ut);let dt=ut,ft=T===`full`&&st&&lt,A=T===`full`&&st&&!lt&&!dt,j=!A&&!ft&&st&&!dt,pt=S.pushPermission?.checkStatus===`denied`&&S.pushPermission.deniedReason!==`not-authenticated`&&!dt,mt;t[43]===S?mt=t[44]:(mt=be(S),t[43]=S,t[44]=mt);let M=mt,ht=st&&S.pausedReason!==`unsafe-incoming-symlinks`,gt;t[45]!==M||t[46]!==ht||t[47]!==S.pausedReason||t[48]!==S.remote?(gt=S.pausedReason?M?_e(`auth-not-found-as-identity`,me(S.remote)):ht?null:(0,b.jsx)(ye,{reason:S.pausedReason}):null,t[45]=M,t[46]=ht,t[47]=S.pausedReason,t[48]=S.remote,t[49]=gt):gt=t[49];let N=gt,_t;t[50]!==E||t[51]!==T||t[52]!==it||t[53]!==D?(_t=function(e){let t=e===``?T:e;if(ie(t)){if(t===T){E&&it();return}D(t)}},t[50]=E,t[51]=T,t[52]=it,t[53]=D,t[54]=_t):_t=t[54];let vt=_t,yt=Qe??`ask`,bt;t[55]!==v||t[56]!==Be?(bt=function(e){if(e!==`ask`&&!ie(e))return;if(Be===null){_.error(v({id:`fiMNLl`}));return}let t;bb163:switch(e){case`ask`:t=null;break bb163;case`off`:t=!1;break bb163;case`full`:t=!0;break bb163;case`follow`:t=`follow`;break bb163;default:throw Error(`unhandled committed default: ${String(e)}`)}let n=Be(t);if(!n.ok){let e=n.error;_.error(v({id:`oAFVKX`,values:{detail:e}}))}},t[55]=v,t[56]=Be,t[57]=bt):bt=t[57];let xt=bt,St;t[58]===v?St=t[59]:(St=function(e){switch(e){case 30:return v({id:`OqqecQ`});case 60:return v({id:`4mbrAq`});case 300:return v({id:`PEGxvo`});case 900:return v({id:`Cz-K13`});case 3600:return v({id:`vp5vfW`});default:return v({id:`U7Iesw`,values:{seconds:e}})}},t[58]=v,t[59]=St);let Ct=St,wt;t[60]===Symbol.for(`react.memo_cache_sentinel`)?(wt=function(e){return re.includes(e)?[...re]:[...re,e].sort(Pe)},t[60]=wt):wt=t[60];let Tt=wt,Et=function(e,t){let n=Number(t);if(!Number.isFinite(n)||Ve===null)return;let r=Ve({pullIntervalSeconds:e===`pull`?n:w.pullIntervalSeconds,pushIntervalSeconds:e===`push`?n:w.pushIntervalSeconds});if(!r.ok){let e=r.error;_.error(v({id:`WOfp4H`,values:{detail:e}}))}},Dt;t[61]===Symbol.for(`react.memo_cache_sentinel`)?(Dt=(0,b.jsx)(r,{id:`Nu4DdT`}),t[61]=Dt):Dt=t[61];let P;t[62]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,b.jsx)(je,{titleId:`settings-sync-title`,title:Dt,scope:`project-local`,level:`block`,children:(0,b.jsx)(r,{id:`qLXJTB`})}),t[62]=P):P=t[62];let Ot;t[63]===Symbol.for(`react.memo_cache_sentinel`)?(Ot=(0,b.jsx)(`div`,{id:`settings-sync-mode-label`,className:`text-sm font-medium`,children:(0,b.jsx)(r,{id:`yZepkk`})}),t[63]=Ot):Ot=t[63];let F;t[64]===T?F=t[65]:(F=(0,b.jsx)(`p`,{className:`text-muted-foreground text-1sm`,"data-testid":`settings-sync-body`,children:T===`full`?(0,b.jsx)(r,{id:`zBiFZh`}):T===`follow`?(0,b.jsx)(r,{id:`PGRnbw`}):(0,b.jsx)(r,{id:`t5I7P_`})}),t[64]=T,t[65]=F);let I;t[66]===E?I=t[67]:(I=E?(0,b.jsx)(`p`,{id:`settings-sync-mode-default-note`,className:`text-muted-foreground text-1sm`,"data-testid":`settings-sync-mode-from-default`,children:(0,b.jsx)(r,{id:`uNkJ8H`})}):null,t[66]=E,t[67]=I);let L;t[68]!==v||t[69]!==S.remote?(L=S.remote?(0,b.jsxs)(`p`,{className:`text-muted-foreground text-1sm truncate`,"data-testid":`settings-sync-remote`,children:[(0,b.jsx)(r,{id:`Q8A-U_`}),` `,S.remote.webUrl?(0,b.jsxs)(`a`,{href:S.remote.webUrl,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex items-center gap-0.5 text-primary underline-offset-2 hover:underline`,"aria-label":v({id:`1nke1r`,values:{0:S.remote.label}}),"data-testid":`settings-sync-remote-link`,children:[(0,b.jsx)(`span`,{children:S.remote.label}),(0,b.jsx)(we,{className:`inline size-3.5`,"aria-hidden":!0})]}):(0,b.jsx)(`span`,{className:`font-medium text-foreground`,"data-testid":`settings-sync-remote-label`,children:S.remote.label})]}):null,t[68]=v,t[69]=S.remote,t[70]=L):L=t[70];let R;t[71]!==F||t[72]!==I||t[73]!==L?(R=(0,b.jsxs)(`div`,{className:`min-w-0`,children:[Ot,F,I,L]}),t[71]=F,t[72]=I,t[73]=L,t[74]=R):R=t[74];let kt=E?`settings-sync-mode-default-note`:void 0,At;t[75]===Symbol.for(`react.memo_cache_sentinel`)?(At=(0,b.jsx)(m,{value:`off`,className:x,"data-testid":`settings-sync-mode-off`,children:(0,b.jsx)(r,{id:`BWTzAb`})}),t[75]=At):At=t[75];let jt;t[76]===Symbol.for(`react.memo_cache_sentinel`)?(jt=(0,b.jsx)(m,{value:`follow`,className:x,"data-testid":`settings-sync-mode-follow`,children:(0,b.jsx)(r,{id:`tlGXxX`})}),t[76]=jt):jt=t[76];let z;t[77]!==pt||t[78]!==j?(z=pt?(0,b.jsxs)(c,{children:[(0,b.jsx)(o,{asChild:!0,children:(0,b.jsx)(`span`,{className:`inline-flex`,children:(0,b.jsx)(m,{value:`full`,className:x,disabled:!0,"aria-describedby":j?`settings-sync-denied-hint-text`:void 0,"data-testid":`settings-sync-mode-full`,children:(0,b.jsx)(r,{id:`IXiG0B`})})})}),(0,b.jsx)(s,{"data-testid":`settings-sync-mode-full-tip`,children:(0,b.jsx)(r,{id:`EiVgl5`})})]}):(0,b.jsx)(m,{value:`full`,className:x,"data-testid":`settings-sync-mode-full`,children:(0,b.jsx)(r,{id:`IXiG0B`})}),t[77]=pt,t[78]=j,t[79]=z):z=t[79];let B;t[80]!==T||t[81]!==k||t[82]!==vt||t[83]!==kt||t[84]!==z?(B=(0,b.jsxs)(h,{type:`single`,variant:`outline`,spacing:2,value:T,onValueChange:vt,disabled:k,"aria-labelledby":`settings-sync-mode-label`,"aria-describedby":kt,"data-testid":`settings-sync-mode-toggle`,children:[At,jt,z]}),t[80]=T,t[81]=k,t[82]=vt,t[83]=kt,t[84]=z,t[85]=B):B=t[85];let V;t[86]!==R||t[87]!==B?(V=(0,b.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-3`,children:[R,B]}),t[86]=R,t[87]=B,t[88]=V):V=t[88];let H;t[89]!==O||t[90]!==ft?(H=ft&&(0,b.jsxs)(`div`,{className:`mt-2 flex items-start gap-2`,"data-testid":`settings-sync-reconnect`,children:[(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground flex-1 min-w-0`,children:(0,b.jsx)(r,{id:`tnG-m6`})}),(0,b.jsx)(g,{variant:`outline`,size:`xs`,className:`self-start`,onClick:()=>O(!0),children:(0,b.jsx)(r,{id:`5lWFkC`})})]}),t[89]=O,t[90]=ft,t[91]=H):H=t[91];let U;t[92]!==D||t[93]!==A?(U=A&&(0,b.jsxs)(`div`,{className:`mt-2 flex items-start gap-2`,"data-testid":`settings-sync-switch-follow`,children:[(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground flex-1 min-w-0`,children:(0,b.jsx)(r,{id:`srdlOs`})}),(0,b.jsx)(g,{variant:`outline`,size:`xs`,className:`self-start`,onClick:()=>D(`follow`),"data-testid":`settings-sync-switch-follow-action`,children:(0,b.jsx)(r,{id:`v16Pzh`})})]}),t[92]=D,t[93]=A,t[94]=U):U=t[94];let W;t[95]!==T||t[96]!==j?(W=j&&(0,b.jsx)(`p`,{id:`settings-sync-denied-hint-text`,className:`text-1sm text-muted-foreground mt-2`,"data-testid":`settings-sync-denied-hint`,children:T===`follow`?(0,b.jsx)(r,{id:`EiVgl5`}):(0,b.jsx)(r,{id:`eNOyTV`})}),t[95]=T,t[96]=j,t[97]=W):W=t[97];let G;t[98]===N?G=t[99]:(G=N!==null&&(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground mt-2`,"data-testid":`settings-sync-reason`,children:N}),t[98]=N,t[99]=G);let K;t[100]!==N||t[101]!==S.refusedSymlinkPaths?(K=N!==null&&(S.refusedSymlinkPaths?.length??0)>0&&(0,b.jsx)(`div`,{className:`mt-2`,children:(0,b.jsx)(ge,{paths:S.refusedSymlinkPaths})}),t[100]=N,t[101]=S.refusedSymlinkPaths,t[102]=K):K=t[102];let q;t[103]!==M||t[104]!==j||t[105]!==A||t[106]!==S.pushPermission?(q=S.pushPermission?.checkStatus===`denied`&&(M||A||j)?(0,b.jsx)(`div`,{className:`mt-2 space-y-1`,"data-testid":`settings-sync-identity`,children:de(S.pushPermission).map(Ne)}):null,t[103]=M,t[104]=j,t[105]=A,t[106]=S.pushPermission,t[107]=q):q=t[107];let J;t[108]!==O||t[109]!==S.pushPermission?(J=he(S.pushPermission)&&(0,b.jsxs)(`div`,{className:`mt-2 flex items-start gap-2`,"data-testid":`settings-sync-signin-again`,children:[(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground flex-1 min-w-0`,children:(0,b.jsx)(r,{id:`C_cPoW`})}),(0,b.jsx)(g,{variant:`outline`,size:`xs`,className:`self-start`,onClick:()=>O(!0),children:(0,b.jsx)(r,{id:`5lWFkC`})})]}),t[108]=O,t[109]=S.pushPermission,t[110]=J):J=t[110];let Y;t[111]!==V||t[112]!==H||t[113]!==U||t[114]!==W||t[115]!==G||t[116]!==K||t[117]!==q||t[118]!==J?(Y=(0,b.jsxs)(`div`,{className:`rounded-md border p-3`,children:[V,H,U,W,G,K,q,J]}),t[111]=V,t[112]=H,t[113]=U,t[114]=W,t[115]=G,t[116]=K,t[117]=q,t[118]=J,t[119]=Y):Y=t[119];let Mt=T!==`off`&&(0,b.jsxs)(ne,{open:He,onOpenChange:Ue,children:[(0,b.jsx)(te,{asChild:!0,children:(0,b.jsxs)(g,{variant:`ghost`,size:`sm`,className:`group gap-1 px-1.5 text-muted-foreground`,"data-testid":`settings-sync-advanced-trigger`,children:[(0,b.jsx)(Te,{className:`size-3.5 transition-transform group-data-[state=open]:rotate-90`,"aria-hidden":!0}),(0,b.jsx)(r,{id:`sxkWRg`})]})}),(0,b.jsx)(ee,{className:`pt-2`,children:(0,b.jsxs)(`div`,{className:`rounded-md border p-3 space-y-3`,"data-testid":`settings-sync-intervals`,children:[(0,b.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,b.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,b.jsx)(`div`,{id:`settings-sync-pull-interval-label`,className:`text-sm font-medium`,children:(0,b.jsx)(r,{id:`Xs1kjx`})}),(0,b.jsx)(`p`,{className:`text-muted-foreground text-1sm`,children:(0,b.jsx)(r,{id:`T1fMJ6`})})]}),(0,b.jsxs)(p,{value:String(w.pullIntervalSeconds),onValueChange:e=>Et(`pull`,e),disabled:!Le,children:[(0,b.jsx)(d,{size:`sm`,className:`w-40 shrink-0`,"aria-labelledby":`settings-sync-pull-interval-label`,"data-testid":`settings-sync-pull-interval`,children:(0,b.jsx)(f,{})}),(0,b.jsx)(u,{children:Tt(w.pullIntervalSeconds).map(e=>(0,b.jsx)(l,{value:String(e),children:Ct(e)},e))})]})]}),T===`full`&&(0,b.jsxs)(`div`,{className:`flex items-start justify-between gap-4 border-t pt-3`,children:[(0,b.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,b.jsx)(`div`,{id:`settings-sync-push-interval-label`,className:`text-sm font-medium`,children:(0,b.jsx)(r,{id:`gyYvCN`})}),(0,b.jsx)(`p`,{className:`text-muted-foreground text-1sm`,children:(0,b.jsx)(r,{id:`czQDKY`})})]}),(0,b.jsxs)(p,{value:String(w.pushIntervalSeconds),onValueChange:e=>Et(`push`,e),disabled:!Le,children:[(0,b.jsx)(d,{size:`sm`,className:`w-40 shrink-0`,"aria-labelledby":`settings-sync-push-interval-label`,"data-testid":`settings-sync-push-interval`,children:(0,b.jsx)(f,{})}),(0,b.jsx)(u,{children:Tt(w.pushIntervalSeconds).map(e=>(0,b.jsx)(l,{value:String(e),children:Ct(e)},e))})]})]}),T===`full`&&Ke&&(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground`,"data-testid":`settings-sync-push-outpaces-pull-hint`,children:(0,b.jsx)(r,{id:`x-E_vF`})})]})})]}),Nt;t[120]===Symbol.for(`react.memo_cache_sentinel`)?(Nt=(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsx)(`div`,{id:`settings-sync-default-label`,className:`text-sm font-medium`,children:(0,b.jsx)(r,{id:`j_Z6g7`})}),(0,b.jsx)(Ae,{scope:`project`})]}),t[120]=Nt):Nt=t[120];let Pt;t[121]===Symbol.for(`react.memo_cache_sentinel`)?(Pt=(0,b.jsxs)(`div`,{className:`space-y-0.5`,children:[Nt,(0,b.jsx)(`p`,{className:`text-muted-foreground text-1sm`,children:(0,b.jsx)(r,{id:`Zysl7r`})})]}),t[121]=Pt):Pt=t[121];let Ft=!Re,It;t[122]===Symbol.for(`react.memo_cache_sentinel`)?(It=(0,b.jsx)(m,{value:`ask`,className:x,"data-testid":`settings-sync-default-ask`,children:(0,b.jsx)(r,{id:`EdQY6l`})}),t[122]=It):It=t[122];let Lt;t[123]===Symbol.for(`react.memo_cache_sentinel`)?(Lt=(0,b.jsx)(m,{value:`off`,className:x,"data-testid":`settings-sync-default-off`,children:(0,b.jsx)(r,{id:`BWTzAb`})}),t[123]=Lt):Lt=t[123];let Rt;t[124]===Symbol.for(`react.memo_cache_sentinel`)?(Rt=(0,b.jsx)(m,{value:`follow`,className:x,"data-testid":`settings-sync-default-follow`,children:(0,b.jsx)(r,{id:`tlGXxX`})}),t[124]=Rt):Rt=t[124];let zt;t[125]===Symbol.for(`react.memo_cache_sentinel`)?(zt=(0,b.jsx)(m,{value:`full`,className:x,"data-testid":`settings-sync-default-full`,children:(0,b.jsx)(r,{id:`IXiG0B`})}),t[125]=zt):zt=t[125];let X;t[126]!==yt||t[127]!==xt||t[128]!==Ft?(X=(0,b.jsxs)(`div`,{className:`rounded-md border p-3 space-y-2`,"data-testid":`settings-sync-default`,children:[Pt,(0,b.jsxs)(h,{type:`single`,variant:`outline`,spacing:2,value:yt,onValueChange:xt,disabled:Ft,"aria-labelledby":`settings-sync-default-label`,"data-testid":`settings-sync-default-toggle`,children:[It,Lt,Rt,zt]})]}),t[126]=yt,t[127]=xt,t[128]=Ft,t[129]=X):X=t[129];let Bt=nt??`full`,Vt=nt===`follow`?S.ahead??0:0,Z;t[130]!==et||t[131]!==at||t[132]!==tt||t[133]!==Bt||t[134]!==Vt?(Z=(0,b.jsx)(pe,{open:et,onOpenChange:tt,onConfirm:at,variant:Bt,strandedCommitCount:Vt}),t[130]=et,t[131]=at,t[132]=tt,t[133]=Bt,t[134]=Vt,t[135]=Z):Z=t[135];let Q;t[136]===O?Q=t[137]:(Q=()=>O(!1),t[136]=O,t[137]=Q);let $;t[138]!==ot||t[139]!==O||t[140]!==Q?($=(0,b.jsx)(ke,{open:ot,onOpenChange:O,onSuccess:Q,reauth:!0}),t[138]=ot,t[139]=O,t[140]=Q,t[141]=$):$=t[141];let Ht;return t[142]!==P||t[143]!==Y||t[144]!==Mt||t[145]!==X||t[146]!==Z||t[147]!==$?(Ht=(0,b.jsxs)(`div`,{className:`space-y-3`,children:[P,Y,Mt,X,Z,$]}),t[142]=P,t[143]=Y,t[144]=Mt,t[145]=X,t[146]=Z,t[147]=$,t[148]=Ht):Ht=t[148],Ht}function Ne(e){return(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground`,children:e},e)}function Pe(e,t){return e-t}export{S as SyncSection};
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{i as o,n as s,t as c}from"./tooltip-BjuCvy5N.js";import{n as ee,r as te,t as ne}from"./collapsible-BKbszYZV.js";import{i as l,n as u,o as d,s as f,t as p}from"./select-BuIwBy1a.js";import{n as m,t as h}from"./toggle-group-aEGkM0EG.js";import{t as g}from"./button-DzgjsZzC.js";import{n as _}from"./dist-Bs8bPT30.js";import{d as re,f as ie,h as ae,m as oe,p as se}from"./share-D-LUU2aX-iU4CJWyG.js";import{n as ce}from"./config-context-DmzX_4s_.js";import{C as le,T as ue,a as de,c as fe,h as pe,l as me,m as he,n as ge,o as _e,p as ve,t as ye,u as be,v as xe,w as Se,x as Ce}from"./SyncStatusBadge-GBSSUnTL.js";import{t as we}from"./arrow-up-right-BuM5_PNk.js";import{t as Te}from"./chevron-right-D04ny0op.js";import{t as Ee}from"./use-settings-route-Bv3gbPs-.js";import"./config-provider-CX3e9KjB.js";import{n as De}from"./use-git-sync-status-BupWCxHX.js";import{t as Oe}from"./skeleton-CjpLzvC2.js";import{t as ke}from"./AuthModal-CYGu_t54.js";import{t as v}from"./PublishToGitHubDialog-C1_s9SF9.js";import{n as Ae,t as je}from"./SettingsSectionHeader-2IUjvHgB.js";var Me=a(),y=e(n(),1),b=t(),x=`data-[state=on]:border-primary data-[state=on]:bg-primary data-[state=on]:text-primary-foreground data-[state=on]:hover:bg-primary/90`;function S(){let e=(0,Me.c)(4),[t,n]=(0,y.useState)(!1),r=(0,y.useRef)(null),i=(0,y.useRef)(null),a;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,b.jsx)(C,{onPublish:()=>n(!0),setUpSyncingRef:r}),e[0]=a):a=e[0];let o;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(o=()=>(r.current??i.current)?.focus(),e[1]=o):o=e[1];let s;return e[2]===t?s=e[3]:(s=(0,b.jsxs)(`section`,{ref:i,"aria-labelledby":`settings-sync-title`,tabIndex:-1,"data-testid":`settings-sync-section`,children:[a,(0,b.jsx)(v,{open:t,onOpenChange:n,returnFocus:o})]}),e[2]=t,e[3]=s),s}function C(e){let t=(0,Me.c)(149),{onPublish:n,setUpSyncingRef:a}=e,{_:v}=i(),{status:S,fetchError:C}=De(),{projectConfig:Fe,projectLocalConfig:Ie,projectLocalSynced:Le,projectSynced:Re}=ce(),ze=ue(),Be=Ce(),Ve=le(),[He,Ue]=(0,y.useState)(!1),We,Ge;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(We=()=>{Ee()&&Ue(!0)},Ge=[],t[0]=We,t[1]=Ge):(We=t[0],Ge=t[1]),(0,y.useEffect)(We,Ge);let w=oe(Ie?.autoSync),Ke=w.pushIntervalSeconds<w.pullIntervalSeconds,qe=Ie?.autoSync,Je;t[2]===qe?Je=t[3]:(Je=ae(qe),t[2]=qe,t[3]=Je);let Ye=Je,Xe=Fe?.autoSync?.default,Ze;t[4]===Xe?Ze=t[5]:(Ze=se(Xe),t[4]=Xe,t[5]=Ze);let Qe=Ze,$e;t[6]!==Ye||t[7]!==S?($e=Ye??(S===null?`off`:xe(S)),t[6]=Ye,t[7]=S,t[8]=$e):$e=t[8];let T=$e,E=Le&&Ye===null&&Qe!==null,{confirmOpen:et,setConfirmOpen:tt,pendingMode:nt,onModeSelect:D,onTurnOff:rt,onKeepCurrent:it,onConfirm:at}=Se(ze,T),[ot,O]=(0,y.useState)(!1),k=!Le;if(S===null){let e=C!==null,n=e?`settings-sync-unavailable`:`settings-sync-loading`,i;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,b.jsx)(je,{titleId:`settings-sync-title`,title:(0,b.jsx)(r,{id:`Nu4DdT`}),scope:`project-local`,level:`block`}),t[9]=i):i=t[9];let a=!e,o;t[10]!==C||t[11]!==e?(o=e?(0,b.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:C===`network`?(0,b.jsx)(r,{id:`epGMvx`}):(0,b.jsx)(r,{id:`wLRCZ8`})}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(`span`,{className:`sr-only`,children:(0,b.jsx)(r,{id:`OgvwrM`})}),(0,b.jsx)(Oe,{className:`h-24`})]}),t[10]=C,t[11]=e,t[12]=o):o=t[12];let s;t[13]!==a||t[14]!==o?(s=(0,b.jsx)(`div`,{role:`status`,"aria-live":`polite`,"aria-busy":a,children:o}),t[13]=a,t[14]=o,t[15]=s):s=t[15];let c;return t[16]!==s||t[17]!==n?(c=(0,b.jsxs)(`div`,{className:`space-y-3`,"data-testid":n,children:[i,s]}),t[16]=s,t[17]=n,t[18]=c):c=t[18],c}if(!S.hasRemote){let e=T!==`off`,i;t[19]!==rt||t[20]!==a?(i=()=>{rt()&&a.current?.focus()},t[19]=rt,t[20]=a,t[21]=i):i=t[21];let o=i,s;t[22]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,b.jsx)(r,{id:`Nu4DdT`}),t[22]=s):s=t[22];let c;t[23]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,b.jsx)(je,{titleId:`settings-sync-title`,title:s,scope:`project-local`,level:`block`,children:(0,b.jsx)(r,{id:`AiNMQ7`})}),t[23]=c):c=t[23];let l;t[24]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,b.jsx)(`div`,{className:`text-sm font-medium`,children:(0,b.jsx)(r,{id:`3_6U6f`})}),t[24]=l):l=t[24];let u;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,b.jsxs)(`div`,{className:`space-y-0.5`,children:[l,(0,b.jsx)(`p`,{className:`text-muted-foreground text-1sm`,children:(0,b.jsx)(r,{id:`i92eAT`})})]}),t[25]=u):u=t[25];let d;t[26]===Symbol.for(`react.memo_cache_sentinel`)?(d=(0,b.jsx)(r,{id:`zkz0Fg`}),t[26]=d):d=t[26];let f;t[27]!==n||t[28]!==a?(f=(0,b.jsxs)(`div`,{className:`flex items-center justify-between gap-3 rounded-md border p-3`,children:[u,(0,b.jsx)(g,{ref:a,onClick:n,"data-testid":`settings-sync-setup`,children:d})]}),t[27]=n,t[28]=a,t[29]=f):f=t[29];let p;t[30]===Symbol.for(`react.memo_cache_sentinel`)?(p=(0,b.jsx)(te,{asChild:!0,children:(0,b.jsxs)(g,{variant:`ghost`,size:`sm`,className:`group gap-1 px-1.5 text-muted-foreground`,children:[(0,b.jsx)(Te,{className:`size-3.5 transition-transform group-data-[state=open]:rotate-90`,"aria-hidden":!0}),(0,b.jsx)(r,{id:`6caB2T`})]})}),t[30]=p):p=t[30];let m;t[31]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,b.jsxs)(ne,{children:[p,(0,b.jsx)(ee,{className:`px-1.5 pt-2 text-sm text-muted-foreground`,children:(0,b.jsx)(r,{id:`44DSl0`,components:{0:(0,b.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 font-mono text-xs`})}})})]}),t[31]=m):m=t[31];let h;t[32]!==e||t[33]!==k||t[34]!==o?(h=e?(0,b.jsxs)(`div`,{className:`flex items-start gap-2 rounded-md border p-3`,"data-testid":`settings-sync-no-remote-auto-on`,children:[(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground flex-1 min-w-0`,children:(0,b.jsx)(r,{id:`9U-7Xv`})}),(0,b.jsx)(g,{variant:`outline`,size:`xs`,className:`self-start`,onClick:o,disabled:k,"data-testid":`settings-sync-no-remote-turn-off`,children:(0,b.jsx)(r,{id:`v6Glry`})})]}):null,t[32]=e,t[33]=k,t[34]=o,t[35]=h):h=t[35];let _;return t[36]!==f||t[37]!==h?(_=(0,b.jsxs)(`div`,{className:`space-y-4`,"data-testid":`settings-sync-empty`,children:[c,f,m,h]}),t[36]=f,t[37]=h,t[38]=_):_=t[38],_}let st=S.pushPermission?.checkStatus===`denied`||S.pausedReason===`no-push-permission`,ct;t[39]===S.pushPermission?ct=t[40]:(ct=ve(S.pushPermission),t[39]=S.pushPermission,t[40]=ct);let lt=ct,ut;t[41]===S?ut=t[42]:(ut=fe(S),t[41]=S,t[42]=ut);let dt=ut,ft=T===`full`&&st&&lt,A=T===`full`&&st&&!lt&&!dt,j=!A&&!ft&&st&&!dt,pt=S.pushPermission?.checkStatus===`denied`&&S.pushPermission.deniedReason!==`not-authenticated`&&!dt,mt;t[43]===S?mt=t[44]:(mt=be(S),t[43]=S,t[44]=mt);let M=mt,ht=st&&S.pausedReason!==`unsafe-incoming-symlinks`,gt;t[45]!==M||t[46]!==ht||t[47]!==S.pausedReason||t[48]!==S.remote?(gt=S.pausedReason?M?_e(`auth-not-found-as-identity`,me(S.remote)):ht?null:(0,b.jsx)(ye,{reason:S.pausedReason}):null,t[45]=M,t[46]=ht,t[47]=S.pausedReason,t[48]=S.remote,t[49]=gt):gt=t[49];let N=gt,_t;t[50]!==E||t[51]!==T||t[52]!==it||t[53]!==D?(_t=function(e){let t=e===``?T:e;if(ie(t)){if(t===T){E&&it();return}D(t)}},t[50]=E,t[51]=T,t[52]=it,t[53]=D,t[54]=_t):_t=t[54];let vt=_t,yt=Qe??`ask`,bt;t[55]!==v||t[56]!==Be?(bt=function(e){if(e!==`ask`&&!ie(e))return;if(Be===null){_.error(v({id:`fiMNLl`}));return}let t;bb163:switch(e){case`ask`:t=null;break bb163;case`off`:t=!1;break bb163;case`full`:t=!0;break bb163;case`follow`:t=`follow`;break bb163;default:throw Error(`unhandled committed default: ${String(e)}`)}let n=Be(t);if(!n.ok){let e=n.error;_.error(v({id:`oAFVKX`,values:{detail:e}}))}},t[55]=v,t[56]=Be,t[57]=bt):bt=t[57];let xt=bt,St;t[58]===v?St=t[59]:(St=function(e){switch(e){case 30:return v({id:`OqqecQ`});case 60:return v({id:`4mbrAq`});case 300:return v({id:`PEGxvo`});case 900:return v({id:`Cz-K13`});case 3600:return v({id:`vp5vfW`});default:return v({id:`U7Iesw`,values:{seconds:e}})}},t[58]=v,t[59]=St);let Ct=St,wt;t[60]===Symbol.for(`react.memo_cache_sentinel`)?(wt=function(e){return re.includes(e)?[...re]:[...re,e].sort(Pe)},t[60]=wt):wt=t[60];let Tt=wt,Et=function(e,t){let n=Number(t);if(!Number.isFinite(n)||Ve===null)return;let r=Ve({pullIntervalSeconds:e===`pull`?n:w.pullIntervalSeconds,pushIntervalSeconds:e===`push`?n:w.pushIntervalSeconds});if(!r.ok){let e=r.error;_.error(v({id:`WOfp4H`,values:{detail:e}}))}},Dt;t[61]===Symbol.for(`react.memo_cache_sentinel`)?(Dt=(0,b.jsx)(r,{id:`Nu4DdT`}),t[61]=Dt):Dt=t[61];let P;t[62]===Symbol.for(`react.memo_cache_sentinel`)?(P=(0,b.jsx)(je,{titleId:`settings-sync-title`,title:Dt,scope:`project-local`,level:`block`,children:(0,b.jsx)(r,{id:`qLXJTB`})}),t[62]=P):P=t[62];let Ot;t[63]===Symbol.for(`react.memo_cache_sentinel`)?(Ot=(0,b.jsx)(`div`,{id:`settings-sync-mode-label`,className:`text-sm font-medium`,children:(0,b.jsx)(r,{id:`yZepkk`})}),t[63]=Ot):Ot=t[63];let F;t[64]===T?F=t[65]:(F=(0,b.jsx)(`p`,{className:`text-muted-foreground text-1sm`,"data-testid":`settings-sync-body`,children:T===`full`?(0,b.jsx)(r,{id:`zBiFZh`}):T===`follow`?(0,b.jsx)(r,{id:`PGRnbw`}):(0,b.jsx)(r,{id:`t5I7P_`})}),t[64]=T,t[65]=F);let I;t[66]===E?I=t[67]:(I=E?(0,b.jsx)(`p`,{id:`settings-sync-mode-default-note`,className:`text-muted-foreground text-1sm`,"data-testid":`settings-sync-mode-from-default`,children:(0,b.jsx)(r,{id:`uNkJ8H`})}):null,t[66]=E,t[67]=I);let L;t[68]!==v||t[69]!==S.remote?(L=S.remote?(0,b.jsxs)(`p`,{className:`text-muted-foreground text-1sm truncate`,"data-testid":`settings-sync-remote`,children:[(0,b.jsx)(r,{id:`Q8A-U_`}),` `,S.remote.webUrl?(0,b.jsxs)(`a`,{href:S.remote.webUrl,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex items-center gap-0.5 text-primary underline-offset-2 hover:underline`,"aria-label":v({id:`1nke1r`,values:{0:S.remote.label}}),"data-testid":`settings-sync-remote-link`,children:[(0,b.jsx)(`span`,{children:S.remote.label}),(0,b.jsx)(we,{className:`inline size-3.5`,"aria-hidden":!0})]}):(0,b.jsx)(`span`,{className:`font-medium text-foreground`,"data-testid":`settings-sync-remote-label`,children:S.remote.label})]}):null,t[68]=v,t[69]=S.remote,t[70]=L):L=t[70];let R;t[71]!==F||t[72]!==I||t[73]!==L?(R=(0,b.jsxs)(`div`,{className:`min-w-0`,children:[Ot,F,I,L]}),t[71]=F,t[72]=I,t[73]=L,t[74]=R):R=t[74];let kt=E?`settings-sync-mode-default-note`:void 0,At;t[75]===Symbol.for(`react.memo_cache_sentinel`)?(At=(0,b.jsx)(m,{value:`off`,className:x,"data-testid":`settings-sync-mode-off`,children:(0,b.jsx)(r,{id:`BWTzAb`})}),t[75]=At):At=t[75];let jt;t[76]===Symbol.for(`react.memo_cache_sentinel`)?(jt=(0,b.jsx)(m,{value:`follow`,className:x,"data-testid":`settings-sync-mode-follow`,children:(0,b.jsx)(r,{id:`tlGXxX`})}),t[76]=jt):jt=t[76];let z;t[77]!==pt||t[78]!==j?(z=pt?(0,b.jsxs)(c,{children:[(0,b.jsx)(o,{asChild:!0,children:(0,b.jsx)(`span`,{className:`inline-flex`,children:(0,b.jsx)(m,{value:`full`,className:x,disabled:!0,"aria-describedby":j?`settings-sync-denied-hint-text`:void 0,"data-testid":`settings-sync-mode-full`,children:(0,b.jsx)(r,{id:`IXiG0B`})})})}),(0,b.jsx)(s,{"data-testid":`settings-sync-mode-full-tip`,children:(0,b.jsx)(r,{id:`EiVgl5`})})]}):(0,b.jsx)(m,{value:`full`,className:x,"data-testid":`settings-sync-mode-full`,children:(0,b.jsx)(r,{id:`IXiG0B`})}),t[77]=pt,t[78]=j,t[79]=z):z=t[79];let B;t[80]!==T||t[81]!==k||t[82]!==vt||t[83]!==kt||t[84]!==z?(B=(0,b.jsxs)(h,{type:`single`,variant:`outline`,spacing:2,value:T,onValueChange:vt,disabled:k,"aria-labelledby":`settings-sync-mode-label`,"aria-describedby":kt,"data-testid":`settings-sync-mode-toggle`,children:[At,jt,z]}),t[80]=T,t[81]=k,t[82]=vt,t[83]=kt,t[84]=z,t[85]=B):B=t[85];let V;t[86]!==R||t[87]!==B?(V=(0,b.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-3`,children:[R,B]}),t[86]=R,t[87]=B,t[88]=V):V=t[88];let H;t[89]!==O||t[90]!==ft?(H=ft&&(0,b.jsxs)(`div`,{className:`mt-2 flex items-start gap-2`,"data-testid":`settings-sync-reconnect`,children:[(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground flex-1 min-w-0`,children:(0,b.jsx)(r,{id:`tnG-m6`})}),(0,b.jsx)(g,{variant:`outline`,size:`xs`,className:`self-start`,onClick:()=>O(!0),children:(0,b.jsx)(r,{id:`5lWFkC`})})]}),t[89]=O,t[90]=ft,t[91]=H):H=t[91];let U;t[92]!==D||t[93]!==A?(U=A&&(0,b.jsxs)(`div`,{className:`mt-2 flex items-start gap-2`,"data-testid":`settings-sync-switch-follow`,children:[(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground flex-1 min-w-0`,children:(0,b.jsx)(r,{id:`srdlOs`})}),(0,b.jsx)(g,{variant:`outline`,size:`xs`,className:`self-start`,onClick:()=>D(`follow`),"data-testid":`settings-sync-switch-follow-action`,children:(0,b.jsx)(r,{id:`v16Pzh`})})]}),t[92]=D,t[93]=A,t[94]=U):U=t[94];let W;t[95]!==T||t[96]!==j?(W=j&&(0,b.jsx)(`p`,{id:`settings-sync-denied-hint-text`,className:`text-1sm text-muted-foreground mt-2`,"data-testid":`settings-sync-denied-hint`,children:T===`follow`?(0,b.jsx)(r,{id:`EiVgl5`}):(0,b.jsx)(r,{id:`eNOyTV`})}),t[95]=T,t[96]=j,t[97]=W):W=t[97];let G;t[98]===N?G=t[99]:(G=N!==null&&(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground mt-2`,"data-testid":`settings-sync-reason`,children:N}),t[98]=N,t[99]=G);let K;t[100]!==N||t[101]!==S.refusedSymlinkPaths?(K=N!==null&&(S.refusedSymlinkPaths?.length??0)>0&&(0,b.jsx)(`div`,{className:`mt-2`,children:(0,b.jsx)(ge,{paths:S.refusedSymlinkPaths})}),t[100]=N,t[101]=S.refusedSymlinkPaths,t[102]=K):K=t[102];let q;t[103]!==M||t[104]!==j||t[105]!==A||t[106]!==S.pushPermission?(q=S.pushPermission?.checkStatus===`denied`&&(M||A||j)?(0,b.jsx)(`div`,{className:`mt-2 space-y-1`,"data-testid":`settings-sync-identity`,children:de(S.pushPermission).map(Ne)}):null,t[103]=M,t[104]=j,t[105]=A,t[106]=S.pushPermission,t[107]=q):q=t[107];let J;t[108]!==O||t[109]!==S.pushPermission?(J=he(S.pushPermission)&&(0,b.jsxs)(`div`,{className:`mt-2 flex items-start gap-2`,"data-testid":`settings-sync-signin-again`,children:[(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground flex-1 min-w-0`,children:(0,b.jsx)(r,{id:`C_cPoW`})}),(0,b.jsx)(g,{variant:`outline`,size:`xs`,className:`self-start`,onClick:()=>O(!0),children:(0,b.jsx)(r,{id:`5lWFkC`})})]}),t[108]=O,t[109]=S.pushPermission,t[110]=J):J=t[110];let Y;t[111]!==V||t[112]!==H||t[113]!==U||t[114]!==W||t[115]!==G||t[116]!==K||t[117]!==q||t[118]!==J?(Y=(0,b.jsxs)(`div`,{className:`rounded-md border p-3`,children:[V,H,U,W,G,K,q,J]}),t[111]=V,t[112]=H,t[113]=U,t[114]=W,t[115]=G,t[116]=K,t[117]=q,t[118]=J,t[119]=Y):Y=t[119];let Mt=T!==`off`&&(0,b.jsxs)(ne,{open:He,onOpenChange:Ue,children:[(0,b.jsx)(te,{asChild:!0,children:(0,b.jsxs)(g,{variant:`ghost`,size:`sm`,className:`group gap-1 px-1.5 text-muted-foreground`,"data-testid":`settings-sync-advanced-trigger`,children:[(0,b.jsx)(Te,{className:`size-3.5 transition-transform group-data-[state=open]:rotate-90`,"aria-hidden":!0}),(0,b.jsx)(r,{id:`sxkWRg`})]})}),(0,b.jsx)(ee,{className:`pt-2`,children:(0,b.jsxs)(`div`,{className:`rounded-md border p-3 space-y-3`,"data-testid":`settings-sync-intervals`,children:[(0,b.jsxs)(`div`,{className:`flex items-start justify-between gap-4`,children:[(0,b.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,b.jsx)(`div`,{id:`settings-sync-pull-interval-label`,className:`text-sm font-medium`,children:(0,b.jsx)(r,{id:`Xs1kjx`})}),(0,b.jsx)(`p`,{className:`text-muted-foreground text-1sm`,children:(0,b.jsx)(r,{id:`T1fMJ6`})})]}),(0,b.jsxs)(p,{value:String(w.pullIntervalSeconds),onValueChange:e=>Et(`pull`,e),disabled:!Le,children:[(0,b.jsx)(d,{size:`sm`,className:`w-40 shrink-0`,"aria-labelledby":`settings-sync-pull-interval-label`,"data-testid":`settings-sync-pull-interval`,children:(0,b.jsx)(f,{})}),(0,b.jsx)(u,{children:Tt(w.pullIntervalSeconds).map(e=>(0,b.jsx)(l,{value:String(e),children:Ct(e)},e))})]})]}),T===`full`&&(0,b.jsxs)(`div`,{className:`flex items-start justify-between gap-4 border-t pt-3`,children:[(0,b.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,b.jsx)(`div`,{id:`settings-sync-push-interval-label`,className:`text-sm font-medium`,children:(0,b.jsx)(r,{id:`gyYvCN`})}),(0,b.jsx)(`p`,{className:`text-muted-foreground text-1sm`,children:(0,b.jsx)(r,{id:`czQDKY`})})]}),(0,b.jsxs)(p,{value:String(w.pushIntervalSeconds),onValueChange:e=>Et(`push`,e),disabled:!Le,children:[(0,b.jsx)(d,{size:`sm`,className:`w-40 shrink-0`,"aria-labelledby":`settings-sync-push-interval-label`,"data-testid":`settings-sync-push-interval`,children:(0,b.jsx)(f,{})}),(0,b.jsx)(u,{children:Tt(w.pushIntervalSeconds).map(e=>(0,b.jsx)(l,{value:String(e),children:Ct(e)},e))})]})]}),T===`full`&&Ke&&(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground`,"data-testid":`settings-sync-push-outpaces-pull-hint`,children:(0,b.jsx)(r,{id:`x-E_vF`})})]})})]}),Nt;t[120]===Symbol.for(`react.memo_cache_sentinel`)?(Nt=(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsx)(`div`,{id:`settings-sync-default-label`,className:`text-sm font-medium`,children:(0,b.jsx)(r,{id:`j_Z6g7`})}),(0,b.jsx)(Ae,{scope:`project`})]}),t[120]=Nt):Nt=t[120];let Pt;t[121]===Symbol.for(`react.memo_cache_sentinel`)?(Pt=(0,b.jsxs)(`div`,{className:`space-y-0.5`,children:[Nt,(0,b.jsx)(`p`,{className:`text-muted-foreground text-1sm`,children:(0,b.jsx)(r,{id:`Zysl7r`})})]}),t[121]=Pt):Pt=t[121];let Ft=!Re,It;t[122]===Symbol.for(`react.memo_cache_sentinel`)?(It=(0,b.jsx)(m,{value:`ask`,className:x,"data-testid":`settings-sync-default-ask`,children:(0,b.jsx)(r,{id:`EdQY6l`})}),t[122]=It):It=t[122];let Lt;t[123]===Symbol.for(`react.memo_cache_sentinel`)?(Lt=(0,b.jsx)(m,{value:`off`,className:x,"data-testid":`settings-sync-default-off`,children:(0,b.jsx)(r,{id:`BWTzAb`})}),t[123]=Lt):Lt=t[123];let Rt;t[124]===Symbol.for(`react.memo_cache_sentinel`)?(Rt=(0,b.jsx)(m,{value:`follow`,className:x,"data-testid":`settings-sync-default-follow`,children:(0,b.jsx)(r,{id:`tlGXxX`})}),t[124]=Rt):Rt=t[124];let zt;t[125]===Symbol.for(`react.memo_cache_sentinel`)?(zt=(0,b.jsx)(m,{value:`full`,className:x,"data-testid":`settings-sync-default-full`,children:(0,b.jsx)(r,{id:`IXiG0B`})}),t[125]=zt):zt=t[125];let X;t[126]!==yt||t[127]!==xt||t[128]!==Ft?(X=(0,b.jsxs)(`div`,{className:`rounded-md border p-3 space-y-2`,"data-testid":`settings-sync-default`,children:[Pt,(0,b.jsxs)(h,{type:`single`,variant:`outline`,spacing:2,value:yt,onValueChange:xt,disabled:Ft,"aria-labelledby":`settings-sync-default-label`,"data-testid":`settings-sync-default-toggle`,children:[It,Lt,Rt,zt]})]}),t[126]=yt,t[127]=xt,t[128]=Ft,t[129]=X):X=t[129];let Bt=nt??`full`,Vt=nt===`follow`?S.ahead??0:0,Z;t[130]!==et||t[131]!==at||t[132]!==tt||t[133]!==Bt||t[134]!==Vt?(Z=(0,b.jsx)(pe,{open:et,onOpenChange:tt,onConfirm:at,variant:Bt,strandedCommitCount:Vt}),t[130]=et,t[131]=at,t[132]=tt,t[133]=Bt,t[134]=Vt,t[135]=Z):Z=t[135];let Q;t[136]===O?Q=t[137]:(Q=()=>O(!1),t[136]=O,t[137]=Q);let $;t[138]!==ot||t[139]!==O||t[140]!==Q?($=(0,b.jsx)(ke,{open:ot,onOpenChange:O,onSuccess:Q,reauth:!0}),t[138]=ot,t[139]=O,t[140]=Q,t[141]=$):$=t[141];let Ht;return t[142]!==P||t[143]!==Y||t[144]!==Mt||t[145]!==X||t[146]!==Z||t[147]!==$?(Ht=(0,b.jsxs)(`div`,{className:`space-y-3`,children:[P,Y,Mt,X,Z,$]}),t[142]=P,t[143]=Y,t[144]=Mt,t[145]=X,t[146]=Z,t[147]=$,t[148]=Ht):Ht=t[148],Ht}function Ne(e){return(0,b.jsx)(`p`,{className:`text-1sm text-muted-foreground`,children:e},e)}function Pe(e,t){return e-t}export{S as SyncSection};