@qwen-code/qwen-code 0.25.4-preview.0 → 0.25.4-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 (306) hide show
  1. package/bundled/browser-use/runtime/native-host.js +0 -0
  2. package/bundled/browser-use/runtime/node_modules/playwright-core/bin/reinstall_chrome_beta_linux.sh +0 -0
  3. package/bundled/browser-use/runtime/node_modules/playwright-core/bin/reinstall_chrome_beta_mac.sh +0 -0
  4. package/bundled/browser-use/runtime/node_modules/playwright-core/bin/reinstall_chrome_stable_linux.sh +0 -0
  5. package/bundled/browser-use/runtime/node_modules/playwright-core/bin/reinstall_chrome_stable_mac.sh +0 -0
  6. package/bundled/browser-use/runtime/node_modules/playwright-core/bin/reinstall_msedge_beta_linux.sh +0 -0
  7. package/bundled/browser-use/runtime/node_modules/playwright-core/bin/reinstall_msedge_beta_mac.sh +0 -0
  8. package/bundled/browser-use/runtime/node_modules/playwright-core/bin/reinstall_msedge_dev_linux.sh +0 -0
  9. package/bundled/browser-use/runtime/node_modules/playwright-core/bin/reinstall_msedge_dev_mac.sh +0 -0
  10. package/bundled/browser-use/runtime/node_modules/playwright-core/bin/reinstall_msedge_stable_linux.sh +0 -0
  11. package/bundled/browser-use/runtime/node_modules/playwright-core/bin/reinstall_msedge_stable_mac.sh +0 -0
  12. package/bundled/browser-use/runtime/node_modules/playwright-core/cli.js +0 -0
  13. package/bundled/browser-use/runtime/node_modules/playwright-core/lib/webp_codec.wasm +0 -0
  14. package/bundled/browser-use/runtime/node_modules/playwright-core/lib/xdg-open +0 -0
  15. package/bundled/browser-use/runtime/scripts/native-host-setup.js +0 -0
  16. package/chunks/{MaxSizedBox-M27H235V.js → MaxSizedBox-E4RKSA7W.js} +1 -1
  17. package/chunks/{StandaloneSessionPicker-LWWDDYOW.js → StandaloneSessionPicker-2D3UKLVS.js} +1 -1
  18. package/chunks/{acp-subagent-executor-NUV52JVS.js → acp-subagent-executor-UQYUN6AB.js} +1 -1
  19. package/chunks/{acpAgent-IUJDXLZM.js → acpAgent-P7WGK2BP.js} +3 -3
  20. package/chunks/{advisor-MSOUBMJ6.js → advisor-GCH2MBXT.js} +1 -1
  21. package/chunks/{agent-H7XIWYWQ.js → agent-57T4YAYP.js} +1 -1
  22. package/chunks/{agent-headless-XDN3D3S3.js → agent-headless-IBON3A7N.js} +1 -1
  23. package/chunks/{agent-host-client-AZP3PZXS.js → agent-host-client-LE7P72FR.js} +1 -1
  24. package/chunks/{agent-host-connections-JRVX7I6I.js → agent-host-connections-4DM57L26.js} +1 -1
  25. package/chunks/{anthropicContentGenerator-N7TV53LD.js → anthropicContentGenerator-C4TPFXUK.js} +1 -1
  26. package/chunks/{batch-MKSJFJUH.js → batch-YJJGMJWO.js} +1 -1
  27. package/chunks/{bridge-GNMKKHQ4.js → bridge-FIO2ENBG.js} +1 -1
  28. package/chunks/{channel-settings-store-Y4YCS7JX.js → channel-settings-store-TEBCLK2B.js} +1 -1
  29. package/chunks/{chunk-GPOUP5OK.js → chunk-27MTSS3T.js} +1 -1
  30. package/chunks/{chunk-C4ANA47H.js → chunk-2MGCRPM3.js} +1 -1
  31. package/chunks/{chunk-6DQNNRRC.js → chunk-2WBKWPSO.js} +1 -1
  32. package/chunks/{chunk-CATL2PQS.js → chunk-34WLYVDK.js} +5 -5
  33. package/chunks/{chunk-B7CXPNCV.js → chunk-3J2YNEHG.js} +1 -1
  34. package/chunks/{chunk-VTNHPXNL.js → chunk-3TBFTELA.js} +1 -1
  35. package/chunks/{chunk-7JT34VGK.js → chunk-46I6JBVL.js} +1 -1
  36. package/chunks/{chunk-FEMWELCV.js → chunk-4ZKFLOEH.js} +1 -1
  37. package/chunks/{chunk-7AYXAVTZ.js → chunk-5DUJIOOX.js} +3 -3
  38. package/chunks/{chunk-6QLHJSVW.js → chunk-6PWOLWTH.js} +1 -1
  39. package/chunks/{chunk-OW4QBRSR.js → chunk-6UZ65Z2P.js} +1 -1
  40. package/chunks/{chunk-V2JZO5MS.js → chunk-7DSJE3CL.js} +1 -1
  41. package/chunks/{chunk-TJMHIEYI.js → chunk-7LCY7GGX.js} +1 -1
  42. package/chunks/{chunk-TLJHBK3A.js → chunk-7RNTXEWH.js} +1 -1
  43. package/chunks/{chunk-YZ7OO4AQ.js → chunk-A3IF6IOB.js} +1 -1
  44. package/chunks/{chunk-VTF6AVZB.js → chunk-A6OQSOUO.js} +1 -1
  45. package/chunks/{chunk-Y7YDHCON.js → chunk-AJ6JUUP7.js} +1 -1
  46. package/chunks/{chunk-QTMHQGWQ.js → chunk-AOMEBVFW.js} +1 -1
  47. package/chunks/{chunk-KVTG2ZNH.js → chunk-AUNAS7AS.js} +1 -1
  48. package/chunks/{chunk-BOFD4CN3.js → chunk-AVIDPC5K.js} +1 -1
  49. package/chunks/{chunk-ETYTRKB2.js → chunk-BOLPBPWC.js} +1 -1
  50. package/chunks/{chunk-OAPA66DR.js → chunk-BQQBFDBY.js} +1 -1
  51. package/chunks/{chunk-NOS2CNOI.js → chunk-CN22ATWU.js} +1 -1
  52. package/chunks/{chunk-XYBEQRSZ.js → chunk-DIHJELGW.js} +1 -1
  53. package/chunks/{chunk-XCEL3EDX.js → chunk-DJFCI7TU.js} +1 -1
  54. package/chunks/{chunk-VKEL2XTM.js → chunk-DQPDMFS3.js} +1 -1
  55. package/chunks/{chunk-DJRFEZBY.js → chunk-DSYKB77N.js} +1 -1
  56. package/chunks/{chunk-UEW7Q26E.js → chunk-EDNOGHMN.js} +2 -2
  57. package/chunks/{chunk-RXNGYG64.js → chunk-EE36D2EV.js} +1 -1
  58. package/chunks/{chunk-NZKX7HYL.js → chunk-EGQDN3FJ.js} +1 -1
  59. package/chunks/{chunk-DFRSQK5Q.js → chunk-FHFBCG6N.js} +1 -1
  60. package/chunks/{chunk-PECV2VVZ.js → chunk-GI6T3RBV.js} +1 -1
  61. package/chunks/{chunk-37BNHIUB.js → chunk-GOLT5JXA.js} +1 -1
  62. package/chunks/{chunk-KITFF4GL.js → chunk-IDGXHMNL.js} +1 -1
  63. package/chunks/{chunk-6HIOSLUM.js → chunk-IIZWK7ZP.js} +1 -1
  64. package/chunks/{chunk-MPGEAX4K.js → chunk-IJC6ZH2S.js} +1 -1
  65. package/chunks/{chunk-TLYJVB5H.js → chunk-IO6LSEPV.js} +1 -1
  66. package/chunks/{chunk-QIJKEZZR.js → chunk-IYVNCBMS.js} +1 -1
  67. package/chunks/{chunk-S4GOHFRN.js → chunk-JHGOWK7M.js} +1 -1
  68. package/chunks/{chunk-GHRD2MMC.js → chunk-JRJY343T.js} +1 -1
  69. package/chunks/{chunk-WCYZSCG7.js → chunk-JVUXQU3W.js} +1 -1
  70. package/chunks/{chunk-DMCTJUIJ.js → chunk-K2K2YYWO.js} +1 -1
  71. package/chunks/{chunk-37OHWQHB.js → chunk-KF6HU732.js} +2 -2
  72. package/chunks/{chunk-5LSV73BG.js → chunk-KVWUOBH7.js} +1 -1
  73. package/chunks/{chunk-7V4BAHFT.js → chunk-LBWBGFHD.js} +1 -1
  74. package/chunks/{chunk-RKPHDO42.js → chunk-LDXZT3SG.js} +5 -5
  75. package/chunks/{chunk-BGFA2SAQ.js → chunk-LFOZ6AIH.js} +1 -1
  76. package/chunks/{chunk-4322TZID.js → chunk-LGQHT42X.js} +2 -2
  77. package/chunks/{chunk-PDXZ2CUO.js → chunk-M3O2XDHA.js} +1 -1
  78. package/chunks/{chunk-47K2NMP6.js → chunk-M3UC46LS.js} +1 -1
  79. package/chunks/{chunk-UFRY7WND.js → chunk-M7JLPTQI.js} +1 -1
  80. package/chunks/{chunk-SATEKHQP.js → chunk-MBUXP3IS.js} +1 -1
  81. package/chunks/{chunk-RN6JS263.js → chunk-MEZA3VVH.js} +1 -1
  82. package/chunks/{chunk-OBFKP7RI.js → chunk-MWN6TR36.js} +1 -1
  83. package/chunks/{chunk-VHJ43ZYJ.js → chunk-O7XRQWCG.js} +1 -1
  84. package/chunks/{chunk-H224LNV3.js → chunk-OYFRLT5E.js} +1 -1
  85. package/chunks/{chunk-3NWFV2YF.js → chunk-PMBGV76N.js} +1 -1
  86. package/chunks/{chunk-YFAPACDE.js → chunk-PVM4IVFL.js} +6 -6
  87. package/chunks/{chunk-7WS2EYMQ.js → chunk-PWHD4NK3.js} +1 -1
  88. package/chunks/{chunk-JZIQSEFO.js → chunk-Q54NROBX.js} +1 -1
  89. package/chunks/{chunk-FCLAPJ22.js → chunk-QE7R4DPT.js} +1 -1
  90. package/chunks/{chunk-J6TW7GNF.js → chunk-QIUTQICH.js} +1 -1
  91. package/chunks/{chunk-TWDCN5H2.js → chunk-QK63EULE.js} +1 -1
  92. package/chunks/{chunk-HZZT75LI.js → chunk-QTAC4W7J.js} +1 -1
  93. package/chunks/{chunk-P7DIAJNX.js → chunk-R7HBR4QQ.js} +1 -1
  94. package/chunks/{chunk-U2FJSKS3.js → chunk-RHEMFKMX.js} +1 -1
  95. package/chunks/{chunk-TRRY3QMM.js → chunk-RL57IU47.js} +1 -1
  96. package/chunks/{chunk-SPWDYRDH.js → chunk-S2OOQRLJ.js} +1 -1
  97. package/chunks/{chunk-QBRADQ7L.js → chunk-SWTMWNTZ.js} +1 -1
  98. package/chunks/{chunk-AZUDF52L.js → chunk-SXTKQHFZ.js} +1 -1
  99. package/chunks/{chunk-5RQRSPPD.js → chunk-T5S3MJIK.js} +1 -1
  100. package/chunks/{chunk-I3ORWQ2U.js → chunk-UDGDEIBB.js} +1 -1
  101. package/chunks/{chunk-EMDEBV33.js → chunk-UIFBF3E7.js} +1 -1
  102. package/chunks/{chunk-BGEMWNES.js → chunk-UQDPWI7D.js} +1 -1
  103. package/chunks/{chunk-I5LKOTZT.js → chunk-VON4MVIM.js} +1 -1
  104. package/chunks/{chunk-HJPO6MEW.js → chunk-W5D2T2JK.js} +1 -1
  105. package/chunks/{chunk-F6YYDRMH.js → chunk-WNGYYU67.js} +1 -1
  106. package/chunks/{chunk-S2GKUZZZ.js → chunk-WO3F62ZD.js} +1 -1
  107. package/chunks/{chunk-K7KW3ZJQ.js → chunk-WVY5Q6YY.js} +1 -1
  108. package/chunks/{chunk-GH6DPLWU.js → chunk-Y4Q667BW.js} +1 -1
  109. package/chunks/{chunk-FH74N7Y7.js → chunk-YJLMFUCS.js} +2 -2
  110. package/chunks/{chunk-C3Y2S5AM.js → chunk-YKHRCSKP.js} +1 -1
  111. package/chunks/{chunk-P4UJ7CXJ.js → chunk-YLIS36QA.js} +1 -1
  112. package/chunks/{chunk-4QIFOIBS.js → chunk-YVZ4XZRB.js} +1 -1
  113. package/chunks/{chunk-KGRD6G5J.js → chunk-Z27JJPKN.js} +1 -1
  114. package/chunks/{chunk-KOHHDB2L.js → chunk-ZCIS6MJZ.js} +1 -1
  115. package/chunks/{chunk-QNNDZYVW.js → chunk-ZHLQ222N.js} +1 -1
  116. package/chunks/{chunk-KWRZ3WJO.js → chunk-ZP7MTWMR.js} +1 -1
  117. package/chunks/{codex-subagent-executor-H44VDB5E.js → codex-subagent-executor-6OJVGF2S.js} +1 -1
  118. package/chunks/{config-utils-4X4SV4RL.js → config-utils-FI3A4QAN.js} +1 -1
  119. package/chunks/{contextCommand-4KVOHTAJ.js → contextCommand-YEBZQHG4.js} +1 -1
  120. package/chunks/{core-runtime-4RARI4NX.js → core-runtime-CFMHUAS7.js} +1 -1
  121. package/chunks/{create-sub-session-CNSRJFYG.js → create-sub-session-G26337FT.js} +1 -1
  122. package/chunks/{daemon-git-worktree-guard-6XQQPP2H.js → daemon-git-worktree-guard-ITU6NQIV.js} +1 -1
  123. package/chunks/{daemon-status-provider-PRTEQT5T.js → daemon-status-provider-CSWRGMRX.js} +1 -1
  124. package/chunks/{daemon-trust-policy-GXKJVZDU.js → daemon-trust-policy-IYD7NOGK.js} +1 -1
  125. package/chunks/{daemon-trust-policy-monitor-L2ORKHMM.js → daemon-trust-policy-monitor-OWUP5SYB.js} +1 -1
  126. package/chunks/{deferred-core-runtime-RZQFUSPX.js → deferred-core-runtime-CVCQU7O4.js} +1 -1
  127. package/chunks/{edit-W44XQCIS.js → edit-7YBQLILC.js} +1 -1
  128. package/chunks/{enterPlanMode-B456A2XO.js → enterPlanMode-L3PVSD2P.js} +1 -1
  129. package/chunks/{environment-DSGQSQFS.js → environment-BVEOYQHO.js} +1 -1
  130. package/chunks/{errors-KL725247.js → errors-VQWBGR6D.js} +1 -1
  131. package/chunks/{execution-tool-KT3EBWHG.js → execution-tool-P7CBXSGZ.js} +1 -1
  132. package/chunks/{execution-worker-LPQ4HMN4.js → execution-worker-RZXNYK4B.js} +1 -1
  133. package/chunks/{exitPlanMode-JLKS76IA.js → exitPlanMode-MBUTM3NW.js} +1 -1
  134. package/chunks/{fast-path-5UD52IHH.js → fast-path-T2FDUSHV.js} +1 -1
  135. package/chunks/{glob-LYA2H6X3.js → glob-RH7XXSYE.js} +1 -1
  136. package/chunks/{goal-tools-SHSIDLZX.js → goal-tools-K6XBCE5E.js} +1 -1
  137. package/chunks/{handleAutoUpdate-T4RE6CZN.js → handleAutoUpdate-PG7R3KPH.js} +1 -1
  138. package/chunks/{i18n-5DK327WA.js → i18n-EGTBMA3N.js} +1 -1
  139. package/chunks/{initializer-TJGE4OJA.js → initializer-RIKH4PCP.js} +1 -1
  140. package/chunks/{installationInfo-MZ62GDIC.js → installationInfo-BBADHZLD.js} +1 -1
  141. package/chunks/{interactive-mod-session-YCUBQ6RM.js → interactive-mod-session-7RDKAHZ4.js} +1 -1
  142. package/chunks/{list-4L3LYDQM.js → list-YEGWEHJX.js} +1 -1
  143. package/chunks/{llm-3JQWBZXV.js → llm-D3LHPY27.js} +4 -4
  144. package/chunks/{llm-content-generator-6UPJWPOM.js → llm-content-generator-BLTBMV66.js} +1 -1
  145. package/chunks/{loadedSettingsAdapter-STPKAFJG.js → loadedSettingsAdapter-PLGMKMFO.js} +1 -1
  146. package/chunks/{local-execution-environment-IE5BOI7Y.js → local-execution-environment-4LDKFNC4.js} +1 -1
  147. package/chunks/{loggingContentGenerator-4KKWPZJA.js → loggingContentGenerator-376R7DRI.js} +1 -1
  148. package/chunks/{manage-memory-CRV5SXZZ.js → manage-memory-2ZTIVKNU.js} +1 -1
  149. package/chunks/{managed-execution-engine-FHLEWVND.js → managed-execution-engine-5LOM3MXG.js} +1 -1
  150. package/chunks/{managed-npm-update-BRHPOKDU.js → managed-npm-update-2C5JYEXW.js} +1 -1
  151. package/chunks/{managed-runtime-attestation-worker-GIQKZ5BH.js → managed-runtime-attestation-worker-R2FECMZK.js} +1 -1
  152. package/chunks/{managed-runtime-bootstrap-P72BT46H.js → managed-runtime-bootstrap-KPLGH4UE.js} +1 -1
  153. package/chunks/{managed-runtime-session-worker-IYCJDB5K.js → managed-runtime-session-worker-EVKNPK3V.js} +1 -1
  154. package/chunks/{managed-runtime-ssh-worker-ONT4V5ZG.js → managed-runtime-ssh-worker-IA4HZ3PD.js} +1 -1
  155. package/chunks/{mcp-NXCQVE2Y.js → mcp-S67IJLI6.js} +1 -1
  156. package/chunks/{model-call-collection-3DNL45M5.js → model-call-collection-6OGPDTPG.js} +1 -1
  157. package/chunks/{model-configuration-6HRNYBWV.js → model-configuration-6RWVBOQS.js} +1 -1
  158. package/chunks/{modelConfigUtils-SKBN64ZW.js → modelConfigUtils-M3TVVYAO.js} +1 -1
  159. package/chunks/{monitor-7I7Q73UR.js → monitor-ZHOFTN7N.js} +1 -1
  160. package/chunks/{nonInteractiveCli-YLYRJUBE.js → nonInteractiveCli-6SUGPTJ4.js} +1 -1
  161. package/chunks/{nonInteractiveToolExecutor-U2ASWT63.js → nonInteractiveToolExecutor-SAHBGO3A.js} +1 -1
  162. package/chunks/{notebook-edit-WAD7IQCF.js → notebook-edit-ETUOQH6G.js} +1 -1
  163. package/chunks/{omni-POUUDVU3.js → omni-HV2UBGMZ.js} +1 -1
  164. package/chunks/{openaiContentGenerator-L7X6IVPL.js → openaiContentGenerator-RZCG7E4M.js} +1 -1
  165. package/chunks/{openaiResponsesContentGenerator-7XCMFI6P.js → openaiResponsesContentGenerator-X23L5JV3.js} +1 -1
  166. package/chunks/{pidfile-MQQT2ZDA.js → pidfile-26WXQCHG.js} +1 -1
  167. package/chunks/{processUtils-OZLF72NC.js → processUtils-WXLFGNBT.js} +1 -1
  168. package/chunks/{prompt-terminal-ledger-IYUF6SUU.js → prompt-terminal-ledger-EIZZHF4A.js} +1 -1
  169. package/chunks/{qwenContentGenerator-DKH3ILUO.js → qwenContentGenerator-GOY7Y6KH.js} +1 -1
  170. package/chunks/{reactive-degrade-KSNGHMBN.js → reactive-degrade-MNMTTHO5.js} +1 -1
  171. package/chunks/{read-file-VEELW4OQ.js → read-file-OJNGPNTQ.js} +1 -1
  172. package/chunks/{resumeHistoryUtils-4SFDTBXU.js → resumeHistoryUtils-QWOWF4VY.js} +1 -1
  173. package/chunks/{review-QA6HRLVU.js → review-5S24HP2V.js} +1 -1
  174. package/chunks/{ripGrep-4J6ASSE3.js → ripGrep-Y4PY2MQF.js} +1 -1
  175. package/chunks/{run-qwen-serve-EJ67LA5O.js → run-qwen-serve-EOUUDZUK.js} +2 -2
  176. package/chunks/{runtime-6E2FSB5U.js → runtime-ZBPOQX6E.js} +1 -1
  177. package/chunks/{sandboxConfig-4VE4LNRI.js → sandboxConfig-R7KDS3P5.js} +1 -1
  178. package/chunks/{scheduled-tasks-GM5EJMK7.js → scheduled-tasks-Q6V7D6K6.js} +1 -1
  179. package/chunks/{scheduler-HOSVIIOE.js → scheduler-EBQY6BOK.js} +1 -1
  180. package/chunks/{search-memory-HEAQCHIK.js → search-memory-HX6E23JC.js} +1 -1
  181. package/chunks/{send-message-FAQ7XEZ5.js → send-message-OZCCCH2F.js} +1 -1
  182. package/chunks/{serve-VNKPOWSW.js → serve-CMGCI4BK.js} +1 -1
  183. package/chunks/{server-U2XBJLOV.js → server-7LOAKPDN.js} +3 -3
  184. package/chunks/{session-AZGROSFX.js → session-LVQYZSJE.js} +1 -1
  185. package/chunks/{session-attachments-root-6M2ECUNK.js → session-attachments-root-NWG7JOMN.js} +1 -1
  186. package/chunks/{session-execution-engine-selector-PYDVOSJF.js → session-execution-engine-selector-PHH47ZMA.js} +1 -1
  187. package/chunks/{session-pr-refresh-3IS7DLEV.js → session-pr-refresh-5IACZPCY.js} +1 -1
  188. package/chunks/{sessionService-3FWNA4ZB.js → sessionService-7PFAWLHC.js} +1 -1
  189. package/chunks/{settings-VHKT7JJC.js → settings-CPZBOHN5.js} +1 -1
  190. package/chunks/{shell-TYOPVB7H.js → shell-A7NLPS2W.js} +1 -1
  191. package/chunks/{skill-GJQIE5AX.js → skill-VGANGVOD.js} +1 -1
  192. package/chunks/{skill-settings-76NI6SF3.js → skill-settings-TSZO3X6N.js} +1 -1
  193. package/chunks/{spawnChannel-FMSYLDKB.js → spawnChannel-2JQYNQKT.js} +1 -1
  194. package/chunks/{standalone-update-BPZQDQHD.js → standalone-update-QXC3RM6I.js} +1 -1
  195. package/chunks/{start-opentui-ui-X7XYV5N3.js → start-opentui-ui-BKJ4JHVK.js} +1 -1
  196. package/chunks/{startInteractiveUI-UZDF4JUB.js → startInteractiveUI-4QIPR7ZY.js} +1 -1
  197. package/chunks/{team-create-RFZNEF76.js → team-create-5MU6BGXX.js} +1 -1
  198. package/chunks/{team-plan-approval-MGW3JGSC.js → team-plan-approval-NZUJ6FSA.js} +1 -1
  199. package/chunks/{terminal-image-renderer-3UED5GZV.js → terminal-image-renderer-CTMJULJ2.js} +1 -1
  200. package/chunks/{theme-manager-SF6FSSZW.js → theme-manager-6H7GA6QR.js} +1 -1
  201. package/chunks/{tool-call-W2CJR74U.js → tool-call-XG4CAD5X.js} +1 -1
  202. package/chunks/{tool-result-media-XSFON2ZQ.js → tool-result-media-RJ5ONO7R.js} +1 -1
  203. package/chunks/{tool-search-7GY5YTOU.js → tool-search-KBINGEWV.js} +1 -1
  204. package/chunks/{total-session-admission-OATGW6M5.js → total-session-admission-XNWYCO7G.js} +1 -1
  205. package/chunks/{trustedFolders-AM4PSGUB.js → trustedFolders-JT5MOB3A.js} +1 -1
  206. package/chunks/{update-relaunch-YKY52XUT.js → update-relaunch-HXMQI3HO.js} +1 -1
  207. package/chunks/{updateCheck-RKQ5CPZM.js → updateCheck-XWE3TWL5.js} +1 -1
  208. package/chunks/{upload-config-CBT7ARZY.js → upload-config-ET7NRHU7.js} +1 -1
  209. package/chunks/{useAutoAcceptIndicator-Z3YWPUNO.js → useAutoAcceptIndicator-TPMYKNJX.js} +1 -1
  210. package/chunks/{validateNonInterActiveAuth-7CQHU2RF.js → validateNonInterActiveAuth-U52KMEDS.js} +1 -1
  211. package/chunks/{version-N2OB6KWP.js → version-CW4RTJ3H.js} +1 -1
  212. package/chunks/{web-fetch-L5XCBCBA.js → web-fetch-UPMJ3XIZ.js} +1 -1
  213. package/chunks/{web-search-4EHUA3LJ.js → web-search-PXABWQVC.js} +1 -1
  214. package/chunks/{workflow-FGAUAYIP.js → workflow-UQ4V3NBZ.js} +1 -1
  215. package/chunks/{workflow-ancestor-trust-F7RRN6I3.js → workflow-ancestor-trust-QII5KTUJ.js} +1 -1
  216. package/chunks/{workspace-agents-QW4TKC52.js → workspace-agents-Q3KKMDX2.js} +1 -1
  217. package/chunks/{workspace-providers-status-MFSZT3YA.js → workspace-providers-status-3ASB64FB.js} +1 -1
  218. package/chunks/{workspace-registration-store-WQRDSIEI.js → workspace-registration-store-2NPD6U3B.js} +1 -1
  219. package/chunks/{workspace-registry-FXZFRSCH.js → workspace-registry-6QJKRCDR.js} +1 -1
  220. package/chunks/{workspace-runtime-coordinator-LJ5YAT3A.js → workspace-runtime-coordinator-ZXUWDQIB.js} +1 -1
  221. package/chunks/{workspace-service-U632SUWU.js → workspace-service-YPYTYYUN.js} +1 -1
  222. package/chunks/{workspace-skills-status-M7YXM3LF.js → workspace-skills-status-VTFHQ6R7.js} +1 -1
  223. package/chunks/{workspace-trust-reconciler-NLJGGI4K.js → workspace-trust-reconciler-52CZVPKH.js} +1 -1
  224. package/chunks/{write-file-BJCKSXX7.js → write-file-FDBR76G5.js} +1 -1
  225. package/chunks/{zoom-image-TLJPD4DB.js → zoom-image-MYKWCCXO.js} +1 -1
  226. package/cli.js +2 -2
  227. package/execution-worker.js +1 -1
  228. package/export-transcript-document.js +1 -1
  229. package/package.json +4 -4
  230. package/vendor/landlock-run/arm64-linux/qwen-landlock-run +0 -0
  231. package/vendor/landlock-run/x64-linux/qwen-landlock-run +0 -0
  232. package/vendor/ripgrep/arm64-darwin/rg +0 -0
  233. package/vendor/ripgrep/arm64-linux/rg +0 -0
  234. package/vendor/ripgrep/x64-darwin/rg +0 -0
  235. package/vendor/ripgrep/x64-linux/rg +0 -0
  236. package/vendor/tree-sitter/tree-sitter-bash.wasm +0 -0
  237. package/vendor/tree-sitter/tree-sitter.wasm +0 -0
  238. package/web-shell/assets/{PierreFilePreview-D9tbdFw8.js → PierreFilePreview-DGTp45Z4.js} +1 -1
  239. package/web-shell/assets/{SpreadsheetPreview-CeFAk2s-.js → SpreadsheetPreview-DVC_YVei.js} +1 -1
  240. package/web-shell/assets/{WorkspaceFileBrowser-iaURw8SR.js → WorkspaceFileBrowser-DaQNpS06.js} +1 -1
  241. package/web-shell/assets/{abnfDiagram-VCTEODGH-Z4CT1NCF.js → abnfDiagram-VCTEODGH-wJbiOoPK.js} +1 -1
  242. package/web-shell/assets/{agents-route-B7o2Rq-a.js → agents-route-DUhhA1KI.js} +1 -1
  243. package/web-shell/assets/{arc-DcHBdUJQ.js → arc-CvpNMy1d.js} +1 -1
  244. package/web-shell/assets/{architectureDiagram-5GKGNRK7-DRDhEC81.js → architectureDiagram-5GKGNRK7-DIhi3dIz.js} +1 -1
  245. package/web-shell/assets/{blockDiagram-NRAW4CY4-CYRE6WIc.js → blockDiagram-NRAW4CY4-CoeyTlVJ.js} +1 -1
  246. package/web-shell/assets/{c4Diagram-UCG6FXSJ-CIM8N_Sj.js → c4Diagram-UCG6FXSJ-BYoK_I9M.js} +1 -1
  247. package/web-shell/assets/channel-DvtGOCg6.js +1 -0
  248. package/web-shell/assets/{chunk-2Q5K7J3B-Bbfka9Fe.js → chunk-2Q5K7J3B-BeD4GwPg.js} +1 -1
  249. package/web-shell/assets/{chunk-5VM5RSS4-C02zF3RY.js → chunk-5VM5RSS4-BpkJsB_y.js} +1 -1
  250. package/web-shell/assets/{chunk-F27PBJKO-Dn0wRD2F.js → chunk-F27PBJKO-BROEWQ1J.js} +1 -1
  251. package/web-shell/assets/{chunk-G27WJ6UU-Dwpl3l0W.js → chunk-G27WJ6UU-DA8Wtppt.js} +1 -1
  252. package/web-shell/assets/{chunk-JWPE2WC7-sQbzSoTR.js → chunk-JWPE2WC7-GqB-QFh5.js} +1 -1
  253. package/web-shell/assets/{chunk-LCL6LL3I-DNlNDtfr.js → chunk-LCL6LL3I-DIPUwYsX.js} +1 -1
  254. package/web-shell/assets/{chunk-POPQ4Y6H-BOgf1Dl3.js → chunk-POPQ4Y6H-DbnU-jxX.js} +1 -1
  255. package/web-shell/assets/{chunk-SVP7TREG-DOofWP00.js → chunk-SVP7TREG-DvH7bQ-w.js} +1 -1
  256. package/web-shell/assets/{chunk-XXDRQBXY-Bj9FxhWU.js → chunk-XXDRQBXY-DdVWVo3U.js} +1 -1
  257. package/web-shell/assets/classDiagram-DTDB5LWJ-9NR5W1rE.js +1 -0
  258. package/web-shell/assets/classDiagram-v2-JRS7N3AN-9NR5W1rE.js +1 -0
  259. package/web-shell/assets/{cose-bilkent-JH36ORCC-CUlPjyww.js → cose-bilkent-JH36ORCC-JgMKxP9H.js} +1 -1
  260. package/web-shell/assets/{cynefin-OW5HDTMX-5noArzI7.js → cynefin-OW5HDTMX-BVUpNgVm.js} +1 -1
  261. package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-DELvTqmf.js → cynefinDiagram-5FMLGOSQ-CxAdk-iS.js} +1 -1
  262. package/web-shell/assets/{dagre-3AP2YEHR-CAL6Z3hL.js → dagre-3AP2YEHR-CvXWkM86.js} +1 -1
  263. package/web-shell/assets/{diagram-S7CK7UJ4-DQC2gaIi.js → diagram-S7CK7UJ4-DD_PS4nm.js} +1 -1
  264. package/web-shell/assets/{diagram-UQ7AKVKN-CkU6M-3R.js → diagram-UQ7AKVKN-EVZkTODD.js} +1 -1
  265. package/web-shell/assets/{diagram-VSXAHHWV-CvHpHwVx.js → diagram-VSXAHHWV-CGZc1pZU.js} +1 -1
  266. package/web-shell/assets/{diagram-VX7I27RA-D9l5F9iB.js → diagram-VX7I27RA-DjNql499.js} +1 -1
  267. package/web-shell/assets/{diagram-Z3DM3KII-DW-VFvYx.js → diagram-Z3DM3KII-CCa0WtmR.js} +1 -1
  268. package/web-shell/assets/{docx-preview-8MQfOGQh.js → docx-preview-DpVElxvj.js} +1 -1
  269. package/web-shell/assets/{ebnfDiagram-PWID7BFC-C0Q71wC_.js → ebnfDiagram-PWID7BFC-W2hoOJZF.js} +1 -1
  270. package/web-shell/assets/{erDiagram-SSCWMZ5O-DWDLRh1S.js → erDiagram-SSCWMZ5O-Dz5NxxEb.js} +1 -1
  271. package/web-shell/assets/{flowDiagram-A5DVABFB-CVzJnl1P.js → flowDiagram-A5DVABFB-BTMAn8b5.js} +1 -1
  272. package/web-shell/assets/{ganttDiagram-EL5Y4UJY-B320pcgR.js → ganttDiagram-EL5Y4UJY-BaFrd5ZY.js} +1 -1
  273. package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-Di4uZh-J.js → gitGraphDiagram-WWUBYQGX-IlmdUqRk.js} +1 -1
  274. package/web-shell/assets/{index-Csr8Hx_O.js → index-C2ez0ZjE.js} +1 -1
  275. package/web-shell/assets/{index-C9BecA_H.js → index-Cs-XBNmB.js} +101 -101
  276. package/web-shell/assets/{infoDiagram-RXCK75RN-CbafhxET.js → infoDiagram-RXCK75RN-BHs9kpar.js} +1 -1
  277. package/web-shell/assets/{ishikawaDiagram-5VMMS53U-DrQuIDeR.js → ishikawaDiagram-5VMMS53U-DWCEQ85v.js} +1 -1
  278. package/web-shell/assets/{journeyDiagram-EYS64GPL-BschmjBj.js → journeyDiagram-EYS64GPL-RTDAw9yc.js} +1 -1
  279. package/web-shell/assets/{kanban-definition-3QL26DDD-B7x9BU9N.js → kanban-definition-3QL26DDD-B7Nl9bq6.js} +1 -1
  280. package/web-shell/assets/{layout-BewPaOyO.js → layout-BabjFEb1.js} +1 -1
  281. package/web-shell/assets/{linear-CnLILCVp.js → linear-CZuGjuQd.js} +1 -1
  282. package/web-shell/assets/{mermaid.core-Csj9KPfJ.js → mermaid.core-CK78bIGt.js} +6 -6
  283. package/web-shell/assets/{mindmap-definition-FBJOCRG2-CIGTi5gg.js → mindmap-definition-FBJOCRG2-BbcCi_jP.js} +1 -1
  284. package/web-shell/assets/{pegDiagram-XKGWAZYB-CuWBRQzb.js → pegDiagram-XKGWAZYB-DpLQ7u8i.js} +1 -1
  285. package/web-shell/assets/{pieDiagram-E7YTZNPT-Co5ukXCE.js → pieDiagram-E7YTZNPT-BpWFVtM0.js} +1 -1
  286. package/web-shell/assets/{quadrantDiagram-AXDQQJYC-B0hzjh6o.js → quadrantDiagram-AXDQQJYC-CGzYlaN1.js} +1 -1
  287. package/web-shell/assets/{railroadDiagram-O6MQD6OU-nhkJB0xD.js → railroadDiagram-O6MQD6OU-BNQYW-Zi.js} +1 -1
  288. package/web-shell/assets/{requirementDiagram-EFPCY7ZU-C7NpxjVR.js → requirementDiagram-EFPCY7ZU-C4fCdIDW.js} +1 -1
  289. package/web-shell/assets/{sankeyDiagram-P5KCCOFB-CUWlnhZC.js → sankeyDiagram-P5KCCOFB-BvbbAnMA.js} +1 -1
  290. package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-BoykH0_J.js → sequenceDiagram-WJ2MYXX4-DGXNc6E1.js} +1 -1
  291. package/web-shell/assets/{sizeCapture-X5ZJPWSS-aF-PkSe5.js → sizeCapture-X5ZJPWSS-C4W45Xf5.js} +1 -1
  292. package/web-shell/assets/{stateDiagram-HBIQ2CUA-g5q0b922.js → stateDiagram-HBIQ2CUA-D3q0fen-.js} +1 -1
  293. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-XKoYIi05.js +1 -0
  294. package/web-shell/assets/{swimlanes-XN3QIQJK-BbASszfe.js → swimlanes-XN3QIQJK-D8n-ResR.js} +1 -1
  295. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-C7qJMSzs.js +8 -0
  296. package/web-shell/assets/{timeline-definition-24CTP7MA-AXIV0TJJ.js → timeline-definition-24CTP7MA-Cio4y1mM.js} +1 -1
  297. package/web-shell/assets/{vennDiagram-4TSXK5OY-B-E0rj1h.js → vennDiagram-4TSXK5OY-DVlg0xnc.js} +1 -1
  298. package/web-shell/assets/{wardleyDiagram-VM6X3IG4-DiOOYJ2D.js → wardleyDiagram-VM6X3IG4-CgeIsimQ.js} +1 -1
  299. package/web-shell/assets/{xychartDiagram-S5SC5T6Z-De_z7HkS.js → xychartDiagram-S5SC5T6Z-UXjyTLnU.js} +1 -1
  300. package/web-shell/index.html +1 -1
  301. package/web-shell/sw.js +1 -1
  302. package/web-shell/assets/channel-Bwr9aS_E.js +0 -1
  303. package/web-shell/assets/classDiagram-DTDB5LWJ-BmY8Mmyo.js +0 -1
  304. package/web-shell/assets/classDiagram-v2-JRS7N3AN-BmY8Mmyo.js +0 -1
  305. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-CTOjUMow.js +0 -1
  306. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-Bz6ia3oL.js +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qwen-code/qwen-code",
3
- "version": "0.25.4-preview.0",
3
+ "version": "0.25.4-preview.1",
4
4
  "description": "Qwen Code - AI-powered coding assistant",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,11 +36,11 @@
36
36
  "export-transcript-document.css"
37
37
  ],
38
38
  "config": {
39
- "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.25.4-preview.0"
39
+ "sandboxImageUri": "ghcr.io/qwenlm/qwen-code:0.25.4-preview.1"
40
40
  },
41
41
  "dependencies": {},
42
42
  "optionalDependencies": {
43
- "@qwen-code/audio-capture": "0.25.4-preview.0",
43
+ "@qwen-code/audio-capture": "0.25.4-preview.1",
44
44
  "@lydell/node-pty": "1.2.0-beta.10",
45
45
  "@lydell/node-pty-darwin-arm64": "1.2.0-beta.10",
46
46
  "@lydell/node-pty-darwin-x64": "1.2.0-beta.10",
@@ -60,4 +60,4 @@
60
60
  "engines": {
61
61
  "node": ">=22.0.0"
62
62
  }
63
- }
63
+ }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -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{aO as x,aP as an,aQ as Bt,aR as ts,aS as ns,aT as pe,aU as z,aq as is,r as _e,j as rs}from"./index-C9BecA_H.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{aO as x,aP as an,aQ as Bt,aR as ts,aS as ns,aT as pe,aU as z,aq as is,r as _e,j as rs}from"./index-Cs-XBNmB.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}