@vite-hub/ui 0.1.0 → 0.4.1

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 (314) hide show
  1. package/README.md +247 -21
  2. package/dist/attachments-BzTwqRTU.js +90 -0
  3. package/dist/{avatar-stack-DXmCQhxd.d.ts → avatar-stack-DPRFuezh.d.ts} +1 -1
  4. package/dist/choices-input-ByXJvDn1.d.ts +94 -0
  5. package/dist/{code-view-J4OsgEdh.js → code-view-DsU-xzic.js} +20 -4
  6. package/dist/colors-BghReA9C-CjF9gnmy.js +28 -0
  7. package/dist/comment-attachments-C4yNbcx5.js +20 -0
  8. package/dist/comment-composer-fINL5bxo.d.ts +243 -0
  9. package/dist/comment-composer-jYv2ULNP.js +591 -0
  10. package/dist/comment-layer-C_sbPIR5.d.ts +176 -0
  11. package/dist/comment-list-BcSaLngS.d.ts +62 -0
  12. package/dist/comment-marks.css +234 -0
  13. package/dist/comment-panel-CfvdRUMX.d.ts +208 -0
  14. package/dist/comment-person-CLPlW_SS.js +40 -0
  15. package/dist/comment-pin-DHOdRvUw.d.ts +68 -0
  16. package/dist/comment-row-Bn3nr8l5.js +39 -0
  17. package/dist/comment-selection-bar-CyVBNYl9.d.ts +42 -0
  18. package/dist/comment-thread-DKJjmWN0.d.ts +385 -0
  19. package/dist/comment-visibility-DsVuVndP.d.ts +40 -0
  20. package/dist/{comments-C08J3z4e.js → comments-D0d26ghV.js} +210 -59
  21. package/dist/comments-D8hulVPy.d.ts +198 -0
  22. package/dist/comments-context-C2lOZyQ5.js +38 -0
  23. package/dist/config-DgxBW013.d.ts +80 -0
  24. package/dist/config-Dk67emQt.js +63 -0
  25. package/dist/copy-button-CRN3kmSD.js +253 -0
  26. package/dist/draw-DzSmD7uo-Dwz8zoH2.js +72976 -0
  27. package/dist/editor-C_wt4RRV.js +582 -0
  28. package/dist/error-diagnostics-SXtnk6bz.js +38 -0
  29. package/dist/{file-tree-C1pv4_AI.js → file-tree-C4OYgbV-.js} +292 -145
  30. package/dist/{file-tree-Ctb8hZ_g.d.ts → file-tree-DlT9RGhu.d.ts} +51 -15
  31. package/dist/format-orwcdZL_.js +39 -0
  32. package/dist/handlers-DMl-Na3x.js +182 -0
  33. package/dist/headless.d.ts +5 -176
  34. package/dist/headless.js +5 -3
  35. package/dist/icon-swap.css +69 -0
  36. package/dist/{image-preview-VfknBEFu.js → image-preview-C9tdkmEj.js} +8 -5
  37. package/dist/{index-DcH0QSI5.d.ts → index-BYRFQfCd.d.ts} +14 -0
  38. package/dist/{code-view-vDM-hph-.d.ts → index-CNY1uNTh.d.ts} +14 -228
  39. package/dist/index.d.ts +55 -57
  40. package/dist/index.js +678 -25
  41. package/dist/markdown-editor-CMbNZOdN.js +2394 -0
  42. package/dist/markdown-editor-wQF0yD5o.d.ts +195 -0
  43. package/dist/markdown-editor.d.ts +108 -0
  44. package/dist/markdown-editor.js +3 -0
  45. package/dist/message-scroller-jrYN9dG9.d.ts +175 -0
  46. package/dist/nuxt-ui-DSQFzq3s.js +38 -0
  47. package/dist/nuxt.d.ts +84 -2
  48. package/dist/nuxt.js +243 -35
  49. package/dist/parts/components/agent-session.d.ts +254 -0
  50. package/dist/parts/components/agent-session.js +640 -0
  51. package/dist/{attachment-BBndG9_P.d.ts → parts/components/attachment.d.ts} +14 -15
  52. package/dist/{attachment-B3dXC7jM.js → parts/components/attachment.js} +6 -4
  53. package/dist/{avatar-stack.d.ts → parts/components/avatar-stack.d.ts} +1 -1
  54. package/dist/{avatar-stack-DM6HRnc0.js → parts/components/avatar-stack.js} +2 -5
  55. package/dist/{bubble-BJH2rfii.d.ts → parts/components/bubble.d.ts} +7 -8
  56. package/dist/{bubble-BPyFQlW7.js → parts/components/bubble.js} +2 -2
  57. package/dist/{chat-message-mpDmZbIC.d.ts → parts/components/chat-message.d.ts} +2 -3
  58. package/dist/{chat-message-BNK9G7xF.js → parts/components/chat-message.js} +4 -4
  59. package/dist/{chat-session-D6C7VJBR.d.ts → parts/components/chat-session.d.ts} +3 -4
  60. package/dist/{chat-session-DYEHB1HC.js → parts/components/chat-session.js} +2 -2
  61. package/dist/{chat-B9HlZWA2.d.ts → parts/components/chat.d.ts} +8 -4
  62. package/dist/{chat-BoFHlu9V.js → parts/components/chat.js} +42 -9
  63. package/dist/{highlighted-code-Dzf6o54i.d.ts → parts/components/code-block.d.ts} +15 -23
  64. package/dist/{code-block-Br-02hn-.js → parts/components/code-block.js} +9 -38
  65. package/dist/parts/components/code-view.d.ts +270 -0
  66. package/dist/parts/components/code-view.js +2 -0
  67. package/dist/parts/components/comment-composer.d.ts +2 -0
  68. package/dist/parts/components/comment-composer.js +2 -0
  69. package/dist/parts/components/comment-layer.d.ts +2 -0
  70. package/dist/parts/components/comment-layer.js +631 -0
  71. package/dist/parts/components/comment-list.d.ts +2 -0
  72. package/dist/parts/components/comment-list.js +168 -0
  73. package/dist/parts/components/comment-panel.d.ts +2 -0
  74. package/dist/parts/components/comment-panel.js +311 -0
  75. package/dist/parts/components/comment-pin.d.ts +2 -0
  76. package/dist/parts/components/comment-pin.js +75 -0
  77. package/dist/parts/components/comment-selection-bar.d.ts +2 -0
  78. package/dist/parts/components/comment-selection-bar.js +116 -0
  79. package/dist/parts/components/comment-thread.d.ts +2 -0
  80. package/dist/parts/components/comment-thread.js +598 -0
  81. package/dist/parts/components/comments.d.ts +8 -0
  82. package/dist/parts/components/comments.js +9 -0
  83. package/dist/{connection-status-DjGBw6xX.d.ts → parts/components/connection-status.d.ts} +6 -7
  84. package/dist/{connection-status-CzuWBENf.js → parts/components/connection-status.js} +1 -1
  85. package/dist/parts/components/copy-button.d.ts +118 -0
  86. package/dist/parts/components/copy-button.js +2 -0
  87. package/dist/parts/components/device-frame.d.ts +130 -0
  88. package/dist/parts/components/device-frame.js +471 -0
  89. package/dist/parts/components/file-tree.d.ts +2 -0
  90. package/dist/parts/components/file-tree.js +2 -0
  91. package/dist/parts/components/filter-search.d.ts +47 -0
  92. package/dist/parts/components/filter-search.js +58 -0
  93. package/dist/parts/components/markdown-editor.d.ts +2 -0
  94. package/dist/parts/components/markdown-editor.js +2 -0
  95. package/dist/parts/components/markdown-renderer.d.ts +52 -0
  96. package/dist/parts/components/markdown-renderer.js +23077 -0
  97. package/dist/{markdown-Dse5ldJe.d.ts → parts/components/markdown.d.ts} +7 -7
  98. package/dist/parts/components/markdown.js +47 -0
  99. package/dist/{marker-ea-tvx-J.d.ts → parts/components/marker.d.ts} +6 -7
  100. package/dist/{marker-Di2ZG_k1.js → parts/components/marker.js} +2 -2
  101. package/dist/{message-parts-BBFUkluC.d.ts → parts/components/message-parts.d.ts} +2 -3
  102. package/dist/{message-parts-DQnfioAH.js → parts/components/message-parts.js} +6 -6
  103. package/dist/{message-CW_paC1k.d.ts → parts/components/message.d.ts} +8 -9
  104. package/dist/{message-DiyBthIq.js → parts/components/message.js} +2 -2
  105. package/dist/parts/components/patch-parsers.d.ts +2 -0
  106. package/dist/parts/components/patch-parsers.js +2 -0
  107. package/dist/{prompt-input-Cy_Ue6B5.d.ts → parts/components/prompt-input.d.ts} +53 -10
  108. package/dist/{prompt-input-BbnCb80O.js → parts/components/prompt-input.js} +66 -111
  109. package/dist/parts/components/relative-time.d.ts +73 -0
  110. package/dist/parts/components/relative-time.js +2 -0
  111. package/dist/parts/components/status.d.ts +60 -0
  112. package/dist/parts/components/status.js +48 -0
  113. package/dist/{sync-status-refELOZn.d.ts → parts/components/sync-status.d.ts} +5 -6
  114. package/dist/{sync-status-BpxYdZIJ.js → parts/components/sync-status.js} +1 -1
  115. package/dist/{tool-list-E7CA52rz.d.ts → parts/components/tool-list.d.ts} +3 -4
  116. package/dist/{tool-list-BdSr5CT4.js → parts/components/tool-list.js} +7 -38
  117. package/dist/{trace-run-COeXn46Z.d.ts → parts/components/trace-run.d.ts} +3 -4
  118. package/dist/{trace-run-BIQ17CED.js → parts/components/trace-run.js} +15 -23
  119. package/dist/{trace-V7rM3Pyd.d.ts → parts/components/trace.d.ts} +11 -12
  120. package/dist/{trace-llBCDiSW.js → parts/components/trace.js} +20 -13
  121. package/dist/parts/composables/attachments.d.ts +32 -0
  122. package/dist/parts/composables/attachments.js +2 -0
  123. package/dist/parts/composables/highlighted-code.d.ts +9 -0
  124. package/dist/{highlighted-code-Ck4zexJX.js → parts/composables/highlighted-code.js} +5 -2
  125. package/dist/parts/headless/choices-input.d.ts +2 -0
  126. package/dist/parts/headless/choices-input.js +162 -0
  127. package/dist/parts/headless/comment-visibility.d.ts +2 -0
  128. package/dist/parts/headless/comment-visibility.js +128 -0
  129. package/dist/parts/headless/comments.d.ts +2 -0
  130. package/dist/parts/headless/comments.js +2 -0
  131. package/dist/parts/headless/message-scroller.d.ts +2 -0
  132. package/dist/{message-scroller-CX6NJTdm.js → parts/headless/message-scroller.js} +2 -2
  133. package/dist/parts/playground/highlight.d.ts +5 -0
  134. package/dist/parts/playground/highlight.js +23 -0
  135. package/dist/parts/playground/paths.d.ts +4 -0
  136. package/dist/parts/playground/paths.js +7 -0
  137. package/dist/parts/playground/playground-render.d.ts +126 -0
  138. package/dist/parts/playground/playground-render.js +356 -0
  139. package/dist/parts/playground/share.d.ts +2 -0
  140. package/dist/parts/playground/share.js +92 -0
  141. package/dist/parts/playground/zip.d.ts +6 -0
  142. package/dist/parts/playground/zip.js +76 -0
  143. package/dist/parts/workspace/browser-support-notice.d.ts +76 -0
  144. package/dist/parts/workspace/browser-support-notice.js +105 -0
  145. package/dist/parts/workspace/codemirror.d.ts +16 -0
  146. package/dist/parts/workspace/codemirror.js +243 -0
  147. package/dist/parts/workspace/connect-panel.d.ts +129 -0
  148. package/dist/parts/workspace/connect-panel.js +285 -0
  149. package/dist/parts/workspace/connect-store.d.ts +26 -0
  150. package/dist/parts/workspace/connect-store.js +59 -0
  151. package/dist/parts/workspace/icons.d.ts +34 -0
  152. package/dist/parts/workspace/icons.js +46 -0
  153. package/dist/parts/workspace/playground-container.d.ts +192 -0
  154. package/dist/parts/workspace/playground-container.js +603 -0
  155. package/dist/parts/workspace/workspace-boot-status.d.ts +75 -0
  156. package/dist/parts/workspace/workspace-boot-status.js +207 -0
  157. package/dist/parts/workspace/workspace-editor.d.ts +43 -0
  158. package/dist/parts/workspace/workspace-editor.js +54 -0
  159. package/dist/parts/workspace/workspace-file-tree.d.ts +53 -0
  160. package/dist/parts/workspace/workspace-file-tree.js +68 -0
  161. package/dist/parts/workspace/workspace-preview.d.ts +72 -0
  162. package/dist/parts/workspace/workspace-preview.js +307 -0
  163. package/dist/parts/workspace/workspace-shell.d.ts +88 -0
  164. package/dist/parts/workspace/workspace-shell.js +291 -0
  165. package/dist/parts/workspace/workspace-terminal.d.ts +39 -0
  166. package/dist/parts/workspace/workspace-terminal.js +130 -0
  167. package/dist/payload-text-sjkYAwvw.js +32 -0
  168. package/dist/{pierre-code-view-T7V67hwT.js → pierre-code-view-NE35tkmR.js} +245 -102
  169. package/dist/{pierre-dark-DDWDl8g6.js → pierre-dark-CzUmjETS.js} +3 -1
  170. package/dist/{pierre-light-CWhW4NrH.js → pierre-light-Dn6E0sWv.js} +3 -1
  171. package/dist/playground.d.ts +4 -0
  172. package/dist/playground.js +4 -0
  173. package/dist/relative-time-BVmjOsYG.js +309 -0
  174. package/dist/rolldown-runtime-C9mWXvCC.js +29 -0
  175. package/dist/runtime/nuxt-plugin.js +23 -4
  176. package/dist/sankey-CAYwt82B-D4uDQoMR.js +2887 -0
  177. package/dist/share-DM4eNy4q.d.ts +37 -0
  178. package/dist/{slot-part-C7Ocxn3b.js → slot-part-Doic71uh.js} +7 -1
  179. package/dist/styles.css +2609 -620
  180. package/dist/temml-BilSAAws.js +12362 -0
  181. package/dist/theme-focus-ring.css +42 -0
  182. package/dist/theme.css +376 -0
  183. package/dist/theme.d.ts +355 -0
  184. package/dist/theme.js +265 -0
  185. package/dist/{types-CqDwuJAm.d.ts → types-Dj7vp0lZ.d.ts} +1 -1
  186. package/dist/vue-BDmSCtay.js +30779 -0
  187. package/dist/vue-DGstVdGn.js +2492 -0
  188. package/dist/workspace.d.ts +15 -0
  189. package/dist/workspace.js +12 -0
  190. package/package.json +135 -149
  191. package/dist/andromeeda-BASpqCeJ.js +0 -4
  192. package/dist/attachment.d.ts +0 -2
  193. package/dist/attachment.js +0 -2
  194. package/dist/aurora-x-DugsLcii.js +0 -4
  195. package/dist/avatar-stack.js +0 -2
  196. package/dist/ayu-dark-BT3qdi3o.js +0 -4
  197. package/dist/ayu-light-BVZyHoh9.js +0 -4
  198. package/dist/ayu-mirage-XFwUVZQZ.js +0 -4
  199. package/dist/bubble.d.ts +0 -2
  200. package/dist/bubble.js +0 -2
  201. package/dist/catppuccin-frappe-D20KODDN.js +0 -4
  202. package/dist/catppuccin-latte-eGLVHIUJ.js +0 -4
  203. package/dist/catppuccin-macchiato-bQGch4PY.js +0 -4
  204. package/dist/catppuccin-mocha-Bes8-0Mr.js +0 -4
  205. package/dist/chat-message.d.ts +0 -2
  206. package/dist/chat-message.js +0 -2
  207. package/dist/chat-session.d.ts +0 -2
  208. package/dist/chat-session.js +0 -2
  209. package/dist/chat.d.ts +0 -2
  210. package/dist/chat.js +0 -2
  211. package/dist/code-block.d.ts +0 -2
  212. package/dist/code-block.js +0 -3
  213. package/dist/code-view.d.ts +0 -2
  214. package/dist/code-view.js +0 -2
  215. package/dist/comment-layer-CBlxJ8eK.js +0 -1113
  216. package/dist/comments-ChNJkV1d.d.ts +0 -108
  217. package/dist/comments-Cq5eewsu.d.ts +0 -537
  218. package/dist/comments.d.ts +0 -2
  219. package/dist/comments.js +0 -2
  220. package/dist/config-Bux_AJzm.d.ts +0 -29
  221. package/dist/config-bHqE4JOs.js +0 -38
  222. package/dist/connection-status.d.ts +0 -2
  223. package/dist/connection-status.js +0 -2
  224. package/dist/dark-plus-BGuiqa1B.js +0 -4
  225. package/dist/dracula-0CVA2XY5.js +0 -4
  226. package/dist/dracula-soft-Dk9bpbVU.js +0 -4
  227. package/dist/error-diagnostics-B4hMpJRL.js +0 -13
  228. package/dist/everforest-dark-CRjTbhh5.js +0 -4
  229. package/dist/everforest-light-CEeYFLn8.js +0 -4
  230. package/dist/file-diff.d.ts +0 -2
  231. package/dist/file-diff.js +0 -2
  232. package/dist/file-tree.d.ts +0 -2
  233. package/dist/file-tree.js +0 -2
  234. package/dist/file-view.d.ts +0 -2
  235. package/dist/file-view.js +0 -2
  236. package/dist/github-dark-BXgKmOw_.js +0 -4
  237. package/dist/github-dark-default-DzJQXksd.js +0 -4
  238. package/dist/github-dark-dimmed-B1pEmGtS.js +0 -4
  239. package/dist/github-dark-high-contrast-BkHIa6jc.js +0 -4
  240. package/dist/github-light-BKRlUbaB.js +0 -4
  241. package/dist/github-light-default-BU3eYkzs.js +0 -4
  242. package/dist/github-light-high-contrast-B3MumDcI.js +0 -4
  243. package/dist/gruvbox-dark-hard-B0ecF443.js +0 -4
  244. package/dist/gruvbox-dark-medium-BQnpC39k.js +0 -4
  245. package/dist/gruvbox-dark-soft-DFZUgESr.js +0 -4
  246. package/dist/gruvbox-light-hard-CuB_LOJr.js +0 -4
  247. package/dist/gruvbox-light-medium-idDHgxjs.js +0 -4
  248. package/dist/gruvbox-light-soft-CfWH49MY.js +0 -4
  249. package/dist/horizon-bright-Ba6M8QSV.js +0 -4
  250. package/dist/horizon-h92C5OlZ.js +0 -4
  251. package/dist/houston-EQnPegWq.js +0 -4
  252. package/dist/kanagawa-dragon-DgDvwi3B.js +0 -4
  253. package/dist/kanagawa-lotus-BgoQro20.js +0 -4
  254. package/dist/kanagawa-wave-DgXEowHs.js +0 -4
  255. package/dist/laserwave-IxBH_3yW.js +0 -4
  256. package/dist/light-plus-S8JBx6is.js +0 -4
  257. package/dist/markdown-BoLBN0qH.js +0 -197
  258. package/dist/markdown.d.ts +0 -2
  259. package/dist/markdown.js +0 -2
  260. package/dist/marker.d.ts +0 -2
  261. package/dist/marker.js +0 -2
  262. package/dist/material-theme-D1f3HBq-.js +0 -4
  263. package/dist/material-theme-darker-ExzYhT0j.js +0 -4
  264. package/dist/material-theme-lighter-D6gH9nnA.js +0 -4
  265. package/dist/material-theme-ocean-D1w5BPAa.js +0 -4
  266. package/dist/material-theme-palenight-CkqWmVpF.js +0 -4
  267. package/dist/message-parts.d.ts +0 -2
  268. package/dist/message-parts.js +0 -2
  269. package/dist/message.d.ts +0 -2
  270. package/dist/message.js +0 -2
  271. package/dist/min-dark-npsJH98j.js +0 -4
  272. package/dist/min-light-DUk1XsVt.js +0 -4
  273. package/dist/monokai-CfFRWUNl.js +0 -4
  274. package/dist/multi-file-diff.d.ts +0 -2
  275. package/dist/multi-file-diff.js +0 -2
  276. package/dist/night-owl-BS7V-av_.js +0 -4
  277. package/dist/night-owl-light-CZtRawYE.js +0 -4
  278. package/dist/nord-BFh54Nqz.js +0 -4
  279. package/dist/one-dark-pro-zDovGosB.js +0 -4
  280. package/dist/one-light-gmHK3iK6.js +0 -4
  281. package/dist/patch-diff.d.ts +0 -2
  282. package/dist/patch-diff.js +0 -2
  283. package/dist/plastic-DtdaCjub.js +0 -4
  284. package/dist/poimandres-Hdda6aHK.js +0 -4
  285. package/dist/primitive-rail.d.ts +0 -222
  286. package/dist/primitive-rail.js +0 -348
  287. package/dist/prompt-input.d.ts +0 -2
  288. package/dist/prompt-input.js +0 -2
  289. package/dist/red-VqZFRByZ.js +0 -4
  290. package/dist/rose-pine-DiTkEueR.js +0 -4
  291. package/dist/rose-pine-dawn-tfo5y2X0.js +0 -4
  292. package/dist/rose-pine-moon-C0gON9XN.js +0 -4
  293. package/dist/runtime-type-DlCscMfw.js +0 -59
  294. package/dist/slack-dark-v8P_eXr6.js +0 -4
  295. package/dist/slack-ochin-D8SyEdKz.js +0 -4
  296. package/dist/snazzy-light-BtkQkvXb.js +0 -4
  297. package/dist/solarized-dark-B8nAdMfM.js +0 -4
  298. package/dist/solarized-light-B-3F1INj.js +0 -4
  299. package/dist/sync-status.d.ts +0 -2
  300. package/dist/sync-status.js +0 -2
  301. package/dist/synthwave-84-DcsXCF_c.js +0 -4
  302. package/dist/tokyo-night-Bvpqduda.js +0 -4
  303. package/dist/tool-list.d.ts +0 -2
  304. package/dist/tool-list.js +0 -2
  305. package/dist/trace-run.d.ts +0 -2
  306. package/dist/trace-run.js +0 -2
  307. package/dist/trace.d.ts +0 -2
  308. package/dist/trace.js +0 -2
  309. package/dist/unresolved-file.d.ts +0 -2
  310. package/dist/unresolved-file.js +0 -2
  311. package/dist/vesper-CfxmMOy3.js +0 -4
  312. package/dist/vitesse-black-D9-_1mjV.js +0 -4
  313. package/dist/vitesse-dark-DlSMLlr9.js +0 -4
  314. package/dist/vitesse-light-KRWWWztf.js +0 -4
@@ -1,20 +1,9 @@
1
- import { s as pierrePropTypes } from "./code-view-J4OsgEdh.js";
1
+ import { n as __exportAll } from "./rolldown-runtime-C9mWXvCC.js";
2
+ import { s as pierrePropTypes } from "./code-view-DsU-xzic.js";
2
3
  import { A as SPLIT_WITH_NEWLINES, C as DIFFS_SCROLLBAR_GUTTER_MEASURED_PROPERTY, D as HEADER_FILENAME_SUFFIX_SLOT_ID, E as EMPTY_RENDER_RANGE, M as UNSAFE_CSS_ATTRIBUTE, O as HEADER_METADATA_SLOT_ID, S as DIFFS_DEVELOPMENT_BUILD, T as DIFFS_TAG_NAME, _ as DEFAULT_RENDER_RANGE, b as DEFAULT_TOKENIZE_MAX_LENGTH, c as composeCacheKey, d as CODE_VIEW_FOOTER_ATTRIBUTE, f as CODE_VIEW_HEADER_ATTRIBUTE, g as DEFAULT_EXPANDED_REGION, h as DEFAULT_CODE_VIEW_LAYOUT, i as diffChars, j as THEME_CSS_ATTRIBUTE, k as HEADER_PREFIX_SLOT_ID, l as getHunkSideEndBoundary, m as DEFAULT_CODE_VIEW_FILE_METRICS, n as parseDiffFromFile, o as slideBlankBoundaryBlocksUp, p as CUSTOM_HEADER_SLOT_ID, r as diffWordsWithSpace, s as cleanLastNewline, t as getSingularPatch, u as getHunkSideStartBoundary, v as DEFAULT_SMOOTH_SCROLL_SETTINGS, w as DIFFS_SCROLLBAR_MEASURE_ATTRIBUTE, x as DEFAULT_VIRTUAL_FILE_METRICS, y as DEFAULT_THEMES } from "./getSingularPatch-Dsb8EgxR.js";
3
4
  import { computed, defineComponent, h, onBeforeUnmount, toRaw, watchEffect } from "vue";
4
5
  import { bundledLanguages, createHighlighter, createJavaScriptRegexEngine, createOnigurumaEngine } from "shiki";
5
6
  import { normalizeTheme } from "shiki/core";
6
- //#region \0rolldown/runtime.js
7
- var __defProp = Object.defineProperty;
8
- var __exportAll = (all, no_symbols) => {
9
- let target = {};
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: true
13
- });
14
- if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
15
- return target;
16
- };
17
- //#endregion
18
7
  //#region ../../node_modules/.pnpm/@pierre+diffs@1.5.2_@shikijs+themes@4.5.0_react-dom@19.2.8_react@19.2.6__react@19.2.6/node_modules/@pierre/diffs/dist/highlighter/languages/constants.js
19
8
  const ResolvedLanguages = /* @__PURE__ */ new Map();
20
9
  const ResolvingLanguages = /* @__PURE__ */ new Map();
@@ -386,12 +375,12 @@ const PIERRE_THEME_DISPLAY_NAMES = {
386
375
  "pierre-light-tritanopia": "Pierre Light Tritanopia"
387
376
  };
388
377
  const PIERRE_THEME_IMPORTS = {
389
- "pierre-dark": () => import("./pierre-dark-DDWDl8g6.js"),
378
+ "pierre-dark": () => import("./pierre-dark-CzUmjETS.js").then((n) => n.n),
390
379
  "pierre-dark-soft": () => import("./pierre-dark-soft-Bb-4-biO.js"),
391
380
  "pierre-dark-vibrant": () => import("./pierre-dark-vibrant-8oZzB3gw.js"),
392
381
  "pierre-dark-protanopia-deuteranopia": () => import("./pierre-dark-protanopia-deuteranopia-C35UMuvO.js"),
393
382
  "pierre-dark-tritanopia": () => import("./pierre-dark-tritanopia-CIJISGWF.js"),
394
- "pierre-light": () => import("./pierre-light-CWhW4NrH.js"),
383
+ "pierre-light": () => import("./pierre-light-Dn6E0sWv.js").then((n) => n.n),
395
384
  "pierre-light-soft": () => import("./pierre-light-soft-BCU6fuhO.js"),
396
385
  "pierre-light-vibrant": () => import("./pierre-light-vibrant-Cwh332o_.js"),
397
386
  "pierre-light-protanopia-deuteranopia": () => import("./pierre-light-protanopia-deuteranopia-u0U7N4Hn.js"),
@@ -485,71 +474,71 @@ function shikiColorScheme(name) {
485
474
  return "dark";
486
475
  }
487
476
  const SHIKI_THEME_IMPORTS = {
488
- andromeeda: () => import("./andromeeda-BASpqCeJ.js"),
489
- "aurora-x": () => import("./aurora-x-DugsLcii.js"),
490
- "ayu-dark": () => import("./ayu-dark-BT3qdi3o.js"),
491
- "ayu-light": () => import("./ayu-light-BVZyHoh9.js"),
492
- "ayu-mirage": () => import("./ayu-mirage-XFwUVZQZ.js"),
493
- "catppuccin-frappe": () => import("./catppuccin-frappe-D20KODDN.js"),
494
- "catppuccin-latte": () => import("./catppuccin-latte-eGLVHIUJ.js"),
495
- "catppuccin-macchiato": () => import("./catppuccin-macchiato-bQGch4PY.js"),
496
- "catppuccin-mocha": () => import("./catppuccin-mocha-Bes8-0Mr.js"),
497
- "dark-plus": () => import("./dark-plus-BGuiqa1B.js"),
498
- dracula: () => import("./dracula-0CVA2XY5.js"),
499
- "dracula-soft": () => import("./dracula-soft-Dk9bpbVU.js"),
500
- "everforest-dark": () => import("./everforest-dark-CRjTbhh5.js"),
501
- "everforest-light": () => import("./everforest-light-CEeYFLn8.js"),
502
- "github-dark": () => import("./github-dark-BXgKmOw_.js"),
503
- "github-dark-default": () => import("./github-dark-default-DzJQXksd.js"),
504
- "github-dark-dimmed": () => import("./github-dark-dimmed-B1pEmGtS.js"),
505
- "github-dark-high-contrast": () => import("./github-dark-high-contrast-BkHIa6jc.js"),
506
- "github-light": () => import("./github-light-BKRlUbaB.js"),
507
- "github-light-default": () => import("./github-light-default-BU3eYkzs.js"),
508
- "github-light-high-contrast": () => import("./github-light-high-contrast-B3MumDcI.js"),
509
- "gruvbox-dark-hard": () => import("./gruvbox-dark-hard-B0ecF443.js"),
510
- "gruvbox-dark-medium": () => import("./gruvbox-dark-medium-BQnpC39k.js"),
511
- "gruvbox-dark-soft": () => import("./gruvbox-dark-soft-DFZUgESr.js"),
512
- "gruvbox-light-hard": () => import("./gruvbox-light-hard-CuB_LOJr.js"),
513
- "gruvbox-light-medium": () => import("./gruvbox-light-medium-idDHgxjs.js"),
514
- "gruvbox-light-soft": () => import("./gruvbox-light-soft-CfWH49MY.js"),
515
- horizon: () => import("./horizon-h92C5OlZ.js"),
516
- "horizon-bright": () => import("./horizon-bright-Ba6M8QSV.js"),
517
- houston: () => import("./houston-EQnPegWq.js"),
518
- "kanagawa-dragon": () => import("./kanagawa-dragon-DgDvwi3B.js"),
519
- "kanagawa-lotus": () => import("./kanagawa-lotus-BgoQro20.js"),
520
- "kanagawa-wave": () => import("./kanagawa-wave-DgXEowHs.js"),
521
- laserwave: () => import("./laserwave-IxBH_3yW.js"),
522
- "light-plus": () => import("./light-plus-S8JBx6is.js"),
523
- "material-theme": () => import("./material-theme-D1f3HBq-.js"),
524
- "material-theme-darker": () => import("./material-theme-darker-ExzYhT0j.js"),
525
- "material-theme-lighter": () => import("./material-theme-lighter-D6gH9nnA.js"),
526
- "material-theme-ocean": () => import("./material-theme-ocean-D1w5BPAa.js"),
527
- "material-theme-palenight": () => import("./material-theme-palenight-CkqWmVpF.js"),
528
- "min-dark": () => import("./min-dark-npsJH98j.js"),
529
- "min-light": () => import("./min-light-DUk1XsVt.js"),
530
- monokai: () => import("./monokai-CfFRWUNl.js"),
531
- "night-owl": () => import("./night-owl-BS7V-av_.js"),
532
- "night-owl-light": () => import("./night-owl-light-CZtRawYE.js"),
533
- nord: () => import("./nord-BFh54Nqz.js"),
534
- "one-dark-pro": () => import("./one-dark-pro-zDovGosB.js"),
535
- "one-light": () => import("./one-light-gmHK3iK6.js"),
536
- plastic: () => import("./plastic-DtdaCjub.js"),
537
- poimandres: () => import("./poimandres-Hdda6aHK.js"),
538
- red: () => import("./red-VqZFRByZ.js"),
539
- "rose-pine": () => import("./rose-pine-DiTkEueR.js"),
540
- "rose-pine-dawn": () => import("./rose-pine-dawn-tfo5y2X0.js"),
541
- "rose-pine-moon": () => import("./rose-pine-moon-C0gON9XN.js"),
542
- "slack-dark": () => import("./slack-dark-v8P_eXr6.js"),
543
- "slack-ochin": () => import("./slack-ochin-D8SyEdKz.js"),
544
- "snazzy-light": () => import("./snazzy-light-BtkQkvXb.js"),
545
- "solarized-dark": () => import("./solarized-dark-B8nAdMfM.js"),
546
- "solarized-light": () => import("./solarized-light-B-3F1INj.js"),
547
- "synthwave-84": () => import("./synthwave-84-DcsXCF_c.js"),
548
- "tokyo-night": () => import("./tokyo-night-Bvpqduda.js"),
549
- vesper: () => import("./vesper-CfxmMOy3.js"),
550
- "vitesse-black": () => import("./vitesse-black-D9-_1mjV.js"),
551
- "vitesse-dark": () => import("./vitesse-dark-DlSMLlr9.js"),
552
- "vitesse-light": () => import("./vitesse-light-KRWWWztf.js")
477
+ andromeeda: () => import("@shikijs/themes/andromeeda"),
478
+ "aurora-x": () => import("@shikijs/themes/aurora-x"),
479
+ "ayu-dark": () => import("@shikijs/themes/ayu-dark"),
480
+ "ayu-light": () => import("@shikijs/themes/ayu-light"),
481
+ "ayu-mirage": () => import("@shikijs/themes/ayu-mirage"),
482
+ "catppuccin-frappe": () => import("@shikijs/themes/catppuccin-frappe"),
483
+ "catppuccin-latte": () => import("@shikijs/themes/catppuccin-latte"),
484
+ "catppuccin-macchiato": () => import("@shikijs/themes/catppuccin-macchiato"),
485
+ "catppuccin-mocha": () => import("@shikijs/themes/catppuccin-mocha"),
486
+ "dark-plus": () => import("@shikijs/themes/dark-plus"),
487
+ dracula: () => import("@shikijs/themes/dracula"),
488
+ "dracula-soft": () => import("@shikijs/themes/dracula-soft"),
489
+ "everforest-dark": () => import("@shikijs/themes/everforest-dark"),
490
+ "everforest-light": () => import("@shikijs/themes/everforest-light"),
491
+ "github-dark": () => import("@shikijs/themes/github-dark"),
492
+ "github-dark-default": () => import("@shikijs/themes/github-dark-default"),
493
+ "github-dark-dimmed": () => import("@shikijs/themes/github-dark-dimmed"),
494
+ "github-dark-high-contrast": () => import("@shikijs/themes/github-dark-high-contrast"),
495
+ "github-light": () => import("@shikijs/themes/github-light"),
496
+ "github-light-default": () => import("@shikijs/themes/github-light-default"),
497
+ "github-light-high-contrast": () => import("@shikijs/themes/github-light-high-contrast"),
498
+ "gruvbox-dark-hard": () => import("@shikijs/themes/gruvbox-dark-hard"),
499
+ "gruvbox-dark-medium": () => import("@shikijs/themes/gruvbox-dark-medium"),
500
+ "gruvbox-dark-soft": () => import("@shikijs/themes/gruvbox-dark-soft"),
501
+ "gruvbox-light-hard": () => import("@shikijs/themes/gruvbox-light-hard"),
502
+ "gruvbox-light-medium": () => import("@shikijs/themes/gruvbox-light-medium"),
503
+ "gruvbox-light-soft": () => import("@shikijs/themes/gruvbox-light-soft"),
504
+ horizon: () => import("@shikijs/themes/horizon"),
505
+ "horizon-bright": () => import("@shikijs/themes/horizon-bright"),
506
+ houston: () => import("@shikijs/themes/houston"),
507
+ "kanagawa-dragon": () => import("@shikijs/themes/kanagawa-dragon"),
508
+ "kanagawa-lotus": () => import("@shikijs/themes/kanagawa-lotus"),
509
+ "kanagawa-wave": () => import("@shikijs/themes/kanagawa-wave"),
510
+ laserwave: () => import("@shikijs/themes/laserwave"),
511
+ "light-plus": () => import("@shikijs/themes/light-plus"),
512
+ "material-theme": () => import("@shikijs/themes/material-theme"),
513
+ "material-theme-darker": () => import("@shikijs/themes/material-theme-darker"),
514
+ "material-theme-lighter": () => import("@shikijs/themes/material-theme-lighter"),
515
+ "material-theme-ocean": () => import("@shikijs/themes/material-theme-ocean"),
516
+ "material-theme-palenight": () => import("@shikijs/themes/material-theme-palenight"),
517
+ "min-dark": () => import("@shikijs/themes/min-dark"),
518
+ "min-light": () => import("@shikijs/themes/min-light"),
519
+ monokai: () => import("@shikijs/themes/monokai"),
520
+ "night-owl": () => import("@shikijs/themes/night-owl"),
521
+ "night-owl-light": () => import("@shikijs/themes/night-owl-light"),
522
+ nord: () => import("@shikijs/themes/nord"),
523
+ "one-dark-pro": () => import("@shikijs/themes/one-dark-pro"),
524
+ "one-light": () => import("@shikijs/themes/one-light"),
525
+ plastic: () => import("@shikijs/themes/plastic"),
526
+ poimandres: () => import("@shikijs/themes/poimandres"),
527
+ red: () => import("@shikijs/themes/red"),
528
+ "rose-pine": () => import("@shikijs/themes/rose-pine"),
529
+ "rose-pine-dawn": () => import("@shikijs/themes/rose-pine-dawn"),
530
+ "rose-pine-moon": () => import("@shikijs/themes/rose-pine-moon"),
531
+ "slack-dark": () => import("@shikijs/themes/slack-dark"),
532
+ "slack-ochin": () => import("@shikijs/themes/slack-ochin"),
533
+ "snazzy-light": () => import("@shikijs/themes/snazzy-light"),
534
+ "solarized-dark": () => import("@shikijs/themes/solarized-dark"),
535
+ "solarized-light": () => import("@shikijs/themes/solarized-light"),
536
+ "synthwave-84": () => import("@shikijs/themes/synthwave-84"),
537
+ "tokyo-night": () => import("@shikijs/themes/tokyo-night"),
538
+ vesper: () => import("@shikijs/themes/vesper"),
539
+ "vitesse-black": () => import("@shikijs/themes/vitesse-black"),
540
+ "vitesse-dark": () => import("@shikijs/themes/vitesse-dark"),
541
+ "vitesse-light": () => import("@shikijs/themes/vitesse-light")
553
542
  };
554
543
  function createShikiTheme(name) {
555
544
  return createTheme({
@@ -19589,6 +19578,106 @@ const selectedLinesProp = {
19589
19578
  default: void 0,
19590
19579
  type: pierrePropTypes.selectedLines
19591
19580
  };
19581
+ const scrollToSelectedLinesProp = {
19582
+ default: false,
19583
+ type: Boolean
19584
+ };
19585
+ var SelectionFileModel = class extends File {
19586
+ isSourceRendered() {
19587
+ const file = this.getLatestFile();
19588
+ const rendered = this.getRenderedFile();
19589
+ if (!file || !rendered) return false;
19590
+ if (file.cacheKey != null || rendered.cacheKey != null) return file.cacheKey === rendered.cacheKey;
19591
+ return file.name === rendered.name && file.contents === rendered.contents && file.lang === rendered.lang;
19592
+ }
19593
+ };
19594
+ var SelectionDiffModel = class extends FileDiff {
19595
+ isSourceRendered() {
19596
+ return sameDiffSource(this.getLatestDiff(), this.getRenderedDiff());
19597
+ }
19598
+ };
19599
+ var SelectionUnresolvedFileModel = class extends UnresolvedFile {
19600
+ isSourceRendered() {
19601
+ return sameDiffSource(this.getLatestDiff(), this.getRenderedDiff());
19602
+ }
19603
+ };
19604
+ function sameDiffSource(diff, rendered) {
19605
+ return diff === rendered || diff?.cacheKey != null && diff.cacheKey === rendered?.cacheKey;
19606
+ }
19607
+ /**
19608
+ * Centers `row` in the nearest ancestor of the view that scrolls, else in the page. `scrollIntoView` alone also moves
19609
+ * each `overflow: hidden` ancestor, such as an app shell.
19610
+ */
19611
+ function scrollToRow(host, row) {
19612
+ let scroller = host;
19613
+ while (scroller && !(/auto|scroll|overlay/.test(getComputedStyle(scroller).overflowY) && scroller.scrollHeight > scroller.clientHeight)) scroller = scroller.parentElement;
19614
+ if (!scroller || scroller === document.body || scroller === document.documentElement) {
19615
+ row.scrollIntoView({
19616
+ block: "center",
19617
+ inline: "nearest"
19618
+ });
19619
+ return;
19620
+ }
19621
+ const rect = row.getBoundingClientRect();
19622
+ scroller.scrollTop += rect.top - scroller.getBoundingClientRect().top - (scroller.clientHeight - rect.height) / 2;
19623
+ }
19624
+ /**
19625
+ * Scrolls the first selected line into view, once for each new range or `source`. Pierre marks the selected rows in a
19626
+ * later frame and renders the file after its highlighter loads, so this waits for the row of the new selection.
19627
+ */
19628
+ function createSelectionScroll(getHost, isSourceRendered) {
19629
+ let key;
19630
+ let observer;
19631
+ const stop = () => {
19632
+ observer?.disconnect();
19633
+ observer = void 0;
19634
+ };
19635
+ const sync = (range, source) => {
19636
+ const next = range ? [...source, ...rangeKey(range)] : void 0;
19637
+ const previous = key;
19638
+ const host = getHost();
19639
+ const root = host?.shadowRoot;
19640
+ key = root ? next : void 0;
19641
+ if (next && previous?.length === next.length && next.every((value, index) => Object.is(value, previous[index]))) return;
19642
+ stop();
19643
+ if (!range || !host || !root) return;
19644
+ const scroll = () => {
19645
+ if (!isSourceRendered()) return;
19646
+ const rows = root.querySelectorAll("[data-line][data-selected-line=\"first\"], [data-line][data-selected-line=\"single\"]");
19647
+ const row = Array.from(rows).find((row) => {
19648
+ const line = Number(row.dataset.line);
19649
+ const side = row.closest("[data-deletions]") || row.dataset.lineType === "change-deletion" ? "deletions" : row.closest("[data-additions]") || row.dataset.lineType === "change-addition" ? "additions" : void 0;
19650
+ return line === range.start && (!side || side === (range.side ?? "additions")) || line === range.end && (!side || side === (range.endSide ?? range.side ?? "additions"));
19651
+ });
19652
+ if (!row) return;
19653
+ stop();
19654
+ scrollToRow(host, row);
19655
+ };
19656
+ observer = new MutationObserver(scroll);
19657
+ observer.observe(root, {
19658
+ attributeFilter: ["data-selected-line"],
19659
+ attributes: true,
19660
+ childList: true,
19661
+ subtree: true
19662
+ });
19663
+ scroll();
19664
+ };
19665
+ return {
19666
+ stop,
19667
+ sync
19668
+ };
19669
+ }
19670
+ function rangeKey(range) {
19671
+ return [
19672
+ range.start,
19673
+ range.end,
19674
+ range.side,
19675
+ range.endSide
19676
+ ];
19677
+ }
19678
+ function snapshotSelection(range) {
19679
+ return range === null ? null : { ...range };
19680
+ }
19592
19681
  function controlledOptions(options, selectedLines) {
19593
19682
  const rawOptions = trackShallow(options);
19594
19683
  return selectedLines === void 0 ? rawOptions : {
@@ -19621,6 +19710,13 @@ function trackArrayItems(values) {
19621
19710
  for (const value of values) trackShallow(value);
19622
19711
  return toRaw(values);
19623
19712
  }
19713
+ /**
19714
+ * The annotations to pass to Pierre. Pierre compares annotation lists by reference, so the list is a new array only
19715
+ * when the prop or one of its items changes, and the same array when the view renders for another reason.
19716
+ */
19717
+ function useLineAnnotations(read) {
19718
+ return computed(() => [...trackArrayItems(read()) ?? []]);
19719
+ }
19624
19720
  function copyFile(file) {
19625
19721
  return file === null ? null : { ...file };
19626
19722
  }
@@ -19641,39 +19737,58 @@ const PierreDiff = defineComponent({
19641
19737
  oldFile: { type: pierrePropTypes.nullableFileContents },
19642
19738
  options: { type: pierrePropTypes.fileDiffOptions },
19643
19739
  patch: { type: String },
19740
+ scrollToSelectedLines: scrollToSelectedLinesProp,
19644
19741
  selectedLines: selectedLinesProp
19645
19742
  },
19646
19743
  setup(props, { attrs, expose }) {
19647
19744
  let host = null;
19648
19745
  let instance;
19649
- const fileDiff = computed(() => {
19650
- if (props.fileDiff) return trackShallow(props.fileDiff);
19651
- if (props.patch !== void 0) return getSingularPatch(props.patch);
19652
- if (props.oldFile !== void 0 && props.newFile !== void 0) return parseDiffFromFile(copyFile(props.oldFile), copyFile(props.newFile), copyParseDiffOptions(props.options?.parseDiffOptions));
19746
+ const selectionScroll = createSelectionScroll(() => host, () => instance?.isSourceRendered() ?? false);
19747
+ const lineAnnotations = useLineAnnotations(() => props.lineAnnotations);
19748
+ const diffInput = computed(() => {
19749
+ if (props.fileDiff) return { diff: trackShallow(props.fileDiff) };
19750
+ if (props.patch !== void 0) return { diff: getSingularPatch(props.patch) };
19751
+ if (props.oldFile !== void 0 && props.newFile !== void 0) return { diff: parseDiffFromFile(copyFile(props.oldFile), copyFile(props.newFile), copyParseDiffOptions(props.options?.parseDiffOptions)) };
19653
19752
  });
19753
+ let renderedInput;
19654
19754
  const render = () => {
19655
19755
  if (!host) return;
19656
- if (!fileDiff.value) {
19756
+ const input = diffInput.value;
19757
+ if (!input) {
19657
19758
  instance?.cleanUp();
19658
19759
  instance = void 0;
19760
+ renderedInput = void 0;
19659
19761
  return;
19660
19762
  }
19661
- const options = accessibleDiffOptions(props.options, props.selectedLines, fileDiff.value);
19662
- if (!instance) instance = new FileDiff(options, void 0, true);
19763
+ const options = accessibleDiffOptions(props.options, props.selectedLines, input.diff);
19764
+ if (!instance) instance = new SelectionDiffModel(options, void 0, true);
19765
+ const forceRender = renderedInput !== void 0 && renderedInput !== input || !areOptionsEqual(instance.options, options);
19663
19766
  instance.setOptions(options);
19664
19767
  instance.render({
19665
19768
  fileContainer: host,
19666
- fileDiff: fileDiff.value,
19667
- forceRender: true,
19668
- lineAnnotations: trackArrayItems(props.lineAnnotations) ?? []
19769
+ fileDiff: input.diff,
19770
+ forceRender,
19771
+ lineAnnotations: lineAnnotations.value
19669
19772
  });
19670
- if (props.selectedLines !== void 0) instance.setSelectedLines(trackShallow(props.selectedLines));
19773
+ renderedInput = input;
19774
+ if (props.selectedLines !== void 0) instance.setSelectedLines(snapshotSelection(props.selectedLines));
19775
+ selectionScroll.sync(props.scrollToSelectedLines ? props.selectedLines : void 0, [
19776
+ toRaw(props.fileDiff),
19777
+ props.patch,
19778
+ props.oldFile?.name,
19779
+ props.oldFile?.contents,
19780
+ props.newFile?.name,
19781
+ props.newFile?.contents
19782
+ ]);
19671
19783
  };
19672
19784
  const setHost = (node) => {
19673
19785
  host = node instanceof HTMLElement ? node : null;
19674
19786
  };
19675
19787
  watchEffect(render, { flush: "post" });
19676
- onBeforeUnmount(() => instance?.cleanUp());
19788
+ onBeforeUnmount(() => {
19789
+ selectionScroll.stop();
19790
+ instance?.cleanUp();
19791
+ });
19677
19792
  expose({ getInstance: () => instance });
19678
19793
  return () => h(DIFFS_TAG_NAME, {
19679
19794
  ...attrs,
@@ -19688,11 +19803,14 @@ const PierreFile = defineComponent({
19688
19803
  file: { type: pierrePropTypes.fileContents },
19689
19804
  lineAnnotations: { type: pierrePropTypes.lineAnnotations },
19690
19805
  options: { type: pierrePropTypes.fileOptions },
19806
+ scrollToSelectedLines: scrollToSelectedLinesProp,
19691
19807
  selectedLines: selectedLinesProp
19692
19808
  },
19693
19809
  setup(props, { attrs, expose }) {
19694
19810
  let host = null;
19695
19811
  let instance;
19812
+ const selectionScroll = createSelectionScroll(() => host, () => instance?.isSourceRendered() ?? false);
19813
+ const lineAnnotations = useLineAnnotations(() => props.lineAnnotations);
19696
19814
  const file = computed(() => props.file ? copyFile(props.file) : void 0);
19697
19815
  const render = () => {
19698
19816
  if (!host) return;
@@ -19702,21 +19820,26 @@ const PierreFile = defineComponent({
19702
19820
  return;
19703
19821
  }
19704
19822
  const options = accessibleOptions(props.options, props.selectedLines);
19705
- if (!instance) instance = new File(options, void 0, true);
19823
+ if (!instance) instance = new SelectionFileModel(options, void 0, true);
19824
+ const forceRender = !areOptionsEqual(instance.options, options);
19706
19825
  instance.setOptions(options);
19707
19826
  instance.render({
19708
19827
  file: file.value,
19709
19828
  fileContainer: host,
19710
- forceRender: true,
19711
- lineAnnotations: trackArrayItems(props.lineAnnotations) ?? []
19829
+ forceRender,
19830
+ lineAnnotations: lineAnnotations.value
19712
19831
  });
19713
- if (props.selectedLines !== void 0) instance.setSelectedLines(trackShallow(props.selectedLines));
19832
+ if (props.selectedLines !== void 0) instance.setSelectedLines(snapshotSelection(props.selectedLines));
19833
+ selectionScroll.sync(props.scrollToSelectedLines ? props.selectedLines : void 0, [file.value.name, file.value.contents]);
19714
19834
  };
19715
19835
  const setHost = (node) => {
19716
19836
  host = node instanceof HTMLElement ? node : null;
19717
19837
  };
19718
19838
  watchEffect(render, { flush: "post" });
19719
- onBeforeUnmount(() => instance?.cleanUp());
19839
+ onBeforeUnmount(() => {
19840
+ selectionScroll.stop();
19841
+ instance?.cleanUp();
19842
+ });
19720
19843
  expose({ getInstance: () => instance });
19721
19844
  return () => h(DIFFS_TAG_NAME, {
19722
19845
  ...attrs,
@@ -19731,12 +19854,15 @@ const PierreUnresolvedFile = defineComponent({
19731
19854
  file: { type: pierrePropTypes.fileContents },
19732
19855
  lineAnnotations: { type: pierrePropTypes.diffLineAnnotations },
19733
19856
  options: { type: pierrePropTypes.unresolvedFileOptions },
19857
+ scrollToSelectedLines: scrollToSelectedLinesProp,
19734
19858
  selectedLines: selectedLinesProp
19735
19859
  },
19736
19860
  setup(props, { attrs, expose }) {
19737
19861
  let host = null;
19738
19862
  let instance;
19863
+ const selectionScroll = createSelectionScroll(() => host, () => instance?.isSourceRendered() ?? false);
19739
19864
  let renderedFile;
19865
+ const lineAnnotations = useLineAnnotations(() => props.lineAnnotations);
19740
19866
  const file = computed(() => props.file ? copyFile(props.file) : void 0);
19741
19867
  const render = () => {
19742
19868
  if (!host) return;
@@ -19751,22 +19877,27 @@ const PierreUnresolvedFile = defineComponent({
19751
19877
  instance = void 0;
19752
19878
  }
19753
19879
  const options = accessibleOptions(props.options, props.selectedLines);
19754
- if (!instance) instance = new UnresolvedFile(options, void 0, true);
19880
+ if (!instance) instance = new SelectionUnresolvedFileModel(options, void 0, true);
19881
+ const forceRender = !areOptionsEqual(instance.options, options);
19755
19882
  instance.setOptions(options);
19756
19883
  instance.render({
19757
19884
  file: file.value,
19758
19885
  fileContainer: host,
19759
- forceRender: true,
19760
- lineAnnotations: trackArrayItems(props.lineAnnotations) ?? []
19886
+ forceRender,
19887
+ lineAnnotations: lineAnnotations.value
19761
19888
  });
19762
19889
  renderedFile = file.value;
19763
- if (props.selectedLines !== void 0) instance.setSelectedLines(trackShallow(props.selectedLines));
19890
+ if (props.selectedLines !== void 0) instance.setSelectedLines(snapshotSelection(props.selectedLines));
19891
+ selectionScroll.sync(props.scrollToSelectedLines ? props.selectedLines : void 0, [file.value.name, file.value.contents]);
19764
19892
  };
19765
19893
  const setHost = (node) => {
19766
19894
  host = node instanceof HTMLElement ? node : null;
19767
19895
  };
19768
19896
  watchEffect(render, { flush: "post" });
19769
- onBeforeUnmount(() => instance?.cleanUp());
19897
+ onBeforeUnmount(() => {
19898
+ selectionScroll.stop();
19899
+ instance?.cleanUp();
19900
+ });
19770
19901
  expose({ getInstance: () => instance });
19771
19902
  return () => h(DIFFS_TAG_NAME, {
19772
19903
  ...attrs,
@@ -19783,6 +19914,7 @@ const PierreCodeView = defineComponent({
19783
19914
  type: pierrePropTypes.codeViewItems
19784
19915
  },
19785
19916
  options: { type: pierrePropTypes.codeViewOptions },
19917
+ scrollToSelectedLines: scrollToSelectedLinesProp,
19786
19918
  selectedLines: {
19787
19919
  default: void 0,
19788
19920
  type: pierrePropTypes.codeViewSelection
@@ -19791,6 +19923,7 @@ const PierreCodeView = defineComponent({
19791
19923
  setup(props, { attrs, expose }) {
19792
19924
  let host = null;
19793
19925
  let instance;
19926
+ let scrolledTo;
19794
19927
  const render = () => {
19795
19928
  if (!host) return;
19796
19929
  const options = accessibleOptions(props.options, props.selectedLines);
@@ -19802,6 +19935,16 @@ const PierreCodeView = defineComponent({
19802
19935
  instance.setItems(trackArrayItems(props.items));
19803
19936
  if (props.selectedLines !== void 0) instance.setSelectedLines(trackShallow(props.selectedLines), { notify: false });
19804
19937
  instance.render(true);
19938
+ const selection = props.scrollToSelectedLines ? props.selectedLines : void 0;
19939
+ const key = selection ? [selection.id, ...rangeKey(selection.range)] : void 0;
19940
+ const changed = key?.some((value, index) => value !== scrolledTo?.[index]);
19941
+ scrolledTo = key;
19942
+ if (selection && changed) instance.scrollTo({
19943
+ align: "center",
19944
+ id: selection.id,
19945
+ range: selection.range,
19946
+ type: "range"
19947
+ });
19805
19948
  };
19806
19949
  const setHost = (node) => {
19807
19950
  host = node instanceof HTMLElement ? node : null;
@@ -1,4 +1,6 @@
1
+ import { n as __exportAll } from "./rolldown-runtime-C9mWXvCC.js";
1
2
  //#region ../../node_modules/.pnpm/@pierre+theme@2.0.0/node_modules/@pierre/theme/dist/pierre-dark.mjs
3
+ var pierre_dark_exports = /* @__PURE__ */ __exportAll({ default: () => pierre_dark_default });
2
4
  var pierre_dark_default = Object.freeze(JSON.parse("{\"name\":\"pierre-dark\",\"displayName\":\"Pierre Dark\",\"type\":\"dark\",\"colors\":{\"editor.background\":\"#0a0a0a\",\"editor.foreground\":\"#fafafa\",\"foreground\":\"#fafafa\",\"focusBorder\":\"#009fff\",\"selection.background\":\"#19283c\",\"editor.selectionBackground\":\"#009fff4d\",\"editor.lineHighlightBackground\":\"#19283c8c\",\"editorCursor.foreground\":\"#009fff\",\"editorLineNumber.foreground\":\"#737373\",\"editorLineNumber.activeForeground\":\"#a3a3a3\",\"editorIndentGuide.background\":\"#1d1d1d\",\"editorIndentGuide.activeBackground\":\"#262626\",\"diffEditor.insertedTextBackground\":\"#07c4801a\",\"diffEditor.deletedTextBackground\":\"#ff2e3f1a\",\"sideBar.background\":\"#171717\",\"sideBar.foreground\":\"#a3a3a3\",\"sideBar.border\":\"#0a0a0a\",\"sideBarTitle.foreground\":\"#fafafa\",\"sideBarSectionHeader.background\":\"#171717\",\"sideBarSectionHeader.foreground\":\"#a3a3a3\",\"sideBarSectionHeader.border\":\"#0a0a0a\",\"activityBar.background\":\"#171717\",\"activityBar.foreground\":\"#fafafa\",\"activityBar.border\":\"#0a0a0a\",\"activityBar.activeBorder\":\"#009fff\",\"activityBarBadge.background\":\"#009fff\",\"activityBarBadge.foreground\":\"#0a0a0a\",\"titleBar.activeBackground\":\"#171717\",\"titleBar.activeForeground\":\"#fafafa\",\"titleBar.inactiveBackground\":\"#171717\",\"titleBar.inactiveForeground\":\"#737373\",\"titleBar.border\":\"#0a0a0a\",\"list.activeSelectionBackground\":\"#19283c99\",\"list.activeSelectionForeground\":\"#fafafa\",\"list.inactiveSelectionBackground\":\"#19283c73\",\"list.hoverBackground\":\"#19283c59\",\"list.focusOutline\":\"#009fff\",\"tab.activeBackground\":\"#0a0a0a\",\"tab.activeForeground\":\"#fafafa\",\"tab.activeBorderTop\":\"#009fff\",\"tab.inactiveBackground\":\"#171717\",\"tab.inactiveForeground\":\"#737373\",\"tab.border\":\"#0a0a0a\",\"editorGroupHeader.tabsBackground\":\"#171717\",\"editorGroupHeader.tabsBorder\":\"#0a0a0a\",\"panel.background\":\"#171717\",\"panel.border\":\"#0a0a0a\",\"panelTitle.activeBorder\":\"#009fff\",\"panelTitle.activeForeground\":\"#fafafa\",\"panelTitle.inactiveForeground\":\"#737373\",\"statusBar.background\":\"#171717\",\"statusBar.foreground\":\"#a3a3a3\",\"statusBar.border\":\"#0a0a0a\",\"statusBar.noFolderBackground\":\"#171717\",\"statusBar.debuggingBackground\":\"#ffca00\",\"statusBar.debuggingForeground\":\"#0a0a0a\",\"statusBarItem.remoteBackground\":\"#171717\",\"statusBarItem.remoteForeground\":\"#a3a3a3\",\"input.background\":\"#1d1d1d\",\"input.border\":\"#1d1d1d\",\"input.foreground\":\"#fafafa\",\"input.placeholderForeground\":\"#636363\",\"dropdown.background\":\"#1d1d1d\",\"dropdown.border\":\"#1d1d1d\",\"dropdown.foreground\":\"#fafafa\",\"button.background\":\"#009fff\",\"button.foreground\":\"#0a0a0a\",\"button.hoverBackground\":\"#0190e7\",\"textLink.foreground\":\"#009fff\",\"textLink.activeForeground\":\"#009fff\",\"notifications.background\":\"#101010\",\"notifications.foreground\":\"#fafafa\",\"notifications.border\":\"#1d1d1d\",\"notificationToast.border\":\"#1d1d1d\",\"notificationCenter.border\":\"#1d1d1d\",\"notificationCenterHeader.background\":\"#101010\",\"notificationCenterHeader.foreground\":\"#a3a3a3\",\"notificationLink.foreground\":\"#009fff\",\"notificationsErrorIcon.foreground\":\"#ff2e3f\",\"notificationsWarningIcon.foreground\":\"#ffca00\",\"notificationsInfoIcon.foreground\":\"#08c0ef\",\"quickInput.background\":\"#101010\",\"quickInput.foreground\":\"#fafafa\",\"quickInputTitle.background\":\"#101010\",\"widget.border\":\"#1d1d1d\",\"gitDecoration.addedResourceForeground\":\"#07c480\",\"gitDecoration.conflictingResourceForeground\":\"#7b43f8\",\"gitDecoration.modifiedResourceForeground\":\"#009fff\",\"gitDecoration.deletedResourceForeground\":\"#ff2e3f\",\"gitDecoration.untrackedResourceForeground\":\"#07c480\",\"gitDecoration.ignoredResourceForeground\":\"#737373\",\"merge.currentHeaderBackground\":\"#7b43f84d\",\"merge.currentContentBackground\":\"#7b43f81f\",\"merge.incomingHeaderBackground\":\"#08c0ef4d\",\"merge.incomingContentBackground\":\"#08c0ef1f\",\"editorOverviewRuler.currentContentForeground\":\"#7b43f8\",\"editorOverviewRuler.incomingContentForeground\":\"#08c0ef\",\"terminal.titleForeground\":\"#a3a3a3\",\"terminal.titleInactiveForeground\":\"#737373\",\"terminal.background\":\"#171717\",\"terminal.foreground\":\"#a3a3a3\",\"terminal.ansiBlack\":\"#171717\",\"terminal.ansiRed\":\"#ff2e3f\",\"terminal.ansiGreen\":\"#0dbe4e\",\"terminal.ansiYellow\":\"#ffca00\",\"terminal.ansiBlue\":\"#009fff\",\"terminal.ansiMagenta\":\"#e130ac\",\"terminal.ansiCyan\":\"#08c0ef\",\"terminal.ansiWhite\":\"#bcbcbc\",\"terminal.ansiBrightBlack\":\"#171717\",\"terminal.ansiBrightRed\":\"#ff2e3f\",\"terminal.ansiBrightGreen\":\"#86c427\",\"terminal.ansiBrightYellow\":\"#ffca00\",\"terminal.ansiBrightBlue\":\"#009fff\",\"terminal.ansiBrightMagenta\":\"#e130ac\",\"terminal.ansiBrightCyan\":\"#08c0ef\",\"terminal.ansiBrightWhite\":\"#bcbcbc\"},\"tokenColors\":[{\"scope\":[\"comment\",\"punctuation.definition.comment\"],\"settings\":{\"foreground\":\"#737373\"}},{\"scope\":\"comment markup.link\",\"settings\":{\"foreground\":\"#737373\"}},{\"scope\":[\"string\",\"constant.other.symbol\"],\"settings\":{\"foreground\":\"#5ecc71\"}},{\"scope\":[\"punctuation.definition.string.begin\",\"punctuation.definition.string.end\"],\"settings\":{\"foreground\":\"#5ecc71\"}},{\"scope\":[\"constant.numeric\",\"constant.language.boolean\"],\"settings\":{\"foreground\":\"#68cdf2\"}},{\"scope\":\"constant\",\"settings\":{\"foreground\":\"#ffd452\"}},{\"scope\":\"punctuation.definition.constant\",\"settings\":{\"foreground\":\"#ffd452\"}},{\"scope\":\"constant.language\",\"settings\":{\"foreground\":\"#68cdf2\"}},{\"scope\":\"variable.other.constant\",\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":\"keyword\",\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":\"keyword.control\",\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":[\"storage\",\"storage.type\",\"storage.modifier\"],\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":\"token.storage\",\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":[\"keyword.operator.new\",\"keyword.operator.expression.instanceof\",\"keyword.operator.expression.typeof\",\"keyword.operator.expression.void\",\"keyword.operator.expression.delete\",\"keyword.operator.expression.in\",\"keyword.operator.expression.of\",\"keyword.operator.expression.keyof\"],\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":\"keyword.operator.delete\",\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":[\"variable\",\"identifier\",\"meta.definition.variable\"],\"settings\":{\"foreground\":\"#ffa359\"}},{\"scope\":[\"variable.other.readwrite\",\"meta.object-literal.key\",\"support.variable.property\",\"support.variable.object.process\",\"support.variable.object.node\"],\"settings\":{\"foreground\":\"#ffa359\"}},{\"scope\":\"variable.language\",\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":\"variable.parameter.function\",\"settings\":{\"foreground\":\"#a3a3a3\"}},{\"scope\":\"function.parameter\",\"settings\":{\"foreground\":\"#a3a3a3\"}},{\"scope\":\"variable.parameter\",\"settings\":{\"foreground\":\"#a3a3a3\"}},{\"scope\":\"variable.parameter.function.language.python\",\"settings\":{\"foreground\":\"#ffd452\"}},{\"scope\":\"variable.parameter.function.python\",\"settings\":{\"foreground\":\"#ffd452\"}},{\"scope\":[\"support.function\",\"entity.name.function\",\"meta.function-call\",\"meta.require\",\"support.function.any-method\",\"variable.function\"],\"settings\":{\"foreground\":\"#9d6afb\"}},{\"scope\":\"keyword.other.special-method\",\"settings\":{\"foreground\":\"#9d6afb\"}},{\"scope\":\"entity.name.function\",\"settings\":{\"foreground\":\"#9d6afb\"}},{\"scope\":\"support.function.console\",\"settings\":{\"foreground\":\"#9d6afb\"}},{\"scope\":[\"support.type\",\"entity.name.type\",\"entity.name.class\",\"storage.type\"],\"settings\":{\"foreground\":\"#d568ea\"}},{\"scope\":[\"support.class\",\"entity.name.type.class\"],\"settings\":{\"foreground\":\"#d568ea\"}},{\"scope\":[\"entity.name.class\",\"variable.other.class.js\",\"variable.other.class.ts\"],\"settings\":{\"foreground\":\"#d568ea\"}},{\"scope\":\"entity.name.class.identifier.namespace.type\",\"settings\":{\"foreground\":\"#d568ea\"}},{\"scope\":\"entity.name.type.namespace\",\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":\"entity.other.inherited-class\",\"settings\":{\"foreground\":\"#d568ea\"}},{\"scope\":\"entity.name.namespace\",\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":\"keyword.operator\",\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":[\"keyword.operator.logical\",\"keyword.operator.bitwise\",\"keyword.operator.channel\"],\"settings\":{\"foreground\":\"#08c0ef\"}},{\"scope\":[\"keyword.operator.arithmetic\",\"keyword.operator.comparison\",\"keyword.operator.relational\",\"keyword.operator.increment\",\"keyword.operator.decrement\"],\"settings\":{\"foreground\":\"#08c0ef\"}},{\"scope\":\"keyword.operator.assignment\",\"settings\":{\"foreground\":\"#08c0ef\"}},{\"scope\":\"keyword.operator.assignment.compound\",\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":[\"keyword.operator.assignment.compound.js\",\"keyword.operator.assignment.compound.ts\"],\"settings\":{\"foreground\":\"#08c0ef\"}},{\"scope\":\"keyword.operator.ternary\",\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":\"keyword.operator.optional\",\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":\"punctuation\",\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":\"punctuation.separator.delimiter\",\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":\"punctuation.separator.key-value\",\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":\"punctuation.terminator\",\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":\"meta.brace\",\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":\"meta.brace.square\",\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":\"meta.brace.round\",\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":\"function.brace\",\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":[\"punctuation.definition.parameters\",\"punctuation.definition.typeparameters\"],\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":[\"punctuation.definition.block\",\"punctuation.definition.tag\"],\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":[\"meta.tag.tsx\",\"meta.tag.jsx\",\"meta.tag.js\",\"meta.tag.ts\"],\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":\"keyword.operator.expression.import\",\"settings\":{\"foreground\":\"#9d6afb\"}},{\"scope\":\"keyword.operator.module\",\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":\"support.type.object.console\",\"settings\":{\"foreground\":\"#ffa359\"}},{\"scope\":[\"support.module.node\",\"support.type.object.module\",\"entity.name.type.module\"],\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":\"support.constant.math\",\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":\"support.constant.property.math\",\"settings\":{\"foreground\":\"#ffd452\"}},{\"scope\":\"support.constant.json\",\"settings\":{\"foreground\":\"#ffd452\"}},{\"scope\":\"support.type.object.dom\",\"settings\":{\"foreground\":\"#08c0ef\"}},{\"scope\":[\"support.variable.dom\",\"support.variable.property.dom\"],\"settings\":{\"foreground\":\"#ffa359\"}},{\"scope\":\"support.variable.property.process\",\"settings\":{\"foreground\":\"#ffd452\"}},{\"scope\":\"meta.property.object\",\"settings\":{\"foreground\":\"#ffa359\"}},{\"scope\":\"variable.parameter.function.js\",\"settings\":{\"foreground\":\"#ffa359\"}},{\"scope\":[\"keyword.other.template.begin\",\"keyword.other.template.end\"],\"settings\":{\"foreground\":\"#5ecc71\"}},{\"scope\":[\"keyword.other.substitution.begin\",\"keyword.other.substitution.end\"],\"settings\":{\"foreground\":\"#5ecc71\"}},{\"scope\":[\"punctuation.definition.template-expression.begin\",\"punctuation.definition.template-expression.end\"],\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":\"meta.template.expression\",\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":\"punctuation.section.embedded\",\"settings\":{\"foreground\":\"#ffa359\"}},{\"scope\":\"variable.interpolation\",\"settings\":{\"foreground\":\"#ffa359\"}},{\"scope\":[\"punctuation.section.embedded.begin\",\"punctuation.section.embedded.end\"],\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":\"punctuation.quasi.element\",\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":[\"support.type.primitive.ts\",\"support.type.builtin.ts\",\"support.type.primitive.tsx\",\"support.type.builtin.tsx\"],\"settings\":{\"foreground\":\"#d568ea\"}},{\"scope\":\"support.type.type.flowtype\",\"settings\":{\"foreground\":\"#9d6afb\"}},{\"scope\":\"support.type.primitive\",\"settings\":{\"foreground\":\"#d568ea\"}},{\"scope\":[\"meta.decorator\",\"meta.decorator punctuation.decorator\"],\"settings\":{\"foreground\":\"#69b1ff\"}},{\"scope\":\"entity.name.function.decorator\",\"settings\":{\"foreground\":\"#69b1ff\"}},{\"scope\":\"punctuation.definition.decorator\",\"settings\":{\"foreground\":\"#69b1ff\"}},{\"scope\":\"support.variable.magic.python\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":\"variable.parameter.function.language.special.self.python\",\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":[\"punctuation.separator.period.python\",\"punctuation.separator.element.python\",\"punctuation.parenthesis.begin.python\",\"punctuation.parenthesis.end.python\"],\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":[\"punctuation.definition.arguments.begin.python\",\"punctuation.definition.arguments.end.python\",\"punctuation.separator.arguments.python\",\"punctuation.definition.list.begin.python\",\"punctuation.definition.list.end.python\"],\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":\"support.type.python\",\"settings\":{\"foreground\":\"#08c0ef\"}},{\"scope\":\"keyword.operator.logical.python\",\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":\"meta.function-call.generic.python\",\"settings\":{\"foreground\":\"#9d6afb\"}},{\"scope\":\"constant.character.format.placeholder.other.python\",\"settings\":{\"foreground\":\"#ffd452\"}},{\"scope\":\"meta.function.decorator.python\",\"settings\":{\"foreground\":\"#9d6afb\"}},{\"scope\":[\"support.token.decorator.python\",\"meta.function.decorator.identifier.python\"],\"settings\":{\"foreground\":\"#08c0ef\"}},{\"scope\":\"storage.modifier.lifetime.rust\",\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":\"support.function.std.rust\",\"settings\":{\"foreground\":\"#9d6afb\"}},{\"scope\":\"entity.name.lifetime.rust\",\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":\"variable.language.rust\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":\"keyword.operator.misc.rust\",\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":\"keyword.operator.sigil.rust\",\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":\"support.constant.core.rust\",\"settings\":{\"foreground\":\"#ffd452\"}},{\"scope\":[\"meta.function.c\",\"meta.function.cpp\"],\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":[\"punctuation.section.block.begin.bracket.curly.cpp\",\"punctuation.section.block.end.bracket.curly.cpp\",\"punctuation.terminator.statement.c\",\"punctuation.section.block.begin.bracket.curly.c\",\"punctuation.section.block.end.bracket.curly.c\",\"punctuation.section.parens.begin.bracket.round.c\",\"punctuation.section.parens.end.bracket.round.c\",\"punctuation.section.parameters.begin.bracket.round.c\",\"punctuation.section.parameters.end.bracket.round.c\"],\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":[\"keyword.operator.assignment.c\",\"keyword.operator.comparison.c\",\"keyword.operator.c\",\"keyword.operator.increment.c\",\"keyword.operator.decrement.c\",\"keyword.operator.bitwise.shift.c\"],\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":[\"keyword.operator.assignment.cpp\",\"keyword.operator.comparison.cpp\",\"keyword.operator.cpp\",\"keyword.operator.increment.cpp\",\"keyword.operator.decrement.cpp\",\"keyword.operator.bitwise.shift.cpp\"],\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":[\"punctuation.separator.c\",\"punctuation.separator.cpp\"],\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":[\"support.type.posix-reserved.c\",\"support.type.posix-reserved.cpp\"],\"settings\":{\"foreground\":\"#08c0ef\"}},{\"scope\":[\"keyword.operator.sizeof.c\",\"keyword.operator.sizeof.cpp\"],\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":\"variable.c\",\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":[\"storage.type.annotation.java\",\"storage.type.object.array.java\"],\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":\"source.java\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":[\"punctuation.section.block.begin.java\",\"punctuation.section.block.end.java\",\"punctuation.definition.method-parameters.begin.java\",\"punctuation.definition.method-parameters.end.java\",\"meta.method.identifier.java\",\"punctuation.section.method.begin.java\",\"punctuation.section.method.end.java\",\"punctuation.terminator.java\",\"punctuation.section.class.begin.java\",\"punctuation.section.class.end.java\",\"punctuation.section.inner-class.begin.java\",\"punctuation.section.inner-class.end.java\",\"meta.method-call.java\",\"punctuation.section.class.begin.bracket.curly.java\",\"punctuation.section.class.end.bracket.curly.java\",\"punctuation.section.method.begin.bracket.curly.java\",\"punctuation.section.method.end.bracket.curly.java\",\"punctuation.separator.period.java\",\"punctuation.bracket.angle.java\",\"punctuation.definition.annotation.java\",\"meta.method.body.java\"],\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":\"meta.method.java\",\"settings\":{\"foreground\":\"#9d6afb\"}},{\"scope\":[\"storage.modifier.import.java\",\"storage.type.java\",\"storage.type.generic.java\"],\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":\"keyword.operator.instanceof.java\",\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":\"meta.definition.variable.name.java\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":\"token.variable.parameter.java\",\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":\"import.storage.java\",\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":\"token.package.keyword\",\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":\"token.package\",\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":\"token.storage.type.java\",\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":\"keyword.operator.assignment.go\",\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":[\"keyword.operator.arithmetic.go\",\"keyword.operator.address.go\"],\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":\"entity.name.package.go\",\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":[\"support.other.namespace.use.php\",\"support.other.namespace.use-as.php\",\"support.other.namespace.php\",\"entity.other.alias.php\",\"meta.interface.php\"],\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":\"keyword.operator.error-control.php\",\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":\"keyword.operator.type.php\",\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":[\"punctuation.section.array.begin.php\",\"punctuation.section.array.end.php\"],\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":[\"storage.type.php\",\"meta.other.type.phpdoc.php\",\"keyword.other.type.php\",\"keyword.other.array.phpdoc.php\"],\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":[\"meta.function-call.php\",\"meta.function-call.object.php\",\"meta.function-call.static.php\"],\"settings\":{\"foreground\":\"#9d6afb\"}},{\"scope\":[\"punctuation.definition.parameters.begin.bracket.round.php\",\"punctuation.definition.parameters.end.bracket.round.php\",\"punctuation.separator.delimiter.php\",\"punctuation.section.scope.begin.php\",\"punctuation.section.scope.end.php\",\"punctuation.terminator.expression.php\",\"punctuation.definition.arguments.begin.bracket.round.php\",\"punctuation.definition.arguments.end.bracket.round.php\",\"punctuation.definition.storage-type.begin.bracket.round.php\",\"punctuation.definition.storage-type.end.bracket.round.php\",\"punctuation.definition.array.begin.bracket.round.php\",\"punctuation.definition.array.end.bracket.round.php\",\"punctuation.definition.begin.bracket.round.php\",\"punctuation.definition.end.bracket.round.php\",\"punctuation.definition.begin.bracket.curly.php\",\"punctuation.definition.end.bracket.curly.php\",\"punctuation.definition.section.switch-block.end.bracket.curly.php\",\"punctuation.definition.section.switch-block.start.bracket.curly.php\",\"punctuation.definition.section.switch-block.begin.bracket.curly.php\",\"punctuation.definition.section.switch-block.end.bracket.curly.php\"],\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":[\"support.constant.ext.php\",\"support.constant.std.php\",\"support.constant.core.php\",\"support.constant.parser-token.php\"],\"settings\":{\"foreground\":\"#ffd452\"}},{\"scope\":[\"entity.name.goto-label.php\",\"support.other.php\"],\"settings\":{\"foreground\":\"#9d6afb\"}},{\"scope\":[\"keyword.operator.logical.php\",\"keyword.operator.bitwise.php\",\"keyword.operator.arithmetic.php\"],\"settings\":{\"foreground\":\"#08c0ef\"}},{\"scope\":\"keyword.operator.regexp.php\",\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":\"keyword.operator.comparison.php\",\"settings\":{\"foreground\":\"#08c0ef\"}},{\"scope\":[\"keyword.operator.heredoc.php\",\"keyword.operator.nowdoc.php\"],\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":\"variable.other.class.php\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":\"invalid.illegal.non-null-typehinted.php\",\"settings\":{\"foreground\":\"#fafafa\"}},{\"scope\":\"variable.other.generic-type.haskell\",\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":\"storage.type.haskell\",\"settings\":{\"foreground\":\"#ffd452\"}},{\"scope\":\"storage.type.cs\",\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":\"entity.name.variable.local.cs\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":\"entity.name.label.cs\",\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":[\"entity.name.scope-resolution.function.call\",\"entity.name.scope-resolution.function.definition\"],\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":[\"punctuation.definition.delayed.unison\",\"punctuation.definition.list.begin.unison\",\"punctuation.definition.list.end.unison\",\"punctuation.definition.ability.begin.unison\",\"punctuation.definition.ability.end.unison\",\"punctuation.operator.assignment.as.unison\",\"punctuation.separator.pipe.unison\",\"punctuation.separator.delimiter.unison\",\"punctuation.definition.hash.unison\"],\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":\"support.constant.edge\",\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":\"support.type.prelude.elm\",\"settings\":{\"foreground\":\"#08c0ef\"}},{\"scope\":\"support.constant.elm\",\"settings\":{\"foreground\":\"#ffd452\"}},{\"scope\":\"entity.global.clojure\",\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":\"meta.symbol.clojure\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":\"constant.keyword.clojure\",\"settings\":{\"foreground\":\"#08c0ef\"}},{\"scope\":[\"meta.arguments.coffee\",\"variable.parameter.function.coffee\"],\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":\"storage.modifier.import.groovy\",\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":\"meta.method.groovy\",\"settings\":{\"foreground\":\"#9d6afb\"}},{\"scope\":\"meta.definition.variable.name.groovy\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":\"meta.definition.class.inherited.classes.groovy\",\"settings\":{\"foreground\":\"#5ecc71\"}},{\"scope\":\"support.variable.semantic.hlsl\",\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":[\"support.type.texture.hlsl\",\"support.type.sampler.hlsl\",\"support.type.object.hlsl\",\"support.type.object.rw.hlsl\",\"support.type.fx.hlsl\",\"support.type.object.hlsl\"],\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":[\"text.variable\",\"text.bracketed\"],\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":[\"support.type.swift\",\"support.type.vb.asp\"],\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":\"meta.scope.prerequisites.makefile\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":\"source.makefile\",\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":\"source.ini\",\"settings\":{\"foreground\":\"#5ecc71\"}},{\"scope\":\"constant.language.symbol.ruby\",\"settings\":{\"foreground\":\"#08c0ef\"}},{\"scope\":[\"function.parameter.ruby\",\"function.parameter.cs\"],\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":\"constant.language.symbol.elixir\",\"settings\":{\"foreground\":\"#08c0ef\"}},{\"scope\":\"text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade\",\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":\"text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade\",\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":\"entity.name.function.xi\",\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":\"entity.name.class.xi\",\"settings\":{\"foreground\":\"#08c0ef\"}},{\"scope\":\"constant.character.character-class.regexp.xi\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":\"constant.regexp.xi\",\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":\"keyword.control.xi\",\"settings\":{\"foreground\":\"#08c0ef\"}},{\"scope\":\"invalid.xi\",\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":\"beginning.punctuation.definition.quote.markdown.xi\",\"settings\":{\"foreground\":\"#5ecc71\"}},{\"scope\":\"beginning.punctuation.definition.list.markdown.xi\",\"settings\":{\"foreground\":\"#737373\"}},{\"scope\":\"constant.character.xi\",\"settings\":{\"foreground\":\"#9d6afb\"}},{\"scope\":\"accent.xi\",\"settings\":{\"foreground\":\"#9d6afb\"}},{\"scope\":\"wikiword.xi\",\"settings\":{\"foreground\":\"#ffd452\"}},{\"scope\":\"constant.other.color.rgb-value.xi\",\"settings\":{\"foreground\":\"#fafafa\"}},{\"scope\":\"punctuation.definition.tag.xi\",\"settings\":{\"foreground\":\"#737373\"}},{\"scope\":[\"support.constant.property-value.scss\",\"support.constant.property-value.css\"],\"settings\":{\"foreground\":\"#ffd452\"}},{\"scope\":[\"keyword.operator.css\",\"keyword.operator.scss\",\"keyword.operator.less\"],\"settings\":{\"foreground\":\"#08c0ef\"}},{\"scope\":[\"support.constant.color.w3c-standard-color-name.css\",\"support.constant.color.w3c-standard-color-name.scss\"],\"settings\":{\"foreground\":\"#ffd452\"}},{\"scope\":\"punctuation.separator.list.comma.css\",\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":\"support.type.vendored.property-name.css\",\"settings\":{\"foreground\":\"#08c0ef\"}},{\"scope\":\"support.type.property-name.css\",\"settings\":{\"foreground\":\"#08c0ef\"}},{\"scope\":\"support.type.property-name\",\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":\"support.constant.property-value\",\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":\"support.constant.font-name\",\"settings\":{\"foreground\":\"#ffd452\"}},{\"scope\":\"entity.other.attribute-name.class.css\",\"settings\":{\"foreground\":\"#60d199\",\"fontStyle\":\"normal\"}},{\"scope\":\"entity.other.attribute-name.id\",\"settings\":{\"foreground\":\"#9d6afb\",\"fontStyle\":\"normal\"}},{\"scope\":[\"entity.other.attribute-name.pseudo-element\",\"entity.other.attribute-name.pseudo-class\"],\"settings\":{\"foreground\":\"#08c0ef\"}},{\"scope\":\"meta.selector\",\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":\"selector.sass\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":\"rgb-value\",\"settings\":{\"foreground\":\"#08c0ef\"}},{\"scope\":\"inline-color-decoration rgb-value\",\"settings\":{\"foreground\":\"#ffd452\"}},{\"scope\":\"less rgb-value\",\"settings\":{\"foreground\":\"#ffd452\"}},{\"scope\":\"control.elements\",\"settings\":{\"foreground\":\"#ffd452\"}},{\"scope\":\"keyword.operator.less\",\"settings\":{\"foreground\":\"#ffd452\"}},{\"scope\":\"entity.name.tag\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":\"entity.other.attribute-name\",\"settings\":{\"foreground\":\"#60d199\",\"fontStyle\":\"normal\"}},{\"scope\":\"constant.character.entity\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":\"meta.tag\",\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":\"invalid.illegal.bad-ampersand.html\",\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":\"markup.heading\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":[\"markup.heading punctuation.definition.heading\",\"entity.name.section\"],\"settings\":{\"foreground\":\"#9d6afb\"}},{\"scope\":\"entity.name.section.markdown\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":\"punctuation.definition.heading.markdown\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":\"markup.heading.setext\",\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":[\"markup.heading.setext.1.markdown\",\"markup.heading.setext.2.markdown\"],\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":[\"markup.bold\",\"todo.bold\"],\"settings\":{\"foreground\":\"#ffd452\"}},{\"scope\":\"punctuation.definition.bold\",\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":\"punctuation.definition.bold.markdown\",\"settings\":{\"foreground\":\"#ffd452\"}},{\"scope\":[\"markup.italic\",\"punctuation.definition.italic\",\"todo.emphasis\"],\"settings\":{\"foreground\":\"#ff678d\",\"fontStyle\":\"italic\"}},{\"scope\":\"emphasis md\",\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":\"markup.italic.markdown\",\"settings\":{\"fontStyle\":\"italic\"}},{\"scope\":[\"markup.underline.link.markdown\",\"markup.underline.link.image.markdown\"],\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":[\"string.other.link.title.markdown\",\"string.other.link.description.markdown\"],\"settings\":{\"foreground\":\"#9d6afb\"}},{\"scope\":\"punctuation.definition.metadata.markdown\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":[\"markup.inline.raw.markdown\",\"markup.inline.raw.string.markdown\"],\"settings\":{\"foreground\":\"#5ecc71\"}},{\"scope\":\"punctuation.definition.list.begin.markdown\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":\"punctuation.definition.list.markdown\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":\"beginning.punctuation.definition.list.markdown\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":[\"punctuation.definition.string.begin.markdown\",\"punctuation.definition.string.end.markdown\"],\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":\"markup.quote.markdown\",\"settings\":{\"foreground\":\"#737373\"}},{\"scope\":\"keyword.other.unit\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":\"markup.changed.diff\",\"settings\":{\"foreground\":\"#ffab16\"}},{\"scope\":[\"meta.diff.header.from-file\",\"meta.diff.header.to-file\",\"punctuation.definition.from-file.diff\",\"punctuation.definition.to-file.diff\"],\"settings\":{\"foreground\":\"#9d6afb\"}},{\"scope\":\"markup.inserted.diff\",\"settings\":{\"foreground\":\"#5ecc71\"}},{\"scope\":\"markup.deleted.diff\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":\"string.regexp\",\"settings\":{\"foreground\":\"#64d1db\"}},{\"scope\":\"constant.other.character-class.regexp\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":\"keyword.operator.quantifier.regexp\",\"settings\":{\"foreground\":\"#ffd452\"}},{\"scope\":\"constant.character.escape\",\"settings\":{\"foreground\":\"#61d5c0\"}},{\"scope\":\"source.json meta.structure.dictionary.json > string.quoted.json\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":\"source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":[\"source.json meta.structure.dictionary.json > value.json > string.quoted.json\",\"source.json meta.structure.array.json > value.json > string.quoted.json\",\"source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation\",\"source.json meta.structure.array.json > value.json > string.quoted.json > punctuation\"],\"settings\":{\"foreground\":\"#5ecc71\"}},{\"scope\":[\"source.json meta.structure.dictionary.json > constant.language.json\",\"source.json meta.structure.array.json > constant.language.json\"],\"settings\":{\"foreground\":\"#08c0ef\"}},{\"scope\":\"support.type.property-name.json\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":\"support.type.property-name.json punctuation\",\"settings\":{\"foreground\":\"#ff855e\"}},{\"scope\":\"punctuation.definition.block.sequence.item.yaml\",\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":\"block.scope.end\",\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":\"block.scope.begin\",\"settings\":{\"foreground\":\"#636363\"}},{\"scope\":\"token.info-token\",\"settings\":{\"foreground\":\"#9d6afb\"}},{\"scope\":\"token.warn-token\",\"settings\":{\"foreground\":\"#ffd452\"}},{\"scope\":\"token.error-token\",\"settings\":{\"foreground\":\"#fafafa\"}},{\"scope\":\"token.debug-token\",\"settings\":{\"foreground\":\"#ff678d\"}},{\"scope\":\"invalid.illegal\",\"settings\":{\"foreground\":\"#fafafa\"}},{\"scope\":\"invalid.broken\",\"settings\":{\"foreground\":\"#fafafa\"}},{\"scope\":\"invalid.deprecated\",\"settings\":{\"foreground\":\"#fafafa\"}},{\"scope\":\"invalid.unimplemented\",\"settings\":{\"foreground\":\"#fafafa\"}}],\"semanticTokenColors\":{\"comment\":\"#737373\",\"string\":\"#5ecc71\",\"number\":\"#68cdf2\",\"regexp\":\"#64d1db\",\"keyword\":\"#ff678d\",\"variable\":\"#ffa359\",\"parameter\":\"#a3a3a3\",\"property\":\"#ffa359\",\"function\":\"#9d6afb\",\"method\":\"#9d6afb\",\"type\":\"#d568ea\",\"class\":\"#d568ea\",\"namespace\":\"#ffab16\",\"enumMember\":\"#08c0ef\",\"variable.constant\":\"#ffd452\",\"variable.defaultLibrary\":\"#ffab16\",\"decorator\":\"#69b1ff\"}}"));
3
5
  //#endregion
4
- export { pierre_dark_default as default };
6
+ export { pierre_dark_exports as n, pierre_dark_default as t };