@inkeep/open-knowledge 0.19.2 → 0.20.0-beta.0

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 (285) hide show
  1. package/dist/assets/skills/discovery/SKILL.md +4 -4
  2. package/dist/assets/skills/packs/codebase-wiki/SKILL.md +1 -0
  3. package/dist/assets/skills/packs/entity-vault/SKILL.md +1 -0
  4. package/dist/assets/skills/packs/knowledge-base/SKILL.md +1 -0
  5. package/dist/assets/skills/packs/okf/SKILL.md +1 -0
  6. package/dist/assets/skills/packs/plain-notes/SKILL.md +1 -0
  7. package/dist/assets/skills/packs/software-lifecycle/SKILL.md +1 -0
  8. package/dist/assets/skills/packs/worldbuilding/SKILL.md +1 -0
  9. package/dist/assets/skills/packs/writing-pipeline/SKILL.md +1 -0
  10. package/dist/assets/skills/project/SKILL.md +15 -9
  11. package/dist/assets/skills/project/references/setup.md +26 -0
  12. package/dist/assets/skills/write-skill/SKILL.md +165 -0
  13. package/dist/assets/skills/write-skill/references/description-optimization.md +34 -0
  14. package/dist/assets/skills/write-skill/references/pressure-testing.md +40 -0
  15. package/dist/{banner-DBiyrzNA.mjs → banner-BxCFCyu8.mjs} +2 -2
  16. package/dist/cli.mjs +56 -56
  17. package/dist/{colors-CBY1ibtz.mjs → colors-8SzMRIVy.mjs} +1 -1
  18. package/dist/colors-CmkIIbww.mjs +1 -0
  19. package/dist/constants-Ta2NnZpA.mjs +2 -0
  20. package/dist/{dist-CdTX-PGm.mjs → dist-CZWb6kyF.mjs} +79 -70
  21. package/dist/dist-DsbAPFC5.mjs +1 -0
  22. package/dist/{gh-detect-D1zn4tRp.mjs → gh-detect-DsccWGZs.mjs} +2 -2
  23. package/dist/{git-handle--dq7Gq14-BpH0pmv5.mjs → git-handle-DY9lXoT3-Cmzgvwd8.mjs} +2 -2
  24. package/dist/git-handle-DdgvPBh6-Dv4DjLoy.mjs +1 -0
  25. package/dist/index.d.mts +7 -1
  26. package/dist/index.mjs +1 -1
  27. package/dist/init-DeupkkJE.mjs +305 -0
  28. package/dist/init-Dg6Zw1fN.mjs +1 -0
  29. package/dist/{loader-DPfRwghD.mjs → loader-BqOvMwUA.mjs} +3 -3
  30. package/dist/loader-DrdZ_qLV.mjs +1 -0
  31. package/dist/preview-CzOvwx8Y.mjs +1 -0
  32. package/dist/{preview-asen864g.mjs → preview-D1nIjzUr.mjs} +2 -2
  33. package/dist/public/assets/ActivityModeContent-BS_Y62XF.js +2 -0
  34. package/dist/public/assets/{ActivityPanelDiffView-InYkbArk.js → ActivityPanelDiffView-BXoGtJMu.js} +2 -2
  35. package/dist/public/assets/ConsentDialogBody-BD48TGm2.js +2 -0
  36. package/dist/public/assets/DocumentContext-BzU_wuZ1.js +34 -0
  37. package/dist/public/assets/{GraphPanel-Bell61wS.js → GraphPanel-EZGWljSP.js} +5 -5
  38. package/dist/public/assets/ManagedArtifactProperties-D2EjV-Hv.js +1 -0
  39. package/dist/public/assets/McpConsentDialogBody-XGOmuRSp.js +1 -0
  40. package/dist/public/assets/PropertyPanel-CctJB0ZN.js +2 -0
  41. package/dist/public/assets/SettingsDialogBody-DzkJTs5S.js +7 -0
  42. package/dist/public/assets/SkillEditorActions-CnqozQbp.js +1 -0
  43. package/dist/public/assets/SourceEditor-Mgjjq3HZ.js +2 -0
  44. package/dist/public/assets/{TerminalPanel-Ta2Zl6Q8.js → TerminalPanel-DiJi11zw.js} +2 -2
  45. package/dist/public/assets/{_baseFor-BB4KANPr.js → _baseFor-D_g0Vaw_.js} +1 -1
  46. package/dist/public/assets/agent-presence-CPRnxEOl.js +1 -0
  47. package/dist/public/assets/{arc-B0M4cKTB.js → arc-ByJ8e9TF.js} +1 -1
  48. package/dist/public/assets/architecture-YZFGNWBL-DFhgKmAY.js +1 -0
  49. package/dist/public/assets/{architectureDiagram-Q4EWVU46-CGfN8F1x.js → architectureDiagram-Q4EWVU46-BBif8L3G.js} +1 -1
  50. package/dist/public/assets/{blockDiagram-DXYQGD6D-CvqzFRrs.js → blockDiagram-DXYQGD6D-DhI4yaUm.js} +1 -1
  51. package/dist/public/assets/button-DGf25ccp.js +1 -0
  52. package/dist/public/assets/{c4Diagram-AHTNJAMY-CTuRG6XQ.js → c4Diagram-AHTNJAMY-Ciz_9wte.js} +1 -1
  53. package/dist/public/assets/calendar-ExjQo5qX.js +1 -0
  54. package/dist/public/assets/channel-DKqfgCiR.js +1 -0
  55. package/dist/public/assets/checkbox-DBdFRrZg.js +1 -0
  56. package/dist/public/assets/chevron-down-BaPMAfbX.js +1 -0
  57. package/dist/public/assets/chevron-right-jyIhGBkw.js +1 -0
  58. package/dist/public/assets/{chunk-2KRD3SAO-CgV4qQXG.js → chunk-2KRD3SAO-Da2ER3RB.js} +1 -1
  59. package/dist/public/assets/{chunk-336JU56O-BalL_f4q.js → chunk-336JU56O-TcDWBc_l.js} +2 -2
  60. package/dist/public/assets/chunk-426QAEUC-BHMnxPdS.js +1 -0
  61. package/dist/public/assets/{chunk-4BX2VUAB-DeXGuanp.js → chunk-4BX2VUAB-BYnFlu53.js} +1 -1
  62. package/dist/public/assets/{chunk-4TB4RGXK-RPiRkbnR.js → chunk-4TB4RGXK-G7dMkzg8.js} +1 -1
  63. package/dist/public/assets/chunk-55IACEB6-B13ixcd-.js +1 -0
  64. package/dist/public/assets/{chunk-5FUZZQ4R-Bp1iPpGN.js → chunk-5FUZZQ4R-CShfms8C.js} +1 -1
  65. package/dist/public/assets/{chunk-5PVQY5BW-D2kQfsEU.js → chunk-5PVQY5BW-DQpmr1mr.js} +1 -1
  66. package/dist/public/assets/{chunk-67CJDMHE-UJIn0xtY.js → chunk-67CJDMHE-C7ugZ81W.js} +1 -1
  67. package/dist/public/assets/{chunk-7N4EOEYR-B2XZtzGb.js → chunk-7N4EOEYR-W_TmxOiV.js} +1 -1
  68. package/dist/public/assets/{chunk-AA7GKIK3-Dyy4cSAD.js → chunk-AA7GKIK3-DznzT3CG.js} +1 -1
  69. package/dist/public/assets/{chunk-BSJP7CBP-gINBJmdn.js → chunk-BSJP7CBP-BH_VceX8.js} +1 -1
  70. package/dist/public/assets/{chunk-CIAEETIT-CZF2JSYL.js → chunk-CIAEETIT-Bk8uJMiZ.js} +1 -1
  71. package/dist/public/assets/{chunk-EDXVE4YY-9CmJcS4N.js → chunk-EDXVE4YY-jpxiY4fn.js} +1 -1
  72. package/dist/public/assets/{chunk-ENJZ2VHE-DGOBbqgN.js → chunk-ENJZ2VHE-CssVQlYq.js} +1 -1
  73. package/dist/public/assets/{chunk-FMBD7UC4-CCEKAqz_.js → chunk-FMBD7UC4-CqQR_ejX.js} +1 -1
  74. package/dist/public/assets/{chunk-FOC6F5B3-CPk9uh7H.js → chunk-FOC6F5B3-_exSVcr0.js} +1 -1
  75. package/dist/public/assets/{chunk-ICPOFSXX-Dy9JRPZu.js → chunk-ICPOFSXX-DarRce4R.js} +2 -2
  76. package/dist/public/assets/{chunk-K5T4RW27-CiRq5i4i.js → chunk-K5T4RW27-BZkpo5-i.js} +1 -1
  77. package/dist/public/assets/{chunk-KGLVRYIC-B5y130kq.js → chunk-KGLVRYIC-DJ6p90OK.js} +1 -1
  78. package/dist/public/assets/{chunk-LIHQZDEY-DFUiDBx8.js → chunk-LIHQZDEY-CY0x8HH5.js} +1 -1
  79. package/dist/public/assets/{chunk-ORNJ4GCN-Cr7hB34W.js → chunk-ORNJ4GCN-DyYdr6bI.js} +1 -1
  80. package/dist/public/assets/{chunk-OYMX7WX6-tBzsu7Qb.js → chunk-OYMX7WX6-CRgq_0ie.js} +1 -1
  81. package/dist/public/assets/chunk-QZHKN3VN-BSwrlrnw.js +1 -0
  82. package/dist/public/assets/{chunk-U2HBQHQK-DThlp4DR.js → chunk-U2HBQHQK-DS1rSLlZ.js} +1 -1
  83. package/dist/public/assets/{chunk-X2U36JSP-b_VUmOsG.js → chunk-X2U36JSP-Cl4q5XGv.js} +1 -1
  84. package/dist/public/assets/{chunk-XPW4576I-Dc6SL782.js → chunk-XPW4576I-jdZVABI6.js} +1 -1
  85. package/dist/public/assets/{chunk-YZCP3GAM-CcH_aTzQ.js → chunk-YZCP3GAM-CmSzwf9f.js} +1 -1
  86. package/dist/public/assets/{chunk-ZZ45TVLE-CwnCYU7J.js → chunk-ZZ45TVLE-CPn1i1Ng.js} +1 -1
  87. package/dist/public/assets/classDiagram-6PBFFD2Q-CkwZKYhs.js +1 -0
  88. package/dist/public/assets/classDiagram-v2-HSJHXN6E-PffvWksa.js +1 -0
  89. package/dist/public/assets/clone-Bp0cMwJO.js +1 -0
  90. package/dist/public/assets/collapsible-B9pRLq8V.js +1 -0
  91. package/dist/public/assets/compiler-runtime-CVnuRdak.js +1 -0
  92. package/dist/public/assets/config-context-DhhN0rlf.js +1 -0
  93. package/dist/public/assets/config-validation-events-8rtpnIAB.js +11 -0
  94. package/dist/public/assets/{cose-bilkent-S5V4N54A-Dizk7dwp.js → cose-bilkent-S5V4N54A-CfUDFxyJ.js} +1 -1
  95. package/dist/public/assets/cursor-CpjEfgnv.js +1 -0
  96. package/dist/public/assets/{dagre--CGfxwL9.js → dagre-BURGwdqw.js} +1 -1
  97. package/dist/public/assets/{dagre-KV5264BT-Bgd9TndA.js → dagre-KV5264BT-BJeou30S.js} +1 -1
  98. package/dist/public/assets/{diagram-5BDNPKRD-YjznpYlO.js → diagram-5BDNPKRD-C-eJcUD-.js} +1 -1
  99. package/dist/public/assets/{diagram-G4DWMVQ6-Dg1TlI6M.js → diagram-G4DWMVQ6-DVCBiaZD.js} +1 -1
  100. package/dist/public/assets/{diagram-MMDJMWI5-BJ7btGpD.js → diagram-MMDJMWI5-D_ti8xPY.js} +1 -1
  101. package/dist/public/assets/{diagram-TYMM5635-BlLor9aT.js → diagram-TYMM5635-BPQfwmD6.js} +1 -1
  102. package/dist/public/assets/dialog-Bt8vN5IM.js +45 -0
  103. package/dist/public/assets/{dist-Bui1BhSw.js → dist-BKvCaeVU.js} +1 -1
  104. package/dist/public/assets/dist-BLu8fLv5.js +1 -0
  105. package/dist/public/assets/{dist-C0jOOVYt.js → dist-BXTYSiRS.js} +1 -1
  106. package/dist/public/assets/{dist-Debx6b6u.js → dist-Bzfgenqd2.js} +1 -1
  107. package/dist/public/assets/{dist-D2H0qs9k.js → dist-C0uDGnS5.js} +166 -166
  108. package/dist/public/assets/dist-CPXhSDT0.js +1 -0
  109. package/dist/public/assets/dist-CQw2y-s3.js +1 -0
  110. package/dist/public/assets/{dist-Mxq-zflt.js → dist-C_ATH0cs.js} +1 -1
  111. package/dist/public/assets/{dist-CjXb6uie.js → dist-ChteXkW7.js} +1 -1
  112. package/dist/public/assets/dist-DEyMVsLW.js +1 -0
  113. package/dist/public/assets/{dist-j3LJSXW6.js → dist-Diq9mvyh.js} +1 -1
  114. package/dist/public/assets/{dist-pSQcUvmU.js → dist-DisLVkiU.js} +1 -1
  115. package/dist/public/assets/{dist-B-IVhlJQ.js → dist-Dkd2NyD9.js} +1 -1
  116. package/dist/public/assets/dist-Dpgw_p7D.js +1 -0
  117. package/dist/public/assets/{dist-D1rVZYi52.js → dist-HRxi3YvV2.js} +1 -1
  118. package/dist/public/assets/dist-KER3mSN7.js +1 -0
  119. package/dist/public/assets/{dist-B9B58-J_.js → dist-hRhcPaZU.js} +1 -1
  120. package/dist/public/assets/{dist-Bn0QvNGs.js → dist-wA9FGceo.js} +1 -1
  121. package/dist/public/assets/documents-events-BTsmrZJT.js +11 -0
  122. package/dist/public/assets/{erDiagram-SMLLAGMA-CbusJ6ai.js → erDiagram-SMLLAGMA-B73UGGVJ.js} +1 -1
  123. package/dist/public/assets/external-link-CJXR-UFu.js +1 -0
  124. package/dist/public/assets/{flatten-BHQFj2az.js → flatten-7Du8lCT3.js} +1 -1
  125. package/dist/public/assets/{flowDiagram-DWJPFMVM-n690iqHN.js → flowDiagram-DWJPFMVM-NSwiYc3z.js} +1 -1
  126. package/dist/public/assets/format-iztu8fVR.js +1 -0
  127. package/dist/public/assets/{ganttDiagram-T4ZO3ILL-CZUxDSBT.js → ganttDiagram-T4ZO3ILL-BVawqz9s.js} +1 -1
  128. package/dist/public/assets/gitGraph-7Q5UKJZL-BwaREznx.js +1 -0
  129. package/dist/public/assets/{gitGraphDiagram-UUTBAWPF-C6qYFsUb.js → gitGraphDiagram-UUTBAWPF-DICVoCXg.js} +1 -1
  130. package/dist/public/assets/{graphlib-CxIN2cpg.js → graphlib-CLVMhzY2.js} +1 -1
  131. package/dist/public/assets/index-i9A7tPDf.js +2004 -0
  132. package/dist/public/assets/index-xDiw2wLq.css +1 -0
  133. package/dist/public/assets/info-OMHHGYJF-C9-xUHB6.js +1 -0
  134. package/dist/public/assets/{infoDiagram-42DDH7IO-Csns7giJ.js → infoDiagram-42DDH7IO-plFBsDaB.js} +1 -1
  135. package/dist/public/assets/input-CFm7DcvJ.js +1 -0
  136. package/dist/public/assets/{isEmpty-Bq6bzoiF.js → isEmpty-DrXavX4s.js} +1 -1
  137. package/dist/public/assets/isSymbol-BedorAQF.js +1 -0
  138. package/dist/public/assets/{ishikawaDiagram-UXIWVN3A-2JnHk_DL.js → ishikawaDiagram-UXIWVN3A-tld8udUO.js} +1 -1
  139. package/dist/public/assets/{journeyDiagram-VCZTEJTY-W5sor6G2.js → journeyDiagram-VCZTEJTY-CCc-mFvL.js} +1 -1
  140. package/dist/public/assets/{kanban-definition-6JOO6SKY-BcHKSFEp.js → kanban-definition-6JOO6SKY-CpV0A_Xv.js} +1 -1
  141. package/dist/public/assets/keyboard-shortcuts-BzwnpNd_.js +1 -0
  142. package/dist/public/assets/label-Bg6tgeFh.js +1 -0
  143. package/dist/public/assets/{line-BPa9YIgj.js → line-yhTleQFD.js} +1 -1
  144. package/dist/public/assets/{linear-CErU82pU.js → linear-CDcuGAS7.js} +1 -1
  145. package/dist/public/assets/{mermaid-parser.core-CIRt0Dgq.js → mermaid-parser.core-BNNnaUL9.js} +2 -2
  146. package/dist/public/assets/{mermaid.core-srYvzXpO.js → mermaid.core-D8RYCLKc.js} +3 -3
  147. package/dist/public/assets/{mindmap-definition-QFDTVHPH-TBwtPWpG.js → mindmap-definition-QFDTVHPH-DOFhbtqD.js} +1 -1
  148. package/dist/public/assets/{now-F1RJRIcM.js → now-CEjbn_S3.js} +1 -1
  149. package/dist/public/assets/open-managed-artifact-tab-VuHt1k6e.js +5 -0
  150. package/dist/public/assets/{ordinal-C2dFitP3.js → ordinal-DkoIOw9o.js} +1 -1
  151. package/dist/public/assets/packet-4T2RLAQJ-D21IJghI.js +1 -0
  152. package/dist/public/assets/{panel-BQ1weDcE.js → panel-BbrtnF__.js} +1 -1
  153. package/dist/public/assets/pie-ZZUOXDRM-T1rRpUfj.js +1 -0
  154. package/dist/public/assets/{pieDiagram-DEJITSTG-iP5EAWOK.js → pieDiagram-DEJITSTG-D8tTJGMo.js} +1 -1
  155. package/dist/public/assets/project-paths-CK_36JyE.js +1 -0
  156. package/dist/public/assets/prop-types-D6SQBoDq.js +1 -0
  157. package/dist/public/assets/{propagation-api-qAYD7s-v.js → propagation-api-Dhdns5D6.js} +1 -1
  158. package/dist/public/assets/{quadrantDiagram-34T5L4WZ-CRzlf10O.js → quadrantDiagram-34T5L4WZ-C1LeLfVa.js} +1 -1
  159. package/dist/public/assets/radar-PYXPWWZC-CxormQ0T.js +1 -0
  160. package/dist/public/assets/radio-group-_aqBV1Ev.js +1 -0
  161. package/dist/public/assets/react-dom-C-oc-P2K.js +1 -0
  162. package/dist/public/assets/{reduce-Cr8PO88G.js → reduce-Di0vgjn-.js} +1 -1
  163. package/dist/public/assets/{requirementDiagram-MS252O5E-Bg9QnuLQ.js → requirementDiagram-MS252O5E-CUh6WkN3.js} +1 -1
  164. package/dist/public/assets/{sankeyDiagram-XADWPNL6-Cl4zPODp.js → sankeyDiagram-XADWPNL6-B1UIPYkv.js} +1 -1
  165. package/dist/public/assets/selection-context-Rr9JEzTX.js +4 -0
  166. package/dist/public/assets/{sequenceDiagram-FGHM5R23-B9LxUMHK.js → sequenceDiagram-FGHM5R23-D56bRJUC.js} +1 -1
  167. package/dist/public/assets/skill-actions-SUqrJBew.js +1 -0
  168. package/dist/public/assets/skills-api-F2HCxVlt.js +1 -0
  169. package/dist/public/assets/{src-DxsrUvGr.js → src-B6QNK1mg.js} +1 -1
  170. package/dist/public/assets/{stateDiagram-FHFEXIEX-C8mEBLKf.js → stateDiagram-FHFEXIEX-BH5j-3UL.js} +1 -1
  171. package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-DgrOp7gF.js +1 -0
  172. package/dist/public/assets/target-navigation-intent-BrunJmhI.js +1 -0
  173. package/dist/public/assets/{telemetry-impl-DosSnbwM.js → telemetry-impl-Cbuwv6dZ.js} +2 -2
  174. package/dist/public/assets/textarea-C-Hijn80.js +1 -0
  175. package/dist/public/assets/{timeline-definition-GMOUNBTQ-BdBq3Z-G.js → timeline-definition-GMOUNBTQ-istjfP3_.js} +1 -1
  176. package/dist/public/assets/toggle-group-Bwdb9pNj.js +1 -0
  177. package/dist/public/assets/tooltip-D-omjYEX.js +1 -0
  178. package/dist/public/assets/treeView-SZITEDCU-IjT5T-2K.js +1 -0
  179. package/dist/public/assets/treemap-W4RFUUIX-DvWU8kJj.js +1 -0
  180. package/dist/public/assets/typing-burst-detector-BmNkqfX8.js +7 -0
  181. package/dist/public/assets/{vennDiagram-DHZGUBPP-CJt2-p2B.js → vennDiagram-DHZGUBPP-CWJXkeny.js} +1 -1
  182. package/dist/public/assets/wardley-RL74JXVD-BAS_vT5u.js +1 -0
  183. package/dist/public/assets/{wardleyDiagram-NUSXRM2D-CB_N5pVU.js → wardleyDiagram-NUSXRM2D-DeUVD0rm.js} +1 -1
  184. package/dist/public/assets/{xychartDiagram-5P7HB3ND-DtVg628z.js → xychartDiagram-5P7HB3ND-cAF4JT29.js} +1 -1
  185. package/dist/public/index.html +57 -38
  186. package/dist/{repair-launch-json-AYQTVoWw.mjs → repair-launch-json-zIhZWAzC.mjs} +2 -2
  187. package/dist/{repair-mcp-configs-DTSVOYEw.mjs → repair-mcp-configs-Bfwl_HpO.mjs} +2 -2
  188. package/dist/repair-skills-C7a7M7AA.mjs +1 -0
  189. package/dist/repair-skills-JPqTnxCJ.mjs +3 -0
  190. package/dist/server-lock-8Lv6A-Xa-C_9VS9L6.mjs +1 -0
  191. package/dist/{server-lock-CN2YHwpP-BWnMEaYY.mjs → server-lock-CN2YHwpP-CemdeDui.mjs} +58 -58
  192. package/dist/{src-Cdsrlb3n.mjs → src-TPlxmg1w.mjs} +2 -2
  193. package/dist/{start-Dh8w6Lth.mjs → start-CGYA17Ml.mjs} +2 -2
  194. package/dist/start-DH4IdYkc.mjs +1 -0
  195. package/dist/write-project-skill-CKnzNtFY.mjs +12 -0
  196. package/package.json +2 -2
  197. package/dist/colors-BktTaA1t.mjs +0 -1
  198. package/dist/constants-H1LByev5.mjs +0 -2
  199. package/dist/dist-D6-YaLoM.mjs +0 -1
  200. package/dist/git-handle-BaZ9y3AC-CCCU9J5d.mjs +0 -1
  201. package/dist/init-BiaVn6yy.mjs +0 -305
  202. package/dist/init-Ugu4NtWc.mjs +0 -1
  203. package/dist/loader-BZ08NuSt.mjs +0 -1
  204. package/dist/preview-B_iolyl1.mjs +0 -1
  205. package/dist/public/assets/ActivityModeContent-BRxTdXzQ.js +0 -2
  206. package/dist/public/assets/ConsentDialogBody-CPn5k8Yj.js +0 -2
  207. package/dist/public/assets/DocumentContext-FzcL7UQZ.js +0 -34
  208. package/dist/public/assets/McpConsentDialogBody-_slAuRpY.js +0 -1
  209. package/dist/public/assets/SettingsDialogBody-dRCqGCnU.js +0 -7
  210. package/dist/public/assets/SourceEditor-Bqcnc-Cc.js +0 -2
  211. package/dist/public/assets/agent-presence-DYKkeiBZ.js +0 -1
  212. package/dist/public/assets/architecture-YZFGNWBL--JFkSXM0.js +0 -1
  213. package/dist/public/assets/button-CmLxDlCv.js +0 -1
  214. package/dist/public/assets/channel-Z7DKCHS6.js +0 -1
  215. package/dist/public/assets/checkbox-BlEgF5ZV.js +0 -1
  216. package/dist/public/assets/chunk-426QAEUC-CYmyjEj-.js +0 -1
  217. package/dist/public/assets/chunk-55IACEB6-Cl00WKA6.js +0 -1
  218. package/dist/public/assets/chunk-QZHKN3VN-DGZr8ZKt.js +0 -1
  219. package/dist/public/assets/classDiagram-6PBFFD2Q-BlQyIadX.js +0 -1
  220. package/dist/public/assets/classDiagram-v2-HSJHXN6E-DeRDAZjJ.js +0 -1
  221. package/dist/public/assets/clone-B2gSWiE3.js +0 -1
  222. package/dist/public/assets/collapsible-BzkAcCLq.js +0 -1
  223. package/dist/public/assets/compiler-runtime-Cs91PcD2.js +0 -1
  224. package/dist/public/assets/config-validation-events-gsbmznWN.js +0 -15
  225. package/dist/public/assets/dialog-uOgi9SAD.js +0 -45
  226. package/dist/public/assets/dist-CSynDsuh.js +0 -1
  227. package/dist/public/assets/dist-C_giuVsx.js +0 -1
  228. package/dist/public/assets/dist-DuNRfJxD.js +0 -1
  229. package/dist/public/assets/gitGraph-7Q5UKJZL-Jlfn0B2m.js +0 -1
  230. package/dist/public/assets/index--4pY9sQD.js +0 -2004
  231. package/dist/public/assets/index-DlZTOWgT.css +0 -1
  232. package/dist/public/assets/info-OMHHGYJF-DoT1_N3P.js +0 -1
  233. package/dist/public/assets/isSymbol-W-l9JIco.js +0 -1
  234. package/dist/public/assets/keyboard-shortcuts-DdDIPI_l.js +0 -1
  235. package/dist/public/assets/packet-4T2RLAQJ-yZ2-ubu-.js +0 -1
  236. package/dist/public/assets/pie-ZZUOXDRM-D5R1mOV-.js +0 -1
  237. package/dist/public/assets/project-paths-lA0ULe1F.js +0 -1
  238. package/dist/public/assets/prop-types-CMddcK9H.js +0 -11
  239. package/dist/public/assets/radar-PYXPWWZC-3mLGFu-6.js +0 -1
  240. package/dist/public/assets/stateDiagram-v2-QKLJ7IA2-60n5CD_7.js +0 -1
  241. package/dist/public/assets/target-navigation-intent-Dxk9beLq.js +0 -1
  242. package/dist/public/assets/textarea-DV1qaluU.js +0 -1
  243. package/dist/public/assets/toggle-group-DsgJIlng.js +0 -1
  244. package/dist/public/assets/tooltip-DjrmDp0P.js +0 -1
  245. package/dist/public/assets/treeView-SZITEDCU-BN51_uTI.js +0 -1
  246. package/dist/public/assets/treemap-W4RFUUIX-CGAmMsfO.js +0 -1
  247. package/dist/public/assets/typing-burst-detector-ktvC37ND.js +0 -10
  248. package/dist/public/assets/wardley-RL74JXVD-CM7Zkd1g.js +0 -1
  249. package/dist/repair-skills-CcgI6BcR.mjs +0 -3
  250. package/dist/repair-skills-CtvbryfJ.mjs +0 -1
  251. package/dist/server-lock-8Lv6A-Xa-HmVDbKSU.mjs +0 -1
  252. package/dist/start-D6UCLg1E.mjs +0 -1
  253. package/dist/write-project-skill-BsaKpQ6o.mjs +0 -12
  254. /package/dist/public/assets/{__vite-browser-external-DCNpT6lV.js → __vite-browser-external-Ut7RmLQw.js} +0 -0
  255. /package/dist/public/assets/{array-BhtCvaOB.js → array-DWz6cUQe.js} +0 -0
  256. /package/dist/public/assets/{clike-DrSwTBuw.js → clike-C8wyRRyC.js} +0 -0
  257. /package/dist/public/assets/{colors-CzI3Rf3d.js → colors-Di0NygFo.js} +0 -0
  258. /package/dist/public/assets/{cytoscape.esm-BpF3q0tH.js → cytoscape.esm-B1cQeJcK.js} +0 -0
  259. /package/dist/public/assets/{defaultLocale-C061bpWn.js → defaultLocale-q7sRUXPc.js} +0 -0
  260. /package/dist/public/assets/{diff-D0_HBszs.js → diff-BVT8Qiu3.js} +0 -0
  261. /package/dist/public/assets/{dist-CfsYm4uS.js → dist-DkLHggFN.js} +0 -0
  262. /package/dist/public/assets/{go-DdpCnkcu.js → go-CkcupPV_.js} +0 -0
  263. /package/dist/public/assets/{init-Cvjgvi8K.js → init-CRMkf9sL.js} +0 -0
  264. /package/dist/public/assets/{isObjectLike-BWNDxuxw.js → isObjectLike-CXTdSPmv.js} +0 -0
  265. /package/dist/public/assets/{katex-DBuiuHex.js → katex-zjckjCBG.js} +0 -0
  266. /package/dist/public/assets/{lua-BrsGSRvH.js → lua-eVxIrt9t.js} +0 -0
  267. /package/dist/public/assets/{mcp-consent-store-BmlKYN7O.js → mcp-consent-store-DZJQdxaS.js} +0 -0
  268. /package/dist/public/assets/{min-C7ZjdWf5.js → min-CBRRdG4A.js} +0 -0
  269. /package/dist/public/assets/{path-BA4kcoAV.js → path-BFMmafCM.js} +0 -0
  270. /package/dist/public/assets/{pdf-CQwfdc8y.js → pdf-BodNBvC9.js} +0 -0
  271. /package/dist/public/assets/{pdf.worker-aWVFMfr5.js → pdf.worker-2BTzKTHB.js} +0 -0
  272. /package/dist/public/assets/{perl-BvKrvbRb.js → perl-CPdPC9j_.js} +0 -0
  273. /package/dist/public/assets/{properties-4lW4ME5D.js → properties-CDhOqkQC.js} +0 -0
  274. /package/dist/public/assets/{r-CfD_nMxU.js → r--HdjQNrK.js} +0 -0
  275. /package/dist/public/assets/{rough.esm-DlG7R-Qx.js → rough.esm-BBvhatCN.js} +0 -0
  276. /package/dist/public/assets/{ruby-CEHR0ONp.js → ruby-uRCn_fnf.js} +0 -0
  277. /package/dist/public/assets/{shell-CpYUNWOc.js → shell-DcLsuLkb.js} +0 -0
  278. /package/dist/public/assets/{sql-m6QogzU7.js → sql-DNxIZDy8.js} +0 -0
  279. /package/dist/public/assets/{src-DXWvEiD2.js → src-BqsPAyWV.js} +0 -0
  280. /package/dist/public/assets/{stex-CGHNatva.js → stex-h1E98Bzt.js} +0 -0
  281. /package/dist/public/assets/{swift-CmJiKyqD.js → swift-CK95DLTt.js} +0 -0
  282. /package/dist/public/assets/{terminal-theme-BhdZI3O9.js → terminal-theme-BxhEvVX2.js} +0 -0
  283. /package/dist/public/assets/{toml-CSZcBb2g.js → toml-D3zY1F-v.js} +0 -0
  284. /package/dist/public/assets/{trace-api-DPMyR1_m.js → trace-api-D2bW5RZv.js} +0 -0
  285. /package/dist/public/assets/{w3c-keyname-nBRha8PK.js → w3c-keyname-CO1Sq6Ug.js} +0 -0
@@ -1 +0,0 @@
1
- import"./chunk-K5T4RW27-CiRq5i4i.js";import{n as e}from"./chunk-KGLVRYIC-B5y130kq.js";export{e as createInfoServices};
@@ -1 +0,0 @@
1
- import{r as e,t}from"./isObjectLike-BWNDxuxw.js";var n=`[object Symbol]`;function r(r){return typeof r==`symbol`||t(r)&&e(r)==n}export{r as t};
@@ -1 +0,0 @@
1
- import{Wr as e}from"./dist-D2H0qs9k.js";var t={general:{id:`Weq9zb`},workspace:{id:`pmUArF`},search:{id:`A1taO8`},wysiwyg:{id:`ur2XSb`},source:{id:`tiWX6q`},navigation:{id:`LXfNU-`}},n=Object.keys(t),r=[{id:`command-palette`,category:`general`,title:{id:`ZjtgI-`},description:{id:`PZt1uN`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌘ K`,windowsLinux:`Ctrl K`,match:{key:`k`,mod:!0,allowExtraModifiers:!0}}]},{id:`settings`,category:`general`,title:{id:`Tz0i8g`},description:{id:`6m_7We`},scope:{id:`zL0LPh`},bindings:[{mac:`⌘ ,`,windowsLinux:`Ctrl ,`,match:{key:`,`,anyMod:!0}}]},{id:`new-item`,category:`general`,title:{id:`HdkSiO`},description:{id:`KkEAud`},scope:{id:`zL0LPh`},bindings:[{mac:`⌘ N`,windowsLinux:`Ctrl N`,match:{key:`n`,mod:!0}},{mac:`⌥⌘ N`,windowsLinux:`Ctrl Alt N`,match:{key:`n`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`toggle-files-sidebar`,category:`general`,title:{id:`rtdR4v`},description:{id:`EbZT7P`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌥⌘ S`,windowsLinux:`Ctrl Alt S`,match:{code:`KeyS`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`toggle-document-panel`,category:`general`,title:{id:`lkYioO`},description:{id:`It9ARY`},scope:{id:`2GT3Hf`},bindings:[{mac:`⌥⌘ B`,windowsLinux:`Ctrl Alt B`,match:{code:`KeyB`,anyMod:!0,altKey:!0,allowExtraModifiers:!0}}]},{id:`toggle-terminal-panel`,category:`general`,title:{id:`dPOFid`},description:{id:`fBaTkM`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ J`,windowsLinux:`Ctrl J`,match:{key:`j`,mod:!0}}]},{id:`open-ask-ai`,category:`general`,title:{id:`xWEvuo`},description:{id:`5OTgC7`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ L`,windowsLinux:`Ctrl L`,match:{key:`l`,mod:!0}}]},{id:`open-folder`,category:`workspace`,title:{id:`PVUn_c`},description:{id:`VYd_YA`},scope:{id:`cZI5AL`},bindings:[{mac:`⌘ O`,windowsLinux:`Ctrl O`}]},{id:`switch-project`,category:`workspace`,title:{id:`xaDWAI`},description:{id:`oS1YpJ`},scope:{id:`cZI5AL`},bindings:[{mac:`⇧⌘ P`,windowsLinux:`Ctrl Shift P`}]},{id:`file-tree-duplicate`,category:`workspace`,title:{id:`ot5BRK`},description:{id:`mxY24F`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ D`,windowsLinux:`Ctrl D`}]},{id:`file-tree-select-all`,category:`workspace`,title:{id:`1d1F11`},description:{id:`4v2Yyz`},scope:{id:`vbK_ZG`},bindings:[{mac:`⌘ A`,windowsLinux:`Ctrl A`}]},{id:`find`,category:`search`,title:{id:`KujtjC`},description:{id:`8OGgNM`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ F`,windowsLinux:`Ctrl F`,match:{key:`f`,mod:!0,allowShiftKey:!0}}]},{id:`replace`,category:`search`,title:{id:`fqSfXY`},description:{id:`wT4iQr`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ F`,windowsLinux:`Ctrl H`,match:{mac:{key:`f`,mod:!0,altKey:!0},windowsLinux:{key:`h`,mod:!0}}}]},{id:`find-next`,category:`search`,title:{id:`v7lbnC`},description:{id:`PR9FSv`},scope:{id:`EqtBXb`},bindings:[{mac:`⌘ G`,windowsLinux:`Ctrl G`,match:{key:`g`,mod:!0}},{mac:`F3`,windowsLinux:`F3`,match:{key:`F3`}}]},{id:`find-previous`,category:`search`,title:{id:`PB4upl`},description:{id:`PgzIpb`},scope:{id:`EqtBXb`},bindings:[{mac:`⇧⌘ G`,windowsLinux:`Ctrl Shift G`,match:{key:`g`,mod:!0,shiftKey:!0}},{mac:`Shift F3`,windowsLinux:`Shift F3`,match:{key:`F3`,shiftKey:!0}}]},{id:`find-field-navigation`,category:`search`,title:{id:`yMgL_E`},description:{id:`5ALjdr`},scope:{id:`BgV29F`},bindings:[{mac:`Enter / Shift Enter`,windowsLinux:`Enter / Shift Enter`}]},{id:`replace-current-from-field`,category:`search`,title:{id:`LDuM35`},description:{id:`EZVxVz`},scope:{id:`rZVMkf`},bindings:[{mac:`Enter`,windowsLinux:`Enter`}]},{id:`format-bold`,category:`wysiwyg`,title:{id:`KmydK6`},description:{id:`fbdLmk`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ B`,windowsLinux:`Ctrl B`}]},{id:`format-italic`,category:`wysiwyg`,title:{id:`pzutoc`},description:{id:`TLIO3j`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ I`,windowsLinux:`Ctrl I`}]},{id:`format-underline`,category:`wysiwyg`,title:{id:`YyXtnN`},description:{id:`Okd2Xv`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ U`,windowsLinux:`Ctrl U`}]},{id:`format-strike`,category:`wysiwyg`,title:{id:`WhOsNE`},description:{id:`HCn0Ay`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ X`,windowsLinux:`Ctrl Shift X`}]},{id:`format-inline-code`,category:`wysiwyg`,title:{id:`OX2Neh`},description:{id:`mo22UP`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ E`,windowsLinux:`Ctrl E`}]},{id:`format-highlight`,category:`wysiwyg`,title:{id:`gtEbeW`},description:{id:`Eji13z`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ H`,windowsLinux:`Ctrl Shift H`}]},{id:`edit-with-ai`,category:`general`,title:{id:`G4-bgo`},description:{id:`a3H_MR`},scope:{id:`C62P6b`},bindings:[{mac:`⇧⌘ I`,windowsLinux:`Ctrl Shift I`,match:{key:`i`,mod:!0,shiftKey:!0}}]},{id:`history-undo-redo`,category:`wysiwyg`,title:{id:`i9OyGp`},description:{id:`lbkOif`},scope:{id:`ur2XSb`},bindings:[{mac:`⌘ Z`,windowsLinux:`Ctrl Z`},{mac:`⇧⌘ Z / ⌘ Y`,windowsLinux:`Ctrl Shift Z / Ctrl Y`}]},{id:`heading-paragraph`,category:`wysiwyg`,title:{id:`bkQRMh`},description:{id:`rgPqOw`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ 0`,windowsLinux:`Ctrl Alt 0`}]},{id:`heading-levels`,category:`wysiwyg`,title:{id:`q_z77Z`},description:{id:`8Jm2EP`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ 1-6`,windowsLinux:`Ctrl Alt 1-6`}]},{id:`list-bullet`,category:`wysiwyg`,title:{id:`ijLc3m`},description:{id:`By-7Pn`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 8`,windowsLinux:`Ctrl Shift 8`}]},{id:`list-ordered`,category:`wysiwyg`,title:{id:`iSQTsg`},description:{id:`ou1hFW`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 7`,windowsLinux:`Ctrl Shift 7`}]},{id:`list-task`,category:`wysiwyg`,title:{id:`E1_c72`},description:{id:`-slrNR`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ 9`,windowsLinux:`Ctrl Shift 9`}]},{id:`code-block`,category:`wysiwyg`,title:{id:`4A3Yzu`},description:{id:`pTPqMK`},scope:{id:`ur2XSb`},bindings:[{mac:`⌥⌘ C`,windowsLinux:`Ctrl Alt C`}]},{id:`hard-break`,category:`wysiwyg`,title:{id:`-3ois8`},description:{id:`vDXqVv`},scope:{id:`ur2XSb`},bindings:[{mac:`Shift Enter`,windowsLinux:`Shift Enter`},{mac:`⌘ Enter`,windowsLinux:`Ctrl Enter`}]},{id:`move-block`,category:`wysiwyg`,title:{id:`f1XQyZ`},description:{id:`zQBg2C`},scope:{id:`ur2XSb`},bindings:[{mac:`⇧⌘ ↑`,windowsLinux:`Ctrl Shift ↑`},{mac:`⇧⌘ ↓`,windowsLinux:`Ctrl Shift ↓`}]},{id:`list-indent`,category:`wysiwyg`,title:{id:`G0YZ-I`},description:{id:`5GKMSz`},scope:{id:`ynIa4S`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`list-split-item`,category:`wysiwyg`,title:{id:`neRy3o`},description:{id:`NpC29w`},scope:{id:`ynIa4S`},bindings:[{mac:`Enter`,windowsLinux:`Enter`}]},{id:`table-cell-navigation`,category:`wysiwyg`,title:{id:`K8-WWn`},description:{id:`4NC2Ym`},scope:{id:`l1aQKz`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`table-delete-selection`,category:`wysiwyg`,title:{id:`881Uwh`},description:{id:`YEP3X2`},scope:{id:`99eR72`},bindings:[{mac:`Backspace / Delete`,windowsLinux:`Backspace / Delete`},{mac:`⌘ Backspace / ⌘ Delete`,windowsLinux:`Ctrl Backspace / Ctrl Delete`}]},{id:`delete-atom`,category:`wysiwyg`,title:{id:`636K3K`},description:{id:`oXKEsy`},scope:{id:`ur2XSb`},bindings:[{mac:`Backspace`,windowsLinux:`Backspace`},{mac:`Delete`,windowsLinux:`Delete`}]},{id:`slash-menu`,category:`navigation`,title:{id:`shNd9t`},description:{id:`8PmoQF`},scope:{id:`ur2XSb`},bindings:[{mac:`/`,windowsLinux:`/`}]},{id:`suggestion-navigation`,category:`navigation`,title:{id:`riqekz`},description:{id:`OiHJdA`},scope:{id:`y5FUYi`},bindings:[{mac:`↑ / ↓`,windowsLinux:`↑ / ↓`},{mac:`Enter / Tab`,windowsLinux:`Enter / Tab`},{mac:`Esc`,windowsLinux:`Esc`}]},{id:`component-navigation`,category:`navigation`,title:{id:`rwrPbS`},description:{id:`0s8-e8`},scope:{id:`ur2XSb`},bindings:[{mac:`↑ / ↓ / ← / →`,windowsLinux:`↑ / ↓ / ← / →`},{mac:`Enter / Esc`,windowsLinux:`Enter / Esc`}]},{id:`source-indent`,category:`source`,title:{id:`fwhX-N`},description:{id:`skf5Ix`},scope:{id:`tiWX6q`},bindings:[{mac:`Tab`,windowsLinux:`Tab`},{mac:`Shift Tab`,windowsLinux:`Shift Tab`}]},{id:`source-navigation`,category:`source`,title:{id:`qSKu2v`},description:{id:`gITz7o`},scope:{id:`tiWX6q`},bindings:[{mac:`Arrow keys / Option Arrow / Command Arrow`,windowsLinux:`Arrow keys / Ctrl Arrow / Home / End`},{mac:`Page Up / Page Down`,windowsLinux:`Page Up / Page Down`},{mac:`Shift with movement keys`,windowsLinux:`Shift with movement keys`}]},{id:`source-editing`,category:`source`,title:{id:`pFagOn`},description:{id:`MGb89P`},scope:{id:`tiWX6q`},bindings:[{mac:`Enter / Shift Enter / ⌘ Enter`,windowsLinux:`Enter / Shift Enter / Ctrl Enter`},{mac:`Backspace / Delete`,windowsLinux:`Backspace / Delete`},{mac:`⌥ Backspace / ⌥ Delete`,windowsLinux:`Ctrl Backspace / Ctrl Delete`},{mac:`⌥ ↑ / ⌥ ↓`,windowsLinux:`Alt ↑ / Alt ↓`},{mac:`⇧⌥ ↑ / ⇧⌥ ↓`,windowsLinux:`Shift Alt ↑ / Shift Alt ↓`},{mac:`⇧⌘ K`,windowsLinux:`Ctrl Shift K`}]},{id:`source-history`,category:`source`,title:{id:`4Sxexw`},description:{id:`r2huLx`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ Z`,windowsLinux:`Ctrl Z`},{mac:`⇧⌘ Z`,windowsLinux:`Ctrl Y / Ctrl Shift Z`},{mac:`⌘ U / ⇧⌘ U`,windowsLinux:`Ctrl U / Alt U`}]},{id:`source-select-all`,category:`source`,title:{id:`a-cKXz`},description:{id:`UTNVyS`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ A`,windowsLinux:`Ctrl A`}]},{id:`source-multi-cursor`,category:`source`,title:{id:`mg0YGL`},description:{id:`lWNpNB`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ ↑ / ⌥⌘ ↓`,windowsLinux:`Ctrl Alt ↑ / Ctrl Alt ↓`},{mac:`⇧⌘ L`,windowsLinux:`Ctrl Shift L`}]},{id:`source-search`,category:`source`,title:{id:`7OhaRy`},description:{id:`mwMF9u`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ F`,windowsLinux:`Ctrl F`}]},{id:`source-toggle-comment`,category:`source`,title:{id:`RfaEio`},description:{id:`MrwYIK`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ /`,windowsLinux:`Ctrl /`},{mac:`Shift Alt A`,windowsLinux:`Shift Alt A`}]},{id:`source-select-next-occurrence`,category:`source`,title:{id:`hY8pka`},description:{id:`XnlF3W`},scope:{id:`tiWX6q`},bindings:[{mac:`⌘ D`,windowsLinux:`Ctrl D`}]},{id:`source-goto-line`,category:`source`,title:{id:`7FamGZ`},description:{id:`yHikCO`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ G`,windowsLinux:`Ctrl Alt G`}]},{id:`source-find-results`,category:`source`,title:{id:`rJVoVX`},description:{id:`TwYboS`},scope:{id:`qyLmWw`},bindings:[{mac:`⌘ G / ⇧⌘ G`,windowsLinux:`Ctrl G / Ctrl Shift G`},{mac:`F3 / Shift F3`,windowsLinux:`F3 / Shift F3`},{mac:`Esc`,windowsLinux:`Esc`}]},{id:`source-folding`,category:`source`,title:{id:`bcjYUA`},description:{id:`VZGh8G`},scope:{id:`tiWX6q`},bindings:[{mac:`⌥⌘ [ / ⌥⌘ ]`,windowsLinux:`Ctrl Shift [ / Ctrl Shift ]`},{mac:`Ctrl Alt [ / Ctrl Alt ]`,windowsLinux:`Ctrl Alt [ / Ctrl Alt ]`}]},{id:`source-completion`,category:`source`,title:{id:`VuxVSP`},description:{id:`Ehkru0`},scope:{id:`tiWX6q`},bindings:[{mac:`Ctrl Space`,windowsLinux:`Ctrl Space`},{mac:"⌥ ` / ⌥ I",windowsLinux:`Ctrl Space`},{mac:`↑ / ↓ / Page Up / Page Down`,windowsLinux:`↑ / ↓ / Page Up / Page Down`},{mac:`Enter / Esc`,windowsLinux:`Enter / Esc`}]},{id:`source-tab-focus-mode`,category:`source`,title:{id:`eG8Jsg`},description:{id:`qRZh7J`},scope:{id:`tiWX6q`},bindings:[{mac:`Shift Alt M`,windowsLinux:`Ctrl M`}]},{id:`source-lint-panel`,category:`source`,title:{id:`yvG-l1`},description:{id:`kCqCyf`},scope:{id:`tiWX6q`},bindings:[{mac:`⇧⌘ M`,windowsLinux:`Ctrl Shift M`}]},{id:`source-next-diagnostic`,category:`source`,title:{id:`M1OfV9`},description:{id:`ExPiRQ`},scope:{id:`tiWX6q`},bindings:[{mac:`F8`,windowsLinux:`F8`}]}];function i(e){let t=r.find(t=>t.id===e);if(!t)throw Error(`Unknown keyboard shortcut: ${e}`);return t}function a(){return e()?`mac`:`windowsLinux`}var o=[[/⌘/g,` Command `],[/⌥/g,` Option `],[/⇧/g,` Shift `],[/⌃/g,` Control `],[/↑/g,` Up Arrow `],[/↓/g,` Down Arrow `],[/←/g,` Left Arrow `],[/→/g,` Right Arrow `],[/\[/g,` Left Bracket `],[/\]/g,` Right Bracket `],[/,/g,` Comma `],[/\bCtrl\b/g,` Control `]];function s(e){return e.split(` / `).map(e=>o.reduce((e,[t,n])=>e.replace(t,n),e).replaceAll(/\s+/g,` `).trim()).join(` or `)}function c(e,t=a()){return t===`mac`?e.mac:e.windowsLinux}function l(e,t=a()){return s(c(e,t))}function u(e,t=a()){return c(i(e).bindings[0],t)}function d(e,t=a()){return l(i(e).bindings[0],t)}function f(e){if(!e||typeof e!=`object`)return!1;if(`isContentEditable`in e&&e.isContentEditable===!0)return!0;if(!(`tagName`in e))return!1;let t=String(e.tagName).toUpperCase();return t===`INPUT`||t===`TEXTAREA`}function p(e,t,n=a()){return i(t).bindings.some(t=>{let r=m(t.match,n);return r?g(e,r,n):!1})}function m(e,t){return e?h(e)?e:e[t]??null:null}function h(e){return`key`in e||`code`in e}function g(e,t,n){if(t.key&&e.key.toLowerCase()!==t.key.toLowerCase()||t.code&&e.code!==t.code)return!1;let r=t.mod?n===`mac`:!1,i=t.mod?n===`windowsLinux`:!1,a=t.altKey??!1,o=t.shiftKey??!1;return t.allowExtraModifiers?!(t.anyMod&&!e.metaKey&&!e.ctrlKey||r&&!e.metaKey||i&&!e.ctrlKey||a&&!e.altKey||o&&!e.shiftKey):(t.anyMod?e.metaKey||e.ctrlKey:e.metaKey===r&&e.ctrlKey===i)&&e.altKey===a&&(t.allowShiftKey||!!e.shiftKey===o)}export{c as a,f as c,u as i,p as l,t as n,d as o,n as r,s,r as t};
@@ -1 +0,0 @@
1
- import"./chunk-K5T4RW27-CiRq5i4i.js";import{n as e}from"./chunk-FOC6F5B3-CPk9uh7H.js";export{e as createPacketServices};
@@ -1 +0,0 @@
1
- import"./chunk-K5T4RW27-CiRq5i4i.js";import{n as e}from"./chunk-AA7GKIK3-Dyy4cSAD.js";export{e as createPieServices};
@@ -1 +0,0 @@
1
- import{o as e,r as t,t as n}from"./compiler-runtime-Cs91PcD2.js";import{l as r}from"./button-CmLxDlCv.js";import{n as i}from"./checkbox-BlEgF5ZV.js";import{i as a,n as o,r as s}from"./textarea-DV1qaluU.js";function c(){let e=null,t=null,n=new Set,r=!1,i=null;function a(){for(let e of n)e()}function o(){e!==null&&(e=null,a())}return{install({bridge:n}){if(n&&n.onboarding)return r?i??void 0:(r=!0,t=n,i=n.onboarding.onShow(t=>{e=t,a()}),n.onboarding.signalReady(),()=>{i?.(),i=null,r=!1,t=null,o()})},getSnapshot(){return e},subscribe(e){return n.add(e),()=>{n.delete(e)}},async confirm(e){let n=t;if(!n)return{ok:!1,error:`Not attached to desktop bridge`};try{let t=await n.onboarding.confirm(e);return t.ok&&o(),t}catch(e){return{ok:!1,error:e instanceof Error?e.message:`Unknown error`}}},async cancel(){let e=t;if(!e)return{ok:!1,error:`Not attached to desktop bridge`};try{let t=await e.onboarding.cancel();return t.ok&&o(),t}catch(e){return{ok:!1,error:e instanceof Error?e.message:`Unknown error`}}},dismiss(){o()}}}var l=c();function u(e){return l.install(e)}var d=n(),f=e(),p=`flex items-start gap-2 rounded-md border p-3 text-sm font-normal transition-colors cursor-pointer`;function m(e){let n=(0,d.c)(34),{value:c,onValueChange:l,disabled:u,idPrefix:m,testIdPrefix:h}=e,g=u===void 0?!1:u,_=`${m}-sharing-shared`,v=`${m}-sharing-local-only`,y;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(y=(0,f.jsxs)(`legend`,{className:`flex items-center gap-1.5 text-sm font-medium`,children:[(0,f.jsx)(t,{id:`wtcxiD`}),(0,f.jsx)(a,{})]}),n[0]=y):y=n[0];let b;n[1]===l?b=n[2]:(b=e=>l(e),n[1]=l,n[2]=b);let x=c===`shared`?`border-primary bg-primary/5`:`border-border hover:bg-muted/40`,S;n[3]===x?S=n[4]:(S=r(p,x),n[3]=x,n[4]=S);let C=`${h}-shared`,w;n[5]!==_||n[6]!==C?(w=(0,f.jsx)(s,{id:_,value:`shared`,"data-testid":C,className:`mt-0.5`}),n[5]=_,n[6]=C,n[7]=w):w=n[7];let T;n[8]===Symbol.for(`react.memo_cache_sentinel`)?(T=(0,f.jsx)(`span`,{className:`block font-medium`,children:(0,f.jsx)(t,{id:`0Gd0NU`})}),n[8]=T):T=n[8];let E;n[9]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,f.jsxs)(`span`,{children:[T,(0,f.jsx)(`span`,{className:`block text-1sm text-muted-foreground`,children:(0,f.jsx)(t,{id:`dJw2_7`})})]}),n[9]=E):E=n[9];let D;n[10]!==_||n[11]!==S||n[12]!==w?(D=(0,f.jsxs)(i,{htmlFor:_,className:S,children:[w,E]}),n[10]=_,n[11]=S,n[12]=w,n[13]=D):D=n[13];let O=c===`local-only`?`border-primary bg-primary/5`:`border-border hover:bg-muted/40`,k;n[14]===O?k=n[15]:(k=r(p,O),n[14]=O,n[15]=k);let A=`${h}-local-only`,j;n[16]!==v||n[17]!==A?(j=(0,f.jsx)(s,{id:v,value:`local-only`,"data-testid":A,className:`mt-0.5`}),n[16]=v,n[17]=A,n[18]=j):j=n[18];let M;n[19]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,f.jsx)(`span`,{className:`block font-medium`,children:(0,f.jsx)(t,{id:`OgyJSr`})}),n[19]=M):M=n[19];let N;n[20]===Symbol.for(`react.memo_cache_sentinel`)?(N=(0,f.jsxs)(`span`,{children:[M,(0,f.jsx)(`span`,{className:`block text-1sm text-muted-foreground`,children:(0,f.jsx)(t,{id:`cZ_8zB`})})]}),n[20]=N):N=n[20];let P;n[21]!==v||n[22]!==k||n[23]!==j?(P=(0,f.jsxs)(i,{htmlFor:v,className:k,children:[j,N]}),n[21]=v,n[22]=k,n[23]=j,n[24]=P):P=n[24];let F;n[25]!==g||n[26]!==D||n[27]!==P||n[28]!==b||n[29]!==c?(F=(0,f.jsxs)(o,{value:c,onValueChange:b,disabled:g,className:`grid-cols-2 gap-3`,children:[D,P]}),n[25]=g,n[26]=D,n[27]=P,n[28]=b,n[29]=c,n[30]=F):F=n[30];let I;return n[31]!==F||n[32]!==h?(I=(0,f.jsxs)(`fieldset`,{className:`flex flex-col space-y-2`,"data-testid":h,children:[y,F]}),n[31]=F,n[32]=h,n[33]=I):I=n[33],I}function h(e,t){let n=e=>e.replace(/\\/g,`/`).replace(/\/+$/,``)||(e.startsWith(`/`)?`/`:``),r=n(e),i=n(t);if(r===i)return`.`;let a=r.endsWith(`/`)?r:`${r}/`;return i.startsWith(a)?i.slice(a.length):null}function g(e){if(e===``||e===`.`)return!0;if(e.startsWith(`/`)||/^[A-Za-z]:/.test(e))return!1;let t=e.replace(/\\/g,`/`).split(`/`),n=0;for(let e of t)if(!(e===``||e===`.`))if(e===`..`){if(--n,n<0)return!1}else n+=1;return!0}export{u as a,l as i,h as n,m as r,g as t};
@@ -1,11 +0,0 @@
1
- import{o as e,t}from"./chunk-CFjPhJqf.js";import{a as n,o as r,t as i}from"./compiler-runtime-Cs91PcD2.js";import{D as a,In as o,k as s,mr as c,zn as l}from"./dist-D2H0qs9k.js";import{u}from"./button-CmLxDlCv.js";var d=u(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),ee=u(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),f=u(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),p=e=>typeof e==`string`,te=e=>typeof e==`function`,m=new Map,h=`en`;function g(e){return[...Array.isArray(e)?e:[e],h]}function _(e,t,n){let r=g(e);n||=`default`;let i;if(typeof n==`string`)switch(i={day:`numeric`,month:`short`,year:`numeric`},n){case`full`:i.weekday=`long`;case`long`:i.month=`long`;break;case`short`:i.month=`numeric`;break}else i=n;return x(()=>S(`date`,r,n),()=>new Intl.DateTimeFormat(r,i)).format(p(t)?new Date(t):t)}function v(e,t,n){let r;if(n||=`default`,typeof n==`string`)switch(r={second:`numeric`,minute:`numeric`,hour:`numeric`},n){case`full`:case`long`:r.timeZoneName=`short`;break;case`short`:delete r.second}else r=n;return _(e,t,r)}function y(e,t,n){let r=g(e);return x(()=>S(`number`,r,n),()=>new Intl.NumberFormat(r,n)).format(t)}function b(e,t,n,{offset:r=0,...i}){let a=g(e),o=t?x(()=>S(`plural-ordinal`,a),()=>new Intl.PluralRules(a,{type:`ordinal`})):x(()=>S(`plural-cardinal`,a),()=>new Intl.PluralRules(a,{type:`cardinal`}));return i[n]??i[o.select(n-r)]??i.other}function x(e,t){let n=e(),r=m.get(n);return r||(r=t(),m.set(n,r)),r}function S(e,t,n){return`${e}-${t.join(`-`)}-${JSON.stringify(n)}`}var C=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,w=e=>e.replace(/\\u([a-fA-F0-9]{4})|\\x([a-fA-F0-9]{2})/g,(e,t,n)=>{if(t){let e=parseInt(t,16);return String.fromCharCode(e)}else{let e=parseInt(n,16);return String.fromCharCode(e)}}),T=`%__lingui_octothorpe__%`,E=(e,t,n={})=>{let r=t||e,i=e=>typeof e==`object`?e:n[e],a=(e,t)=>{let a=y(r,e,Object.keys(n).length?i(`number`):void 0);return t.replace(new RegExp(T,`g`),a)};return{plural:(e,t)=>{let{offset:n=0}=t,i=b(r,!1,e,t);return a(e-n,i)},selectordinal:(e,t)=>{let{offset:n=0}=t,i=b(r,!0,e,t);return a(e-n,i)},select:D,number:(e,t)=>y(r,e,i(t)||{style:t}),date:(e,t)=>_(r,e,i(t)||t),time:(e,t)=>v(r,e,i(t)||t)}},D=(e,t)=>t[e]??t.other;function O(e,t,n){return(r={},i)=>{let a=E(t,n,i),o=(e,t=!1)=>Array.isArray(e)?e.reduce((e,n)=>{if(n===`#`&&t)return e+T;if(p(n))return e+n;let[i,s,c]=n,l={};s===`plural`||s===`selectordinal`||s===`select`?Object.entries(c).forEach(([e,t])=>{l[e]=o(t,s===`plural`||s===`selectordinal`)}):l=c;let u;if(s){let e=a[s];u=e(r[i],l)}else u=r[i];return u==null?e:e+u},``):e,s=o(e);return p(s)&&C.test(s)?w(s):p(s)?s:s?String(s):``}}var k=class{_events={};on(e,t){return this._events[e]??=new Set,this._events[e].add(t),()=>this.removeListener(e,t)}removeListener(e,t){let n=this._events[e];n?.delete(t),n?.size===0&&delete this._events[e]}emit(e,...t){let n=this._events[e];if(n)for(let e of[...n])e.apply(this,t)}},A=class extends k{_locale=``;_locales;_messages={};_missing;_messageCompiler;constructor(e){super(),e.missing!=null&&(this._missing=e.missing),e.messages!=null&&this.load(e.messages),(typeof e.locale==`string`||e.locales)&&this.activate(e.locale??h,e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){return this._messages[this._locale]??{}}setMessagesCompiler(e){return this._messageCompiler=e,this}_load(e,t){let n=this._messages[e];n?Object.assign(n,t):this._messages[e]=t}load(e,t){typeof e==`string`&&typeof t==`object`?this._load(e,t):Object.entries(e).forEach(([e,t])=>this._load(e,t)),this.emit(`change`)}loadAndActivate({locale:e,locales:t,messages:n}){this._locale=e,this._locales=t||void 0,this._messages[this._locale]=n,this.emit(`change`)}activate(e,t){this._locale=e,this._locales=t,this.emit(`change`)}_(e,t,n){if(!this.locale)throw Error(`Lingui: Attempted to call a translation function without setting a locale.
2
- Make sure to call \`i18n.activate(locale)\` before using Lingui functions.
3
- This issue may also occur due to a race condition in your initialization logic.`);let r=n?.message;e||=``,p(e)||(t=e.values||t,r=e.message,e=e.id);let i=this.messages[e],a=i===void 0,o=this._missing;if(o&&a)return te(o)?o(this._locale,e):o;a&&this.emit(`missing`,{id:e,locale:this._locale});let s=i||r||e;return p(s)&&(this._messageCompiler?s=this._messageCompiler(s):console.warn(`Uncompiled message detected! Message:
4
-
5
- > ${s}
6
-
7
- That means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used.
8
- ICU features such as interpolation and plurals will not work properly for that message.
9
-
10
- Please compile your catalog first.
11
- `)),p(s)&&C.test(s)?w(s):p(s)?s:O(s,this._locale,this._locales)(t,n?.formats)}t=this._.bind(this);date(e,t){return _(this._locales||this._locale,e,t)}number(e,t){return y(this._locales||this._locale,e,t)}};function ne(e={}){return new A(e)}var j=ne();function M(e){if(e.startsWith(B)||!e.startsWith(`#/`))return null;let t=e.slice(2),n=V(t),r=n>=0?t.slice(0,n):t;if(!r)return null;try{return r.split(`/`).map(decodeURIComponent).join(`/`)}catch{return r}}function N(e){if(e.startsWith(B)||!e.startsWith(`#/`))return null;let t=e.slice(2),n=t.indexOf(`#`);if(n<0)return null;let r=t.slice(n+1);if(!r)return null;try{return decodeURIComponent(r)}catch{return r}}function P(e,t){let n=`#/${e}`;return t?`${n}#${encodeURIComponent(t)}`:n}function F(e){if(window.location.hash===e)return;let{pathname:t,search:n}=window.location;window.history.replaceState(null,``,`${t}${n}${e}`)}function I(e){return e.endsWith(`.mdx`)?e.slice(0,-4):e.endsWith(`.md`)?e.slice(0,-3):e}function L(e,t){let n=e.replace(/^\/+|\/+$/g,``),r=n?`#/${n}/`:`#/`;return t?`${r}#${encodeURIComponent(t)}`:r}function R(e,t,n){if(e===`folder`)return L(t);let r=`#/${encodeURIComponent(t)}`;return n==null||n===``?r:`${r}?branch=${encodeURIComponent(n)}`}function z(e){if(e===`#/`)return!0;if(!e.startsWith(`#/`))return!1;let t=e.slice(2);return t.length>0&&t[0]===`?`}var B=`#/__asset__/`;function V(e){let t=e.indexOf(`?`),n=e.indexOf(`#`);return t<0?n:n<0?t:Math.min(t,n)}function H(e){if(!e.startsWith(B))return null;let t=e.slice(12);if(!t)return null;try{return t.split(`/`).map(decodeURIComponent).join(`/`)}catch{return t}}function U(e){return`${B}${e.split(`/`).map(encodeURIComponent).join(`/`)}`}var W=e(n(),1),re=i();function G(e){if(typeof e!=`object`||!e)return;let t=e;if(typeof t.title==`string`&&t.title.length>0)return t.title}function K(e){return e.kind===`asset`}function q(e){return e.kind===`document`}function J(e){return e.kind===`folder`}function ie(e){let t=[],n=0;for(let r of e)switch(r.kind){case`document`:if(r.docName===void 0){n+=1;break}t.push({kind:`document`,docName:r.docName,docExt:r.docExt,size:r.size,modified:r.modified,isSymlink:r.isSymlink,canonicalDocName:r.canonicalDocName,targetPath:r.targetPath});break;case`asset`:if(r.path===void 0||r.assetExt===void 0){n+=1;break}t.push({kind:`asset`,path:r.path,assetExt:r.assetExt,mediaKind:r.mediaKind??null,size:r.size,modified:r.modified,referencedBy:r.referencedBy});break;case`file`:if(r.path===void 0){n+=1;break}t.push({kind:`asset`,path:r.path,assetExt:r.assetExt??ae(r.path),mediaKind:null,size:r.size,modified:r.modified,referencedBy:[]});break;case`folder`:if(r.path===void 0){n+=1;break}t.push({kind:`folder`,path:r.path,size:r.size,modified:r.modified,hasChildren:r.hasChildren,isSymlink:r.isSymlink,targetPath:r.targetPath});break;default:r.kind;break}return n>0&&console.warn(`[file-tree-utils] dropped ${n} listing entries missing variant identity fields`),t}function ae(e){let t=e.includes(`/`)?e.split(`/`).pop()??e:e,n=t.lastIndexOf(`.`);return n>0&&n<t.length-1?t.slice(n+1).toLowerCase():t.startsWith(`.`)&&t.length>1?t.slice(1).toLowerCase():`file`}function oe(e){if(!e)return[];let t=e.split(`/`).filter(Boolean),n=[];for(let e=1;e<t.length;e++)n.push(t.slice(0,e).join(`/`));return n}function se(e){if(!e)return``;let t=e.lastIndexOf(`/`);return t>0?e.slice(0,t):``}function ce(e,t=!1){return e.filter(e=>{let n=e.docName??e.path??``;return n===``?!1:t?!0:!l(n)})}var Y=null,X=new Set;function Z(e,t){if(e===t)return!0;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function le(e,t){return e===null?!1:e===t?!0:Z(e.pages,t.pages)&&Z(e.folderPaths,t.folderPaths)&&Z(e.assetPaths??new Set,t.assetPaths??new Set)&&Z(e.filePaths??new Set,t.filePaths??new Set)&&ue(e.pageIcons,t.pageIcons)}function ue(e,t){if(e===t)return!0;let n=e?.size??0;if(n!==(t?.size??0))return!1;if(n===0)return!0;for(let[n,r]of e)if(t.get(n)!==r)return!1;return!0}function de(e,t){let n=new Map;for(let r of e){let e=t(r);e&&!n.has(e)&&n.set(e,r)}return n}function fe(e,t){let n=new Map,r=[...e].sort((e,t)=>e.localeCompare(t));for(let e of r){let r=e.lastIndexOf(`/`),i=t(r===-1?e:e.slice(r+1));i&&!n.has(i)&&n.set(i,e)}return n}function pe(e){let t=new Map;for(let[n,r]of e){let e=r.icon;typeof e==`string`&&e.trim()!==``&&t.set(n,e)}return t}function me(){return Y}function he(e){if(!le(Y,e)){Y=e;for(let t of Array.from(X))try{t(e)}catch(e){console.error(`[page-list-cache] subscriber threw:`,e)}}}function ge(e){if(X.add(e),Y!==null)try{e(Y)}catch(e){console.error(`[page-list-cache] subscriber threw on replay:`,e)}return()=>{X.delete(e)}}var _e=`open-knowledge:documents-changed`,ve=new Set(s.options);function ye(e){return e===void 0||!Array.isArray(e)?[`files`]:[...new Set(e.filter(e=>ve.has(e)))]}function be(e=[`files`]){window.dispatchEvent(new CustomEvent(_e,{detail:{channels:ye(e)}}))}function xe(e){let t=t=>{e(ye(t instanceof CustomEvent?t.detail?.channels:void 0))};return window.addEventListener(_e,t),()=>window.removeEventListener(_e,t)}var Se=`open-knowledge:branch-changed`;function Ce(e){window.dispatchEvent(new CustomEvent(Se,{detail:{branch:e}}))}function we(e){let t=t=>{if(!(t instanceof CustomEvent))return;let n=t.detail;e(n?.branch??null)};return window.addEventListener(Se,t),()=>window.removeEventListener(Se,t)}var Te=`open-knowledge:templates-changed`;function Ee(){window.dispatchEvent(new CustomEvent(Te))}function De(e){let t=()=>e();return window.addEventListener(Te,t),()=>window.removeEventListener(Te,t)}function Q(e){return e.trim().replace(/^\.\/+/,``).replace(/^\/+/,``).replace(/\.mdx?$/i,``)}function Oe(e){let t=Q(e);return t?`${t}.md`:`untitled.md`}function ke(e){let t=Q(e),n=t.lastIndexOf(`/`);return{initialDir:n>0?t.slice(0,n):``,suggestedName:`${n>=0?t.slice(n+1):t||`untitled`}.md`}}function Ae(e){let t=e.trim();return{normalizedTarget:Q(t).replace(/\/+$/g,``),expectsFolder:/\/+$/.test(t)}}function je(e){let t=new Set;for(let n of e)for(let e of oe(n))t.add(e);return t}function Me(e,t){if(!t)return;let n=c(e);if(n)return t.get(n)}function Ne(e,t){if(!t||e.includes(`/`))return;let n=c(e);if(n)return t.get(n)}function Pe(e,t){let{normalizedTarget:n,expectsFolder:r}=Ae(e);if(!n)return{kind:`missing`,target:n};if(!r&&t.pages.has(n))return{kind:`doc`,target:n,docName:n};if(!r){let e=Me(n,t.pagesBySlug);if(e)return{kind:`doc`,target:e,docName:e}}let i=`${n}/index`;if(t.pages.has(i))return{kind:`folder-index`,target:n,folderPath:n,docName:i,noteKind:`canonical-index`};let a=n.split(`/`).pop(),o=a?`${n}/${a}`:null;if(o&&t.pages.has(o))return{kind:`folder-index`,target:n,folderPath:n,docName:o,noteKind:`legacy-folder-note`};if(!r){let e=Ne(n,t.pagesByBasename);if(e)return{kind:`doc`,target:e,docName:e}}return(t.folderPaths??je(t.pages)).has(n)?{kind:`folder`,target:n,folderPath:n}:{kind:`missing`,target:n}}function Fe(e){return e.kind===`folder-index`?{kind:`folder`,target:e.folderPath,folderPath:e.folderPath}:e}function Ie(e,t,n=a){return typeof t!=`number`||!o(t,n)?null:{kind:`large-file`,target:e,docName:e,size:t,limit:n}}function Le(e,t,n=a){return e.kind!==`doc`&&e.kind!==`folder-index`?e:Ie(e.docName,t.get(e.docName)?.size,n)??e}function Re(e){switch(e.kind){case`doc`:case`folder-index`:case`large-file`:return e.docName;case`missing`:return e.target;case`asset`:case`folder`:return null}}var ze=r(),$=(0,W.createContext)(null);function Be(e,t){if(t.size===0)return new Set(e);let n=new Set(e);for(let e of t)n.add(e);return n}function Ve(e,t){if(e.size===0)return new Set;let n=new Set;for(let r of e)t.has(r)||n.add(r);return n}function He(e,t){let n=new Map(e);for(let e of t)n.has(e)||n.set(e,e);return n}async function Ue(){let e=await fetch(`/api/pages`);if(!e.ok){let t=await e.json().catch(()=>null);throw Error(G(t)??`/api/pages responded with ${e.status}`)}let t=await e.json();return Array.isArray(t.pages)?t.pages:[]}async function We(){let e=await fetch(`/api/documents`);if(!e.ok){let t=await e.json().catch(()=>null);throw Error(G(t)??`/api/documents responded with ${e.status}`)}let t=await e.json();return Array.isArray(t.documents)?{assetPaths:t.documents.filter(e=>e.kind===`asset`&&typeof e.path==`string`&&e.path.length>0).map(e=>e.path),folderPaths:t.documents.filter(e=>e.kind===`folder`&&typeof e.path==`string`&&e.path.length>0).map(e=>e.path),filePaths:t.documents.filter(e=>e.kind===`file`&&typeof e.path==`string`&&e.path.length>0).map(e=>e.path)}:{assetPaths:[],folderPaths:[],filePaths:[]}}function Ge(e){console.error(`[PageListContext] Failed to load pages:`,e)}function Ke(e){console.warn(`[PageListContext] Failed to load referenced assets:`,e)}function qe(e){let t=(0,re.c)(54),{children:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=new Set,t[0]=r):r=t[0];let[i,a]=(0,W.useState)(r),o;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(o=new Map,t[1]=o):o=t[1];let[s,l]=(0,W.useState)(o),u;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(u=new Map,t[2]=u):u=t[2];let[d,ee]=(0,W.useState)(u),f;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(f=new Set,t[3]=f):f=t[3];let[p,te]=(0,W.useState)(f),m;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(m=new Set,t[4]=m):m=t[4];let[h,g]=(0,W.useState)(m),_;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(_=new Set,t[5]=_):_=t[5];let[v,y]=(0,W.useState)(_),b;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(b=new Set,t[6]=b):b=t[6];let[x,S]=(0,W.useState)(b),[C,w]=(0,W.useState)(!0),[T,E]=(0,W.useState)(null),D=(0,W.useRef)(0),O;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(O=function(){let e=D.current+=1;Promise.all([Ue(),We().catch(Ze)]).then(t=>{let[n,r]=t;if(e!==D.current)return;let i=new Set(n.map(Xe));a(i),l(new Map(n.map(Ye))),ee(new Map(n.map(Je))),te(new Set(r.assetPaths)),g(new Set(r.folderPaths)),y(new Set(r.filePaths)),S(e=>Ve(e,i)),E(null)}).catch(t=>{e===D.current&&(Ge(t),E(t instanceof Error?t.message:`Failed to load pages`))}).finally(()=>{e===D.current&&w(!1)})},t[7]=O):O=t[7];let k=O,A;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(A=function(e){S(t=>{if(t.has(e))return t;let n=new Set(t);return n.add(e),n}),E(null)},t[8]=A):A=t[8];let ne=A,j,M;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(j=()=>{k();let e=()=>{document.visibilityState===`visible`&&k()};window.addEventListener(`focus`,e),window.addEventListener(`visibilitychange`,e);let t=xe(e=>{e.includes(`files`)&&k()});return()=>{window.removeEventListener(`focus`,e),window.removeEventListener(`visibilitychange`,e),t()}},M=[],t[9]=j,t[10]=M):(j=t[9],M=t[10]),(0,W.useEffect)(j,M);let N,P,F,I,L,R,z,B;if(t[11]!==x||t[12]!==p||t[13]!==v||t[14]!==h||t[15]!==d||t[16]!==s||t[17]!==i){R=Be(i,x);let e;t[26]!==x||t[27]!==s?(e=He(s,x),t[26]=x,t[27]=s,t[28]=e):e=t[28],L=e,I=d,N=p,P=v,F=new Set([...je(R),...h]),z=de(R,c),B=fe(R,c),t[11]=x,t[12]=p,t[13]=v,t[14]=h,t[15]=d,t[16]=s,t[17]=i,t[18]=N,t[19]=P,t[20]=F,t[21]=I,t[22]=L,t[23]=R,t[24]=z,t[25]=B}else N=t[18],P=t[19],F=t[20],I=t[21],L=t[22],R=t[23],z=t[24],B=t[25];let V=B,H;t[29]===d?H=t[30]:(H=pe(d),t[29]=d,t[30]=H);let U=H,G,K;t[31]!==N||t[32]!==P||t[33]!==F||t[34]!==U||t[35]!==R||t[36]!==V||t[37]!==z?(G=()=>{he({pages:R,folderPaths:F,pagesBySlug:z,pagesByBasename:V,assetPaths:N,filePaths:P,pageIcons:U})},K=[R,F,z,V,N,P,U],t[31]=N,t[32]=P,t[33]=F,t[34]=U,t[35]=R,t[36]=V,t[37]=z,t[38]=G,t[39]=K):(G=t[38],K=t[39]),(0,W.useEffect)(G,K);let q;t[40]!==N||t[41]!==T||t[42]!==P||t[43]!==F||t[44]!==C||t[45]!==I||t[46]!==L||t[47]!==R||t[48]!==V||t[49]!==z?(q={pages:R,pagesBySlug:z,pagesByBasename:V,pageTitles:L,pageMeta:I,folderPaths:F,assetPaths:N,filePaths:P,loading:C,error:T,refetch:k,addPage:ne},t[40]=N,t[41]=T,t[42]=P,t[43]=F,t[44]=C,t[45]=I,t[46]=L,t[47]=R,t[48]=V,t[49]=z,t[50]=q):q=t[50];let J;return t[51]!==n||t[52]!==q?(J=(0,ze.jsx)($,{value:q,children:n}),t[51]=n,t[52]=q,t[53]=J):J=t[53],J}function Je(e){return[e.docName,{size:e.size,modified:e.modified,docExt:e.docExt,icon:e.icon}]}function Ye(e){return[e.docName,e.title]}function Xe(e){return e.docName}function Ze(e){return Ke(e),{assetPaths:[],folderPaths:[],filePaths:[]}}function Qe(){let e=(0,W.use)($);if(!e)throw Error(`usePageList must be used within <PageListProvider />`);return e}function $e(){return(0,W.use)($)}var et=t(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),tt=t(((e,t)=>{var n=et();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),nt=t(((e,t)=>{t.exports=tt()()}));export{H as A,f as B,K as C,ie as D,ae as E,P as F,d as H,L as I,z as L,R as M,I as N,G as O,U as P,F as R,ce as S,J as T,ee as V,xe as _,Re as a,ge as b,Pe as c,Oe as d,Q as f,we as g,Ee as h,Qe as i,M as j,N as k,Le as l,be as m,qe as n,Fe as o,Ce as p,$e as r,Ie as s,nt as t,ke as u,De as v,q as w,se as x,me as y,j as z};
@@ -1 +0,0 @@
1
- import"./chunk-K5T4RW27-CiRq5i4i.js";import{n as e}from"./chunk-2KRD3SAO-CgV4qQXG.js";export{e as createRadarServices};
@@ -1 +0,0 @@
1
- import{n as e}from"./src-DxsrUvGr.js";import"./chunk-ICPOFSXX-Dy9JRPZu.js";import"./chunk-5PVQY5BW-D2kQfsEU.js";import"./chunk-U2HBQHQK-DThlp4DR.js";import"./chunk-BSJP7CBP-gINBJmdn.js";import"./chunk-ZZ45TVLE-CwnCYU7J.js";import"./chunk-55IACEB6-Cl00WKA6.js";import"./chunk-EDXVE4YY-9CmJcS4N.js";import"./chunk-X2U36JSP-b_VUmOsG.js";import"./chunk-5FUZZQ4R-Bp1iPpGN.js";import"./chunk-ENJZ2VHE-DGOBbqgN.js";import"./chunk-336JU56O-BalL_f4q.js";import{i as t,n,r,t as i}from"./chunk-OYMX7WX6-tBzsu7Qb.js";var a={parser:n,get db(){return new i(2)},renderer:r,styles:t,init:e(e=>{e.state||={},e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute},`init`)};export{a as diagram};
@@ -1 +0,0 @@
1
- import{c as e}from"./prop-types-CMddcK9H.js";function t(e){switch(e.kind){case`doc`:case`large-file`:return`doc`;case`folder`:case`folder-index`:return`folder`;case`missing`:case`asset`:return`missing`}}function n(n,r){let i=e(n,r);return{resolvedTarget:i,hashDocName:i.target,displayState:t(i)}}export{n as t};
@@ -1 +0,0 @@
1
- import{o as e}from"./chunk-CFjPhJqf.js";import{a as t,i as n,o as r,r as i,t as a}from"./compiler-runtime-Cs91PcD2.js";import{l as o,s}from"./button-CmLxDlCv.js";import{l as c}from"./dialog-uOgi9SAD.js";import{a as l}from"./collapsible-BzkAcCLq.js";import{d as u,f as d,l as f,o as p,s as m,t as h}from"./dist-CSynDsuh.js";import{b as g,i as _,n as v,r as y,t as b}from"./tooltip-DjrmDp0P.js";import{n as x,r as S,t as C}from"./dist-C_giuVsx.js";var w=e(t(),1),T=r(),E=`Radio`,[D,O]=u(E),[k,A]=D(E),j=w.forwardRef((e,t)=>{let{__scopeRadio:n,name:r,checked:i=!1,required:a,disabled:o,value:c=`on`,onCheck:l,form:u,...p}=e,[m,h]=w.useState(null),g=s(t,e=>h(e)),_=w.useRef(!1),v=m?u||!!m.closest(`form`):!0;return(0,T.jsxs)(k,{scope:n,checked:i,disabled:o,children:[(0,T.jsx)(d.button,{type:`button`,role:`radio`,"aria-checked":i,"data-state":I(i),"data-disabled":o?``:void 0,disabled:o,value:c,...p,ref:g,onClick:f(e.onClick,e=>{i||l?.(),v&&(_.current=e.isPropagationStopped(),_.current||e.stopPropagation())})}),v&&(0,T.jsx)(F,{control:m,bubbles:!_.current,name:r,value:c,checked:i,required:a,disabled:o,form:u,style:{transform:`translateX(-100%)`}})]})});j.displayName=E;var M=`RadioIndicator`,N=w.forwardRef((e,t)=>{let{__scopeRadio:n,forceMount:r,...i}=e,a=A(M,n);return(0,T.jsx)(p,{present:r||a.checked,children:(0,T.jsx)(d.span,{"data-state":I(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t})})});N.displayName=M;var P=`RadioBubbleInput`,F=w.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...i},a)=>{let o=w.useRef(null),l=s(o,a),u=c(n),f=h(t);return w.useEffect(()=>{let e=o.current;if(!e)return;let t=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(t,`checked`).set;if(u!==n&&i){let t=new Event(`click`,{bubbles:r});i.call(e,n),e.dispatchEvent(t)}},[u,n,r]),(0,T.jsx)(d.input,{type:`radio`,"aria-hidden":!0,defaultChecked:n,...i,tabIndex:-1,ref:l,style:{...i.style,...f,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0}})});F.displayName=P;function I(e){return e?`checked`:`unchecked`}var L=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],R=`RadioGroup`,[z,ee]=u(R,[S,O]),B=S(),V=O(),[H,U]=z(R),W=w.forwardRef((e,t)=>{let{__scopeRadioGroup:n,name:r,defaultValue:i,value:a,required:o=!1,disabled:s=!1,orientation:c,dir:l,loop:u=!0,onValueChange:f,...p}=e,h=B(n),_=g(l),[v,y]=m({prop:a,defaultProp:i??null,onChange:f,caller:R});return(0,T.jsx)(H,{scope:n,name:r,required:o,disabled:s,value:v,onValueChange:y,children:(0,T.jsx)(x,{asChild:!0,...h,orientation:c,dir:_,loop:u,children:(0,T.jsx)(d.div,{role:`radiogroup`,"aria-required":o,"aria-orientation":c,"data-disabled":s?``:void 0,dir:_,...p,ref:t})})})});W.displayName=R;var G=`RadioGroupItem`,K=w.forwardRef((e,t)=>{let{__scopeRadioGroup:n,disabled:r,...i}=e,a=U(G,n),o=a.disabled||r,c=B(n),l=V(n),u=w.useRef(null),d=s(t,u),p=a.value===i.value,m=w.useRef(!1);return w.useEffect(()=>{let e=e=>{L.includes(e.key)&&(m.current=!0)},t=()=>m.current=!1;return document.addEventListener(`keydown`,e),document.addEventListener(`keyup`,t),()=>{document.removeEventListener(`keydown`,e),document.removeEventListener(`keyup`,t)}},[]),(0,T.jsx)(C,{asChild:!0,...c,focusable:!o,active:p,children:(0,T.jsx)(j,{disabled:o,required:a.required,checked:p,...l,...i,name:a.name,ref:d,onCheck:()=>a.onValueChange(i.value),onKeyDown:f(e=>{e.key===`Enter`&&e.preventDefault()}),onFocus:f(i.onFocus,()=>{m.current&&u.current?.click()})})})});K.displayName=G;var q=`RadioGroupIndicator`,J=w.forwardRef((e,t)=>{let{__scopeRadioGroup:n,...r}=e;return(0,T.jsx)(N,{...V(n),...r,ref:t})});J.displayName=q;var Y=W,X=K,Z=J,Q=a();function $(){let e=(0,Q.c)(8),{_:t}=n(),r;e[0]===t?r=e[1]:(r=t({id:`RrAIZx`}),e[0]=t,e[1]=r);let a;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,T.jsx)(l,{className:`size-3.5`,"aria-hidden":!0}),e[2]=a):a=e[2];let o;e[3]===r?o=e[4]:(o=(0,T.jsx)(_,{className:`text-muted-foreground hover:text-foreground`,"aria-label":r,"data-testid":`config-sharing-info`,children:a}),e[3]=r,e[4]=o);let s;e[5]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,T.jsx)(v,{className:`max-w-xs`,children:(0,T.jsx)(`p`,{className:`leading-relaxed wrap-break-word`,children:(0,T.jsx)(i,{id:`0njBIq`,components:{0:(0,T.jsx)(`code`,{}),1:(0,T.jsx)(`code`,{}),2:(0,T.jsx)(`code`,{}),3:(0,T.jsx)(`br`,{}),4:(0,T.jsx)(`strong`,{className:`font-semibold`}),5:(0,T.jsx)(`br`,{}),6:(0,T.jsx)(`strong`,{className:`font-semibold`}),7:(0,T.jsx)(`code`,{})}})})}),e[5]=s):s=e[5];let c;return e[6]===o?c=e[7]:(c=(0,T.jsx)(y,{children:(0,T.jsxs)(b,{children:[o,s]})}),e[6]=o,e[7]=c),c}function te(e){let t=(0,Q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=o(`grid w-full gap-2`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,T.jsx)(Y,{"data-slot":`radio-group`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function ne(e){let t=(0,Q.c)(9),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=o(`group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input outline-none after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary`,n),t[3]=n,t[4]=i);let a;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,T.jsx)(Z,{"data-slot":`radio-group-indicator`,className:`flex size-4 items-center justify-center`,children:(0,T.jsx)(`span`,{className:`absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground`})}),t[5]=a):a=t[5];let s;return t[6]!==r||t[7]!==i?(s=(0,T.jsx)(X,{"data-slot":`radio-group-item`,className:i,...r,children:a}),t[6]=r,t[7]=i,t[8]=s):s=t[8],s}function re(e){let t=(0,Q.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=o(`flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,T.jsx)(`textarea`,{"data-slot":`textarea`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}export{$ as i,te as n,ne as r,re as t};
@@ -1 +0,0 @@
1
- import{o as e}from"./chunk-CFjPhJqf.js";import{a as t,o as n,t as r}from"./compiler-runtime-Cs91PcD2.js";import{c as i,l as a,u as o}from"./button-CmLxDlCv.js";import{d as s,f as c,l,s as u}from"./dist-CSynDsuh.js";import{b as d}from"./tooltip-DjrmDp0P.js";import{n as f,r as p,t as m}from"./dist-C_giuVsx.js";var h=o(`arrow-up-right`,[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]);function g(e,t){let n=window.okDesktop?.shell?.openExternal;n&&(e.preventDefault(),n(t))}function _(e,t={}){let n=typeof window<`u`?window.okDesktop:void 0,r=(`okDesktop`in t?t.okDesktop:n)?.shell?.openExternal;if(r){r(e);return}let i=typeof window<`u`?window.open.bind(window):void 0;(t.openWindow??i)?.(e,`_blank`,`noopener,noreferrer`)}var v=e(t(),1),y=n(),b=`Toggle`,x=v.forwardRef((e,t)=>{let{pressed:n,defaultPressed:r,onPressedChange:i,...a}=e,[o,s]=u({prop:n,onChange:i,defaultProp:r??!1,caller:b});return(0,y.jsx)(c.button,{type:`button`,"aria-pressed":o,"data-state":o?`on`:`off`,"data-disabled":e.disabled?``:void 0,...a,ref:t,onClick:l(e.onClick,()=>{e.disabled||s(!o)})})});x.displayName=b;var S=x,C=`ToggleGroup`,[w,T]=s(C,[p]),E=p(),D=v.forwardRef((e,t)=>{let{type:n,...r}=e;if(n===`single`)return(0,y.jsx)(A,{...r,ref:t});if(n===`multiple`)return(0,y.jsx)(j,{...r,ref:t});throw Error(`Missing prop \`type\` expected on \`${C}\``)});D.displayName=C;var[O,k]=w(C),A=v.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=u({prop:n,defaultProp:r??``,onChange:i,caller:C});return(0,y.jsx)(O,{scope:e.__scopeToggleGroup,type:`single`,value:v.useMemo(()=>o?[o]:[],[o]),onItemActivate:s,onItemDeactivate:v.useCallback(()=>s(``),[s]),children:(0,y.jsx)(P,{...a,ref:t})})}),j=v.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:i=()=>{},...a}=e,[o,s]=u({prop:n,defaultProp:r??[],onChange:i,caller:C}),c=v.useCallback(e=>s((t=[])=>[...t,e]),[s]),l=v.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,y.jsx)(O,{scope:e.__scopeToggleGroup,type:`multiple`,value:o,onItemActivate:c,onItemDeactivate:l,children:(0,y.jsx)(P,{...a,ref:t})})});D.displayName=C;var[M,N]=w(C),P=v.forwardRef((e,t)=>{let{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:a,dir:o,loop:s=!0,...l}=e,u=E(n),p=d(o),m={role:`group`,dir:p,...l};return(0,y.jsx)(M,{scope:n,rovingFocus:i,disabled:r,children:i?(0,y.jsx)(f,{asChild:!0,...u,orientation:a,dir:p,loop:s,children:(0,y.jsx)(c.div,{...m,ref:t})}):(0,y.jsx)(c.div,{...m,ref:t})})}),F=`ToggleGroupItem`,I=v.forwardRef((e,t)=>{let n=k(F,e.__scopeToggleGroup),r=N(F,e.__scopeToggleGroup),i=E(e.__scopeToggleGroup),a=n.value.includes(e.value),o=r.disabled||e.disabled,s={...e,pressed:a,disabled:o},c=v.useRef(null);return r.rovingFocus?(0,y.jsx)(m,{asChild:!0,...i,focusable:!o,active:a,ref:c,children:(0,y.jsx)(L,{...s,ref:t})}):(0,y.jsx)(L,{...s,ref:t})});I.displayName=F;var L=v.forwardRef((e,t)=>{let{__scopeToggleGroup:n,value:r,...i}=e,a=k(F,n),o={role:`radio`,"aria-checked":e.pressed,"aria-pressed":void 0};return(0,y.jsx)(x,{...a.type===`single`?o:void 0,...i,ref:t,onPressedChange:e=>{e?a.onItemActivate(r):a.onItemDeactivate(r)}})}),R=D,z=I,B=r(),V=i(`group/toggle inline-flex items-center justify-center gap-1 rounded-lg text-sm font-medium whitespace-nowrap transition-all outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted data-[state=on]:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-transparent`,outline:`border border-input bg-transparent hover:bg-muted`,segmented:`text-muted-foreground hover:bg-muted-foreground/10 data-[state=on]:bg-background data-[state=on]:shadow-sm data-[state=on]:text-foreground dark:data-[state=on]:bg-muted`},size:{default:`h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,sm:`h-7 min-w-7 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,lg:`h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`}},defaultVariants:{variant:`default`,size:`default`}});function H(e){let t=(0,B.c)(14),n,r,i,o;t[0]===e?(n=t[1],r=t[2],i=t[3],o=t[4]):({className:n,variant:i,size:o,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o);let s=i===void 0?`default`:i,c=o===void 0?`default`:o,l;t[5]!==n||t[6]!==c||t[7]!==s?(l=a(V({variant:s,size:c,className:n})),t[5]=n,t[6]=c,t[7]=s,t[8]=l):l=t[8];let u;return t[9]!==r||t[10]!==c||t[11]!==l||t[12]!==s?(u=(0,y.jsx)(S,{"data-slot":`toggle`,"data-variant":s,"data-size":c,className:l,...r}),t[9]=r,t[10]=c,t[11]=l,t[12]=s,t[13]=u):u=t[13],u}var U=v.createContext({size:`default`,variant:`default`,spacing:0,orientation:`horizontal`});function W(e){let t=(0,B.c)(29),n,r,i,o,s,c,l;t[0]===e?(n=t[1],r=t[2],i=t[3],o=t[4],s=t[5],c=t[6],l=t[7]):({className:r,variant:l,size:o,spacing:s,orientation:c,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=s,t[6]=c,t[7]=l);let u=s===void 0?0:s,d=c===void 0?`horizontal`:c,f;t[8]===u?f=t[9]:(f={"--gap":u},t[8]=u,t[9]=f);let p=f,m;t[10]===r?m=t[11]:(m=a(`group/toggle-group flex w-fit flex-row items-center gap-[--spacing(var(--gap))] rounded-lg data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-vertical:flex-col data-vertical:items-stretch`,r),t[10]=r,t[11]=m);let h;t[12]!==d||t[13]!==o||t[14]!==u||t[15]!==l?(h={variant:l,size:o,spacing:u,orientation:d},t[12]=d,t[13]=o,t[14]=u,t[15]=l,t[16]=h):h=t[16];let g;t[17]!==n||t[18]!==h?(g=(0,y.jsx)(U.Provider,{value:h,children:n}),t[17]=n,t[18]=h,t[19]=g):g=t[19];let _;return t[20]!==d||t[21]!==i||t[22]!==o||t[23]!==u||t[24]!==p||t[25]!==m||t[26]!==g||t[27]!==l?(_=(0,y.jsx)(R,{"data-slot":`toggle-group`,"data-variant":l,"data-size":o,"data-spacing":u,"data-orientation":d,style:p,className:m,...i,children:g}),t[20]=d,t[21]=i,t[22]=o,t[23]=u,t[24]=p,t[25]=m,t[26]=g,t[27]=l,t[28]=_):_=t[28],_}function G(e){let t=(0,B.c)(19),n,r,i,o,s;t[0]===e?(n=t[1],r=t[2],i=t[3],o=t[4],s=t[5]):({className:r,children:n,variant:o,size:s,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=s);let c=o===void 0?`default`:o,l=s===void 0?`default`:s,u=v.use(U),d=u.variant||c,f=u.size||l,p=u.spacing,m;t[6]!==r||t[7]!==u.size||t[8]!==u.variant||t[9]!==l||t[10]!==c?(m=a(`shrink-0 group-data-[spacing=0]/toggle-group:rounded-none group-data-[spacing=0]/toggle-group:px-2 focus:z-10 focus-visible:z-10 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-end]:pr-1.5 group-data-[spacing=0]/toggle-group:has-data-[icon=inline-start]:pl-1.5 group-data-horizontal/toggle-group:data-[spacing=0]:first:rounded-l-lg group-data-vertical/toggle-group:data-[spacing=0]:first:rounded-t-lg group-data-horizontal/toggle-group:data-[spacing=0]:last:rounded-r-lg group-data-vertical/toggle-group:data-[spacing=0]:last:rounded-b-lg group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:border-l-0 group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:border-t-0 group-data-horizontal/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-l group-data-vertical/toggle-group:data-[spacing=0]:data-[variant=outline]:first:border-t text-muted-foreground data-[state=on]:text-foreground`,V({variant:u.variant||c,size:u.size||l}),r),t[6]=r,t[7]=u.size,t[8]=u.variant,t[9]=l,t[10]=c,t[11]=m):m=t[11];let h;return t[12]!==n||t[13]!==u.spacing||t[14]!==i||t[15]!==d||t[16]!==f||t[17]!==m?(h=(0,y.jsx)(z,{"data-slot":`toggle-group-item`,"data-variant":d,"data-size":f,"data-spacing":p,className:m,...i,children:n}),t[12]=n,t[13]=u.spacing,t[14]=i,t[15]=d,t[16]=f,t[17]=m,t[18]=h):h=t[18],h}export{_ as a,g as i,G as n,h as o,H as r,W as t};
@@ -1 +0,0 @@
1
- import{o as e}from"./chunk-CFjPhJqf.js";import{a as t,o as n,t as r}from"./compiler-runtime-Cs91PcD2.js";import{a as i,d as a,i as o,l as s,s as c}from"./button-CmLxDlCv.js";import{a as l,c as u,d,f,i as p,l as m,n as h,o as g,r as _,s as v,t as y}from"./dist-CSynDsuh.js";var b=e(a(),1),x=e(t(),1),S=n(),C=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),w=`VisuallyHidden`,T=x.forwardRef((e,t)=>(0,S.jsx)(f.span,{...e,ref:t,style:{...C,...e.style}}));T.displayName=w;var E=T;function D(e){let t=e+`CollectionProvider`,[n,r]=d(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:n}=e,r=x.useRef(null),a=x.useRef(new Map).current;return(0,S.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})};s.displayName=t;let l=e+`CollectionSlot`,u=o(l),f=x.forwardRef((e,t)=>{let{scope:n,children:r}=e;return(0,S.jsx)(u,{ref:c(t,a(l,n).collectionRef),children:r})});f.displayName=l;let p=e+`CollectionItemSlot`,m=`data-radix-collection-item`,h=o(p),g=x.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=x.useRef(null),s=c(t,o),l=a(p,n);return x.useEffect(()=>(l.itemMap.set(o,{ref:o,...i}),()=>void l.itemMap.delete(o))),(0,S.jsx)(h,{[m]:``,ref:s,children:r})});g.displayName=p;function _(t){let n=a(e+`CollectionConsumer`,t);return x.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:s,Slot:f,ItemSlot:g},_,r]}var O=x.createContext(void 0);function k(e){let t=x.useContext(O);return e||t||`ltr`}var A=[`top`,`right`,`bottom`,`left`],j=[`start`,`end`],M=A.reduce((e,t)=>e.concat(t,t+`-`+j[0],t+`-`+j[1]),[]),N=Math.min,P=Math.max,F=Math.round,I=Math.floor,L=e=>({x:e,y:e}),ee={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function te(e,t,n){return P(e,N(t,n))}function R(e,t){return typeof e==`function`?e(t):e}function z(e){return e.split(`-`)[0]}function B(e){return e.split(`-`)[1]}function ne(e){return e===`x`?`y`:`x`}function re(e){return e===`y`?`height`:`width`}function V(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function ie(e){return ne(V(e))}function ae(e,t,n){n===void 0&&(n=!1);let r=B(e),i=ie(e),a=re(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=me(o)),[o,me(o)]}function oe(e){let t=me(e);return[se(e),t,se(t)]}function se(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var ce=[`left`,`right`],le=[`right`,`left`],ue=[`top`,`bottom`],de=[`bottom`,`top`];function fe(e,t,n){switch(e){case`top`:case`bottom`:return n?t?le:ce:t?ce:le;case`left`:case`right`:return t?ue:de;default:return[]}}function pe(e,t,n,r){let i=B(e),a=fe(z(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(se)))),a}function me(e){let t=z(e);return ee[t]+e.slice(t.length)}function he(e){return{top:0,right:0,bottom:0,left:0,...e}}function ge(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:he(e)}function H(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function _e(e,t,n){let{reference:r,floating:i}=e,a=V(t),o=ie(t),s=re(o),c=z(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(B(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function ve(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=R(t,e),p=ge(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=H(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=H(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var ye=50,be=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:ve},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=_e(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<ye&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=_e(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},xe=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=R(e,t)||{};if(l==null)return{};let d=ge(u),f={x:n,y:r},p=ie(i),m=re(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=N(d[_],T),D=N(d[v],T),O=E,k=C-h[m]-D,A=C/2-h[m]/2+w,j=te(O,A,k),M=!c.arrow&&B(i)!=null&&A!==j&&a.reference[m]/2-(A<O?E:D)-h[m]/2<0,P=M?A<O?A-O:A-k:0;return{[p]:f[p]+P,data:{[p]:j,centerOffset:A-j-P,...M&&{alignmentOffset:P}},reset:M}}});function Se(e,t,n){return(e?[...n.filter(t=>B(t)===e),...n.filter(t=>B(t)!==e)]:n.filter(e=>z(e)===e)).filter(n=>e?B(n)===e||(t?se(n)!==n:!1):!0)}var Ce=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:o}=t,{crossAxis:s=!1,alignment:c,allowedPlacements:l=M,autoAlignment:u=!0,...d}=R(e,t),f=c!==void 0||l===M?Se(c||null,u,l):l,p=await a.detectOverflow(t,d),m=r.autoPlacement?.index||0,h=f[m];if(h==null)return{};let g=ae(h,n,await(a.isRTL==null?void 0:a.isRTL(o.floating)));if(i!==h)return{reset:{placement:f[0]}};let _=[p[z(h)],p[g[0]],p[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:h,overflows:_}],y=f[m+1];if(y)return{data:{index:m+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=B(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),x=b.filter(e=>e[2].slice(0,B(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:m+1,overflows:v},reset:{placement:x}}}}},we=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=R(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=z(r),_=V(o),v=z(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[me(o)]:oe(o)),x=p!==`none`;!d&&x&&b.push(...pe(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=ae(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==V(t))||T.every(e=>V(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=V(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function Te(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ee(e){return A.some(t=>e[t]>=0)}var De=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=R(e,t);switch(i){case`referenceHidden`:{let e=Te(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ee(e)}}}case`escaped`:{let e=Te(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Ee(e)}}}default:return{}}}}};function Oe(e){let t=N(...e.map(e=>e.left)),n=N(...e.map(e=>e.top)),r=P(...e.map(e=>e.right)),i=P(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function ke(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>H(Oe(e)))}var Ae=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=R(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]),d=ke(u),f=H(Oe(u)),p=ge(s);function m(){if(d.length===2&&d[0].left>d[1].right&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&c<e.right+p.right&&l>e.top-p.top&&l<e.bottom+p.bottom)||f;if(d.length>=2){if(V(n)===`y`){let e=d[0],t=d[d.length-1],r=z(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left,s=r?e.right:t.right;return{top:i,bottom:a,left:o,right:s,width:s-o,height:a-i,x:o,y:i}}let e=z(n)===`left`,t=P(...d.map(e=>e.right)),r=N(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom,s=r,c=t;return{top:a,bottom:o,left:s,right:c,width:c-s,height:o-a,x:s,y:a}}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},je=new Set([`left`,`top`]);async function Me(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=z(n),s=B(n),c=V(n)===`y`,l=je.has(o)?-1:1,u=a&&c?-1:1,d=R(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Ne=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Me(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Pe=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=R(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=V(z(i)),p=ne(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=te(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=te(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},Fe=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=R(e,t),u={x:n,y:r},d=V(i),f=ne(d),p=u[f],m=u[d],h=R(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=je.has(z(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Ie=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=R(e,t),u=await o.detectOverflow(t,l),d=z(i),f=B(i),p=V(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=N(h-u[g],v),x=N(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=P(u.left,0),t=P(u.right,0),n=P(u.top,0),r=P(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:P(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:P(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function Le(){return typeof window<`u`}function U(e){return Re(e)?(e.nodeName||``).toLowerCase():`#document`}function W(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function G(e){return((Re(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Re(e){return Le()?e instanceof Node||e instanceof W(e).Node:!1}function K(e){return Le()?e instanceof Element||e instanceof W(e).Element:!1}function q(e){return Le()?e instanceof HTMLElement||e instanceof W(e).HTMLElement:!1}function ze(e){return!Le()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof W(e).ShadowRoot}function Be(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=X(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Ve(e){return/^(table|td|th)$/.test(U(e))}function He(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Ue=/transform|translate|scale|rotate|perspective|filter/,We=/paint|layout|strict|content/,J=e=>!!e&&e!==`none`,Ge;function Ke(e){let t=K(e)?X(e):e;return J(t.transform)||J(t.translate)||J(t.scale)||J(t.rotate)||J(t.perspective)||!Je()&&(J(t.backdropFilter)||J(t.filter))||Ue.test(t.willChange||``)||We.test(t.contain||``)}function qe(e){let t=Z(e);for(;q(t)&&!Y(t);){if(Ke(t))return t;if(He(t))return null;t=Z(t)}return null}function Je(){return Ge??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Ge}function Y(e){return/^(html|body|#document)$/.test(U(e))}function X(e){return W(e).getComputedStyle(e)}function Ye(e){return K(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if(U(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ze(e)&&e.host||G(e);return ze(t)?t.host:t}function Xe(e){let t=Z(e);return Y(t)?e.ownerDocument?e.ownerDocument.body:e.body:q(t)&&Be(t)?t:Xe(t)}function Ze(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Xe(e),i=r===e.ownerDocument?.body,a=W(r);if(i){let e=Qe(a);return t.concat(a,a.visualViewport||[],Be(r)?r:[],e&&n?Ze(e):[])}else return t.concat(r,Ze(r,[],n))}function Qe(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function $e(e){let t=X(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=q(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=F(n)!==a||F(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function et(e){return K(e)?e:e.contextElement}function Q(e){let t=et(e);if(!q(t))return L(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=$e(t),o=(a?F(n.width):n.width)/r,s=(a?F(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var tt=L(0);function nt(e){let t=W(e);return!Je()||!t.visualViewport?tt:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rt(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==W(e)?!1:t}function $(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=et(e),o=L(1);t&&(r?K(r)&&(o=Q(r)):o=Q(e));let s=rt(a,n,r)?nt(a):L(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=W(a),t=r&&K(r)?W(r):r,n=e,i=Qe(n);for(;i&&r&&t!==n;){let e=Q(i),t=i.getBoundingClientRect(),r=X(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=W(i),i=Qe(n)}}return H({width:u,height:d,x:c,y:l})}function it(e,t){let n=Ye(e).scrollLeft;return t?t.left+n:$(G(e)).left+n}function at(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-it(e,n),y:n.top+t.scrollTop}}function ot(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=G(r),s=t?He(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=L(1),u=L(0),d=q(r);if((d||!d&&!a)&&((U(r)!==`body`||Be(o))&&(c=Ye(r)),d)){let e=$(r);l=Q(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?at(o,c):L(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function st(e){return Array.from(e.getClientRects())}function ct(e){let t=G(e),n=Ye(e),r=e.ownerDocument.body,i=P(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=P(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+it(e),s=-n.scrollTop;return X(r).direction===`rtl`&&(o+=P(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var lt=25;function ut(e,t){let n=W(e),r=G(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Je();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=it(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=lt&&(a-=o)}else l<=lt&&(a+=l);return{width:a,height:o,x:s,y:c}}function dt(e,t){let n=$(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=q(e)?Q(e):L(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ft(e,t,n){let r;if(t===`viewport`)r=ut(e,n);else if(t===`document`)r=ct(G(e));else if(K(t))r=dt(t,n);else{let n=nt(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return H(r)}function pt(e,t){let n=Z(e);return n===t||!K(n)||Y(n)?!1:X(n).position===`fixed`||pt(n,t)}function mt(e,t){let n=t.get(e);if(n)return n;let r=Ze(e,[],!1).filter(e=>K(e)&&U(e)!==`body`),i=null,a=X(e).position===`fixed`,o=a?Z(e):e;for(;K(o)&&!Y(o);){let t=X(o),n=Ke(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Be(o)&&!n&&pt(e,o))?r=r.filter(e=>e!==o):i=t,o=Z(o)}return t.set(e,r),r}function ht(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?He(t)?[]:mt(t,this._c):[].concat(n),r],o=ft(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=ft(t,a[e],i);s=P(n.top,s),c=N(n.right,c),l=N(n.bottom,l),u=P(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function gt(e){let{width:t,height:n}=$e(e);return{width:t,height:n}}function _t(e,t,n){let r=q(t),i=G(t),a=n===`fixed`,o=$(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=L(0);function l(){c.x=it(i)}if(r||!r&&!a)if((U(t)!==`body`||Be(i))&&(s=Ye(t)),r){let e=$(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?at(i,s):L(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function vt(e){return X(e).position===`static`}function yt(e,t){if(!q(e)||X(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return G(e)===n&&(n=n.ownerDocument.body),n}function bt(e,t){let n=W(e);if(He(e))return n;if(!q(e)){let t=Z(e);for(;t&&!Y(t);){if(K(t)&&!vt(t))return t;t=Z(t)}return n}let r=yt(e,t);for(;r&&Ve(r)&&vt(r);)r=yt(r,t);return r&&Y(r)&&vt(r)&&!Ke(r)?n:r||qe(e)||n}var xt=async function(e){let t=this.getOffsetParent||bt,n=this.getDimensions,r=await n(e.floating);return{reference:_t(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function St(e){return X(e).direction===`rtl`}var Ct={convertOffsetParentRelativeRectToViewportRelativeRect:ot,getDocumentElement:G,getClippingRect:ht,getOffsetParent:bt,getElementRects:xt,getClientRects:st,getDimensions:gt,getScale:Q,isElement:K,isRTL:St};function wt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Tt(e,t){let n=null,r,i=G(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=I(d),h=I(i.clientWidth-(u+f)),g=I(i.clientHeight-(d+p)),_=I(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:P(0,N(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!wt(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Et(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=et(e),u=i||a?[...l?Ze(l):[],...t?Ze(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Tt(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?$(e):null;c&&g();function g(){let t=$(e);h&&!wt(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Dt=Ne,Ot=Ce,kt=Pe,At=we,jt=Ie,Mt=De,Nt=xe,Pt=Ae,Ft=Fe,It=(e,t,n)=>{let r=new Map,i={platform:Ct,...n},a={...i.platform,_c:r};return be(e,t,{...i,platform:a})},Lt=typeof document<`u`?x.useLayoutEffect:function(){};function Rt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Rt(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Rt(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function zt(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Bt(e,t){let n=zt(e);return Math.round(t*n)/n}function Vt(e){let t=x.useRef(e);return Lt(()=>{t.current=e}),t}function Ht(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=x.useState(r);Rt(f,r)||p(r);let[m,h]=x.useState(null),[g,_]=x.useState(null),v=x.useCallback(e=>{e!==w.current&&(w.current=e,h(e))},[]),y=x.useCallback(e=>{e!==T.current&&(T.current=e,_(e))},[]),S=a||m,C=o||g,w=x.useRef(null),T=x.useRef(null),E=x.useRef(u),D=c!=null,O=Vt(c),k=Vt(i),A=Vt(l),j=x.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:t,strategy:n,middleware:f};k.current&&(e.platform=k.current),It(w.current,T.current,e).then(e=>{let t={...e,isPositioned:A.current!==!1};M.current&&!Rt(E.current,t)&&(E.current=t,b.flushSync(()=>{d(t)}))})},[f,t,n,k,A]);Lt(()=>{l===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let M=x.useRef(!1);Lt(()=>(M.current=!0,()=>{M.current=!1}),[]),Lt(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(O.current)return O.current(S,C,j);j()}},[S,C,j,O,D]);let N=x.useMemo(()=>({reference:w,floating:T,setReference:v,setFloating:y}),[v,y]),P=x.useMemo(()=>({reference:S,floating:C}),[S,C]),F=x.useMemo(()=>{let e={position:n,left:0,top:0};if(!P.floating)return e;let t=Bt(P.floating,u.x),r=Bt(P.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...zt(P.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,P.floating,u.x,u.y]);return x.useMemo(()=>({...u,update:j,refs:N,elements:P,floatingStyles:F}),[u,j,N,P,F])}var Ut=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:Nt({element:r.current,padding:i}).fn(n):r?Nt({element:r,padding:i}).fn(n):{}}}},Wt=(e,t)=>{let n=Dt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Gt=(e,t)=>{let n=kt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Kt=(e,t)=>({fn:Ft(e).fn,options:[e,t]}),qt=(e,t)=>{let n=At(e);return{name:n.name,fn:n.fn,options:[e,t]}},Jt=(e,t)=>{let n=jt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Yt=(e,t)=>{let n=Mt(e);return{name:n.name,fn:n.fn,options:[e,t]}},Xt=(e,t)=>{let n=Ut(e);return{name:n.name,fn:n.fn,options:[e,t]}},Zt=`Arrow`,Qt=x.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...a}=e;return(0,S.jsx)(f.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,S.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Qt.displayName=Zt;var $t=Qt,en=`Popper`,[tn,nn]=d(en),[rn,an]=tn(en),on=e=>{let{__scopePopper:t,children:n}=e,[r,i]=x.useState(null);return(0,S.jsx)(rn,{scope:t,anchor:r,onAnchorChange:i,children:n})};on.displayName=en;var sn=`PopperAnchor`,cn=x.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,a=an(sn,n),o=x.useRef(null),s=c(t,o),l=x.useRef(null);return x.useEffect(()=>{let e=l.current;l.current=r?.current||o.current,e!==l.current&&a.onAnchorChange(l.current)}),r?null:(0,S.jsx)(f.div,{...i,ref:s})});cn.displayName=sn;var ln=`PopperContent`,[un,dn]=tn(ln),fn=x.forwardRef((e,t)=>{let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:d=[],collisionPadding:m=0,sticky:h=`partial`,hideWhenDetached:g=!1,updatePositionStrategy:_=`optimized`,onPlaced:v,...b}=e,C=an(ln,n),[w,T]=x.useState(null),E=c(t,e=>T(e)),[D,O]=x.useState(null),k=y(D),A=k?.width??0,j=k?.height??0,M=r+(a===`center`?``:`-`+a),N=typeof m==`number`?m:{top:0,right:0,bottom:0,left:0,...m},P=Array.isArray(d)?d:[d],F=P.length>0,I={padding:N,boundary:P.filter(gn),altBoundary:F},{refs:L,floatingStyles:ee,placement:te,isPositioned:R,middlewareData:z}=Ht({strategy:`fixed`,placement:M,whileElementsMounted:(...e)=>Et(...e,{animationFrame:_===`always`}),elements:{reference:C.anchor},middleware:[Wt({mainAxis:i+j,alignmentAxis:o}),l&&Gt({mainAxis:!0,crossAxis:!1,limiter:h===`partial`?Kt():void 0,...I}),l&&qt({...I}),Jt({...I,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),D&&Xt({element:D,padding:s}),_n({arrowWidth:A,arrowHeight:j}),g&&Yt({strategy:`referenceHidden`,...I})]}),[B,ne]=vn(te),re=p(v);u(()=>{R&&re?.()},[R,re]);let V=z.arrow?.x,ie=z.arrow?.y,ae=z.arrow?.centerOffset!==0,[oe,se]=x.useState();return u(()=>{w&&se(window.getComputedStyle(w).zIndex)},[w]),(0,S.jsx)(`div`,{ref:L.setFloating,"data-radix-popper-content-wrapper":``,style:{...ee,transform:R?ee.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:oe,"--radix-popper-transform-origin":[z.transformOrigin?.x,z.transformOrigin?.y].join(` `),...z.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,S.jsx)(un,{scope:n,placedSide:B,onArrowChange:O,arrowX:V,arrowY:ie,shouldHideArrow:ae,children:(0,S.jsx)(f.div,{"data-side":B,"data-align":ne,...b,ref:E,style:{...b.style,animation:R?void 0:`none`}})})})});fn.displayName=ln;var pn=`PopperArrow`,mn={top:`bottom`,right:`left`,bottom:`top`,left:`right`},hn=x.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=dn(pn,n),a=mn[i.placedSide];return(0,S.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,S.jsx)($t,{...r,ref:t,style:{...r.style,display:`block`}})})});hn.displayName=pn;function gn(e){return e!==null}var _n=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=vn(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function vn(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var yn=on,bn=cn,xn=fn,Sn=hn,[Cn,wn]=d(`Tooltip`,[nn]),Tn=nn(),En=`TooltipProvider`,Dn=700,On=`tooltip.open`,[kn,An]=Cn(En),jn=e=>{let{__scopeTooltip:t,delayDuration:n=Dn,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=x.useRef(!0),s=x.useRef(!1),c=x.useRef(0);return x.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,S.jsx)(kn,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:x.useCallback(()=>{window.clearTimeout(c.current),o.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:x.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})};jn.displayName=En;var Mn=`Tooltip`,[Nn,Pn]=Cn(Mn),Fn=e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=An(Mn,e.__scopeTooltip),u=Tn(t),[d,f]=x.useState(null),p=l(),m=x.useRef(0),h=o??c.disableHoverableContent,g=s??c.delayDuration,_=x.useRef(!1),[y,b]=v({prop:r,defaultProp:i??!1,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(On))):c.onClose(),a?.(e)},caller:Mn}),C=x.useMemo(()=>y?_.current?`delayed-open`:`instant-open`:`closed`,[y]),w=x.useCallback(()=>{window.clearTimeout(m.current),m.current=0,_.current=!1,b(!0)},[b]),T=x.useCallback(()=>{window.clearTimeout(m.current),m.current=0,b(!1)},[b]),E=x.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{_.current=!0,b(!0),m.current=0},g)},[g,b]);return x.useEffect(()=>()=>{m.current&&=(window.clearTimeout(m.current),0)},[]),(0,S.jsx)(yn,{...u,children:(0,S.jsx)(Nn,{scope:t,contentId:p,open:y,stateAttribute:C,trigger:d,onTriggerChange:f,onTriggerEnter:x.useCallback(()=>{c.isOpenDelayedRef.current?E():w()},[c.isOpenDelayedRef,E,w]),onTriggerLeave:x.useCallback(()=>{h?T():(window.clearTimeout(m.current),m.current=0)},[T,h]),onOpen:w,onClose:T,disableHoverableContent:h,children:n})})};Fn.displayName=Mn;var In=`TooltipTrigger`,Ln=x.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=Pn(In,n),a=An(In,n),o=Tn(n),s=c(t,x.useRef(null),i.onTriggerChange),l=x.useRef(!1),u=x.useRef(!1),d=x.useCallback(()=>l.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener(`pointerup`,d),[d]),(0,S.jsx)(bn,{asChild:!0,...o,children:(0,S.jsx)(f.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:m(e.onPointerMove,e=>{e.pointerType!==`touch`&&!u.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:m(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:m(e.onPointerDown,()=>{i.open&&i.onClose(),l.current=!0,document.addEventListener(`pointerup`,d,{once:!0})}),onFocus:m(e.onFocus,()=>{l.current||i.onOpen()}),onBlur:m(e.onBlur,i.onClose),onClick:m(e.onClick,i.onClose)})})});Ln.displayName=In;var Rn=`TooltipPortal`,[zn,Bn]=Cn(Rn,{forceMount:void 0}),Vn=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=Pn(Rn,t);return(0,S.jsx)(zn,{scope:t,forceMount:n,children:(0,S.jsx)(g,{present:n||a.open,children:(0,S.jsx)(h,{asChild:!0,container:i,children:r})})})};Vn.displayName=Rn;var Hn=`TooltipContent`,Un=x.forwardRef((e,t)=>{let n=Bn(Hn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=Pn(Hn,e.__scopeTooltip);return(0,S.jsx)(g,{present:r||o.open,children:o.disableHoverableContent?(0,S.jsx)(Jn,{side:i,...a,ref:t}):(0,S.jsx)(Wn,{side:i,...a,ref:t})})}),Wn=x.forwardRef((e,t)=>{let n=Pn(Hn,e.__scopeTooltip),r=An(Hn,e.__scopeTooltip),i=x.useRef(null),a=c(t,i),[o,s]=x.useState(null),{trigger:l,onClose:u}=n,d=i.current,{onPointerInTransitChange:f}=r,p=x.useCallback(()=>{s(null),f(!1)},[f]),m=x.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Qn(r,Zn(r,n.getBoundingClientRect())),a=$n(t.getBoundingClientRect());s(tr([...i,...a])),f(!0)},[f]);return x.useEffect(()=>()=>p(),[p]),x.useEffect(()=>{if(l&&d){let e=e=>m(e,d),t=e=>m(e,l);return l.addEventListener(`pointerleave`,e),d.addEventListener(`pointerleave`,t),()=>{l.removeEventListener(`pointerleave`,e),d.removeEventListener(`pointerleave`,t)}}},[l,d,m,p]),x.useEffect(()=>{if(o){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=l?.contains(t)||d?.contains(t),i=!er(n,o);r?p():i&&(p(),u())};return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[l,d,o,u,p]),(0,S.jsx)(Jn,{...e,ref:a})}),[Gn,Kn]=Cn(Mn,{isInside:!1}),qn=i(`TooltipContent`),Jn=x.forwardRef((e,t)=>{let{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:o,...s}=e,c=Pn(Hn,n),l=Tn(n),{onClose:u}=c;return x.useEffect(()=>(document.addEventListener(On,u),()=>document.removeEventListener(On,u)),[u]),x.useEffect(()=>{if(c.trigger){let e=e=>{e.target?.contains(c.trigger)&&u()};return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[c.trigger,u]),(0,S.jsx)(_,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:u,children:(0,S.jsxs)(xn,{"data-state":c.stateAttribute,...l,...s,ref:t,style:{...s.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,S.jsx)(qn,{children:r}),(0,S.jsx)(Gn,{scope:n,isInside:!0,children:(0,S.jsx)(E,{id:c.contentId,role:`tooltip`,children:i||r})})]})})});Un.displayName=Hn;var Yn=`TooltipArrow`,Xn=x.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,i=Tn(n);return Kn(Yn,n).isInside?null:(0,S.jsx)(Sn,{...i,...r,ref:t})});Xn.displayName=Yn;function Zn(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}function Qn(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function $n(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function er(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}function tr(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),nr(t)}function nr(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var rr=jn,ir=Fn,ar=Ln,or=Vn,sr=Un,cr=Xn,lr=r();function ur(e){let t=(0,lr.c)(6),n,r;t[0]===e?(n=t[1],r=t[2]):({delayDuration:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r===void 0?0:r,a;return t[3]!==i||t[4]!==n?(a=(0,S.jsx)(rr,{"data-slot":`tooltip-provider`,delayDuration:i,...n}),t[3]=i,t[4]=n,t[5]=a):a=t[5],a}function dr(e){let t=(0,lr.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,S.jsx)(ir,{"data-slot":`tooltip`,...n}),t[2]=n,t[3]=r),r}function fr(e){let t=(0,lr.c)(8),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({asChild:n,type:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=n?i:i??`button`,o;return t[4]!==n||t[5]!==r||t[6]!==a?(o=(0,S.jsx)(ar,{"data-slot":`tooltip-trigger`,asChild:n,type:a,...r}),t[4]=n,t[5]=r,t[6]=a,t[7]=o):o=t[7],o}function pr(e){let t=(0,lr.c)(13),n,r,i,a;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4]):({className:r,sideOffset:a,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a);let o=a===void 0?0:a,c;t[5]===r?c=t[6]:(c=s(`z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:data-open:animate-none motion-reduce:data-closed:animate-none motion-reduce:data-[state=delayed-open]:animate-none motion-reduce:duration-0`,r),t[5]=r,t[6]=c);let l;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,S.jsx)(cr,{className:`z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground`}),t[7]=l):l=t[7];let u;return t[8]!==n||t[9]!==i||t[10]!==o||t[11]!==c?(u=(0,S.jsx)(or,{children:(0,S.jsxs)(sr,{"data-slot":`tooltip-content`,sideOffset:o,className:c,...i,children:[n,l]})}),t[8]=n,t[9]=i,t[10]=o,t[11]=c,t[12]=u):u=t[12],u}export{C as S,Dt as _,bn as a,k as b,yn as c,Ot as d,Et as f,Pt as g,Mt as h,fr as i,nn as l,At as m,pr as n,Sn as o,It as p,ur as r,xn as s,dr as t,Nt as u,kt as v,D as x,jt as y};
@@ -1 +0,0 @@
1
- import"./chunk-K5T4RW27-CiRq5i4i.js";import{n as e}from"./chunk-ORNJ4GCN-Cr7hB34W.js";export{e as createTreeViewServices};
@@ -1 +0,0 @@
1
- import"./chunk-K5T4RW27-CiRq5i4i.js";import{n as e}from"./chunk-LIHQZDEY-DFUiDBx8.js";export{e as createTreemapServices};
@@ -1,10 +0,0 @@
1
- import{o as e}from"./chunk-CFjPhJqf.js";import{a as t,i as n,o as r,r as i,t as a}from"./compiler-runtime-Cs91PcD2.js";import{$ as o,An as s,G as c,K as l,it as u,n as d,q as f,ut as p}from"./DocumentContext-FzcL7UQZ.js";import{a as ee,c as te,i as ne,n as re,o as ie,r as ae,s as oe,t as se,u as ce}from"./panel-BQ1weDcE.js";import{at as m,fr as h,nt as g}from"./dist-D2H0qs9k.js";import{l as le}from"./button-CmLxDlCv.js";import{i as ue,z as _}from"./prop-types-CMddcK9H.js";import{$ as v,At as y,Bt as b,Dt as x,E as S,Et as C,Ft as w,Ht as T,J as E,Mt as D,N as O,Ot as k,Pt as A,Q as j,Rt as de,Ut as fe,X as M,_ as N,_t as P,ct as F,dt as I,et as L,f as pe,gt as me,ht as he,l as ge,lt as _e,mt as ve,nt as ye,ot as be,rt as xe,st as Se,tt as Ce,ut as we,wt as R,y as Te,yt as z,zt as Ee}from"./dist-C0jOOVYt.js";import{i as De,n as Oe,o as ke,r as Ae}from"./dist-j3LJSXW6.js";var je=e(t(),1),Me=a(),Ne=new Map;function Pe(e,t){Ne.set(e,t)}function Fe(e){let t=Ne.get(e)??null;return Ne.delete(e),t}function Ie(e){Ne.delete(e)}function Le(e,t){let n=(0,Me.c)(4),r=t===void 0?!1:t,[i,a]=(0,je.useState)(void 0),o=(0,je.useRef)(null),s,c;return n[0]!==r||n[1]!==e?(s=()=>{if(r||e.length===0){a(void 0);return}let t=function(){let t=window.innerHeight/2,n,r;for(let i of e){let e=document.getElementById(i);if(!e)continue;let a=e.getBoundingClientRect().top;a<0?n=i:r===void 0&&a<t&&(r=i)}a(r??n??e[0])},n=function(){o.current===null&&(o.current=requestAnimationFrame(()=>{o.current=null,t()}))};return document.addEventListener(`scroll`,n,{capture:!0,passive:!0}),t(),()=>{document.removeEventListener(`scroll`,n,{capture:!0}),o.current!==null&&(cancelAnimationFrame(o.current),o.current=null)}},c=[e,r],n[0]=r,n[1]=e,n[2]=s,n[3]=c):(s=n[2],c=n[3]),(0,je.useEffect)(s,c),i}var B=r(),Re=300;async function ze(e){let t=await fetch(`/api/page-headings?docName=${encodeURIComponent(e)}`),n;try{n=await t.json()}catch(e){throw new p(_._({id:`qAQVSD`}),{cause:e,status:t.status})}if(!t.ok){let e=m.safeParse(n);throw e.success?Error(e.data.title):new p(_._({id:`zlErBl`}),{status:t.status})}let r=g.safeParse(n);if(!r.success)throw new p(_._({id:`XW18jo`}),{status:t.status});return r.data.headings??[]}var Be=32,Ve=12,He=6,Ue=`open-knowledge:outline-nav`;function We(e){let t=(0,Me.c)(2),n;return t[0]===e?n=t[1]:(n=(0,B.jsx)(s,{name:`outline-panel`,children:(0,B.jsx)(Ge,{...e})}),t[0]=e,t[1]=n),n}function Ge(e){let t=(0,Me.c)(50),{docName:r,isSourceMode:a,className:o}=e,s=o===void 0?``:o,{_:c}=n(),{pages:l,loading:u}=ue(),f=ce(),{activeProvider:p,activeDocName:m}=d(),h,g;t[0]===r?(h=t[1],g=t[2]):(h=[`page-headings`,r],g=()=>ze(r),t[0]=r,t[1]=h,t[2]=g);let _;t[3]!==r||t[4]!==u||t[5]!==l?(_=!u&&l.has(r),t[3]=r,t[4]=u,t[5]=l,t[6]=_):_=t[6];let v;t[7]!==h||t[8]!==g||t[9]!==_?(v={queryKey:h,queryFn:g,enabled:_,staleTime:1/0},t[7]=h,t[8]=g,t[9]=_,t[10]=v):v=t[10];let{data:y,isLoading:b,error:x}=te(v),S;t[11]===y?S=t[12]:(S=y===void 0?[]:y,t[11]=y,t[12]=S);let C=S,w,T;t[13]!==m||t[14]!==p||t[15]!==r||t[16]!==f?(w=()=>{if(!p||m!==r)return;let e=p.document,t=null,n=()=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{t=null,f.invalidateQueries({queryKey:[`page-headings`,r]})},Re)};return e.on(`update`,n),()=>{e.off(`update`,n),t!==null&&clearTimeout(t)}},T=[p,m,r,f],t[13]=m,t[14]=p,t[15]=r,t[16]=f,t[17]=w,t[18]=T):(w=t[17],T=t[18]),(0,je.useEffect)(w,T);let E;t[19]===C?E=t[20]:(E=C.map(Ke),t[19]=C,t[20]=E);let D=Le(E,a),O;t[21]!==D||t[22]!==C?(O=D?C.findIndex(e=>e.slug===D):-1,t[21]=D,t[22]=C,t[23]=O):O=t[23];let k=O,A;t[24]!==r||t[25]!==a?(A=function(e,t){let n={index:e,slug:t,mode:a?`source`:`wysiwyg`};n.mode===`source`&&Pe(r,{kind:`outline`,detail:n}),window.dispatchEvent(new CustomEvent(Ue,{detail:n}))},t[24]=r,t[25]=a,t[26]=A):A=t[26];let j=A,de=((k>=0?C[k].level:1)-1)*Ve+(Ve-He)/2,fe=k*Be+(Be-He)/2,M;t[27]===Symbol.for(`react.memo_cache_sentinel`)?(M=(0,B.jsx)(oe,{children:(0,B.jsx)(i,{id:`dD7NPy`})}),t[27]=M):M=t[27];let N;t[28]!==C.length||t[29]!==b?(N=!b&&(0,B.jsx)(ae,{children:C.length}),t[28]=C.length,t[29]=b,t[30]=N):N=t[30];let P;t[31]===N?P=t[32]:(P=(0,B.jsxs)(ie,{children:[M,N]}),t[31]=N,t[32]=P);let F;t[33]!==c||t[34]!==k||t[35]!==D||t[36]!==x||t[37]!==j||t[38]!==C||t[39]!==b||t[40]!==de||t[41]!==fe?(F=x?(0,B.jsx)(ee,{className:`px-2`,children:x instanceof Error?x.message:c({id:`GuqOb1`})}):C.length===0&&!b?(0,B.jsx)(ne,{className:`px-2`,children:(0,B.jsx)(i,{id:`0BB9ID`})}):(0,B.jsxs)(`nav`,{"aria-label":c({id:`BymzO4`}),className:`relative`,children:[k>=0&&(0,B.jsx)(`div`,{"aria-hidden":`true`,className:`pointer-events-none absolute left-0 top-0 rounded-full bg-primary motion-safe:[transition:transform_0.25s_var(--ease-out-strong)]`,style:{width:He,height:He,transform:`translate(${de}px, ${fe}px)`}}),C.map((e,t)=>{let n=e.slug===D;return(0,B.jsx)(`button`,{type:`button`,"aria-current":n?`location`:void 0,onClick:()=>j(t,e.slug),className:le(`w-full cursor-pointer truncate py-1.5 pe-2 text-left text-sm transition-colors`,n?`font-medium text-primary`:`text-muted-foreground hover:text-foreground`),style:{paddingLeft:`${(e.level-1)*Ve+20}px`},title:e.text,children:e.text},t)})]}),t[33]=c,t[34]=k,t[35]=D,t[36]=x,t[37]=j,t[38]=C,t[39]=b,t[40]=de,t[41]=fe,t[42]=F):F=t[42];let I;t[43]!==b||t[44]!==F?(I=(0,B.jsx)(re,{className:`px-3 py-2`,"aria-busy":b,children:F}),t[43]=b,t[44]=F,t[45]=I):I=t[45];let L;return t[46]!==s||t[47]!==P||t[48]!==I?(L=(0,B.jsxs)(se,{className:s,children:[P,I]}),t[46]=s,t[47]=P,t[48]=I,t[49]=L):L=t[49],L}function Ke(e){return e.slug}var qe=typeof String.prototype.normalize==`function`?e=>e.normalize(`NFKD`):e=>e,V=class{constructor(e,t,n=0,r=e.length,i,a){this.test=a,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer=``,this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=i?e=>i(qe(e)):qe,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return de(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=fe(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=Ee(e);let r=this.normalize(t);if(r.length)for(let e=0,i=n;;e++){let a=r.charCodeAt(e),o=this.match(a,i,this.bufferPos+this.bufferStart);if(e==r.length-1){if(o)return this.value=o,this;break}i==n&&e<t.length&&t.charCodeAt(e)==a&&i++}}}match(e,t,n){let r=null;for(let t=0;t<this.matches.length;t+=2){let i=this.matches[t],a=!1;this.query.charCodeAt(i)==e&&(i==this.query.length-1?r={from:this.matches[t+1],to:n}:(this.matches[t]++,a=!0)),a||(this.matches.splice(t,2),t-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?r={from:t,to:n}:this.matches.push(1,t)),r&&this.test&&!this.test(r.from,r.to,this.buffer,this.bufferStart)&&(r=null),r}};typeof Symbol<`u`&&(V.prototype[Symbol.iterator]=function(){return this});var Je={from:-1,to:-1,match:/.*/.exec(``)},Ye=`gm`+(/x/.unicode==null?``:`u`),Xe=class{constructor(e,t,n,r=0,i=e.length){if(this.text=e,this.to=i,this.curLine=``,this.done=!1,this.value=Je,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new $e(e,t,n,r,i);this.re=new RegExp(t,Ye+(n?.ignoreCase?`i`:``)),this.test=n?.test,this.iter=e.iter(),this.curLineStart=e.lineAt(r).from,this.matchPos=tt(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine=``:(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine=``:this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=tt(this.text,r+ +(n==r)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<r||n>this.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}},Ze=new WeakMap,Qe=class e{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(t,n,r){let i=Ze.get(t);if(!i||i.from>=r||i.to<=n){let i=new e(n,t.sliceString(n,r));return Ze.set(t,i),i}if(i.from==n&&i.to==r)return i;let{text:a,from:o}=i;return o>n&&(a=t.sliceString(n,o)+a,o=n),i.to<r&&(a+=t.sliceString(i.to,r)),Ze.set(t,new e(o,a)),new e(n,a.slice(n-o,r-o))}},$e=class{constructor(e,t,n,r,i){this.text=e,this.to=i,this.done=!1,this.value=Je,this.matchPos=tt(e,r),this.re=new RegExp(t,Ye+(n?.ignoreCase?`i`:``)),this.test=n?.test,this.flat=Qe.get(e,r,this.chunkEnd(r+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,match:t},this.matchPos=tt(this.text,n+ +(e==n)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Qe.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}};typeof Symbol<`u`&&(Xe.prototype[Symbol.iterator]=$e.prototype[Symbol.iterator]=function(){return this});function et(e){try{return new RegExp(e,Ye),!0}catch{return!1}}function tt(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t<n.to&&(r=n.text.charCodeAt(t-n.from))>=56320&&r<57344;)t++;return t}var nt=e=>{let{state:t}=e,n=String(t.doc.lineAt(e.state.selection.main.head).number),{close:r,result:i}=me(e,{label:t.phrase(`Go to line`),input:{type:`text`,name:`line`,value:n},focus:!0,submitLabel:t.phrase(`go`)});return i.then(n=>{let i=n&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.elements.line.value);if(!i){e.dispatch({effects:r});return}let a=t.doc.lineAt(t.selection.main.head),[,o,s,c,l]=i,u=c?+c.slice(1):0,d=s?+s:a.number;if(s&&l){let e=d/100;o&&(e=e*(o==`-`?-1:1)+a.number/t.doc.lines),d=Math.round(t.doc.lines*e)}else s&&o&&(d=d*(o==`-`?-1:1)+a.number);let f=t.doc.line(Math.max(1,Math.min(t.doc.lines,d))),p=C.cursor(f.from+Math.max(0,Math.min(u,f.length)));e.dispatch({effects:[r,M.scrollIntoView(p.from,{y:`center`})],selection:p})}),!0},rt={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},it=k.define({combine(e){return b(e,rt,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function at(e){let t=[dt,ut];return e&&t.push(it.of(e)),t}var ot=E.mark({class:`cm-selectionMatch`}),st=E.mark({class:`cm-selectionMatch cm-selectionMatch-main`});function ct(e,t,n,r){return(n==0||e(t.sliceDoc(n-1,n))!=R.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=R.Word)}function lt(e,t,n,r){return e(t.sliceDoc(n,n+1))==R.Word&&e(t.sliceDoc(r-1,r))==R.Word}var ut=j.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(it),{state:n}=e,r=n.selection;if(r.ranges.length>1)return E.none;let i=r.main,a,o=null;if(i.empty){if(!t.highlightWordAroundCursor)return E.none;let e=n.wordAt(i.head);if(!e)return E.none;o=n.charCategorizer(i.head),a=n.sliceDoc(e.from,e.to)}else{let e=i.to-i.from;if(e<t.minSelectionLength||e>200)return E.none;if(t.wholeWords){if(a=n.sliceDoc(i.from,i.to),o=n.charCategorizer(i.head),!(ct(o,n,i.from,i.to)&&lt(o,n,i.from,i.to)))return E.none}else if(a=n.sliceDoc(i.from,i.to),!a)return E.none}let s=[];for(let r of e.visibleRanges){let e=new V(n.doc,a,r.from,r.to);for(;!e.next().done;){let{from:r,to:a}=e.value;if((!o||ct(o,n,r,a))&&(i.empty&&r<=i.from&&a>=i.to?s.push(st.range(r,a)):(r>=i.to||a<=i.from)&&s.push(ot.range(r,a)),s.length>t.maxMatches))return E.none}}return E.set(s)}},{decorations:e=>e.decorations}),dt=M.baseTheme({".cm-selectionMatch":{backgroundColor:`#99ff7780`},".cm-searchMatch .cm-selectionMatch":{backgroundColor:`transparent`}}),ft=({state:e,dispatch:t})=>{let{selection:n}=e,r=C.create(n.ranges.map(t=>e.wordAt(t.head)||C.cursor(t.head)),n.mainIndex);return r.eq(n)?!1:(t(e.update({selection:r})),!0)};function pt(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),a=i&&i.from==n.from&&i.to==n.to;for(let n=!1,i=new V(e.doc,t,r[r.length-1].to);;)if(i.next(),i.done){if(n)return null;i=new V(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),n=!0}else{if(n&&r.some(e=>e.from==i.value.from))continue;if(a){let t=e.wordAt(i.value.from);if(!t||t.from!=i.value.from||t.to!=i.value.to)continue}return i.value}}var mt=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(e=>e.from===e.to))return ft({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(t=>e.sliceDoc(t.from,t.to)!=r))return!1;let i=pt(e,r);return i?(t(e.update({selection:e.selection.addRange(C.range(i.from,i.to),!1),effects:M.scrollIntoView(i.to)})),!0):!1},H=k.define({combine(e){return b(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new Wt(e),scrollToMatch:e=>M.scrollIntoView(e)})}});function ht(e){return e?[H.of(e),Yt]:Yt}var gt=class{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||``,this.valid=!!this.search&&(!this.regexp||et(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(e,t)=>t==`n`?`
2
- `:t==`r`?`\r`:t==`t`?` `:`\\`)}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new Tt(this):new bt(this)}getCursor(e,t=0,n){let r=e.doc?e:x.create({doc:e});return n??=r.doc.length,this.regexp?W(this,r,t,n):U(this,r,t,n)}},_t=class{constructor(e){this.spec=e}};function vt(e,t,n){return(r,i,a,o)=>n&&!n(r,i,a,o)?!1:e(r>=o&&i<=o+a.length?a.slice(r-o,i-o):t.doc.sliceString(r,i),t,r,i)}function U(e,t,n,r){let i;return e.wholeWord&&(i=yt(t.doc,t.charCategorizer(t.selection.main.head))),e.test&&(i=vt(e.test,t,i)),new V(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),i)}function yt(e,t){return(n,r,i,a)=>((a>n||a+i.length<r)&&(a=Math.max(0,n-2),i=e.sliceString(a,Math.min(e.length,r+2))),(t(St(i,n-a))!=R.Word||t(Ct(i,n-a))!=R.Word)&&(t(Ct(i,r-a))!=R.Word||t(St(i,r-a))!=R.Word))}var bt=class extends _t{constructor(e){super(e)}nextMatch(e,t,n){let r=U(this.spec,e,n,e.doc.length).nextOverlapping();if(r.done){let n=Math.min(e.doc.length,t+this.spec.unquoted.length);r=U(this.spec,e,0,n).nextOverlapping()}return r.done||r.value.from==t&&r.value.to==n?null:r.value}prevMatchInRange(e,t,n){for(let r=n;;){let n=Math.max(t,r-1e4-this.spec.unquoted.length),i=U(this.spec,e,n,r),a=null;for(;!i.nextOverlapping().done;)a=i.value;if(a)return a;if(n==t)return null;r-=1e4}}prevMatch(e,t,n){let r=this.prevMatchInRange(e,0,t);return r||=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length),r&&(r.from!=t||r.to!=n)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=U(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=U(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}};function xt(e,t,n){return(r,i,a)=>(!n||n(r,i,a))&&e(a[0],t,r,i)}function W(e,t,n,r){let i;return e.wholeWord&&(i=wt(t.charCategorizer(t.selection.main.head))),e.test&&(i=xt(e.test,t,i)),new Xe(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:i},n,r)}function St(e,t){return e.slice(T(e,t,!1),t)}function Ct(e,t){return e.slice(t,T(e,t))}function wt(e){return(t,n,r)=>!r[0].length||(e(St(r.input,r.index))!=R.Word||e(Ct(r.input,r.index))!=R.Word)&&(e(Ct(r.input,r.index+r[0].length))!=R.Word||e(St(r.input,r.index+r[0].length))!=R.Word)}var Tt=class extends _t{nextMatch(e,t,n){let r=W(this.spec,e,n,e.doc.length).next();return r.done&&(r=W(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let i=Math.max(t,n-r*1e4),a=W(this.spec,e,i,n),o=null;for(;!a.next().done;)o=a.value;if(o&&(i==t||o.from>i+10))return o;if(i==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,n)=>{if(n==`&`)return e.match[0];if(n==`$`)return`$`;for(let t=n.length;t>0;t--){let r=+n.slice(0,t);if(r>0&&r<e.match.length)return e.match[r]+n.slice(t)}return t})}matchAll(e,t){let n=W(this.spec,e,0,e.doc.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=W(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}},G=A.define(),Et=A.define(),K=w.define({create(e){return new Dt(Rt(e).create(),null)},update(e,t){for(let n of t.effects)n.is(G)?e=new Dt(n.value.create(),e.panel):n.is(Et)&&(e=new Dt(e.query,n.value?Lt:null));return e},provide:e=>P.from(e,e=>e.panel)}),Dt=class{constructor(e,t){this.query=e,this.panel=t}},Ot=E.mark({class:`cm-searchMatch`}),kt=E.mark({class:`cm-searchMatch cm-searchMatch-selected`}),At=j.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(K))}update(e){let t=e.state.field(K);(t!=e.startState.field(K)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return E.none;let{view:n}=this,r=new D;for(let t=0,i=n.visibleRanges,a=i.length;t<a;t++){let{from:o,to:s}=i[t];for(;t<a-1&&s>i[t+1].from-500;)s=i[++t].to;e.highlight(n.state,o,s,(e,t)=>{let i=n.state.selection.ranges.some(n=>n.from==e&&n.to==t);r.add(e,t,i?kt:Ot)})}return r.finish()}},{decorations:e=>e.decorations});function q(e){return t=>{let n=t.state.field(K,!1);return n&&n.query.spec.valid?e(t,n):Vt(t)}}var jt=q((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=C.single(r.from,r.to),a=e.state.facet(H);return e.dispatch({selection:i,effects:[qt(e,r),a.scrollToMatch(i.main,e)],userEvent:`select.search`}),Bt(e),!0}),Mt=q((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let a=C.single(i.from,i.to),o=e.state.facet(H);return e.dispatch({selection:a,effects:[qt(e,i),o.scrollToMatch(a.main,e)],userEvent:`select.search`}),Bt(e),!0}),Nt=q((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!n||!n.length?!1:(e.dispatch({selection:C.create(n.map(e=>C.range(e.from,e.to))),userEvent:`select.search.matches`}),!0)}),Pt=({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,a=[],o=0;for(let t=new V(e.doc,e.sliceDoc(r,i));!t.next().done;){if(a.length>1e3)return!1;t.value.from==r&&(o=a.length),a.push(C.range(t.value.from,t.value.to))}return t(e.update({selection:C.create(a,o),userEvent:`select.search.matches`})),!0},Ft=q((e,{query:t})=>{let{state:n}=e,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let a=t.nextMatch(n,r,r);if(!a)return!1;let o=a,s=[],c,l,u=[];o.from==r&&o.to==i&&(l=n.toText(t.getReplacement(o)),s.push({from:o.from,to:o.to,insert:l}),o=t.nextMatch(n,o.from,o.to),u.push(M.announce.of(n.phrase(`replaced match on line $`,n.doc.lineAt(r).number)+`.`)));let d=e.state.changes(s);return o&&(c=C.single(o.from,o.to).map(d),u.push(qt(e,o)),u.push(n.facet(H).scrollToMatch(c.main,e))),e.dispatch({changes:d,selection:c,effects:u,userEvent:`input.replace`}),!0}),It=q((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map(e=>{let{from:n,to:r}=e;return{from:n,to:r,insert:t.getReplacement(e)}});if(!n.length)return!1;let r=e.state.phrase(`replaced $ matches`,n.length)+`.`;return e.dispatch({changes:n,effects:M.announce.of(r),userEvent:`input.replace.all`}),!0});function Lt(e){return e.state.facet(H).createPanel(e)}function Rt(e,t){let n=e.selection.main,r=n.empty||n.to>n.from+100?``:e.sliceDoc(n.from,n.to);if(t&&!r)return t;let i=e.facet(H);return new gt({search:t?.literal??i.literal?r:r.replace(/\n/g,`\\n`),caseSensitive:t?.caseSensitive??i.caseSensitive,literal:t?.literal??i.literal,regexp:t?.regexp??i.regexp,wholeWord:t?.wholeWord??i.wholeWord})}function zt(e){let t=xe(e,Lt);return t&&t.dom.querySelector(`[main-field]`)}function Bt(e){let t=zt(e);t&&t==e.root.activeElement&&t.select()}var Vt=e=>{let t=e.state.field(K,!1);if(t&&t.panel){let n=zt(e);if(n&&n!=e.root.activeElement){let r=Rt(e.state,t.query.spec);r.valid&&e.dispatch({effects:G.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[Et.of(!0),t?G.of(Rt(e.state,t.query.spec)):A.appendConfig.of(Yt)]});return!0},Ht=e=>{let t=e.state.field(K,!1);if(!t||!t.panel)return!1;let n=xe(e,Lt);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:Et.of(!1)}),!0},Ut=[{key:`Mod-f`,run:Vt,scope:`editor search-panel`},{key:`F3`,run:jt,shift:Mt,scope:`editor search-panel`,preventDefault:!0},{key:`Mod-g`,run:jt,shift:Mt,scope:`editor search-panel`,preventDefault:!0},{key:`Escape`,run:Ht,scope:`editor search-panel`},{key:`Mod-Shift-l`,run:Pt},{key:`Mod-Alt-g`,run:nt},{key:`Mod-d`,run:mt,preventDefault:!0}],Wt=class{constructor(e){this.view=e;let t=this.query=e.state.field(K).query.spec;this.commit=this.commit.bind(this),this.searchField=z(`input`,{value:t.search,placeholder:J(e,`Find`),"aria-label":J(e,`Find`),class:`cm-textfield`,name:`search`,form:``,"main-field":`true`,onchange:this.commit,onkeyup:this.commit}),this.replaceField=z(`input`,{value:t.replace,placeholder:J(e,`Replace`),"aria-label":J(e,`Replace`),class:`cm-textfield`,name:`replace`,form:``,onchange:this.commit,onkeyup:this.commit}),this.caseField=z(`input`,{type:`checkbox`,name:`case`,form:``,checked:t.caseSensitive,onchange:this.commit}),this.reField=z(`input`,{type:`checkbox`,name:`re`,form:``,checked:t.regexp,onchange:this.commit}),this.wordField=z(`input`,{type:`checkbox`,name:`word`,form:``,checked:t.wholeWord,onchange:this.commit});function n(e,t,n){return z(`button`,{class:`cm-button`,name:e,onclick:t,type:`button`},n)}this.dom=z(`div`,{onkeydown:e=>this.keydown(e),class:`cm-search`},[this.searchField,n(`next`,()=>jt(e),[J(e,`next`)]),n(`prev`,()=>Mt(e),[J(e,`previous`)]),n(`select`,()=>Nt(e),[J(e,`all`)]),z(`label`,null,[this.caseField,J(e,`match case`)]),z(`label`,null,[this.reField,J(e,`regexp`)]),z(`label`,null,[this.wordField,J(e,`by word`)]),...e.state.readOnly?[]:[z(`br`),this.replaceField,n(`replace`,()=>Ft(e),[J(e,`replace`)]),n(`replaceAll`,()=>It(e),[J(e,`replace all`)])],z(`button`,{name:`close`,onclick:()=>Ht(e),"aria-label":J(e,`close`),type:`button`},[`×`])])}commit(){let e=new gt({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:G.of(e)}))}keydown(e){he(this.view,e,`search-panel`)?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Mt:jt)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),Ft(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(G)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(H).top}};function J(e,t){return e.state.phrase(t)}var Gt=30,Kt=/[\s\.,:;?!]/;function qt(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),i=e.state.doc.lineAt(n).to,a=Math.max(r.from,t-Gt),o=Math.min(i,n+Gt),s=e.state.sliceDoc(a,o);if(a!=r.from){for(let e=0;e<Gt;e++)if(!Kt.test(s[e+1])&&Kt.test(s[e])){s=s.slice(e);break}}if(o!=i){for(let e=s.length-1;e>s.length-Gt;e--)if(!Kt.test(s[e-1])&&Kt.test(s[e])){s=s.slice(0,e);break}}return M.announce.of(`${e.state.phrase(`current match`)}. ${s} ${e.state.phrase(`on line`)} ${r.number}.`)}var Jt=M.baseTheme({".cm-panel.cm-search":{padding:`2px 6px 4px`,position:`relative`,"& [name=close]":{position:`absolute`,top:`0`,right:`4px`,backgroundColor:`inherit`,border:`none`,font:`inherit`,padding:0,margin:0},"& input, & button, & label":{margin:`.2em .6em .2em 0`},"& input[type=checkbox]":{marginRight:`.2em`},"& label":{fontSize:`80%`,whiteSpace:`pre`}},"&light .cm-searchMatch":{backgroundColor:`#ffff0054`},"&dark .cm-searchMatch":{backgroundColor:`#00ffff8a`},"&light .cm-searchMatch-selected":{backgroundColor:`#ff6a0054`},"&dark .cm-searchMatch-selected":{backgroundColor:`#ff00ff8a`}}),Yt=[K,y.low(At),Jt],Xt=class{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}},Y=class e{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(t,n,r){let i=r.facet(Q).markerFilter;i&&(t=i(t,r));let a=t.slice().sort((e,t)=>e.from-t.from||e.to-t.to),o=new D,s=[],c=0,l=r.doc.iter(),u=0,d=r.doc.length;for(let e=0;;){let t=e==a.length?null:a[e];if(!t&&!s.length)break;let n,r;if(s.length)n=c,r=s.reduce((e,t)=>Math.min(e,t.to),t&&t.from>n?t.from:1e8);else{if(n=t.from,n>d)break;r=t.to,s.push(t),e++}for(;e<a.length;){let t=a[e];if(t.from==n&&(t.to>t.from||t.to==n))s.push(t),e++,r=Math.min(t.to,r);else{r=Math.min(t.from,r);break}}r=Math.min(r,d);let i=!1;if(s.some(e=>e.from==n&&(e.to==r||r==d))&&(i=n==r,!i&&r-n<10)){let e=n-(u+l.value.length);e>0&&(l.next(e),u=n);for(let e=n;;){if(e>=r){i=!0;break}if(!l.lineBreak&&u+l.value.length>e)break;e=u+l.value.length,u+=l.value.length,l.next()}}let f=vn(s);if(i)o.add(n,n,E.widget({widget:new fn(f),diagnostics:s.slice()}));else{let e=s.reduce((e,t)=>t.markClass?e+` `+t.markClass:e,``);o.add(n,r,E.mark({class:`cm-lintRange cm-lintRange-`+f+e,diagnostics:s.slice(),inclusiveEnd:s.some(e=>e.to>r)}))}if(c=r,c==d)break;for(let e=0;e<s.length;e++)s[e].to<=c&&s.splice(e--,1)}let f=o.finish();return new e(f,n,X(f))}};function X(e,t=null,n=0){let r=null;return e.between(n,1e9,(e,n,{spec:i})=>{if(!(t&&i.diagnostics.indexOf(t)<0))if(!r)r=new Xt(e,n,t||i.diagnostics[0]);else if(i.diagnostics.indexOf(r.diagnostic)<0)return!1;else r=new Xt(r.from,n,r.diagnostic)}),r}function Zt(e,t){let n=t.pos,r=t.end||n,i=e.state.facet(Q).hideOn(e,n,r);if(i!=null)return i;let a=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(e=>e.is($t))||e.changes.touchesRange(a.from,Math.max(a.to,r)))}function Qt(e,t){return e.field(Z,!1)?t:t.concat(A.appendConfig.of(yn))}var $t=A.define(),en=A.define(),tn=A.define(),Z=w.define({create(){return new Y(E.none,null,null)},update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),r=null,i=e.panel;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=X(n,e.selected.diagnostic,i)||X(n,null,i)}!n.size&&i&&t.state.facet(Q).autoPanel&&(i=null),e=new Y(n,i,r)}for(let n of t.effects)if(n.is($t)){let r=t.state.facet(Q).autoPanel?n.value.length?mn.open:null:e.panel;e=Y.init(n.value,r,t.state)}else n.is(en)?e=new Y(e.diagnostics,n.value?mn.open:null,e.selected):n.is(tn)&&(e=new Y(e.diagnostics,e.panel,n.value));return e},provide:e=>[P.from(e,e=>e.panel),M.decorations.from(e,e=>e.diagnostics)]}),nn=E.mark({class:`cm-lintRange cm-lintRange-active`});function rn(e,t,n){let{diagnostics:r}=e.state.field(Z),i,a=-1,o=-1;r.between(t-+(n<0),t+ +(n>0),(e,r,{spec:s})=>{if(t>=e&&t<=r&&(e==r||(t>e||n>0)&&(t<r||n<0)))return i=s.diagnostics,a=e,o=r,!1});let s=e.state.facet(Q).tooltipFilter;return i&&s&&(i=s(i,e.state)),i?{pos:a,end:o,above:e.state.doc.lineAt(a).to<o,create(){return{dom:an(e,i)}}}:null}function an(e,t){return z(`ul`,{class:`cm-tooltip-lint`},t.map(t=>dn(e,t,!1)))}var on=e=>{let t=e.state.field(Z,!1);(!t||!t.panel)&&e.dispatch({effects:Qt(e.state,[en.of(!0)])});let n=xe(e,mn.open);return n&&n.dom.querySelector(`.cm-panel-lint ul`).focus(),!0},sn=e=>{let t=e.state.field(Z,!1);return!t||!t.panel?!1:(e.dispatch({effects:en.of(!1)}),!0)},cn=[{key:`Mod-Shift-m`,run:on,preventDefault:!0},{key:`F8`,run:e=>{let t=e.state.field(Z,!1);if(!t)return!1;let n=e.state.selection.main,r=X(t.diagnostics,null,n.to+1);return!r&&(r=X(t.diagnostics,null,0),!r||r.from==n.from&&r.to==n.to)?!1:(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)}}],Q=k.define({combine(e){return{sources:e.map(e=>e.source).filter(e=>e!=null),...b(e.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:ln,tooltipFilter:ln,needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t,hideOn:(e,t)=>e?t?(n,r,i)=>e(n,r,i)||t(n,r,i):e:t,autoPanel:(e,t)=>e||t})}}});function ln(e,t){return e?t?(n,r)=>t(e(n,r),r):e:t}function un(e){let t=[];if(e)actions:for(let{name:n}of e){for(let e=0;e<n.length;e++){let r=n[e];if(/[a-zA-Z]/.test(r)&&!t.some(e=>e.toLowerCase()==r.toLowerCase())){t.push(r);continue actions}}t.push(``)}return t}function dn(e,t,n){let r=n?un(t.actions):[];return z(`li`,{class:`cm-diagnostic cm-diagnostic-`+t.severity},z(`span`,{class:`cm-diagnosticText`},t.renderMessage?t.renderMessage(e):t.message),t.actions?.map((n,i)=>{let a=!1,o=r=>{if(r.preventDefault(),a)return;a=!0;let i=X(e.state.field(Z).diagnostics,t);i&&n.apply(e,i.from,i.to)},{name:s}=n,c=r[i]?s.indexOf(r[i]):-1,l=c<0?s:[s.slice(0,c),z(`u`,s.slice(c,c+1)),s.slice(c+1)];return z(`button`,{type:`button`,class:`cm-diagnosticAction`+(n.markClass?` `+n.markClass:``),onclick:o,onmousedown:o,"aria-label":` Action: ${s}${c<0?``:` (access key "${r[i]})"`}.`},l)}),t.source&&z(`div`,{class:`cm-diagnosticSource`},t.source))}var fn=class extends v{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return z(`span`,{class:`cm-lintPoint cm-lintPoint-`+this.sev})}},pn=class{constructor(e,t){this.diagnostic=t,this.id=`item_`+Math.floor(Math.random()*4294967295).toString(16),this.dom=dn(e,t,!0),this.dom.id=this.id,this.dom.setAttribute(`role`,`option`)}},mn=class e{constructor(e){this.view=e,this.items=[],this.list=z(`ul`,{tabIndex:0,role:`listbox`,"aria-label":this.view.state.phrase(`Diagnostics`),onkeydown:t=>{if(!(t.ctrlKey||t.altKey||t.metaKey)){if(t.keyCode==27)sn(this.view),this.view.focus();else if(t.keyCode==38||t.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(t.keyCode==40||t.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(t.keyCode==36)this.moveSelection(0);else if(t.keyCode==35)this.moveSelection(this.items.length-1);else if(t.keyCode==13)this.view.focus();else if(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:n}=this.items[this.selectedIndex],r=un(n.actions);for(let i=0;i<r.length;i++)if(r[i].toUpperCase().charCodeAt(0)==t.keyCode){let t=X(this.view.state.field(Z).diagnostics,n);t&&n.actions[i].apply(e,t.from,t.to)}}else return;t.preventDefault()}},onclick:e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)}}),this.dom=z(`div`,{class:`cm-panel-lint`},this.list,z(`button`,{type:`button`,name:`close`,"aria-label":this.view.state.phrase(`close`),onclick:()=>sn(this.view)},`×`)),this.update()}get selectedIndex(){let e=this.view.state.field(Z).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(Z),n=0,r=!1,i=null,a=new Set;for(e.between(0,this.view.state.doc.length,(e,o,{spec:s})=>{for(let e of s.diagnostics){if(a.has(e))continue;a.add(e);let o=-1,s;for(let t=n;t<this.items.length;t++)if(this.items[t].diagnostic==e){o=t;break}o<0?(s=new pn(this.view,e),this.items.splice(n,0,s),r=!0):(s=this.items[o],o>n&&(this.items.splice(n,o-n),r=!0)),t&&s.diagnostic==t.diagnostic?s.dom.hasAttribute(`aria-selected`)||(s.dom.setAttribute(`aria-selected`,`true`),i=s):s.dom.hasAttribute(`aria-selected`)&&s.dom.removeAttribute(`aria-selected`),n++}});n<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)r=!0,this.items.pop();this.items.length==0&&(this.items.push(new pn(this.view,{from:-1,to:-1,severity:`info`,message:this.view.state.phrase(`No diagnostics`)})),r=!0),i?(this.list.setAttribute(`aria-activedescendant`,i.id),this.view.requestMeasure({key:this,read:()=>({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let n=t.height/this.list.offsetHeight;e.top<t.top?this.list.scrollTop-=(t.top-e.top)/n:e.bottom>t.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute(`aria-activedescendant`),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=X(this.view.state.field(Z).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:tn.of(t)})}static open(t){return new e(t)}};function hn(e,t=`viewBox="0 0 40 40"`){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}function $(e){return hn(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,`width="6" height="3"`)}var gn=M.baseTheme({".cm-diagnostic":{padding:`3px 6px 3px 8px`,marginLeft:`-1px`,display:`block`,whiteSpace:`pre-wrap`},".cm-diagnostic-error":{borderLeft:`5px solid #d11`},".cm-diagnostic-warning":{borderLeft:`5px solid orange`},".cm-diagnostic-info":{borderLeft:`5px solid #999`},".cm-diagnostic-hint":{borderLeft:`5px solid #66d`},".cm-diagnosticAction":{font:`inherit`,border:`none`,padding:`2px 4px`,backgroundColor:`#444`,color:`white`,borderRadius:`3px`,marginLeft:`8px`,cursor:`pointer`},".cm-diagnosticSource":{fontSize:`70%`,opacity:.7},".cm-lintRange":{backgroundPosition:`left bottom`,backgroundRepeat:`repeat-x`,paddingBottom:`0.7px`},".cm-lintRange-error":{backgroundImage:$(`#d11`)},".cm-lintRange-warning":{backgroundImage:$(`orange`)},".cm-lintRange-info":{backgroundImage:$(`#999`)},".cm-lintRange-hint":{backgroundImage:$(`#66d`)},".cm-lintRange-active":{backgroundColor:`#ffdd9980`},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:`relative`,"&:after":{content:`""`,position:`absolute`,bottom:0,left:`-2px`,borderLeft:`3px solid transparent`,borderRight:`3px solid transparent`,borderBottom:`4px solid #d11`}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:`orange`}},".cm-lintPoint-info":{"&:after":{borderBottomColor:`#999`}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:`#66d`}},".cm-panel.cm-panel-lint":{position:`relative`,"& ul":{maxHeight:`100px`,overflowY:`auto`,"& [aria-selected]":{backgroundColor:`#ddd`,"& u":{textDecoration:`underline`}},"&:focus [aria-selected]":{background_fallback:`#bdf`,backgroundColor:`Highlight`,color_fallback:`white`,color:`HighlightText`},"& u":{textDecoration:`none`},padding:0,margin:0},"& [name=close]":{position:`absolute`,top:`0`,right:`2px`,background:`inherit`,border:`none`,font:`inherit`,padding:0,margin:0}},"&dark .cm-lintRange-active":{backgroundColor:`#86714a80`},"&dark .cm-panel.cm-panel-lint ul":{"& [aria-selected]":{backgroundColor:`#2e343e`}}});function _n(e){return e==`error`?4:e==`warning`?3:e==`info`?2:1}function vn(e){let t=`hint`,n=1;for(let r of e){let e=_n(r.severity);e>n&&(n=e,t=r.severity)}return t}var yn=[Z,M.decorations.compute([Z],e=>{let{selected:t,panel:n}=e.field(Z);return!t||!n||t.from==t.to?E.none:E.set([nn.range(t.from,t.to)])}),_e(rn,{hideOn:Zt}),gn],bn=[I(),Se(),F(),l(),N(),Ce(),ye(),x.allowMultipleSelections.of(!0),S(),O(pe,{fallback:!0}),ge(),Ae(),Oe(),ve(),L(),be(),at(),we.of([...De,...c,...Ut,...f,...Te,...ke,...cn])];F(),l(),Ce(),O(pe,{fallback:!0}),we.of([...c,...f]);var xn={words:0,chars:0,tokens:0},Sn=/[ -〿぀-ゟ゠-ヿ㐀-䶿一-鿿豈-﫿＀-￯฀-๿ក-៿]/,Cn=/[\p{L}\p{N}]/u,wn=new Set([`text`,`inlineCode`,`code`,`tag`]),Tn=new Set([`html`,`definition`,`footnoteDefinition`,`yaml`,`toml`,`image`,`imageReference`,`mdxFlowExpression`,`mdxTextExpression`,`mdxjsEsm`,`rawMdxFallback`,`rawMdxFallbackMdast`]),En=new Set([`paragraph`,`heading`,`blockquote`,`list`,`listItem`,`thematicBreak`,`table`,`tableRow`,`tableCell`,`mdxJsxFlowElement`,`commentBlock`]);function Dn(e,t){if(!e)return;let n=e.type;if(!Tn.has(n)){if(wn.has(n)){e.value&&(t.push(e.value),n===`code`&&t.push(`
3
- `));return}if(n===`wikiLink`||n===`wikiLinkEmbed`){let n=e.data?.alias??e.value??``;n&&t.push(n);return}if(Array.isArray(e.children)){for(let n of e.children)Dn(n,t);if(En.has(n)&&t.length>0){let e=t[t.length-1];e&&!e.endsWith(`
4
- `)&&t.push(`
5
- `)}}}}function On(e){try{let t=u().parseToMdast(e),n=[];return Dn(t,n),n.join(``).trim()}catch(t){return console.warn(`[document-stats] mdast parse failed, falling back to raw text`,t),e.trim()}}function kn(e){if(!e)return 0;let t=0;for(let n of e.split(/\s+/))Cn.test(n)&&t++;return t}function An(e){let t=globalThis.Intl.Segmenter;if(!t)return kn(e);let n=new t(void 0,{granularity:`word`}),r=0;for(let t of n.segment(e))t.isWordLike&&r++;return r}function jn(e){let t=Sn.test(e)?1.5:4;return Math.ceil(e.length/t)}function Mn(e){return e?{words:Sn.test(e)?An(e):kn(e),chars:e.length,tokens:jn(e)}:{words:0,chars:0,tokens:0}}function Nn(e){if(!e)return{words:0,chars:0,tokens:0};let{body:t}=h(e);return t.trim()?Mn(On(t)):{words:0,chars:0,tokens:0}}function Pn(e,{isMarkdown:t}){let n=e.trim();return n?Mn(t?On(e):n):xn}var Fn=new Map,In=new Set,Ln=(e,t)=>`${t}:${e}`;function Rn(){for(let e of In)e()}function zn(e,t,n){let r=Ln(e,t);if(n===null){Fn.delete(r)&&Rn();return}let i=Fn.get(r);i&&i.words===n.words&&i.chars===n.chars&&i.tokens===n.tokens||(Fn.set(r,n),Rn())}function Bn(e,t){return e===null?null:Fn.get(Ln(e,t))??null}function Vn(e){return In.add(e),()=>{In.delete(e)}}function Hn(e){let{from:t,to:n,empty:r}=e.state.selection;if(r)return null;let i=e.state.doc.textBetween(t,n,`
6
- `,` `);return i.trim()?Pn(i,{isMarkdown:!1}):null}function Un(e){let t=[];for(let n of e.state.selection.ranges)n.empty||t.push(e.state.sliceDoc(n.from,n.to));if(t.length===0)return null;let n=t.join(`
7
- `);return n.trim()?Pn(n,{isMarkdown:!0}):null}function Wn(e){let t=o(e.state.selection.content(),e.state.schema);return u().serialize(t).trim()}function Gn(e){return e.lineCount===1&&e.charLen<100?{kind:`inline`,markdown:e.markdown}:e.surface===`source`&&e.sourceLineStart!==void 0&&e.sourceLineEnd!==void 0?{kind:`lines`,startLine:e.sourceLineStart,endLine:e.sourceLineEnd}:{kind:`anchor`,markdown:e.markdown}}function Kn(e,t){return e.sourceLineStart!==void 0&&e.sourceLineEnd!==void 0?`${t} (${e.sourceLineStart===e.sourceLineEnd?`${e.sourceLineStart}`:`${e.sourceLineStart}-${e.sourceLineEnd}`})`:e.lineCount>1?`${t} (${e.lineCount} lines)`:`${t} (selection)`}function qn(e){let t=e.replace(/\r\n/g,`
8
- `).split(`
9
- `),n=[],r=!1;for(let e of t){let t=e.trim();if(/^(```|~~~)/.test(t)){r||n.push(`code`),r=!r;continue}if(r||t===``)continue;if(/^\|.*\|?$/.test(t)&&t.includes(`|`)){n[n.length-1]!==`table`&&n.push(`table`);continue}if(/^<\/?[A-Za-z]/.test(t)){n[n.length-1]!==`component`&&n.push(`component`);continue}let i=t.match(/^#{1,6}\s+(.*)$/);if(i){n.push(i[1]??``);continue}let a=t.match(/^[-*+]\s+(.*)$/);if(a){n.push(`• ${a[1]??``}`);continue}let o=t.match(/^\d+\.\s+(.*)$/);if(o){n.push(`• ${o[1]??``}`);continue}let s=t.match(/^>\s?(.*)$/);if(s){n.push(s[1]??``);continue}n.push(t)}return n.join(` `).replace(/\s+/g,` `).trim()}var Jn=new Map,Yn=new Set,Xn=(e,t)=>`${t}:${e}`;function Zn(){for(let e of Yn)e()}function Qn(e,t){return e.markdown===t.markdown&&e.sourceLineStart===t.sourceLineStart&&e.sourceLineEnd===t.sourceLineEnd}function $n(e,t,n){let r=Xn(e,t);if(n===null){Jn.delete(r)&&Zn();return}let i=Jn.get(r);i&&Qn(i,n)||(Jn.set(r,n),Zn())}function er(e,t){return e===null?null:Jn.get(Xn(e,t))??null}function tr(e){return Yn.add(e),()=>{Yn.delete(e)}}function nr(e,t){if(e.state.selection.empty)return null;let n=Wn(e);return n.trim()?{surface:`wysiwyg`,docName:t,markdown:n,charLen:n.trim().length,lineCount:(n.match(/\n/g)?.length??0)+1}:null}function rr(e,t){return e.trim()?{surface:`frontmatter`,docName:t,markdown:e,charLen:e.trim().length,lineCount:(e.match(/\n/g)?.length??0)+1}:null}function ir(e,t){let n=[],r=1/0,i=-1;for(let t of e.state.selection.ranges)t.empty||(n.push(e.state.sliceDoc(t.from,t.to)),r=Math.min(r,t.from),i=Math.max(i,t.to));if(n.length===0)return null;let a=n.join(`
10
- `);if(!a.trim())return null;let o=e.state.doc.lineAt(r).number,s=e.state.doc.lineAt(i).number;return{surface:`source`,docName:t,markdown:a,charLen:a.trim().length,lineCount:s-o+1,sourceLineStart:o,sourceLineEnd:s}}var ar=`open-knowledge:open-ask-ai-composer`;function or(e=typeof window>`u`?new EventTarget:window){e.dispatchEvent(new CustomEvent(ar))}function sr(e,t=typeof window>`u`?new EventTarget:window){let n=()=>e();return t.addEventListener(ar,n),()=>t.removeEventListener(ar,n)}export{Ie as C,We as S,Pe as T,xn as _,$n as a,ht as b,ir as c,tr as d,Bn as f,Vn as g,Hn as h,qn as i,nr as l,Un as m,sr as n,Kn as o,zn as p,er as r,rr as s,or as t,Gn as u,Nn as v,Fe as w,Ue as x,bn as y};
@@ -1 +0,0 @@
1
- import"./chunk-K5T4RW27-CiRq5i4i.js";import{n as e}from"./chunk-CIAEETIT-CZF2JSYL.js";export{e as createWardleyServices};
@@ -1,3 +0,0 @@
1
- import{t as e}from"./esm-BLMtE3s6.mjs";import{Mr as t,Or as n,Rr as r,Vi as i,wr as a}from"./dist-CdTX-PGm.mjs";import{i as o,o as s,t as c}from"./write-project-skill-BsaKpQ6o.mjs";import{existsSync as l,mkdirSync as u,readFileSync as d,readdirSync as f,rmSync as p,statSync as m,writeFileSync as h}from"node:fs";import{dirname as g,join as _,resolve as v}from"node:path";import{homedir as y}from"node:os";const b=[{hostDir:`.claude`,editorId:`claude`},{hostDir:`.cursor`,editorId:`cursor`},{hostDir:`.agents`,editorId:`codex`},{hostDir:`.agents`,editorId:`opencode`}],x=`open-knowledge-discovery`,S=[`.agents`,`skills`,x],C={existsSync:e=>l(e),isDirectory:e=>{try{return m(e).isDirectory()}catch(e){if(e.code===`ENOENT`)return!1;throw e}},readdirSync:e=>f(e),readFileSync:e=>d(e),writeFileSync:(e,t)=>{h(e,t)},mkdirSync:(e,t)=>{u(e,t)},rmSync:(e,t)=>{p(e,t)}},w={resolveProjectBundledSkillDir:()=>r(`project`,{checkDesktop:!1}),resolveDiscoveryBundledSkillDir:()=>r(`discovery`,{checkDesktop:!1}),readBundledVersion:()=>a(),readRecordedVersion:e=>n(e,`cli-hosts`),writeRecordedVersion:(e,t)=>i(e,`cli-hosts`,t,`cli-start`),recordEvent:e=>t(e)};function T(e){process.stderr.write(`${JSON.stringify(e)}\n`)}function E(e,t,n){n.rmSync(t,{recursive:!0,force:!0}),n.mkdirSync(g(t),{recursive:!0}),D(e,t,n)}function D(e,t,n){n.mkdirSync(t,{recursive:!0});for(let r of n.readdirSync(e)){let i=_(e,r),a=_(t,r);n.isDirectory(i)?D(i,a,n):n.writeFileSync(a,n.readFileSync(i))}}function O(e,t){if(!e)return!1;try{return t.existsSync(e)?t.readFileSync(e).toString(`utf8`).includes(o):!1}catch{return!1}}function k(e,t,n,r){let i;try{i=t.resolveProjectBundledSkillDir()}catch(e){return r({event:`project-skill-reclaim-bundle-missing`,scope:`project`,error:e instanceof Error?e.message:String(e)}),{outcome:`skipped`,reason:`bundle-missing`}}let a=[];for(let t of b){let o=_(e,t.hostDir,`skills`,`open-knowledge`),l=_(o,`SKILL.md`),u=n.existsSync(l),d=s[t.editorId]?.projectConfigPath?.(e),f=!u&&O(d,n);if(!u&&!f){a.push({editorId:t.editorId,hostDir:t.hostDir,path:o,outcome:`no-token`}),r({event:`project-skill-reclaim-no-token`,scope:`project`,editorId:t.editorId,path:o});continue}try{c(o,e),E(i,o,n);let s=u?`reclaimed`:`created`;a.push({editorId:t.editorId,hostDir:t.hostDir,path:o,outcome:s}),r({event:u?`project-skill-reclaim-reclaimed`:`project-skill-reclaim-created`,scope:`project`,editorId:t.editorId,path:o})}catch(e){let n=e instanceof Error?e.message:String(e);a.push({editorId:t.editorId,hostDir:t.hostDir,path:o,outcome:`failed`,error:n}),r({event:`project-skill-reclaim-failed`,scope:`project`,editorId:t.editorId,path:o,error:n})}}return{outcome:`done`,entries:a}}async function A(e,t,n,r){let i=e=>{t.recordEvent(e).catch(()=>{})},a=()=>new Date().toISOString(),o;try{o=await t.readBundledVersion()}catch(e){let t=e instanceof Error?e.message:String(e);return r({event:`user-skill-reclaim-version-read-failed`,scope:`user`,error:t}),i({ts:a(),surface:`cli-start`,target:`cli-hosts`,bundle:`discovery`,outcome:`failed`,reason:`version-read-failed:${t}`}),{outcome:`skipped`,reason:`version-read-failed`}}let s;try{s=await t.readRecordedVersion(e)}catch(e){r({event:`user-skill-reclaim-version-read-error`,scope:`user`,error:e instanceof Error?e.message:String(e)}),s=null}if(s!==null&&s===o)return r({event:`user-skill-reclaim-skipped-version-current`,scope:`user`,version:o}),{outcome:`skipped`,reason:`version-current`};let c;try{c=t.resolveDiscoveryBundledSkillDir()}catch(e){let t=e instanceof Error?e.message:String(e);return r({event:`user-skill-reclaim-bundle-missing`,scope:`user`,error:t}),i({ts:a(),surface:`cli-start`,target:`cli-hosts`,bundle:`discovery`,outcome:`failed`,reason:`bundle-missing:${t}`}),{outcome:`skipped`,reason:`bundle-missing`}}let l=[],u=_(e,...S),d=n.existsSync(u);try{E(c,u,n),l.push({kind:`central`,path:u,outcome:d?`overwritten`:`written`}),r({event:`user-skill-reclaim-central-written`,scope:`user`,path:u,preexisting:d,version:o})}catch(e){let t=e instanceof Error?e.message:String(e);l.push({kind:`central`,path:u,outcome:`failed`,error:t}),r({event:`user-skill-reclaim-central-failed`,scope:`user`,path:u,error:t})}for(let t of b){let i=_(e,t.hostDir),a=_(i,`skills`,x);if(a===u){l.push({kind:`host`,editorId:t.editorId,hostDir:t.hostDir,path:a,outcome:`skipped-collapsed-with-central`});continue}if(!n.existsSync(i)){l.push({kind:`host`,editorId:t.editorId,hostDir:t.hostDir,path:a,outcome:`skipped-host-absent`});continue}let s=n.existsSync(a);try{E(c,a,n),l.push({kind:`host`,editorId:t.editorId,hostDir:t.hostDir,path:a,outcome:s?`overwritten`:`written`}),r({event:`user-skill-reclaim-host-written`,scope:`user`,editorId:t.editorId,hostDir:t.hostDir,path:a,preexisting:s,version:o})}catch(e){let n=e instanceof Error?e.message:String(e);l.push({kind:`host`,editorId:t.editorId,hostDir:t.hostDir,path:a,outcome:`failed`,error:n}),r({event:`user-skill-reclaim-host-failed`,scope:`user`,editorId:t.editorId,hostDir:t.hostDir,path:a,error:n})}}let f=l.find(e=>e.kind===`central`);if(f?.outcome===`written`||f?.outcome===`overwritten`){let n=null;try{await t.writeRecordedVersion(e,o),r({event:`user-skill-reclaim-version-recorded`,scope:`user`,version:o})}catch(e){n=e instanceof Error?e.message:String(e),r({event:`user-skill-reclaim-version-record-failed`,scope:`user`,version:o,error:n})}i({ts:a(),surface:`cli-start`,target:`cli-hosts`,bundle:`discovery`,outcome:n===null?`installed`:`failed`,version:o,...n===null?{}:{reason:`state-write-failed:${n}`}})}else{let e=l.some(e=>e.kind===`host`&&e.outcome===`failed`);i({ts:a(),surface:`cli-start`,target:`cli-hosts`,bundle:`discovery`,outcome:`failed`,version:o,reason:e?`all-writes-failed`:`no-hosts-installed`})}return{outcome:`done`,version:o,entries:l}}async function j(e){let t=e.logger??T,n=e.fs??C,r=e.home??y(),i={...w,...e.deps};return e.reclaimDisableEnv===`1`?(t({event:`skill-repair-skipped`,reason:`reclaim-disabled`}),{status:`skipped`,reason:`reclaim-disabled`}):{status:`done`,project:k(e.projectDir,i,n,t),user:await A(r,i,n,t)}}function M(e){return e.status===`skipped`?e.reason===`reclaim-disabled`?0:1:e.project.outcome===`skipped`||e.user.outcome===`skipped`&&e.user.reason!==`version-current`||e.project.entries.some(e=>e.outcome===`failed`)||e.user.outcome===`done`&&e.user.entries.some(e=>e.outcome===`failed`)?1:0}function N(e){if(e.status===`skipped`)return`Skipped: ${e.reason}`;let t=[`Skill reclaim complete.`];if(e.project.outcome===`done`){let n=e.project.entries.filter(e=>e.outcome===`reclaimed`).length,r=e.project.entries.filter(e=>e.outcome===`created`).length,i=e.project.entries.filter(e=>e.outcome===`no-token`).length,a=e.project.entries.filter(e=>e.outcome===`failed`).length;t.push(` Project: ${n} reclaimed, ${r} created, ${i} no-token, ${a} failed.`)}else t.push(` Project: skipped (${e.project.reason}).`);if(e.user.outcome===`done`){let n=e.user.entries.filter(e=>e.outcome===`written`||e.outcome===`overwritten`).length,r=e.user.entries.filter(e=>e.outcome===`skipped-host-absent`||e.outcome===`skipped-collapsed-with-central`).length,i=e.user.entries.filter(e=>e.outcome===`failed`).length;t.push(` User (${e.user.version}): ${n} written, ${r} skipped, ${i} failed.`)}else t.push(` User: skipped (${e.user.reason}).`);return t.join(`
2
- `)}function P(){return new e(`repair-skills`).description("Refresh bundled SKILL.md files for installed AI editors (project-local + user-global). Runs automatically during `ok start`; this command forces an explicit sweep.").action(async()=>{let e=await j({projectDir:v(process.cwd()),reclaimDisableEnv:process.env.OK_RECLAIM_DISABLE??null});process.stdout.write(`${N(e)}\n`),process.exitCode=M(e)})}export{P as n,j as t};
3
- //# sourceMappingURL=repair-skills-CcgI6BcR.mjs.map
@@ -1 +0,0 @@
1
- import{t as e}from"./repair-skills-CcgI6BcR.mjs";export{e as repairSkills};
@@ -1 +0,0 @@
1
- import{g as e}from"./server-lock-CN2YHwpP-BWnMEaYY.mjs";export{e as updateServerLockPort};
@@ -1 +0,0 @@
1
- import{_ as e,f as t,r as n}from"./start-Dh8w6Lth.mjs";export{n as bootStartServer,t as resolveHost,e as startCommand};
@@ -1,12 +0,0 @@
1
- import{Zt as e,v as t,xt as n}from"./server-lock-CN2YHwpP-BWnMEaYY.mjs";import{Rr as r}from"./dist-CdTX-PGm.mjs";import{cpSync as i,existsSync as a,lstatSync as o,mkdirSync as s,realpathSync as c,rmSync as l}from"node:fs";import{basename as u,dirname as d,isAbsolute as f,join as p,posix as m,relative as h,resolve as g,sep as _,win32 as v}from"node:path";import{homedir as y}from"node:os";const b=t,x=n,S=`node`,C={MCP_DEBUG:`1`,OK_LOG_FILE:`/tmp/ok-mcp.log`},w=`# ok-mcp-v1`,T=`# ok-mcp-v1
2
- USER_BUNDLE="$HOME/Applications/OpenKnowledge.app/Contents/Resources/cli/bin/ok.sh"
3
- [ -f "$USER_BUNDLE" ] && [ -x "$USER_BUNDLE" ] && exec "$USER_BUNDLE" mcp
4
- BUNDLE="/Applications/OpenKnowledge.app/Contents/Resources/cli/bin/ok.sh"
5
- [ -f "$BUNDLE" ] && [ -x "$BUNDLE" ] && exec "$BUNDLE" mcp
6
- command -v npx >/dev/null 2>&1 && exec npx -y @inkeep/open-knowledge@latest mcp
7
- for d in "$HOME/.nvm/versions/node"/*/bin "$HOME/.fnm/node-versions"/*/installation/bin "$HOME/.asdf/installs/nodejs"/*/bin /opt/homebrew/bin /usr/local/bin "$HOME/.local/bin" "$HOME/.volta/bin"; do
8
- [ -f "$d/npx" ] && [ -x "$d/npx" ] && exec "$d/npx" -y @inkeep/open-knowledge@latest mcp
9
- done
10
- echo "OpenKnowledge: install OK Desktop or Node.js 24+, then restart your editor" >&2
11
- exit 127`;function E(e){if(typeof e!=`object`||!e)return!1;let t=e;if(t.command===`/bin/sh`){if(!Array.isArray(t.args)||t.args[0]!==`-l`||t.args[1]!==`-c`)return!1;let e=t.args[2];return typeof e==`string`&&e.includes(`# ok-mcp-v1`)}if(t.type===`local`&&Array.isArray(t.command)){if(t.command[0]!==`/bin/sh`||t.command[1]!==`-l`||t.command[2]!==`-c`)return!1;let e=t.command[3];return typeof e==`string`&&e.includes(`# ok-mcp-v1`)}return!1}function D(e=process.argv[1]){if(!e)throw Error(`Cannot infer the local CLI entry for --dev-mcp because process.argv[1] is empty.`);let t=g(e);if(u(t)===`cli.mjs`&&u(d(t))===`dist`)return t;let n=t.split(_),r=n.lastIndexOf(`packages`);if(r===-1||n[r+1]!==`cli`)throw Error(`Cannot infer the repo root for --dev-mcp from ${t}. Run the local CLI from this repo so the built dist path can be derived.`);let i=n.slice(0,r);return p(i.length===0?_:i.join(_),`packages`,`cli`,`dist`,`cli.mjs`)}function O(e={}){return e.mode===`dev`?{command:S,args:[D(),`mcp`],env:{...C}}:{command:`/bin/sh`,args:[`-l`,`-c`,T]}}function k(e={}){return e.mode===`dev`?{type:`local`,enabled:!0,command:[S,D(),`mcp`],environment:{...C}}:{type:`local`,enabled:!0,command:[`/bin/sh`,`-l`,`-c`,T]}}function A(e){if(typeof e!=`object`||!e)return!1;let t=e;if(Object.keys(t).length!==2)return!1;let n=O({mode:`published`}),r=n.args;return t.command!==n.command||!Array.isArray(r)||!Array.isArray(t.args)||t.args.length!==r.length?!1:t.args.every((e,t)=>e===r[t])}function j(e){return e===`win32`?v:m}function M(e={}){let t=e.platformName??process.platform,n=e.home??y();return j(t).join(n,`.claude.json`)}function N(e={}){let t=e.platformName??process.platform,n=e.home??y(),r=e.env??process.env;if(t===`darwin`)return m.join(n,`Library`,`Application Support`,`Claude`,`claude_desktop_config.json`);if(t===`win32`){let e=r.APPDATA??v.join(n,`AppData`,`Roaming`);return v.join(e,`Claude`,`claude_desktop_config.json`)}throw Error(`Claude Desktop is not available on ${t}. Supported: macOS, Windows.`)}function P(e={}){let t=e.platformName??process.platform,n=e.home??y();return j(t).join(n,`.cursor`,`mcp.json`)}function F(e={}){let t=e.platformName??process.platform,n=e.home??y();return(e.env??process.env).CODEX_HOME??j(t).join(n,`.codex`)}function I(e={}){return j(e.platformName??process.platform).join(F(e),`config.toml`)}function L(e={}){let t=e.platformName??process.platform,n=e.home??y(),r=e.env??process.env,i=j(t);if(t===`win32`){let e=r.APPDATA??i.join(n,`AppData`,`Roaming`);return i.join(e,`opencode`)}let a=r.XDG_CONFIG_HOME??i.join(n,`.config`);return i.join(a,`opencode`)}function R(e={}){return j(e.platformName??process.platform).join(L(e),`opencode.json`)}const z={claude:{id:`claude`,label:x.claude,configPath:(e,t)=>M({home:t}),format:`json`,topLevelKey:`mcpServers`,serverName:()=>e,buildEntry:(e,t)=>O(t),scope:`global`,detectPath:(e,t)=>p(t??y(),`.claude`),projectConfigPath:e=>p(e,`.mcp.json`),projectSkillPath:e=>p(e,`.claude`,`skills`,`open-knowledge`,`SKILL.md`)},"claude-desktop":{id:`claude-desktop`,label:x[`claude-desktop`],configPath:(e,t)=>N({home:t}),format:`json`,topLevelKey:`mcpServers`,serverName:()=>e,buildEntry:(e,t)=>O(t),scope:`global`,detectPath:(e,t)=>d(N({home:t}))},cursor:{id:`cursor`,label:x.cursor,configPath:(e,t)=>P({home:t}),format:`json`,topLevelKey:`mcpServers`,serverName:()=>e,buildEntry:(e,t)=>O(t),scope:`global`,detectPath:(e,t)=>d(P({home:t})),projectConfigPath:e=>p(e,`.cursor`,`mcp.json`),projectSkillPath:e=>p(e,`.cursor`,`skills`,`open-knowledge`,`SKILL.md`)},codex:{id:`codex`,label:x.codex,configPath:(e,t)=>I({home:t}),format:`toml`,topLevelKey:`mcp_servers`,serverName:()=>e,buildEntry:(e,t)=>O(t),scope:`global`,detectPath:(e,t)=>d(I({home:t})),projectConfigPath:e=>p(e,`.codex`,`config.toml`),projectSkillPath:e=>p(e,`.agents`,`skills`,`open-knowledge`,`SKILL.md`)},opencode:{id:`opencode`,label:x.opencode,configPath:(e,t)=>R({home:t}),format:`json`,topLevelKey:`mcp`,serverName:()=>e,buildEntry:(e,t)=>k(t),scope:`global`,detectPath:(e,t)=>d(R({home:t})),projectConfigPath:e=>p(e,`opencode.json`),projectSkillPath:e=>p(e,`.agents`,`skills`,`open-knowledge`,`SKILL.md`)}};function B(e){let t=e.filter(e=>!Object.hasOwn(z,e));if(t.length>0)throw Error(`Unknown editor(s): ${t.join(`, `)}. Valid options: ${b.join(`, `)}`);return e.map(e=>z[e])}function V(e,t){let n;try{n=c(t)}catch{n=g(t)}let r;try{r=o(e)}catch(e){if(e.code!==`ENOENT`)throw e}if(r?.isSymbolicLink())throw Error(`Refusing to write through a symbolic link at ${e}. Remove the symlink and re-run project setup.`);let i=d(e);for(;i.length>1&&i!==_;){let t;try{t=c(i)}catch(e){if(e.code===`ENOENT`){i=d(i);continue}throw e}let r=h(n,t);if(r===``||!r.startsWith(`..`)&&!f(r))return;throw Error(`Refusing to write at ${e}: ancestor ${i} resolves to ${t}, which is outside the project directory ${n}. A symbolic link in the path likely escapes the project. Remove the symlink and re-run project setup.`)}}function H(e,t){let n=e.projectSkillPath?.(t);if(!n)return{editorId:e.id,label:e.label,action:`skipped-unsupported`,path:``};try{let o=r(`project`,{checkDesktop:!0}),c=d(n);V(c,t);let u=a(n)?`overwritten`:`written`;return l(c,{recursive:!0,force:!0}),s(d(c),{recursive:!0}),i(o,c,{recursive:!0}),{editorId:e.id,label:e.label,action:u,path:n}}catch(t){return{editorId:e.id,label:e.label,action:`failed`,path:n,error:t instanceof Error?t.message:String(t)}}}export{x as a,E as c,B as d,w as i,A as l,H as n,z as o,b as r,O as s,V as t,D as u};
12
- //# sourceMappingURL=write-project-skill-BsaKpQ6o.mjs.map