@inkeep/open-knowledge 0.89.10-beta.1 → 0.89.10-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/dist/{cli-C03YMRUU.mjs → cli-BnM1FTDH.mjs} +39 -39
  2. package/dist/cli.mjs +1 -1
  3. package/dist/constants-naktyCmW.mjs +1 -0
  4. package/dist/{dist-B-QQMMgD.mjs → dist-B8fZrH3f.mjs} +521 -521
  5. package/dist/dist-SdORgRtG.mjs +1 -0
  6. package/dist/index.mjs +12 -12
  7. package/dist/{init-BvIbEDs4.mjs → init-DJpguwtL.mjs} +14 -14
  8. package/dist/init-Dczju_5i.mjs +1 -0
  9. package/dist/{launch-json-removal-CiHdhK1s.mjs → launch-json-removal-CIZKpvKa.mjs} +1 -1
  10. package/dist/{loader-7-Yt62LP.mjs → loader-Bmw0zjIb.mjs} +1 -1
  11. package/dist/loader-Cdc5oVnE.mjs +1 -0
  12. package/dist/{open-browser-Dst9YzFG.mjs → open-browser-shNCq6Jg.mjs} +1 -1
  13. package/dist/preview-BUx9kg8i.mjs +1 -0
  14. package/dist/{preview-5yFLE8l9.mjs → preview-Blybr0dr.mjs} +1 -1
  15. package/dist/public/assets/{AboutSection-Wga6ljal.js → AboutSection-PYOotN54.js} +1 -1
  16. package/dist/public/assets/{AccountSection-GhpA_vE7.js → AccountSection-BRDw6CDt.js} +1 -1
  17. package/dist/public/assets/{ActivityModeContent-CiqMEKKl.js → ActivityModeContent-CKsbEQva.js} +1 -1
  18. package/dist/public/assets/{ActivityPanelDiffView-Btj__TNB.js → ActivityPanelDiffView-Drnt3eYg.js} +1 -1
  19. package/dist/public/assets/{AddPropertiesButton-2HTeEJ0n.js → AddPropertiesButton-DZRrywnM.js} +2 -2
  20. package/dist/public/assets/{AgentConnectionsSection-DL5G9vDr.js → AgentConnectionsSection-CHHCm3U2.js} +1 -1
  21. package/dist/public/assets/{AgentDiffPane-CJKHGDSw.js → AgentDiffPane-Bye03tzm.js} +2 -2
  22. package/dist/public/assets/{AttachmentsSection-D9gkolej.js → AttachmentsSection-CaDpV2y1.js} +1 -1
  23. package/dist/public/assets/{AuthModal-BqAFZ5VD.js → AuthModal-DK7kzx8-.js} +1 -1
  24. package/dist/public/assets/{CodeMirrorEditor-UCMRAMCV-BjEQv2x_.js → CodeMirrorEditor-UCMRAMCV-JkGHBVVc.js} +1 -1
  25. package/dist/public/assets/{CodeMirrorPropInput-DBHubbES.js → CodeMirrorPropInput-Cmp5Nj4G.js} +75 -75
  26. package/dist/public/assets/{ConsentDialogBody-B20jtW8L.js → ConsentDialogBody-CvSKtIAi.js} +1 -1
  27. package/dist/public/assets/{ContentRulesSection-r73qZOuv.js → ContentRulesSection-XkfMUBZh.js} +1 -1
  28. package/dist/public/assets/{DiffViewBoundary-BCb7uBFd.js → DiffViewBoundary-Bpy3dZ0r.js} +1 -1
  29. package/dist/public/assets/DocumentContext-Wb9BCFqj.js +110 -0
  30. package/dist/public/assets/{EditorModeToggle-gXRKkWXq.js → EditorModeToggle-DR-niAdL.js} +1 -1
  31. package/dist/public/assets/{ExcalidrawDocEditor-Db9ulKie.js → ExcalidrawDocEditor-DJY9eTS-.js} +1 -1
  32. package/dist/public/assets/FeedbackForm-DeDUOHCF.js +1 -0
  33. package/dist/public/assets/{GraphPanel-epDsGADf.js → GraphPanel-an3G7Esa.js} +1 -1
  34. package/dist/public/assets/{HotkeysSection-DrZRSXKK.js → HotkeysSection-o4i2U9Lo.js} +1 -1
  35. package/dist/public/assets/{ImportSkillDialog-C8AmQHA7.js → ImportSkillDialog-CR2KplKg.js} +1 -1
  36. package/dist/public/assets/{InstallInClaudeDesktopDialog-C_RQYp3V.js → InstallInClaudeDesktopDialog-D4VEpFPf.js} +1 -1
  37. package/dist/public/assets/{IntegrationsSection-gn7Gi9_7.js → IntegrationsSection-DCIbejNW.js} +1 -1
  38. package/dist/public/assets/{LinkPreviewsSection-B13jMLRF.js → LinkPreviewsSection-lEWtD5nf.js} +1 -1
  39. package/dist/public/assets/{LintConfigEditor-BCzH0dq8.js → LintConfigEditor-Cn47RFTz.js} +1 -1
  40. package/dist/public/assets/{LintingSection-CTa17foR.js → LintingSection-72S0YZjO.js} +1 -1
  41. package/dist/public/assets/ManagedArtifactProperties-BRgU2Iry.js +1 -0
  42. package/dist/public/assets/{ManagedArtifactProperties-CTxkYZP6.js → ManagedArtifactProperties-Gc49zvuT.js} +1 -1
  43. package/dist/public/assets/{Mermaid-DBaeo_-B.js → Mermaid-BiYl2hf6.js} +1 -1
  44. package/dist/public/assets/{MermaidDocEditor-BzxgQ4MO.js → MermaidDocEditor-DbtN9U8A.js} +1 -1
  45. package/dist/public/assets/{MultiFileDiff-BsuBGl7q.js → MultiFileDiff-B2a-fkjz.js} +1 -1
  46. package/dist/public/assets/{NetworkAccessSection-Dl6Qv49M.js → NetworkAccessSection-DLKSkggc.js} +1 -1
  47. package/dist/public/assets/{OkignoreSection-BfbduXqI.js → OkignoreSection-BsF3GbXc.js} +1 -1
  48. package/dist/public/assets/{PageListContext-DpKyZSYI.js → PageListContext-DG07q00l.js} +1 -1
  49. package/dist/public/assets/{ProjectTemplatesSection-D7kiwJKw.js → ProjectTemplatesSection-B6gvHBKM.js} +1 -1
  50. package/dist/public/assets/{PropertyDisplayRow-BtTHsGAK.js → PropertyDisplayRow-DZZE9YrT.js} +1 -1
  51. package/dist/public/assets/{PublishToGitHubDialog-Bb4ijH4p.js → PublishToGitHubDialog-CSba5_xA.js} +1 -1
  52. package/dist/public/assets/{SchemaConfigEditor-DXmO0CbK.js → SchemaConfigEditor-Bf9lTi_e.js} +1 -1
  53. package/dist/public/assets/{SearchSection-DXG3LSbk.js → SearchSection-CXVxOouf.js} +1 -1
  54. package/dist/public/assets/{SessionsHost-BDttGwT4.js → SessionsHost-BZm5V5lI.js} +2 -2
  55. package/dist/public/assets/{SettingsDialogBody-BAqJ12wn.js → SettingsDialogBody-sklRpbsm.js} +2 -2
  56. package/dist/public/assets/{SettingsSectionHeader-DoDCqZE9.js → SettingsSectionHeader-EhpZ2oo5.js} +1 -1
  57. package/dist/public/assets/{ShareReceiveMissDialog-D5NDn5r5.js → ShareReceiveMissDialog-BIFE0grG.js} +1 -1
  58. package/dist/public/assets/{SharingSection-CmvBaP1e.js → SharingSection-DDRWca95.js} +1 -1
  59. package/dist/public/assets/{SkillForkDialog-3Q4qiLGp.js → SkillForkDialog-rG4DERkO.js} +1 -1
  60. package/dist/public/assets/{SkillInstallMenu-CgZ6TUtX.js → SkillInstallMenu-BNaUPGis.js} +1 -1
  61. package/dist/public/assets/{SkillOriginInline-XucbICfa.js → SkillOriginInline-ezRE9UzK.js} +2 -2
  62. package/dist/public/assets/{SkillPluginBundleDialog-9gvF1DrZ.js → SkillPluginBundleDialog-CQB8MF78.js} +1 -1
  63. package/dist/public/assets/{SkillToolbarControls-CmaCgQYO.js → SkillToolbarControls-B_fHbGu4.js} +1 -1
  64. package/dist/public/assets/{SkillUpdateConflictDialog-BRuajj8h.js → SkillUpdateConflictDialog-CtyW6wPA.js} +1 -1
  65. package/dist/public/assets/{SkillsManagerSection-BKfHEWsE.js → SkillsManagerSection-DBEG1i7w.js} +1 -1
  66. package/dist/public/assets/{SlidesPluginSection-BpeI6naA.js → SlidesPluginSection-DqdmgP6_.js} +1 -1
  67. package/dist/public/assets/{SourceEditor-CJ8-JXTZ.js → SourceEditor-Vu66CETo.js} +1 -1
  68. package/dist/public/assets/{SyncSection-C6IXtWzM.js → SyncSection-Coa6lFiE.js} +1 -1
  69. package/dist/public/assets/{SyncStatusBadge-C6xvIMos.js → SyncStatusBadge-BW0YVl2z.js} +1 -1
  70. package/dist/public/assets/{TerminalPanel-CZqgzugj.js → TerminalPanel-CYqHKI2E.js} +3 -3
  71. package/dist/public/assets/{TerminalSection-XUg9zrYh.js → TerminalSection-DaO8owbQ.js} +1 -1
  72. package/dist/public/assets/{TerminalWindowApp-DjaOaIzB.js → TerminalWindowApp-BkoTZoiV.js} +1 -1
  73. package/dist/public/assets/{TextDocEditor-pSMZm_5Q.js → TextDocEditor-C1S2Awhi.js} +1 -1
  74. package/dist/public/assets/{ThemePluginSection-CwqUh1BX.js → ThemePluginSection-CCAFe0bO.js} +1 -1
  75. package/dist/public/assets/{ThreadView-myKHFoPr.js → ThreadView-BXAVZ8nY.js} +4 -4
  76. package/dist/public/assets/{TimelineDiffPane-B1OKpBFc.js → TimelineDiffPane-VOZs0FvZ.js} +2 -2
  77. package/dist/public/assets/{chunk-BO2N2NFS-Dl8M8LuR.js → chunk-BO2N2NFS-BEuwRDxJ.js} +4 -4
  78. package/dist/public/assets/{client-version-CpekaFGz.js → client-version-bdpMlJIw.js} +1 -1
  79. package/dist/public/assets/cm-theme-Cfku0s0U.js +3 -0
  80. package/dist/public/assets/{code-highlighter-impl-DAaUGe7G.js → code-highlighter-impl-B8pGTITV.js} +1 -1
  81. package/dist/public/assets/{comment-chips-BDzvjQ4K.js → comment-chips-B_y1sjFe.js} +1 -1
  82. package/dist/public/assets/{config-provider-Df28Kak3.js → config-provider-CIXp9Q30.js} +1 -1
  83. package/dist/public/assets/{dist-CUgGmlsn.js → dist-BLBhO77H.js} +1 -1
  84. package/dist/public/assets/{dist-DQuOA3vR.js → dist-Bz0NdQrJ.js} +1 -1
  85. package/dist/public/assets/{dist-CitzgyZk.js → dist-C8wn7WIc.js} +1 -1
  86. package/dist/public/assets/{dist-XOMICCBT.js → dist-Cqrno4UK.js} +1 -1
  87. package/dist/public/assets/{dist-R7QC_kjf.js → dist-D4SA-mVq.js} +1 -1
  88. package/dist/public/assets/{dist-CDI_AHNY2.js → dist-DkkpJ2aw.js} +1 -1
  89. package/dist/public/assets/{dist-DlTJY48Q.js → dist-dtIrts84.js} +1 -1
  90. package/dist/public/assets/{dist-LtbcyjB7.js → dist-wKKrgsd0.js} +1 -1
  91. package/dist/public/assets/{dist-oYievw6e.js → dist-yM-JiFXV2.js} +1 -1
  92. package/dist/public/assets/{doc-undo-manager-BCMSQDX5.js → doc-undo-manager-CmjnLvcY.js} +1 -1
  93. package/dist/public/assets/{engine-compile-BKhUOp9O.js → engine-compile-DCXqaKj1.js} +1 -1
  94. package/dist/public/assets/external-link-CV9ONfls.js +1 -0
  95. package/dist/public/assets/{highlighted-body-OFNGDK62-DsFROhgi.js → highlighted-body-OFNGDK62-BQg91IZ5.js} +1 -1
  96. package/dist/public/assets/{ime-composition-4cqEjrpI.js → ime-composition-B8fpGInz.js} +1 -1
  97. package/dist/public/assets/{index-DRgcv88i.js → index-BusCRx2S.js} +8 -8
  98. package/dist/public/assets/{lib-CNBaznYe.js → lib-BFwLNStM.js} +1 -1
  99. package/dist/public/assets/{lint-plugins-dBnVRuSg.js → lint-plugins-CD7RVi0l.js} +1 -1
  100. package/dist/public/assets/{markdownlint-rule-browser-Ccvw_f-J.js → markdownlint-rule-browser-BH2pUfXz.js} +1 -1
  101. package/dist/public/assets/mermaid-GHXKKRXX-CTQTYtGv.js +1 -0
  102. package/dist/public/assets/{pending-receive-nav-store-CdyRiJN-.js → pending-receive-nav-store-4BSbHH4p.js} +1 -1
  103. package/dist/public/assets/{pierre-theme-Og_zQBPD.js → pierre-theme-bTg6dZWN.js} +1 -1
  104. package/dist/public/assets/{preferred-session-events-DBfdnf0j.js → preferred-session-events-ohIKavc3.js} +1 -1
  105. package/dist/public/assets/{prod-CxmLlnTC.js → prod-BYmgqcPA.js} +2 -2
  106. package/dist/public/assets/{progress-9gaUiKfZ.js → progress-lvv6PjMw.js} +1 -1
  107. package/dist/public/assets/{project-paths-DjS_hY_q.js → project-paths-BVP8z0Qv.js} +1 -1
  108. package/dist/public/assets/{schema-section-DDYszxnQ.js → schema-section-7rwc4iOl.js} +1 -1
  109. package/dist/public/assets/{selection-context-DUSCI80-.js → selection-context-Ckxz0S9i.js} +1 -1
  110. package/dist/public/assets/{src-BbEXTHkl.js → src-CRiK-e1l.js} +1 -1
  111. package/dist/public/assets/{tag-pill-input-C6vxVbIh.js → tag-pill-input-CAQxdwNs.js} +1 -1
  112. package/dist/public/assets/{telemetry-impl-z0X9sR1X.js → telemetry-impl-D8FtB48W.js} +1 -1
  113. package/dist/public/assets/{telemetry-startup-B1BH1LrL.js → telemetry-startup-ROFmei1a.js} +1 -1
  114. package/dist/public/assets/{text-viewer-languages-5aC_46ro.js → text-viewer-languages-B5vCLX2f.js} +2 -2
  115. package/dist/public/assets/{typing-burst-detector-CzFzN6q0.js → typing-burst-detector-DPuYxxMx.js} +1 -1
  116. package/dist/public/assets/{use-activity-panel-B3D1e4pV.js → use-activity-panel-Dyahk3Lt.js} +1 -1
  117. package/dist/public/assets/{use-open-skill-DoMflE0-.js → use-open-skill-BhvW1NOZ.js} +1 -1
  118. package/dist/public/assets/{use-skill-origin-NWSdADZr.js → use-skill-origin-BsQ6pqNb.js} +1 -1
  119. package/dist/public/assets/{use-skill-targets-UEhNy--n.js → use-skill-targets-DdhJK0_S.js} +1 -1
  120. package/dist/public/assets/{use-terminal-enabled-DF6JNU1j.js → use-terminal-enabled-DDfs8VwB.js} +1 -1
  121. package/dist/public/assets/{use-timeline-entry-diff-DzUebDea.js → use-timeline-entry-diff-BMLS3VzF.js} +1 -1
  122. package/dist/public/index.html +50 -50
  123. package/dist/{registry-probes-BYcJ_XTR.mjs → registry-probes-D2Fcqx88.mjs} +7 -7
  124. package/dist/{removal-file-path-DDK0L6F5.mjs → removal-file-path-Dteeix7c.mjs} +1 -1
  125. package/dist/{repair-launch-json-Bw89DSMn.mjs → repair-launch-json-CsiQ-Oie.mjs} +1 -1
  126. package/dist/{repair-mcp-configs-CI3XggBz.mjs → repair-mcp-configs-BsZ99LDP.mjs} +1 -1
  127. package/dist/src-22rYneLM.mjs +1 -0
  128. package/dist/src-CW3RhKEZ.mjs +16 -0
  129. package/dist/start-C1ERNfPu.mjs +5 -0
  130. package/dist/start-D90bHzUZ.mjs +1 -0
  131. package/package.json +4 -4
  132. package/dist/constants-DNfL8lwk.mjs +0 -1
  133. package/dist/dist-D8yGS418.mjs +0 -1
  134. package/dist/init-D4v4GLkU.mjs +0 -1
  135. package/dist/loader-kjUsg68e.mjs +0 -1
  136. package/dist/preview-CKtA1q7r.mjs +0 -1
  137. package/dist/public/assets/DocumentContext-x8kJBlfU.js +0 -110
  138. package/dist/public/assets/FeedbackForm-DVShKkg2.js +0 -1
  139. package/dist/public/assets/ManagedArtifactProperties-CB9-uy7m.js +0 -1
  140. package/dist/public/assets/cm-theme-DHJ4FCK8.js +0 -3
  141. package/dist/public/assets/external-link-C6hldklD.js +0 -1
  142. package/dist/public/assets/mermaid-GHXKKRXX-CTq-e8f7.js +0 -1
  143. package/dist/src-08vaMIJd.mjs +0 -1
  144. package/dist/src-DQJ0Rzwf.mjs +0 -16
  145. package/dist/start-DrSKWujU.mjs +0 -5
  146. package/dist/start-Gt6j5VXl.mjs +0 -1
  147. /package/dist/public/assets/{desktop-bridge-Btg3qpKV.js → desktop-bridge-bSzKDe_w.js} +0 -0
  148. /package/dist/public/assets/{dist-qfZ4Zkay.js → dist-BFBWje6D.js} +0 -0
  149. /package/dist/public/assets/{dist-B3l4eYse.js → dist-DJ9i_e8X.js} +0 -0
  150. /package/dist/public/assets/{dist-McVxqaQr.js → dist-yBmUFswj.js} +0 -0
  151. /package/dist/public/assets/{documents-fetch-aXwpCEvh.js → documents-fetch-BNA2S_EX.js} +0 -0
  152. /package/dist/public/assets/{lib-AgCVC0Wn.js → lib-C_jEl4A5.js} +0 -0
  153. /package/dist/public/assets/{page-list-cache-tOaID4O4.js → page-list-cache-BJpuIApf.js} +0 -0
  154. /package/dist/public/assets/{skills-api-MxDmjydw.js → skills-api-CcgOY0Iy.js} +0 -0
  155. /package/dist/public/assets/{startup-marks-iW0WPaQZ.js → startup-marks-D6zprGWE.js} +0 -0
  156. /package/dist/public/assets/{stex-BzLRGzOW.js → stex-7eUHyf61.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{t as e}from"./ccount-Bpl7p-di.js";import{t}from"./lib-BdDWWJXX.js";import{a as n,i as r,n as i,o as a,s as o,u as s}from"./space-separated-tokens-Db5y9Cue.js";import{n as c,t as l}from"./lib-AgCVC0Wn.js";var u=/^>|^->|<!--|-->|--!>|<!-$/g,d=[`>`],f=[`<`,`>`];function p(e,n,r,i){return i.settings.bogusComments?`<?`+t(e.value,Object.assign({},i.settings.characterReferences,{subset:d}))+`>`:`<!--`+e.value.replace(u,a)+`-->`;function a(e){return t(e,Object.assign({},i.settings.characterReferences,{subset:f}))}}function m(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}var h=v(1),g=v(-1),_=[];function v(e){return t;function t(t,n,r){let i=t?t.children:_,a=(n||0)+e,o=i[a];if(!r)for(;o&&l(o);)a+=e,o=i[a];return o}}var y={}.hasOwnProperty;function b(e){return t;function t(t,n,r){return y.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var x=b({body:w,caption:S,colgroup:S,dd:O,dt:D,head:S,html:C,li:E,optgroup:A,option:j,p:T,rp:k,rt:k,tbody:N,td:I,tfoot:P,th:I,thead:M,tr:F});function S(e,t,n){let r=h(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&l(r.value.charAt(0)))}function C(e,t,n){let r=h(n,t);return!r||r.type!==`comment`}function w(e,t,n){let r=h(n,t);return!r||r.type!==`comment`}function T(e,t,n){let r=h(n,t);return r?r.type===`element`&&(r.tagName===`address`||r.tagName===`article`||r.tagName===`aside`||r.tagName===`blockquote`||r.tagName===`details`||r.tagName===`div`||r.tagName===`dl`||r.tagName===`fieldset`||r.tagName===`figcaption`||r.tagName===`figure`||r.tagName===`footer`||r.tagName===`form`||r.tagName===`h1`||r.tagName===`h2`||r.tagName===`h3`||r.tagName===`h4`||r.tagName===`h5`||r.tagName===`h6`||r.tagName===`header`||r.tagName===`hgroup`||r.tagName===`hr`||r.tagName===`main`||r.tagName===`menu`||r.tagName===`nav`||r.tagName===`ol`||r.tagName===`p`||r.tagName===`pre`||r.tagName===`section`||r.tagName===`table`||r.tagName===`ul`):!n||!(n.type===`element`&&(n.tagName===`a`||n.tagName===`audio`||n.tagName===`del`||n.tagName===`ins`||n.tagName===`map`||n.tagName===`noscript`||n.tagName===`video`))}function E(e,t,n){let r=h(n,t);return!r||r.type===`element`&&r.tagName===`li`}function D(e,t,n){let r=h(n,t);return!!(r&&r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`))}function O(e,t,n){let r=h(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function k(e,t,n){let r=h(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function A(e,t,n){let r=h(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function j(e,t,n){let r=h(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function M(e,t,n){let r=h(n,t);return!!(r&&r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`))}function N(e,t,n){let r=h(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function P(e,t,n){return!h(n,t)}function F(e,t,n){let r=h(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function I(e,t,n){let r=h(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var L=b({body:B,colgroup:ee,head:z,html:R,tbody:V});function R(e){let t=h(e,-1);return!t||t.type!==`comment`}function z(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function B(e){let t=h(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&l(t.value.charAt(0)))&&!(t.type===`element`&&(t.tagName===`meta`||t.tagName===`link`||t.tagName===`script`||t.tagName===`style`||t.tagName===`template`))}function ee(e,t,n){let r=g(n,t),i=h(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&x(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function V(e,t,n){let r=g(n,t),i=h(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&x(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var H={name:[[`
1
+ import{t as e}from"./ccount-Bpl7p-di.js";import{t}from"./lib-BdDWWJXX.js";import{a as n,i as r,n as i,o as a,s as o,u as s}from"./space-separated-tokens-Db5y9Cue.js";import{n as c,t as l}from"./lib-C_jEl4A5.js";var u=/^>|^->|<!--|-->|--!>|<!-$/g,d=[`>`],f=[`<`,`>`];function p(e,n,r,i){return i.settings.bogusComments?`<?`+t(e.value,Object.assign({},i.settings.characterReferences,{subset:d}))+`>`:`<!--`+e.value.replace(u,a)+`-->`;function a(e){return t(e,Object.assign({},i.settings.characterReferences,{subset:f}))}}function m(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}var h=v(1),g=v(-1),_=[];function v(e){return t;function t(t,n,r){let i=t?t.children:_,a=(n||0)+e,o=i[a];if(!r)for(;o&&l(o);)a+=e,o=i[a];return o}}var y={}.hasOwnProperty;function b(e){return t;function t(t,n,r){return y.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var x=b({body:w,caption:S,colgroup:S,dd:O,dt:D,head:S,html:C,li:E,optgroup:A,option:j,p:T,rp:k,rt:k,tbody:N,td:I,tfoot:P,th:I,thead:M,tr:F});function S(e,t,n){let r=h(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&l(r.value.charAt(0)))}function C(e,t,n){let r=h(n,t);return!r||r.type!==`comment`}function w(e,t,n){let r=h(n,t);return!r||r.type!==`comment`}function T(e,t,n){let r=h(n,t);return r?r.type===`element`&&(r.tagName===`address`||r.tagName===`article`||r.tagName===`aside`||r.tagName===`blockquote`||r.tagName===`details`||r.tagName===`div`||r.tagName===`dl`||r.tagName===`fieldset`||r.tagName===`figcaption`||r.tagName===`figure`||r.tagName===`footer`||r.tagName===`form`||r.tagName===`h1`||r.tagName===`h2`||r.tagName===`h3`||r.tagName===`h4`||r.tagName===`h5`||r.tagName===`h6`||r.tagName===`header`||r.tagName===`hgroup`||r.tagName===`hr`||r.tagName===`main`||r.tagName===`menu`||r.tagName===`nav`||r.tagName===`ol`||r.tagName===`p`||r.tagName===`pre`||r.tagName===`section`||r.tagName===`table`||r.tagName===`ul`):!n||!(n.type===`element`&&(n.tagName===`a`||n.tagName===`audio`||n.tagName===`del`||n.tagName===`ins`||n.tagName===`map`||n.tagName===`noscript`||n.tagName===`video`))}function E(e,t,n){let r=h(n,t);return!r||r.type===`element`&&r.tagName===`li`}function D(e,t,n){let r=h(n,t);return!!(r&&r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`))}function O(e,t,n){let r=h(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function k(e,t,n){let r=h(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function A(e,t,n){let r=h(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function j(e,t,n){let r=h(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function M(e,t,n){let r=h(n,t);return!!(r&&r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`))}function N(e,t,n){let r=h(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function P(e,t,n){return!h(n,t)}function F(e,t,n){let r=h(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function I(e,t,n){let r=h(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var L=b({body:B,colgroup:ee,head:z,html:R,tbody:V});function R(e){let t=h(e,-1);return!t||t.type!==`comment`}function z(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function B(e){let t=h(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&l(t.value.charAt(0)))&&!(t.type===`element`&&(t.tagName===`meta`||t.tagName===`link`||t.tagName===`script`||t.tagName===`style`||t.tagName===`template`))}function ee(e,t,n){let r=g(n,t),i=h(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&x(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function V(e,t,n){let r=g(n,t),i=h(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&x(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var H={name:[[`
2
2
  \f\r &/=>`.split(``),`
3
3
  \f\r "&'/=>\``.split(``)],[`\0
4
4
  \f\r "&'/<=>`.split(``),`\0
@@ -1 +1 @@
1
- import{t as e}from"./lint-plugin-meta-6QZWEsvL.js";import{FrontmatterPluginSection as t,MarkdownlintPluginSection as n,OkfPluginSection as r}from"./LintingSection-CTa17foR.js";var i={markdownlint:n,frontmatter:t,okf:r},a=e.map(e=>({...e,Section:i[e.id]}));export{a as LINT_PLUGIN_UI};
1
+ import{t as e}from"./lint-plugin-meta-6QZWEsvL.js";import{FrontmatterPluginSection as t,MarkdownlintPluginSection as n,OkfPluginSection as r}from"./LintingSection-72S0YZjO.js";var i={markdownlint:n,frontmatter:t,okf:r},a=e.map(e=>({...e,Section:i[e.id]}));export{a as LINT_PLUGIN_UI};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{i as o,n as s,t as c}from"./tooltip-BjuCvy5N.js";import{n as l,r as u,t as d}from"./collapsible-BKbszYZV.js";import{t as f}from"./checkbox-CYP7ZXBH.js";import{t as p}from"./label-CvMpFFbN.js";import{i as m,n as h,o as g,s as _,t as v}from"./select-BELkoEB6.js";import{t as y}from"./switch-BKZTXkzu.js";import{t as ee}from"./button-DzgjsZzC.js";import{n as b}from"./dist-Bs8bPT30.js";import{t as x}from"./arrow-up-right-BuM5_PNk.js";import{t as te}from"./chevron-right-B3hLba9m.js";import{t as S}from"./info-CTtlruwn.js";import{t as ne}from"./rotate-ccw-LkVEzPHf.js";import{t as C}from"./badge-DcyFOLs8.js";import{r as w}from"./field-DtEiTjHS.js";import{t as T}from"./input-DUSj2Bri.js";import{t as E}from"./external-link-C6hldklD.js";import{t as D}from"./skeleton-BBQ4J9l6.js";import{_ as O,g as k,l as A,o as j}from"./markdown-lint-Co4IJlAV.js";import{d as M,p as N,r as re}from"./lint-config-client-CPGcGpvG.js";import{t as P}from"./tag-pill-input-C6vxVbIh.js";var F=a(),I=e(n(),1),L=t(),R={};function ie(e){let t=(0,F.c)(5),n=R[e.ruleId];if(n!==void 0){let r;return t[0]!==n||t[1]!==e?(r=(0,L.jsx)(n,{...e}),t[0]=n,t[1]=e,t[2]=r):r=t[2],r}let r;return t[3]===e?r=t[4]:(r=(0,L.jsx)(z,{...e}),t[3]=e,t[4]=r),r}function z(e){let t=(0,F.c)(65),{ruleId:n,spec:i,value:a,disabled:o,onChange:s}=e,c=`rule-option-${n}-${i.key}`,l=`${c}-description`,u;t[0]!==c||t[1]!==i.key||t[2]!==i.type?(u=i.type===`unsupported`?(0,L.jsx)(`span`,{className:`font-mono text-sm font-medium`,children:i.key}):(0,L.jsx)(p,{htmlFor:c,className:`font-mono text-sm font-medium`,children:i.key}),t[0]=c,t[1]=i.key,t[2]=i.type,t[3]=u):u=t[3];let d;t[4]===i.default?d=t[5]:(d=i.default===void 0?null:(0,L.jsxs)(L.Fragment,{children:[` · `,(0,L.jsx)(r,{id:`KtACeE`,values:{0:H(i.default)},components:{0:(0,L.jsx)(`code`,{className:`font-mono`})}})]}),t[4]=i.default,t[5]=d);let f;t[6]!==l||t[7]!==i.description||t[8]!==d?(f=(0,L.jsxs)(w,{id:l,children:[i.description,d]}),t[6]=l,t[7]=i.description,t[8]=d,t[9]=f):f=t[9];let m;t[10]!==u||t[11]!==f?(m=(0,L.jsxs)(`div`,{className:`min-w-0 space-y-0.5`,children:[u,f]}),t[10]=u,t[11]=f,t[12]=m):m=t[12];let h=m,g=o===!0,_;t[13]!==c||t[14]!==l||t[15]!==s||t[16]!==g?(_={controlId:c,descriptionId:l,disabled:g,onChange:s},t[13]=c,t[14]=l,t[15]=s,t[16]=g,t[17]=_):_=t[17];let v=_;switch(i.type){case`boolean`:{let e;t[18]!==v||t[19]!==i||t[20]!==a?(e=(0,L.jsx)(U,{...v,spec:i,value:a}),t[18]=v,t[19]=i,t[20]=a,t[21]=e):e=t[21];let n;return t[22]!==c||t[23]!==h||t[24]!==e?(n=(0,L.jsx)(B,{testId:c,header:h,children:e}),t[22]=c,t[23]=h,t[24]=e,t[25]=n):n=t[25],n}case`enum`:{let e;t[26]!==v||t[27]!==i||t[28]!==a?(e=(0,L.jsx)(W,{...v,spec:i,value:a}),t[26]=v,t[27]=i,t[28]=a,t[29]=e):e=t[29];let n;return t[30]!==c||t[31]!==h||t[32]!==e?(n=(0,L.jsx)(B,{testId:c,header:h,children:e}),t[30]=c,t[31]=h,t[32]=e,t[33]=n):n=t[33],n}case`integer`:{let e;t[34]!==v||t[35]!==i||t[36]!==a?(e=(0,L.jsx)(G,{...v,spec:i,value:a}),t[34]=v,t[35]=i,t[36]=a,t[37]=e):e=t[37];let n;return t[38]!==c||t[39]!==h||t[40]!==e?(n=(0,L.jsx)(B,{testId:c,header:h,children:e}),t[38]=c,t[39]=h,t[40]=e,t[41]=n):n=t[41],n}case`string`:{let e;t[42]!==v||t[43]!==i||t[44]!==a?(e=(0,L.jsx)(K,{...v,spec:i,value:a}),t[42]=v,t[43]=i,t[44]=a,t[45]=e):e=t[45];let n;return t[46]!==c||t[47]!==h||t[48]!==e?(n=(0,L.jsx)(V,{testId:c,header:h,children:e}),t[46]=c,t[47]=h,t[48]=e,t[49]=n):n=t[49],n}case`string-array`:{let e;t[50]!==v||t[51]!==i||t[52]!==a?(e=(0,L.jsx)(q,{...v,spec:i,value:a}),t[50]=v,t[51]=i,t[52]=a,t[53]=e):e=t[53];let n;return t[54]!==c||t[55]!==h||t[56]!==e?(n=(0,L.jsx)(V,{testId:c,header:h,children:e}),t[54]=c,t[55]=h,t[56]=e,t[57]=n):n=t[57],n}case`unsupported`:{let e=`${c}-unsupported`,n;t[58]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,L.jsx)(r,{id:`NQXwDy`}),t[58]=n):n=t[58];let i;t[59]===e?i=t[60]:(i=(0,L.jsx)(C,{variant:`gray`,"data-testid":e,children:n}),t[59]=e,t[60]=i);let a;return t[61]!==c||t[62]!==h||t[63]!==i?(a=(0,L.jsx)(B,{testId:c,header:h,children:i}),t[61]=c,t[62]=h,t[63]=i,t[64]=a):a=t[64],a}default:return i}}function B(e){let t=(0,F.c)(6),{testId:n,header:r,children:i}=e,a;t[0]===i?a=t[1]:(a=(0,L.jsx)(`div`,{className:`shrink-0`,children:i}),t[0]=i,t[1]=a);let o;return t[2]!==r||t[3]!==a||t[4]!==n?(o=(0,L.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,"data-testid":n,children:[r,a]}),t[2]=r,t[3]=a,t[4]=n,t[5]=o):o=t[5],o}function V(e){let t=(0,F.c)(4),{testId:n,header:r,children:i}=e,a;return t[0]!==i||t[1]!==r||t[2]!==n?(a=(0,L.jsxs)(`div`,{className:`space-y-1.5`,"data-testid":n,children:[r,i]}),t[0]=i,t[1]=r,t[2]=n,t[3]=a):a=t[3],a}function H(e){return JSON.stringify(e)}function U(e){let t=(0,F.c)(8),{spec:n,value:r,controlId:i,descriptionId:a,disabled:o,onChange:s}=e,c=typeof r==`boolean`?r:n.default??!1,l;t[0]===s?l=t[1]:(l=e=>s(e),t[0]=s,t[1]=l);let u;return t[2]!==c||t[3]!==i||t[4]!==a||t[5]!==o||t[6]!==l?(u=(0,L.jsx)(y,{id:i,checked:c,disabled:o,"aria-describedby":a,onCheckedChange:l}),t[2]=c,t[3]=i,t[4]=a,t[5]=o,t[6]=l,t[7]=u):u=t[7],u}function W(e){let t=(0,F.c)(16),{spec:n,value:r,controlId:i,descriptionId:a,disabled:o,onChange:s}=e,c=typeof r==`string`?r:n.default??``,l;t[0]===s?l=t[1]:(l=e=>s(e),t[0]=s,t[1]=l);let u;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,L.jsx)(_,{}),t[2]=u):u=t[2];let d;t[3]!==i||t[4]!==a?(d=(0,L.jsx)(g,{id:i,"aria-describedby":a,className:`w-48`,children:u}),t[3]=i,t[4]=a,t[5]=d):d=t[5];let f;t[6]===n.enum?f=t[7]:(f=n.enum.map(ae),t[6]=n.enum,t[7]=f);let p;t[8]===f?p=t[9]:(p=(0,L.jsx)(h,{children:f}),t[8]=f,t[9]=p);let m;return t[10]!==c||t[11]!==o||t[12]!==l||t[13]!==d||t[14]!==p?(m=(0,L.jsxs)(v,{value:c,onValueChange:l,disabled:o,children:[d,p]}),t[10]=c,t[11]=o,t[12]=l,t[13]=d,t[14]=p,t[15]=m):m=t[15],m}function ae(e){return(0,L.jsx)(m,{value:e,children:e},e)}function G(e){let t=(0,F.c)(22),{spec:n,value:r,controlId:i,descriptionId:a,disabled:o,onChange:s}=e,c=typeof r==`number`?r:n.default,l=c===void 0?``:String(c),[u,d]=(0,I.useState)(l),f=(0,I.useRef)(c),p,m;t[0]===c?(p=t[1],m=t[2]):(p=()=>{f.current!==c&&(d(c===void 0?``:String(c)),f.current=c)},m=[c],t[0]=c,t[1]=p,t[2]=m),(0,I.useEffect)(p,m);let h;t[3]!==c||t[4]!==l||t[5]!==s||t[6]!==u||t[7]!==n.maximum||t[8]!==n.minimum?(h=()=>{if(u.trim()===``){d(l);return}let e=Number(u);if(!Number.isFinite(e)){d(l);return}let t=Math.round(e);n.minimum!==void 0&&t<n.minimum&&(t=n.minimum),n.maximum!==void 0&&t>n.maximum&&(t=n.maximum),d(String(t)),t!==c&&s(t)},t[3]=c,t[4]=l,t[5]=s,t[6]=u,t[7]=n.maximum,t[8]=n.minimum,t[9]=h):h=t[9];let g=h,_;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(_=e=>d(e.target.value),t[10]=_):_=t[10];let v;t[11]===g?v=t[12]:(v=e=>{e.key===`Enter`&&(e.preventDefault(),g())},t[11]=g,t[12]=v);let y;return t[13]!==g||t[14]!==i||t[15]!==a||t[16]!==o||t[17]!==u||t[18]!==n.maximum||t[19]!==n.minimum||t[20]!==v?(y=(0,L.jsx)(T,{id:i,type:`number`,value:u,min:n.minimum,max:n.maximum,disabled:o,"aria-describedby":a,onChange:_,onBlur:g,onKeyDown:v,className:`h-8 w-28 text-sm tabular-nums`}),t[13]=g,t[14]=i,t[15]=a,t[16]=o,t[17]=u,t[18]=n.maximum,t[19]=n.minimum,t[20]=v,t[21]=y):y=t[21],y}function K(e){let t=(0,F.c)(17),{spec:n,value:r,controlId:i,descriptionId:a,disabled:o,onChange:s}=e,c=typeof r==`string`?r:n.default??``,[l,u]=(0,I.useState)(c),d=(0,I.useRef)(c),f,p;t[0]===c?(f=t[1],p=t[2]):(f=()=>{d.current!==c&&(u(c),d.current=c)},p=[c],t[0]=c,t[1]=f,t[2]=p),(0,I.useEffect)(f,p);let m;t[3]!==c||t[4]!==s||t[5]!==l?(m=()=>{l!==c&&s(l)},t[3]=c,t[4]=s,t[5]=l,t[6]=m):m=t[6];let h=m,g;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(g=e=>u(e.target.value),t[7]=g):g=t[7];let _;t[8]===h?_=t[9]:(_=e=>{e.key===`Enter`&&(e.preventDefault(),h())},t[8]=h,t[9]=_);let v;return t[10]!==h||t[11]!==i||t[12]!==a||t[13]!==o||t[14]!==l||t[15]!==_?(v=(0,L.jsx)(T,{id:i,value:l,disabled:o,"aria-describedby":a,onChange:g,onBlur:h,onKeyDown:_,className:`h-8 font-mono text-sm`}),t[10]=h,t[11]=i,t[12]=a,t[13]=o,t[14]=l,t[15]=_,t[16]=v):v=t[16],v}function q(e){let t=(0,F.c)(11),{spec:n,value:r,controlId:i,descriptionId:a,disabled:o,onChange:s}=e,c;t[0]!==n||t[1]!==r?(c=Array.isArray(r)?r.filter(J):[...n.default??[]],t[0]=n,t[1]=r,t[2]=c):c=t[2];let l=c,u;t[3]===s?u=t[4]:(u=e=>s(e),t[3]=s,t[4]=u);let d;return t[5]!==i||t[6]!==a||t[7]!==o||t[8]!==l||t[9]!==u?(d=(0,L.jsx)(P,{id:i,value:l,grammar:`free-text`,disabled:o,"aria-describedby":a,onChange:u}),t[5]=i,t[6]=a,t[7]=o,t[8]=l,t[9]=u,t[10]=d):d=t[10],d}function J(e){return typeof e==`string`}function oe(e){let t=(0,F.c)(53),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{hideConfigSourceNote:a,initialRuleQuery:o}=n,s=a===void 0?!1:a,{_:c}=i(),{data:m}=M(),h=m!==null,g;t[2]===m?.effective.plugins.markdownlint.rules?g=t[3]:(g=m?.effective.plugins.markdownlint.rules??{},t[2]=m?.effective.plugins.markdownlint.rules,t[3]=g);let _=g,v=m?.configFile??null,[y,ee]=(0,I.useState)(o?.query??``),[x,ne]=(0,I.useState)(!1),C=o?.nonce,w=o?.query,E,O;t[4]!==C||t[5]!==w?(E=()=>{C===void 0||w===void 0||ee(w)},O=[C,w],t[4]=C,t[5]=w,t[6]=E,t[7]=O):(E=t[6],O=t[7]),(0,I.useEffect)(E,O);let P;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(P=[],t[8]=P):P=t[8];let[R,ie]=(0,I.useState)(P),z;t[9]===c?z=t[10]:(z=function(e,t){N(e,t).then(e=>{if(!e.ok){b.error(e.errorDetail??c({id:`2G-56b`}));return}re()})},t[9]=c,t[10]=z);let B=z,V;t[11]!==x||t[12]!==y?(V=y.trim()!==``||x,t[11]=x,t[12]=y,t[13]=V):V=t[13];let H=V,U;if(t[14]!==c||t[15]!==R||t[16]!==v||t[17]!==H||t[18]!==s||t[19]!==x||t[20]!==h||t[21]!==_||t[22]!==y||t[23]!==B){let e;t[25]!==v||t[26]!==x||t[27]!==_||t[28]!==y?(e=e=>le(e,y)&&(!x||se(_,v,e.id)),t[25]=v,t[26]=x,t[27]=_,t[28]=y,t[29]=e):e=t[29];let n=j.filter(e),i=A.map(e=>({category:e,entries:n.filter(t=>k(t)===e)})).filter(Y),a;t[30]!==v||t[31]!==s||t[32]!==h?(a=!s&&(h?v?(0,L.jsx)(`p`,{className:`text-sm text-muted-foreground`,"data-testid":`markdownlint-config-source-note`,children:(0,L.jsx)(r,{id:`V2Gmie`,values:{configFile:v},components:{0:(0,L.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 font-mono text-xs`})}})}):(0,L.jsxs)(`div`,{className:`space-y-2`,children:[(0,L.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:(0,L.jsx)(r,{id:`Z6rrjc`,components:{0:(0,L.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 font-mono text-xs`})}})}),(0,L.jsxs)(`p`,{className:`flex items-start gap-1.5 rounded-md border border-dashed p-2.5 text-sm text-muted-foreground`,"data-testid":`markdownlint-no-file-disclaimer`,children:[(0,L.jsx)(S,{"aria-hidden":!0,className:`mt-0.5 size-4 shrink-0`}),(0,L.jsx)(`span`,{children:(0,L.jsx)(r,{id:`Te6sK2`,components:{0:(0,L.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 font-mono text-xs`})}})})]})]}):(0,L.jsxs)(`div`,{className:`space-y-2`,"aria-busy":`true`,"data-testid":`markdownlint-rule-browser-config-loading`,children:[(0,L.jsx)(D,{className:`h-4 w-full`}),(0,L.jsx)(D,{className:`h-4 w-2/3`})]})),t[30]=v,t[31]=s,t[32]=h,t[33]=a):a=t[33];let o;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,L.jsx)(`p`,{className:`text-sm text-muted-foreground`,"data-testid":`markdownlint-rule-browser-legend`,children:(0,L.jsx)(r,{id:`zYp8Sr`,components:{0:(0,L.jsx)(`span`,{className:`font-medium text-foreground`}),1:(0,L.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 font-mono text-xs`})}})}),t[34]=o):o=t[34];let m;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(m=e=>ee(e.target.value),t[35]=m):m=t[35];let g;t[36]===c?g=t[37]:(g=c({id:`l-4nnw`}),t[36]=c,t[37]=g);let b;t[38]===c?b=t[39]:(b=c({id:`yf5auF`}),t[38]=c,t[39]=b);let C;t[40]!==y||t[41]!==g||t[42]!==b?(C=(0,L.jsx)(T,{value:y,onChange:m,placeholder:g,"aria-label":b,className:`h-8`,"data-testid":`markdownlint-rule-search`}),t[40]=y,t[41]=g,t[42]=b,t[43]=C):C=t[43];let w;t[44]===Symbol.for(`react.memo_cache_sentinel`)?(w=e=>ne(e===!0),t[44]=w):w=t[44];let E;t[45]===x?E=t[46]:(E=(0,L.jsx)(f,{id:`markdownlint-only-modified`,checked:x,onCheckedChange:w,"data-testid":`markdownlint-only-modified`}),t[45]=x,t[46]=E);let O;t[47]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,L.jsx)(p,{htmlFor:`markdownlint-only-modified`,className:`text-sm font-normal`,children:(0,L.jsx)(r,{id:`ccNps_`})}),t[47]=O):O=t[47];let M;t[48]===E?M=t[49]:(M=(0,L.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[E,O]}),t[48]=E,t[49]=M);let N;t[50]!==C||t[51]!==M?(N=(0,L.jsxs)(`div`,{className:`flex items-center gap-4`,children:[C,M]}),t[50]=C,t[51]=M,t[52]=N):N=t[52],U=(0,L.jsxs)(`div`,{className:`space-y-3`,"data-testid":`settings-linting-markdownlint-rules`,children:[a,o,N,i.length===0?(0,L.jsx)(`p`,{className:`rounded-md border border-dashed p-3 text-sm text-muted-foreground`,"data-testid":`markdownlint-rule-browser-empty`,children:(0,L.jsx)(r,{id:`RfilGt`})}):(0,L.jsx)(`div`,{className:`space-y-2`,children:i.map(e=>{let{category:t,entries:n}=e,i=n.filter(e=>ue($(_,e.id))).length;return(0,L.jsxs)(d,{open:H||!R.includes(t),onOpenChange:e=>ie(e?R.filter(e=>e!==t):[...R,t]),children:[(0,L.jsxs)(u,{className:`group flex w-full items-center gap-2 rounded-md px-1.5 py-1.5 text-sm font-medium hover:bg-muted/50`,"data-testid":`markdownlint-rule-category-${Q(t)}`,children:[(0,L.jsx)(te,{className:`size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-90 motion-reduce:transition-none`}),(0,L.jsx)(Z,{category:t}),(0,L.jsx)(`span`,{className:`ms-auto text-xs font-normal text-muted-foreground tabular-nums`,children:(0,L.jsx)(r,{id:`NgZwB0`,values:{0:n.length,enabledCount:i}})})]}),(0,L.jsx)(l,{children:(0,L.jsx)(`div`,{className:`mt-1 divide-y rounded-md border`,children:n.map(e=>(0,L.jsx)(X,{rule:e,value:$(_,e.id),modified:se(_,v,e.id),ready:h,onWrite:t=>B(e.id,t)},e.id))})})]},t)})})]}),t[14]=c,t[15]=R,t[16]=v,t[17]=H,t[18]=s,t[19]=x,t[20]=h,t[21]=_,t[22]=y,t[23]=B,t[24]=U}else U=t[24];return U}function Y(e){return e.entries.length>0}function X(e){let t=(0,F.c)(96),{rule:n,value:a,modified:f,ready:p,onWrite:m}=e,{_:h}=i(),g;t[0]===a?g=t[1]:(g=ue(a),t[0]=a,t[1]=g);let _=g,v;t[2]===a?v=t[3]:(v=ce(a),t[2]=a,t[3]=v);let b=v,S,w,T,D,O,k,A;if(t[4]!==n.id||t[5]!==n.name||t[6]!==a){w=de(a),S=d,A=`markdownlint-rule-row-${n.id}`,O=`flex items-center justify-between gap-3 px-3 py-2`;let e=`markdownlint-rule-expand-${n.id}`,i;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,L.jsx)(te,{className:`size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-90 motion-reduce:transition-none`}),t[14]=i):i=t[14];let o;t[15]===n.name?o=t[16]:(o=(0,L.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-foreground`,children:n.name}),t[15]=n.name,t[16]=o),t[17]!==o||t[18]!==e?(k=(0,L.jsxs)(u,{className:`group flex min-w-0 flex-1 items-center gap-1.5 rounded-md py-0.5 text-left hover:bg-muted/50`,"data-testid":e,children:[i,o]}),t[17]=o,t[18]=e,t[19]=k):k=t[19],T=`flex shrink-0 items-center gap-2`,D=w.length>0?(0,L.jsx)(`span`,{id:`settings-linting-markdownlint-options-${n.id}`,className:`text-xs text-muted-foreground`,title:w.join(`, `),"data-testid":`settings-linting-markdownlint-options-${n.id}`,children:(0,L.jsx)(r,{id:`G-h6qN`,values:{0:w.length}})}):null,t[4]=n.id,t[5]=n.name,t[6]=a,t[7]=S,t[8]=w,t[9]=T,t[10]=D,t[11]=O,t[12]=k,t[13]=A}else S=t[7],w=t[8],T=t[9],D=t[10],O=t[11],k=t[12],A=t[13];let j;t[20]!==n.id||t[21]!==b?(j=b===null?null:(0,L.jsx)(C,{variant:`gray`,"data-testid":`markdownlint-rule-severity-${n.id}`,children:b}),t[20]=n.id,t[21]=b,t[22]=j):j=t[22];let M;t[23]!==f||t[24]!==n.id?(M=f?(0,L.jsx)(C,{variant:`outline`,"data-testid":`markdownlint-rule-modified-${n.id}`,children:(0,L.jsx)(r,{id:`tgWuMB`})}):null,t[23]=f,t[24]=n.id,t[25]=M):M=t[25];let N;t[26]!==h||t[27]!==f||t[28]!==m||t[29]!==p||t[30]!==n.id?(N=f?(0,L.jsxs)(c,{children:[(0,L.jsx)(o,{asChild:!0,children:(0,L.jsx)(ee,{variant:`ghost`,size:`icon`,className:`h-5 w-5 shrink-0 text-muted-foreground opacity-60 hover:opacity-100`,disabled:!p,"aria-label":h({id:`50ORFs`,values:{0:n.id}}),onClick:()=>m(null),children:(0,L.jsx)(ne,{className:`size-3.5`})})}),(0,L.jsx)(s,{children:(0,L.jsx)(r,{id:`L-rMC9`})})]}):null,t[26]=h,t[27]=f,t[28]=m,t[29]=p,t[30]=n.id,t[31]=N):N=t[31];let re=`markdownlint-rule-toggle-${n.id}`,P=!p,I;t[32]!==h||t[33]!==_||t[34]!==n.name?(I=h(_?{id:`y5UgU8`,values:{0:n.name}}:{id:`FZtBeR`,values:{0:n.name}}),t[32]=h,t[33]=_,t[34]=n.name,t[35]=I):I=t[35];let R=w.length>0?`settings-linting-markdownlint-options-${n.id}`:void 0,z;t[36]!==m||t[37]!==a?(z=e=>m(fe(a,e)),t[36]=m,t[37]=a,t[38]=z):z=t[38];let B=`markdownlint-rule-toggle-${n.id}`,V;t[39]!==_||t[40]!==re||t[41]!==P||t[42]!==I||t[43]!==R||t[44]!==z||t[45]!==B?(V=(0,L.jsx)(y,{id:re,checked:_,disabled:P,"aria-label":I,"aria-describedby":R,onCheckedChange:z,"data-testid":B}),t[39]=_,t[40]=re,t[41]=P,t[42]=I,t[43]=R,t[44]=z,t[45]=B,t[46]=V):V=t[46];let H;t[47]!==N||t[48]!==V||t[49]!==T||t[50]!==D||t[51]!==j||t[52]!==M?(H=(0,L.jsxs)(`div`,{className:T,children:[D,j,M,N,V]}),t[47]=N,t[48]=V,t[49]=T,t[50]=D,t[51]=j,t[52]=M,t[53]=H):H=t[53];let U;t[54]!==H||t[55]!==O||t[56]!==k?(U=(0,L.jsxs)(`div`,{className:O,children:[k,H]}),t[54]=H,t[55]=O,t[56]=k,t[57]=U):U=t[57];let W;t[58]!==n.alias||t[59]!==n.id?(W=(0,L.jsxs)(`span`,{className:`font-mono`,children:[n.id,` · `,n.alias]}),t[58]=n.alias,t[59]=n.id,t[60]=W):W=t[60];let ae=n.docUrl,G,K;t[61]===n.docUrl?(G=t[62],K=t[63]):(G=e=>E(e,n.docUrl),K=e=>E(e,n.docUrl),t[61]=n.docUrl,t[62]=G,t[63]=K);let q;t[64]!==h||t[65]!==n.id?(q=h({id:`iv452l`,values:{0:n.id}}),t[64]=h,t[65]=n.id,t[66]=q):q=t[66];let J,oe;t[67]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,L.jsx)(r,{id:`TvY_XA`}),oe=(0,L.jsx)(x,{"aria-hidden":!0,className:`size-3`}),t[67]=J,t[68]=oe):(J=t[67],oe=t[68]);let Y;t[69]!==n.docUrl||t[70]!==G||t[71]!==K||t[72]!==q?(Y=(0,L.jsxs)(`a`,{href:ae,target:`_blank`,rel:`noopener noreferrer`,onClick:G,onAuxClick:K,"aria-label":q,className:`inline-flex items-center gap-0.5 text-primary underline-offset-2 hover:underline`,children:[J,oe]}),t[69]=n.docUrl,t[70]=G,t[71]=K,t[72]=q,t[73]=Y):Y=t[73];let X;t[74]!==W||t[75]!==Y?(X=(0,L.jsxs)(`p`,{className:`text-1sm text-muted-foreground`,children:[W,` · `,Y]}),t[74]=W,t[75]=Y,t[76]=X):X=t[76];let Z;if(t[77]!==m||t[78]!==p||t[79]!==n.id||t[80]!==n.options||t[81]!==a){let e;t[83]!==m||t[84]!==p||t[85]!==n.id||t[86]!==a?(e=e=>(0,L.jsx)(ie,{ruleId:n.id,spec:e,value:me(a,e.key),disabled:!p,onChange:t=>m(pe(a,e.key,t))},e.key),t[83]=m,t[84]=p,t[85]=n.id,t[86]=a,t[87]=e):e=t[87],Z=n.options.map(e),t[77]=m,t[78]=p,t[79]=n.id,t[80]=n.options,t[81]=a,t[82]=Z}else Z=t[82];let Q;t[88]!==X||t[89]!==Z?(Q=(0,L.jsx)(l,{className:`overflow-hidden data-[state=open]:animate-[collapsible-down_150ms_ease-out] data-[state=closed]:animate-[collapsible-up_150ms_ease-in]`,children:(0,L.jsxs)(`div`,{className:`space-y-3 px-3 pb-3 pt-1`,children:[X,Z]})}),t[88]=X,t[89]=Z,t[90]=Q):Q=t[90];let $;return t[91]!==S||t[92]!==U||t[93]!==Q||t[94]!==A?($=(0,L.jsxs)(S,{"data-testid":A,children:[U,Q]}),t[91]=S,t[92]=U,t[93]=Q,t[94]=A,t[95]=$):$=t[95],$}function Z(e){let t=(0,F.c)(6),{category:n}=e;switch(n){case`Headings`:{let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(r,{id:`PKjGhT`}),t[0]=e):e=t[0],e}case`Lists`:{let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(r,{id:`h16FyT`}),t[1]=e):e=t[1],e}case`Whitespace`:{let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(r,{id:`iIaSUD`}),t[2]=e):e=t[2],e}case`Code`:{let e;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(r,{id:`EWPtMO`}),t[3]=e):e=t[3],e}case`Links & images`:{let e;return t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(r,{id:`-kbIAr`}),t[4]=e):e=t[4],e}case`Style`:{let e;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(r,{id:`1CalO6`}),t[5]=e):e=t[5],e}default:return n}}function Q(e){return e.toLowerCase().replace(/[^a-z]+/g,`-`).replace(/^-|-$/g,``)}function $(e,t){let n=O(e,t);return n===void 0?e.default??!0:n.value}function se(e,t,n){return t!==null&&O(e,n)!==void 0}function ce(e){return typeof e==`string`?e:null}function le(e,t){let n=t.trim().toLowerCase();return n===``?!0:e.id.toLowerCase().includes(n)||e.alias.toLowerCase().includes(n)||e.name.toLowerCase().includes(n)}function ue(e){return typeof e!=`object`||!e?e!==!1:e.enabled!==!1}function de(e){return typeof e!=`object`||!e?[]:Object.keys(e).filter(e=>e!==`enabled`)}function fe(e,t){if(typeof e!=`object`||!e)return t;let n={};for(let t of Object.keys(e))t!==`enabled`&&(n[t]=e[t]);return Object.keys(n).length===0?t:t?n:{...n,enabled:!1}}function pe(e,t,n){return typeof e==`object`&&e?{...e,[t]:n}:e===!1?{enabled:!1,[t]:n}:{[t]:n}}function me(e,t){if(!(typeof e!=`object`||!e))return e[t]}export{oe as t};
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{i as o,n as s,t as c}from"./tooltip-BjuCvy5N.js";import{n as l,r as u,t as d}from"./collapsible-BKbszYZV.js";import{t as f}from"./checkbox-CYP7ZXBH.js";import{t as p}from"./label-CvMpFFbN.js";import{i as m,n as h,o as g,s as _,t as v}from"./select-BELkoEB6.js";import{t as y}from"./switch-BKZTXkzu.js";import{t as ee}from"./button-DzgjsZzC.js";import{n as b}from"./dist-Bs8bPT30.js";import{t as x}from"./arrow-up-right-BuM5_PNk.js";import{t as te}from"./chevron-right-B3hLba9m.js";import{t as S}from"./info-CTtlruwn.js";import{t as ne}from"./rotate-ccw-LkVEzPHf.js";import{t as C}from"./badge-DcyFOLs8.js";import{r as w}from"./field-DtEiTjHS.js";import{t as T}from"./input-DUSj2Bri.js";import{t as E}from"./external-link-CV9ONfls.js";import{t as D}from"./skeleton-BBQ4J9l6.js";import{_ as O,g as k,l as A,o as j}from"./markdown-lint-Co4IJlAV.js";import{d as M,p as N,r as re}from"./lint-config-client-CPGcGpvG.js";import{t as P}from"./tag-pill-input-CAQxdwNs.js";var F=a(),I=e(n(),1),L=t(),R={};function ie(e){let t=(0,F.c)(5),n=R[e.ruleId];if(n!==void 0){let r;return t[0]!==n||t[1]!==e?(r=(0,L.jsx)(n,{...e}),t[0]=n,t[1]=e,t[2]=r):r=t[2],r}let r;return t[3]===e?r=t[4]:(r=(0,L.jsx)(z,{...e}),t[3]=e,t[4]=r),r}function z(e){let t=(0,F.c)(65),{ruleId:n,spec:i,value:a,disabled:o,onChange:s}=e,c=`rule-option-${n}-${i.key}`,l=`${c}-description`,u;t[0]!==c||t[1]!==i.key||t[2]!==i.type?(u=i.type===`unsupported`?(0,L.jsx)(`span`,{className:`font-mono text-sm font-medium`,children:i.key}):(0,L.jsx)(p,{htmlFor:c,className:`font-mono text-sm font-medium`,children:i.key}),t[0]=c,t[1]=i.key,t[2]=i.type,t[3]=u):u=t[3];let d;t[4]===i.default?d=t[5]:(d=i.default===void 0?null:(0,L.jsxs)(L.Fragment,{children:[` · `,(0,L.jsx)(r,{id:`KtACeE`,values:{0:H(i.default)},components:{0:(0,L.jsx)(`code`,{className:`font-mono`})}})]}),t[4]=i.default,t[5]=d);let f;t[6]!==l||t[7]!==i.description||t[8]!==d?(f=(0,L.jsxs)(w,{id:l,children:[i.description,d]}),t[6]=l,t[7]=i.description,t[8]=d,t[9]=f):f=t[9];let m;t[10]!==u||t[11]!==f?(m=(0,L.jsxs)(`div`,{className:`min-w-0 space-y-0.5`,children:[u,f]}),t[10]=u,t[11]=f,t[12]=m):m=t[12];let h=m,g=o===!0,_;t[13]!==c||t[14]!==l||t[15]!==s||t[16]!==g?(_={controlId:c,descriptionId:l,disabled:g,onChange:s},t[13]=c,t[14]=l,t[15]=s,t[16]=g,t[17]=_):_=t[17];let v=_;switch(i.type){case`boolean`:{let e;t[18]!==v||t[19]!==i||t[20]!==a?(e=(0,L.jsx)(U,{...v,spec:i,value:a}),t[18]=v,t[19]=i,t[20]=a,t[21]=e):e=t[21];let n;return t[22]!==c||t[23]!==h||t[24]!==e?(n=(0,L.jsx)(B,{testId:c,header:h,children:e}),t[22]=c,t[23]=h,t[24]=e,t[25]=n):n=t[25],n}case`enum`:{let e;t[26]!==v||t[27]!==i||t[28]!==a?(e=(0,L.jsx)(W,{...v,spec:i,value:a}),t[26]=v,t[27]=i,t[28]=a,t[29]=e):e=t[29];let n;return t[30]!==c||t[31]!==h||t[32]!==e?(n=(0,L.jsx)(B,{testId:c,header:h,children:e}),t[30]=c,t[31]=h,t[32]=e,t[33]=n):n=t[33],n}case`integer`:{let e;t[34]!==v||t[35]!==i||t[36]!==a?(e=(0,L.jsx)(G,{...v,spec:i,value:a}),t[34]=v,t[35]=i,t[36]=a,t[37]=e):e=t[37];let n;return t[38]!==c||t[39]!==h||t[40]!==e?(n=(0,L.jsx)(B,{testId:c,header:h,children:e}),t[38]=c,t[39]=h,t[40]=e,t[41]=n):n=t[41],n}case`string`:{let e;t[42]!==v||t[43]!==i||t[44]!==a?(e=(0,L.jsx)(K,{...v,spec:i,value:a}),t[42]=v,t[43]=i,t[44]=a,t[45]=e):e=t[45];let n;return t[46]!==c||t[47]!==h||t[48]!==e?(n=(0,L.jsx)(V,{testId:c,header:h,children:e}),t[46]=c,t[47]=h,t[48]=e,t[49]=n):n=t[49],n}case`string-array`:{let e;t[50]!==v||t[51]!==i||t[52]!==a?(e=(0,L.jsx)(q,{...v,spec:i,value:a}),t[50]=v,t[51]=i,t[52]=a,t[53]=e):e=t[53];let n;return t[54]!==c||t[55]!==h||t[56]!==e?(n=(0,L.jsx)(V,{testId:c,header:h,children:e}),t[54]=c,t[55]=h,t[56]=e,t[57]=n):n=t[57],n}case`unsupported`:{let e=`${c}-unsupported`,n;t[58]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,L.jsx)(r,{id:`NQXwDy`}),t[58]=n):n=t[58];let i;t[59]===e?i=t[60]:(i=(0,L.jsx)(C,{variant:`gray`,"data-testid":e,children:n}),t[59]=e,t[60]=i);let a;return t[61]!==c||t[62]!==h||t[63]!==i?(a=(0,L.jsx)(B,{testId:c,header:h,children:i}),t[61]=c,t[62]=h,t[63]=i,t[64]=a):a=t[64],a}default:return i}}function B(e){let t=(0,F.c)(6),{testId:n,header:r,children:i}=e,a;t[0]===i?a=t[1]:(a=(0,L.jsx)(`div`,{className:`shrink-0`,children:i}),t[0]=i,t[1]=a);let o;return t[2]!==r||t[3]!==a||t[4]!==n?(o=(0,L.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,"data-testid":n,children:[r,a]}),t[2]=r,t[3]=a,t[4]=n,t[5]=o):o=t[5],o}function V(e){let t=(0,F.c)(4),{testId:n,header:r,children:i}=e,a;return t[0]!==i||t[1]!==r||t[2]!==n?(a=(0,L.jsxs)(`div`,{className:`space-y-1.5`,"data-testid":n,children:[r,i]}),t[0]=i,t[1]=r,t[2]=n,t[3]=a):a=t[3],a}function H(e){return JSON.stringify(e)}function U(e){let t=(0,F.c)(8),{spec:n,value:r,controlId:i,descriptionId:a,disabled:o,onChange:s}=e,c=typeof r==`boolean`?r:n.default??!1,l;t[0]===s?l=t[1]:(l=e=>s(e),t[0]=s,t[1]=l);let u;return t[2]!==c||t[3]!==i||t[4]!==a||t[5]!==o||t[6]!==l?(u=(0,L.jsx)(y,{id:i,checked:c,disabled:o,"aria-describedby":a,onCheckedChange:l}),t[2]=c,t[3]=i,t[4]=a,t[5]=o,t[6]=l,t[7]=u):u=t[7],u}function W(e){let t=(0,F.c)(16),{spec:n,value:r,controlId:i,descriptionId:a,disabled:o,onChange:s}=e,c=typeof r==`string`?r:n.default??``,l;t[0]===s?l=t[1]:(l=e=>s(e),t[0]=s,t[1]=l);let u;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(u=(0,L.jsx)(_,{}),t[2]=u):u=t[2];let d;t[3]!==i||t[4]!==a?(d=(0,L.jsx)(g,{id:i,"aria-describedby":a,className:`w-48`,children:u}),t[3]=i,t[4]=a,t[5]=d):d=t[5];let f;t[6]===n.enum?f=t[7]:(f=n.enum.map(ae),t[6]=n.enum,t[7]=f);let p;t[8]===f?p=t[9]:(p=(0,L.jsx)(h,{children:f}),t[8]=f,t[9]=p);let m;return t[10]!==c||t[11]!==o||t[12]!==l||t[13]!==d||t[14]!==p?(m=(0,L.jsxs)(v,{value:c,onValueChange:l,disabled:o,children:[d,p]}),t[10]=c,t[11]=o,t[12]=l,t[13]=d,t[14]=p,t[15]=m):m=t[15],m}function ae(e){return(0,L.jsx)(m,{value:e,children:e},e)}function G(e){let t=(0,F.c)(22),{spec:n,value:r,controlId:i,descriptionId:a,disabled:o,onChange:s}=e,c=typeof r==`number`?r:n.default,l=c===void 0?``:String(c),[u,d]=(0,I.useState)(l),f=(0,I.useRef)(c),p,m;t[0]===c?(p=t[1],m=t[2]):(p=()=>{f.current!==c&&(d(c===void 0?``:String(c)),f.current=c)},m=[c],t[0]=c,t[1]=p,t[2]=m),(0,I.useEffect)(p,m);let h;t[3]!==c||t[4]!==l||t[5]!==s||t[6]!==u||t[7]!==n.maximum||t[8]!==n.minimum?(h=()=>{if(u.trim()===``){d(l);return}let e=Number(u);if(!Number.isFinite(e)){d(l);return}let t=Math.round(e);n.minimum!==void 0&&t<n.minimum&&(t=n.minimum),n.maximum!==void 0&&t>n.maximum&&(t=n.maximum),d(String(t)),t!==c&&s(t)},t[3]=c,t[4]=l,t[5]=s,t[6]=u,t[7]=n.maximum,t[8]=n.minimum,t[9]=h):h=t[9];let g=h,_;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(_=e=>d(e.target.value),t[10]=_):_=t[10];let v;t[11]===g?v=t[12]:(v=e=>{e.key===`Enter`&&(e.preventDefault(),g())},t[11]=g,t[12]=v);let y;return t[13]!==g||t[14]!==i||t[15]!==a||t[16]!==o||t[17]!==u||t[18]!==n.maximum||t[19]!==n.minimum||t[20]!==v?(y=(0,L.jsx)(T,{id:i,type:`number`,value:u,min:n.minimum,max:n.maximum,disabled:o,"aria-describedby":a,onChange:_,onBlur:g,onKeyDown:v,className:`h-8 w-28 text-sm tabular-nums`}),t[13]=g,t[14]=i,t[15]=a,t[16]=o,t[17]=u,t[18]=n.maximum,t[19]=n.minimum,t[20]=v,t[21]=y):y=t[21],y}function K(e){let t=(0,F.c)(17),{spec:n,value:r,controlId:i,descriptionId:a,disabled:o,onChange:s}=e,c=typeof r==`string`?r:n.default??``,[l,u]=(0,I.useState)(c),d=(0,I.useRef)(c),f,p;t[0]===c?(f=t[1],p=t[2]):(f=()=>{d.current!==c&&(u(c),d.current=c)},p=[c],t[0]=c,t[1]=f,t[2]=p),(0,I.useEffect)(f,p);let m;t[3]!==c||t[4]!==s||t[5]!==l?(m=()=>{l!==c&&s(l)},t[3]=c,t[4]=s,t[5]=l,t[6]=m):m=t[6];let h=m,g;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(g=e=>u(e.target.value),t[7]=g):g=t[7];let _;t[8]===h?_=t[9]:(_=e=>{e.key===`Enter`&&(e.preventDefault(),h())},t[8]=h,t[9]=_);let v;return t[10]!==h||t[11]!==i||t[12]!==a||t[13]!==o||t[14]!==l||t[15]!==_?(v=(0,L.jsx)(T,{id:i,value:l,disabled:o,"aria-describedby":a,onChange:g,onBlur:h,onKeyDown:_,className:`h-8 font-mono text-sm`}),t[10]=h,t[11]=i,t[12]=a,t[13]=o,t[14]=l,t[15]=_,t[16]=v):v=t[16],v}function q(e){let t=(0,F.c)(11),{spec:n,value:r,controlId:i,descriptionId:a,disabled:o,onChange:s}=e,c;t[0]!==n||t[1]!==r?(c=Array.isArray(r)?r.filter(J):[...n.default??[]],t[0]=n,t[1]=r,t[2]=c):c=t[2];let l=c,u;t[3]===s?u=t[4]:(u=e=>s(e),t[3]=s,t[4]=u);let d;return t[5]!==i||t[6]!==a||t[7]!==o||t[8]!==l||t[9]!==u?(d=(0,L.jsx)(P,{id:i,value:l,grammar:`free-text`,disabled:o,"aria-describedby":a,onChange:u}),t[5]=i,t[6]=a,t[7]=o,t[8]=l,t[9]=u,t[10]=d):d=t[10],d}function J(e){return typeof e==`string`}function oe(e){let t=(0,F.c)(53),n;t[0]===e?n=t[1]:(n=e===void 0?{}:e,t[0]=e,t[1]=n);let{hideConfigSourceNote:a,initialRuleQuery:o}=n,s=a===void 0?!1:a,{_:c}=i(),{data:m}=M(),h=m!==null,g;t[2]===m?.effective.plugins.markdownlint.rules?g=t[3]:(g=m?.effective.plugins.markdownlint.rules??{},t[2]=m?.effective.plugins.markdownlint.rules,t[3]=g);let _=g,v=m?.configFile??null,[y,ee]=(0,I.useState)(o?.query??``),[x,ne]=(0,I.useState)(!1),C=o?.nonce,w=o?.query,E,O;t[4]!==C||t[5]!==w?(E=()=>{C===void 0||w===void 0||ee(w)},O=[C,w],t[4]=C,t[5]=w,t[6]=E,t[7]=O):(E=t[6],O=t[7]),(0,I.useEffect)(E,O);let P;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(P=[],t[8]=P):P=t[8];let[R,ie]=(0,I.useState)(P),z;t[9]===c?z=t[10]:(z=function(e,t){N(e,t).then(e=>{if(!e.ok){b.error(e.errorDetail??c({id:`2G-56b`}));return}re()})},t[9]=c,t[10]=z);let B=z,V;t[11]!==x||t[12]!==y?(V=y.trim()!==``||x,t[11]=x,t[12]=y,t[13]=V):V=t[13];let H=V,U;if(t[14]!==c||t[15]!==R||t[16]!==v||t[17]!==H||t[18]!==s||t[19]!==x||t[20]!==h||t[21]!==_||t[22]!==y||t[23]!==B){let e;t[25]!==v||t[26]!==x||t[27]!==_||t[28]!==y?(e=e=>le(e,y)&&(!x||se(_,v,e.id)),t[25]=v,t[26]=x,t[27]=_,t[28]=y,t[29]=e):e=t[29];let n=j.filter(e),i=A.map(e=>({category:e,entries:n.filter(t=>k(t)===e)})).filter(Y),a;t[30]!==v||t[31]!==s||t[32]!==h?(a=!s&&(h?v?(0,L.jsx)(`p`,{className:`text-sm text-muted-foreground`,"data-testid":`markdownlint-config-source-note`,children:(0,L.jsx)(r,{id:`V2Gmie`,values:{configFile:v},components:{0:(0,L.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 font-mono text-xs`})}})}):(0,L.jsxs)(`div`,{className:`space-y-2`,children:[(0,L.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:(0,L.jsx)(r,{id:`Z6rrjc`,components:{0:(0,L.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 font-mono text-xs`})}})}),(0,L.jsxs)(`p`,{className:`flex items-start gap-1.5 rounded-md border border-dashed p-2.5 text-sm text-muted-foreground`,"data-testid":`markdownlint-no-file-disclaimer`,children:[(0,L.jsx)(S,{"aria-hidden":!0,className:`mt-0.5 size-4 shrink-0`}),(0,L.jsx)(`span`,{children:(0,L.jsx)(r,{id:`Te6sK2`,components:{0:(0,L.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 font-mono text-xs`})}})})]})]}):(0,L.jsxs)(`div`,{className:`space-y-2`,"aria-busy":`true`,"data-testid":`markdownlint-rule-browser-config-loading`,children:[(0,L.jsx)(D,{className:`h-4 w-full`}),(0,L.jsx)(D,{className:`h-4 w-2/3`})]})),t[30]=v,t[31]=s,t[32]=h,t[33]=a):a=t[33];let o;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,L.jsx)(`p`,{className:`text-sm text-muted-foreground`,"data-testid":`markdownlint-rule-browser-legend`,children:(0,L.jsx)(r,{id:`zYp8Sr`,components:{0:(0,L.jsx)(`span`,{className:`font-medium text-foreground`}),1:(0,L.jsx)(`code`,{className:`rounded bg-muted px-1 py-0.5 font-mono text-xs`})}})}),t[34]=o):o=t[34];let m;t[35]===Symbol.for(`react.memo_cache_sentinel`)?(m=e=>ee(e.target.value),t[35]=m):m=t[35];let g;t[36]===c?g=t[37]:(g=c({id:`l-4nnw`}),t[36]=c,t[37]=g);let b;t[38]===c?b=t[39]:(b=c({id:`yf5auF`}),t[38]=c,t[39]=b);let C;t[40]!==y||t[41]!==g||t[42]!==b?(C=(0,L.jsx)(T,{value:y,onChange:m,placeholder:g,"aria-label":b,className:`h-8`,"data-testid":`markdownlint-rule-search`}),t[40]=y,t[41]=g,t[42]=b,t[43]=C):C=t[43];let w;t[44]===Symbol.for(`react.memo_cache_sentinel`)?(w=e=>ne(e===!0),t[44]=w):w=t[44];let E;t[45]===x?E=t[46]:(E=(0,L.jsx)(f,{id:`markdownlint-only-modified`,checked:x,onCheckedChange:w,"data-testid":`markdownlint-only-modified`}),t[45]=x,t[46]=E);let O;t[47]===Symbol.for(`react.memo_cache_sentinel`)?(O=(0,L.jsx)(p,{htmlFor:`markdownlint-only-modified`,className:`text-sm font-normal`,children:(0,L.jsx)(r,{id:`ccNps_`})}),t[47]=O):O=t[47];let M;t[48]===E?M=t[49]:(M=(0,L.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[E,O]}),t[48]=E,t[49]=M);let N;t[50]!==C||t[51]!==M?(N=(0,L.jsxs)(`div`,{className:`flex items-center gap-4`,children:[C,M]}),t[50]=C,t[51]=M,t[52]=N):N=t[52],U=(0,L.jsxs)(`div`,{className:`space-y-3`,"data-testid":`settings-linting-markdownlint-rules`,children:[a,o,N,i.length===0?(0,L.jsx)(`p`,{className:`rounded-md border border-dashed p-3 text-sm text-muted-foreground`,"data-testid":`markdownlint-rule-browser-empty`,children:(0,L.jsx)(r,{id:`RfilGt`})}):(0,L.jsx)(`div`,{className:`space-y-2`,children:i.map(e=>{let{category:t,entries:n}=e,i=n.filter(e=>ue($(_,e.id))).length;return(0,L.jsxs)(d,{open:H||!R.includes(t),onOpenChange:e=>ie(e?R.filter(e=>e!==t):[...R,t]),children:[(0,L.jsxs)(u,{className:`group flex w-full items-center gap-2 rounded-md px-1.5 py-1.5 text-sm font-medium hover:bg-muted/50`,"data-testid":`markdownlint-rule-category-${Q(t)}`,children:[(0,L.jsx)(te,{className:`size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-90 motion-reduce:transition-none`}),(0,L.jsx)(Z,{category:t}),(0,L.jsx)(`span`,{className:`ms-auto text-xs font-normal text-muted-foreground tabular-nums`,children:(0,L.jsx)(r,{id:`NgZwB0`,values:{0:n.length,enabledCount:i}})})]}),(0,L.jsx)(l,{children:(0,L.jsx)(`div`,{className:`mt-1 divide-y rounded-md border`,children:n.map(e=>(0,L.jsx)(X,{rule:e,value:$(_,e.id),modified:se(_,v,e.id),ready:h,onWrite:t=>B(e.id,t)},e.id))})})]},t)})})]}),t[14]=c,t[15]=R,t[16]=v,t[17]=H,t[18]=s,t[19]=x,t[20]=h,t[21]=_,t[22]=y,t[23]=B,t[24]=U}else U=t[24];return U}function Y(e){return e.entries.length>0}function X(e){let t=(0,F.c)(96),{rule:n,value:a,modified:f,ready:p,onWrite:m}=e,{_:h}=i(),g;t[0]===a?g=t[1]:(g=ue(a),t[0]=a,t[1]=g);let _=g,v;t[2]===a?v=t[3]:(v=ce(a),t[2]=a,t[3]=v);let b=v,S,w,T,D,O,k,A;if(t[4]!==n.id||t[5]!==n.name||t[6]!==a){w=de(a),S=d,A=`markdownlint-rule-row-${n.id}`,O=`flex items-center justify-between gap-3 px-3 py-2`;let e=`markdownlint-rule-expand-${n.id}`,i;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,L.jsx)(te,{className:`size-4 shrink-0 text-muted-foreground transition-transform group-data-[state=open]:rotate-90 motion-reduce:transition-none`}),t[14]=i):i=t[14];let o;t[15]===n.name?o=t[16]:(o=(0,L.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-sm text-foreground`,children:n.name}),t[15]=n.name,t[16]=o),t[17]!==o||t[18]!==e?(k=(0,L.jsxs)(u,{className:`group flex min-w-0 flex-1 items-center gap-1.5 rounded-md py-0.5 text-left hover:bg-muted/50`,"data-testid":e,children:[i,o]}),t[17]=o,t[18]=e,t[19]=k):k=t[19],T=`flex shrink-0 items-center gap-2`,D=w.length>0?(0,L.jsx)(`span`,{id:`settings-linting-markdownlint-options-${n.id}`,className:`text-xs text-muted-foreground`,title:w.join(`, `),"data-testid":`settings-linting-markdownlint-options-${n.id}`,children:(0,L.jsx)(r,{id:`G-h6qN`,values:{0:w.length}})}):null,t[4]=n.id,t[5]=n.name,t[6]=a,t[7]=S,t[8]=w,t[9]=T,t[10]=D,t[11]=O,t[12]=k,t[13]=A}else S=t[7],w=t[8],T=t[9],D=t[10],O=t[11],k=t[12],A=t[13];let j;t[20]!==n.id||t[21]!==b?(j=b===null?null:(0,L.jsx)(C,{variant:`gray`,"data-testid":`markdownlint-rule-severity-${n.id}`,children:b}),t[20]=n.id,t[21]=b,t[22]=j):j=t[22];let M;t[23]!==f||t[24]!==n.id?(M=f?(0,L.jsx)(C,{variant:`outline`,"data-testid":`markdownlint-rule-modified-${n.id}`,children:(0,L.jsx)(r,{id:`tgWuMB`})}):null,t[23]=f,t[24]=n.id,t[25]=M):M=t[25];let N;t[26]!==h||t[27]!==f||t[28]!==m||t[29]!==p||t[30]!==n.id?(N=f?(0,L.jsxs)(c,{children:[(0,L.jsx)(o,{asChild:!0,children:(0,L.jsx)(ee,{variant:`ghost`,size:`icon`,className:`h-5 w-5 shrink-0 text-muted-foreground opacity-60 hover:opacity-100`,disabled:!p,"aria-label":h({id:`50ORFs`,values:{0:n.id}}),onClick:()=>m(null),children:(0,L.jsx)(ne,{className:`size-3.5`})})}),(0,L.jsx)(s,{children:(0,L.jsx)(r,{id:`L-rMC9`})})]}):null,t[26]=h,t[27]=f,t[28]=m,t[29]=p,t[30]=n.id,t[31]=N):N=t[31];let re=`markdownlint-rule-toggle-${n.id}`,P=!p,I;t[32]!==h||t[33]!==_||t[34]!==n.name?(I=h(_?{id:`y5UgU8`,values:{0:n.name}}:{id:`FZtBeR`,values:{0:n.name}}),t[32]=h,t[33]=_,t[34]=n.name,t[35]=I):I=t[35];let R=w.length>0?`settings-linting-markdownlint-options-${n.id}`:void 0,z;t[36]!==m||t[37]!==a?(z=e=>m(fe(a,e)),t[36]=m,t[37]=a,t[38]=z):z=t[38];let B=`markdownlint-rule-toggle-${n.id}`,V;t[39]!==_||t[40]!==re||t[41]!==P||t[42]!==I||t[43]!==R||t[44]!==z||t[45]!==B?(V=(0,L.jsx)(y,{id:re,checked:_,disabled:P,"aria-label":I,"aria-describedby":R,onCheckedChange:z,"data-testid":B}),t[39]=_,t[40]=re,t[41]=P,t[42]=I,t[43]=R,t[44]=z,t[45]=B,t[46]=V):V=t[46];let H;t[47]!==N||t[48]!==V||t[49]!==T||t[50]!==D||t[51]!==j||t[52]!==M?(H=(0,L.jsxs)(`div`,{className:T,children:[D,j,M,N,V]}),t[47]=N,t[48]=V,t[49]=T,t[50]=D,t[51]=j,t[52]=M,t[53]=H):H=t[53];let U;t[54]!==H||t[55]!==O||t[56]!==k?(U=(0,L.jsxs)(`div`,{className:O,children:[k,H]}),t[54]=H,t[55]=O,t[56]=k,t[57]=U):U=t[57];let W;t[58]!==n.alias||t[59]!==n.id?(W=(0,L.jsxs)(`span`,{className:`font-mono`,children:[n.id,` · `,n.alias]}),t[58]=n.alias,t[59]=n.id,t[60]=W):W=t[60];let ae=n.docUrl,G,K;t[61]===n.docUrl?(G=t[62],K=t[63]):(G=e=>E(e,n.docUrl),K=e=>E(e,n.docUrl),t[61]=n.docUrl,t[62]=G,t[63]=K);let q;t[64]!==h||t[65]!==n.id?(q=h({id:`iv452l`,values:{0:n.id}}),t[64]=h,t[65]=n.id,t[66]=q):q=t[66];let J,oe;t[67]===Symbol.for(`react.memo_cache_sentinel`)?(J=(0,L.jsx)(r,{id:`TvY_XA`}),oe=(0,L.jsx)(x,{"aria-hidden":!0,className:`size-3`}),t[67]=J,t[68]=oe):(J=t[67],oe=t[68]);let Y;t[69]!==n.docUrl||t[70]!==G||t[71]!==K||t[72]!==q?(Y=(0,L.jsxs)(`a`,{href:ae,target:`_blank`,rel:`noopener noreferrer`,onClick:G,onAuxClick:K,"aria-label":q,className:`inline-flex items-center gap-0.5 text-primary underline-offset-2 hover:underline`,children:[J,oe]}),t[69]=n.docUrl,t[70]=G,t[71]=K,t[72]=q,t[73]=Y):Y=t[73];let X;t[74]!==W||t[75]!==Y?(X=(0,L.jsxs)(`p`,{className:`text-1sm text-muted-foreground`,children:[W,` · `,Y]}),t[74]=W,t[75]=Y,t[76]=X):X=t[76];let Z;if(t[77]!==m||t[78]!==p||t[79]!==n.id||t[80]!==n.options||t[81]!==a){let e;t[83]!==m||t[84]!==p||t[85]!==n.id||t[86]!==a?(e=e=>(0,L.jsx)(ie,{ruleId:n.id,spec:e,value:me(a,e.key),disabled:!p,onChange:t=>m(pe(a,e.key,t))},e.key),t[83]=m,t[84]=p,t[85]=n.id,t[86]=a,t[87]=e):e=t[87],Z=n.options.map(e),t[77]=m,t[78]=p,t[79]=n.id,t[80]=n.options,t[81]=a,t[82]=Z}else Z=t[82];let Q;t[88]!==X||t[89]!==Z?(Q=(0,L.jsx)(l,{className:`overflow-hidden data-[state=open]:animate-[collapsible-down_150ms_ease-out] data-[state=closed]:animate-[collapsible-up_150ms_ease-in]`,children:(0,L.jsxs)(`div`,{className:`space-y-3 px-3 pb-3 pt-1`,children:[X,Z]})}),t[88]=X,t[89]=Z,t[90]=Q):Q=t[90];let $;return t[91]!==S||t[92]!==U||t[93]!==Q||t[94]!==A?($=(0,L.jsxs)(S,{"data-testid":A,children:[U,Q]}),t[91]=S,t[92]=U,t[93]=Q,t[94]=A,t[95]=$):$=t[95],$}function Z(e){let t=(0,F.c)(6),{category:n}=e;switch(n){case`Headings`:{let e;return t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(r,{id:`PKjGhT`}),t[0]=e):e=t[0],e}case`Lists`:{let e;return t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(r,{id:`h16FyT`}),t[1]=e):e=t[1],e}case`Whitespace`:{let e;return t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(r,{id:`iIaSUD`}),t[2]=e):e=t[2],e}case`Code`:{let e;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(r,{id:`EWPtMO`}),t[3]=e):e=t[3],e}case`Links & images`:{let e;return t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(r,{id:`-kbIAr`}),t[4]=e):e=t[4],e}case`Style`:{let e;return t[5]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,L.jsx)(r,{id:`1CalO6`}),t[5]=e):e=t[5],e}default:return n}}function Q(e){return e.toLowerCase().replace(/[^a-z]+/g,`-`).replace(/^-|-$/g,``)}function $(e,t){let n=O(e,t);return n===void 0?e.default??!0:n.value}function se(e,t,n){return t!==null&&O(e,n)!==void 0}function ce(e){return typeof e==`string`?e:null}function le(e,t){let n=t.trim().toLowerCase();return n===``?!0:e.id.toLowerCase().includes(n)||e.alias.toLowerCase().includes(n)||e.name.toLowerCase().includes(n)}function ue(e){return typeof e!=`object`||!e?e!==!1:e.enabled!==!1}function de(e){return typeof e!=`object`||!e?[]:Object.keys(e).filter(e=>e!==`enabled`)}function fe(e,t){if(typeof e!=`object`||!e)return t;let n={};for(let t of Object.keys(e))t!==`enabled`&&(n[t]=e[t]);return Object.keys(n).length===0?t:t?n:{...n,enabled:!1}}function pe(e,t,n){return typeof e==`object`&&e?{...e,[t]:n}:e===!1?{enabled:!1,[t]:n}:{[t]:n}}function me(e,t){if(!(typeof e!=`object`||!e))return e[t]}export{oe as t};
@@ -0,0 +1 @@
1
+ import{o as e}from"./chunk-BO2N2NFS-BEuwRDxJ.js";export{e as Mermaid};
@@ -1 +1 @@
1
- import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as o}from"./utils-CPqDy6Hr.js";import{t as s}from"./button-DzgjsZzC.js";import{n as c}from"./dist-Bs8bPT30.js";import{t as l}from"./createLucideIcon-CB3nKwwz.js";import{D as u,S as d,T as f,b as p,d as m,h,i as g,n as _,t as v,w as y,y as b}from"./SyncStatusBadge-C6xvIMos.js";import{t as x}from"./arrow-up-right-BuM5_PNk.js";import{t as S}from"./check-x3deoXUY.js";import{t as C}from"./folder-open-a_XLAh8h.js";import{t as w}from"./info-CTtlruwn.js";import{t as T}from"./spinner-CeYJkImG.js";import{n as E}from"./miss-dialog-store-9W8qZPsI.js";import{t as D}from"./refresh-cw-kK6tPJpw.js";import{t as O}from"./triangle-alert-COKT45NU.js";import{a as k,h as A}from"./doc-hash-BDtDlqpM.js";import{t as j}from"./use-git-sync-status-D8KvdiBj.js";import{t as M}from"./external-link-C6hldklD.js";import{r as N}from"./doc-paths-BxQo1KRQ.js";var P=l(`file-pen`,[[`path`,{d:`M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34`,key:`o6klzx`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z`,key:`zhnas1`}]]),F=l(`file-question-mark`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3`,key:`mhlwft`}]]),I=l(`file-x-corner`,[[`path`,{d:`M11 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5`,key:`1jo35a`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m15 17 5 5`,key:`36xl1x`}],[`path`,{d:`m20 17-5 5`,key:`vdz27y`}]]),L=a(),R=e(n(),1),z=t(),B=`https://git-scm.com/docs/git-push`;function V(e,t){return e===`empty`?!0:!(e!==`stale`&&e!==`absent`||e===`stale`&&t?.syncEnabled===!0)}function ee(e){if(!e)return!1;let t=g(e);return t!==`dormant`&&t!==`disabled`&&t!==`auth-error`&&t!==`conflict`}function te(e){let t=(0,L.c)(11),{status:n,className:r}=e,i=n?.pausedReason;if(!m(i))return null;let a;t[0]===r?a=t[1]:(a=o(`flex min-w-0 flex-col gap-1.5`,r),t[0]=r,t[1]=a);let s;t[2]===i?s=t[3]:(s=(0,z.jsx)(`span`,{children:(0,z.jsx)(v,{reason:i})}),t[2]=i,t[3]=s);let c;t[4]!==i||t[5]!==n?.refusedSymlinkPaths?(c=i===`unsafe-incoming-symlinks`?(0,z.jsx)(_,{paths:n?.refusedSymlinkPaths}):null,t[4]=i,t[5]=n?.refusedSymlinkPaths,t[6]=c):c=t[6];let l;return t[7]!==a||t[8]!==s||t[9]!==c?(l=(0,z.jsxs)(`div`,{className:a,"data-testid":`sync-now-paused-notice`,children:[s,c]}),t[7]=a,t[8]=s,t[9]=c,t[10]=l):l=t[10],l}function H(e){let t=(0,L.c)(52),{freshness:n,status:a,kind:o}=e,{_:c}=i(),{confirmOpen:l,setConfirmOpen:u,onToggleRequest:f,onConfirm:m}=p(d()),[g,_]=(0,R.useState)(`idle`),v=(0,R.useRef)(null),y,C;if(t[0]!==a||t[1]!==g?(y=()=>{if(!(g!==`pending`||!a)){if(a.pushError||a.pushErrorCode){_(`idle`);return}(a.lastSyncUtc??null)!==v.current&&_(`synced`)}},C=[g,a],t[0]=a,t[1]=g,t[2]=y,t[3]=C):(y=t[2],C=t[3]),(0,R.useEffect)(y,C),!V(n,a))return null;if(n===`empty`){let e;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,z.jsx)(O,{className:`mt-0.5 size-3.5 shrink-0`,"aria-hidden":`true`}),t[4]=e):e=t[4];let n;t[5]===c?n=t[6]:(n=c({id:`eazHgv`}),t[5]=c,t[6]=n);let r;return t[7]===n?r=t[8]:(r=(0,z.jsxs)(`div`,{className:`flex items-start gap-2 rounded-md border border-dashed border-border bg-muted/40 p-2 text-xs text-muted-foreground`,"data-testid":`share-freshness-row`,children:[e,(0,z.jsx)(`span`,{children:n})]}),t[7]=n,t[8]=r),r}if(g===`synced`){let e;return t[9]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,z.jsxs)(`div`,{className:`flex items-start gap-2 rounded-md border border-dashed border-border bg-muted/40 p-2 text-xs text-muted-foreground`,"data-testid":`share-freshness-row`,children:[(0,z.jsx)(S,{className:`mt-0.5 size-3.5 shrink-0`,"aria-hidden":`true`}),(0,z.jsx)(`span`,{children:(0,z.jsx)(r,{id:`fxbCNQ`})})]}),t[9]=e):e=t[9],e}let E=a?.syncEnabled===!0,k=a?.pushPermission?.checkStatus===`denied`,A=!!(a?.pushError||a?.pushErrorCode),j=k||A,M=n===`absent`&&!E,N;if(n===`absent`&&!E){let e;t[10]!==c||t[11]!==o?(e=c(o===`folder`?{id:`PrJYSN`}:{id:`3BnyYc`}),t[10]=c,t[11]=o,t[12]=e):e=t[12],N=e}else if(n===`stale`){let e;t[13]!==c||t[14]!==o?(e=c(o===`folder`?{id:`Gt4gOO`}:{id:`2IYGkU`}),t[13]=c,t[14]=o,t[15]=e):e=t[15],N=e}else{let e;t[16]!==c||t[17]!==o?(e=c(o===`folder`?{id:`nqV0Kk`}:{id:`gwykHF`}),t[16]=c,t[17]=o,t[18]=e):e=t[18],N=e}let P;t[19]!==c||t[20]!==A||t[21]!==k?(P=k?c({id:`9OIqw4`}):A?c({id:`K6MQQk`}):null,t[19]=c,t[20]=A,t[21]=k,t[22]=P):P=t[22];let F=P,I;t[23]===a?.lastSyncUtc?I=t[24]:(I=()=>{v.current=a?.lastSyncUtc??null,_(`pending`),b(`sync`).catch(e=>{console.warn(`[share-freshness] sync trigger failed`,e instanceof Error?e.message:e),_(`idle`)})},t[23]=a?.lastSyncUtc,t[24]=I);let H=I,W=M?O:w,G;t[25]===W?G=t[26]:(G=(0,z.jsx)(W,{className:`mt-0.5 size-3.5 shrink-0`,"aria-hidden":`true`}),t[25]=W,t[26]=G);let K;t[27]===N?K=t[28]:(K=(0,z.jsx)(`span`,{children:N}),t[27]=N,t[28]=K);let q;t[29]===F?q=t[30]:(q=F?(0,z.jsx)(`span`,{children:F}):null,t[29]=F,t[30]=q);let J;t[31]!==j||t[32]!==H||t[33]!==f||t[34]!==a||t[35]!==E||t[36]!==g?(J=j?null:E?ee(a)?(0,z.jsx)(`div`,{children:g===`pending`?(0,z.jsxs)(s,{variant:`outline`,size:`xs`,disabled:!0,children:[(0,z.jsx)(T,{icon:D,className:`size-3 shrink-0`,"aria-hidden":`true`}),(0,z.jsx)(r,{id:`EHu0x2`})]}):(0,z.jsx)(s,{variant:`outline`,size:`xs`,onClick:H,children:(0,z.jsx)(r,{id:`lb_UU4`})})}):(0,z.jsx)(te,{status:a}):(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1.5`,children:[(0,z.jsx)(s,{variant:`outline`,size:`xs`,onClick:()=>f(!0),children:(0,z.jsx)(r,{id:`pPiV8s`})}),(0,z.jsxs)(`a`,{href:B,target:`_blank`,rel:`noopener noreferrer`,onClick:ne,onAuxClick:U,className:`inline-flex items-center gap-1 transition-colors hover:text-primary`,children:[(0,z.jsx)(r,{id:`GLxIKR`}),(0,z.jsx)(x,{className:`size-3 shrink-0`,"aria-hidden":`true`})]})]}),t[31]=j,t[32]=H,t[33]=f,t[34]=a,t[35]=E,t[36]=g,t[37]=J):J=t[37];let Y;t[38]!==K||t[39]!==q||t[40]!==J?(Y=(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1.5`,children:[K,q,J]}),t[38]=K,t[39]=q,t[40]=J,t[41]=Y):Y=t[41];let X;t[42]!==G||t[43]!==Y?(X=(0,z.jsxs)(`div`,{className:`flex items-start gap-2 rounded-md border border-dashed border-border bg-muted/40 p-2 text-xs text-muted-foreground`,"data-testid":`share-freshness-row`,children:[G,Y]}),t[42]=G,t[43]=Y,t[44]=X):X=t[44];let Z;t[45]!==l||t[46]!==m||t[47]!==u?(Z=(0,z.jsx)(h,{open:l,onOpenChange:u,onConfirm:m}),t[45]=l,t[46]=m,t[47]=u,t[48]=Z):Z=t[48];let Q;return t[49]!==X||t[50]!==Z?(Q=(0,z.jsxs)(z.Fragment,{children:[X,Z]}),t[49]=X,t[50]=Z,t[51]=Q):Q=t[51],Q}function U(e){return M(e,B)}function ne(e){return M(e,B)}function W(e){let t=e.lastIndexOf(`/`);return t===-1?``:e.slice(0,t)}function G(e){let t=(0,L.c)(17),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={phase:`pending`},t[0]=n):n=t[0];let[r,i]=(0,R.useState)(n),[a,o]=(0,R.useState)(0),s=e.branch,c;t[1]!==s||t[2]!==e.contentRootDepth||t[3]!==e.kind||t[4]!==e.path||t[5]!==e.repositoryPath?(c=()=>{let t=window.okDesktop??null;if(!t||s===null){i({phase:`resolved`,resolution:{verdict:`unknown`}});return}let n=!1;return t.project.fetchTargetStatus({projectPath:t.config.projectPath,branch:s,path:e.repositoryPath??e.path,kind:e.kind,...e.contentRootDepth===void 0?{}:{contentRootDepth:e.contentRootDepth}}).then(e=>{n||i({phase:`resolved`,resolution:e??{verdict:`unknown`}})}).catch(e=>{n||(console.warn(`[receive] miss target-status fetch failed`,e instanceof Error?e.message:e),i({phase:`resolved`,resolution:{verdict:`unknown`}}))}),()=>{n=!0}},t[1]=s,t[2]=e.contentRootDepth,t[3]=e.kind,t[4]=e.path,t[5]=e.repositoryPath,t[6]=c):c=t[6];let l;t[7]!==s||t[8]!==a||t[9]!==e.contentRootDepth||t[10]!==e.kind||t[11]!==e.path||t[12]!==e.repositoryPath?(l=[s,e.kind,e.path,e.repositoryPath,e.contentRootDepth,a],t[7]=s,t[8]=a,t[9]=e.contentRootDepth,t[10]=e.kind,t[11]=e.path,t[12]=e.repositoryPath,t[13]=l):l=t[13],(0,R.useEffect)(c,l);let u;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>{i({phase:`pending`}),o(K)},t[14]=u):u=t[14];let d;return t[15]===r?d=t[16]:(d={state:r,refetch:u},t[15]=r,t[16]=d),d}function K(e){return e+1}function q(e){let t=(0,L.c)(15),{onEnabled:n}=e,i=d(),a;t[0]===n?a=t[1]:(a={onEnabled:n},t[0]=n,t[1]=a);let{confirmOpen:o,setConfirmOpen:c,onToggleRequest:l,onConfirm:u}=p(i,a),f;t[2]===l?f=t[3]:(f=()=>l(!0),t[2]=l,t[3]=f);let m,g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,z.jsx)(D,{className:`size-4`,"aria-hidden":`true`}),g=(0,z.jsx)(r,{id:`pPiV8s`}),t[4]=m,t[5]=g):(m=t[4],g=t[5]);let _;t[6]===f?_=t[7]:(_=(0,z.jsxs)(s,{onClick:f,"data-testid":`share-receive-miss-enable-sync`,children:[m,g]}),t[6]=f,t[7]=_);let v;t[8]!==o||t[9]!==u||t[10]!==c?(v=(0,z.jsx)(h,{open:o,onOpenChange:c,onConfirm:u}),t[8]=o,t[9]=u,t[10]=c,t[11]=v):v=t[11];let y;return t[12]!==_||t[13]!==v?(y=(0,z.jsxs)(z.Fragment,{children:[_,v]}),t[12]=_,t[13]=v,t[14]=y):y=t[14],y}function J(e){let t=(0,L.c)(23),{status:n,onSyncCompleted:a}=e,{_:o}=i(),[l,u]=(0,R.useState)(!1),d=(0,R.useRef)(null),f;t[0]!==a||t[1]!==l||t[2]!==n.lastSyncUtc||t[3]!==n.pushError||t[4]!==n.pushErrorCode?(f=()=>{if(l){if(n.pushError||n.pushErrorCode){u(!1);return}(n.lastSyncUtc??null)!==d.current&&(u(!1),a?.())}},t[0]=a,t[1]=l,t[2]=n.lastSyncUtc,t[3]=n.pushError,t[4]=n.pushErrorCode,t[5]=f):f=t[5];let p;t[6]!==a||t[7]!==l||t[8]!==n?(p=[l,n,a],t[6]=a,t[7]=l,t[8]=n,t[9]=p):p=t[9],(0,R.useEffect)(f,p);let m;t[10]!==o||t[11]!==n.lastSyncUtc?(m=()=>{d.current=n.lastSyncUtc??null,u(!0),b(`sync`).catch(e=>{console.warn(`[receive] miss sync trigger failed`,e instanceof Error?e.message:e),u(!1),c.error(o({id:`1u-mAI`}))})},t[10]=o,t[11]=n.lastSyncUtc,t[12]=m):m=t[12];let h=m,g;t[13]!==h||t[14]!==l?(g=l?(0,z.jsxs)(s,{disabled:!0,"aria-busy":`true`,"data-testid":`share-receive-miss-sync-now`,children:[(0,z.jsx)(T,{icon:D,className:`size-4`,"aria-hidden":`true`}),(0,z.jsx)(r,{id:`EHu0x2`})]}):(0,z.jsxs)(s,{onClick:h,"data-testid":`share-receive-miss-sync-now`,children:[(0,z.jsx)(D,{className:`size-4`,"aria-hidden":`true`}),(0,z.jsx)(r,{id:`lb_UU4`})]}),t[13]=h,t[14]=l,t[15]=g):g=t[15];let _;t[16]===l?_=t[17]:(_=l?(0,z.jsx)(r,{id:`dXOolp`}):null,t[16]=l,t[17]=_);let v;t[18]===_?v=t[19]:(v=(0,z.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:`sr-only`,"data-testid":`share-receive-miss-sync-status`,children:_}),t[18]=_,t[19]=v);let y;return t[20]!==g||t[21]!==v?(y=(0,z.jsxs)(z.Fragment,{children:[g,v]}),t[20]=g,t[21]=v,t[22]=y):y=t[22],y}var Y=!1;function X(e){return!Y&&e!==null&&e.syncEnabled!==!0}function Z(e){return e===null?!1:e.hasRemote&&e.lastPullUtc!==void 0&&e.state!==`conflict`}function Q(e,t){let n=(0,L.c)(15),[r,i]=(0,R.useState)(!1),[a,o]=(0,R.useState)(null),[s,c]=(0,R.useState)(!1),l=(0,R.useRef)(null),u,d;n[0]!==t||n[1]!==r||n[2]!==e?(u=()=>{if(!r||(e?.lastPullUtc??null)===l.current)return;i(!1);let n=e?.lastPullOutcome??null;if(n===null){t?.();return}switch(n){case`refused`:case`error`:o(n);return;case`succeeded`:case`up-to-date`:if(X(e)){Y=!0,c(!0);return}t?.();return;case`conflict`:t?.();return;default:t?.();return}},d=[r,e,t],n[0]=t,n[1]=r,n[2]=e,n[3]=u,n[4]=d):(u=n[3],d=n[4]),(0,R.useEffect)(u,d);let f;n[5]===t?f=n[6]:(f=()=>{c(!1),t?.()},n[5]=t,n[6]=f);let p;n[7]===e?.lastPullUtc?p=n[8]:(p=()=>{l.current=e?.lastPullUtc??null,o(null),i(!0),b(`pull`).catch(e=>{console.warn(`[receive] miss pull trigger failed`,e instanceof Error?e.message:e),i(!1),o(`error`)})},n[7]=e?.lastPullUtc,n[8]=p);let m;return n[9]!==a||n[10]!==s||n[11]!==r||n[12]!==f||n[13]!==p?(m={pending:r,failure:a,offering:s,resolveOffer:f,start:p},n[9]=a,n[10]=s,n[11]=r,n[12]=f,n[13]=p,n[14]=m):m=n[14],m}function re(e){let t=(0,L.c)(10),{pending:n,onPull:i}=e,a;t[0]!==i||t[1]!==n?(a=n?(0,z.jsxs)(s,{disabled:!0,"aria-busy":`true`,"data-testid":`share-receive-miss-pull-now`,children:[(0,z.jsx)(T,{icon:D,className:`size-4`,"aria-hidden":`true`}),(0,z.jsx)(r,{id:`4uNLmk`})]}):(0,z.jsxs)(s,{onClick:i,"data-testid":`share-receive-miss-pull-now`,children:[(0,z.jsx)(u,{className:`size-4`,"aria-hidden":`true`}),(0,z.jsx)(r,{id:`fevEu0`})]}),t[0]=i,t[1]=n,t[2]=a):a=t[2];let o;t[3]===n?o=t[4]:(o=n?(0,z.jsx)(r,{id:`glG1TR`}):null,t[3]=n,t[4]=o);let c;t[5]===o?c=t[6]:(c=(0,z.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:`sr-only`,"data-testid":`share-receive-miss-pull-status`,children:o}),t[5]=o,t[6]=c);let l;return t[7]!==a||t[8]!==c?(l=(0,z.jsxs)(z.Fragment,{children:[a,c]}),t[7]=a,t[8]=c,t[9]=l):l=t[9],l}function ie(e){let t=(0,L.c)(18),{onResolve:n,strandedCommitCount:r}=e,i=f(),a=(0,R.useRef)(!1),o;t[0]===n?o=t[1]:(o=function(){a.current||(a.current=!0,n())},t[0]=n,t[1]=o);let s=o,c;t[2]===s?c=t[3]:(c={onApplied:s},t[2]=s,t[3]=c);let{confirmOpen:l,setConfirmOpen:u,onModeSelect:d,onConfirm:p}=y(i,`off`,c),m=(0,R.useRef)(!1),g,_;t[4]===d?(g=t[5],_=t[6]):(g=()=>{m.current||(m.current=!0,d(`follow`))},_=[d],t[4]=d,t[5]=g,t[6]=_),(0,R.useEffect)(g,_);let v;t[7]!==s||t[8]!==u?(v=e=>{u(e),e||s()},t[7]=s,t[8]=u,t[9]=v):v=t[9];let b;t[10]!==p||t[11]!==s?(b=()=>{p(),s()},t[10]=p,t[11]=s,t[12]=b):b=t[12];let x;return t[13]!==l||t[14]!==r||t[15]!==v||t[16]!==b?(x=(0,z.jsx)(h,{open:l,onOpenChange:v,onConfirm:b,variant:`follow`,strandedCommitCount:r}),t[13]=l,t[14]=r,t[15]=v,t[16]=b,t[17]=x):x=t[17],x}function ae(e){let t=(0,L.c)(108),{nav:n,state:a,onBrowseFolder:o,onOpenRenamed:c,onEnableAutoSync:l,onSyncCompleted:d,onPullApplied:f}=e,{_:p}=i(),h=j(),g=Q(h,f),y=n.branch,b;t[0]!==p||t[1]!==n.kind?(b=n.kind===`folder`?p({id:`ugoTXs`}):p({id:`XH30C4`}),t[0]=p,t[1]=n.kind,t[2]=b):b=t[2];let x=b;if(a.phase===`pending`){let e;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(T,{className:`size-5`,"aria-hidden":`true`}),(0,z.jsx)(r,{id:`c8jBgX`})]}),t[3]=e):e=t[3],e}let{resolution:S}=a,w,D;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,z.jsx)(C,{className:`size-4`,"aria-hidden":`true`}),D=(0,z.jsx)(r,{id:`hItdtk`}),t[4]=w,t[5]=D):(w=t[4],D=t[5]);let O;t[6]===o?O=t[7]:(O=(0,z.jsxs)(s,{variant:`outline`,onClick:o,"data-testid":`share-receive-miss-browse`,children:[w,D]}),t[6]=o,t[7]=O);let k=O,A,M,N,R=null;if(S.verdict===`renamed`){let e;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,z.jsx)(E,{className:`size-9`,"aria-hidden":`true`}),t[8]=e):e=t[8],A=e;let n;t[9]!==S.renamedTo||t[10]!==x?(n={0:S.renamedTo,targetNoun:x},t[9]=S.renamedTo,t[10]=x,t[11]=n):n=t[11];let i;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(i={0:(0,z.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})},t[12]=i):i=t[12];let a;t[13]===n?a=t[14]:(a=(0,z.jsx)(r,{id:`P0HC30`,values:n,components:i}),t[13]=n,t[14]=a),M=a;let o;t[15]!==c||t[16]!==S.renamedTo?(o=()=>c(S.renamedTo),t[15]=c,t[16]=S.renamedTo,t[17]=o):o=t[17];let l,u;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,z.jsx)(E,{className:`size-4`,"aria-hidden":`true`}),u=(0,z.jsx)(r,{id:`AItsE5`}),t[18]=l,t[19]=u):(l=t[18],u=t[19]);let d;t[20]===o?d=t[21]:(d=(0,z.jsxs)(s,{onClick:o,"data-testid":`share-receive-miss-open-renamed`,children:[l,u]}),t[20]=o,t[21]=d);let f;t[22]!==k||t[23]!==d?(f=(0,z.jsxs)(z.Fragment,{children:[d,k]}),t[22]=k,t[23]=d,t[24]=f):f=t[24],N=f}else if(S.verdict===`deleted`){let e;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,z.jsx)(I,{className:`size-9`,"aria-hidden":`true`}),t[25]=e):e=t[25],A=e;let n;t[26]!==y||t[27]!==x?(n={targetNoun:x,branch:y},t[26]=y,t[27]=x,t[28]=n):n=t[28];let i;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(i={0:(0,z.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})},t[29]=i):i=t[29];let a;t[30]===n?a=t[31]:(a=(0,z.jsx)(r,{id:`kpqWwG`,values:n,components:i}),t[30]=n,t[31]=a),M=a,N=k}else if(S.verdict===`never-on-branch`){let e;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,z.jsx)(F,{className:`size-9`,"aria-hidden":`true`}),t[32]=e):e=t[32],A=e;let n;t[33]!==y||t[34]!==x?(n={targetNoun:x,branch:y},t[33]=y,t[34]=x,t[35]=n):n=t[35];let i;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(i={0:(0,z.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})},t[36]=i):i=t[36];let a;t[37]===n?a=t[38]:(a=(0,z.jsx)(r,{id:`i9TPUi`,values:n,components:i}),t[37]=n,t[38]=a),M=a,N=k}else if(S.verdict===`changed-locally`){let e;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,z.jsx)(P,{className:`size-9`,"aria-hidden":`true`}),t[39]=e):e=t[39],A=e;let n=h?.syncEnabled===!0,i=h?.pushPermission?.checkStatus===`denied`||!!(h?.pushError||h?.pushErrorCode);if(n){let e;t[40]!==y||t[41]!==x?(e=y===null?(0,z.jsx)(r,{id:`RyIKxy`,values:{targetNoun:x}}):(0,z.jsx)(r,{id:`l6kpzR`,values:{targetNoun:x,branch:y},components:{0:(0,z.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}}),t[40]=y,t[41]=x,t[42]=e):e=t[42],M=e}else{let e;t[43]!==y||t[44]!==x?(e=y===null?(0,z.jsx)(r,{id:`UuYo7g`,values:{targetNoun:x}}):(0,z.jsx)(r,{id:`HoWElC`,values:{targetNoun:x,branch:y},components:{0:(0,z.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}}),t[43]=y,t[44]=x,t[45]=e):e=t[45],M=e}let a=null;if(h?.syncEnabled){let e;t[46]===h?e=t[47]:(e=ee(h),t[46]=h,t[47]=e);let n=e,r;t[48]!==n||t[49]!==h?(r=!n&&m(h.pausedReason),t[48]=n,t[49]=h,t[50]=r):r=t[50];let o=r,s=o?`w-full max-w-md text-balance text-1sm text-muted-foreground`:`sr-only`,c;t[51]!==o||t[52]!==h?(c=o?(0,z.jsx)(te,{status:h}):null,t[51]=o,t[52]=h,t[53]=c):c=t[53];let l;if(t[54]!==s||t[55]!==c?(l=(0,z.jsx)(`div`,{role:`status`,className:s,"data-testid":`share-receive-miss-sync-paused`,children:c}),t[54]=s,t[55]=c,t[56]=l):l=t[56],R=l,n&&!i){let e;t[57]!==d||t[58]!==h?(e=(0,z.jsx)(J,{status:h,onSyncCompleted:d}),t[57]=d,t[58]=h,t[59]=e):e=t[59],a=e}}else if(h!==null){let e;t[60]===l?e=t[61]:(e=(0,z.jsx)(q,{onEnabled:l}),t[60]=l,t[61]=e),a=e}let o;t[62]!==k||t[63]!==a?(o=(0,z.jsxs)(z.Fragment,{children:[a,k]}),t[62]=k,t[63]=a,t[64]=o):o=t[64],N=o}else{let e;t[65]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,z.jsx)(u,{className:`size-9`,"aria-hidden":`true`}),t[65]=e):e=t[65],A=e;let n;t[66]===h?n=t[67]:(n=Z(h),t[66]=h,t[67]=n);let i=n;if(i){let e;t[68]===y?e=t[69]:(e=y===null?(0,z.jsx)(r,{id:`gwEcOD`}):(0,z.jsx)(r,{id:`wvK7Ay`,values:{branch:y},components:{0:(0,z.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}}),t[68]=y,t[69]=e),M=e}else{let e;t[70]===y?e=t[71]:(e=y===null?(0,z.jsx)(r,{id:`Xewl6B`}):(0,z.jsx)(r,{id:`d1JjXo`,values:{branch:y},components:{0:(0,z.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}}),t[70]=y,t[71]=e),M=e}let a=g.failure===`refused`&&h?.pausedReason===`unsafe-incoming-symlinks`,o=a?`flex w-full max-w-md flex-col gap-2`:`contents`,s=g.failure===null?`sr-only`:`max-w-md text-balance text-1sm text-destructive`,c;t[72]!==g.failure||t[73]!==a?(c=a?(0,z.jsx)(v,{reason:`unsafe-incoming-symlinks`}):g.failure===`refused`?(0,z.jsx)(r,{id:`Xp7Kq4`}):g.failure===`error`?(0,z.jsx)(r,{id:`JG_8KT`}):null,t[72]=g.failure,t[73]=a,t[74]=c):c=t[74];let l;t[75]!==s||t[76]!==c?(l=(0,z.jsx)(`p`,{role:`alert`,className:s,"data-testid":`share-receive-miss-pull-error`,children:c}),t[75]=s,t[76]=c,t[77]=l):l=t[77];let d;t[78]!==a||t[79]!==h?.refusedSymlinkPaths?(d=a?(0,z.jsx)(_,{paths:h?.refusedSymlinkPaths}):null,t[78]=a,t[79]=h?.refusedSymlinkPaths,t[80]=d):d=t[80];let f;t[81]!==l||t[82]!==d||t[83]!==o?(f=(0,z.jsxs)(`div`,{className:o,children:[l,d]}),t[81]=l,t[82]=d,t[83]=o,t[84]=f):f=t[84],R=f;let p;t[85]!==i||t[86]!==g.pending||t[87]!==g.start?(p=i?(0,z.jsx)(re,{pending:g.pending,onPull:g.start}):null,t[85]=i,t[86]=g.pending,t[87]=g.start,t[88]=p):p=t[88];let m;t[89]!==g.offering||t[90]!==g.resolveOffer||t[91]!==h?.ahead?(m=g.offering?(0,z.jsx)(ie,{onResolve:g.resolveOffer,strandedCommitCount:h?.ahead??0}):null,t[89]=g.offering,t[90]=g.resolveOffer,t[91]=h?.ahead,t[92]=m):m=t[92];let b;t[93]!==k||t[94]!==p||t[95]!==m?(b=(0,z.jsxs)(z.Fragment,{children:[p,k,m]}),t[93]=k,t[94]=p,t[95]=m,t[96]=b):b=t[96],N=b}let B;t[97]===A?B=t[98]:(B=(0,z.jsx)(`div`,{className:`flex size-16 items-center justify-center rounded-full border bg-muted/40 text-muted-foreground`,children:A}),t[97]=A,t[98]=B);let V;t[99]===M?V=t[100]:(V=(0,z.jsx)(`p`,{className:`max-w-md text-balance text-base leading-6 text-foreground/90`,children:M}),t[99]=M,t[100]=V);let H;t[101]===N?H=t[102]:(H=(0,z.jsx)(`div`,{className:`flex flex-col-reverse gap-2 sm:flex-row sm:flex-wrap sm:justify-center`,children:N}),t[101]=N,t[102]=H);let U;return t[103]!==R||t[104]!==B||t[105]!==V||t[106]!==H?(U=(0,z.jsxs)(z.Fragment,{children:[B,V,R,H]}),t[103]=R,t[104]=B,t[105]=V,t[106]=H,t[107]=U):U=t[107],U}function $(e){return e.replace(/^\/+|\/+$/g,``)}function oe(e,t){if(t.kind===`folder`){if(A(e))return $(t.path)===``;let n=k(e);return n!==null&&$(n)===$(t.path)}let n=k(e);return n===null?!1:N(n)===N(t.path)}function se(){let e=null,t=new Set,n=!1;function r(){for(let e of t)e()}function i(t){e!==t&&(e=t,r())}function a(){e!==null&&(oe(window.location.hash,e)||i(null))}function o(){n||typeof window>`u`||(n=!0,window.addEventListener(`hashchange`,a))}return{arm(e){o(),i(e)},clear(){i(null)},getSnapshot(){return e},subscribe(e){return t.add(e),()=>{t.delete(e)}},dispose(){n&&typeof window<`u`&&(window.removeEventListener(`hashchange`,a),n=!1),i(null)}}}var ce=se();function le(e,t){if(e.contentRootDepth===void 0)return{...e,path:t,repositoryPath:t};let n=(e.repositoryPath??e.path).split(`/`).slice(0,e.contentRootDepth);return{...e,path:t,repositoryPath:[...n,...t===``?[]:t.split(`/`)].join(`/`)}}function ue(e,t){return e===null||e.kind!==`missing`||t===null||N(t.path)!==e.target?null:t}export{W as a,V as c,ae as i,le as n,G as o,ce as r,H as s,ue as t};
1
+ import{o as e}from"./chunk-CYidjpOJ.js";import{t}from"./jsx-runtime-BUgB2tll.js";import{t as n}from"./react-f2sANaYj.js";import{n as r,r as i}from"./dist-Nvb76hAm.js";import{t as a}from"./compiler-runtime-BfE3aGVn.js";import{t as o}from"./utils-CPqDy6Hr.js";import{t as s}from"./button-DzgjsZzC.js";import{n as c}from"./dist-Bs8bPT30.js";import{t as l}from"./createLucideIcon-CB3nKwwz.js";import{D as u,S as d,T as f,b as p,d as m,h,i as g,n as _,t as v,w as y,y as b}from"./SyncStatusBadge-BW0YVl2z.js";import{t as x}from"./arrow-up-right-BuM5_PNk.js";import{t as S}from"./check-x3deoXUY.js";import{t as C}from"./folder-open-a_XLAh8h.js";import{t as w}from"./info-CTtlruwn.js";import{t as T}from"./spinner-CeYJkImG.js";import{n as E}from"./miss-dialog-store-9W8qZPsI.js";import{t as D}from"./refresh-cw-kK6tPJpw.js";import{t as O}from"./triangle-alert-COKT45NU.js";import{a as k,h as A}from"./doc-hash-BDtDlqpM.js";import{t as j}from"./use-git-sync-status-D8KvdiBj.js";import{t as M}from"./external-link-CV9ONfls.js";import{r as N}from"./doc-paths-BxQo1KRQ.js";var P=l(`file-pen`,[[`path`,{d:`M12.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v9.34`,key:`o6klzx`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10.378 12.622a1 1 0 0 1 3 3.003L8.36 20.637a2 2 0 0 1-.854.506l-2.867.837a.5.5 0 0 1-.62-.62l.836-2.869a2 2 0 0 1 .506-.853z`,key:`zhnas1`}]]),F=l(`file-question-mark`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}],[`path`,{d:`M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3`,key:`mhlwft`}]]),I=l(`file-x-corner`,[[`path`,{d:`M11 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5`,key:`1jo35a`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m15 17 5 5`,key:`36xl1x`}],[`path`,{d:`m20 17-5 5`,key:`vdz27y`}]]),L=a(),R=e(n(),1),z=t(),B=`https://git-scm.com/docs/git-push`;function V(e,t){return e===`empty`?!0:!(e!==`stale`&&e!==`absent`||e===`stale`&&t?.syncEnabled===!0)}function ee(e){if(!e)return!1;let t=g(e);return t!==`dormant`&&t!==`disabled`&&t!==`auth-error`&&t!==`conflict`}function te(e){let t=(0,L.c)(11),{status:n,className:r}=e,i=n?.pausedReason;if(!m(i))return null;let a;t[0]===r?a=t[1]:(a=o(`flex min-w-0 flex-col gap-1.5`,r),t[0]=r,t[1]=a);let s;t[2]===i?s=t[3]:(s=(0,z.jsx)(`span`,{children:(0,z.jsx)(v,{reason:i})}),t[2]=i,t[3]=s);let c;t[4]!==i||t[5]!==n?.refusedSymlinkPaths?(c=i===`unsafe-incoming-symlinks`?(0,z.jsx)(_,{paths:n?.refusedSymlinkPaths}):null,t[4]=i,t[5]=n?.refusedSymlinkPaths,t[6]=c):c=t[6];let l;return t[7]!==a||t[8]!==s||t[9]!==c?(l=(0,z.jsxs)(`div`,{className:a,"data-testid":`sync-now-paused-notice`,children:[s,c]}),t[7]=a,t[8]=s,t[9]=c,t[10]=l):l=t[10],l}function H(e){let t=(0,L.c)(52),{freshness:n,status:a,kind:o}=e,{_:c}=i(),{confirmOpen:l,setConfirmOpen:u,onToggleRequest:f,onConfirm:m}=p(d()),[g,_]=(0,R.useState)(`idle`),v=(0,R.useRef)(null),y,C;if(t[0]!==a||t[1]!==g?(y=()=>{if(!(g!==`pending`||!a)){if(a.pushError||a.pushErrorCode){_(`idle`);return}(a.lastSyncUtc??null)!==v.current&&_(`synced`)}},C=[g,a],t[0]=a,t[1]=g,t[2]=y,t[3]=C):(y=t[2],C=t[3]),(0,R.useEffect)(y,C),!V(n,a))return null;if(n===`empty`){let e;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,z.jsx)(O,{className:`mt-0.5 size-3.5 shrink-0`,"aria-hidden":`true`}),t[4]=e):e=t[4];let n;t[5]===c?n=t[6]:(n=c({id:`eazHgv`}),t[5]=c,t[6]=n);let r;return t[7]===n?r=t[8]:(r=(0,z.jsxs)(`div`,{className:`flex items-start gap-2 rounded-md border border-dashed border-border bg-muted/40 p-2 text-xs text-muted-foreground`,"data-testid":`share-freshness-row`,children:[e,(0,z.jsx)(`span`,{children:n})]}),t[7]=n,t[8]=r),r}if(g===`synced`){let e;return t[9]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,z.jsxs)(`div`,{className:`flex items-start gap-2 rounded-md border border-dashed border-border bg-muted/40 p-2 text-xs text-muted-foreground`,"data-testid":`share-freshness-row`,children:[(0,z.jsx)(S,{className:`mt-0.5 size-3.5 shrink-0`,"aria-hidden":`true`}),(0,z.jsx)(`span`,{children:(0,z.jsx)(r,{id:`fxbCNQ`})})]}),t[9]=e):e=t[9],e}let E=a?.syncEnabled===!0,k=a?.pushPermission?.checkStatus===`denied`,A=!!(a?.pushError||a?.pushErrorCode),j=k||A,M=n===`absent`&&!E,N;if(n===`absent`&&!E){let e;t[10]!==c||t[11]!==o?(e=c(o===`folder`?{id:`PrJYSN`}:{id:`3BnyYc`}),t[10]=c,t[11]=o,t[12]=e):e=t[12],N=e}else if(n===`stale`){let e;t[13]!==c||t[14]!==o?(e=c(o===`folder`?{id:`Gt4gOO`}:{id:`2IYGkU`}),t[13]=c,t[14]=o,t[15]=e):e=t[15],N=e}else{let e;t[16]!==c||t[17]!==o?(e=c(o===`folder`?{id:`nqV0Kk`}:{id:`gwykHF`}),t[16]=c,t[17]=o,t[18]=e):e=t[18],N=e}let P;t[19]!==c||t[20]!==A||t[21]!==k?(P=k?c({id:`9OIqw4`}):A?c({id:`K6MQQk`}):null,t[19]=c,t[20]=A,t[21]=k,t[22]=P):P=t[22];let F=P,I;t[23]===a?.lastSyncUtc?I=t[24]:(I=()=>{v.current=a?.lastSyncUtc??null,_(`pending`),b(`sync`).catch(e=>{console.warn(`[share-freshness] sync trigger failed`,e instanceof Error?e.message:e),_(`idle`)})},t[23]=a?.lastSyncUtc,t[24]=I);let H=I,W=M?O:w,G;t[25]===W?G=t[26]:(G=(0,z.jsx)(W,{className:`mt-0.5 size-3.5 shrink-0`,"aria-hidden":`true`}),t[25]=W,t[26]=G);let K;t[27]===N?K=t[28]:(K=(0,z.jsx)(`span`,{children:N}),t[27]=N,t[28]=K);let q;t[29]===F?q=t[30]:(q=F?(0,z.jsx)(`span`,{children:F}):null,t[29]=F,t[30]=q);let J;t[31]!==j||t[32]!==H||t[33]!==f||t[34]!==a||t[35]!==E||t[36]!==g?(J=j?null:E?ee(a)?(0,z.jsx)(`div`,{children:g===`pending`?(0,z.jsxs)(s,{variant:`outline`,size:`xs`,disabled:!0,children:[(0,z.jsx)(T,{icon:D,className:`size-3 shrink-0`,"aria-hidden":`true`}),(0,z.jsx)(r,{id:`EHu0x2`})]}):(0,z.jsx)(s,{variant:`outline`,size:`xs`,onClick:H,children:(0,z.jsx)(r,{id:`lb_UU4`})})}):(0,z.jsx)(te,{status:a}):(0,z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1.5`,children:[(0,z.jsx)(s,{variant:`outline`,size:`xs`,onClick:()=>f(!0),children:(0,z.jsx)(r,{id:`pPiV8s`})}),(0,z.jsxs)(`a`,{href:B,target:`_blank`,rel:`noopener noreferrer`,onClick:ne,onAuxClick:U,className:`inline-flex items-center gap-1 transition-colors hover:text-primary`,children:[(0,z.jsx)(r,{id:`GLxIKR`}),(0,z.jsx)(x,{className:`size-3 shrink-0`,"aria-hidden":`true`})]})]}),t[31]=j,t[32]=H,t[33]=f,t[34]=a,t[35]=E,t[36]=g,t[37]=J):J=t[37];let Y;t[38]!==K||t[39]!==q||t[40]!==J?(Y=(0,z.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1.5`,children:[K,q,J]}),t[38]=K,t[39]=q,t[40]=J,t[41]=Y):Y=t[41];let X;t[42]!==G||t[43]!==Y?(X=(0,z.jsxs)(`div`,{className:`flex items-start gap-2 rounded-md border border-dashed border-border bg-muted/40 p-2 text-xs text-muted-foreground`,"data-testid":`share-freshness-row`,children:[G,Y]}),t[42]=G,t[43]=Y,t[44]=X):X=t[44];let Z;t[45]!==l||t[46]!==m||t[47]!==u?(Z=(0,z.jsx)(h,{open:l,onOpenChange:u,onConfirm:m}),t[45]=l,t[46]=m,t[47]=u,t[48]=Z):Z=t[48];let Q;return t[49]!==X||t[50]!==Z?(Q=(0,z.jsxs)(z.Fragment,{children:[X,Z]}),t[49]=X,t[50]=Z,t[51]=Q):Q=t[51],Q}function U(e){return M(e,B)}function ne(e){return M(e,B)}function W(e){let t=e.lastIndexOf(`/`);return t===-1?``:e.slice(0,t)}function G(e){let t=(0,L.c)(17),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={phase:`pending`},t[0]=n):n=t[0];let[r,i]=(0,R.useState)(n),[a,o]=(0,R.useState)(0),s=e.branch,c;t[1]!==s||t[2]!==e.contentRootDepth||t[3]!==e.kind||t[4]!==e.path||t[5]!==e.repositoryPath?(c=()=>{let t=window.okDesktop??null;if(!t||s===null){i({phase:`resolved`,resolution:{verdict:`unknown`}});return}let n=!1;return t.project.fetchTargetStatus({projectPath:t.config.projectPath,branch:s,path:e.repositoryPath??e.path,kind:e.kind,...e.contentRootDepth===void 0?{}:{contentRootDepth:e.contentRootDepth}}).then(e=>{n||i({phase:`resolved`,resolution:e??{verdict:`unknown`}})}).catch(e=>{n||(console.warn(`[receive] miss target-status fetch failed`,e instanceof Error?e.message:e),i({phase:`resolved`,resolution:{verdict:`unknown`}}))}),()=>{n=!0}},t[1]=s,t[2]=e.contentRootDepth,t[3]=e.kind,t[4]=e.path,t[5]=e.repositoryPath,t[6]=c):c=t[6];let l;t[7]!==s||t[8]!==a||t[9]!==e.contentRootDepth||t[10]!==e.kind||t[11]!==e.path||t[12]!==e.repositoryPath?(l=[s,e.kind,e.path,e.repositoryPath,e.contentRootDepth,a],t[7]=s,t[8]=a,t[9]=e.contentRootDepth,t[10]=e.kind,t[11]=e.path,t[12]=e.repositoryPath,t[13]=l):l=t[13],(0,R.useEffect)(c,l);let u;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>{i({phase:`pending`}),o(K)},t[14]=u):u=t[14];let d;return t[15]===r?d=t[16]:(d={state:r,refetch:u},t[15]=r,t[16]=d),d}function K(e){return e+1}function q(e){let t=(0,L.c)(15),{onEnabled:n}=e,i=d(),a;t[0]===n?a=t[1]:(a={onEnabled:n},t[0]=n,t[1]=a);let{confirmOpen:o,setConfirmOpen:c,onToggleRequest:l,onConfirm:u}=p(i,a),f;t[2]===l?f=t[3]:(f=()=>l(!0),t[2]=l,t[3]=f);let m,g;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,z.jsx)(D,{className:`size-4`,"aria-hidden":`true`}),g=(0,z.jsx)(r,{id:`pPiV8s`}),t[4]=m,t[5]=g):(m=t[4],g=t[5]);let _;t[6]===f?_=t[7]:(_=(0,z.jsxs)(s,{onClick:f,"data-testid":`share-receive-miss-enable-sync`,children:[m,g]}),t[6]=f,t[7]=_);let v;t[8]!==o||t[9]!==u||t[10]!==c?(v=(0,z.jsx)(h,{open:o,onOpenChange:c,onConfirm:u}),t[8]=o,t[9]=u,t[10]=c,t[11]=v):v=t[11];let y;return t[12]!==_||t[13]!==v?(y=(0,z.jsxs)(z.Fragment,{children:[_,v]}),t[12]=_,t[13]=v,t[14]=y):y=t[14],y}function J(e){let t=(0,L.c)(23),{status:n,onSyncCompleted:a}=e,{_:o}=i(),[l,u]=(0,R.useState)(!1),d=(0,R.useRef)(null),f;t[0]!==a||t[1]!==l||t[2]!==n.lastSyncUtc||t[3]!==n.pushError||t[4]!==n.pushErrorCode?(f=()=>{if(l){if(n.pushError||n.pushErrorCode){u(!1);return}(n.lastSyncUtc??null)!==d.current&&(u(!1),a?.())}},t[0]=a,t[1]=l,t[2]=n.lastSyncUtc,t[3]=n.pushError,t[4]=n.pushErrorCode,t[5]=f):f=t[5];let p;t[6]!==a||t[7]!==l||t[8]!==n?(p=[l,n,a],t[6]=a,t[7]=l,t[8]=n,t[9]=p):p=t[9],(0,R.useEffect)(f,p);let m;t[10]!==o||t[11]!==n.lastSyncUtc?(m=()=>{d.current=n.lastSyncUtc??null,u(!0),b(`sync`).catch(e=>{console.warn(`[receive] miss sync trigger failed`,e instanceof Error?e.message:e),u(!1),c.error(o({id:`1u-mAI`}))})},t[10]=o,t[11]=n.lastSyncUtc,t[12]=m):m=t[12];let h=m,g;t[13]!==h||t[14]!==l?(g=l?(0,z.jsxs)(s,{disabled:!0,"aria-busy":`true`,"data-testid":`share-receive-miss-sync-now`,children:[(0,z.jsx)(T,{icon:D,className:`size-4`,"aria-hidden":`true`}),(0,z.jsx)(r,{id:`EHu0x2`})]}):(0,z.jsxs)(s,{onClick:h,"data-testid":`share-receive-miss-sync-now`,children:[(0,z.jsx)(D,{className:`size-4`,"aria-hidden":`true`}),(0,z.jsx)(r,{id:`lb_UU4`})]}),t[13]=h,t[14]=l,t[15]=g):g=t[15];let _;t[16]===l?_=t[17]:(_=l?(0,z.jsx)(r,{id:`dXOolp`}):null,t[16]=l,t[17]=_);let v;t[18]===_?v=t[19]:(v=(0,z.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:`sr-only`,"data-testid":`share-receive-miss-sync-status`,children:_}),t[18]=_,t[19]=v);let y;return t[20]!==g||t[21]!==v?(y=(0,z.jsxs)(z.Fragment,{children:[g,v]}),t[20]=g,t[21]=v,t[22]=y):y=t[22],y}var Y=!1;function X(e){return!Y&&e!==null&&e.syncEnabled!==!0}function Z(e){return e===null?!1:e.hasRemote&&e.lastPullUtc!==void 0&&e.state!==`conflict`}function Q(e,t){let n=(0,L.c)(15),[r,i]=(0,R.useState)(!1),[a,o]=(0,R.useState)(null),[s,c]=(0,R.useState)(!1),l=(0,R.useRef)(null),u,d;n[0]!==t||n[1]!==r||n[2]!==e?(u=()=>{if(!r||(e?.lastPullUtc??null)===l.current)return;i(!1);let n=e?.lastPullOutcome??null;if(n===null){t?.();return}switch(n){case`refused`:case`error`:o(n);return;case`succeeded`:case`up-to-date`:if(X(e)){Y=!0,c(!0);return}t?.();return;case`conflict`:t?.();return;default:t?.();return}},d=[r,e,t],n[0]=t,n[1]=r,n[2]=e,n[3]=u,n[4]=d):(u=n[3],d=n[4]),(0,R.useEffect)(u,d);let f;n[5]===t?f=n[6]:(f=()=>{c(!1),t?.()},n[5]=t,n[6]=f);let p;n[7]===e?.lastPullUtc?p=n[8]:(p=()=>{l.current=e?.lastPullUtc??null,o(null),i(!0),b(`pull`).catch(e=>{console.warn(`[receive] miss pull trigger failed`,e instanceof Error?e.message:e),i(!1),o(`error`)})},n[7]=e?.lastPullUtc,n[8]=p);let m;return n[9]!==a||n[10]!==s||n[11]!==r||n[12]!==f||n[13]!==p?(m={pending:r,failure:a,offering:s,resolveOffer:f,start:p},n[9]=a,n[10]=s,n[11]=r,n[12]=f,n[13]=p,n[14]=m):m=n[14],m}function re(e){let t=(0,L.c)(10),{pending:n,onPull:i}=e,a;t[0]!==i||t[1]!==n?(a=n?(0,z.jsxs)(s,{disabled:!0,"aria-busy":`true`,"data-testid":`share-receive-miss-pull-now`,children:[(0,z.jsx)(T,{icon:D,className:`size-4`,"aria-hidden":`true`}),(0,z.jsx)(r,{id:`4uNLmk`})]}):(0,z.jsxs)(s,{onClick:i,"data-testid":`share-receive-miss-pull-now`,children:[(0,z.jsx)(u,{className:`size-4`,"aria-hidden":`true`}),(0,z.jsx)(r,{id:`fevEu0`})]}),t[0]=i,t[1]=n,t[2]=a):a=t[2];let o;t[3]===n?o=t[4]:(o=n?(0,z.jsx)(r,{id:`glG1TR`}):null,t[3]=n,t[4]=o);let c;t[5]===o?c=t[6]:(c=(0,z.jsx)(`span`,{role:`status`,"aria-live":`polite`,className:`sr-only`,"data-testid":`share-receive-miss-pull-status`,children:o}),t[5]=o,t[6]=c);let l;return t[7]!==a||t[8]!==c?(l=(0,z.jsxs)(z.Fragment,{children:[a,c]}),t[7]=a,t[8]=c,t[9]=l):l=t[9],l}function ie(e){let t=(0,L.c)(18),{onResolve:n,strandedCommitCount:r}=e,i=f(),a=(0,R.useRef)(!1),o;t[0]===n?o=t[1]:(o=function(){a.current||(a.current=!0,n())},t[0]=n,t[1]=o);let s=o,c;t[2]===s?c=t[3]:(c={onApplied:s},t[2]=s,t[3]=c);let{confirmOpen:l,setConfirmOpen:u,onModeSelect:d,onConfirm:p}=y(i,`off`,c),m=(0,R.useRef)(!1),g,_;t[4]===d?(g=t[5],_=t[6]):(g=()=>{m.current||(m.current=!0,d(`follow`))},_=[d],t[4]=d,t[5]=g,t[6]=_),(0,R.useEffect)(g,_);let v;t[7]!==s||t[8]!==u?(v=e=>{u(e),e||s()},t[7]=s,t[8]=u,t[9]=v):v=t[9];let b;t[10]!==p||t[11]!==s?(b=()=>{p(),s()},t[10]=p,t[11]=s,t[12]=b):b=t[12];let x;return t[13]!==l||t[14]!==r||t[15]!==v||t[16]!==b?(x=(0,z.jsx)(h,{open:l,onOpenChange:v,onConfirm:b,variant:`follow`,strandedCommitCount:r}),t[13]=l,t[14]=r,t[15]=v,t[16]=b,t[17]=x):x=t[17],x}function ae(e){let t=(0,L.c)(108),{nav:n,state:a,onBrowseFolder:o,onOpenRenamed:c,onEnableAutoSync:l,onSyncCompleted:d,onPullApplied:f}=e,{_:p}=i(),h=j(),g=Q(h,f),y=n.branch,b;t[0]!==p||t[1]!==n.kind?(b=n.kind===`folder`?p({id:`ugoTXs`}):p({id:`XH30C4`}),t[0]=p,t[1]=n.kind,t[2]=b):b=t[2];let x=b;if(a.phase===`pending`){let e;return t[3]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(T,{className:`size-5`,"aria-hidden":`true`}),(0,z.jsx)(r,{id:`c8jBgX`})]}),t[3]=e):e=t[3],e}let{resolution:S}=a,w,D;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(w=(0,z.jsx)(C,{className:`size-4`,"aria-hidden":`true`}),D=(0,z.jsx)(r,{id:`hItdtk`}),t[4]=w,t[5]=D):(w=t[4],D=t[5]);let O;t[6]===o?O=t[7]:(O=(0,z.jsxs)(s,{variant:`outline`,onClick:o,"data-testid":`share-receive-miss-browse`,children:[w,D]}),t[6]=o,t[7]=O);let k=O,A,M,N,R=null;if(S.verdict===`renamed`){let e;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,z.jsx)(E,{className:`size-9`,"aria-hidden":`true`}),t[8]=e):e=t[8],A=e;let n;t[9]!==S.renamedTo||t[10]!==x?(n={0:S.renamedTo,targetNoun:x},t[9]=S.renamedTo,t[10]=x,t[11]=n):n=t[11];let i;t[12]===Symbol.for(`react.memo_cache_sentinel`)?(i={0:(0,z.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})},t[12]=i):i=t[12];let a;t[13]===n?a=t[14]:(a=(0,z.jsx)(r,{id:`P0HC30`,values:n,components:i}),t[13]=n,t[14]=a),M=a;let o;t[15]!==c||t[16]!==S.renamedTo?(o=()=>c(S.renamedTo),t[15]=c,t[16]=S.renamedTo,t[17]=o):o=t[17];let l,u;t[18]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,z.jsx)(E,{className:`size-4`,"aria-hidden":`true`}),u=(0,z.jsx)(r,{id:`AItsE5`}),t[18]=l,t[19]=u):(l=t[18],u=t[19]);let d;t[20]===o?d=t[21]:(d=(0,z.jsxs)(s,{onClick:o,"data-testid":`share-receive-miss-open-renamed`,children:[l,u]}),t[20]=o,t[21]=d);let f;t[22]!==k||t[23]!==d?(f=(0,z.jsxs)(z.Fragment,{children:[d,k]}),t[22]=k,t[23]=d,t[24]=f):f=t[24],N=f}else if(S.verdict===`deleted`){let e;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,z.jsx)(I,{className:`size-9`,"aria-hidden":`true`}),t[25]=e):e=t[25],A=e;let n;t[26]!==y||t[27]!==x?(n={targetNoun:x,branch:y},t[26]=y,t[27]=x,t[28]=n):n=t[28];let i;t[29]===Symbol.for(`react.memo_cache_sentinel`)?(i={0:(0,z.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})},t[29]=i):i=t[29];let a;t[30]===n?a=t[31]:(a=(0,z.jsx)(r,{id:`kpqWwG`,values:n,components:i}),t[30]=n,t[31]=a),M=a,N=k}else if(S.verdict===`never-on-branch`){let e;t[32]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,z.jsx)(F,{className:`size-9`,"aria-hidden":`true`}),t[32]=e):e=t[32],A=e;let n;t[33]!==y||t[34]!==x?(n={targetNoun:x,branch:y},t[33]=y,t[34]=x,t[35]=n):n=t[35];let i;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(i={0:(0,z.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})},t[36]=i):i=t[36];let a;t[37]===n?a=t[38]:(a=(0,z.jsx)(r,{id:`i9TPUi`,values:n,components:i}),t[37]=n,t[38]=a),M=a,N=k}else if(S.verdict===`changed-locally`){let e;t[39]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,z.jsx)(P,{className:`size-9`,"aria-hidden":`true`}),t[39]=e):e=t[39],A=e;let n=h?.syncEnabled===!0,i=h?.pushPermission?.checkStatus===`denied`||!!(h?.pushError||h?.pushErrorCode);if(n){let e;t[40]!==y||t[41]!==x?(e=y===null?(0,z.jsx)(r,{id:`RyIKxy`,values:{targetNoun:x}}):(0,z.jsx)(r,{id:`l6kpzR`,values:{targetNoun:x,branch:y},components:{0:(0,z.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}}),t[40]=y,t[41]=x,t[42]=e):e=t[42],M=e}else{let e;t[43]!==y||t[44]!==x?(e=y===null?(0,z.jsx)(r,{id:`UuYo7g`,values:{targetNoun:x}}):(0,z.jsx)(r,{id:`HoWElC`,values:{targetNoun:x,branch:y},components:{0:(0,z.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}}),t[43]=y,t[44]=x,t[45]=e):e=t[45],M=e}let a=null;if(h?.syncEnabled){let e;t[46]===h?e=t[47]:(e=ee(h),t[46]=h,t[47]=e);let n=e,r;t[48]!==n||t[49]!==h?(r=!n&&m(h.pausedReason),t[48]=n,t[49]=h,t[50]=r):r=t[50];let o=r,s=o?`w-full max-w-md text-balance text-1sm text-muted-foreground`:`sr-only`,c;t[51]!==o||t[52]!==h?(c=o?(0,z.jsx)(te,{status:h}):null,t[51]=o,t[52]=h,t[53]=c):c=t[53];let l;if(t[54]!==s||t[55]!==c?(l=(0,z.jsx)(`div`,{role:`status`,className:s,"data-testid":`share-receive-miss-sync-paused`,children:c}),t[54]=s,t[55]=c,t[56]=l):l=t[56],R=l,n&&!i){let e;t[57]!==d||t[58]!==h?(e=(0,z.jsx)(J,{status:h,onSyncCompleted:d}),t[57]=d,t[58]=h,t[59]=e):e=t[59],a=e}}else if(h!==null){let e;t[60]===l?e=t[61]:(e=(0,z.jsx)(q,{onEnabled:l}),t[60]=l,t[61]=e),a=e}let o;t[62]!==k||t[63]!==a?(o=(0,z.jsxs)(z.Fragment,{children:[a,k]}),t[62]=k,t[63]=a,t[64]=o):o=t[64],N=o}else{let e;t[65]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,z.jsx)(u,{className:`size-9`,"aria-hidden":`true`}),t[65]=e):e=t[65],A=e;let n;t[66]===h?n=t[67]:(n=Z(h),t[66]=h,t[67]=n);let i=n;if(i){let e;t[68]===y?e=t[69]:(e=y===null?(0,z.jsx)(r,{id:`gwEcOD`}):(0,z.jsx)(r,{id:`wvK7Ay`,values:{branch:y},components:{0:(0,z.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}}),t[68]=y,t[69]=e),M=e}else{let e;t[70]===y?e=t[71]:(e=y===null?(0,z.jsx)(r,{id:`Xewl6B`}):(0,z.jsx)(r,{id:`d1JjXo`,values:{branch:y},components:{0:(0,z.jsx)(`code`,{className:`rounded-sm bg-muted px-1 py-0.5 text-foreground/80`})}}),t[70]=y,t[71]=e),M=e}let a=g.failure===`refused`&&h?.pausedReason===`unsafe-incoming-symlinks`,o=a?`flex w-full max-w-md flex-col gap-2`:`contents`,s=g.failure===null?`sr-only`:`max-w-md text-balance text-1sm text-destructive`,c;t[72]!==g.failure||t[73]!==a?(c=a?(0,z.jsx)(v,{reason:`unsafe-incoming-symlinks`}):g.failure===`refused`?(0,z.jsx)(r,{id:`Xp7Kq4`}):g.failure===`error`?(0,z.jsx)(r,{id:`JG_8KT`}):null,t[72]=g.failure,t[73]=a,t[74]=c):c=t[74];let l;t[75]!==s||t[76]!==c?(l=(0,z.jsx)(`p`,{role:`alert`,className:s,"data-testid":`share-receive-miss-pull-error`,children:c}),t[75]=s,t[76]=c,t[77]=l):l=t[77];let d;t[78]!==a||t[79]!==h?.refusedSymlinkPaths?(d=a?(0,z.jsx)(_,{paths:h?.refusedSymlinkPaths}):null,t[78]=a,t[79]=h?.refusedSymlinkPaths,t[80]=d):d=t[80];let f;t[81]!==l||t[82]!==d||t[83]!==o?(f=(0,z.jsxs)(`div`,{className:o,children:[l,d]}),t[81]=l,t[82]=d,t[83]=o,t[84]=f):f=t[84],R=f;let p;t[85]!==i||t[86]!==g.pending||t[87]!==g.start?(p=i?(0,z.jsx)(re,{pending:g.pending,onPull:g.start}):null,t[85]=i,t[86]=g.pending,t[87]=g.start,t[88]=p):p=t[88];let m;t[89]!==g.offering||t[90]!==g.resolveOffer||t[91]!==h?.ahead?(m=g.offering?(0,z.jsx)(ie,{onResolve:g.resolveOffer,strandedCommitCount:h?.ahead??0}):null,t[89]=g.offering,t[90]=g.resolveOffer,t[91]=h?.ahead,t[92]=m):m=t[92];let b;t[93]!==k||t[94]!==p||t[95]!==m?(b=(0,z.jsxs)(z.Fragment,{children:[p,k,m]}),t[93]=k,t[94]=p,t[95]=m,t[96]=b):b=t[96],N=b}let B;t[97]===A?B=t[98]:(B=(0,z.jsx)(`div`,{className:`flex size-16 items-center justify-center rounded-full border bg-muted/40 text-muted-foreground`,children:A}),t[97]=A,t[98]=B);let V;t[99]===M?V=t[100]:(V=(0,z.jsx)(`p`,{className:`max-w-md text-balance text-base leading-6 text-foreground/90`,children:M}),t[99]=M,t[100]=V);let H;t[101]===N?H=t[102]:(H=(0,z.jsx)(`div`,{className:`flex flex-col-reverse gap-2 sm:flex-row sm:flex-wrap sm:justify-center`,children:N}),t[101]=N,t[102]=H);let U;return t[103]!==R||t[104]!==B||t[105]!==V||t[106]!==H?(U=(0,z.jsxs)(z.Fragment,{children:[B,V,R,H]}),t[103]=R,t[104]=B,t[105]=V,t[106]=H,t[107]=U):U=t[107],U}function $(e){return e.replace(/^\/+|\/+$/g,``)}function oe(e,t){if(t.kind===`folder`){if(A(e))return $(t.path)===``;let n=k(e);return n!==null&&$(n)===$(t.path)}let n=k(e);return n===null?!1:N(n)===N(t.path)}function se(){let e=null,t=new Set,n=!1;function r(){for(let e of t)e()}function i(t){e!==t&&(e=t,r())}function a(){e!==null&&(oe(window.location.hash,e)||i(null))}function o(){n||typeof window>`u`||(n=!0,window.addEventListener(`hashchange`,a))}return{arm(e){o(),i(e)},clear(){i(null)},getSnapshot(){return e},subscribe(e){return t.add(e),()=>{t.delete(e)}},dispose(){n&&typeof window<`u`&&(window.removeEventListener(`hashchange`,a),n=!1),i(null)}}}var ce=se();function le(e,t){if(e.contentRootDepth===void 0)return{...e,path:t,repositoryPath:t};let n=(e.repositoryPath??e.path).split(`/`).slice(0,e.contentRootDepth);return{...e,path:t,repositoryPath:[...n,...t===``?[]:t.split(`/`)].join(`/`)}}function ue(e,t){return e===null||e.kind!==`missing`||t===null||N(t.path)!==e.target?null:t}export{W as a,V as c,ae as i,le as n,G as o,ce as r,H as s,ue as t};
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./angular-html-CK8PtorN.js","./chunk-CYidjpOJ.js","./html-B5umRcfp.js","./css-1GA9sewS.js","./javascript-3_t04LfW.js","./angular-ts-BLW1UrOp.js","./scss-_adrYBhZ.js","./apl-wB_JK4S0.js","./json-vyNcbgn3.js","./xml-B4IcU219.js","./java-B_eaSS3U.js","./astro-CpGGPo2x.js","./postcss-Ds2-0Skr.js","./tsx-Dsg_3XHP.js","./typescript-BaB3Lt2q.js","./blade-C6tIfL8V.js","./html-derivative-G-_NilDD.js","./sql-qyIX8k-y.js","./bsl-DpGQYnAh.js","./sdbl-dREcIoXo.js","./c-D9VYP6cK.js","./cairo-DTxTU_Gh.js","./python-BryqnXmh.js","./cobol-Bpomdo6w.js","./coffee-87VuqaZl.js","./cpp-Dr0GYyuf.js","./glsl-CRLAWcC3.js","./regexp-B5HnoHnp.js","./crystal-D0w2-E3h.js","./shellscript-DuS0zF19.js","./docker-2mLFFUe5.js","./edge-DcDLydN0.js","./elixir-BQZ1fhW7.js","./elm-CV0LF9wY.js","./erb-B5kCgeZf.js","./ruby-CMVuz7k8.js","./graphql-CCKk5dWV.js","./jsx-Ln1Fej2G.js","./haml-BCUAgZhj.js","./lua-mHd2uc6T.js","./yaml-BQ3IebHW.js","./erlang-BNbOR8p0.js","./markdown-DuSbcbH1.js","./fortran-fixed-form-0ydtb2Mk.js","./fortran-free-form-xiF_JT3e.js","./fsharp-ua24taVz.js","./gdresource-rcpgckuK.js","./gdscript-Dkj9lj84.js","./gdshader-D2JrIrDz.js","./git-commit-CAryLfC_.js","./diff-BZHrrlix.js","./git-rebase-D3Kvr3CE.js","./glimmer-js-CdUvG4jj.js","./glimmer-ts-C-YJf7n-.js","./hack-BAqippsy.js","./handlebars-CxKXBtuA.js","./http-DNKXWcPb.js","./hurl-CpTNGCbU.js","./csv-Do_TBA6N.js","./hxml-BGbRhBmd.js","./haxe-CJh0z8_d.js","./jinja-CpNow-ts.js","./jison-c0C4iMp1.js","./julia-Be_LR5tB.js","./r-CoU3FuLf.js","./just-BgwKwgRg.js","./perl-Bs8o0kZK.js","./latex-f0pnZngS.js","./tex-gWbfubG8.js","./liquid-B0tGGcJ8.js","./marko-nkrdD-l1.js","./less-3PufXCgu.js","./mdc-Dq4a4VUV.js","./nextflow-CnD9lcfD.js","./nextflow-groovy-DTz-pJto.js","./nginx-Bx3KG4vk.js","./nim-DyW8ZiKP.js","./php-DwGavu8h.js","./pug-D6nkG3Ds.js","./qml-C2nf0b0h.js","./razor-BfRtnDsM.js","./csharp-CcaHybct.js","./rst-BjoOfQ5E.js","./cmake-CrL6IQuG.js","./sas-CzS23PTX.js","./shaderlab-CKdPDrOG.js","./hlsl-DIun2j6H.js","./shellsession-DcZ-MBpd.js","./soy-Lt98UjAC.js","./sparql-DKcdDE3B.js","./turtle-DmLNybvT.js","./stata-CXrphKBP.js","./surrealql-b3VyuiG0.js","./svelte-8gnJ1fu4.js","./templ-DIeflhmA.js","./go-DpvXpI72.js","./ts-tags-D7K8rfo8.js","./twig-Ds5AJhKS.js","./vue-Bx3oWpZ6.js","./vue-html-BSXDUtC8.js","./vue-vine-DS9-MKf0.js","./stylus-ScjUt1wu.js","./xsl-DB56QH1d.js"])))=>i.map(i=>d[i]);
2
- import{t as e}from"./preload-helper-Chd9yIcd.js";import{t}from"./lib-CNBaznYe.js";import{a as n,i as r,n as i,o as a,t as o}from"./engine-compile-BKhUOp9O.js";import{n as s,t as c}from"./ok-syntax-theme-8liHuuQb.js";var l=`diffs-container`;(()=>{try{return!1}catch{return!1}})();var u=/(?=^diff --git)/gm,d=/(?<=\n)/,f=/^(---|\+\+\+)\s+([^\t\r\n]+)/,p=/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,m=/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,h=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,g=`header-prefix`,_=`header-filename-suffix`,v=`header-metadata`,y=`header-custom`,b={dark:`pierre-dark`,light:`pierre-light`},x=`data-theme-css`,S=`data-unsafe-css`,C=`data-diffs-scrollbar-measure`,w=`--diffs-scrollbar-gutter-measured`,T=1e5,E={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8};({...E});var ee=Object.freeze({fromStart:0,fromEnd:0}),D={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},O={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function k(e){return`annotation-${`side`in e?`${e.side}-`:``}${e.lineNumber}`}function te({hunkIndex:e,lineIndex:t,conflictIndex:n}){return`merge-conflict-action-${e}-${t}-${n}`}function A(e,t){return e-(t===0?0:1)}function j(e,t){return A(e,t)+t}function ne(e,t){let n=t.hunks[e.hunkIndex];if(n!=null)return{hunkIndex:e.hunkIndex,lineIndex:Ce(n,e.startContentIndex)}}function re(e,t=6){t=Math.max(t,1);let n={deletionLines:[],additionLines:[],conflictStack:[],conflictBuilders:[],actions:[],hunks:[],nextConflictIndex:0,splitLineCount:0,unifiedLineCount:0,lastHunkEnd:0,activeHunk:void 0,maxContextLines:t,maxContextLines2:t*2},r=e.contents,i=r.length;if(i>0){let e=0,t=0,a=r.indexOf(`
2
+ import{t as e}from"./preload-helper-Chd9yIcd.js";import{t}from"./lib-BFwLNStM.js";import{a as n,i as r,n as i,o as a,t as o}from"./engine-compile-DCXqaKj1.js";import{n as s,t as c}from"./ok-syntax-theme-8liHuuQb.js";var l=`diffs-container`;(()=>{try{return!1}catch{return!1}})();var u=/(?=^diff --git)/gm,d=/(?<=\n)/,f=/^(---|\+\+\+)\s+([^\t\r\n]+)/,p=/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,m=/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,h=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,g=`header-prefix`,_=`header-filename-suffix`,v=`header-metadata`,y=`header-custom`,b={dark:`pierre-dark`,light:`pierre-light`},x=`data-theme-css`,S=`data-unsafe-css`,C=`data-diffs-scrollbar-measure`,w=`--diffs-scrollbar-gutter-measured`,T=1e5,E={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8};({...E});var ee=Object.freeze({fromStart:0,fromEnd:0}),D={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},O={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function k(e){return`annotation-${`side`in e?`${e.side}-`:``}${e.lineNumber}`}function te({hunkIndex:e,lineIndex:t,conflictIndex:n}){return`merge-conflict-action-${e}-${t}-${n}`}function A(e,t){return e-(t===0?0:1)}function j(e,t){return A(e,t)+t}function ne(e,t){let n=t.hunks[e.hunkIndex];if(n!=null)return{hunkIndex:e.hunkIndex,lineIndex:Ce(n,e.startContentIndex)}}function re(e,t=6){t=Math.max(t,1);let n={deletionLines:[],additionLines:[],conflictStack:[],conflictBuilders:[],actions:[],hunks:[],nextConflictIndex:0,splitLineCount:0,unifiedLineCount:0,lastHunkEnd:0,activeHunk:void 0,maxContextLines:t,maxContextLines2:t*2},r=e.contents,i=r.length;if(i>0){let e=0,t=0,a=r.indexOf(`
3
3
  `,e);for(;a!==-1;)ie(n,r.slice(e,a+1),t),e=a+1,t++,a=r.indexOf(`
4
4
  `,e);e<i&&ie(n,r.slice(e),t)}if(n.conflictStack.length>0)throw Error(`parseMergeConflictDiffFromFile: unfinished merge conflict marker stack`);n.activeHunk!=null&&n.activeHunk.hunkContent.length>0&&(ce(n,n.activeHunk,`trailing`),le(n));for(let e=0;e<n.conflictBuilders.length;e++){let t=n.conflictBuilders[e];if(t==null||!t.completed)throw Error(`parseMergeConflictDiffFromFile: failed to build merge conflict action ${e}`)}if(n.hunks.length>0&&n.additionLines.length>0&&n.deletionLines.length>0){let e=n.hunks[n.hunks.length-1],t=Math.max(n.additionLines.length-j(e.additionStart,e.additionCount),0);n.splitLineCount+=t,n.unifiedLineCount+=t}let a=n.deletionLines.join(``),o=n.additionLines.join(``),s=be(e,`current`,a),c=be(e,`incoming`,o),l=`change`;o===``?l=`deleted`:a===``&&(l=`new`);let u={name:e.name,prevName:void 0,type:l,hunks:n.hunks,splitLineCount:n.splitLineCount,unifiedLineCount:n.unifiedLineCount,isPartial:!1,deletionLines:n.deletionLines,additionLines:n.additionLines,cacheKey:e.cacheKey==null?void 0:`${e.cacheKey}:merge-conflict-diff`};return{fileDiff:u,currentFile:s,incomingFile:c,actions:n.actions,markerRows:xe(u,n.actions)}}function ie(e,t,n){let r=e.conflictStack[e.conflictStack.length-1];if(r==null){if(t.length>=7&&t.charCodeAt(0)===60&&_e(t)===`start`){me(e,t,n);return}de(e,t);return}let i=_e(t);if(i===`start`){me(e,t,n);return}if(i===`base`){r.stage=`base`,r.baseMarkerLineIndex=n,r.markerLines.base=t;return}if(i===`separator`){r.stage=`incoming`,r.separatorLineIndex=n,r.markerLines.separator=t;return}if(i===`end`){let r=e.conflictStack.pop();if(r==null)throw Error(`parseMergeConflictDiffFromFile: encountered end marker before start marker`);pe(e,r,n,t);return}r.stage===`current`?fe(e,`deletion`,t,r.conflictIndex,`current`):r.stage===`base`?de(e,t,r.conflictIndex):fe(e,`addition`,t,r.conflictIndex,`incoming`)}function ae(e){return e.activeHunk??=he(e.additionLines.length+1,e.deletionLines.length+1),e.activeHunk}function oe(e,t,n,r){let i=e.conflictBuilders[t];if(i==null)throw Error(`parseMergeConflictDiffFromFile: failed to locate conflict action ${t}`);let a=i.action,o=e.hunks.length;if(a.hunkIndex<0)a.hunkIndex=o;else if(a.hunkIndex!==o)throw Error(`parseMergeConflictDiffFromFile: conflict ${t} spans multiple hunks and cannot be anchored`);if(a.startContentIndex<0&&(a.startContentIndex=r),a.endContentIndex=r,a.endMarkerContentIndex=r,n===`current`){a.currentContentIndex??=r;return}if(n===`base`){a.baseContentIndex??=r;return}a.incomingContentIndex=r}function se(e,t,n,r){let i=e.hunkContent,a=i[i.length-1];return a?.type===`change`?(t===`addition`?a.additions++:a.deletions++,i.length-1):(i.push({type:`change`,additions:+(t===`addition`),deletions:+(t===`deletion`),additionLineIndex:n,deletionLineIndex:r}),i.length-1)}function ce(e,t,n){let r=t.contextBufferCount,i=t.contextBufferAdditionStart,a=t.contextBufferDeletionStart;if(n===`leading`&&r>e.maxContextLines){let n=r-e.maxContextLines;i+=n,a+=n,r=e.maxContextLines,t.additionStart+=n,t.deletionStart+=n,t.additionLineIndex+=n,t.deletionLineIndex+=n}if(n===`trailing`&&r>e.maxContextLines&&(r=e.maxContextLines),r===0){t.contextBufferCount=0,t.contextBufferBaseConflicts=void 0;return}let o=t.hunkContent,s=o[o.length-1],c;s?.type===`context`?(s.lines+=r,c=o.length-1):(o.push({type:`context`,lines:r,additionLineIndex:i,deletionLineIndex:a}),c=o.length-1),t.additionCount+=r,t.deletionCount+=r;let l=t.contextBufferBaseConflicts;if(l!=null){let n=i-t.contextBufferAdditionStart;for(let[t,i]of l)t>=n&&t<n+r&&oe(e,i,`base`,c)}t.contextBufferCount=0,t.contextBufferBaseConflicts=void 0}function le(e){if(e.activeHunk==null)return;let t=e.activeHunk;if(e.activeHunk=void 0,t.hunkContent.length===0)return;let n=0,r=0;for(let e of t.hunkContent)e.type===`context`?(n+=e.lines,r+=e.lines):(n+=Math.max(e.additions,e.deletions),r+=e.additions+e.deletions);let i=t.additionCount===0?t.additionStart-1:t.additionStart,a=t.deletionCount===0?t.deletionStart-1:t.deletionStart,o=Math.max(A(i,t.additionCount)-e.lastHunkEnd,0),s={collapsedBefore:o,additionStart:i,additionCount:t.additionCount,additionLines:t.additionLines,additionLineIndex:t.additionLineIndex,deletionStart:a,deletionCount:t.deletionCount,deletionLines:t.deletionLines,deletionLineIndex:t.deletionLineIndex,hunkContent:t.hunkContent,hunkContext:void 0,hunkSpecs:`@@ -${ge(a,t.deletionCount)} +${ge(i,t.additionCount)} @@\n`,splitLineStart:e.splitLineCount+o,splitLineCount:n,unifiedLineStart:e.unifiedLineCount+o,unifiedLineCount:r,noEOFCRAdditions:!1,noEOFCRDeletions:!1};e.hunks.push(s),e.splitLineCount+=o+n,e.unifiedLineCount+=o+r,e.lastHunkEnd=j(i,t.additionCount)}function ue(e){if(e.activeHunk==null)return;let t=e.activeHunk,n=t.contextBufferCount,r=n-e.maxContextLines2,i=t.contextBufferAdditionStart+n-e.maxContextLines,a=t.contextBufferDeletionStart+n-e.maxContextLines,o;if(t.contextBufferBaseConflicts!=null){let r=n-e.maxContextLines;for(let[e,n]of t.contextBufferBaseConflicts)e>=r&&(o??=new Map,o.set(e-r,n))}ce(e,t,`trailing`);let s=t.additionCount,c=t.deletionCount;le(e),e.activeHunk=he(t.additionStart+s+r,t.deletionStart+c+r),e.activeHunk.contextBufferAdditionStart=i,e.activeHunk.contextBufferDeletionStart=a,e.activeHunk.contextBufferCount=e.maxContextLines,e.activeHunk.contextBufferBaseConflicts=o}function de(e,t,n=-1){let r=ae(e);r.contextBufferCount===0&&(r.contextBufferAdditionStart=e.additionLines.length,r.contextBufferDeletionStart=e.deletionLines.length),e.additionLines.push(t),e.deletionLines.push(t),n>=0&&(r.contextBufferBaseConflicts??=new Map,r.contextBufferBaseConflicts.set(r.contextBufferCount,n)),r.contextBufferCount++}function fe(e,t,n,r,i){let a=ae(e);a.hunkContent.length>0&&a.contextBufferCount>e.maxContextLines2&&(ue(e),a=e.activeHunk),ce(e,a,a.hunkContent.length===0?`leading`:`before-change`);let o=e.additionLines.length,s=e.deletionLines.length;t===`addition`?e.additionLines.push(n):e.deletionLines.push(n);let c=se(a,t,o,s);t===`addition`?(a.additionCount++,a.additionLines++):(a.deletionCount++,a.deletionLines++),oe(e,r,i,c)}function pe(e,t,n,r){if(t.separatorLineIndex==null||t.markerLines.separator==null)throw Error(`parseMergeConflictDiffFromFile: conflict ${t.conflictIndex} is missing a separator marker`);let i=e.conflictBuilders[t.conflictIndex];if(i==null)throw Error(`parseMergeConflictDiffFromFile: failed to finalize conflict ${t.conflictIndex}`);let a=i.action;a.markerLines.separator=t.markerLines.separator,a.markerLines.end=r,t.markerLines.base!=null&&(a.markerLines.base=t.markerLines.base),a.conflict={conflictIndex:t.conflictIndex,startLineIndex:t.startLineIndex,startLineNumber:t.startLineIndex+1,separatorLineIndex:t.separatorLineIndex,separatorLineNumber:t.separatorLineIndex+1,endLineIndex:n,endLineNumber:n+1,baseMarkerLineIndex:t.baseMarkerLineIndex,baseMarkerLineNumber:t.baseMarkerLineIndex==null?void 0:t.baseMarkerLineIndex+1};let o=a.currentContentIndex??a.incomingContentIndex;if(a.currentContentIndex??=o,a.incomingContentIndex??=o,a.startContentIndex<0&&o!=null&&(a.startContentIndex=o),a.endContentIndex<0&&o!=null&&(a.endContentIndex=o),a.endMarkerContentIndex<0&&o!=null&&(a.endMarkerContentIndex=o),a.hunkIndex<0||a.startContentIndex<0||a.endContentIndex<0||a.endMarkerContentIndex<0)throw Error(`parseMergeConflictDiffFromFile: failed to anchor merge conflict ${t.conflictIndex}`);e.actions[a.conflictIndex]=a,i.completed=!0}function me(e,t,n){let r=e.nextConflictIndex;e.nextConflictIndex++,e.conflictStack.push({conflictIndex:r,stage:`current`,startLineIndex:n,markerLines:{start:t}}),e.conflictBuilders[r]={completed:!1,action:{conflict:{conflictIndex:r,startLineIndex:n,startLineNumber:n+1,separatorLineIndex:n,separatorLineNumber:n+1,endLineIndex:n,endLineNumber:n+1,baseMarkerLineIndex:void 0,baseMarkerLineNumber:void 0},conflictIndex:r,hunkIndex:-1,startContentIndex:-1,endContentIndex:-1,endMarkerContentIndex:-1,markerLines:{start:t,separator:``,end:``}}}}function he(e,t){return{additionStart:e,deletionStart:t,additionCount:0,deletionCount:0,additionLines:0,deletionLines:0,additionLineIndex:Math.max(e-1,0),deletionLineIndex:Math.max(t-1,0),hunkContent:[],contextBufferAdditionStart:Math.max(e-1,0),contextBufferDeletionStart:Math.max(t-1,0),contextBufferCount:0,contextBufferBaseConflicts:void 0}}function ge(e,t){return t===1?`${e}`:`${e},${t}`}function _e(e){if(e.length<7)return;let t=e.charCodeAt(0);if(t!==60&&t!==62&&t!==61&&t!==124)return;let n=ve(e);if(n<7)return;let r=1;for(;r<n&&e.charCodeAt(r)===t;)r++;if(!(r<7)){if(t===61)return r===n?`separator`:void 0;if(!(r!==n&&!ye(e.charCodeAt(r))))return t===60?`start`:t===62?`end`:`base`}}function ve(e){let t=e.length;return t>0&&e.charCodeAt(t-1)===10&&t--,t>0&&e.charCodeAt(t-1)===13&&t--,t}function ye(e){return e===9||e===10||e===11||e===12||e===13||e===32}function be(e,t,n){return{...e,contents:n,cacheKey:e.cacheKey==null?void 0:`${e.cacheKey}:merge-conflict-${t}`}}function xe(e,t){let n=[],r=Array(e.hunks.length),i=(t,n)=>{let i=e.hunks[t];if(i==null)return 0;let a=r[t];if(a==null){a=Array(i.hunkContent.length+1);let e=i.unifiedLineStart;a[0]=e;for(let t=0;t<i.hunkContent.length;t++){let n=i.hunkContent[t];e+=n.type===`context`?n.lines:n.deletions+n.additions,a[t+1]=e}r[t]=a}return a[Math.max(n,0)]??i.unifiedLineStart},a=(e,t)=>{let n=i(e,t),a=r[e]?.[Math.max(t+1,0)]??i(e,t+1);return Math.max(n,a-1)};for(let r of t){if(r==null)continue;let t=e.hunks[r.hunkIndex];if(t==null)continue;let o=i(r.hunkIndex,r.startContentIndex);if(n.push(Se(r,`marker-start`,r.startContentIndex,r.markerLines.start,o)),r.baseContentIndex!=null){let e=r.currentContentIndex,o=r.incomingContentIndex;if(e==null||o==null)continue;let s=r.markerLines.base;if(s==null)continue;let c=t.hunkContent[e],l=t.hunkContent[r.baseContentIndex],u=t.hunkContent[o];if(c?.type!==`change`||l?.type!==`context`||u?.type!==`change`)continue;let d=i(r.hunkIndex,e),f=i(r.hunkIndex,o);n.push(Se(r,`marker-base`,r.baseContentIndex,s,d+c.deletions)),n.push(Se(r,`marker-separator`,r.baseContentIndex,r.markerLines.separator,f),Se(r,`marker-end`,r.endMarkerContentIndex,r.markerLines.end,a(r.hunkIndex,r.endMarkerContentIndex)));continue}let s=r.currentContentIndex;if(s==null)continue;let c=t.hunkContent[s];if(c?.type!==`change`)continue;let l=i(r.hunkIndex,s),u=c.deletions>0?l+c.deletions:o;n.push(Se(r,`marker-separator`,s,r.markerLines.separator,u),Se(r,`marker-end`,r.endMarkerContentIndex,r.markerLines.end,a(r.hunkIndex,r.endMarkerContentIndex)))}return n}function Se(e,t,n,r,i){return{type:t,hunkIndex:e.hunkIndex,contentIndex:n,conflictIndex:e.conflictIndex,lineText:r,lineIndex:i}}function Ce(e,t){let n=e.unifiedLineStart;for(let r=0;r<t;r++){let t=e.hunkContent[r];n+=t.type===`context`?t.lines:t.deletions+t.additions}return n}function we(e,t){return e==null||t==null||typeof e==`string`||typeof t==`string`?e===t:e.dark===t.dark&&e.light===t.light}function Te(e,t){return e?.cacheKey===t?.cacheKey&&e?.contents===t?.contents&&e?.name===t?.name&&e?.lang===t?.lang}var Ee=new Set;function De(e){let t=[],n=new Set;for(let r of Oe(e.themes)){let e=je(r)?r.getThemes():[r];for(let r of e){if(n.has(r.name))throw Error(`Theme collection already contains theme "${r.name}"`);n.add(r.name),t.push(r)}}let r=Object.freeze([...t]),i=Object.freeze(r.filter(e=>e.colorScheme===`light`)),a=Object.freeze(r.filter(e=>e.colorScheme===`dark`)),o=new Map(r.map(e=>[e.name,e])),s=Object.freeze(r.map(e=>e.name)),c=Object.freeze(i.map(e=>e.name)),l=Object.freeze(a.map(e=>e.name));function u(e){if(e==null)return r;let{colorScheme:t,collection:n}=e;return n==null?t===`light`?i:t===`dark`?a:r:r.filter(e=>e.collection===n?t==null||e.colorScheme===t:!1)}return{getTheme(e){return o.get(e)},getThemes(e){return u(e)},getThemeNames(e){return e?.collection==null?e?.colorScheme===`light`?c:e?.colorScheme===`dark`?l:s:u(e).map(e=>e.name)},hasTheme(e){return o.has(e)},orderBy(e){return De({themes:r.map((e,t)=>({descriptor:e,index:t})).sort((t,n)=>{let r=e(t.descriptor,n.descriptor);return r===0?t.index-n.index:r}).map(e=>e.descriptor)})},pick(e){let t=[],n=new Set;for(let r of e){if(n.has(r))throw Error(`Theme collection pick already includes theme "${r}"`);n.add(r);let e=o.get(r);if(e==null)throw Error(`Theme collection does not contain theme "${r}"`);t.push(e)}return De({themes:t})},registerInto(e){for(let t of r)e.registerThemeIfAbsent(t.name,t.load)}}}function Oe(e){return ke(e)?[e]:e}function ke(e){return je(e)||Ae(e)}function Ae(e){return typeof e.name==`string`&&typeof e.load==`function`}function je(e){return typeof e.getThemes==`function`}function Me(e){return typeof e==`object`&&e&&`default`in e?e.default:e}var Ne=class extends Error{constructor(e){super(`Theme "${e}" is already registered`),this.name=`DuplicateThemeError`}},Pe=class extends Error{constructor(e){super(`No loader registered for theme "${e}"`),this.name=`UnregisteredThemeError`}},Fe=class extends Error{constructor(e){super(`Theme "${e}" has not been resolved`),this.name=`UnresolvedThemeError`}};function Ie(){let e=new Map,t=new Map,n=new Map,r=0;function i(t,n){if(e.has(t))throw new Ne(t);e.set(t,n)}function a(t,n){return e.has(t)?!1:(e.set(t,n),!0)}function o(t){return e.has(t)}function s(i){let a=t.get(i);if(a!==void 0)return Promise.resolve(a);let o=n.get(i);if(o!==void 0)return o;let s=e.get(i);if(s===void 0)return Promise.reject(new Pe(i));let c=r,l=s().then(e=>{let a=Me(e);return c===r&&t.set(i,a),n.get(i)===l&&n.delete(i),a}).catch(e=>{throw n.get(i)===l&&n.delete(i),e});return n.set(i,l),l}function c(e){return Promise.all(e.map(e=>s(e)))}function l(e,n){t.set(e,n)}function u(e){for(let[t,n]of e)l(t,n)}function d(e){return t.get(e)}function f(e){let n=[];for(let r of e){let e=t.get(r);if(e===void 0)throw new Fe(r);n.push(e)}return n}function p(e){return t.has(e)}function m(e){for(let n of e)if(!t.has(n))return!1;return!0}function h(e){let n=t.get(e);return n===void 0?s(e):n}function g(){r++,t.clear(),n.clear()}return{clearResolvedThemes:g,getResolvedOrResolveTheme:h,getResolvedTheme:d,getResolvedThemes:f,hasRegisteredTheme:o,hasResolvedTheme:p,hasResolvedThemes:m,registerTheme:i,registerThemeIfAbsent:a,resolveTheme:s,resolveThemes:c,seedResolvedTheme:l,seedResolvedThemes:u}}var M=Ie();function Le(e,t){e=Array.isArray(e)?e:[e];for(let n of e){let e;if(typeof n==`string`){if(e=M.getResolvedTheme(n),e==null)throw Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else e=n,n=n.name,M.getResolvedTheme(n)??M.seedResolvedTheme(n,e);Ee.has(n)||(Ee.add(n),t.loadThemeSync(e))}}var Re=new Map,ze=new Map,Be=new Map,Ve=new Set;function He(e,t){e=Array.isArray(e)?e:[e];for(let n of e){if(Ve.has(n.name))continue;let e=Re.get(n.name);e??(e=n,Re.set(n.name,e)),Ve.add(e.name),t.loadLanguageSync(e.data)}}function Ue(){return typeof WorkerGlobalScope<`u`&&typeof self<`u`&&self instanceof WorkerGlobalScope}var We=[{id:`abap`,name:`ABAP`,import:(()=>e(()=>import(`./abap-Si56Ywwg.js`),[],import.meta.url))},{id:`actionscript-3`,name:`ActionScript`,import:(()=>e(()=>import(`./actionscript-3-DspOO2f8.js`),[],import.meta.url))},{id:`ada`,name:`Ada`,import:(()=>e(()=>import(`./ada-Cu2XwCfT.js`),[],import.meta.url))},{id:`angular-html`,name:`Angular HTML`,import:(()=>e(()=>import(`./angular-html-CK8PtorN.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3,4]),import.meta.url))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>e(()=>import(`./angular-ts-BLW1UrOp.js`),__vite__mapDeps([5,0,1,2,3,4,6]),import.meta.url))},{id:`apache`,name:`Apache Conf`,import:(()=>e(()=>import(`./apache-B1xMIwx3.js`),[],import.meta.url))},{id:`apex`,name:`Apex`,import:(()=>e(()=>import(`./apex-tIMgKe9G.js`),[],import.meta.url))},{id:`apl`,name:`APL`,import:(()=>e(()=>import(`./apl-wB_JK4S0.js`),__vite__mapDeps([7,3,1,2,4,8,9,10]),import.meta.url))},{id:`applescript`,name:`AppleScript`,import:(()=>e(()=>import(`./applescript-BdhoZO2t.js`),[],import.meta.url))},{id:`ara`,name:`Ara`,import:(()=>e(()=>import(`./ara-C16W7nOt.js`),[],import.meta.url))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>e(()=>import(`./asciidoc-BSI1qFYV.js`),[],import.meta.url))},{id:`asm`,name:`Assembly`,import:(()=>e(()=>import(`./asm-OmnpqrPf.js`),[],import.meta.url))},{id:`astro`,name:`Astro`,import:(()=>e(()=>import(`./astro-CpGGPo2x.js`),__vite__mapDeps([11,3,1,4,8,12,13,14]),import.meta.url))},{id:`awk`,name:`AWK`,import:(()=>e(()=>import(`./awk-CkrY-Hb7.js`),[],import.meta.url))},{id:`ballerina`,name:`Ballerina`,import:(()=>e(()=>import(`./ballerina-DDTl5-Fy.js`),[],import.meta.url))},{id:`bat`,name:`Batch File`,aliases:[`batch`],import:(()=>e(()=>import(`./bat-IIQX1LZw.js`),[],import.meta.url))},{id:`beancount`,name:`Beancount`,import:(()=>e(()=>import(`./beancount-DoSubOIX.js`),[],import.meta.url))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>e(()=>import(`./berry-Dw1bfRhm.js`),[],import.meta.url))},{id:`bibtex`,name:`BibTeX`,import:(()=>e(()=>import(`./bibtex-B7xE0EsN.js`),[],import.meta.url))},{id:`bicep`,name:`Bicep`,import:(()=>e(()=>import(`./bicep-B0PAbZib.js`),[],import.meta.url))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>e(()=>import(`./bird2-Jn6V5mZp.js`),[],import.meta.url))},{id:`blade`,name:`Blade`,import:(()=>e(()=>import(`./blade-C6tIfL8V.js`),__vite__mapDeps([15,3,1,16,2,4,8,17,9,10]),import.meta.url))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>e(()=>import(`./bsl-DpGQYnAh.js`),__vite__mapDeps([18,19]),import.meta.url))},{id:`c`,name:`C`,import:(()=>e(()=>import(`./c-D9VYP6cK.js`).then(e=>e.n),__vite__mapDeps([20,1]),import.meta.url))},{id:`c3`,name:`C3`,import:(()=>e(()=>import(`./c3-97MdxJt8.js`),[],import.meta.url))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>e(()=>import(`./cadence-Bo6jfM7D.js`),[],import.meta.url))},{id:`cairo`,name:`Cairo`,import:(()=>e(()=>import(`./cairo-DTxTU_Gh.js`),__vite__mapDeps([21,22]),import.meta.url))},{id:`clarity`,name:`Clarity`,import:(()=>e(()=>import(`./clarity-BK7R_wFb.js`),[],import.meta.url))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>e(()=>import(`./clojure-DLPZu98D.js`),[],import.meta.url))},{id:`cmake`,name:`CMake`,import:(()=>e(()=>import(`./cmake-CrL6IQuG.js`),[],import.meta.url))},{id:`cobol`,name:`COBOL`,import:(()=>e(()=>import(`./cobol-Bpomdo6w.js`),__vite__mapDeps([23,2,1,3,4,10]),import.meta.url))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>e(()=>import(`./codeowners-BWwm51e7.js`),[],import.meta.url))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>e(()=>import(`./codeql-IISXqufx.js`),[],import.meta.url))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>e(()=>import(`./coffee-87VuqaZl.js`),__vite__mapDeps([24,4,1]),import.meta.url))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>e(()=>import(`./common-lisp-NvCsvQrl.js`),[],import.meta.url))},{id:`coq`,name:`Coq`,import:(()=>e(()=>import(`./coq-B0uezm4A.js`),[],import.meta.url))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>e(()=>import(`./cpp-Dr0GYyuf.js`).then(e=>e.n),__vite__mapDeps([25,1,26,20,27,17]),import.meta.url))},{id:`crystal`,name:`Crystal`,import:(()=>e(()=>import(`./crystal-D0w2-E3h.js`),__vite__mapDeps([28,20,1,3,2,4,29,17]),import.meta.url))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>e(()=>import(`./csharp-CcaHybct.js`),[],import.meta.url))},{id:`css`,name:`CSS`,import:(()=>e(()=>import(`./css-1GA9sewS.js`).then(e=>e.n),__vite__mapDeps([3,1]),import.meta.url))},{id:`csv`,name:`CSV`,import:(()=>e(()=>import(`./csv-Do_TBA6N.js`),[],import.meta.url))},{id:`cue`,name:`CUE`,import:(()=>e(()=>import(`./cue-DufbIYjj.js`),[],import.meta.url))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>e(()=>import(`./cypher-7Mj2WBCx.js`),[],import.meta.url))},{id:`d`,name:`D`,import:(()=>e(()=>import(`./d-BIIQjroe.js`),[],import.meta.url))},{id:`dart`,name:`Dart`,import:(()=>e(()=>import(`./dart-Cq0LS5Nu.js`),[],import.meta.url))},{id:`dax`,name:`DAX`,import:(()=>e(()=>import(`./dax-DHeaaCdU.js`),[],import.meta.url))},{id:`desktop`,name:`Desktop`,import:(()=>e(()=>import(`./desktop-eT3_PHNd.js`),[],import.meta.url))},{id:`diff`,name:`Diff`,import:(()=>e(()=>import(`./diff-BZHrrlix.js`),[],import.meta.url))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>e(()=>import(`./docker-2mLFFUe5.js`).then(e=>e.n),__vite__mapDeps([30,1]),import.meta.url))},{id:`dotenv`,name:`dotEnv`,import:(()=>e(()=>import(`./dotenv-Bp6UM_J4.js`),[],import.meta.url))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>e(()=>import(`./dream-maker-Bj1HYzof.js`),[],import.meta.url))},{id:`edge`,name:`Edge`,import:(()=>e(()=>import(`./edge-DcDLydN0.js`),__vite__mapDeps([31,16,2,1,3,4,14]),import.meta.url))},{id:`elixir`,name:`Elixir`,import:(()=>e(()=>import(`./elixir-BQZ1fhW7.js`),__vite__mapDeps([32,2,1,3,4]),import.meta.url))},{id:`elm`,name:`Elm`,import:(()=>e(()=>import(`./elm-CV0LF9wY.js`),__vite__mapDeps([33,26,1,20]),import.meta.url))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>e(()=>import(`./emacs-lisp-pPJiDbRG.js`),[],import.meta.url))},{id:`erb`,name:`ERB`,import:(()=>e(()=>import(`./erb-B5kCgeZf.js`),__vite__mapDeps([34,2,1,3,4,35,20,25,26,27,17,36,37,13,14,38,39,29,9,10,40]),import.meta.url))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>e(()=>import(`./erlang-BNbOR8p0.js`),__vite__mapDeps([41,42]),import.meta.url))},{id:`fennel`,name:`Fennel`,import:(()=>e(()=>import(`./fennel-BQQePBuf.js`),[],import.meta.url))},{id:`fish`,name:`Fish`,import:(()=>e(()=>import(`./fish-DRY3eaPo.js`),[],import.meta.url))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>e(()=>import(`./fluent-C_dFYkPQ.js`),[],import.meta.url))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>e(()=>import(`./fortran-fixed-form-0ydtb2Mk.js`),__vite__mapDeps([43,44]),import.meta.url))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>e(()=>import(`./fortran-free-form-xiF_JT3e.js`),[],import.meta.url))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>e(()=>import(`./fsharp-ua24taVz.js`),__vite__mapDeps([45,42]),import.meta.url))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>e(()=>import(`./gdresource-rcpgckuK.js`),__vite__mapDeps([46,47,48]),import.meta.url))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>e(()=>import(`./gdscript-Dkj9lj84.js`),[],import.meta.url))},{id:`gdshader`,name:`GDShader`,import:(()=>e(()=>import(`./gdshader-D2JrIrDz.js`),[],import.meta.url))},{id:`genie`,name:`Genie`,import:(()=>e(()=>import(`./genie-CjqQPrqu.js`),[],import.meta.url))},{id:`gherkin`,name:`Gherkin`,import:(()=>e(()=>import(`./gherkin-DrFNXbhR.js`),[],import.meta.url))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>e(()=>import(`./git-commit-CAryLfC_.js`),__vite__mapDeps([49,50]),import.meta.url))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>e(()=>import(`./git-rebase-D3Kvr3CE.js`),__vite__mapDeps([51,29,1]),import.meta.url))},{id:`gleam`,name:`Gleam`,import:(()=>e(()=>import(`./gleam-Dso-QmfS.js`),[],import.meta.url))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>e(()=>import(`./glimmer-js-CdUvG4jj.js`),__vite__mapDeps([52,3,1,2,4,14]),import.meta.url))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>e(()=>import(`./glimmer-ts-C-YJf7n-.js`),__vite__mapDeps([53,3,1,2,4,14]),import.meta.url))},{id:`glsl`,name:`GLSL`,import:(()=>e(()=>import(`./glsl-CRLAWcC3.js`).then(e=>e.n),__vite__mapDeps([26,1,20]),import.meta.url))},{id:`gn`,name:`GN`,import:(()=>e(()=>import(`./gn-4Tqom84g.js`),[],import.meta.url))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>e(()=>import(`./gnuplot-CTIG-9RB.js`),[],import.meta.url))},{id:`go`,name:`Go`,import:(()=>e(()=>import(`./go-DpvXpI72.js`),[],import.meta.url))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>e(()=>import(`./graphql-CCKk5dWV.js`).then(e=>e.n),__vite__mapDeps([36,1,4,37,13,14]),import.meta.url))},{id:`groovy`,name:`Groovy`,import:(()=>e(()=>import(`./groovy-ArrI5Q5_.js`),[],import.meta.url))},{id:`hack`,name:`Hack`,import:(()=>e(()=>import(`./hack-BAqippsy.js`),__vite__mapDeps([54,2,1,3,4,17]),import.meta.url))},{id:`haml`,name:`Ruby Haml`,import:(()=>e(()=>import(`./haml-BCUAgZhj.js`).then(e=>e.n),__vite__mapDeps([38,1,3,4]),import.meta.url))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>e(()=>import(`./handlebars-CxKXBtuA.js`),__vite__mapDeps([55,3,1,2,4,40]),import.meta.url))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>e(()=>import(`./haskell-CXEeHa0s.js`),[],import.meta.url))},{id:`haxe`,name:`Haxe`,import:(()=>e(()=>import(`./haxe-CJh0z8_d.js`),[],import.meta.url))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>e(()=>import(`./hcl-BQC8paYI.js`),[],import.meta.url))},{id:`hjson`,name:`Hjson`,import:(()=>e(()=>import(`./hjson-3Qi-W7-7.js`),[],import.meta.url))},{id:`hlsl`,name:`HLSL`,import:(()=>e(()=>import(`./hlsl-DIun2j6H.js`),[],import.meta.url))},{id:`html`,name:`HTML`,import:(()=>e(()=>import(`./html-B5umRcfp.js`).then(e=>e.n),__vite__mapDeps([2,1,3,4]),import.meta.url))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>e(()=>import(`./html-derivative-G-_NilDD.js`),__vite__mapDeps([16,2,1,3,4]),import.meta.url))},{id:`http`,name:`HTTP`,import:(()=>e(()=>import(`./http-DNKXWcPb.js`),__vite__mapDeps([56,36,1,4,37,13,14,8,29,9,10]),import.meta.url))},{id:`hurl`,name:`Hurl`,import:(()=>e(()=>import(`./hurl-CpTNGCbU.js`),__vite__mapDeps([57,58,36,1,4,37,13,14,9,10]),import.meta.url))},{id:`hxml`,name:`HXML`,import:(()=>e(()=>import(`./hxml-BGbRhBmd.js`),__vite__mapDeps([59,60]),import.meta.url))},{id:`hy`,name:`Hy`,import:(()=>e(()=>import(`./hy-D7wWMj6b.js`),[],import.meta.url))},{id:`imba`,name:`Imba`,import:(()=>e(()=>import(`./imba-BGatL44e.js`),[],import.meta.url))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>e(()=>import(`./ini-BIzZQFer.js`),[],import.meta.url))},{id:`java`,name:`Java`,import:(()=>e(()=>import(`./java-B_eaSS3U.js`).then(e=>e.n),__vite__mapDeps([10,1]),import.meta.url))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>e(()=>import(`./javascript-3_t04LfW.js`).then(e=>e.n),__vite__mapDeps([4,1]),import.meta.url))},{id:`jinja`,name:`Jinja`,import:(()=>e(()=>import(`./jinja-CpNow-ts.js`),__vite__mapDeps([61,2,1,3,4]),import.meta.url))},{id:`jison`,name:`Jison`,import:(()=>e(()=>import(`./jison-c0C4iMp1.js`),__vite__mapDeps([62,4,1]),import.meta.url))},{id:`json`,name:`JSON`,import:(()=>e(()=>import(`./json-vyNcbgn3.js`).then(e=>e.n),__vite__mapDeps([8,1]),import.meta.url))},{id:`json5`,name:`JSON5`,import:(()=>e(()=>import(`./json5-BQDgRFao.js`),[],import.meta.url))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>e(()=>import(`./jsonc-BVRIMn1B.js`),[],import.meta.url))},{id:`jsonl`,name:`JSON Lines`,import:(()=>e(()=>import(`./jsonl-DEdMwO3I.js`),[],import.meta.url))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>e(()=>import(`./jsonnet-D4M7XSvr.js`),[],import.meta.url))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>e(()=>import(`./jssm-0Uu-SViK.js`),[],import.meta.url))},{id:`jsx`,name:`JSX`,import:(()=>e(()=>import(`./jsx-Ln1Fej2G.js`).then(e=>e.n),__vite__mapDeps([37,1]),import.meta.url))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>e(()=>import(`./julia-Be_LR5tB.js`),__vite__mapDeps([63,25,1,26,20,27,17,4,22,64]),import.meta.url))},{id:`just`,name:`Just`,import:(()=>e(()=>import(`./just-BgwKwgRg.js`),__vite__mapDeps([65,4,1,66,3,2,17,9,10,22,35,20,25,26,27,36,37,13,14,38,39,29,40]),import.meta.url))},{id:`kdl`,name:`KDL`,import:(()=>e(()=>import(`./kdl-0WElHetQ.js`),[],import.meta.url))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>e(()=>import(`./kotlin-bz6jcZuk.js`),[],import.meta.url))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>e(()=>import(`./kusto-rQBWdzxV.js`),[],import.meta.url))},{id:`latex`,name:`LaTeX`,import:(()=>e(()=>import(`./latex-f0pnZngS.js`),__vite__mapDeps([67,68,64,1]),import.meta.url))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>e(()=>import(`./lean-DbkQ7t2V.js`),[],import.meta.url))},{id:`less`,name:`Less`,import:(()=>e(()=>import(`./less-3PufXCgu.js`),[],import.meta.url))},{id:`liquid`,name:`Liquid`,import:(()=>e(()=>import(`./liquid-B0tGGcJ8.js`),__vite__mapDeps([69,3,1,2,4,8]),import.meta.url))},{id:`llvm`,name:`LLVM IR`,import:(()=>e(()=>import(`./llvm-BtSzf2TJ.js`),[],import.meta.url))},{id:`log`,name:`Log file`,import:(()=>e(()=>import(`./log-CVKgRntp.js`),[],import.meta.url))},{id:`logo`,name:`Logo`,import:(()=>e(()=>import(`./logo-DjXd4BeZ.js`),[],import.meta.url))},{id:`lua`,name:`Lua`,import:(()=>e(()=>import(`./lua-mHd2uc6T.js`).then(e=>e.n),__vite__mapDeps([39,1,20]),import.meta.url))},{id:`luau`,name:`Luau`,import:(()=>e(()=>import(`./luau-Cta5CKMe.js`),[],import.meta.url))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>e(()=>import(`./make-B8m8TNEp.js`),[],import.meta.url))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>e(()=>import(`./markdown-DuSbcbH1.js`),[],import.meta.url))},{id:`marko`,name:`Marko`,import:(()=>e(()=>import(`./marko-nkrdD-l1.js`),__vite__mapDeps([70,3,1,71,6,14]),import.meta.url))},{id:`matlab`,name:`MATLAB`,import:(()=>e(()=>import(`./matlab-C0g6LsQC.js`),[],import.meta.url))},{id:`mdc`,name:`MDC`,import:(()=>e(()=>import(`./mdc-Dq4a4VUV.js`),__vite__mapDeps([72,16,2,1,3,4,42,40]),import.meta.url))},{id:`mdx`,name:`MDX`,import:(()=>e(()=>import(`./mdx-CFYnqYe1.js`),[],import.meta.url))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>e(()=>import(`./mermaid-BYra7Bif.js`),[],import.meta.url))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>e(()=>import(`./mipsasm-CTpBNrUp.js`),[],import.meta.url))},{id:`mojo`,name:`Mojo`,import:(()=>e(()=>import(`./mojo-C99tsVuV.js`),[],import.meta.url))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>e(()=>import(`./moonbit-DmVoZD3q.js`),[],import.meta.url))},{id:`move`,name:`Move`,import:(()=>e(()=>import(`./move-BuN0Aoxo.js`),[],import.meta.url))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>e(()=>import(`./narrat-DkfvWgvQ.js`),[],import.meta.url))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>e(()=>import(`./nextflow-CnD9lcfD.js`),__vite__mapDeps([73,74]),import.meta.url))},{id:`nextflow-groovy`,name:`nextflow-groovy`,import:(()=>e(()=>import(`./nextflow-groovy-DTz-pJto.js`),[],import.meta.url))},{id:`nginx`,name:`Nginx`,import:(()=>e(()=>import(`./nginx-Bx3KG4vk.js`),__vite__mapDeps([75,39,1,20]),import.meta.url))},{id:`nim`,name:`Nim`,import:(()=>e(()=>import(`./nim-DyW8ZiKP.js`),__vite__mapDeps([76,20,1,3,26,2,4,42,9,10]),import.meta.url))},{id:`nix`,name:`Nix`,import:(()=>e(()=>import(`./nix-BVDaY9Z6.js`),[],import.meta.url))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>e(()=>import(`./nushell-yFwqL_FA.js`),[],import.meta.url))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>e(()=>import(`./objective-c-DbjigLal.js`),[],import.meta.url))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>e(()=>import(`./objective-cpp-CGNQwF80.js`),[],import.meta.url))},{id:`ocaml`,name:`OCaml`,import:(()=>e(()=>import(`./ocaml-BbBFN2nT.js`),[],import.meta.url))},{id:`odin`,name:`Odin`,import:(()=>e(()=>import(`./odin-DKACU_K4.js`),[],import.meta.url))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>e(()=>import(`./openscad-BbcP_TLY.js`),[],import.meta.url))},{id:`pascal`,name:`Pascal`,import:(()=>e(()=>import(`./pascal-DXyqpUmW.js`),[],import.meta.url))},{id:`perl`,name:`Perl`,import:(()=>e(()=>import(`./perl-Bs8o0kZK.js`),__vite__mapDeps([66,3,1,2,4,17,9,10]),import.meta.url))},{id:`php`,name:`PHP`,import:(()=>e(()=>import(`./php-DwGavu8h.js`),__vite__mapDeps([77,3,1,2,4,8,17,9,10]),import.meta.url))},{id:`pkl`,name:`Pkl`,import:(()=>e(()=>import(`./pkl-DD6MSvKm.js`),[],import.meta.url))},{id:`plsql`,name:`PL/SQL`,import:(()=>e(()=>import(`./plsql-AjynX1gW.js`),[],import.meta.url))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>e(()=>import(`./po-B2OCJ6Xt.js`),[],import.meta.url))},{id:`polar`,name:`Polar`,import:(()=>e(()=>import(`./polar-B_gbyGBa.js`),[],import.meta.url))},{id:`postcss`,name:`PostCSS`,import:(()=>e(()=>import(`./postcss-Ds2-0Skr.js`),[],import.meta.url))},{id:`powerquery`,name:`PowerQuery`,import:(()=>e(()=>import(`./powerquery-CqitSZil.js`),[],import.meta.url))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`],import:(()=>e(()=>import(`./powershell-DRt17tb2.js`),[],import.meta.url))},{id:`prisma`,name:`Prisma`,import:(()=>e(()=>import(`./prisma-lOHiUQ62.js`),[],import.meta.url))},{id:`prolog`,name:`Prolog`,import:(()=>e(()=>import(`./prolog-aBTz3ISZ.js`),[],import.meta.url))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>e(()=>import(`./proto-CeunJz-D.js`),[],import.meta.url))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>e(()=>import(`./pug-D6nkG3Ds.js`),__vite__mapDeps([78,3,1,2,4]),import.meta.url))},{id:`puppet`,name:`Puppet`,import:(()=>e(()=>import(`./puppet-BmpuGDO7.js`),[],import.meta.url))},{id:`purescript`,name:`PureScript`,import:(()=>e(()=>import(`./purescript-nah8ih9X.js`),[],import.meta.url))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>e(()=>import(`./python-BryqnXmh.js`),[],import.meta.url))},{id:`qml`,name:`QML`,import:(()=>e(()=>import(`./qml-C2nf0b0h.js`),__vite__mapDeps([79,4,1]),import.meta.url))},{id:`qmldir`,name:`QML Directory`,import:(()=>e(()=>import(`./qmldir-CDfiL3P2.js`),[],import.meta.url))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>e(()=>import(`./qss-BLcQdWkK.js`),[],import.meta.url))},{id:`r`,name:`R`,import:(()=>e(()=>import(`./r-CoU3FuLf.js`).then(e=>e.n),__vite__mapDeps([64,1]),import.meta.url))},{id:`racket`,name:`Racket`,import:(()=>e(()=>import(`./racket-Bytpe89D.js`),[],import.meta.url))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>e(()=>import(`./raku-Bj-2C-Lo.js`),[],import.meta.url))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>e(()=>import(`./razor-BfRtnDsM.js`),__vite__mapDeps([80,81,2,1,3,4]),import.meta.url))},{id:`reg`,name:`Windows Registry Script`,import:(()=>e(()=>import(`./reg-BB5j7-Vh.js`),[],import.meta.url))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>e(()=>import(`./regexp-B5HnoHnp.js`).then(e=>e.n),__vite__mapDeps([27,1]),import.meta.url))},{id:`rel`,name:`Rel`,import:(()=>e(()=>import(`./rel-TI5d9wJc.js`),[],import.meta.url))},{id:`riscv`,name:`RISC-V`,import:(()=>e(()=>import(`./riscv-j-6UpWt5.js`),[],import.meta.url))},{id:`ron`,name:`RON`,import:(()=>e(()=>import(`./ron-C-BzNsjS.js`),[],import.meta.url))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>e(()=>import(`./rosmsg-D4nCqV2w.js`),[],import.meta.url))},{id:`rst`,name:`reStructuredText`,import:(()=>e(()=>import(`./rst-BjoOfQ5E.js`),__vite__mapDeps([82,83,25,1,26,20,27,17,16,2,3,4,22,35,36,37,13,14,38,39,29,9,10,40]),import.meta.url))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>e(()=>import(`./ruby-CMVuz7k8.js`),__vite__mapDeps([35,20,1,25,26,27,17,3,36,4,37,13,14,38,2,39,29,9,10,40]),import.meta.url))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>e(()=>import(`./rust-lJ_OhiY8.js`),[],import.meta.url))},{id:`sas`,name:`SAS`,import:(()=>e(()=>import(`./sas-CzS23PTX.js`),__vite__mapDeps([84,17,1]),import.meta.url))},{id:`sass`,name:`Sass`,import:(()=>e(()=>import(`./sass-CD4k76a7.js`),[],import.meta.url))},{id:`scala`,name:`Scala`,import:(()=>e(()=>import(`./scala-DzeN5Cxt.js`),[],import.meta.url))},{id:`scheme`,name:`Scheme`,import:(()=>e(()=>import(`./scheme-BFq-l7Mx.js`),[],import.meta.url))},{id:`scss`,name:`SCSS`,import:(()=>e(()=>import(`./scss-_adrYBhZ.js`).then(e=>e.n),__vite__mapDeps([6,1,3]),import.meta.url))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>e(()=>import(`./sdbl-dREcIoXo.js`),[],import.meta.url))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>e(()=>import(`./shaderlab-CKdPDrOG.js`),__vite__mapDeps([85,86]),import.meta.url))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>e(()=>import(`./shellscript-DuS0zF19.js`).then(e=>e.n),__vite__mapDeps([29,1]),import.meta.url))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>e(()=>import(`./shellsession-DcZ-MBpd.js`),__vite__mapDeps([87,29,1]),import.meta.url))},{id:`smalltalk`,name:`Smalltalk`,import:(()=>e(()=>import(`./smalltalk-CIlaFth0.js`),[],import.meta.url))},{id:`solidity`,name:`Solidity`,import:(()=>e(()=>import(`./solidity-CVDixqSw.js`),[],import.meta.url))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>e(()=>import(`./soy-Lt98UjAC.js`),__vite__mapDeps([88,2,1,3,4]),import.meta.url))},{id:`sparql`,name:`SPARQL`,import:(()=>e(()=>import(`./sparql-DKcdDE3B.js`),__vite__mapDeps([89,90]),import.meta.url))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>e(()=>import(`./splunk-Cpqx-iQJ.js`),[],import.meta.url))},{id:`sql`,name:`SQL`,import:(()=>e(()=>import(`./sql-qyIX8k-y.js`).then(e=>e.n),__vite__mapDeps([17,1]),import.meta.url))},{id:`ssh-config`,name:`SSH Config`,import:(()=>e(()=>import(`./ssh-config-DeO6dQtR.js`),[],import.meta.url))},{id:`stata`,name:`Stata`,import:(()=>e(()=>import(`./stata-CXrphKBP.js`),__vite__mapDeps([91,17,1]),import.meta.url))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>e(()=>import(`./stylus-ScjUt1wu.js`),[],import.meta.url))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>e(()=>import(`./surrealql-b3VyuiG0.js`),__vite__mapDeps([92,4,1]),import.meta.url))},{id:`svelte`,name:`Svelte`,import:(()=>e(()=>import(`./svelte-8gnJ1fu4.js`),__vite__mapDeps([93,3,1,4,12,14]),import.meta.url))},{id:`swift`,name:`Swift`,import:(()=>e(()=>import(`./swift-Baxtq4El.js`),[],import.meta.url))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>e(()=>import(`./system-verilog-BKOlYvZd.js`),[],import.meta.url))},{id:`systemd`,name:`Systemd Units`,import:(()=>e(()=>import(`./systemd-OIhCWx4E.js`),[],import.meta.url))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>e(()=>import(`./talonscript-DzmB-VNx.js`),[],import.meta.url))},{id:`tasl`,name:`Tasl`,import:(()=>e(()=>import(`./tasl-DR6bF_rc.js`),[],import.meta.url))},{id:`tcl`,name:`Tcl`,import:(()=>e(()=>import(`./tcl-BPc7exxz.js`),[],import.meta.url))},{id:`templ`,name:`Templ`,import:(()=>e(()=>import(`./templ-DIeflhmA.js`),__vite__mapDeps([94,3,1,95,4]),import.meta.url))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>e(()=>import(`./terraform-CbXXO276.js`),[],import.meta.url))},{id:`tex`,name:`TeX`,import:(()=>e(()=>import(`./tex-gWbfubG8.js`),__vite__mapDeps([68,64,1]),import.meta.url))},{id:`toml`,name:`TOML`,import:(()=>e(()=>import(`./toml-BpEaDYlW.js`),[],import.meta.url))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>e(()=>import(`./ts-tags-D7K8rfo8.js`),__vite__mapDeps([96,3,1,26,20,2,4,17,14,9,10]),import.meta.url))},{id:`tsv`,name:`TSV`,import:(()=>e(()=>import(`./tsv-D0h--EG9.js`),[],import.meta.url))},{id:`tsx`,name:`TSX`,import:(()=>e(()=>import(`./tsx-Dsg_3XHP.js`).then(e=>e.n),__vite__mapDeps([13,1]),import.meta.url))},{id:`turtle`,name:`Turtle`,import:(()=>e(()=>import(`./turtle-DmLNybvT.js`),[],import.meta.url))},{id:`twig`,name:`Twig`,import:(()=>e(()=>import(`./twig-Ds5AJhKS.js`),__vite__mapDeps([97,3,1,4,77,2,8,17,9,10,22,35,20,25,26,27,36,37,13,14,38,39,29,40,6]),import.meta.url))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`],import:(()=>e(()=>import(`./typescript-BaB3Lt2q.js`).then(e=>e.n),__vite__mapDeps([14,1]),import.meta.url))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>e(()=>import(`./typespec-rh76n-8l.js`),[],import.meta.url))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>e(()=>import(`./typst-DaJQOdaz.js`),[],import.meta.url))},{id:`v`,name:`V`,import:(()=>e(()=>import(`./v-CuilZhHR.js`),[],import.meta.url))},{id:`vala`,name:`Vala`,import:(()=>e(()=>import(`./vala-C6wb2Klm.js`),[],import.meta.url))},{id:`vb`,name:`Visual Basic`,aliases:[`cmd`],import:(()=>e(()=>import(`./vb-C3Mw1tm7.js`),[],import.meta.url))},{id:`verilog`,name:`Verilog`,import:(()=>e(()=>import(`./verilog-DDPOJxiX.js`),[],import.meta.url))},{id:`vhdl`,name:`VHDL`,import:(()=>e(()=>import(`./vhdl-HIplCIB9.js`),[],import.meta.url))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>e(()=>import(`./viml-Bt0fBQSB.js`),[],import.meta.url))},{id:`vue`,name:`Vue`,import:(()=>e(()=>import(`./vue-Bx3oWpZ6.js`),__vite__mapDeps([98,3,1,16,2,4,8,14]),import.meta.url))},{id:`vue-html`,name:`Vue HTML`,import:(()=>e(()=>import(`./vue-html-BSXDUtC8.js`),__vite__mapDeps([99,4,1]),import.meta.url))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>e(()=>import(`./vue-vine-DS9-MKf0.js`),__vite__mapDeps([100,3,1,4,71,12,6,101]),import.meta.url))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>e(()=>import(`./vyper-BmiAqsIx.js`),[],import.meta.url))},{id:`wasm`,name:`WebAssembly`,import:(()=>e(()=>import(`./wasm-D-CEGosT.js`),[],import.meta.url))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>e(()=>import(`./wenyan-jOA0MGkS.js`),[],import.meta.url))},{id:`wgsl`,name:`WGSL`,import:(()=>e(()=>import(`./wgsl-BSQoi2ft.js`),[],import.meta.url))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>e(()=>import(`./wikitext-CfMYI6cS.js`),[],import.meta.url))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>e(()=>import(`./wit-BQWbDy72.js`),[],import.meta.url))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>e(()=>import(`./wolfram-DfVZ2h-W.js`),[],import.meta.url))},{id:`xml`,name:`XML`,import:(()=>e(()=>import(`./xml-B4IcU219.js`).then(e=>e.n),__vite__mapDeps([9,1,10]),import.meta.url))},{id:`xsl`,name:`XSL`,import:(()=>e(()=>import(`./xsl-DB56QH1d.js`),__vite__mapDeps([102,9,1,10]),import.meta.url))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>e(()=>import(`./yaml-BQ3IebHW.js`).then(e=>e.n),__vite__mapDeps([40,1]),import.meta.url))},{id:`zenscript`,name:`ZenScript`,import:(()=>e(()=>import(`./zenscript-Cf-W2mJM.js`),[],import.meta.url))},{id:`zig`,name:`Zig`,import:(()=>e(()=>import(`./zig-Dng2gLJa.js`),[],import.meta.url))}],Ge=Object.fromEntries(We.map(e=>[e.id,e.import])),Ke=Object.fromEntries(We.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),qe={...Ge,...Ke},Je=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>e(()=>import(`./andromeeda-ch2f3Rls.js`),[],import.meta.url))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>e(()=>import(`./aurora-x-DYZJqKGn.js`),[],import.meta.url))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>e(()=>import(`./ayu-dark-CW1AQ6KM.js`),[],import.meta.url))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>e(()=>import(`./ayu-light-D4pfOkvf.js`),[],import.meta.url))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>e(()=>import(`./ayu-mirage-c2MaxIg2.js`),[],import.meta.url))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>e(()=>import(`./catppuccin-frappe-DKts5Yn4.js`),[],import.meta.url))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>e(()=>import(`./catppuccin-latte-Cr26LLaI.js`),[],import.meta.url))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>e(()=>import(`./catppuccin-macchiato-Cb8zUkmk.js`),[],import.meta.url))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>e(()=>import(`./catppuccin-mocha-Co7clGUr.js`),[],import.meta.url))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>e(()=>import(`./dark-plus-txZ6TFrz.js`),[],import.meta.url))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>e(()=>import(`./dracula-By231D2_.js`),[],import.meta.url))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>e(()=>import(`./dracula-soft-D_zNOygK.js`),[],import.meta.url))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>e(()=>import(`./everforest-dark-DjcXY--4.js`),[],import.meta.url))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>e(()=>import(`./everforest-light-CnadKper.js`),[],import.meta.url))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>e(()=>import(`./github-dark-DEZBvChP.js`),[],import.meta.url))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>e(()=>import(`./github-dark-default-DG1BCEBD.js`),[],import.meta.url))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>e(()=>import(`./github-dark-dimmed-9zC2K13T.js`),[],import.meta.url))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>e(()=>import(`./github-dark-high-contrast-CEz8jJTt.js`),[],import.meta.url))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>e(()=>import(`./github-light-DePON3Z6.js`),[],import.meta.url))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>e(()=>import(`./github-light-default-Haa1sIkO.js`),[],import.meta.url))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>e(()=>import(`./github-light-high-contrast-D-HNjZBl.js`),[],import.meta.url))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>e(()=>import(`./gruvbox-dark-hard-B3B35M4j.js`),[],import.meta.url))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>e(()=>import(`./gruvbox-dark-medium-5RJqjgUl.js`),[],import.meta.url))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>e(()=>import(`./gruvbox-dark-soft-GK94JnbI.js`),[],import.meta.url))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>e(()=>import(`./gruvbox-light-hard-qXLfnT7g.js`),[],import.meta.url))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>e(()=>import(`./gruvbox-light-medium-CZhOzUJ3.js`),[],import.meta.url))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>e(()=>import(`./gruvbox-light-soft-DCE9LgmF.js`),[],import.meta.url))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>e(()=>import(`./horizon-D8vAqswr.js`),[],import.meta.url))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`dark`,import:(()=>e(()=>import(`./horizon-bright-D9f7XR5g.js`),[],import.meta.url))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>e(()=>import(`./houston-R_159wGs.js`),[],import.meta.url))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>e(()=>import(`./kanagawa-dragon-CAnbzC0F.js`),[],import.meta.url))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>e(()=>import(`./kanagawa-lotus-D31_Gflo.js`),[],import.meta.url))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>e(()=>import(`./kanagawa-wave-Dt2IkedV.js`),[],import.meta.url))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>e(()=>import(`./laserwave-BB-UoiFL.js`),[],import.meta.url))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>e(()=>import(`./light-plus-DDmD6vaJ.js`),[],import.meta.url))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>e(()=>import(`./material-theme-KuDiJsXF.js`),[],import.meta.url))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>e(()=>import(`./material-theme-darker-CCsZNpAP.js`),[],import.meta.url))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>e(()=>import(`./material-theme-lighter-BgTxVeJg.js`),[],import.meta.url))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>e(()=>import(`./material-theme-ocean-CPQH679u.js`),[],import.meta.url))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>e(()=>import(`./material-theme-palenight-BHSqmr9F.js`),[],import.meta.url))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>e(()=>import(`./min-dark-DQmP8CdL.js`),[],import.meta.url))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>e(()=>import(`./min-light-D8Yk1YVe.js`),[],import.meta.url))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>e(()=>import(`./monokai-lSe35hD-.js`),[],import.meta.url))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>e(()=>import(`./night-owl-Cu62wkP_.js`),[],import.meta.url))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>e(()=>import(`./night-owl-light-BWuSudD-.js`),[],import.meta.url))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>e(()=>import(`./nord-B4cvbxj3.js`),[],import.meta.url))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>e(()=>import(`./one-dark-pro-DhbiI1nS.js`),[],import.meta.url))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>e(()=>import(`./one-light-DMLCNG3p.js`),[],import.meta.url))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>e(()=>import(`./plastic-D0NyyWjq.js`),[],import.meta.url))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>e(()=>import(`./poimandres-qOFoeJPl.js`),[],import.meta.url))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>e(()=>import(`./red-CHexcQC0.js`),[],import.meta.url))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>e(()=>import(`./rose-pine-Bb5AlCg0.js`),[],import.meta.url))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>e(()=>import(`./rose-pine-dawn-CrClCRaU.js`),[],import.meta.url))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>e(()=>import(`./rose-pine-moon-geiRHtKP.js`),[],import.meta.url))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>e(()=>import(`./slack-dark-CP1XKwY5.js`),[],import.meta.url))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>e(()=>import(`./slack-ochin-DZA0_9us.js`),[],import.meta.url))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>e(()=>import(`./snazzy-light-CLFjvqlH.js`),[],import.meta.url))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>e(()=>import(`./solarized-dark-BzRVjyfC.js`),[],import.meta.url))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>e(()=>import(`./solarized-light-DYPFLMCL.js`),[],import.meta.url))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>e(()=>import(`./synthwave-84-B4wFGF52.js`),[],import.meta.url))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>e(()=>import(`./tokyo-night-Dl8Xxtx1.js`),[],import.meta.url))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>e(()=>import(`./vesper-DI0BIu2K.js`),[],import.meta.url))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>e(()=>import(`./vitesse-black-rx3xRAod.js`),[],import.meta.url))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>e(()=>import(`./vitesse-dark--ydIEzEt.js`),[],import.meta.url))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>e(()=>import(`./vitesse-light-DXBq1PYc.js`),[],import.meta.url))}].map(e=>[e.id,e.import])),Ye=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Xe(){return 2147483648}function Ze(){return typeof performance<`u`?performance.now():Date.now()}var Qe=(e,t)=>e+(t-e%t)%t;async function $e(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=Xe();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,Qe(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:Ze,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var et=Object.defineProperty,tt=(e,t,n)=>t in e?et(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N=(e,t,n)=>tt(e,typeof t==`symbol`?t:t+``,n),P=null;function nt(e){throw new Ye(e.UTF8ToString(e.getLastOnigError()))}var rt=class e{constructor(t){N(this,`utf16Length`),N(this,`utf8Length`),N(this,`utf16Value`),N(this,`utf8Value`),N(this,`utf16OffsetToUtf8`),N(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},it=class e{constructor(t){if(N(this,`id`,++e.LAST_ID),N(this,`_onigBinding`),N(this,`content`),N(this,`utf16Length`),N(this,`utf8Length`),N(this,`utf16OffsetToUtf8`),N(this,`utf8OffsetToUtf16`),N(this,`ptr`),!P)throw new Ye(`Must invoke loadWasm first.`);this._onigBinding=P,this.content=t;let n=new rt(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=P.omalloc(1e4),e._sharedPtrInUse=!0,P.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(P)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};N(it,`LAST_ID`,0),N(it,`_sharedPtr`,0),N(it,`_sharedPtrInUse`,!1);var at=it,ot=class{constructor(e){if(N(this,`_onigBinding`),N(this,`_ptr`),!P)throw new Ye(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new rt(e[r]);t[r]=i.createString(P),n[r]=i.utf8Length}let r=P.omalloc(4*e.length);P.HEAPU32.set(t,r/4);let i=P.omalloc(4*e.length);P.HEAPU32.set(n,i/4);let a=P.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)P.ofree(t[n]);P.ofree(i),P.ofree(r),a===0&&nt(P),this._onigBinding=P,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new at(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function st(e){return typeof e.instantiator==`function`}function ct(e){return typeof e.default==`function`}function lt(e){return e.data!==void 0}function ut(e){return typeof Response<`u`&&e instanceof Response}function dt(e){return typeof ArrayBuffer<`u`&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<`u`&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer||typeof Uint32Array<`u`&&e instanceof Uint32Array}var ft;function pt(e){if(ft)return ft;async function t(){P=await $e(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),st(n)?n=await n.instantiator(t):ct(n)?n=await n.default(t):(lt(n)&&(n=n.data),ut(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await ht(n)(t):await gt(n)(t):dt(n)||n instanceof WebAssembly.Module?n=await mt(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await mt(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return ft=t(),ft}function mt(e){return t=>WebAssembly.instantiate(e,t)}function ht(e){return t=>WebAssembly.instantiateStreaming(e,t)}function gt(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function _t(e){return e&&await pt(e),{createScanner(e){return new ot(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new at(e)}}}var vt=i({langs:qe,themes:Je,engine:()=>_t(e(()=>import(`./wasm-BduI5-mW.js`),[],import.meta.url))}),{codeToHtml:yt,codeToHast:bt,codeToTokens:xt,codeToTokensBase:St,codeToTokensWithThemes:Ct,getSingletonHighlighter:wt,getLastGrammarState:Tt}=r(vt,{guessEmbeddedLanguages:n});async function Et(e){if(Ue())throw Error(`resolveLanguage("${e}") cannot be called from a worker context. Languages must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);let t=ze.get(e);if(t!=null)return t;try{let t=Be.get(e);if(t==null&&Object.prototype.hasOwnProperty.call(qe,e)&&(t=qe[e]),t==null)throw Error(`resolveLanguage: "${e}" not found in bundled or custom languages`);let n=t().then(({default:t})=>{let n={name:e,data:t};return Re.has(e)||Re.set(e,n),n});return ze.set(e,n),await n}finally{ze.delete(e)}}function Dt(e){return Re.get(e)??Et(e)}function Ot({name:e,load:t,colorScheme:n,collection:r,displayName:i}){return{name:e,colorScheme:n,collection:r,displayName:i,load:kt(t)}}function kt(e){return async()=>a(Me(await e()))}var At=`pierre`,jt=[`pierre-dark`,`pierre-dark-soft`,`pierre-dark-vibrant`,`pierre-dark-protanopia-deuteranopia`,`pierre-dark-tritanopia`],Mt=[`pierre-light`,`pierre-light-soft`,`pierre-light-vibrant`,`pierre-light-protanopia-deuteranopia`,`pierre-light-tritanopia`],Nt=[...Mt,...jt],Pt=new Set(Mt);function Ft(e){return Pt.has(e)?`light`:`dark`}var It={"pierre-dark":`Pierre Dark`,"pierre-dark-soft":`Pierre Dark Soft`,"pierre-dark-vibrant":`Pierre Dark Vibrant`,"pierre-dark-protanopia-deuteranopia":`Pierre Dark Protanopia & Deuteranopia`,"pierre-dark-tritanopia":`Pierre Dark Tritanopia`,"pierre-light":`Pierre Light`,"pierre-light-soft":`Pierre Light Soft`,"pierre-light-vibrant":`Pierre Light Vibrant`,"pierre-light-protanopia-deuteranopia":`Pierre Light Protanopia & Deuteranopia`,"pierre-light-tritanopia":`Pierre Light Tritanopia`},Lt={"pierre-dark":()=>e(()=>import(`./pierre-dark-B_62sA0W.js`),[],import.meta.url),"pierre-dark-soft":()=>e(()=>import(`./pierre-dark-soft-mbA-M1Dc.js`),[],import.meta.url),"pierre-dark-vibrant":()=>e(()=>import(`./pierre-dark-vibrant-Bj-yv1y4.js`),[],import.meta.url),"pierre-dark-protanopia-deuteranopia":()=>e(()=>import(`./pierre-dark-protanopia-deuteranopia-7PGd-VXD.js`),[],import.meta.url),"pierre-dark-tritanopia":()=>e(()=>import(`./pierre-dark-tritanopia-ByXmzcmH.js`),[],import.meta.url),"pierre-light":()=>e(()=>import(`./pierre-light-BMaCSQqx.js`),[],import.meta.url),"pierre-light-soft":()=>e(()=>import(`./pierre-light-soft-D283stRU.js`),[],import.meta.url),"pierre-light-vibrant":()=>e(()=>import(`./pierre-light-vibrant-D-Ol9Wvu.js`),[],import.meta.url),"pierre-light-protanopia-deuteranopia":()=>e(()=>import(`./pierre-light-protanopia-deuteranopia-Cgt4X_6p.js`),[],import.meta.url),"pierre-light-tritanopia":()=>e(()=>import(`./pierre-light-tritanopia-wL9jDDAb.js`),[],import.meta.url)};function Rt(e){return Ot({name:e,collection:At,colorScheme:Ft(e),displayName:It[e],load:Lt[e]})}var zt=De({themes:Nt.map(e=>Rt(e))}),Bt=`shiki`,Vt=[`ayu-light`,`catppuccin-latte`,`everforest-light`,`github-light`,`github-light-default`,`github-light-high-contrast`,`gruvbox-light-hard`,`gruvbox-light-medium`,`gruvbox-light-soft`,`horizon-bright`,`kanagawa-lotus`,`light-plus`,`material-theme-lighter`,`min-light`,`night-owl-light`,`one-light`,`rose-pine-dawn`,`slack-ochin`,`snazzy-light`,`solarized-light`,`vitesse-light`],Ht=`andromeeda.aurora-x.ayu-dark.ayu-mirage.catppuccin-frappe.catppuccin-macchiato.catppuccin-mocha.dark-plus.dracula.dracula-soft.everforest-dark.github-dark.github-dark-default.github-dark-dimmed.github-dark-high-contrast.gruvbox-dark-hard.gruvbox-dark-medium.gruvbox-dark-soft.horizon.houston.kanagawa-dragon.kanagawa-wave.laserwave.material-theme.material-theme-darker.material-theme-ocean.material-theme-palenight.min-dark.monokai.night-owl.nord.one-dark-pro.plastic.poimandres.red.rose-pine.rose-pine-moon.slack-dark.solarized-dark.synthwave-84.tokyo-night.vesper.vitesse-black.vitesse-dark`.split(`.`),Ut=new Set(Vt);function Wt(e){return Ut.has(e)?`light`:`dark`}var Gt={andromeeda:()=>e(()=>import(`./andromeeda-ch2f3Rls.js`),[],import.meta.url),"aurora-x":()=>e(()=>import(`./aurora-x-DYZJqKGn.js`),[],import.meta.url),"ayu-dark":()=>e(()=>import(`./ayu-dark-CW1AQ6KM.js`),[],import.meta.url),"ayu-light":()=>e(()=>import(`./ayu-light-D4pfOkvf.js`),[],import.meta.url),"ayu-mirage":()=>e(()=>import(`./ayu-mirage-c2MaxIg2.js`),[],import.meta.url),"catppuccin-frappe":()=>e(()=>import(`./catppuccin-frappe-DKts5Yn4.js`),[],import.meta.url),"catppuccin-latte":()=>e(()=>import(`./catppuccin-latte-Cr26LLaI.js`),[],import.meta.url),"catppuccin-macchiato":()=>e(()=>import(`./catppuccin-macchiato-Cb8zUkmk.js`),[],import.meta.url),"catppuccin-mocha":()=>e(()=>import(`./catppuccin-mocha-Co7clGUr.js`),[],import.meta.url),"dark-plus":()=>e(()=>import(`./dark-plus-txZ6TFrz.js`),[],import.meta.url),dracula:()=>e(()=>import(`./dracula-By231D2_.js`),[],import.meta.url),"dracula-soft":()=>e(()=>import(`./dracula-soft-D_zNOygK.js`),[],import.meta.url),"everforest-dark":()=>e(()=>import(`./everforest-dark-DjcXY--4.js`),[],import.meta.url),"everforest-light":()=>e(()=>import(`./everforest-light-CnadKper.js`),[],import.meta.url),"github-dark":()=>e(()=>import(`./github-dark-DEZBvChP.js`),[],import.meta.url),"github-dark-default":()=>e(()=>import(`./github-dark-default-DG1BCEBD.js`),[],import.meta.url),"github-dark-dimmed":()=>e(()=>import(`./github-dark-dimmed-9zC2K13T.js`),[],import.meta.url),"github-dark-high-contrast":()=>e(()=>import(`./github-dark-high-contrast-CEz8jJTt.js`),[],import.meta.url),"github-light":()=>e(()=>import(`./github-light-DePON3Z6.js`),[],import.meta.url),"github-light-default":()=>e(()=>import(`./github-light-default-Haa1sIkO.js`),[],import.meta.url),"github-light-high-contrast":()=>e(()=>import(`./github-light-high-contrast-D-HNjZBl.js`),[],import.meta.url),"gruvbox-dark-hard":()=>e(()=>import(`./gruvbox-dark-hard-B3B35M4j.js`),[],import.meta.url),"gruvbox-dark-medium":()=>e(()=>import(`./gruvbox-dark-medium-5RJqjgUl.js`),[],import.meta.url),"gruvbox-dark-soft":()=>e(()=>import(`./gruvbox-dark-soft-GK94JnbI.js`),[],import.meta.url),"gruvbox-light-hard":()=>e(()=>import(`./gruvbox-light-hard-qXLfnT7g.js`),[],import.meta.url),"gruvbox-light-medium":()=>e(()=>import(`./gruvbox-light-medium-CZhOzUJ3.js`),[],import.meta.url),"gruvbox-light-soft":()=>e(()=>import(`./gruvbox-light-soft-DCE9LgmF.js`),[],import.meta.url),horizon:()=>e(()=>import(`./horizon-D8vAqswr.js`),[],import.meta.url),"horizon-bright":()=>e(()=>import(`./horizon-bright-D9f7XR5g.js`),[],import.meta.url),houston:()=>e(()=>import(`./houston-R_159wGs.js`),[],import.meta.url),"kanagawa-dragon":()=>e(()=>import(`./kanagawa-dragon-CAnbzC0F.js`),[],import.meta.url),"kanagawa-lotus":()=>e(()=>import(`./kanagawa-lotus-D31_Gflo.js`),[],import.meta.url),"kanagawa-wave":()=>e(()=>import(`./kanagawa-wave-Dt2IkedV.js`),[],import.meta.url),laserwave:()=>e(()=>import(`./laserwave-BB-UoiFL.js`),[],import.meta.url),"light-plus":()=>e(()=>import(`./light-plus-DDmD6vaJ.js`),[],import.meta.url),"material-theme":()=>e(()=>import(`./material-theme-KuDiJsXF.js`),[],import.meta.url),"material-theme-darker":()=>e(()=>import(`./material-theme-darker-CCsZNpAP.js`),[],import.meta.url),"material-theme-lighter":()=>e(()=>import(`./material-theme-lighter-BgTxVeJg.js`),[],import.meta.url),"material-theme-ocean":()=>e(()=>import(`./material-theme-ocean-CPQH679u.js`),[],import.meta.url),"material-theme-palenight":()=>e(()=>import(`./material-theme-palenight-BHSqmr9F.js`),[],import.meta.url),"min-dark":()=>e(()=>import(`./min-dark-DQmP8CdL.js`),[],import.meta.url),"min-light":()=>e(()=>import(`./min-light-D8Yk1YVe.js`),[],import.meta.url),monokai:()=>e(()=>import(`./monokai-lSe35hD-.js`),[],import.meta.url),"night-owl":()=>e(()=>import(`./night-owl-Cu62wkP_.js`),[],import.meta.url),"night-owl-light":()=>e(()=>import(`./night-owl-light-BWuSudD-.js`),[],import.meta.url),nord:()=>e(()=>import(`./nord-B4cvbxj3.js`),[],import.meta.url),"one-dark-pro":()=>e(()=>import(`./one-dark-pro-DhbiI1nS.js`),[],import.meta.url),"one-light":()=>e(()=>import(`./one-light-DMLCNG3p.js`),[],import.meta.url),plastic:()=>e(()=>import(`./plastic-D0NyyWjq.js`),[],import.meta.url),poimandres:()=>e(()=>import(`./poimandres-qOFoeJPl.js`),[],import.meta.url),red:()=>e(()=>import(`./red-CHexcQC0.js`),[],import.meta.url),"rose-pine":()=>e(()=>import(`./rose-pine-Bb5AlCg0.js`),[],import.meta.url),"rose-pine-dawn":()=>e(()=>import(`./rose-pine-dawn-CrClCRaU.js`),[],import.meta.url),"rose-pine-moon":()=>e(()=>import(`./rose-pine-moon-geiRHtKP.js`),[],import.meta.url),"slack-dark":()=>e(()=>import(`./slack-dark-CP1XKwY5.js`),[],import.meta.url),"slack-ochin":()=>e(()=>import(`./slack-ochin-DZA0_9us.js`),[],import.meta.url),"snazzy-light":()=>e(()=>import(`./snazzy-light-CLFjvqlH.js`),[],import.meta.url),"solarized-dark":()=>e(()=>import(`./solarized-dark-BzRVjyfC.js`),[],import.meta.url),"solarized-light":()=>e(()=>import(`./solarized-light-DYPFLMCL.js`),[],import.meta.url),"synthwave-84":()=>e(()=>import(`./synthwave-84-B4wFGF52.js`),[],import.meta.url),"tokyo-night":()=>e(()=>import(`./tokyo-night-Dl8Xxtx1.js`),[],import.meta.url),vesper:()=>e(()=>import(`./vesper-DI0BIu2K.js`),[],import.meta.url),"vitesse-black":()=>e(()=>import(`./vitesse-black-rx3xRAod.js`),[],import.meta.url),"vitesse-dark":()=>e(()=>import(`./vitesse-dark--ydIEzEt.js`),[],import.meta.url),"vitesse-light":()=>e(()=>import(`./vitesse-light-DXBq1PYc.js`),[],import.meta.url)};function Kt(e){return Ot({name:e,collection:Bt,colorScheme:Wt(e),load:Gt[e]})}var qt=De({themes:Object.freeze([...Vt.map(e=>Kt(e)),...Ht.map(e=>Kt(e))])});function Jt(e){if(Ue())throw Error(`Theme "${e}" cannot be resolved from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);if(M.hasRegisteredTheme(e))return;let t=qt.getTheme(e);if(t!=null){M.registerThemeIfAbsent(t.name,t.load);return}throw Error(`No valid theme loader registered for "${e}"`)}function Yt(e,t){if(t.name!==e)throw Error(`resolvedTheme: themeName: ${e} does not match theme.name: ${t.name}`)}async function Xt(e){Jt(e);let t=await M.resolveTheme(e);return Yt(e,t),t}function Zt(e){return M.getResolvedTheme(e)??Xt(e)}var F;async function Qt({themes:t,langs:n,preferredHighlighter:r=`shiki-js`}){F??=vt({themes:[],langs:[`text`],engine:r===`shiki-wasm`?_t(e(()=>import(`./wasm-BduI5-mW.js`),[],import.meta.url)):o()});let i=en(F)?await F:F;F=i;let a=[];for(let e of n){if(e===`text`||e===`ansi`)continue;let t=Dt(e);`then`in t?a.push(t):He(t,i)}let s=[];for(let e of t){let t=Zt(e);`then`in t?s.push(t):Le(t,F)}return(a.length>0||s.length>0)&&await Promise.all([Promise.all(a).then(e=>{He(e,i)}),Promise.all(s).then(e=>{Le(e,i)})]),i}function $t(){if(F!=null&&!(`then`in F))return F}function en(e=F){return e!=null&&`then`in e}for(let e of zt.getThemes())M.registerThemeIfAbsent(e.name,e.load);function tn(e=b){let t=[];return typeof e==`string`?t.push(e):(t.push(e.dark),t.push(e.light)),t}var nn=new Map,rn={"1c":`1c`,abap:`abap`,as:`actionscript-3`,ada:`ada`,adb:`ada`,ads:`ada`,adoc:`asciidoc`,asciidoc:`asciidoc`,"component.html":`angular-html`,"component.ts":`angular-ts`,conf:`nginx`,htaccess:`apache`,cls:`tex`,trigger:`apex`,apl:`apl`,applescript:`applescript`,scpt:`applescript`,ara:`ara`,asm:`asm`,s:`riscv`,astro:`astro`,awk:`awk`,bal:`ballerina`,sh:`zsh`,bash:`zsh`,bat:`cmd`,cmd:`cmd`,be:`berry`,beancount:`beancount`,bib:`bibtex`,bicep:`bicep`,"blade.php":`blade`,bsl:`bsl`,c:`c`,h:`objective-cpp`,cs:`csharp`,cpp:`cpp`,hpp:`cpp`,cc:`cpp`,cxx:`cpp`,hh:`cpp`,cdc:`cdc`,cairo:`cairo`,clar:`clarity`,clj:`clojure`,cljs:`clojure`,cljc:`clojure`,soy:`soy`,cmake:`cmake`,"CMakeLists.txt":`cmake`,cob:`cobol`,cbl:`cobol`,cobol:`cobol`,CODEOWNERS:`codeowners`,ql:`ql`,coffee:`coffeescript`,lisp:`lisp`,cl:`lisp`,lsp:`lisp`,log:`log`,v:`verilog`,cql:`cql`,cr:`crystal`,css:`css`,csv:`csv`,cue:`cue`,cypher:`cypher`,cyp:`cypher`,d:`d`,dart:`dart`,dax:`dax`,desktop:`desktop`,diff:`diff`,patch:`diff`,Dockerfile:`dockerfile`,dockerfile:`dockerfile`,env:`dotenv`,dm:`dream-maker`,edge:`edge`,el:`emacs-lisp`,ex:`elixir`,exs:`elixir`,elm:`elm`,erb:`erb`,erl:`erlang`,hrl:`erlang`,f:`fortran-fixed-form`,for:`fortran-fixed-form`,fs:`fsharp`,fsi:`fsharp`,fsx:`fsharp`,f03:`f03`,f08:`f08`,f18:`f18`,f77:`f77`,f90:`fortran-free-form`,f95:`fortran-free-form`,fnl:`fennel`,fish:`fish`,ftl:`ftl`,tres:`gdresource`,res:`gdresource`,gd:`gdscript`,gdshader:`gdshader`,gs:`genie`,feature:`gherkin`,COMMIT_EDITMSG:`git-commit`,"git-rebase-todo":`git-rebase`,gjs:`glimmer-js`,gleam:`gleam`,gts:`glimmer-ts`,glsl:`glsl`,vert:`glsl`,frag:`glsl`,shader:`shaderlab`,gp:`gnuplot`,plt:`gnuplot`,gnuplot:`gnuplot`,go:`go`,graphql:`graphql`,gql:`graphql`,groovy:`groovy`,gvy:`groovy`,hack:`hack`,haml:`haml`,hbs:`handlebars`,handlebars:`handlebars`,hs:`haskell`,lhs:`haskell`,hx:`haxe`,hcl:`hcl`,hjson:`hjson`,hlsl:`hlsl`,fx:`hlsl`,html:`html`,htm:`html`,http:`http`,rest:`http`,hxml:`hxml`,hy:`hy`,imba:`imba`,ini:`ini`,cfg:`ini`,jade:`pug`,pug:`pug`,java:`java`,js:`javascript`,mjs:`javascript`,cjs:`javascript`,jinja:`jinja`,jinja2:`jinja`,j2:`jinja`,jison:`jison`,jl:`julia`,json:`json`,json5:`json5`,jsonc:`jsonc`,jsonl:`jsonl`,jsonnet:`jsonnet`,libsonnet:`jsonnet`,jssm:`jssm`,jsx:`jsx`,kt:`kotlin`,kts:`kts`,kql:`kusto`,tex:`tex`,ltx:`tex`,lean:`lean4`,less:`less`,liquid:`liquid`,lit:`lit`,ll:`llvm`,logo:`logo`,lua:`lua`,luau:`luau`,Makefile:`makefile`,mk:`makefile`,makefile:`makefile`,md:`markdown`,markdown:`markdown`,marko:`marko`,m:`wolfram`,mat:`matlab`,mdc:`mdc`,mdx:`mdx`,wiki:`wikitext`,mediawiki:`wikitext`,mmd:`mermaid`,mermaid:`mermaid`,mips:`mipsasm`,mojo:`mojo`,"🔥":`mojo`,move:`move`,nar:`narrat`,nf:`nextflow`,nim:`nim`,nims:`nim`,nimble:`nim`,nix:`nix`,nu:`nushell`,mm:`objective-cpp`,ml:`ocaml`,mli:`ocaml`,mll:`ocaml`,mly:`ocaml`,pas:`pascal`,p:`pascal`,pl:`prolog`,pm:`perl`,t:`perl`,raku:`raku`,p6:`raku`,pl6:`raku`,php:`php`,phtml:`php`,pls:`plsql`,sql:`sql`,po:`po`,polar:`polar`,pcss:`postcss`,pot:`pot`,potx:`potx`,pq:`powerquery`,pqm:`powerquery`,ps1:`powershell`,psm1:`powershell`,psd1:`powershell`,prisma:`prisma`,pro:`prolog`,P:`prolog`,properties:`properties`,proto:`protobuf`,pp:`puppet`,purs:`purescript`,py:`python`,pyw:`python`,pyi:`python`,qml:`qml`,qmldir:`qmldir`,qss:`qss`,r:`r`,R:`r`,rkt:`racket`,rktl:`racket`,razor:`razor`,cshtml:`razor`,rb:`ruby`,rbw:`ruby`,reg:`reg`,regex:`regexp`,rel:`rel`,rs:`rust`,rst:`rst`,rake:`ruby`,gemspec:`ruby`,jbuilder:`ruby`,builder:`ruby`,rabl:`ruby`,arb:`ruby`,ru:`ruby`,podspec:`ruby`,Gemfile:`ruby`,Rakefile:`ruby`,Guardfile:`ruby`,Capfile:`ruby`,Berksfile:`ruby`,Brewfile:`ruby`,Vagrantfile:`ruby`,Thorfile:`ruby`,Appraisals:`ruby`,Dangerfile:`ruby`,sas:`sas`,sass:`sass`,scala:`scala`,sc:`scala`,scm:`scheme`,ss:`scheme`,sld:`scheme`,scss:`scss`,sdbl:`sdbl`,shadergraph:`shader`,st:`smalltalk`,sol:`solidity`,sparql:`sparql`,rq:`sparql`,spl:`splunk`,config:`ssh-config`,do:`stata`,ado:`stata`,dta:`stata`,styl:`stylus`,stylus:`stylus`,svelte:`svelte`,swift:`swift`,sv:`system-verilog`,svh:`system-verilog`,service:`systemd`,socket:`systemd`,device:`systemd`,timer:`systemd`,talon:`talonscript`,tasl:`tasl`,tcl:`tcl`,templ:`templ`,tf:`tf`,tfvars:`tfvars`,toml:`toml`,ts:`typescript`,mts:`typescript`,cts:`typescript`,tsp:`typespec`,tsv:`tsv`,tsx:`tsx`,ttl:`turtle`,twig:`twig`,typ:`typst`,vv:`v`,vala:`vala`,vapi:`vala`,vb:`vb`,vbs:`vb`,bas:`vb`,vh:`verilog`,vhd:`vhdl`,vhdl:`vhdl`,vim:`vimscript`,vue:`vue`,"vine.ts":`vue-vine`,vy:`vyper`,wasm:`wasm`,wat:`wasm`,wy:`文言`,wgsl:`wgsl`,wit:`wit`,wl:`wolfram`,nb:`wolfram`,xml:`xml`,xsl:`xsl`,xslt:`xsl`,yaml:`yaml`,yml:`yml`,zs:`zenscript`,zig:`zig`,zsh:`zsh`,sty:`tex`};function I(e){if(nn.has(e))return nn.get(e)??`text`;if(rn[e]!=null)return rn[e];let t=e.match(/\.([^/\\]+\.[^/\\]+)$/);if(t!=null){if(nn.has(t[1]))return nn.get(t[1])??`text`;if(rn[t[1]]!=null)return rn[t[1]]??`text`}let n=e.match(/\.([^.]+)$/)?.[1]??``;return nn.has(n)?nn.get(n)??`text`:rn[n]??`text`}function L(e){return{type:`text`,value:e}}function R({tagName:e,children:t=[],properties:n={}}){return{type:`element`,tagName:e,properties:n,children:t}}function an({name:e,width:t=16,height:n=16,properties:r}){return R({tagName:`svg`,properties:{width:t,height:n,viewBox:`0 0 16 16`,...r},children:[R({tagName:`use`,properties:{href:`#${e.replace(/^#/,``)}`}})]})}function on(e){let t=e.children[0];for(;t!=null;){if(t.type===`element`&&t.tagName===`code`)return t;t=`children`in t?t.children[0]:null}}function sn(e){return R({tagName:`div`,properties:{"data-gutter":``},children:e})}function cn(e,t,n,r={}){return R({tagName:`div`,properties:{"data-line-type":e,"data-column-number":t,"data-line-index":n,...r},children:t==null?void 0:[R({tagName:`span`,properties:{"data-line-number-content":``},children:[L(`${t}`)]})]})}function z(e,t,n){return R({tagName:`div`,properties:{"data-gutter-buffer":t,"data-buffer-size":n,"data-line-type":t===`annotation`?void 0:e,style:t===`annotation`?`grid-row: span ${n};`:`grid-row: span ${n};min-height:calc(${n} * 1lh);`}})}function ln(e,t,n){let r=typeof n.lineInfo==`function`?n.lineInfo(t):n.lineInfo[t-1];if(r==null){let r=`processLine: line ${t}, contains no state.lineInfo`;throw console.error(r,{node:e,line:t,state:n}),Error(r)}return e.tagName=`div`,e.properties[`data-line`]=r.lineNumber,e.properties[`data-alt-line`]=r.altLineNumber,e.properties[`data-line-type`]=r.type,e.properties[`data-line-index`]=r.lineIndex,e.children.length===0&&e.children.push(L(`
5
5
  `)),e}var un=Symbol(`no-token`),dn=Symbol(`multiple-tokens`);function fn(e){let t=pn(e);if(t!=null)return t;let n=un,r=[],i=[],a,o=()=>{if(i.length===0||a==null){i=[],a=void 0;return}if(i.length===1){let e=i[0];if(e?.type===`element`){hn(e,a);for(let t of e.children)mn(t)}else mn(e);r.push(e),i=[],a=void 0;return}for(let e of i)mn(e);r.push(R({tagName:`span`,properties:{"data-char":a},children:i})),i=[],a=void 0},s=e=>{if(e!==un){if(e===dn){n=dn;return}if(n===un){n=e;return}n!==e&&(n=dn)}};for(let t of e.children){let e=t.type===`element`?fn(t):un;if(s(e),typeof e!=`number`){o(),r.push(t);continue}a!=null&&a!==e&&o(),a??=e,i.push(t)}return o(),e.children=r,n}function pn(e){let t=e.properties[`data-char`];if(typeof t==`number`)return t}function mn(e){if(e.type===`element`){e.properties[`data-char`]=void 0;for(let t of e.children)mn(t)}}function hn(e,t){e.properties[`data-char`]=t}function gn(e={}){let{classPrefix:t=`__shiki_`,classSuffix:n=``,classReplacer:r=e=>e}=e,i=new Map;function a(e){return Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}function o(e){let o=t+_n(typeof e==`string`?e:a(e))+n;return o=r(o),i.has(o)||i.set(o,typeof e==`string`?e:{...e}),o}return{name:`@shikijs/transformers:style-to-class`,pre(e){if(!e.properties.style)return;let t=o(e.properties.style);delete e.properties.style,this.addClassToHast(e,t)},tokens(e){for(let t of e)for(let e of t){if(!e.htmlStyle)continue;let t=o(e.htmlStyle);e.htmlStyle={},e.htmlAttrs||={},e.htmlAttrs.class?e.htmlAttrs.class+=` ${t}`:e.htmlAttrs.class=t}},getClassRegistry(){return i},getCSS(){let e=``;for(let[t,n]of i.entries())e+=`.${t}{${typeof n==`string`?n:a(n)}}`;return e},clearRegistry(){i.clear()}}}function _n(e,t=0){let n=3735928559^t,r=1103547991^t;for(let t=0,i;t<e.length;t++)i=e.charCodeAt(t),n=Math.imul(n^i,2654435761),r=Math.imul(r^i,1597334677);return n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>13,3266489909),r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>13,3266489909),(4294967296*(2097151&r)+(n>>>0)).toString(36).slice(0,6)}function vn(e=!1,t=!1){let n={lineInfo:[]},r=[{line(e){return delete e.properties.class,e},pre(t){let r=on(t),i=[];if(r!=null){let t=1;for(let a of r.children)a.type===`element`&&(e&&fn(a),i.push(ln(a,t,n)),t++);r.children=i}return t},...e?{tokens(e){for(let t of e){let e=0;for(let n of t){let t=n;t.__lineChar??=e,e+=n.content.length}}},preprocess(e,t){t.mergeWhitespaces=`never`},span(e,t,n,r,i){if(i?.offset!=null&&i.content!=null){let t=i.__lineChar;return t!=null&&(e.properties[`data-char`]=t),e}return e}}:null}];return t&&r.push(bn,yn),e&&r.push({line:e=>(e.type===`element`&&e.children.length===0&&e.children.push({type:`element`,tagName:`br`,properties:{},children:[]}),e)}),{state:n,transformers:r,toClass:yn}}var yn=gn({classPrefix:`hl-`}),bn={name:`token-style-normalizer`,tokens(e){for(let t of e)for(let e of t){if(e.htmlStyle!=null)continue;let t={};e.color!=null&&(t.color=e.color),e.bgColor!=null&&(t[`background-color`]=e.bgColor),e.fontStyle!=null&&e.fontStyle!==0&&(e.fontStyle&1&&(t[`font-style`]=`italic`),e.fontStyle&2&&(t[`font-weight`]=`bold`),e.fontStyle&4&&(t[`text-decoration`]=`underline`)),Object.keys(t).length>0&&(e.htmlStyle=t)}}};function B(e){return`--${e===`token`?`diffs-token`:`diffs`}-`}var xn=/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i,Sn=/^0(?:\.0+)?%?$/;function Cn(e){let t=e.indexOf(`(`);if(t<=0||!e.endsWith(`)`))return;let n=e.slice(0,t).trim();if(!/^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color)$/i.test(n))return;let r=e.slice(t+1,-1).trim();if(r.length===0)return;let i=r.lastIndexOf(`/`);if(i!==-1)return r.slice(i+1).trim();if(/^(?:rgba|hsla)$/i.test(n)){let e=r.split(`,`);if(e.length===4)return e[3]?.trim()}}function wn(e){let t=/^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})\b/i.exec(e.trim());if(t==null)return null;let n=t[1],r,i=1;return n.length===3?r=n.split(``).map(e=>e+e).join(``):n.length===6?r=n:(r=n.slice(0,6),i=parseInt(n.slice(6,8),16)/255),[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16),i]}function Tn(e){if(e==null)return null;let t=wn(e);if(t==null)return null;let n=t[0]/255,r=t[1]/255,i=t[2]/255,a=e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4;return .2126*a(n)+.7152*a(r)+.0722*a(i)}function En(e){if(e==null)return!1;let t=e.trim().toLowerCase();if(t===`transparent`||xn.test(t))return!0;let n=Cn(t);return n!=null&&Sn.test(n)}function Dn(e,t,n){if(t==null||n==null)return!1;let r=Tn(e),i=Tn(t),a=Tn(n);return r==null||i==null||a==null?!1:Math.abs(r-a)<Math.abs(r-i)}var On=new WeakMap;function kn(e){let t=On.get(e);if(t!=null)return t;let n=e.colors??{},r={...n},i=n[`editor.background`]??e.bg,a=n[`editor.foreground`]??e.fg,o=n[`sideBar.background`]??i,s=n[`sideBar.foreground`]??a;V(r,`editor.background`,i),V(r,`editor.foreground`,a),V(r,`sideBar.background`,o),V(r,`sideBar.foreground`,s),V(r,`input.background`,n[`input.background`]??o),V(r,`sideBarSectionHeader.foreground`,n[`sideBarSectionHeader.foreground`]??s),V(r,`list.activeSelectionForeground`,n[`list.activeSelectionForeground`]??s),V(r,`gitDecoration.addedResourceForeground`,An(n[`gitDecoration.addedResourceForeground`],n[`terminal.ansiGreen`],n[`editorGutter.addedBackground`])),V(r,`gitDecoration.modifiedResourceForeground`,An(n[`gitDecoration.modifiedResourceForeground`],n[`terminal.ansiBlue`],n[`editorGutter.modifiedBackground`])),V(r,`gitDecoration.deletedResourceForeground`,An(n[`gitDecoration.deletedResourceForeground`],n[`terminal.ansiRed`],n[`editorGutter.deletedBackground`]));let c=(En(n[`list.focusOutline`])?void 0:n[`list.focusOutline`])??(En(n.focusBorder)?void 0:n.focusBorder);c==null?delete r[`list.focusOutline`]:r[`list.focusOutline`]=c;let l=n[`list.hoverBackground`];l!=null&&(jn(l,o)||Dn(l,o,s))&&delete r[`list.hoverBackground`];let u=Object.freeze({...e,colors:Object.freeze(r)});return On.set(e,u),u}function V(e,t,n){n!=null&&n!==``&&(e[t]=n)}function An(...e){for(let t of e)if(t!=null&&t!==``)return t}function jn(e,t){return t!=null&&e.toLowerCase()===t.toLowerCase()}function Mn({theme:e=b,highlighter:t,prefix:n}){let r=``;if(typeof e==`string`){let i=t.getTheme(e),a=kn(i);r+=`color:${a.fg};`,r+=`background-color:${a.bg};`,r+=`${B(`global`)}fg:${a.fg};`,r+=`${B(`global`)}bg:${a.bg};`,r+=Nn(i,n)}else{let n=t.getTheme(e.dark),i=kn(n);r+=`${B(`global`)}dark:${i.fg};`,r+=`${B(`global`)}dark-bg:${i.bg};`,r+=Nn(n,`dark`),n=t.getTheme(e.light),i=kn(n),r+=`${B(`global`)}light:${i.fg};`,r+=`${B(`global`)}light-bg:${i.bg};`,r+=Nn(n,`light`)}return r}function Nn(e,t){t=t==null?``:`${t}-`;let n=``,r=e.colors?.[`gitDecoration.addedResourceForeground`]??e.colors?.[`terminal.ansiGreen`];r!=null&&(n+=`${B(`global`)}${t}addition-color:${r};`);let i=e.colors?.[`gitDecoration.deletedResourceForeground`]??e.colors?.[`terminal.ansiRed`];i!=null&&(n+=`${B(`global`)}${t}deletion-color:${i};`);let a=e.colors?.[`gitDecoration.modifiedResourceForeground`]??e.colors?.[`terminal.ansiBlue`];return a!=null&&(n+=`${B(`global`)}${t}modified-color:${a};`),n}function Pn(e){let t=e.children[0];for(;t!=null;){if(t.type===`element`&&t.tagName===`code`)return t.children;t=`children`in t?t.children[0]:null}throw console.error(e),Error(`getLineNodes: Unable to find children`)}function Fn(e,t){return e===t||e?.cacheKey!=null&&e.cacheKey===t?.cacheKey}function In(e,t){return we(e.theme,t.theme)&&e.useTokenTransformer===t.useTokenTransformer&&e.tokenizeMaxLineLength===t.tokenizeMaxLineLength&&e.lineDiffType===t.lineDiffType&&e.maxLineDiffLength===t.maxLineDiffLength}function Ln(e){let t=e.lang??I(e.name),n=e.lang??(e.prevName==null?`text`:I(e.prevName));return t===`text`&&n===`text`}function H(e){let t=e.length;return e.charCodeAt(t-1)===10&&(t--,e.charCodeAt(t-1)===13&&t--),e.slice(0,t)}function Rn(e){return{...E,...e}}function zn(e,t){let n=Bn(e,t);return t?n:e.diffHeaderHeight+n}function Bn(e,t){return e.paddingTop??(t?e.spacing:0)}function Vn(e){return e.paddingBottom??e.spacing}function Hn(e){switch(e){case`simple`:return 4;case`metadata`:case`line-info`:case`line-info-basic`:case`custom`:return 32}}function Un(e){return[A(e.additionStart,e.additionCount)+1,j(e.additionStart,e.additionCount)+1]}function U({isPartial:e,rangeSize:t,expandedHunks:n,hunkIndex:r,collapsedContextThreshold:i}){let a=Math.max(t,0);if(a===0||e)return{fromStart:0,fromEnd:0,rangeSize:a,collapsedLines:a,renderAll:!1};if(n===!0||a<=i)return{fromStart:a,fromEnd:0,rangeSize:a,collapsedLines:0,renderAll:!0};let o=n?.get(r),s=Math.min(Math.max(o?.fromStart??0,0),a),c=Math.min(Math.max(o?.fromEnd??0,0),a),l=s+c,u=l>=a;return{fromStart:u?a:s,fromEnd:u?0:c,rangeSize:a,collapsedLines:Math.max(a-l,0),renderAll:u}}function Wn(e){let t=e.hunks[e.hunks.length-1];if(t==null||e.isPartial||e.additionLines.length===0||e.deletionLines.length===0)return!1;let n=e.additionLines.length-j(t.additionStart,t.additionCount),r=e.deletionLines.length-j(t.deletionStart,t.deletionCount);return n<=0&&r<=0?!1:n!==r}function Gn({fileDiff:e,errorPrefix:t}){let n=e.hunks[e.hunks.length-1];if(n==null||e.isPartial||e.additionLines.length===0||e.deletionLines.length===0)return 0;let r=e.additionLines.length-j(n.additionStart,n.additionCount),i=e.deletionLines.length-j(n.deletionStart,n.deletionCount);if(r<=0&&i<=0)return 0;if(r!==i)throw Error(`${t}: trailing context mismatch (additions=${r}, deletions=${i}) for ${e.name}`);return Math.min(r,i)}function W({fileDiff:e,hunkIndex:t,expandedHunks:n,collapsedContextThreshold:r,errorPrefix:i}){if(t!==e.hunks.length-1)return;let a=Gn({fileDiff:e,errorPrefix:i});if(a<=0)return;if(n===!0||a<=r)return{fromStart:a,fromEnd:0,rangeSize:a,collapsedLines:0,renderAll:!0};let o=n?.get(e.hunks.length),s=Math.min(Math.max(o?.fromStart??0,0),a);return{fromStart:s,fromEnd:0,rangeSize:a,collapsedLines:a-s,renderAll:s>=a}}function Kn({fileDiff:e,lineNumber:t,expandedHunks:n,collapsedContextThreshold:r}){if(n===!0||e.isPartial)return!0;for(let[i,a]of e.hunks.entries()){let[o,s]=Un(a);if(t<o){let s=U({isPartial:e.isPartial,rangeSize:a.collapsedBefore,expandedHunks:n,hunkIndex:i,collapsedContextThreshold:r}),c=o-s.rangeSize;return s.renderAll||t<c+s.fromStart||t>=o-s.fromEnd}if(t<s)return!0}let i=W({fileDiff:e,hunkIndex:e.hunks.length-1,expandedHunks:n,collapsedContextThreshold:r,errorPrefix:`isAdditionLineRenderable`});if(i==null||i.renderAll)return!0;let a=e.hunks[e.hunks.length-1],[,o]=Un(a);return t<o+i.fromStart||t>=o+i.rangeSize}function qn({fileDiff:e,lineNumber:t,direction:n,expandedHunks:r,collapsedContextThreshold:i}){if(r===!0||e.isPartial)return t;let a=[],o=1;for(let[t,n]of e.hunks.entries()){let[s,c]=Un(n),l=U({isPartial:e.isPartial,rangeSize:n.collapsedBefore,expandedHunks:r,hunkIndex:t,collapsedContextThreshold:i}),u=s-l.rangeSize;l.renderAll?a.push([u,s]):(l.fromStart>0&&a.push([u,u+l.fromStart]),l.fromEnd>0&&a.push([s-l.fromEnd,s])),a.push([s,c]),o=c}let s=W({fileDiff:e,hunkIndex:e.hunks.length-1,expandedHunks:r,collapsedContextThreshold:i,errorPrefix:`getNearestRenderableAdditionLine`});if(s!=null){let e=o;o=e+s.rangeSize,s.renderAll?a.push([e,o]):s.fromStart>0&&a.push([e,e+s.fromStart])}if(t>=o)return t;if(n===`down`){for(let[e,n]of a)if(n>t)return Math.max(e,t);return}for(let e=a.length-1;e>=0;e--){let[n,r]=a[e];if(n<=t)return Math.min(r-1,t)}}function Jn({type:e,metrics:t}){return t.hunkSeparatorHeight??Hn(e)}function Yn({type:e,metrics:t}){return e===`simple`||e===`metadata`||e===`line-info-basic`?0:t.spacing}function Xn({type:e,hunkIndex:t,hunkSpecs:n}){switch(e){case`simple`:return t>0;case`metadata`:return n!=null;case`line-info`:case`line-info-basic`:case`custom`:return!0}}function Zn(e){return e!==`simple`&&e!==`metadata`}function Qn({type:e,metrics:t,hunkIndex:n,hunkSpecs:r}){if(!Xn({type:e,hunkIndex:n,hunkSpecs:r}))return;let i=Jn({type:e,metrics:t}),a=Yn({type:e,metrics:t}),o=n>0?a:0,s=a;return{height:i,gapBefore:o,gapAfter:s,totalHeight:o+i+s}}function $n({type:e,metrics:t}){if(!Zn(e))return;let n=Jn({type:e,metrics:t}),r=Yn({type:e,metrics:t});return{height:n,gapBefore:r,gapAfter:0,totalHeight:r+n}}function er({diff:e,diffStyle:t,startingLine:n=0,totalLines:r=1/0,expandedHunks:i,collapsedContextThreshold:a=1,callback:o}){let s=tr({diff:e,diffStyle:t,startingLine:n,expandedHunks:i,collapsedContextThreshold:a}),c={viewportStart:n,viewportEnd:n+r,isWindowedHighlight:n>0||r<1/0,splitCount:s.splitCount,unifiedCount:s.unifiedCount,finalHunkIndex:e.hunks.length-1,shouldBreak(){if(!c.isWindowedHighlight)return!1;let e=c.unifiedCount>=n+r,i=c.splitCount>=n+r;return t===`unified`?e:(t===`split`||e)&&i},shouldSkip(e,r){if(!c.isWindowedHighlight)return!1;let i=e>0&&c.unifiedCount+e<=n,a=r>0&&c.splitCount+r<=n;return t===`unified`?i:(t===`split`||i)&&a},incrementCounts(e,n){(t===`unified`||t===`both`)&&(c.unifiedCount+=e),(t===`split`||t===`both`)&&(c.splitCount+=n)},isInWindow(e,n){if(!c.isWindowedHighlight)return!0;let r=c.isInUnifiedWindow(e),i=c.isInSplitWindow(n);return t===`unified`?r:t===`split`?i:r||i},isInUnifiedWindow(e){return!c.isWindowedHighlight||c.unifiedCount>=n-e&&c.unifiedCount<n+r},isInSplitWindow(e){return!c.isWindowedHighlight||c.splitCount>=n-e&&c.splitCount<n+r},emit(e,n=!1){return n||(t===`unified`?c.incrementCounts(1,0):t===`split`?c.incrementCounts(0,1):c.incrementCounts(1,1)),o(e)??!1}};hunkIterator:for(let n=s.hunkIndex;n<e.hunks.length;n++){let r=e.hunks[n];if(r==null)throw Error(`iterateOverDiff: invalid hunk index`);if(c.shouldBreak())break;let o=A(r.deletionStart,r.deletionCount),s=A(r.additionStart,r.additionCount),l=!e.isPartial&&r.deletionCount===0?o:r.deletionLineIndex,u=!e.isPartial&&r.additionCount===0?s:r.additionLineIndex,d=U({isPartial:e.isPartial,rangeSize:r.collapsedBefore,expandedHunks:i,hunkIndex:n,collapsedContextThreshold:a}),f=n===c.finalHunkIndex?W({fileDiff:e,hunkIndex:n,expandedHunks:i,collapsedContextThreshold:a,errorPrefix:`iterateOverDiff`}):void 0,p=d.fromStart+d.fromEnd;function m(e,n){return f==null||f.collapsedLines<=0||f.fromStart+f.fromEnd>0?0:t===`unified`?e===r.unifiedLineStart+r.unifiedLineCount-1?f.collapsedLines:0:n===r.splitLineStart+r.splitLineCount-1?f.collapsedLines:0}let h=d.collapsedLines===0;function g(){return h?0:(h=!0,d.collapsedLines)}if(c.shouldSkip(p,p))c.incrementCounts(p,p),g();else{let e=r.unifiedLineStart-d.rangeSize,i=r.splitLineStart-d.rangeSize,a=l-d.rangeSize,f=u-d.rangeSize,p=o+1-d.rangeSize,m=s+1-d.rangeSize;if(ir(c,d.fromStart,t,t=>c.emit({hunkIndex:n,hunk:r,collapsedBefore:0,collapsedAfter:0,type:`context-expanded`,deletionLine:{lineNumber:p+t,lineIndex:a+t,noEOFCR:!1,unifiedLineIndex:e+t,splitLineIndex:i+t},additionLine:{unifiedLineIndex:e+t,splitLineIndex:i+t,lineIndex:f+t,lineNumber:m+t,noEOFCR:!1}}))||(e=r.unifiedLineStart-d.fromEnd,i=r.splitLineStart-d.fromEnd,a=l-d.fromEnd,f=u-d.fromEnd,p=o+1-d.fromEnd,m=s+1-d.fromEnd,ir(c,d.fromEnd,t,t=>c.emit({hunkIndex:n,hunk:r,collapsedBefore:g(),collapsedAfter:0,type:`context-expanded`,deletionLine:{lineNumber:p+t,lineIndex:a+t,noEOFCR:!1,unifiedLineIndex:e+t,splitLineIndex:i+t},additionLine:{unifiedLineIndex:e+t,splitLineIndex:i+t,lineIndex:f+t,lineNumber:m+t,noEOFCR:!1}}),()=>{g()})))break hunkIterator}let _=r.unifiedLineStart,v=r.splitLineStart,y=l,b=u,x=o+1,S=s+1,C=r.hunkContent.at(-1);for(let e of r.hunkContent){if(c.shouldBreak())break hunkIterator;let i=e===C;if(e.type===`context`){if(c.shouldSkip(e.lines,e.lines))c.incrementCounts(e.lines,e.lines),g();else if(ir(c,e.lines,t,t=>{let a=i&&t===e.lines-1,o=_+t,s=v+t;return c.emit({hunkIndex:n,hunk:r,collapsedBefore:g(),collapsedAfter:m(o,s),type:`context`,deletionLine:{lineNumber:x+t,lineIndex:y+t,noEOFCR:a&&r.noEOFCRDeletions,unifiedLineIndex:o,splitLineIndex:s},additionLine:{unifiedLineIndex:o,splitLineIndex:s,lineIndex:b+t,lineNumber:S+t,noEOFCR:a&&r.noEOFCRAdditions}})},()=>{g()}))break hunkIterator;_+=e.lines,v+=e.lines,y+=e.lines,b+=e.lines,x+=e.lines,S+=e.lines}else{let a=Math.max(e.deletions,e.additions),o=e.deletions+e.additions;if(!c.shouldSkip(o,a)){let s=ar(c,e,t);(s[0]?.[0]??0)>0&&g();for(let[l,u]of s)for(let s=l;s<u;s++){let l=m(_+s,t===`unified`?v+(s<e.deletions?s:s-e.deletions):v+s);if(c.emit(or({hunkIndex:n,hunk:r,collapsedBefore:g(),collapsedAfter:l,diffStyle:t,index:s,unifiedLineIndex:_,splitLineIndex:v,additionLineIndex:b,deletionLineIndex:y,additionLineNumber:S,deletionLineNumber:x,content:e,isLastContent:i,unifiedCount:o,splitCount:a}),!0))break hunkIterator}}g(),c.incrementCounts(o,a),_+=o,v+=a,y+=e.deletions,b+=e.additions,x+=e.deletions,S+=e.additions}}if(f!=null){let{collapsedLines:n,fromStart:r,fromEnd:i}=f,a=r+i;if(ir(c,a,t,t=>{let r=t===a-1;return c.emit({hunkIndex:e.hunks.length,hunk:void 0,collapsedBefore:0,collapsedAfter:r?n:0,type:`context-expanded`,deletionLine:{lineNumber:x+t,lineIndex:y+t,noEOFCR:!1,unifiedLineIndex:_+t,splitLineIndex:v+t},additionLine:{unifiedLineIndex:_+t,splitLineIndex:v+t,lineIndex:b+t,lineNumber:S+t,noEOFCR:!1}})},void 0,()=>c.shouldBreak()))break hunkIterator}}}function tr({diff:e,diffStyle:t,startingLine:n,expandedHunks:r,collapsedContextThreshold:i}){if(n<=0||t===`both`)return{hunkIndex:0,splitCount:0,unifiedCount:0};let a=nr({diff:e,expandedHunks:r,collapsedContextThreshold:i}),o=0,s=e.hunks.length-1,c=e.hunks.length;for(;o<=s;){let e=o+s>>1,r=a[e+1];if(r==null)throw Error(`iterateOverDiff: invalid hunk prefix index`);(t===`unified`?r.unifiedCount:r.splitCount)>n?(c=e,s=e-1):o=e+1}if(c>=e.hunks.length){let t=a[e.hunks.length];if(t==null)throw Error(`iterateOverDiff: invalid terminal hunk prefix index`);return{hunkIndex:e.hunks.length,splitCount:t.splitCount,unifiedCount:t.unifiedCount}}let l=a[c];if(l==null)throw Error(`iterateOverDiff: invalid selected hunk prefix index`);return{hunkIndex:c,splitCount:l.splitCount,unifiedCount:l.unifiedCount}}function nr({diff:e,expandedHunks:t,collapsedContextThreshold:n}){let r=0,i=0,a=e.hunks.length-1,o=[{splitCount:0,unifiedCount:0}];for(let s=0;s<e.hunks.length;s++){let c=e.hunks[s];if(c==null)throw Error(`iterateOverDiff: invalid hunk summary index`);let l=U({isPartial:e.isPartial,rangeSize:c.collapsedBefore,expandedHunks:t,hunkIndex:s,collapsedContextThreshold:n}),u=l.fromStart+l.fromEnd;r+=u+c.splitLineCount,i+=u+c.unifiedLineCount;let d=s===a?W({fileDiff:e,hunkIndex:s,expandedHunks:t,collapsedContextThreshold:n,errorPrefix:`iterateOverDiff`}):void 0;if(d!=null){let e=d.fromStart+d.fromEnd;r+=e,i+=e}o.push({splitCount:r,unifiedCount:i})}return o}function rr(e,t,n){if(!e.isWindowedHighlight||t<=0)return[0,t];let r=[];function i(n){let i=Math.max(0,e.viewportStart-n),a=Math.min(t,e.viewportEnd-n);a>i&&r.push([i,a])}if(n!==`split`&&i(e.unifiedCount),n!==`unified`&&i(e.splitCount),r.length===0)return[0,0];let a=r[0][0],o=r[0][1];for(let e=1;e<r.length;e++){let t=r[e];a=Math.min(a,t[0]),o=Math.max(o,t[1])}return[a,o]}function ir(e,t,n,r,i,a){let[o,s]=rr(e,t,n);o>0&&(e.incrementCounts(o,o),i?.());let c=o;for(;c<t;){if(a?.()===!0)return!0;if(c>=s){e.incrementCounts(t-c,t-c);break}if(e.isInWindow(0,0)){if(r(c)===!0)return!0}else e.incrementCounts(1,1);c++}return!1}function ar(e,t,n){if(!e.isWindowedHighlight)return[[0,n===`unified`?t.deletions+t.additions:Math.max(t.deletions,t.additions)]];let r=n!==`split`,i=n!==`unified`,a=n===`unified`?`unified`:`split`,o=[];function s(t,n){if(t+n<=e.viewportStart||t>=e.viewportEnd)return;let r=Math.max(0,e.viewportStart-t),i=Math.min(n,e.viewportEnd-t);return i>r?[r,i]:void 0}function c(e,n){return a===`split`?e:n===`additions`?[e[0]+t.deletions,e[1]+t.deletions]:e}function l(e,t){if(e==null)return;let[n,r]=c(e,t);r>n&&o.push([n,r])}if(r&&(l(s(e.unifiedCount,t.deletions),`deletions`),l(s(e.unifiedCount+t.deletions,t.additions),`additions`)),i&&(l(s(e.splitCount,t.deletions),`deletions`),l(s(e.splitCount,t.additions),`additions`)),o.length===0)return o;o.sort((e,t)=>e[0]-t[0]);let u=[o[0]];for(let[e,t]of o.slice(1)){let n=u[u.length-1];e<=n[1]?n[1]=Math.max(n[1],t):u.push([e,t])}return u}function or({hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:r,diffStyle:i,index:a,unifiedLineIndex:o,splitLineIndex:s,additionLineIndex:c,deletionLineIndex:l,additionLineNumber:u,deletionLineNumber:d,content:f,isLastContent:p,unifiedCount:m,splitCount:h}){let g=a<f.deletions?o+a:void 0,_=i===`unified`?a>=f.deletions?o+a:void 0:a<f.additions?o+f.deletions+a:void 0,v=i===`unified`?s+(a<f.deletions?a:a-f.deletions):s+a,y=a<f.deletions?l+a:void 0,b=a<f.deletions?d+a:void 0,x=i===`unified`?a>=f.deletions?c+(a-f.deletions):void 0:a<f.additions?c+a:void 0,S=i===`unified`?a>=f.deletions?u+(a-f.deletions):void 0:a<f.additions?u+a:void 0,C=i===`unified`?p&&a===f.deletions-1&&t.noEOFCRDeletions:p&&a===h-1&&t.noEOFCRDeletions,w=i===`unified`?p&&a===m-1&&t.noEOFCRAdditions:p&&a===h-1&&t.noEOFCRAdditions,T=y!=null&&b!=null&&g!=null?{lineNumber:b,lineIndex:y,noEOFCR:C,unifiedLineIndex:g,splitLineIndex:v}:void 0,E=x!=null&&S!=null&&_!=null?{unifiedLineIndex:_,splitLineIndex:v,lineIndex:x,lineNumber:S,noEOFCR:w}:void 0;if(T==null&&E!=null)return{type:`change`,hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:r,deletionLine:void 0,additionLine:E};if(T!=null&&E==null)return{type:`change`,hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:r,deletionLine:T,additionLine:void 0};if(T==null||E==null)throw Error(`iterateOverDiff: missing change line data`);return{type:`change`,hunkIndex:e,hunk:t,collapsedAfter:n,collapsedBefore:r,deletionLine:T,additionLine:E}}var G=class{diff(e,t,n={}){let r;typeof n==`function`?(r=n,n={}):`callback`in n&&(r=n.callback);let i=this.castInput(e,n),a=this.castInput(t,n),o=this.removeEmpty(this.tokenize(i,n)),s=this.removeEmpty(this.tokenize(a,n));return this.diffWithOptionsObj(o,s,n,r)}diffWithOptionsObj(e,t,n,r){let i=e=>{if(e=this.postProcess(e,n),r){setTimeout(function(){r(e)},0);return}else return e},a=t.length,o=e.length,s=1,c=a+o;n.maxEditLength!=null&&(c=Math.min(c,n.maxEditLength));let l=n.timeout??1/0,u=Date.now()+l,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0,n);if(d[0].oldPos+1>=o&&f+1>=a)return i(this.buildValues(d[0].lastComponent,t,e));let p=-1/0,m=1/0,h=()=>{for(let r=Math.max(p,-s);r<=Math.min(m,s);r+=2){let s,c=d[r-1],l=d[r+1];c&&(d[r-1]=void 0);let u=!1;if(l){let e=l.oldPos-r;u=l&&0<=e&&e<a}let h=c&&c.oldPos+1<o;if(!u&&!h){d[r]=void 0;continue}if(s=!h||u&&c.oldPos<l.oldPos?this.addToPath(l,!0,!1,0,n):this.addToPath(c,!1,!0,1,n),f=this.extractCommon(s,t,e,r,n),s.oldPos+1>=o&&f+1>=a)return i(this.buildValues(s.lastComponent,t,e))||!0;d[r]=s,s.oldPos+1>=o&&(m=Math.min(m,r-1)),f+1>=a&&(p=Math.max(p,r+1))}s++};if(r)(function e(){setTimeout(function(){if(s>c||Date.now()>u)return r(void 0);h()||e()},0)})();else for(;s<=c&&Date.now()<=u;){let e=h();if(e)return e}}addToPath(e,t,n,r,i){let a=e.lastComponent;return a&&!i.oneChangePerToken&&a.added===t&&a.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:a.count+1,added:t,removed:n,previousComponent:a.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:a}}}extractCommon(e,t,n,r,i){let a=t.length,o=n.length,s=e.oldPos,c=s-r,l=0;for(;c+1<a&&s+1<o&&this.equals(n[s+1],t[c+1],i);)c++,s++,l++,i.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return l&&!i.oneChangePerToken&&(e.lastComponent={count:l,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,c}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){let t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join(``)}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){let r=[],i;for(;e;)r.push(e),i=e.previousComponent,delete e.previousComponent,e=i;r.reverse();let a=r.length,o=0,s=0,c=0;for(;o<a;o++){let e=r[o];if(e.removed)e.value=this.join(n.slice(c,c+e.count)),c+=e.count;else{if(!e.added&&this.useLongestToken){let r=t.slice(s,s+e.count);r=r.map(function(e,t){let r=n[c+t];return r.length>e.length?r:e}),e.value=this.join(r)}else e.value=this.join(t.slice(s,s+e.count));s+=e.count,e.added||(c+=e.count)}}return r}},sr=new class extends G{};function cr(e,t,n){return sr.diff(e,t,n)}function lr(e,t){let n;for(n=0;n<e.length&&n<t.length;n++)if(e[n]!=t[n])return e.slice(0,n);return e.slice(0,n)}function ur(e,t){let n;if(!e||!t||e[e.length-1]!=t[t.length-1])return``;for(n=0;n<e.length&&n<t.length;n++)if(e[e.length-(n+1)]!=t[t.length-(n+1)])return e.slice(-n);return e.slice(-n)}function dr(e,t,n){if(e.slice(0,t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't start with prefix ${JSON.stringify(t)}; this is a bug`);return n+e.slice(t.length)}function fr(e,t,n){if(!t)return e+n;if(e.slice(-t.length)!=t)throw Error(`string ${JSON.stringify(e)} doesn't end with suffix ${JSON.stringify(t)}; this is a bug`);return e.slice(0,-t.length)+n}function pr(e,t){return dr(e,t,``)}function mr(e,t){return fr(e,t,``)}function hr(e,t){return t.slice(0,gr(e,t))}function gr(e,t){let n=0;e.length>t.length&&(n=e.length-t.length);let r=t.length;e.length<t.length&&(r=e.length);let i=Array(r),a=0;i[0]=0;for(let e=1;e<r;e++){for(t[e]==t[a]?i[e]=i[a]:i[e]=a;a>0&&t[e]!=t[a];)a=i[a];t[e]==t[a]&&a++}a=0;for(let r=n;r<e.length;r++){for(;a>0&&e[r]!=t[a];)a=i[a];e[r]==t[a]&&a++}return a}function _r(e,t){let n=[];for(let r of Array.from(t.segment(e))){let e=r.segment;n.length&&/\s/.test(n[n.length-1])&&/\s/.test(e)?n[n.length-1]+=e:n.push(e)}return n}function vr(e,t){if(t)return br(e,t)[1];let n;for(n=e.length-1;n>=0&&e[n].match(/\s/);n--);return e.substring(n+1)}function yr(e,t){if(t)return br(e,t)[0];let n=e.match(/^\s*/);return n?n[0]:``}function br(e,t){if(!t)return[yr(e),vr(e)];if(t.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);let n=_r(e,t),r=n[0],i=n[n.length-1];return[/\s/.test(r)?r:``,/\s/.test(i)?i:``]}var xr=`a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}`,Sr=RegExp(`[${xr}]+|\\s+|[^${xr}]`,`ug`);new class extends G{equals(e,t,n){return n.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e.trim()===t.trim()}tokenize(e,t={}){let n;if(t.intlSegmenter){let r=t.intlSegmenter;if(r.resolvedOptions().granularity!=`word`)throw Error(`The segmenter passed must have a granularity of "word"`);n=_r(e,r)}else n=e.match(Sr)||[];let r=[],i=null;return n.forEach(e=>{/\s/.test(e)?i==null?r.push(e):r.push(r.pop()+e):i!=null&&/\s/.test(i)?r[r.length-1]==i?r.push(r.pop()+e):r.push(i+e):r.push(e),i=e}),r}join(e){return e.map((e,t)=>t==0?e:e.replace(/^\s+/,``)).join(``)}postProcess(e,t){if(!e||t.oneChangePerToken)return e;let n=null,r=null,i=null;return e.forEach(e=>{e.added?r=e:e.removed?i=e:((r||i)&&Cr(n,i,r,e,t.intlSegmenter),n=e,r=null,i=null)}),(r||i)&&Cr(n,i,r,null,t.intlSegmenter),e}};function Cr(e,t,n,r,i){if(t&&n){let[a,o]=br(t.value,i),[s,c]=br(n.value,i);if(e){let r=lr(a,s);e.value=fr(e.value,s,r),t.value=pr(t.value,r),n.value=pr(n.value,r)}if(r){let e=ur(o,c);r.value=dr(r.value,c,e),t.value=mr(t.value,e),n.value=mr(n.value,e)}}else if(n){if(e){let e=yr(n.value,i);n.value=n.value.substring(e.length)}if(r){let e=yr(r.value,i);r.value=r.value.substring(e.length)}}else if(e&&r){let n=yr(r.value,i),[a,o]=br(t.value,i),s=lr(n,a);t.value=pr(t.value,s);let c=ur(pr(n,s),o);t.value=mr(t.value,c),r.value=dr(r.value,n,c),e.value=fr(e.value,n,n.slice(0,n.length-c.length))}else if(r){let e=yr(r.value,i),n=hr(vr(t.value,i),e);t.value=mr(t.value,n)}else if(e){let n=hr(vr(e.value,i),yr(t.value,i));t.value=pr(t.value,n)}}var wr=new class extends G{tokenize(e){let t=RegExp(`(\\r?\\n)|[${xr}]+|[^\\S\\n\\r]+|[^${xr}]`,`ug`);return e.match(t)||[]}};function Tr(e,t,n){return wr.diff(e,t,n)}var Er=new class extends G{constructor(){super(...arguments),this.tokenize=Or}equals(e,t,n){return n.ignoreWhitespace?((!n.newlineIsToken||!e.includes(`