@qwen-code/qwen-code 0.26.2-preview.0 → 0.26.2-preview.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 (300) hide show
  1. package/chunks/{MaxSizedBox-K6YUM3DX.js → MaxSizedBox-EGHZ2BPF.js} +1 -1
  2. package/chunks/{StandaloneSessionPicker-75IC33SN.js → StandaloneSessionPicker-UVCW6YW3.js} +1 -1
  3. package/chunks/{acp-subagent-executor-3NHBJRPL.js → acp-subagent-executor-AQ7AWSD4.js} +1 -1
  4. package/chunks/{acpAgent-JT6KQPTH.js → acpAgent-IV7JAGD7.js} +3 -3
  5. package/chunks/{advisor-TI2UVEZK.js → advisor-UZ4TF65D.js} +1 -1
  6. package/chunks/{agent-SWIZZZMY.js → agent-CNLVAWDD.js} +1 -1
  7. package/chunks/{agent-headless-USWEJ4GW.js → agent-headless-ZJUJLUJS.js} +1 -1
  8. package/chunks/{agent-host-client-ZFIMQX33.js → agent-host-client-SN5V2KBH.js} +1 -1
  9. package/chunks/{agent-host-connections-LOFD7O7Q.js → agent-host-connections-VKMAJIIU.js} +1 -1
  10. package/chunks/{anthropicContentGenerator-HMLEI4FI.js → anthropicContentGenerator-QTJVPAMI.js} +1 -1
  11. package/chunks/{autofix-pr-NKR2VSLB.js → autofix-pr-U7GNSH27.js} +1 -1
  12. package/chunks/{batch-JQZ3TOHA.js → batch-MBEWETXN.js} +1 -1
  13. package/chunks/{bridge-EIWWT4P6.js → bridge-TEJLNYV3.js} +1 -1
  14. package/chunks/{channel-settings-store-FLRLUA67.js → channel-settings-store-QNCKWWBL.js} +1 -1
  15. package/chunks/{chunk-244YTFYD.js → chunk-23KDY7UW.js} +1 -1
  16. package/chunks/{chunk-7TDMQJTD.js → chunk-2DWWSMTV.js} +1 -1
  17. package/chunks/{chunk-UU2LTNSF.js → chunk-3IZMVLVZ.js} +1 -1
  18. package/chunks/{chunk-B6T4ESBM.js → chunk-3JI7IKJL.js} +1 -1
  19. package/chunks/{chunk-Y5TT2G3N.js → chunk-427MARCP.js} +1 -1
  20. package/chunks/{chunk-KX7JS2P7.js → chunk-4NNNGSQY.js} +3 -3
  21. package/chunks/{chunk-6TQS2WQO.js → chunk-4RM7KY3Z.js} +2 -2
  22. package/chunks/{chunk-YL3N2UGG.js → chunk-5X7S4AE6.js} +5 -5
  23. package/chunks/{chunk-K2HAY5PY.js → chunk-5XAECBED.js} +1 -1
  24. package/chunks/{chunk-VCHFBETO.js → chunk-66KKSLUO.js} +1 -1
  25. package/chunks/{chunk-BSJR2KEF.js → chunk-6CIIDUZW.js} +1 -1
  26. package/chunks/{chunk-22CLK7PK.js → chunk-7EBRMQYW.js} +1 -1
  27. package/chunks/{chunk-J4TFGZ4A.js → chunk-7FSC2NKA.js} +1 -1
  28. package/chunks/{chunk-6JFC5M6B.js → chunk-A5TAAMML.js} +1 -1
  29. package/chunks/{chunk-DHHACQVN.js → chunk-AOYSX44A.js} +1 -1
  30. package/chunks/{chunk-VFVZ2DY7.js → chunk-AZCMQ3DD.js} +2 -2
  31. package/chunks/{chunk-BQJXWIMR.js → chunk-B6F7CVBP.js} +1 -1
  32. package/chunks/{chunk-OVPEAKOQ.js → chunk-BDQOLT37.js} +1 -1
  33. package/chunks/{chunk-5SYUBQNO.js → chunk-BIWEUAKG.js} +1 -1
  34. package/chunks/{chunk-BZM66PQO.js → chunk-BJ5R7LOM.js} +1 -1
  35. package/chunks/{chunk-4R2OHBH3.js → chunk-BKUFRNME.js} +1 -1
  36. package/chunks/{chunk-NIYWNFVF.js → chunk-BNZSPX2I.js} +1 -1
  37. package/chunks/{chunk-FJV2ECNY.js → chunk-D2URRVOK.js} +1 -1
  38. package/chunks/{chunk-GT6CHVAI.js → chunk-DANP7CMW.js} +1 -1
  39. package/chunks/{chunk-FHFLD4DR.js → chunk-DBHLRZGI.js} +1 -1
  40. package/chunks/{chunk-Y2UXZJLM.js → chunk-DL7TKH2E.js} +2 -2
  41. package/chunks/{chunk-MCQE2U7N.js → chunk-DOWKH5OZ.js} +6 -6
  42. package/chunks/{chunk-UHRLBY3C.js → chunk-DPHQJPCU.js} +1 -1
  43. package/chunks/{chunk-PV2VT25U.js → chunk-DPNGBOI7.js} +1 -1
  44. package/chunks/{chunk-NCDNF7UJ.js → chunk-DXRXF4QD.js} +1 -1
  45. package/chunks/{chunk-OCVRMNEQ.js → chunk-DZ3GV34J.js} +1 -1
  46. package/chunks/{chunk-3QIAXWWW.js → chunk-EU2MKUK4.js} +1 -1
  47. package/chunks/{chunk-KMAVI6FB.js → chunk-EVBUXPGM.js} +1 -1
  48. package/chunks/{chunk-BVSTV4JM.js → chunk-F3ZRU2SA.js} +1 -1
  49. package/chunks/{chunk-TBZY477Y.js → chunk-FCZYH27X.js} +1 -1
  50. package/chunks/{chunk-JCOK67LT.js → chunk-FNDMWG43.js} +1 -1
  51. package/chunks/{chunk-5SF32OGU.js → chunk-GDXLJJSW.js} +1 -1
  52. package/chunks/{chunk-SO6FCPRI.js → chunk-GZYIXB7Y.js} +1 -1
  53. package/chunks/{chunk-WZPTWC7X.js → chunk-HHNAH4IH.js} +1 -1
  54. package/chunks/{chunk-7KCAOXNL.js → chunk-HOKROBQZ.js} +1 -1
  55. package/chunks/{chunk-34ZBUQJV.js → chunk-IGPAATQW.js} +1 -1
  56. package/chunks/{chunk-2ZTRKK2O.js → chunk-INFBJDWM.js} +1 -1
  57. package/chunks/{chunk-IEJ2CGRN.js → chunk-J3R7ZNSA.js} +1 -1
  58. package/chunks/{chunk-KT5MPRYB.js → chunk-JCRS367I.js} +1 -1
  59. package/chunks/{chunk-7JWJTRP6.js → chunk-JFVXZFMV.js} +1 -1
  60. package/chunks/{chunk-47LP4MBD.js → chunk-JKMGS2VD.js} +1 -1
  61. package/chunks/{chunk-WRJ3PMDZ.js → chunk-JUQ7T2MV.js} +1 -1
  62. package/chunks/{chunk-NZX3UWNF.js → chunk-KQ4TDFNE.js} +1 -1
  63. package/chunks/{chunk-X7D4VKMX.js → chunk-L6BKKN42.js} +1 -1
  64. package/chunks/{chunk-YG5HVFMY.js → chunk-L7Y6MOHS.js} +1 -1
  65. package/chunks/{chunk-UFTIUKD4.js → chunk-LGYXZJI3.js} +1 -1
  66. package/chunks/{chunk-JQGGILML.js → chunk-LPOEVTKD.js} +1 -1
  67. package/chunks/{chunk-5KI55A6S.js → chunk-LRXS7ZI2.js} +1 -1
  68. package/chunks/{chunk-CKVHEYXW.js → chunk-LYYVSCNL.js} +1 -1
  69. package/chunks/{chunk-LIIMQ4DI.js → chunk-LZNBHBAJ.js} +6 -6
  70. package/chunks/{chunk-H4GDEXMF.js → chunk-M3C6RDGC.js} +1 -1
  71. package/chunks/{chunk-KKKUB3RQ.js → chunk-MNVMHVQJ.js} +1 -1
  72. package/chunks/{chunk-2B3W7IQY.js → chunk-MVGQFFIK.js} +1 -1
  73. package/chunks/{chunk-Q35A2RGO.js → chunk-NC7BCZPQ.js} +1 -1
  74. package/chunks/{chunk-2ZOTG3NW.js → chunk-NE627MUW.js} +1 -1
  75. package/chunks/{chunk-W4P2EN3V.js → chunk-NZNRCPGE.js} +1 -1
  76. package/chunks/{chunk-YPDQJQ3S.js → chunk-P3M4WWRA.js} +1 -1
  77. package/chunks/{chunk-DVB36ASH.js → chunk-P534ONQN.js} +1 -1
  78. package/chunks/{chunk-EL5J4ESB.js → chunk-QF44NNSC.js} +1 -1
  79. package/chunks/{chunk-IQPJOBPI.js → chunk-QHGCDHNW.js} +1 -1
  80. package/chunks/{chunk-EVZC4KEQ.js → chunk-QWJX7NIP.js} +1 -1
  81. package/chunks/{chunk-J2TJL2F4.js → chunk-S53G54DW.js} +2 -2
  82. package/chunks/{chunk-3A6LFJJV.js → chunk-SMNFL3AD.js} +1 -1
  83. package/chunks/{chunk-WDO3K3P2.js → chunk-TOBNWST4.js} +1 -1
  84. package/chunks/{chunk-AVGJ4HE3.js → chunk-TQSBUHAM.js} +1 -1
  85. package/chunks/{chunk-ABUS7DNN.js → chunk-TW5QEP2J.js} +1 -1
  86. package/chunks/{chunk-WYM4Z4D5.js → chunk-UEB2F43V.js} +1 -1
  87. package/chunks/{chunk-FUUPMVD2.js → chunk-UPPE4I6H.js} +1 -1
  88. package/chunks/{chunk-UHBJVFZA.js → chunk-US42COBM.js} +1 -1
  89. package/chunks/{chunk-RMQNBSMK.js → chunk-UUY6XSQI.js} +1 -1
  90. package/chunks/{chunk-UVQUQNCA.js → chunk-UZI3IA27.js} +1 -1
  91. package/chunks/{chunk-SXJ2E33J.js → chunk-V6VMUJ47.js} +1 -1
  92. package/chunks/{chunk-5UFCNJGN.js → chunk-VG2ZINTO.js} +1 -1
  93. package/chunks/{chunk-JPPPJ2GN.js → chunk-VJI6MHWX.js} +1 -1
  94. package/chunks/{chunk-AUI7WVSU.js → chunk-VOBNHBCJ.js} +1 -1
  95. package/chunks/{chunk-3BNJDZHU.js → chunk-VUEZWMI4.js} +1 -1
  96. package/chunks/{chunk-LMNKCL55.js → chunk-W7ZX6WB3.js} +2 -2
  97. package/chunks/{chunk-HVS6V2UZ.js → chunk-WA2LKUVP.js} +1 -1
  98. package/chunks/{chunk-7APLU2XE.js → chunk-WFFCJ5PF.js} +1 -1
  99. package/chunks/{chunk-3TD4WAG5.js → chunk-WQY5GE65.js} +1 -1
  100. package/chunks/{chunk-3YWRMF6C.js → chunk-WSESLSKK.js} +1 -1
  101. package/chunks/{chunk-NILCQMZ7.js → chunk-XFJV5NYT.js} +1 -1
  102. package/chunks/{chunk-LGBGUITT.js → chunk-XIYLRIW4.js} +1 -1
  103. package/chunks/{chunk-KS74L67R.js → chunk-XQ2NYKJH.js} +1 -1
  104. package/chunks/{chunk-JB2NOB6W.js → chunk-Y3VRWG52.js} +1 -1
  105. package/chunks/{chunk-GVZ6D2NL.js → chunk-YBISME5B.js} +1 -1
  106. package/chunks/{chunk-2C2253QI.js → chunk-YJNWPSB3.js} +1 -1
  107. package/chunks/{chunk-O2T3GQ6F.js → chunk-YWVV5STA.js} +1 -1
  108. package/chunks/{chunk-MAQZSOHI.js → chunk-ZH4J3FL6.js} +1 -1
  109. package/chunks/{chunk-THNEKTPK.js → chunk-ZSKCF6DI.js} +1 -1
  110. package/chunks/{chunk-Z7BAHKO5.js → chunk-ZW6456SD.js} +1 -1
  111. package/chunks/{chunk-DMSZ2TB3.js → chunk-ZWM3LLT7.js} +1 -1
  112. package/chunks/{codex-subagent-executor-DQ5LQQWO.js → codex-subagent-executor-DWWT7246.js} +1 -1
  113. package/chunks/{config-utils-CY6HLKZ5.js → config-utils-NGZB522W.js} +1 -1
  114. package/chunks/{contextCommand-SGBWI7O6.js → contextCommand-7QCW2YNX.js} +1 -1
  115. package/chunks/{core-runtime-4DP27LCC.js → core-runtime-PSVNDJPD.js} +1 -1
  116. package/chunks/{create-sub-session-ECPDZMBX.js → create-sub-session-JTSEMEJE.js} +1 -1
  117. package/chunks/{cron-create-OO4OG3EI.js → cron-create-VGIDTUMX.js} +1 -1
  118. package/chunks/{daemon-git-worktree-guard-OYDNHT7P.js → daemon-git-worktree-guard-IQRGS7IH.js} +1 -1
  119. package/chunks/{daemon-status-provider-JGDLXPC6.js → daemon-status-provider-R4MYCYPG.js} +1 -1
  120. package/chunks/{daemon-trust-policy-5HRARS54.js → daemon-trust-policy-VAUKFZ2N.js} +1 -1
  121. package/chunks/{daemon-trust-policy-monitor-RM7FVIIC.js → daemon-trust-policy-monitor-E5HIO6RP.js} +1 -1
  122. package/chunks/{deferred-core-runtime-3CXBZIOG.js → deferred-core-runtime-FLOFQJPU.js} +1 -1
  123. package/chunks/{edit-DJPESAAY.js → edit-OOVQUGKV.js} +1 -1
  124. package/chunks/{enterPlanMode-IHBLRIF3.js → enterPlanMode-AUWVTQLT.js} +1 -1
  125. package/chunks/{environment-JN5SD347.js → environment-RM5OXYP4.js} +1 -1
  126. package/chunks/{errors-NUJCME3Y.js → errors-CLDJGHVD.js} +1 -1
  127. package/chunks/{execution-tool-I3SWG6I3.js → execution-tool-JFBVOKPW.js} +1 -1
  128. package/chunks/{execution-worker-62UZMAMJ.js → execution-worker-MNJZD72W.js} +1 -1
  129. package/chunks/{exitPlanMode-JIC4V3FE.js → exitPlanMode-PC6XG4TW.js} +1 -1
  130. package/chunks/{fast-path-NIOIL5YI.js → fast-path-V4DN3CRZ.js} +1 -1
  131. package/chunks/{glob-EQ4QNAHF.js → glob-DTZROBDS.js} +1 -1
  132. package/chunks/{goal-tools-DYTTSBQG.js → goal-tools-FUVGTY33.js} +1 -1
  133. package/chunks/{handleAutoUpdate-44BTG5L5.js → handleAutoUpdate-U4LVTHGU.js} +1 -1
  134. package/chunks/{i18n-FTHZAHCT.js → i18n-XOKNDFYP.js} +1 -1
  135. package/chunks/{initializer-MSGKXC75.js → initializer-XBR5J4CY.js} +1 -1
  136. package/chunks/{installationInfo-4XJMJJYU.js → installationInfo-4AOEOUI6.js} +1 -1
  137. package/chunks/{interactive-mod-session-DFLRYO2Q.js → interactive-mod-session-YGZK2JK2.js} +1 -1
  138. package/chunks/{list-ODZ7Z6VI.js → list-TCGKVPH4.js} +1 -1
  139. package/chunks/{llm-O64DHKP7.js → llm-SKFTN5UN.js} +4 -4
  140. package/chunks/{llm-content-generator-SK24I6QS.js → llm-content-generator-GWHXT3WS.js} +1 -1
  141. package/chunks/{loadedSettingsAdapter-6PEBUZT5.js → loadedSettingsAdapter-ZALZGZE7.js} +1 -1
  142. package/chunks/{local-ED3UEKWP.js → local-RWTWYS5Z.js} +1 -1
  143. package/chunks/{local-execution-environment-PUKES5LO.js → local-execution-environment-R6JWLD65.js} +1 -1
  144. package/chunks/{loggingContentGenerator-UHOJVSRR.js → loggingContentGenerator-UJV6QFOY.js} +1 -1
  145. package/chunks/{loop-wakeup-NSJQETPZ.js → loop-wakeup-BU2RRYHA.js} +1 -1
  146. package/chunks/{manage-memory-5RRB6FLH.js → manage-memory-XI57JN4T.js} +1 -1
  147. package/chunks/{managed-execution-engine-MZAP7SK6.js → managed-execution-engine-BA5PABMP.js} +1 -1
  148. package/chunks/{managed-local-serve-XMES3HXL.js → managed-local-serve-MFKN22K6.js} +1 -1
  149. package/chunks/{managed-npm-update-R5KGY7G2.js → managed-npm-update-ZGN43NUA.js} +1 -1
  150. package/chunks/{managed-runtime-attestation-worker-O2KNHHV6.js → managed-runtime-attestation-worker-YN2VBGYN.js} +1 -1
  151. package/chunks/{managed-runtime-bootstrap-HOTLM6DE.js → managed-runtime-bootstrap-SGQVMUJE.js} +1 -1
  152. package/chunks/{managed-runtime-session-worker-QZX44ZTD.js → managed-runtime-session-worker-4UMF3VBY.js} +1 -1
  153. package/chunks/{managed-runtime-ssh-worker-U425WQ65.js → managed-runtime-ssh-worker-7XA6KRBN.js} +1 -1
  154. package/chunks/{managed-session-authority-THHDHCBP.js → managed-session-authority-IJGYAOEL.js} +1 -1
  155. package/chunks/{mcp-AR7EK4WY.js → mcp-V3L7B5YK.js} +1 -1
  156. package/chunks/{memory-C2TSF6BK.js → memory-3T6FPNAK.js} +1 -1
  157. package/chunks/{model-call-collection-25WR55OH.js → model-call-collection-WTTITWWM.js} +1 -1
  158. package/chunks/{model-configuration-KC7DQGKV.js → model-configuration-T6SSGI4J.js} +1 -1
  159. package/chunks/{modelConfigUtils-QEHMVLSQ.js → modelConfigUtils-TQA25QJC.js} +1 -1
  160. package/chunks/{monitor-PDQUZD23.js → monitor-5ZAOJSEE.js} +1 -1
  161. package/chunks/{nonInteractiveCli-WY2YFONU.js → nonInteractiveCli-YFINLVA7.js} +1 -1
  162. package/chunks/{nonInteractiveToolExecutor-7RJZYPHJ.js → nonInteractiveToolExecutor-DE3WACL5.js} +1 -1
  163. package/chunks/{notebook-edit-P4ITXF5H.js → notebook-edit-UK6HBRO3.js} +1 -1
  164. package/chunks/{omni-AYUPB2QM.js → omni-65LF5QK4.js} +1 -1
  165. package/chunks/{openaiContentGenerator-V5IK4ITO.js → openaiContentGenerator-HX7NCSV5.js} +1 -1
  166. package/chunks/{openaiResponsesContentGenerator-DYDH6KWT.js → openaiResponsesContentGenerator-CFA6U6Y5.js} +1 -1
  167. package/chunks/{pidfile-INPBL2DK.js → pidfile-ZVKJUNTZ.js} +1 -1
  168. package/chunks/{processUtils-J4UDEDS4.js → processUtils-VS6CJT7E.js} +1 -1
  169. package/chunks/{prompt-terminal-ledger-QLOQWHYE.js → prompt-terminal-ledger-UF5RDB57.js} +1 -1
  170. package/chunks/{qwenContentGenerator-RU43XKKB.js → qwenContentGenerator-GM3ZSI7E.js} +1 -1
  171. package/chunks/{reactive-degrade-2Q3Z3KAR.js → reactive-degrade-TSAQWZ5F.js} +1 -1
  172. package/chunks/{read-file-472BQ25I.js → read-file-J267NT45.js} +1 -1
  173. package/chunks/{resumeHistoryUtils-7SUFKZDC.js → resumeHistoryUtils-IM46VFDV.js} +1 -1
  174. package/chunks/{review-WX52IWJR.js → review-4B64XTCL.js} +1 -1
  175. package/chunks/{ripGrep-4GPGLKAM.js → ripGrep-YLOSXO7P.js} +1 -1
  176. package/chunks/{run-qwen-serve-MXK4RBKL.js → run-qwen-serve-SAHEC44O.js} +1 -1
  177. package/chunks/{runtime-WHU3AGFT.js → runtime-SJDZHV6J.js} +1 -1
  178. package/chunks/{sandboxConfig-7DBXEQJH.js → sandboxConfig-47EXXMUA.js} +1 -1
  179. package/chunks/{scheduled-tasks-O5RV6G6U.js → scheduled-tasks-E6RCTUUS.js} +1 -1
  180. package/chunks/{scheduler-HLMS5LR5.js → scheduler-SE3IWIWA.js} +1 -1
  181. package/chunks/{search-memory-PYND7ZX3.js → search-memory-2W7VJC4Q.js} +1 -1
  182. package/chunks/{send-message-TMLYTQOI.js → send-message-63YGQP6G.js} +1 -1
  183. package/chunks/{serve-EBNBRAME.js → serve-F4ML2WNL.js} +1 -1
  184. package/chunks/{server-63BRDBL5.js → server-S56IB4TT.js} +3 -3
  185. package/chunks/{session-XB6J4CZD.js → session-2CUVLZ4H.js} +1 -1
  186. package/chunks/{session-attachments-root-PFK475N2.js → session-attachments-root-FINBX7K5.js} +1 -1
  187. package/chunks/{session-execution-engine-selector-P6TJTCKR.js → session-execution-engine-selector-UGC7DGUN.js} +1 -1
  188. package/chunks/{session-pr-refresh-PM7VAQTV.js → session-pr-refresh-KQLQ4MZY.js} +1 -1
  189. package/chunks/{sessionService-PO3LLZIZ.js → sessionService-Q6N7LF7Z.js} +1 -1
  190. package/chunks/{settings-JDQSRXP3.js → settings-23I6H76E.js} +1 -1
  191. package/chunks/{shell-JCEX3HKM.js → shell-IUECEVVY.js} +1 -1
  192. package/chunks/{skill-JSZBONIZ.js → skill-YKUETMPC.js} +1 -1
  193. package/chunks/{skill-settings-YGFG6GPN.js → skill-settings-ODYXOPCA.js} +1 -1
  194. package/chunks/{spawnChannel-VIIWSWTL.js → spawnChannel-7XU2SRWZ.js} +1 -1
  195. package/chunks/{standalone-update-2UU6FQZL.js → standalone-update-SWI2RL3L.js} +1 -1
  196. package/chunks/{start-opentui-ui-OSZZNSLY.js → start-opentui-ui-T53QJGCH.js} +1 -1
  197. package/chunks/{startInteractiveUI-FFH66MYH.js → startInteractiveUI-USTZGQOE.js} +1 -1
  198. package/chunks/{team-create-TKGDJ3NU.js → team-create-4A2XUE3D.js} +1 -1
  199. package/chunks/{team-plan-approval-3VJF4G6Z.js → team-plan-approval-4TS5CYN6.js} +1 -1
  200. package/chunks/{terminal-image-renderer-T3VJRZGP.js → terminal-image-renderer-C7553YV6.js} +1 -1
  201. package/chunks/{theme-manager-ZGUFLFUI.js → theme-manager-GTW75GOO.js} +1 -1
  202. package/chunks/{tool-call-3EQS5KSE.js → tool-call-YTUMWL3A.js} +1 -1
  203. package/chunks/{tool-result-media-7LFNVQ6E.js → tool-result-media-JYOYBX4J.js} +1 -1
  204. package/chunks/{tool-search-UDZ4S7T5.js → tool-search-Y4XTT2WF.js} +1 -1
  205. package/chunks/{total-session-admission-U4MII4RA.js → total-session-admission-EMJ5NRGL.js} +1 -1
  206. package/chunks/{trustedFolders-2NQJCIN3.js → trustedFolders-YG6WAVRE.js} +1 -1
  207. package/chunks/{update-relaunch-YKLWSCLC.js → update-relaunch-4QYQRCP4.js} +1 -1
  208. package/chunks/{updateCheck-YDLTQQRU.js → updateCheck-VRFPSX4G.js} +1 -1
  209. package/chunks/{upload-config-5QQKWF4O.js → upload-config-UCKGUYYQ.js} +1 -1
  210. package/chunks/{useAutoAcceptIndicator-AJS4WTU2.js → useAutoAcceptIndicator-2VGLKD7B.js} +1 -1
  211. package/chunks/{validateNonInterActiveAuth-AETOT7ZW.js → validateNonInterActiveAuth-GGMQXKKU.js} +1 -1
  212. package/chunks/{version-IB6DLRAG.js → version-Y46PG7II.js} +1 -1
  213. package/chunks/{web-fetch-LS3QARNR.js → web-fetch-7MPU555L.js} +1 -1
  214. package/chunks/{web-search-FGHRIVEB.js → web-search-HU2CL2X2.js} +1 -1
  215. package/chunks/{workflow-FX6XNETQ.js → workflow-U3D34QQX.js} +1 -1
  216. package/chunks/{workflow-ancestor-trust-5XXBGN6F.js → workflow-ancestor-trust-OWC4YTMR.js} +1 -1
  217. package/chunks/{workspace-agents-UJKLYPUK.js → workspace-agents-KHLAWSAR.js} +1 -1
  218. package/chunks/{workspace-providers-status-4JOHMTAW.js → workspace-providers-status-T57SE3YX.js} +1 -1
  219. package/chunks/{workspace-recovery-worker-XFEYQ4TP.js → workspace-recovery-worker-VYQ723ZE.js} +1 -1
  220. package/chunks/{workspace-registration-store-LWAPVNYC.js → workspace-registration-store-I7PR3A2Y.js} +1 -1
  221. package/chunks/{workspace-registry-M7OC376O.js → workspace-registry-YYUBXCLH.js} +1 -1
  222. package/chunks/{workspace-runtime-coordinator-CYHIL47L.js → workspace-runtime-coordinator-5ICAQO7W.js} +1 -1
  223. package/chunks/{workspace-service-43VZZ56B.js → workspace-service-YROWXOLQ.js} +1 -1
  224. package/chunks/{workspace-skills-status-V2TT6UJQ.js → workspace-skills-status-DKKQDTZJ.js} +1 -1
  225. package/chunks/{workspace-trust-reconciler-YZ4AG5ZW.js → workspace-trust-reconciler-3FPMUZDO.js} +1 -1
  226. package/chunks/{write-file-TGEH5MEZ.js → write-file-7QQVYFDT.js} +1 -1
  227. package/chunks/{zoom-image-TT6R7H2H.js → zoom-image-WL5EB6Q7.js} +1 -1
  228. package/cli.js +2 -2
  229. package/execution-worker.js +1 -1
  230. package/export-transcript-document.js +1 -1
  231. package/package.json +3 -3
  232. package/web-shell/assets/{PierreFilePreview-OsApm5-S.js → PierreFilePreview-BZ17f56_.js} +1 -1
  233. package/web-shell/assets/{SpreadsheetPreview-I1v1EzV7.js → SpreadsheetPreview-Bvkvr_5u.js} +1 -1
  234. package/web-shell/assets/{WorkspaceFileBrowser-BO6aug7i.js → WorkspaceFileBrowser-BJ_I4Uoz.js} +1 -1
  235. package/web-shell/assets/{abnfDiagram-VCTEODGH-DxuLMyN0.js → abnfDiagram-VCTEODGH-iuaBM15V.js} +1 -1
  236. package/web-shell/assets/{agents-route-CSJf6QPO.js → agents-route-CycwfNSC.js} +1 -1
  237. package/web-shell/assets/{arc-3--LekYQ.js → arc-C0lt8n55.js} +1 -1
  238. package/web-shell/assets/{architectureDiagram-5GKGNRK7-Dihq4uto.js → architectureDiagram-5GKGNRK7-Bw326d-A.js} +1 -1
  239. package/web-shell/assets/{blockDiagram-NRAW4CY4-BnaRPM2o.js → blockDiagram-NRAW4CY4-CHtFgBjV.js} +1 -1
  240. package/web-shell/assets/{c4Diagram-UCG6FXSJ-BtC94eMa.js → c4Diagram-UCG6FXSJ-Bx66oJT9.js} +1 -1
  241. package/web-shell/assets/channel-CRJuO00u.js +1 -0
  242. package/web-shell/assets/{chunk-2Q5K7J3B-2ZTXWP6M.js → chunk-2Q5K7J3B-BIshvfa_.js} +1 -1
  243. package/web-shell/assets/{chunk-5VM5RSS4-DBh7DP1F.js → chunk-5VM5RSS4-BZeRS6uD.js} +1 -1
  244. package/web-shell/assets/{chunk-F27PBJKO-xzqbWXBw.js → chunk-F27PBJKO-El-CGY2R.js} +1 -1
  245. package/web-shell/assets/{chunk-G27WJ6UU-DxnCrpxK.js → chunk-G27WJ6UU-DO8ZfQL_.js} +1 -1
  246. package/web-shell/assets/{chunk-JWPE2WC7-BPjRsozm.js → chunk-JWPE2WC7-yYFrrKAj.js} +1 -1
  247. package/web-shell/assets/{chunk-LCL6LL3I-Q2HgB3lf.js → chunk-LCL6LL3I-BFGuOKN0.js} +1 -1
  248. package/web-shell/assets/{chunk-POPQ4Y6H-9tlPaKu-.js → chunk-POPQ4Y6H-GRHK6sdV.js} +1 -1
  249. package/web-shell/assets/{chunk-SVP7TREG-DkNdOHCU.js → chunk-SVP7TREG-DwDu6GqZ.js} +1 -1
  250. package/web-shell/assets/{chunk-XXDRQBXY-D0G-Dhfi.js → chunk-XXDRQBXY-RoNDjkIy.js} +1 -1
  251. package/web-shell/assets/classDiagram-DTDB5LWJ-pPPByLA7.js +1 -0
  252. package/web-shell/assets/classDiagram-v2-JRS7N3AN-pPPByLA7.js +1 -0
  253. package/web-shell/assets/{cose-bilkent-JH36ORCC-Ck0tHxul.js → cose-bilkent-JH36ORCC-CYNiiONE.js} +1 -1
  254. package/web-shell/assets/{cynefin-OW5HDTMX-a4-NTMHi.js → cynefin-OW5HDTMX-DC1_lDIG.js} +1 -1
  255. package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-Pg41Zbf2.js → cynefinDiagram-5FMLGOSQ-D2VxKm2n.js} +1 -1
  256. package/web-shell/assets/{dagre-3AP2YEHR-DT_ZmqkF.js → dagre-3AP2YEHR-C4_BHzpM.js} +1 -1
  257. package/web-shell/assets/{diagram-S7CK7UJ4-hapdMOl1.js → diagram-S7CK7UJ4-BpAO4-Gv.js} +1 -1
  258. package/web-shell/assets/{diagram-UQ7AKVKN-YZ0nbk56.js → diagram-UQ7AKVKN-DqUsFdsX.js} +1 -1
  259. package/web-shell/assets/{diagram-VSXAHHWV-DA_yNbWy.js → diagram-VSXAHHWV-DcMXIYMy.js} +1 -1
  260. package/web-shell/assets/{diagram-VX7I27RA-DoULuCLT.js → diagram-VX7I27RA-I3nr09ex.js} +1 -1
  261. package/web-shell/assets/{diagram-Z3DM3KII-B5c9o9zL.js → diagram-Z3DM3KII-CN-gvsTo.js} +1 -1
  262. package/web-shell/assets/{docx-preview-BulxdBjs.js → docx-preview-31J6RsS0.js} +1 -1
  263. package/web-shell/assets/{ebnfDiagram-PWID7BFC-B5hgIg3m.js → ebnfDiagram-PWID7BFC-DOQvLWlM.js} +1 -1
  264. package/web-shell/assets/{erDiagram-SSCWMZ5O-BEfEPozi.js → erDiagram-SSCWMZ5O-Cb5ijFZh.js} +1 -1
  265. package/web-shell/assets/{flowDiagram-A5DVABFB-CQHNk92v.js → flowDiagram-A5DVABFB-BecqqjnZ.js} +1 -1
  266. package/web-shell/assets/{ganttDiagram-EL5Y4UJY-BabdVgIM.js → ganttDiagram-EL5Y4UJY-DWY5vzQl.js} +1 -1
  267. package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-ujRZBFUo.js → gitGraphDiagram-WWUBYQGX-DqBnsZmZ.js} +1 -1
  268. package/web-shell/assets/{index-B9uXebIR.js → index-DDmiUW3b.js} +6 -6
  269. package/web-shell/assets/{index-DSZXdZnu.js → index-DabH7kHA.js} +1 -1
  270. package/web-shell/assets/{infoDiagram-RXCK75RN-CUHj9jJC.js → infoDiagram-RXCK75RN-MlotyOdT.js} +1 -1
  271. package/web-shell/assets/{ishikawaDiagram-5VMMS53U-CulW_q81.js → ishikawaDiagram-5VMMS53U-Daq_85C7.js} +1 -1
  272. package/web-shell/assets/{journeyDiagram-EYS64GPL-BR46CvRQ.js → journeyDiagram-EYS64GPL-OipivCxL.js} +1 -1
  273. package/web-shell/assets/{kanban-definition-3QL26DDD-HAoUqzFy.js → kanban-definition-3QL26DDD-zqaz7dLu.js} +1 -1
  274. package/web-shell/assets/{layout-DYLl7fyA.js → layout-Bi3msQMQ.js} +1 -1
  275. package/web-shell/assets/{linear-DPXABjDZ.js → linear-D4gPORvD.js} +1 -1
  276. package/web-shell/assets/{mermaid.core-Bi30Gi0n.js → mermaid.core-BUnytF7a.js} +6 -6
  277. package/web-shell/assets/{mindmap-definition-FBJOCRG2-B1_lUq4o.js → mindmap-definition-FBJOCRG2-B_X4iChu.js} +1 -1
  278. package/web-shell/assets/{pegDiagram-XKGWAZYB-Cy8tjJJC.js → pegDiagram-XKGWAZYB-z4wYBoBW.js} +1 -1
  279. package/web-shell/assets/{pieDiagram-E7YTZNPT-D6waLVVi.js → pieDiagram-E7YTZNPT-Dvyg6FYo.js} +1 -1
  280. package/web-shell/assets/{quadrantDiagram-AXDQQJYC--6ehi_FI.js → quadrantDiagram-AXDQQJYC-CJBWU2Dk.js} +1 -1
  281. package/web-shell/assets/{railroadDiagram-O6MQD6OU-BhLy40X4.js → railroadDiagram-O6MQD6OU-Dl_An1O0.js} +1 -1
  282. package/web-shell/assets/{requirementDiagram-EFPCY7ZU-BVNXTgNP.js → requirementDiagram-EFPCY7ZU-Tw8FwaYU.js} +1 -1
  283. package/web-shell/assets/{sankeyDiagram-P5KCCOFB-BHgTytxV.js → sankeyDiagram-P5KCCOFB-BCPCkbR0.js} +1 -1
  284. package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-CgOsTvhu.js → sequenceDiagram-WJ2MYXX4-DDj7uFTG.js} +1 -1
  285. package/web-shell/assets/{sizeCapture-X5ZJPWSS-vCQBQ5FI.js → sizeCapture-X5ZJPWSS-B9eVSpKb.js} +1 -1
  286. package/web-shell/assets/{stateDiagram-HBIQ2CUA-DytMYRWJ.js → stateDiagram-HBIQ2CUA-Bf4BZP_V.js} +1 -1
  287. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-BPJi6Gre.js +1 -0
  288. package/web-shell/assets/{swimlanes-XN3QIQJK-CTGnifOP.js → swimlanes-XN3QIQJK-dyTWsZFj.js} +1 -1
  289. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-Bw4NRtJQ.js +8 -0
  290. package/web-shell/assets/{timeline-definition-24CTP7MA-DEJ1cbn2.js → timeline-definition-24CTP7MA-DVl1A4uL.js} +1 -1
  291. package/web-shell/assets/{vennDiagram-4TSXK5OY-K1e4SjS0.js → vennDiagram-4TSXK5OY-Boosxy9D.js} +1 -1
  292. package/web-shell/assets/{wardleyDiagram-VM6X3IG4-DEX-GkRp.js → wardleyDiagram-VM6X3IG4-C6wlY8jy.js} +1 -1
  293. package/web-shell/assets/{xychartDiagram-S5SC5T6Z-B6wYXreH.js → xychartDiagram-S5SC5T6Z-CkzZe3ro.js} +1 -1
  294. package/web-shell/index.html +1 -1
  295. package/web-shell/sw.js +1 -1
  296. package/web-shell/assets/channel-CLVrtVFX.js +0 -1
  297. package/web-shell/assets/classDiagram-DTDB5LWJ-Df2T70oB.js +0 -1
  298. package/web-shell/assets/classDiagram-v2-JRS7N3AN-Df2T70oB.js +0 -1
  299. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-CcjUJGng.js +0 -1
  300. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-Dt8NvQfX.js +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwen-code/qwen-code",
3
- "version": "0.26.2-preview.0",
3
+ "version": "0.26.2-preview.1",
4
4
  "description": "Qwen Code - AI-powered coding assistant",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,7 +43,7 @@
43
43
  "opentui-assets/@opentui/core-linux-x64"
44
44
  ],
45
45
  "config": {
46
- "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.26.2-preview.0"
46
+ "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.26.2-preview.1"
47
47
  },
48
48
  "dependencies": {},
49
49
  "optionalDependencies": {
@@ -51,7 +51,7 @@
51
51
  "@oven/bun-darwin-x64": "1.4.4",
52
52
  "@oven/bun-linux-aarch64": "1.4.4",
53
53
  "@oven/bun-linux-x64": "1.4.4",
54
- "@qwen-code/audio-capture": "0.26.2-preview.0",
54
+ "@qwen-code/audio-capture": "0.26.2-preview.1",
55
55
  "@lydell/node-pty": "1.2.0-beta.10",
56
56
  "@lydell/node-pty-darwin-arm64": "1.2.0-beta.10",
57
57
  "@lydell/node-pty-darwin-x64": "1.2.0-beta.10",
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/cpp-DddhVWhK.js","assets/c-BIGW1oBm.js","assets/html-BlS82ilI.js","assets/javascript-wDzz0qaB.js","assets/css-Z72CF80r.js","assets/lua-BaeVxFsk.js","assets/php-DoruYMF0.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/sql-DkvoVjww.js","assets/json-Cp-IABpG.js","assets/ruby-5x8vynjC.js","assets/typescript-BPQ3VLAy.js","assets/jsx-g9-lgVsj.js","assets/tsx-COt5Ahok.js","assets/shellscript-Yzrsuije.js","assets/yaml-Buea-lGh.js","assets/vue-CwSeJimo.js"])))=>i.map(i=>d[i]);
2
- var Yr=Object.defineProperty;var Zr=Object.getPrototypeOf;var Jr=Reflect.get;var Bn=e=>{throw TypeError(e)};var es=(e,t,n)=>t in e?Yr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var p=(e,t,n)=>es(e,typeof t!="symbol"?t+"":t,n),Ut=(e,t,n)=>t.has(e)||Bn("Cannot "+n);var D=(e,t,n)=>(Ut(e,t,"read from private field"),n?n.call(e):t.get(e)),we=(e,t,n)=>t.has(e)?Bn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),q=(e,t,n,i)=>(Ut(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),zt=(e,t,n)=>(Ut(e,t,"access private method"),n);var Gn=(e,t,n)=>Jr(Zr(e),n,t);import{aR as x,aS as an,aT as Bt,aU as ts,aV as ns,aW as pe,aX as z,ap as is,r as _e,j as rs}from"./index-B9uXebIR.js";const j=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function Tn(e,t,n,i){const r=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),s=[!1];let o=0,a="";for(const l of e.matchAll(r)){const{0:c,groups:{$skip:d}}=l;if(!d&&(!i||i===j.DEFAULT==!o)){n instanceof Function?a+=n(l,{context:o?j.CHAR_CLASS:j.DEFAULT,negated:s[s.length-1]}):a+=n;continue}c[0]==="["?(o++,s.push(c[1]==="^")):c==="]"&&o&&(o--,s.pop()),a+=c}return a}function Gi(e,t,n,i){Tn(e,t,n,i)}function ss(e,t,n=0,i){if(!new RegExp(t,"su").test(e))return null;const r=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");r.lastIndex=n;let s=0,o;for(;o=r.exec(e);){const{0:a,groups:{$skip:l}}=o;if(!l&&(!i||i===j.DEFAULT==!s))return o;a==="["?s++:a==="]"&&s&&s--,r.lastIndex==o.index&&r.lastIndex++}return null}function st(e,t,n){return!!ss(e,t,0,n)}function os(e,t){const n=/\\?./gsu;n.lastIndex=t;let i=e.length,r=0,s=1,o;for(;o=n.exec(e);){const[a]=o;if(a==="[")r++;else if(r)a==="]"&&r--;else if(a==="(")s++;else if(a===")"&&(s--,!s)){i=o.index;break}}return e.slice(t,i)}const St={c:()=>x(()=>import("./c-BIGW1oBm.js"),[]),cpp:()=>x(()=>import("./cpp-DddhVWhK.js"),__vite__mapDeps([0,1])),csharp:()=>x(()=>import("./csharp-B_TYUkTI.js"),[]),css:()=>x(()=>import("./css-Z72CF80r.js"),[]),diff:()=>x(()=>import("./diff-D97Zzqfu.js"),[]),dockerfile:()=>x(()=>import("./dockerfile-BcOcwvcX.js"),[]),go:()=>x(()=>import("./go-C27-OAKa.js"),[]),html:()=>x(()=>import("./html-BlS82ilI.js"),__vite__mapDeps([2,3,4])),ini:()=>x(()=>import("./ini-BEwlwnbL.js"),[]),java:()=>x(()=>import("./java-CylS5w8V.js"),[]),javascript:()=>x(()=>import("./javascript-wDzz0qaB.js"),[]),json:()=>x(()=>import("./json-Cp-IABpG.js"),[]),jsonc:()=>x(()=>import("./jsonc-Des-eS-w.js"),[]),jsx:()=>x(()=>import("./jsx-g9-lgVsj.js"),[]),kotlin:()=>x(()=>import("./kotlin-BdnUsdx6.js"),[]),lua:()=>x(()=>import("./lua-BaeVxFsk.js"),__vite__mapDeps([5,1])),makefile:()=>x(()=>import("./makefile-CHLpvVh8.js"),[]),markdown:()=>x(()=>import("./markdown-Cvjx9yec.js"),[]),"objective-cpp":()=>x(()=>import("./objective-cpp-CLxacb5B.js"),[]),php:()=>x(()=>import("./php-DoruYMF0.js"),__vite__mapDeps([6,2,3,4,7,8,9,10])),python:()=>x(()=>import("./python-B6aJPvgy.js"),[]),ruby:()=>x(()=>import("./ruby-5x8vynjC.js"),__vite__mapDeps([11,2,3,4,7,8,9,12,13,14,0,1,15,5,16])),rust:()=>x(()=>import("./rust-DPvrY3IQ.js"),[]),shellscript:()=>x(()=>import("./shellscript-Yzrsuije.js"),[]),sql:()=>x(()=>import("./sql-DkvoVjww.js"),[]),swift:()=>x(()=>import("./swift-C2oV4EkX.js"),[]),toml:()=>x(()=>import("./toml-vGWfd6FD.js"),[]),tsx:()=>x(()=>import("./tsx-COt5Ahok.js"),[]),typescript:()=>x(()=>import("./typescript-BPQ3VLAy.js"),[]),vue:()=>x(()=>import("./vue-CwSeJimo.js"),__vite__mapDeps([17,4,3,12,10,2])),xml:()=>x(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])),yaml:()=>x(()=>import("./yaml-Buea-lGh.js"),[]),zsh:()=>x(()=>import("./shellscript-Yzrsuije.js"),[])},ln={"github-light":()=>x(()=>import("./github-light-CBO01_j6.js"),[]),"github-dark":()=>x(()=>import("./github-dark-vbPMK5nw.js"),[])},Vi="diffs-container";(()=>{try{return!1}catch{return!1}})();const Wi="header-prefix",ji="header-filename-suffix",qi="header-metadata",Ki="header-custom",se={dark:"pierre-dark",light:"pierre-light"},as="data-theme-css",ls="data-unsafe-css",cs="data-diffs-scrollbar-measure",Xi="--diffs-scrollbar-gutter-measured",An={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8};({...An});const Vn={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},ds={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0},Ze=new Map,Gt=new Map,us=new Map,cn=new Set;function dn(e){for(const t of Array.isArray(e)?e:[e])if(!(t==="text"||t==="ansi")&&!cn.has(t))return!1;return!0}function Wn(e,t){e=Array.isArray(e)?e:[e];for(const n of e){if(cn.has(n.name))continue;let i=Ze.get(n.name);i==null&&(i=n,Ze.set(n.name,i));const r=i.data.find(s=>s.name===i.name||s.aliases?.includes(i.name)===!0);if(r==null)throw new Error(`attachResolvedLanguages: No returned grammar declares "${i.name}" as its name or an alias.`);t.loadLanguageSync(i.data);try{t.getLanguage(i.name)}catch{throw new Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${i.name}". Load the alias first or give the grammar a unique name.`)}cn.add(i.name)}}function Qi(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}var A=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Ct(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},i=typeof e=="string"?e:e.name;for(const[r,s]of Object.entries(t?.colorReplacements||{}))typeof s=="string"?n[r]=s:r===i&&Object.assign(n,s);return n}function me(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function fs(e){return Array.isArray(e)?e:[e]}async function Yi(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function At(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Zi(e){return e==="ansi"||At(e)}function Rt(e){return e==="none"}function Ji(e){return Rt(e)}const hs=/(\r?\n)/g;function _t(e,t=!1){if(e.length===0)return[["",0]];const n=e.split(hs);let i=0;const r=[];for(let s=0;s<n.length;s+=2){const o=t?n[s]+(n[s+1]||""):n[s];r.push([o,i]),i+=n[s].length,i+=n[s+1]?.length||0}return r}const jn={light:"#333333",dark:"#bbbbbb"},qn={light:"#fffffe",dark:"#1e1e1e"},Kn="__shiki_resolved";function Rn(e){if(e?.[Kn])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:i}=t;if(!n||!i){const a=t.settings?t.settings.find(l=>!l.name&&!l.scope):void 0;a?.settings?.foreground&&(i=a.settings.foreground),a?.settings?.background&&(n=a.settings.background),!i&&t?.colors?.["editor.foreground"]&&(i=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),i||(i=t.type==="light"?jn.light:jn.dark),n||(n=t.type==="light"?qn.light:qn.dark),t.fg=i,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let r=0;const s=new Map;function o(a){if(s.has(a))return s.get(a);r+=1;const l=`#${r.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${l}`]?o(a):(s.set(a,l),l)}t.settings=t.settings.map(a=>{const l=a.settings?.foreground&&!a.settings.foreground.startsWith("#"),c=a.settings?.background&&!a.settings.background.startsWith("#");if(!l&&!c)return a;const d={...a,settings:{...a.settings}};if(l){const u=o(a.settings.foreground);t.colorReplacements[u]=a.settings.foreground,d.settings.foreground=u}if(c){const u=o(a.settings.background);t.colorReplacements[u]=a.settings.background,d.settings.background=u}return d});for(const a of Object.keys(t.colors||{}))if((a==="editor.foreground"||a==="editor.background"||a.startsWith("terminal.ansi"))&&!t.colors[a]?.startsWith("#")){const l=o(t.colors[a]);t.colorReplacements[l]=t.colors[a],t.colors[a]=l}return Object.defineProperty(t,Kn,{enumerable:!1,writable:!1,value:!0}),t}async function er(e){return[...new Set((await Promise.all(e.filter(t=>!Zi(t)).map(async t=>await Yi(t).then(n=>Array.isArray(n)?n:[n])))).flat())]}async function tr(e){return(await Promise.all(e.map(async t=>Ji(t)?null:Rn(await Yi(t))))).filter(t=>!!t)}function nr(e,t){if(!t)return e;if(t[e]){const n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new A(`Circular alias \`${[...n].join(" -> ")} -> ${e}\``);n.add(e)}}return e}var gs=class extends ts{constructor(t,n,i,r={}){super(t);p(this,"_resolver");p(this,"_themes");p(this,"_langs");p(this,"_alias");p(this,"_resolvedThemes",new Map);p(this,"_resolvedGrammars",new Map);p(this,"_langMap",new Map);p(this,"_langGraph",new Map);p(this,"_textmateThemeCache",new WeakMap);p(this,"_loadedThemesCache",null);p(this,"_loadedLanguagesCache",null);this._resolver=t,this._themes=n,this._langs=i,this._alias=r,this._themes.map(s=>this.loadTheme(s)),this.loadLanguages(this._langs)}getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=Rn(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=ns.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){return t=nr(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(s=>s.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const i={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const r=this.loadGrammarWithConfiguration(t.scopeName,1,i);if(r.name=t.name,this._resolvedGrammars.set(t.name,r),t.aliases&&t.aliases.forEach(s=>{this._alias[s]=t.name}),this._loadedLanguagesCache=null,n.size)for(const s of n)this._syncRegistry?._grammars?.get(s.scopeName)?.dispose(),this._resolvedGrammars.delete(s.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(s.scopeName),this._syncRegistry?._grammars?.delete(s.scopeName),this.loadLanguage(this._langMap.get(s.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const r of t)this.resolveEmbeddedLanguages(r);const n=[...this._langGraph.entries()],i=n.filter(([r,s])=>!s);if(i.length){const r=n.filter(([s,o])=>o?(o.embeddedLanguages||o.embeddedLangs)?.some(a=>i.map(([l])=>l).includes(a)):!1).filter(s=>!i.includes(s));throw new A(`Missing languages ${i.map(([s])=>`\`${s}\``).join(", ")}, required by ${r.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[r,s]of n)this._resolver.addLanguage(s);for(const[r,s]of n)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const n=t.embeddedLanguages??t.embeddedLangs;if(n)for(const i of n)this._langGraph.set(i,this._langMap.get(i))}},ps=class{constructor(e,t){p(this,"_langs",new Map);p(this,"_scopeToLang",new Map);p(this,"_injections",new Map);p(this,"_onigLib");this._onigLib={createOnigScanner:n=>e.createScanner(n),createOnigString:n=>e.createString(n)},t.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).includes(e.scopeName)||this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let n=[];for(let i=1;i<=t.length;i++){const r=t.slice(0,i).join(".");n=[...n,...this._injections.get(r)||[]]}return n}};let Ve=0;function ms(e){Ve+=1,e.warnings!==!1&&Ve>=10&&Ve%10===0&&console.warn(`[Shiki] ${Ve} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new A("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(Rn),r=new gs(new ps(e.engine,n),i,n,e.langAlias);let s;function o(b){return nr(b,e.langAlias)}function a(b){w();const y=r.getGrammar(typeof b=="string"?b:b.name);if(!y)throw new A(`Language \`${b}\` not found, you may need to load it first`);return y}function l(b){if(b==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};w();const y=r.getTheme(b);if(!y)throw new A(`Theme \`${b}\` not found, you may need to load it first`);return y}function c(b){w();const y=l(b);return s!==b&&(r.setTheme(y),s=b),{theme:y,colorMap:r.getColorMap()}}function d(){return w(),r.getLoadedThemes()}function u(){return w(),r.getLoadedLanguages()}function f(...b){w(),r.loadLanguages(b.flat(1))}async function h(...b){return f(await er(b))}function g(...b){w();for(const y of b.flat(1))r.loadTheme(y)}async function v(...b){return w(),g(await tr(b))}function w(){if(t)throw new A("Shiki instance has been disposed")}function m(){t||(t=!0,r.dispose(),Ve-=1)}return{setTheme:c,getTheme:l,getLanguage:a,getLoadedThemes:d,getLoadedLanguages:u,resolveLangAlias:o,loadLanguage:h,loadLanguageSync:f,loadTheme:v,loadThemeSync:g,dispose:m,[Symbol.dispose]:m}}async function bs(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,i]=await Promise.all([tr(e.themes||[]),er(e.langs||[]),e.engine]);return ms({...e,themes:t,langs:n,engine:i})}const ir=new WeakMap;function Mt(e,t){ir.set(e,t)}function Je(e){return ir.get(e)}var It=class rr{constructor(...t){p(this,"_stacks",{});p(this,"lang");if(t.length===2){const[n,i]=t;this.lang=i,this._stacks=n}else{const[n,i,r]=t;this.lang=i,this._stacks={[r]:n}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new rr(Object.fromEntries(fs(n).map(i=>[i,an])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return vs(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function vs(e){const t=[],n=new Set;function i(r){if(n.has(r))return;n.add(r);const s=r?.nameScopesList?.scopeName;s&&t.push(s),r.parent&&i(r.parent)}return i(e),t}function ys(e,t){if(!(e instanceof It))throw new A("Invalid grammar state");return e.getInternalStack(t)}const ws=/,/,Ss=/ /;function sr(e,t,n={}){const{theme:i=e.getLoadedThemes()[0]}=n;if(At(e.resolveLangAlias(n.lang||"text"))||Rt(i))return _t(t).map(a=>[{content:a[0],offset:a[1]}]);const{theme:r,colorMap:s}=e.setTheme(i),o=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==o.name)throw new A(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(r.name))throw new A(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${r.name}"`)}return xs(t,o,r,s,n)}function Cs(...e){if(e.length===2)return Je(e[1]);const[t,n,i={}]=e,{lang:r="text",theme:s=t.getLoadedThemes()[0]}=i;if(At(r)||Rt(s))throw new A("Plain language does not have grammar state");if(r==="ansi")throw new A("ANSI language does not have grammar state");const{theme:o,colorMap:a}=t.setTheme(s),l=t.getLanguage(r);return new It(_n(n,l,o,a,i).stateStack,l.name,o.name)}function xs(e,t,n,i,r){const s=_n(e,t,n,i,r),o=new It(s.stateStack,t.name,n.name);return Mt(s.tokens,o),s.tokens}function _n(e,t,n,i,r){const s=Ct(n,r),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:a=500,includeExplanation:l=!1}=r,c=_t(e);let d=r.grammarState?ys(r.grammarState,n.name)??an:r.grammarContextCode!=null?_n(r.grammarContextCode,t,n,i,{...r,grammarState:void 0,grammarContextCode:void 0}).stateStack:an,u=[];const f=[];for(let h=0,g=c.length;h<g;h++){const[v,w]=c[h];if(v===""){u=[],f.push([]);continue}if(o>0&&v.length>=o){u=[],f.push([{content:v,offset:w,color:"",fontStyle:0}]);continue}let m,b,y;l&&l!=="tokenType"&&(m=t.tokenizeLine(v,d,a),b=m.tokens,y=0);const S=t.tokenizeLine2(v,d,a),k=S.tokens.length/2;for(let L=0;L<k;L++){const E=S.tokens[2*L],_=L+1<k?S.tokens[2*L+2]:v.length;if(E===_)continue;const R=S.tokens[2*L+1],B=me(i[Bt.getForeground(R)],s),ae=Bt.getFontStyle(R),$={content:v.substring(E,_),offset:w+E,color:B,fontStyle:ae};if(l==="tokenType")$.type=Bt.getTokenType(R);else if(l){const le=[];if(l!=="scopeName")for(const V of n.settings){let ce;switch(typeof V.scope){case"string":ce=V.scope.split(ws).map(ve=>ve.trim());break;case"object":ce=V.scope;break;default:continue}le.push({settings:V,selectors:ce.map(ve=>ve.split(Ss))})}$.explanation=[];let it=0;for(;E+it<_;){const V=b[y],ce=v.substring(V.startIndex,V.endIndex);it+=ce.length,$.explanation.push({content:ce,scopes:l==="scopeName"?ks(V.scopes):Es(le,V.scopes)}),y+=1}}u.push($)}f.push(u),u=[],d=S.ruleStack}return{tokens:f,stateStack:d}}function ks(e){return e.map(t=>({scopeName:t}))}function Es(e,t){const n=[];for(let i=0,r=t.length;i<r;i++){const s=t[i];n[i]={scopeName:s,themeMatches:Ts(e,s,t.slice(0,i))}}return n}function Xn(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function Ls(e,t,n){if(!Xn(e.at(-1),t))return!1;let i=e.length-2,r=n.length-1;for(;i>=0&&r>=0;)Xn(e[i],n[r])&&(i-=1),r-=1;return i===-1}function Ts(e,t,n){const i=[];for(const{selectors:r,settings:s}of e)for(const o of r)if(Ls(o,t,n)){i.push(s);break}return i}function or(e,t,n,i=sr){const r=Object.entries(n.themes).filter(c=>c[1]).map(c=>({color:c[0],theme:c[1]})),s=r.map(c=>{const d=i(e,t,{...n,theme:c.theme});return{tokens:d,state:Je(d),theme:typeof c.theme=="string"?c.theme:c.theme.name}}),o=As(...s.map(c=>c.tokens)),a=o[0].map((c,d)=>c.map((u,f)=>{const h={content:u.content,variants:{},offset:u.offset};return"includeExplanation"in n&&n.includeExplanation&&(h.explanation=u.explanation),o.forEach((g,v)=>{const{content:w,explanation:m,offset:b,...y}=g[d][f];h.variants[r[v].color]=y}),h})),l=s[0].state?new It(Object.fromEntries(s.map(c=>[c.theme,c.state?.getInternalStack(c.theme)])),s[0].state.lang):void 0;return l&&Mt(a,l),a}function As(...e){const t=e.map(()=>[]),n=e.length;for(let i=0;i<e[0].length;i++){const r=e.map(l=>l[i]),s=t.map(()=>[]);t.forEach((l,c)=>l.push(s[c]));const o=r.map(()=>0),a=r.map(l=>l[0]);for(;a.every(l=>l);){const l=Math.min(...a.map(c=>c.content.length));for(let c=0;c<n;c++){const d=a[c];d.content.length===l?(s[c].push(d),o[c]+=1,a[c]=r[c][o[c]]):(s[c].push({...d,content:d.content.slice(0,l)}),a[c]={...d,content:d.content.slice(l),offset:d.offset+l})}}}return t}const Qn=/\s+/g;function ar(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(Qn)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(Qn);for(const i of n)i&&!e.properties.class.includes(i)&&e.properties.class.push(i);return e}function Rs(e){const t=_t(e,!0).map(([r])=>r);function n(r){if(r===e.length)return{line:t.length-1,character:t.at(-1).length};let s=r,o=0;for(const a of t){if(s<a.length)break;s-=a.length,o++}return{line:o,character:s}}function i(r,s){let o=0;for(let a=0;a<r;a++)o+=t[a].length;return o+=s,o}return{lines:t,indexToPos:n,posToIndex:i}}const _s=["color","background-color"];function Ms(e,t){let n=0;const i=[];for(const r of t)r>n&&i.push({...e,content:e.content.slice(n,r),offset:e.offset+n}),n=r;return n<e.content.length&&i.push({...e,content:e.content.slice(n),offset:e.offset+n}),i}function Is(e,t){let n=0,i=e.length;for(;n<i;){const r=n+(i-n>>1);e[r]<=t?n=r+1:i=r}return n}function Ns(e,t){const n=[...t instanceof Set?t:new Set(t)].sort((i,r)=>i-r);return n.length?e.map(i=>i.flatMap(r=>{const s=r.offset+r.content.length,o=Is(n,r.offset);let a=o;for(;a<n.length&&n[a]<s;)a++;if(o===a)return r;const l=n.slice(o,a);for(let c=0;c<l.length;c++)l[c]-=r.offset;return Ms(r,l)})):e}function Ps(e,t,n,i,r="css-vars"){const s={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(d=>xt(e.variants[d])),a=new Set(o.flatMap(d=>Object.keys(d))),l={},c=(d,u)=>{const f=u==="color"?"":u==="background-color"?"-bg":`-${u}`;return n+t[d]+(u==="color"?"":f)};return o.forEach((d,u)=>{for(const f of a){const h=d[f]||"inherit";if(u===0&&i&&_s.includes(f))if(i==="light-dark()"&&o.length>1){const g=t.findIndex(b=>b==="light"),v=t.findIndex(b=>b==="dark");if(g===-1||v===-1)throw new A('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const w=o[g][f]||"inherit",m=o[v][f]||"inherit";l[f]=`light-dark(${w}, ${m})`,r==="css-vars"&&(l[c(u,f)]=h)}else l[f]=h;else r==="css-vars"&&(l[c(u,f)]=h)}}),s.htmlStyle=l,s}function xt(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&z.Italic&&(t["font-style"]="italic"),e.fontStyle&z.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&z.Underline&&n.push("underline"),e.fontStyle&z.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function un(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function Hs(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(o){if(typeof o=="number"){if(o<0||o>n.source.length)throw new A(`Invalid decoration offset: ${o}. Code length: ${n.source.length}`);return{...i.indexToPos(o),offset:o}}else{const a=i.lines[o.line];if(a===void 0)throw new A(`Invalid decoration position ${JSON.stringify(o)}. Lines length: ${i.lines.length}`);let l=o.character;if(l<0&&(l=a.length+l),l<0||l>a.length)throw new A(`Invalid decoration position ${JSON.stringify(o)}. Line ${o.line} length: ${a.length}`);return{...o,character:l,offset:i.posToIndex(o.line,l)}}};const i=Rs(n.source),s=(n.options.decorations||[]).map(o=>({...o,start:r(o.start),end:r(o.end)}));Fs(s),e.set(n.meta,{decorations:s,converter:i,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(this.options.decorations?.length)return Ns(n,t(this).decorations.flatMap(i=>[i.start.offset,i.end.offset]))},code(n){if(!this.options.decorations?.length)return;const i=t(this),r=[...n.children].filter(d=>d.type==="element"&&d.tagName==="span");if(r.length!==i.converter.lines.length)throw new A(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${i.converter.lines.length}). Failed to apply decorations.`);function s(d,u,f,h){const g=r[d];let v="",w=-1,m=-1;if(u===0&&(w=0),f===0&&(m=0),f===Number.POSITIVE_INFINITY&&(m=g.children.length),w===-1||m===-1)for(let y=0;y<g.children.length;y++)v+=lr(g.children[y]),w===-1&&v.length===u&&(w=y+1),m===-1&&v.length===f&&(m=y+1);if(w===-1)throw new A(`Failed to find start index for decoration ${JSON.stringify(h.start)}`);if(m===-1)throw new A(`Failed to find end index for decoration ${JSON.stringify(h.end)}`);const b=g.children.slice(w,m);if(!h.alwaysWrap&&b.length===g.children.length)a(g,h,"line");else if(!h.alwaysWrap&&b.length===1&&b[0].type==="element")a(b[0],h,"token");else{const y={type:"element",tagName:"span",properties:{},children:b};a(y,h,"wrapper"),g.children.splice(w,b.length,y)}}function o(d,u){r[d]=a(r[d],u,"line")}function a(d,u,f){const h=u.properties||{},g=u.transform||(v=>v);return d.tagName=u.tagName||"span",d.properties={...d.properties,...h,class:d.properties.class},u.properties?.class&&ar(d,u.properties.class),d=g(d,f)||d,d}const l=[],c=i.decorations.sort((d,u)=>u.start.offset-d.start.offset||d.end.offset-u.end.offset);for(const d of c){const{start:u,end:f}=d;if(u.line===f.line)s(u.line,u.character,f.character,d);else if(u.line<f.line){s(u.line,u.character,Number.POSITIVE_INFINITY,d);for(let h=u.line+1;h<f.line;h++)l.unshift(()=>o(h,d));s(f.line,0,f.character,d)}}l.forEach(d=>d())}}}function Fs(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new A(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let i=t+1;i<e.length;i++){const r=e[i],s=n.start.offset<=r.start.offset&&r.start.offset<n.end.offset,o=n.start.offset<r.end.offset&&r.end.offset<=n.end.offset,a=r.start.offset<=n.start.offset&&n.start.offset<r.end.offset,l=r.start.offset<n.end.offset&&n.end.offset<=r.end.offset;if(s||o||a||l){if(s&&o||a&&l||a&&n.start.offset===n.end.offset||o&&r.start.offset===r.end.offset)continue;throw new A(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(r.start)} intersect.`)}}}}function lr(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(lr).join(""):""}const Os=[Hs()];function kt(e){const t=$s(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...Os]}function $s(e){const t=[],n=[],i=[];for(const r of e)switch(r.enforce){case"pre":t.push(r);break;case"post":n.push(r);break;default:i.push(r)}return{pre:t,post:n,normal:i}}var xe=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Vt={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Ds(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const i=e.indexOf("m",n);if(i!==-1)return{sequence:e.substring(n+2,i).split(";"),startPosition:n,position:i+1}}return{position:e.length}}function Yn(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(i=>Number.parseInt(i));return n.length!==3||n.some(i=>Number.isNaN(i))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function Us(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const i=Number.parseInt(n);if(!Number.isNaN(i))if(i===0)t.push({type:"resetAll"});else if(i<=9)Vt[i]&&t.push({type:"setDecoration",value:Vt[i]});else if(i<=29){const r=Vt[i-20];r&&(t.push({type:"resetDecoration",value:r}),r==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(i<=37)t.push({type:"setForegroundColor",value:{type:"named",name:xe[i-30]}});else if(i===38){const r=Yn(e);r&&t.push({type:"setForegroundColor",value:r})}else if(i===39)t.push({type:"resetForegroundColor"});else if(i<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:xe[i-40]}});else if(i===48){const r=Yn(e);r&&t.push({type:"setBackgroundColor",value:r})}else i===49?t.push({type:"resetBackgroundColor"}):i===53?t.push({type:"setDecoration",value:"overline"}):i===55?t.push({type:"resetDecoration",value:"overline"}):i>=90&&i<=97?t.push({type:"setForegroundColor",value:{type:"named",name:xe[i-90+8]}}):i>=100&&i<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:xe[i-100+8]}})}return t}function zs(){let e=null,t=null,n=new Set;return{parse(i){const r=[];let s=0;do{const o=Ds(i,s),a=o.sequence?i.substring(s,o.startPosition):i.substring(s);if(a.length>0&&r.push({value:a,foreground:e,background:t,decorations:new Set(n)}),o.sequence){const l=Us(o.sequence);for(const c of l)c.type==="resetAll"?(e=null,t=null,n.clear()):c.type==="resetForegroundColor"?e=null:c.type==="resetBackgroundColor"?t=null:c.type==="resetDecoration"&&n.delete(c.value);for(const c of l)c.type==="setForegroundColor"?e=c.value:c.type==="setBackgroundColor"?t=c.value:c.type==="setDecoration"&&n.add(c.value)}s=o.position}while(s<i.length);return r}}}var Bs={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function Gs(e=Bs){function t(a){return e[a]}function n(a){return`#${a.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let i;function r(){if(i)return i;i=[];for(let c=0;c<xe.length;c++)i.push(t(xe[c]));let a=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let d=0;d<6;d++)for(let u=0;u<6;u++)i.push(n([a[c],a[d],a[u]]));let l=8;for(let c=0;c<24;c++,l+=10)i.push(n([l,l,l]));return i}function s(a){return r()[a]}function o(a){switch(a.type){case"named":return t(a.name);case"rgb":return n(a.rgb);case"table":return s(a.index)}}return{value:o}}const Vs=/#([0-9a-f]{3,8})/i,Ws=/var\((--[\w-]+-ansi-[\w-]+)\)/,js={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function qs(e,t,n){const i=Ct(e,n),r=_t(t),s=Gs(Object.fromEntries(xe.map(a=>{const l=`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`;return[a,e.colors?.[l]||js[a]]}))),o=zs();return r.map(a=>o.parse(a[0]).map(l=>{let c,d;l.decorations.has("reverse")?(c=l.background?s.value(l.background):e.bg,d=l.foreground?s.value(l.foreground):e.fg):(c=l.foreground?s.value(l.foreground):e.fg,d=l.background?s.value(l.background):void 0),c=me(c,i),d=me(d,i),l.decorations.has("dim")&&(c=Ks(c));let u=z.None;return l.decorations.has("bold")&&(u|=z.Bold),l.decorations.has("italic")&&(u|=z.Italic),l.decorations.has("underline")&&(u|=z.Underline),l.decorations.has("strikethrough")&&(u|=z.Strikethrough),{content:l.value,offset:a[1],color:c,bgColor:d,fontStyle:u}}))}function Ks(e){const t=e.match(Vs);if(t){const i=t[1];if(i.length===8){const r=Math.round(Number.parseInt(i.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${i.slice(0,6)}${r}`}else{if(i.length===6)return`#${i}80`;if(i.length===4){const r=i[0],s=i[1],o=i[2],a=i[3];return`#${r}${r}${s}${s}${o}${o}${Math.round(Number.parseInt(`${a}${a}`,16)/2).toString(16).padStart(2,"0")}`}else if(i.length===3){const r=i[0],s=i[1],o=i[2];return`#${r}${r}${s}${s}${o}${o}80`}}}const n=e.match(Ws);return n?`var(${n[1]}-dim)`:e}function fn(e,t,n={}){const i=e.resolveLangAlias(n.lang||"text"),{theme:r=e.getLoadedThemes()[0]}=n;if(!At(i)&&!Rt(r)&&i==="ansi"){const{theme:s}=e.setTheme(r);return qs(s,t,n)}return sr(e,t,n)}function Et(e,t,n){let i,r,s,o,a,l;if("themes"in n){const{defaultColor:c="light",cssVariablePrefix:d="--shiki-",colorsRendering:u="css-vars"}=n,f=Object.entries(n.themes).filter(m=>m[1]).map(m=>({color:m[0],theme:m[1]})).sort((m,b)=>m.color===c?-1:b.color===c?1:0);if(f.length===0)throw new A("`themes` option must not be empty");const h=or(e,t,n,fn);if(l=Je(h),c&&c!=="light-dark()"&&!f.some(m=>m.color===c))throw new A(`\`themes\` option must contain the defaultColor key \`${c}\``);const g=f.map(m=>e.getTheme(m.theme)),v=f.map(m=>m.color);s=h.map(m=>m.map(b=>Ps(b,v,d,c,u))),l&&Mt(s,l);const w=f.map(m=>Ct(m.theme,n));r=Zn(f,g,w,d,c,"fg",u),i=Zn(f,g,w,d,c,"bg",u),o=`shiki-themes ${g.map(m=>m.name).join(" ")}`,a=c?void 0:[r,i].join(";")}else if("theme"in n){const c=Ct(n.theme,n);s=fn(e,t,n);const d=e.getTheme(n.theme);i=me(d.bg,c),r=me(d.fg,c),o=d.name,l=Je(s)}else throw new A("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:r,bg:i,themeName:o,rootStyle:a,grammarState:l}}function Zn(e,t,n,i,r,s,o){return e.map((a,l)=>{const c=me(t[l][s],n[l])||"inherit",d=`${i+a.color}${s==="bg"?"-bg":""}:${c}`;if(l===0&&r){if(r==="light-dark()"&&e.length>1){const u=e.findIndex(h=>h.color==="light"),f=e.findIndex(h=>h.color==="dark");if(u===-1||f===-1)throw new A('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${me(t[u][s],n[u])||"inherit"}, ${me(t[f][s],n[f])||"inherit"});${d}`}return c}return o==="css-vars"?d:null}).filter(a=>!!a).join(";")}const cr=/^\s+$/,Xs=/^(\s*)(.*?)(\s*)$/;function Lt(e,t,n,i={meta:{},options:n,codeToHast:(r,s)=>Lt(e,r,s),codeToTokens:(r,s)=>Et(e,r,s)}){let r=t;for(const g of kt(n))r=g.preprocess?.call(i,r,n)||r;let{tokens:s,fg:o,bg:a,themeName:l,rootStyle:c,grammarState:d}=Et(e,r,n);const{mergeWhitespaces:u=!0,mergeSameStyleTokens:f=!1}=n;u===!0?s=Ys(s):u==="never"&&(s=Zs(s)),f&&(s=Js(s));const h={...i,get source(){return r}};for(const g of kt(n))s=g.tokens?.call(h,s)||s;return Qs(s,{...n,fg:o,bg:a,themeName:l,rootStyle:n.rootStyle===!1?!1:n.rootStyle??c},h,d)}function Qs(e,t,n,i=Je(e)){const r=kt(t),s=[],o={type:"root",children:[]},{structure:a="classic",tabindex:l="0"}=t,c={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?c.style=t.rootStyle:c.style=`background-color:${t.bg};color:${t.fg}`),l!==!1&&l!=null&&(c.tabindex=l.toString());for(const[v,w]of Object.entries(t.meta||{}))v.startsWith("_")||(c[v]=w);let d={type:"element",tagName:"pre",properties:c,children:[],data:t.data},u={type:"element",tagName:"code",properties:{},children:s};const f=[],h={...n,structure:a,addClassToHast:ar,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return d},get code(){return u},get lines(){return f}};if(e.forEach((v,w)=>{w&&(a==="inline"?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):a==="classic"&&s.push({type:"text",value:`
2
+ var Yr=Object.defineProperty;var Zr=Object.getPrototypeOf;var Jr=Reflect.get;var Bn=e=>{throw TypeError(e)};var es=(e,t,n)=>t in e?Yr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var p=(e,t,n)=>es(e,typeof t!="symbol"?t+"":t,n),Ut=(e,t,n)=>t.has(e)||Bn("Cannot "+n);var D=(e,t,n)=>(Ut(e,t,"read from private field"),n?n.call(e):t.get(e)),we=(e,t,n)=>t.has(e)?Bn("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),q=(e,t,n,i)=>(Ut(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),zt=(e,t,n)=>(Ut(e,t,"access private method"),n);var Gn=(e,t,n)=>Jr(Zr(e),n,t);import{aR as x,aS as an,aT as Bt,aU as ts,aV as ns,aW as pe,aX as z,ap as is,r as _e,j as rs}from"./index-DDmiUW3b.js";const j=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function Tn(e,t,n,i){const r=new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`,"gsu"),s=[!1];let o=0,a="";for(const l of e.matchAll(r)){const{0:c,groups:{$skip:d}}=l;if(!d&&(!i||i===j.DEFAULT==!o)){n instanceof Function?a+=n(l,{context:o?j.CHAR_CLASS:j.DEFAULT,negated:s[s.length-1]}):a+=n;continue}c[0]==="["?(o++,s.push(c[1]==="^")):c==="]"&&o&&(o--,s.pop()),a+=c}return a}function Gi(e,t,n,i){Tn(e,t,n,i)}function ss(e,t,n=0,i){if(!new RegExp(t,"su").test(e))return null;const r=new RegExp(`${t}|(?<$skip>\\\\?.)`,"gsu");r.lastIndex=n;let s=0,o;for(;o=r.exec(e);){const{0:a,groups:{$skip:l}}=o;if(!l&&(!i||i===j.DEFAULT==!s))return o;a==="["?s++:a==="]"&&s&&s--,r.lastIndex==o.index&&r.lastIndex++}return null}function st(e,t,n){return!!ss(e,t,0,n)}function os(e,t){const n=/\\?./gsu;n.lastIndex=t;let i=e.length,r=0,s=1,o;for(;o=n.exec(e);){const[a]=o;if(a==="[")r++;else if(r)a==="]"&&r--;else if(a==="(")s++;else if(a===")"&&(s--,!s)){i=o.index;break}}return e.slice(t,i)}const St={c:()=>x(()=>import("./c-BIGW1oBm.js"),[]),cpp:()=>x(()=>import("./cpp-DddhVWhK.js"),__vite__mapDeps([0,1])),csharp:()=>x(()=>import("./csharp-B_TYUkTI.js"),[]),css:()=>x(()=>import("./css-Z72CF80r.js"),[]),diff:()=>x(()=>import("./diff-D97Zzqfu.js"),[]),dockerfile:()=>x(()=>import("./dockerfile-BcOcwvcX.js"),[]),go:()=>x(()=>import("./go-C27-OAKa.js"),[]),html:()=>x(()=>import("./html-BlS82ilI.js"),__vite__mapDeps([2,3,4])),ini:()=>x(()=>import("./ini-BEwlwnbL.js"),[]),java:()=>x(()=>import("./java-CylS5w8V.js"),[]),javascript:()=>x(()=>import("./javascript-wDzz0qaB.js"),[]),json:()=>x(()=>import("./json-Cp-IABpG.js"),[]),jsonc:()=>x(()=>import("./jsonc-Des-eS-w.js"),[]),jsx:()=>x(()=>import("./jsx-g9-lgVsj.js"),[]),kotlin:()=>x(()=>import("./kotlin-BdnUsdx6.js"),[]),lua:()=>x(()=>import("./lua-BaeVxFsk.js"),__vite__mapDeps([5,1])),makefile:()=>x(()=>import("./makefile-CHLpvVh8.js"),[]),markdown:()=>x(()=>import("./markdown-Cvjx9yec.js"),[]),"objective-cpp":()=>x(()=>import("./objective-cpp-CLxacb5B.js"),[]),php:()=>x(()=>import("./php-DoruYMF0.js"),__vite__mapDeps([6,2,3,4,7,8,9,10])),python:()=>x(()=>import("./python-B6aJPvgy.js"),[]),ruby:()=>x(()=>import("./ruby-5x8vynjC.js"),__vite__mapDeps([11,2,3,4,7,8,9,12,13,14,0,1,15,5,16])),rust:()=>x(()=>import("./rust-DPvrY3IQ.js"),[]),shellscript:()=>x(()=>import("./shellscript-Yzrsuije.js"),[]),sql:()=>x(()=>import("./sql-DkvoVjww.js"),[]),swift:()=>x(()=>import("./swift-C2oV4EkX.js"),[]),toml:()=>x(()=>import("./toml-vGWfd6FD.js"),[]),tsx:()=>x(()=>import("./tsx-COt5Ahok.js"),[]),typescript:()=>x(()=>import("./typescript-BPQ3VLAy.js"),[]),vue:()=>x(()=>import("./vue-CwSeJimo.js"),__vite__mapDeps([17,4,3,12,10,2])),xml:()=>x(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])),yaml:()=>x(()=>import("./yaml-Buea-lGh.js"),[]),zsh:()=>x(()=>import("./shellscript-Yzrsuije.js"),[])},ln={"github-light":()=>x(()=>import("./github-light-CBO01_j6.js"),[]),"github-dark":()=>x(()=>import("./github-dark-vbPMK5nw.js"),[])},Vi="diffs-container";(()=>{try{return!1}catch{return!1}})();const Wi="header-prefix",ji="header-filename-suffix",qi="header-metadata",Ki="header-custom",se={dark:"pierre-dark",light:"pierre-light"},as="data-theme-css",ls="data-unsafe-css",cs="data-diffs-scrollbar-measure",Xi="--diffs-scrollbar-gutter-measured",An={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8};({...An});const Vn={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},ds={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0},Ze=new Map,Gt=new Map,us=new Map,cn=new Set;function dn(e){for(const t of Array.isArray(e)?e:[e])if(!(t==="text"||t==="ansi")&&!cn.has(t))return!1;return!0}function Wn(e,t){e=Array.isArray(e)?e:[e];for(const n of e){if(cn.has(n.name))continue;let i=Ze.get(n.name);i==null&&(i=n,Ze.set(n.name,i));const r=i.data.find(s=>s.name===i.name||s.aliases?.includes(i.name)===!0);if(r==null)throw new Error(`attachResolvedLanguages: No returned grammar declares "${i.name}" as its name or an alias.`);t.loadLanguageSync(i.data);try{t.getLanguage(i.name)}catch{throw new Error(`attachResolvedLanguages: "${r.name}" is already loaded without alias "${i.name}". Load the alias first or give the grammar a unique name.`)}cn.add(i.name)}}function Qi(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}var A=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function Ct(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},i=typeof e=="string"?e:e.name;for(const[r,s]of Object.entries(t?.colorReplacements||{}))typeof s=="string"?n[r]=s:r===i&&Object.assign(n,s);return n}function me(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function fs(e){return Array.isArray(e)?e:[e]}async function Yi(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function At(e){return!e||["plaintext","txt","text","plain"].includes(e)}function Zi(e){return e==="ansi"||At(e)}function Rt(e){return e==="none"}function Ji(e){return Rt(e)}const hs=/(\r?\n)/g;function _t(e,t=!1){if(e.length===0)return[["",0]];const n=e.split(hs);let i=0;const r=[];for(let s=0;s<n.length;s+=2){const o=t?n[s]+(n[s+1]||""):n[s];r.push([o,i]),i+=n[s].length,i+=n[s+1]?.length||0}return r}const jn={light:"#333333",dark:"#bbbbbb"},qn={light:"#fffffe",dark:"#1e1e1e"},Kn="__shiki_resolved";function Rn(e){if(e?.[Kn])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:i}=t;if(!n||!i){const a=t.settings?t.settings.find(l=>!l.name&&!l.scope):void 0;a?.settings?.foreground&&(i=a.settings.foreground),a?.settings?.background&&(n=a.settings.background),!i&&t?.colors?.["editor.foreground"]&&(i=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),i||(i=t.type==="light"?jn.light:jn.dark),n||(n=t.type==="light"?qn.light:qn.dark),t.fg=i,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let r=0;const s=new Map;function o(a){if(s.has(a))return s.get(a);r+=1;const l=`#${r.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${l}`]?o(a):(s.set(a,l),l)}t.settings=t.settings.map(a=>{const l=a.settings?.foreground&&!a.settings.foreground.startsWith("#"),c=a.settings?.background&&!a.settings.background.startsWith("#");if(!l&&!c)return a;const d={...a,settings:{...a.settings}};if(l){const u=o(a.settings.foreground);t.colorReplacements[u]=a.settings.foreground,d.settings.foreground=u}if(c){const u=o(a.settings.background);t.colorReplacements[u]=a.settings.background,d.settings.background=u}return d});for(const a of Object.keys(t.colors||{}))if((a==="editor.foreground"||a==="editor.background"||a.startsWith("terminal.ansi"))&&!t.colors[a]?.startsWith("#")){const l=o(t.colors[a]);t.colorReplacements[l]=t.colors[a],t.colors[a]=l}return Object.defineProperty(t,Kn,{enumerable:!1,writable:!1,value:!0}),t}async function er(e){return[...new Set((await Promise.all(e.filter(t=>!Zi(t)).map(async t=>await Yi(t).then(n=>Array.isArray(n)?n:[n])))).flat())]}async function tr(e){return(await Promise.all(e.map(async t=>Ji(t)?null:Rn(await Yi(t))))).filter(t=>!!t)}function nr(e,t){if(!t)return e;if(t[e]){const n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new A(`Circular alias \`${[...n].join(" -> ")} -> ${e}\``);n.add(e)}}return e}var gs=class extends ts{constructor(t,n,i,r={}){super(t);p(this,"_resolver");p(this,"_themes");p(this,"_langs");p(this,"_alias");p(this,"_resolvedThemes",new Map);p(this,"_resolvedGrammars",new Map);p(this,"_langMap",new Map);p(this,"_langGraph",new Map);p(this,"_textmateThemeCache",new WeakMap);p(this,"_loadedThemesCache",null);p(this,"_loadedLanguagesCache",null);this._resolver=t,this._themes=n,this._langs=i,this._alias=r,this._themes.map(s=>this.loadTheme(s)),this.loadLanguages(this._langs)}getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=Rn(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=ns.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){return t=nr(t,this._alias),this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(s=>s.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const i={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const r=this.loadGrammarWithConfiguration(t.scopeName,1,i);if(r.name=t.name,this._resolvedGrammars.set(t.name,r),t.aliases&&t.aliases.forEach(s=>{this._alias[s]=t.name}),this._loadedLanguagesCache=null,n.size)for(const s of n)this._syncRegistry?._grammars?.get(s.scopeName)?.dispose(),this._resolvedGrammars.delete(s.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(s.scopeName),this._syncRegistry?._grammars?.delete(s.scopeName),this.loadLanguage(this._langMap.get(s.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const r of t)this.resolveEmbeddedLanguages(r);const n=[...this._langGraph.entries()],i=n.filter(([r,s])=>!s);if(i.length){const r=n.filter(([s,o])=>o?(o.embeddedLanguages||o.embeddedLangs)?.some(a=>i.map(([l])=>l).includes(a)):!1).filter(s=>!i.includes(s));throw new A(`Missing languages ${i.map(([s])=>`\`${s}\``).join(", ")}, required by ${r.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[r,s]of n)this._resolver.addLanguage(s);for(const[r,s]of n)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){this._langMap.set(t.name,t),this._langGraph.set(t.name,t);const n=t.embeddedLanguages??t.embeddedLangs;if(n)for(const i of n)this._langGraph.set(i,this._langMap.get(i))}},ps=class{constructor(e,t){p(this,"_langs",new Map);p(this,"_scopeToLang",new Map);p(this,"_injections",new Map);p(this,"_onigLib");this._onigLib={createOnigScanner:n=>e.createScanner(n),createOnigString:n=>e.createString(n)},t.forEach(n=>this.addLanguage(n))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).includes(e.scopeName)||this._injections.get(t).push(e.scopeName)})}getInjections(e){const t=e.split(".");let n=[];for(let i=1;i<=t.length;i++){const r=t.slice(0,i).join(".");n=[...n,...this._injections.get(r)||[]]}return n}};let Ve=0;function ms(e){Ve+=1,e.warnings!==!1&&Ve>=10&&Ve%10===0&&console.warn(`[Shiki] ${Ve} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new A("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(Rn),r=new gs(new ps(e.engine,n),i,n,e.langAlias);let s;function o(b){return nr(b,e.langAlias)}function a(b){w();const y=r.getGrammar(typeof b=="string"?b:b.name);if(!y)throw new A(`Language \`${b}\` not found, you may need to load it first`);return y}function l(b){if(b==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};w();const y=r.getTheme(b);if(!y)throw new A(`Theme \`${b}\` not found, you may need to load it first`);return y}function c(b){w();const y=l(b);return s!==b&&(r.setTheme(y),s=b),{theme:y,colorMap:r.getColorMap()}}function d(){return w(),r.getLoadedThemes()}function u(){return w(),r.getLoadedLanguages()}function f(...b){w(),r.loadLanguages(b.flat(1))}async function h(...b){return f(await er(b))}function g(...b){w();for(const y of b.flat(1))r.loadTheme(y)}async function v(...b){return w(),g(await tr(b))}function w(){if(t)throw new A("Shiki instance has been disposed")}function m(){t||(t=!0,r.dispose(),Ve-=1)}return{setTheme:c,getTheme:l,getLanguage:a,getLoadedThemes:d,getLoadedLanguages:u,resolveLangAlias:o,loadLanguage:h,loadLanguageSync:f,loadTheme:v,loadThemeSync:g,dispose:m,[Symbol.dispose]:m}}async function bs(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,i]=await Promise.all([tr(e.themes||[]),er(e.langs||[]),e.engine]);return ms({...e,themes:t,langs:n,engine:i})}const ir=new WeakMap;function Mt(e,t){ir.set(e,t)}function Je(e){return ir.get(e)}var It=class rr{constructor(...t){p(this,"_stacks",{});p(this,"lang");if(t.length===2){const[n,i]=t;this.lang=i,this._stacks=n}else{const[n,i,r]=t;this.lang=i,this._stacks={[r]:n}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new rr(Object.fromEntries(fs(n).map(i=>[i,an])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return vs(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function vs(e){const t=[],n=new Set;function i(r){if(n.has(r))return;n.add(r);const s=r?.nameScopesList?.scopeName;s&&t.push(s),r.parent&&i(r.parent)}return i(e),t}function ys(e,t){if(!(e instanceof It))throw new A("Invalid grammar state");return e.getInternalStack(t)}const ws=/,/,Ss=/ /;function sr(e,t,n={}){const{theme:i=e.getLoadedThemes()[0]}=n;if(At(e.resolveLangAlias(n.lang||"text"))||Rt(i))return _t(t).map(a=>[{content:a[0],offset:a[1]}]);const{theme:r,colorMap:s}=e.setTheme(i),o=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==o.name)throw new A(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(r.name))throw new A(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${r.name}"`)}return xs(t,o,r,s,n)}function Cs(...e){if(e.length===2)return Je(e[1]);const[t,n,i={}]=e,{lang:r="text",theme:s=t.getLoadedThemes()[0]}=i;if(At(r)||Rt(s))throw new A("Plain language does not have grammar state");if(r==="ansi")throw new A("ANSI language does not have grammar state");const{theme:o,colorMap:a}=t.setTheme(s),l=t.getLanguage(r);return new It(_n(n,l,o,a,i).stateStack,l.name,o.name)}function xs(e,t,n,i,r){const s=_n(e,t,n,i,r),o=new It(s.stateStack,t.name,n.name);return Mt(s.tokens,o),s.tokens}function _n(e,t,n,i,r){const s=Ct(n,r),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:a=500,includeExplanation:l=!1}=r,c=_t(e);let d=r.grammarState?ys(r.grammarState,n.name)??an:r.grammarContextCode!=null?_n(r.grammarContextCode,t,n,i,{...r,grammarState:void 0,grammarContextCode:void 0}).stateStack:an,u=[];const f=[];for(let h=0,g=c.length;h<g;h++){const[v,w]=c[h];if(v===""){u=[],f.push([]);continue}if(o>0&&v.length>=o){u=[],f.push([{content:v,offset:w,color:"",fontStyle:0}]);continue}let m,b,y;l&&l!=="tokenType"&&(m=t.tokenizeLine(v,d,a),b=m.tokens,y=0);const S=t.tokenizeLine2(v,d,a),k=S.tokens.length/2;for(let L=0;L<k;L++){const E=S.tokens[2*L],_=L+1<k?S.tokens[2*L+2]:v.length;if(E===_)continue;const R=S.tokens[2*L+1],B=me(i[Bt.getForeground(R)],s),ae=Bt.getFontStyle(R),$={content:v.substring(E,_),offset:w+E,color:B,fontStyle:ae};if(l==="tokenType")$.type=Bt.getTokenType(R);else if(l){const le=[];if(l!=="scopeName")for(const V of n.settings){let ce;switch(typeof V.scope){case"string":ce=V.scope.split(ws).map(ve=>ve.trim());break;case"object":ce=V.scope;break;default:continue}le.push({settings:V,selectors:ce.map(ve=>ve.split(Ss))})}$.explanation=[];let it=0;for(;E+it<_;){const V=b[y],ce=v.substring(V.startIndex,V.endIndex);it+=ce.length,$.explanation.push({content:ce,scopes:l==="scopeName"?ks(V.scopes):Es(le,V.scopes)}),y+=1}}u.push($)}f.push(u),u=[],d=S.ruleStack}return{tokens:f,stateStack:d}}function ks(e){return e.map(t=>({scopeName:t}))}function Es(e,t){const n=[];for(let i=0,r=t.length;i<r;i++){const s=t[i];n[i]={scopeName:s,themeMatches:Ts(e,s,t.slice(0,i))}}return n}function Xn(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function Ls(e,t,n){if(!Xn(e.at(-1),t))return!1;let i=e.length-2,r=n.length-1;for(;i>=0&&r>=0;)Xn(e[i],n[r])&&(i-=1),r-=1;return i===-1}function Ts(e,t,n){const i=[];for(const{selectors:r,settings:s}of e)for(const o of r)if(Ls(o,t,n)){i.push(s);break}return i}function or(e,t,n,i=sr){const r=Object.entries(n.themes).filter(c=>c[1]).map(c=>({color:c[0],theme:c[1]})),s=r.map(c=>{const d=i(e,t,{...n,theme:c.theme});return{tokens:d,state:Je(d),theme:typeof c.theme=="string"?c.theme:c.theme.name}}),o=As(...s.map(c=>c.tokens)),a=o[0].map((c,d)=>c.map((u,f)=>{const h={content:u.content,variants:{},offset:u.offset};return"includeExplanation"in n&&n.includeExplanation&&(h.explanation=u.explanation),o.forEach((g,v)=>{const{content:w,explanation:m,offset:b,...y}=g[d][f];h.variants[r[v].color]=y}),h})),l=s[0].state?new It(Object.fromEntries(s.map(c=>[c.theme,c.state?.getInternalStack(c.theme)])),s[0].state.lang):void 0;return l&&Mt(a,l),a}function As(...e){const t=e.map(()=>[]),n=e.length;for(let i=0;i<e[0].length;i++){const r=e.map(l=>l[i]),s=t.map(()=>[]);t.forEach((l,c)=>l.push(s[c]));const o=r.map(()=>0),a=r.map(l=>l[0]);for(;a.every(l=>l);){const l=Math.min(...a.map(c=>c.content.length));for(let c=0;c<n;c++){const d=a[c];d.content.length===l?(s[c].push(d),o[c]+=1,a[c]=r[c][o[c]]):(s[c].push({...d,content:d.content.slice(0,l)}),a[c]={...d,content:d.content.slice(l),offset:d.offset+l})}}}return t}const Qn=/\s+/g;function ar(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(Qn)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(Qn);for(const i of n)i&&!e.properties.class.includes(i)&&e.properties.class.push(i);return e}function Rs(e){const t=_t(e,!0).map(([r])=>r);function n(r){if(r===e.length)return{line:t.length-1,character:t.at(-1).length};let s=r,o=0;for(const a of t){if(s<a.length)break;s-=a.length,o++}return{line:o,character:s}}function i(r,s){let o=0;for(let a=0;a<r;a++)o+=t[a].length;return o+=s,o}return{lines:t,indexToPos:n,posToIndex:i}}const _s=["color","background-color"];function Ms(e,t){let n=0;const i=[];for(const r of t)r>n&&i.push({...e,content:e.content.slice(n,r),offset:e.offset+n}),n=r;return n<e.content.length&&i.push({...e,content:e.content.slice(n),offset:e.offset+n}),i}function Is(e,t){let n=0,i=e.length;for(;n<i;){const r=n+(i-n>>1);e[r]<=t?n=r+1:i=r}return n}function Ns(e,t){const n=[...t instanceof Set?t:new Set(t)].sort((i,r)=>i-r);return n.length?e.map(i=>i.flatMap(r=>{const s=r.offset+r.content.length,o=Is(n,r.offset);let a=o;for(;a<n.length&&n[a]<s;)a++;if(o===a)return r;const l=n.slice(o,a);for(let c=0;c<l.length;c++)l[c]-=r.offset;return Ms(r,l)})):e}function Ps(e,t,n,i,r="css-vars"){const s={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(d=>xt(e.variants[d])),a=new Set(o.flatMap(d=>Object.keys(d))),l={},c=(d,u)=>{const f=u==="color"?"":u==="background-color"?"-bg":`-${u}`;return n+t[d]+(u==="color"?"":f)};return o.forEach((d,u)=>{for(const f of a){const h=d[f]||"inherit";if(u===0&&i&&_s.includes(f))if(i==="light-dark()"&&o.length>1){const g=t.findIndex(b=>b==="light"),v=t.findIndex(b=>b==="dark");if(g===-1||v===-1)throw new A('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const w=o[g][f]||"inherit",m=o[v][f]||"inherit";l[f]=`light-dark(${w}, ${m})`,r==="css-vars"&&(l[c(u,f)]=h)}else l[f]=h;else r==="css-vars"&&(l[c(u,f)]=h)}}),s.htmlStyle=l,s}function xt(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&z.Italic&&(t["font-style"]="italic"),e.fontStyle&z.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&z.Underline&&n.push("underline"),e.fontStyle&z.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function un(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function Hs(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(o){if(typeof o=="number"){if(o<0||o>n.source.length)throw new A(`Invalid decoration offset: ${o}. Code length: ${n.source.length}`);return{...i.indexToPos(o),offset:o}}else{const a=i.lines[o.line];if(a===void 0)throw new A(`Invalid decoration position ${JSON.stringify(o)}. Lines length: ${i.lines.length}`);let l=o.character;if(l<0&&(l=a.length+l),l<0||l>a.length)throw new A(`Invalid decoration position ${JSON.stringify(o)}. Line ${o.line} length: ${a.length}`);return{...o,character:l,offset:i.posToIndex(o.line,l)}}};const i=Rs(n.source),s=(n.options.decorations||[]).map(o=>({...o,start:r(o.start),end:r(o.end)}));Fs(s),e.set(n.meta,{decorations:s,converter:i,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(this.options.decorations?.length)return Ns(n,t(this).decorations.flatMap(i=>[i.start.offset,i.end.offset]))},code(n){if(!this.options.decorations?.length)return;const i=t(this),r=[...n.children].filter(d=>d.type==="element"&&d.tagName==="span");if(r.length!==i.converter.lines.length)throw new A(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${i.converter.lines.length}). Failed to apply decorations.`);function s(d,u,f,h){const g=r[d];let v="",w=-1,m=-1;if(u===0&&(w=0),f===0&&(m=0),f===Number.POSITIVE_INFINITY&&(m=g.children.length),w===-1||m===-1)for(let y=0;y<g.children.length;y++)v+=lr(g.children[y]),w===-1&&v.length===u&&(w=y+1),m===-1&&v.length===f&&(m=y+1);if(w===-1)throw new A(`Failed to find start index for decoration ${JSON.stringify(h.start)}`);if(m===-1)throw new A(`Failed to find end index for decoration ${JSON.stringify(h.end)}`);const b=g.children.slice(w,m);if(!h.alwaysWrap&&b.length===g.children.length)a(g,h,"line");else if(!h.alwaysWrap&&b.length===1&&b[0].type==="element")a(b[0],h,"token");else{const y={type:"element",tagName:"span",properties:{},children:b};a(y,h,"wrapper"),g.children.splice(w,b.length,y)}}function o(d,u){r[d]=a(r[d],u,"line")}function a(d,u,f){const h=u.properties||{},g=u.transform||(v=>v);return d.tagName=u.tagName||"span",d.properties={...d.properties,...h,class:d.properties.class},u.properties?.class&&ar(d,u.properties.class),d=g(d,f)||d,d}const l=[],c=i.decorations.sort((d,u)=>u.start.offset-d.start.offset||d.end.offset-u.end.offset);for(const d of c){const{start:u,end:f}=d;if(u.line===f.line)s(u.line,u.character,f.character,d);else if(u.line<f.line){s(u.line,u.character,Number.POSITIVE_INFINITY,d);for(let h=u.line+1;h<f.line;h++)l.unshift(()=>o(h,d));s(f.line,0,f.character,d)}}l.forEach(d=>d())}}}function Fs(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new A(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let i=t+1;i<e.length;i++){const r=e[i],s=n.start.offset<=r.start.offset&&r.start.offset<n.end.offset,o=n.start.offset<r.end.offset&&r.end.offset<=n.end.offset,a=r.start.offset<=n.start.offset&&n.start.offset<r.end.offset,l=r.start.offset<n.end.offset&&n.end.offset<=r.end.offset;if(s||o||a||l){if(s&&o||a&&l||a&&n.start.offset===n.end.offset||o&&r.start.offset===r.end.offset)continue;throw new A(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(r.start)} intersect.`)}}}}function lr(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(lr).join(""):""}const Os=[Hs()];function kt(e){const t=$s(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...Os]}function $s(e){const t=[],n=[],i=[];for(const r of e)switch(r.enforce){case"pre":t.push(r);break;case"post":n.push(r);break;default:i.push(r)}return{pre:t,post:n,normal:i}}var xe=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Vt={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Ds(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const i=e.indexOf("m",n);if(i!==-1)return{sequence:e.substring(n+2,i).split(";"),startPosition:n,position:i+1}}return{position:e.length}}function Yn(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(i=>Number.parseInt(i));return n.length!==3||n.some(i=>Number.isNaN(i))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function Us(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const i=Number.parseInt(n);if(!Number.isNaN(i))if(i===0)t.push({type:"resetAll"});else if(i<=9)Vt[i]&&t.push({type:"setDecoration",value:Vt[i]});else if(i<=29){const r=Vt[i-20];r&&(t.push({type:"resetDecoration",value:r}),r==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(i<=37)t.push({type:"setForegroundColor",value:{type:"named",name:xe[i-30]}});else if(i===38){const r=Yn(e);r&&t.push({type:"setForegroundColor",value:r})}else if(i===39)t.push({type:"resetForegroundColor"});else if(i<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:xe[i-40]}});else if(i===48){const r=Yn(e);r&&t.push({type:"setBackgroundColor",value:r})}else i===49?t.push({type:"resetBackgroundColor"}):i===53?t.push({type:"setDecoration",value:"overline"}):i===55?t.push({type:"resetDecoration",value:"overline"}):i>=90&&i<=97?t.push({type:"setForegroundColor",value:{type:"named",name:xe[i-90+8]}}):i>=100&&i<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:xe[i-100+8]}})}return t}function zs(){let e=null,t=null,n=new Set;return{parse(i){const r=[];let s=0;do{const o=Ds(i,s),a=o.sequence?i.substring(s,o.startPosition):i.substring(s);if(a.length>0&&r.push({value:a,foreground:e,background:t,decorations:new Set(n)}),o.sequence){const l=Us(o.sequence);for(const c of l)c.type==="resetAll"?(e=null,t=null,n.clear()):c.type==="resetForegroundColor"?e=null:c.type==="resetBackgroundColor"?t=null:c.type==="resetDecoration"&&n.delete(c.value);for(const c of l)c.type==="setForegroundColor"?e=c.value:c.type==="setBackgroundColor"?t=c.value:c.type==="setDecoration"&&n.add(c.value)}s=o.position}while(s<i.length);return r}}}var Bs={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function Gs(e=Bs){function t(a){return e[a]}function n(a){return`#${a.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let i;function r(){if(i)return i;i=[];for(let c=0;c<xe.length;c++)i.push(t(xe[c]));let a=[0,95,135,175,215,255];for(let c=0;c<6;c++)for(let d=0;d<6;d++)for(let u=0;u<6;u++)i.push(n([a[c],a[d],a[u]]));let l=8;for(let c=0;c<24;c++,l+=10)i.push(n([l,l,l]));return i}function s(a){return r()[a]}function o(a){switch(a.type){case"named":return t(a.name);case"rgb":return n(a.rgb);case"table":return s(a.index)}}return{value:o}}const Vs=/#([0-9a-f]{3,8})/i,Ws=/var\((--[\w-]+-ansi-[\w-]+)\)/,js={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function qs(e,t,n){const i=Ct(e,n),r=_t(t),s=Gs(Object.fromEntries(xe.map(a=>{const l=`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`;return[a,e.colors?.[l]||js[a]]}))),o=zs();return r.map(a=>o.parse(a[0]).map(l=>{let c,d;l.decorations.has("reverse")?(c=l.background?s.value(l.background):e.bg,d=l.foreground?s.value(l.foreground):e.fg):(c=l.foreground?s.value(l.foreground):e.fg,d=l.background?s.value(l.background):void 0),c=me(c,i),d=me(d,i),l.decorations.has("dim")&&(c=Ks(c));let u=z.None;return l.decorations.has("bold")&&(u|=z.Bold),l.decorations.has("italic")&&(u|=z.Italic),l.decorations.has("underline")&&(u|=z.Underline),l.decorations.has("strikethrough")&&(u|=z.Strikethrough),{content:l.value,offset:a[1],color:c,bgColor:d,fontStyle:u}}))}function Ks(e){const t=e.match(Vs);if(t){const i=t[1];if(i.length===8){const r=Math.round(Number.parseInt(i.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${i.slice(0,6)}${r}`}else{if(i.length===6)return`#${i}80`;if(i.length===4){const r=i[0],s=i[1],o=i[2],a=i[3];return`#${r}${r}${s}${s}${o}${o}${Math.round(Number.parseInt(`${a}${a}`,16)/2).toString(16).padStart(2,"0")}`}else if(i.length===3){const r=i[0],s=i[1],o=i[2];return`#${r}${r}${s}${s}${o}${o}80`}}}const n=e.match(Ws);return n?`var(${n[1]}-dim)`:e}function fn(e,t,n={}){const i=e.resolveLangAlias(n.lang||"text"),{theme:r=e.getLoadedThemes()[0]}=n;if(!At(i)&&!Rt(r)&&i==="ansi"){const{theme:s}=e.setTheme(r);return qs(s,t,n)}return sr(e,t,n)}function Et(e,t,n){let i,r,s,o,a,l;if("themes"in n){const{defaultColor:c="light",cssVariablePrefix:d="--shiki-",colorsRendering:u="css-vars"}=n,f=Object.entries(n.themes).filter(m=>m[1]).map(m=>({color:m[0],theme:m[1]})).sort((m,b)=>m.color===c?-1:b.color===c?1:0);if(f.length===0)throw new A("`themes` option must not be empty");const h=or(e,t,n,fn);if(l=Je(h),c&&c!=="light-dark()"&&!f.some(m=>m.color===c))throw new A(`\`themes\` option must contain the defaultColor key \`${c}\``);const g=f.map(m=>e.getTheme(m.theme)),v=f.map(m=>m.color);s=h.map(m=>m.map(b=>Ps(b,v,d,c,u))),l&&Mt(s,l);const w=f.map(m=>Ct(m.theme,n));r=Zn(f,g,w,d,c,"fg",u),i=Zn(f,g,w,d,c,"bg",u),o=`shiki-themes ${g.map(m=>m.name).join(" ")}`,a=c?void 0:[r,i].join(";")}else if("theme"in n){const c=Ct(n.theme,n);s=fn(e,t,n);const d=e.getTheme(n.theme);i=me(d.bg,c),r=me(d.fg,c),o=d.name,l=Je(s)}else throw new A("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:r,bg:i,themeName:o,rootStyle:a,grammarState:l}}function Zn(e,t,n,i,r,s,o){return e.map((a,l)=>{const c=me(t[l][s],n[l])||"inherit",d=`${i+a.color}${s==="bg"?"-bg":""}:${c}`;if(l===0&&r){if(r==="light-dark()"&&e.length>1){const u=e.findIndex(h=>h.color==="light"),f=e.findIndex(h=>h.color==="dark");if(u===-1||f===-1)throw new A('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${me(t[u][s],n[u])||"inherit"}, ${me(t[f][s],n[f])||"inherit"});${d}`}return c}return o==="css-vars"?d:null}).filter(a=>!!a).join(";")}const cr=/^\s+$/,Xs=/^(\s*)(.*?)(\s*)$/;function Lt(e,t,n,i={meta:{},options:n,codeToHast:(r,s)=>Lt(e,r,s),codeToTokens:(r,s)=>Et(e,r,s)}){let r=t;for(const g of kt(n))r=g.preprocess?.call(i,r,n)||r;let{tokens:s,fg:o,bg:a,themeName:l,rootStyle:c,grammarState:d}=Et(e,r,n);const{mergeWhitespaces:u=!0,mergeSameStyleTokens:f=!1}=n;u===!0?s=Ys(s):u==="never"&&(s=Zs(s)),f&&(s=Js(s));const h={...i,get source(){return r}};for(const g of kt(n))s=g.tokens?.call(h,s)||s;return Qs(s,{...n,fg:o,bg:a,themeName:l,rootStyle:n.rootStyle===!1?!1:n.rootStyle??c},h,d)}function Qs(e,t,n,i=Je(e)){const r=kt(t),s=[],o={type:"root",children:[]},{structure:a="classic",tabindex:l="0"}=t,c={class:`shiki ${t.themeName||""}`};t.rootStyle!==!1&&(t.rootStyle!=null?c.style=t.rootStyle:c.style=`background-color:${t.bg};color:${t.fg}`),l!==!1&&l!=null&&(c.tabindex=l.toString());for(const[v,w]of Object.entries(t.meta||{}))v.startsWith("_")||(c[v]=w);let d={type:"element",tagName:"pre",properties:c,children:[],data:t.data},u={type:"element",tagName:"code",properties:{},children:s};const f=[],h={...n,structure:a,addClassToHast:ar,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return d},get code(){return u},get lines(){return f}};if(e.forEach((v,w)=>{w&&(a==="inline"?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):a==="classic"&&s.push({type:"text",value:`
3
3
  `}));let m={type:"element",tagName:"span",properties:{class:"line"},children:[]},b=0;for(const y of v){let S={type:"element",tagName:"span",properties:{...y.htmlAttrs},children:[{type:"text",value:y.content}]};const k=un(y.htmlStyle||xt(y));k&&(S.properties.style=k);for(const L of r)S=L?.span?.call(h,S,w+1,b,m,y)||S;a==="inline"?o.children.push(S):a==="classic"&&m.children.push(S),b+=y.content.length}if(a==="classic"){for(const y of r)m=y?.line?.call(h,m,w+1)||m;f.push(m),s.push(m)}else a==="inline"&&f.push(m)}),a==="classic"){for(const v of r)u=v?.code?.call(h,u)||u;d.children.push(u);for(const v of r)d=v?.pre?.call(h,d)||d;o.children.push(d)}else if(a==="inline"){const v=[];let w={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const b of o.children)b.type==="element"&&b.tagName==="br"?(v.push(w),w={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(b.type==="element"||b.type==="text")&&w.children.push(b);v.push(w);let m={type:"element",tagName:"code",properties:{},children:v};for(const b of r)m=b?.code?.call(h,m)||m;o.children=[];for(let b=0;b<m.children.length;b++){b>0&&o.children.push({type:"element",tagName:"br",properties:{},children:[]});const y=m.children[b];y.type==="element"&&o.children.push(...y.children)}}let g=o;for(const v of r)g=v?.root?.call(h,g)||g;return i&&Mt(g,i),g}function Ys(e){return e.map(t=>{const n=[];let i="",r;return t.forEach((s,o)=>{const a=!(s.fontStyle&&(s.fontStyle&z.Underline||s.fontStyle&z.Strikethrough));a&&cr.test(s.content)&&t[o+1]?(r===void 0&&(r=s.offset),i+=s.content):i?(a?n.push({...s,offset:r,content:i+s.content}):n.push({content:i,offset:r},s),r=void 0,i=""):n.push(s)}),n})}function Zs(e){return e.map(t=>t.flatMap(n=>{if(cr.test(n.content))return n;const i=n.content.match(Xs);if(!i)return n;const[,r,s,o]=i;if(!r&&!o)return n;const a=[{...n,offset:n.offset+r.length,content:s}];return r&&a.unshift({content:r,offset:n.offset}),o&&a.push({content:o,offset:n.offset+r.length+s.length}),a}))}function Js(e){return e.map(t=>{const n=[];for(const i of t){if(n.length===0){n.push({...i});continue}const r=n.at(-1),s=un(r.htmlStyle||xt(r)),o=un(i.htmlStyle||xt(i)),a=r.fontStyle&&(r.fontStyle&z.Underline||r.fontStyle&z.Strikethrough),l=i.fontStyle&&(i.fontStyle&z.Underline||i.fontStyle&z.Strikethrough);!a&&!l&&s===o?r.content+=i.content:n.push({...i})}return n})}const eo=pe;function to(e,t,n){const i={meta:{},options:n,codeToHast:(s,o)=>Lt(e,s,o),codeToTokens:(s,o)=>Et(e,s,o)};let r=eo(Lt(e,t,n,i));for(const s of kt(n))r=s.postprocess?.call(i,r,n)||r;return r}async function no(e){const t=await bs(e);return{getLastGrammarState:(...n)=>Cs(t,...n),codeToTokensBase:(n,i)=>fn(t,n,i),codeToTokensWithThemes:(n,i)=>or(t,n,i),codeToTokens:(n,i)=>Et(t,n,i),codeToHast:(n,i)=>Lt(t,n,i),codeToHtml:(n,i)=>to(t,n,i),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function io(e){const t=e.langs,n=e.themes,i=e.engine;async function r(s){function o(u){if(typeof u=="string"){if(u=s.langAlias?.[u]||u,Zi(u))return[];const f=t[u];if(!f)throw new A(`Language \`${u}\` is not included in this bundle. You may want to load it from external source.`);return f}return u}function a(u){if(Ji(u))return"none";if(typeof u=="string"){const f=n[u];if(!f)throw new A(`Theme \`${u}\` is not included in this bundle. You may want to load it from external source.`);return f}return u}const l=(s.themes??[]).map(u=>a(u)),c=(s.langs??[]).map(u=>o(u)),d=await no({engine:s.engine??i(),...s,themes:l,langs:c});return{...d,loadLanguage(...u){return d.loadLanguage(...u.map(o))},loadTheme(...u){return d.loadTheme(...u.map(a))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return r}const Jn=4294967295;function ro(e){return!e.sticky&&!e.rawOptions?.strategy}function ei(e,t){return{index:e,captureIndices:t.map(n=>n==null?{start:Jn,end:Jn,length:0}:{start:n[0],end:n[1],length:n[1]-n[0]})}}var so=class{constructor(e,t={}){p(this,"patterns");p(this,"options");p(this,"regexps");p(this,"lastSearches");this.patterns=e,this.options=t;const{forgiving:n=!1,cache:i,regexConstructor:r}=t;if(!r)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(s=>{if(typeof s!="string")return s;const o=i?.get(s);if(o){if(o instanceof RegExp)return o;if(n)return null;throw o}try{const a=r(s);return i?.set(s,a),a}catch(a){if(i?.set(s,a),n)return null;throw a}}),this.lastSearches=this.regexps.map(s=>s&&ro(s)?{strId:0,searchedFrom:0,matchIndex:-1,indices:null}:null)}findNextMatchSync(e,t,n){const i=typeof e=="string"?e:e.content,r=typeof e=="string"?0:e.id||0;let s=-1,o=0,a=null;for(let l=0;l<this.regexps.length;l++){const c=this.regexps[l];if(c)try{const d=r?this.lastSearches[l]:null;let u,f;if(d&&d.strId===r&&d.searchedFrom<=t&&(d.matchIndex===-1||d.matchIndex>=t))u=d.matchIndex,f=d.indices;else{c.lastIndex=t;const h=c.exec(i);u=h?h.index:-1,f=h?h.indices:null,d&&(d.strId=r,d.searchedFrom=t,d.matchIndex=u,d.indices=f)}if(u===-1)continue;if(u===t)return ei(l,f);(s===-1||u<o)&&(s=l,o=u,a=f)}catch(d){if(this.options.forgiving)continue;throw d}}return s===-1?null:ei(s,a)}};let oo=0;function ao(e){return{content:e,id:++oo}}function Ue(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function lo(e,t,n){return e.has(t)||e.set(t,n),e.get(t)}const Mn=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),F=String.raw;function ze(e,t){if(e==null)throw new Error(t??"Value expected");return e}const dr=F`\[\^?`,ur=`c.? | C(?:-.?)?|${F`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${F`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${F`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${F`o\{[^\}]*\}?`}|${F`\d{1,3}`}`,In=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,ot=new RegExp(F`
4
4
  \\ (?:
5
5
  ${ur}