@songtonyli/dsh-cli 0.1.31 → 0.1.32

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 (1814) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@deepseek-ai/cordis/README.md +4 -0
  4. package/node_modules/@deepseek-ai/cordis/package.json +4 -4
  5. package/node_modules/@deepseek-ai/cordis/src/index.ts +2 -0
  6. package/node_modules/@deepseek-ai/cordis-plugin-group/package.json +3 -3
  7. package/node_modules/@deepseek-ai/cordis-plugin-include/package.json +4 -4
  8. package/node_modules/@deepseek-ai/cordis-plugin-loader/README.md +4 -0
  9. package/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js +87 -7
  10. package/node_modules/@deepseek-ai/cordis-plugin-loader/package.json +4 -3
  11. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/diff.ts +45 -0
  12. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/entry.ts +53 -7
  13. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/index.ts +13 -1
  14. package/node_modules/@deepseek-ai/cordis-plugin-timer/package.json +3 -3
  15. package/node_modules/@deepseek-ai/cosmokit/README.md +6 -0
  16. package/node_modules/@deepseek-ai/cosmokit/lib/index.js +112 -19
  17. package/node_modules/@deepseek-ai/cosmokit/package.json +1 -1
  18. package/node_modules/@deepseek-ai/cosmokit/src/index.ts +2 -0
  19. package/node_modules/@deepseek-ai/cosmokit/src/types.ts +49 -23
  20. package/node_modules/@deepseek-ai/cosmokit/src/volatile.ts +86 -0
  21. package/node_modules/@deepseek-ai/dsh/README.i18n.yaml +2 -2
  22. package/node_modules/@deepseek-ai/dsh/README.md +1 -1
  23. package/node_modules/@deepseek-ai/dsh/README.zh.md +1 -1
  24. package/node_modules/@deepseek-ai/dsh/lib/bin.js +21 -5
  25. package/node_modules/@deepseek-ai/dsh/lib/{dump-config-Bb5YvFIX.js → dump-config-C-0P1h0W.js} +14 -3
  26. package/node_modules/@deepseek-ai/dsh/lib/dump-config-DaAE0NHG.js +2 -0
  27. package/node_modules/@deepseek-ai/dsh/lib/dump-config-schema-BgEU7VYz.js +41 -0
  28. package/node_modules/@deepseek-ai/dsh/lib/{plugin-DJ-rVHUS.js → plugin-CnNK4cws.js} +1 -1
  29. package/node_modules/@deepseek-ai/dsh/lib/{profile-boot-BNu17Y9U.js → profile-boot-DIiro1p-.js} +8 -15
  30. package/node_modules/@deepseek-ai/dsh/lib/profile-boot.js +1 -1
  31. package/node_modules/@deepseek-ai/dsh/package.json +113 -119
  32. package/node_modules/@deepseek-ai/dsh-acp/lib/index.js +7 -6
  33. package/node_modules/@deepseek-ai/dsh-acp/package.json +25 -25
  34. package/node_modules/@deepseek-ai/dsh-acp-app/package.json +6 -6
  35. package/node_modules/@deepseek-ai/dsh-agent/README.i18n.yaml +2 -2
  36. package/node_modules/@deepseek-ai/dsh-agent/README.md +3 -0
  37. package/node_modules/@deepseek-ai/dsh-agent/README.zh.md +3 -0
  38. package/node_modules/@deepseek-ai/dsh-agent/lib/index.js +40 -6
  39. package/node_modules/@deepseek-ai/dsh-agent/lib/types/archive-admission.js +35 -0
  40. package/node_modules/@deepseek-ai/dsh-agent/lib/types/consumed-work.js +5 -4
  41. package/node_modules/@deepseek-ai/dsh-agent/lib/types/index.js +4 -0
  42. package/node_modules/@deepseek-ai/dsh-agent/lib/types/model-selection.js +1 -2
  43. package/node_modules/@deepseek-ai/dsh-agent/package.json +27 -20
  44. package/node_modules/@deepseek-ai/dsh-agent-default-model/README.i18n.yaml +2 -2
  45. package/node_modules/@deepseek-ai/dsh-agent-default-model/README.md +9 -9
  46. package/node_modules/@deepseek-ai/dsh-agent-default-model/README.zh.md +9 -9
  47. package/node_modules/@deepseek-ai/dsh-agent-default-model/lib/index.js +26 -39
  48. package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +10 -10
  49. package/node_modules/@deepseek-ai/dsh-agent-instructions/lib/index.js +3 -2
  50. package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +25 -25
  51. package/node_modules/@deepseek-ai/dsh-agent-loop/README.i18n.yaml +2 -2
  52. package/node_modules/@deepseek-ai/dsh-agent-loop/README.md +3 -1
  53. package/node_modules/@deepseek-ai/dsh-agent-loop/README.zh.md +3 -1
  54. package/node_modules/@deepseek-ai/dsh-agent-loop/lib/index.js +39 -49
  55. package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +26 -28
  56. package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset}/README.i18n.yaml +3 -3
  57. package/node_modules/@deepseek-ai/dsh-agent-preset/README.md +94 -0
  58. package/node_modules/@deepseek-ai/dsh-agent-preset/README.zh.md +94 -0
  59. package/node_modules/@deepseek-ai/dsh-agent-preset/lib/index.js +29 -0
  60. package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +49 -0
  61. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/SKILL.md +29 -0
  62. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +506 -0
  63. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/SKILL.md +38 -0
  64. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/host-plugin.md +60 -0
  65. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/mcp-bundle.md +5 -0
  66. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/ui-plugin.md +13 -0
  67. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/verification.md +5 -0
  68. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/decoration/client.js +22 -0
  69. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/decoration/cordis.patch.yml +3 -0
  70. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/decoration/index.js +2 -0
  71. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/decoration/package.json +15 -0
  72. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/mcp/cordis.patch.yml +8 -0
  73. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/mcp/package.json +7 -0
  74. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/editing-cordis-compositions/SKILL.md +84 -0
  75. package/node_modules/@deepseek-ai/{dsh-api-authorization-controller → dsh-agent-preset-registry}/README.i18n.yaml +3 -3
  76. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.md +107 -0
  77. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.zh.md +107 -0
  78. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/index.js +781 -0
  79. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/invariant.js +806 -0
  80. package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset-registry}/lib/typert.host.js +118 -270
  81. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.remote-client.js +84 -0
  82. package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset-registry}/lib/types/composition-inventory.js +9 -36
  83. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/definition.js +29 -0
  84. package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset-registry}/lib/types/display.js +12 -3
  85. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/index.js +371 -0
  86. package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset-registry}/lib/types/invariant.js +7 -19
  87. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/mount.js +243 -0
  88. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/preset.js +2 -0
  89. package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset-registry}/lib/types/session.js +1 -1
  90. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +96 -0
  91. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/README.i18n.yaml +2 -2
  92. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/README.md +3 -3
  93. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/README.zh.md +3 -3
  94. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +11 -11
  95. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +7 -7
  96. package/node_modules/@deepseek-ai/{dsh-settings-file → dsh-api-account-controller}/README.i18n.yaml +3 -3
  97. package/node_modules/@deepseek-ai/dsh-api-account-controller/README.md +53 -0
  98. package/node_modules/@deepseek-ai/dsh-api-account-controller/README.zh.md +53 -0
  99. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/index.js +209 -0
  100. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/typert.host.js +273 -0
  101. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/typert.remote-client.js +267 -0
  102. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/types/index.js +116 -0
  103. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/types/types.js +2 -0
  104. package/node_modules/@deepseek-ai/{dsh-api-authorization-controller → dsh-api-account-controller}/package.json +13 -20
  105. package/node_modules/@deepseek-ai/dsh-api-gateway/README.i18n.yaml +2 -2
  106. package/node_modules/@deepseek-ai/dsh-api-gateway/README.md +9 -4
  107. package/node_modules/@deepseek-ai/dsh-api-gateway/README.zh.md +9 -4
  108. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.js +294 -51
  109. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/index.js +516 -92
  110. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/index.js +104 -14
  111. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/remote-events.js +2 -2
  112. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/stream-client.js +164 -11
  113. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/index.js +322 -33
  114. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/stream-protocol.js +10 -46
  115. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/stream-server.js +210 -23
  116. package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +18 -13
  117. package/node_modules/@deepseek-ai/{dsh-llm-cursor → dsh-api-job-controller}/README.i18n.yaml +3 -3
  118. package/node_modules/@deepseek-ai/dsh-api-job-controller/README.md +69 -0
  119. package/node_modules/@deepseek-ai/dsh-api-job-controller/README.zh.md +69 -0
  120. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/client.js +367 -0
  121. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/index.js +377 -0
  122. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/typert.host.js +273 -0
  123. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/typert.remote-client.js +181 -0
  124. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/client/index.js +23 -0
  125. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/client/model.js +164 -0
  126. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/client/service.js +182 -0
  127. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/index.js +150 -0
  128. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/observe.js +107 -0
  129. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/rows.js +43 -0
  130. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/types.js +8 -0
  131. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/wake.js +59 -0
  132. package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +82 -0
  133. package/node_modules/@deepseek-ai/dsh-api-remotes/README.i18n.yaml +2 -2
  134. package/node_modules/@deepseek-ai/dsh-api-remotes/README.md +2 -0
  135. package/node_modules/@deepseek-ai/dsh-api-remotes/README.zh.md +2 -0
  136. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +1751 -1017
  137. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/client/index.js +7 -3
  138. package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +40 -39
  139. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.i18n.yaml +2 -2
  140. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.md +31 -8
  141. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.zh.md +31 -8
  142. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +603 -515
  143. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +299 -137
  144. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +373 -183
  145. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +216 -124
  146. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/archived-session-gate.js +52 -0
  147. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/lineage.js +2 -1
  148. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/manager.js +249 -277
  149. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/projection-store.js +45 -13
  150. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/service.js +35 -47
  151. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/session.js +112 -50
  152. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.js +72 -36
  153. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/control.js +2 -44
  154. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history.js +1 -1
  155. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +117 -13
  156. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/list.js +24 -15
  157. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/skill-catalog.js +60 -50
  158. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/types.js +0 -1
  159. package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +68 -72
  160. package/node_modules/@deepseek-ai/dsh-api-settings-controller/README.i18n.yaml +2 -2
  161. package/node_modules/@deepseek-ai/dsh-api-settings-controller/README.md +1 -2
  162. package/node_modules/@deepseek-ai/dsh-api-settings-controller/README.zh.md +1 -2
  163. package/node_modules/@deepseek-ai/dsh-api-settings-controller/lib/index.js +6 -78
  164. package/node_modules/@deepseek-ai/dsh-api-settings-controller/lib/typert.host.js +33 -99
  165. package/node_modules/@deepseek-ai/dsh-api-settings-controller/lib/typert.remote-client.js +32 -80
  166. package/node_modules/@deepseek-ai/dsh-api-settings-controller/lib/types/index.js +6 -61
  167. package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +16 -16
  168. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +50 -22
  169. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.remote-client.js +4 -4
  170. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +20 -19
  171. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.i18n.yaml +2 -2
  172. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.md +16 -2
  173. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.zh.md +16 -2
  174. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/client.js +98 -6
  175. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/index.js +202 -15
  176. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/typert.host.js +161 -11
  177. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/typert.remote-client.js +121 -8
  178. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/client/index.js +4 -1
  179. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/client/model.js +70 -2
  180. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/client/service.js +33 -3
  181. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/commands.js +45 -7
  182. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/default-directory.js +65 -0
  183. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/feed.js +9 -1
  184. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/index.js +62 -5
  185. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +21 -18
  186. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.i18n.yaml +2 -2
  187. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.md +26 -25
  188. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.zh.md +26 -25
  189. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/client.js +41 -35
  190. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/index.js +129 -121
  191. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/typert.host.js +72 -141
  192. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/typert.remote-client.js +61 -120
  193. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/types/changes.js +106 -46
  194. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/types/client/change-feed.js +34 -27
  195. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/types/client/provider.js +13 -6
  196. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/types/index.js +32 -53
  197. package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +15 -14
  198. package/node_modules/@deepseek-ai/dsh-app-boot/README.i18n.yaml +2 -2
  199. package/node_modules/@deepseek-ai/dsh-app-boot/README.md +33 -15
  200. package/node_modules/@deepseek-ai/dsh-app-boot/README.zh.md +33 -15
  201. package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +1647 -681
  202. package/node_modules/@deepseek-ai/dsh-app-boot/lib/worker/profile-resolution-bootstrap.js +255 -357
  203. package/node_modules/@deepseek-ai/dsh-app-boot/package.json +20 -18
  204. package/node_modules/@deepseek-ai/dsh-atomic-write/README.i18n.yaml +2 -2
  205. package/node_modules/@deepseek-ai/dsh-atomic-write/README.md +4 -4
  206. package/node_modules/@deepseek-ai/dsh-atomic-write/README.zh.md +4 -4
  207. package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +3 -3
  208. package/node_modules/@deepseek-ai/dsh-attachment/package.json +5 -5
  209. package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +9 -9
  210. package/node_modules/@deepseek-ai/dsh-authorization/README.i18n.yaml +2 -2
  211. package/node_modules/@deepseek-ai/dsh-authorization/README.md +2 -0
  212. package/node_modules/@deepseek-ai/dsh-authorization/README.zh.md +2 -0
  213. package/node_modules/@deepseek-ai/dsh-authorization/lib/index.js +16 -4
  214. package/node_modules/@deepseek-ai/dsh-authorization/lib/types/index.js +19 -4
  215. package/node_modules/@deepseek-ai/dsh-authorization/package.json +9 -9
  216. package/node_modules/@deepseek-ai/dsh-base/README.i18n.yaml +2 -2
  217. package/node_modules/@deepseek-ai/dsh-base/README.md +2 -0
  218. package/node_modules/@deepseek-ai/dsh-base/README.zh.md +2 -0
  219. package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +20 -26
  220. package/node_modules/@deepseek-ai/dsh-base/package.json +94 -94
  221. package/node_modules/@deepseek-ai/dsh-bash-local/README.i18n.yaml +2 -2
  222. package/node_modules/@deepseek-ai/dsh-bash-local/README.md +7 -6
  223. package/node_modules/@deepseek-ai/dsh-bash-local/README.zh.md +7 -6
  224. package/node_modules/@deepseek-ai/dsh-bash-local/lib/index.js +153 -202
  225. package/node_modules/@deepseek-ai/dsh-bash-local/package.json +11 -13
  226. package/node_modules/@deepseek-ai/dsh-bash-sandbox/README.i18n.yaml +2 -2
  227. package/node_modules/@deepseek-ai/dsh-bash-sandbox/README.md +3 -3
  228. package/node_modules/@deepseek-ai/dsh-bash-sandbox/README.zh.md +3 -3
  229. package/node_modules/@deepseek-ai/dsh-bash-sandbox/lib/index.js +58 -63
  230. package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +14 -14
  231. package/node_modules/@deepseek-ai/dsh-brand/package.json +3 -3
  232. package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +3 -3
  233. package/node_modules/@deepseek-ai/dsh-client-connection/README.i18n.yaml +2 -2
  234. package/node_modules/@deepseek-ai/dsh-client-connection/README.md +7 -3
  235. package/node_modules/@deepseek-ai/dsh-client-connection/README.zh.md +7 -3
  236. package/node_modules/@deepseek-ai/dsh-client-connection/lib/client.js +169 -28
  237. package/node_modules/@deepseek-ai/dsh-client-connection/lib/index.js +98 -36
  238. package/node_modules/@deepseek-ai/dsh-client-connection/package.json +13 -10
  239. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/client.js +8 -12
  240. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/index.js +1 -0
  241. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +46 -18
  242. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/types/client/runtime.js +5 -12
  243. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/types/protocol.js +5 -0
  244. package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +14 -14
  245. package/node_modules/@deepseek-ai/dsh-client-hmr/README.i18n.yaml +2 -2
  246. package/node_modules/@deepseek-ai/dsh-client-hmr/README.md +2 -2
  247. package/node_modules/@deepseek-ai/dsh-client-hmr/README.zh.md +2 -2
  248. package/node_modules/@deepseek-ai/dsh-client-hmr/lib/client.js +6 -4
  249. package/node_modules/@deepseek-ai/dsh-client-hmr/lib/index.js +8 -5
  250. package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +8 -8
  251. package/node_modules/@deepseek-ai/dsh-client-locale/README.i18n.yaml +2 -2
  252. package/node_modules/@deepseek-ai/dsh-client-locale/README.md +9 -1
  253. package/node_modules/@deepseek-ai/dsh-client-locale/README.zh.md +9 -1
  254. package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +225 -75
  255. package/node_modules/@deepseek-ai/dsh-client-locale/lib/index.js +9 -8
  256. package/node_modules/@deepseek-ai/dsh-client-locale/package.json +13 -11
  257. package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +2 -2
  258. package/node_modules/@deepseek-ai/dsh-client-modules/README.md +2 -1
  259. package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +2 -1
  260. package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +57 -36
  261. package/node_modules/@deepseek-ai/dsh-client-modules/lib/invariant.js +2 -2
  262. package/node_modules/@deepseek-ai/dsh-client-modules/package.json +8 -7
  263. package/node_modules/@deepseek-ai/dsh-client-resources/package.json +7 -6
  264. package/node_modules/@deepseek-ai/dsh-client-store/LICENSE +21 -0
  265. package/node_modules/@deepseek-ai/{dsh-client-ui-settings-unarchive-sessions → dsh-client-store}/README.i18n.yaml +3 -3
  266. package/node_modules/@deepseek-ai/dsh-client-store/README.md +48 -0
  267. package/node_modules/@deepseek-ai/dsh-client-store/README.zh.md +48 -0
  268. package/node_modules/@deepseek-ai/dsh-client-store/lib/index.js +180 -0
  269. package/node_modules/@deepseek-ai/dsh-client-store/lib/types/contract.d.ts +121 -0
  270. package/node_modules/@deepseek-ai/dsh-client-store/lib/types/index.d.ts +92 -0
  271. package/node_modules/@deepseek-ai/dsh-client-store/package.json +37 -0
  272. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.i18n.yaml +2 -2
  273. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.md +13 -31
  274. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.zh.md +22 -40
  275. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +865 -1033
  276. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +21 -19
  277. package/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/client.js +3 -3
  278. package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +14 -14
  279. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.i18n.yaml +2 -2
  280. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.md +1 -1
  281. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.zh.md +1 -1
  282. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +28 -8
  283. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +11 -11
  284. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +6 -6
  285. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +2 -2
  286. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +62 -10
  287. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +60 -10
  288. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +4808 -1393
  289. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/index.js +37 -10
  290. package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +41 -37
  291. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +2 -2
  292. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +2 -0
  293. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +2 -0
  294. package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +20 -12
  295. package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +17 -16
  296. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +2 -2
  297. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +19 -5
  298. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +19 -5
  299. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +1321 -349
  300. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/index.js +9 -8
  301. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +34 -32
  302. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.i18n.yaml +2 -2
  303. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.md +2 -2
  304. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.zh.md +2 -2
  305. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +28 -25
  306. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +14 -14
  307. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +2 -2
  308. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +14 -7
  309. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +14 -7
  310. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +628 -497
  311. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/index.js +17 -8
  312. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +31 -28
  313. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/lib/client.js +7 -7
  314. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +9 -9
  315. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +5 -5
  316. package/node_modules/@deepseek-ai/dsh-client-ui-goal/README.i18n.yaml +2 -2
  317. package/node_modules/@deepseek-ai/dsh-client-ui-goal/README.md +3 -1
  318. package/node_modules/@deepseek-ai/dsh-client-ui-goal/README.zh.md +3 -1
  319. package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +18 -9
  320. package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +16 -16
  321. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +13 -7
  322. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +14 -13
  323. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.i18n.yaml +2 -2
  324. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.md +25 -18
  325. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.zh.md +29 -22
  326. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +413 -63
  327. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/index.js +5 -5
  328. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +26 -23
  329. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.i18n.yaml +2 -2
  330. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.md +6 -2
  331. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.zh.md +6 -2
  332. package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +75 -4
  333. package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +10 -9
  334. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/README.i18n.yaml +2 -2
  335. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/README.md +3 -3
  336. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/README.zh.md +3 -3
  337. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/lib/client.js +15 -13
  338. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +18 -17
  339. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +2 -2
  340. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +4 -0
  341. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +4 -0
  342. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +12 -9
  343. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +17 -16
  344. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.i18n.yaml +2 -2
  345. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +20 -8
  346. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +20 -8
  347. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +530 -195
  348. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +25 -15
  349. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/README.i18n.yaml +2 -2
  350. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/README.md +1 -1
  351. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/README.zh.md +1 -1
  352. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/lib/client.js +39 -100
  353. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +17 -16
  354. package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.i18n.yaml +2 -2
  355. package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.md +7 -5
  356. package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.zh.md +8 -6
  357. package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +73 -60
  358. package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +22 -21
  359. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +2 -2
  360. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +29 -8
  361. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +29 -8
  362. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +1095 -381
  363. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +16 -12
  364. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.i18n.yaml +2 -2
  365. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.md +25 -11
  366. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.zh.md +25 -11
  367. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ConnectionIndicator.module.css +1 -10
  368. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/HoverCard.module.css +27 -0
  369. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Menu.module.css +68 -48
  370. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Modal.module.css +6 -2
  371. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/OnboardingSurface.module.css +1 -2
  372. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/PathLabel.module.css +28 -0
  373. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/RiskConfirmation.module.css +1 -1
  374. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SegmentedControl.module.css +76 -0
  375. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SegmentedTabs.module.css +55 -0
  376. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/StateDot.module.css +64 -37
  377. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/TerminalBlock.module.css +13 -6
  378. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/TextShimmer.module.css +27 -0
  379. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Toast.module.css +31 -2
  380. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Tooltip.module.css +12 -0
  381. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +5418 -2739
  382. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/MarkdownText.module.css +1 -1
  383. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/settings-form/SettingsForm.module.css +53 -0
  384. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/settings-form/fields.module.css +145 -0
  385. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ConfigField.d.ts +33 -0
  386. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DisclosureRow.d.ts +4 -1
  387. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/HoverCard.d.ts +14 -4
  388. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/LinkIcon.d.ts +15 -30
  389. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Menu.d.ts +50 -5
  390. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/PathLabel.d.ts +13 -0
  391. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/PermissionIcon.d.ts +39 -0
  392. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ReferenceIcon.d.ts +12 -7
  393. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SegmentedControl.d.ts +35 -0
  394. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SegmentedTabs.d.ts +26 -0
  395. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SiteGlyph.d.ts +1 -1
  396. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/StateDot.d.ts +6 -4
  397. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/TerminalBlock.d.ts +15 -3
  398. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/TextShimmer.d.ts +13 -0
  399. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Toast.d.ts +19 -2
  400. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Tooltip.d.ts +12 -2
  401. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-file-types.d.ts +1 -1
  402. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-highlighting.d.ts +19 -0
  403. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/index.d.ts +376 -195
  404. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/props.d.ts +1 -1
  405. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/shared-artwork.d.ts +36 -0
  406. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/index.d.ts +21 -4
  407. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/overlay-top-margin.d.ts +14 -0
  408. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/plugin-artwork.d.ts +17 -0
  409. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/SettingsForm.d.ts +46 -0
  410. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/fields.d.ts +69 -0
  411. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/form-model.d.ts +214 -0
  412. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useAnchoredMaxHeight.d.ts +4 -1
  413. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useAnchoredPosition.d.ts +3 -1
  414. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +5 -3
  415. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.i18n.yaml +2 -2
  416. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.md +2 -0
  417. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.zh.md +2 -0
  418. package/node_modules/@deepseek-ai/dsh-client-ui-reference/lib/client.js +12 -3
  419. package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +15 -15
  420. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/lib/client.js +7 -5
  421. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +5 -5
  422. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.i18n.yaml +2 -2
  423. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +1 -1
  424. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +1 -1
  425. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +7 -8
  426. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +12 -12
  427. package/node_modules/@deepseek-ai/dsh-client-ui-session/README.i18n.yaml +2 -2
  428. package/node_modules/@deepseek-ai/dsh-client-ui-session/README.md +2 -0
  429. package/node_modules/@deepseek-ai/dsh-client-ui-session/README.zh.md +2 -0
  430. package/node_modules/@deepseek-ai/dsh-client-ui-session/lib/client.js +2 -3
  431. package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +10 -9
  432. package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.i18n.yaml +2 -2
  433. package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.md +20 -11
  434. package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.zh.md +20 -11
  435. package/node_modules/@deepseek-ai/dsh-client-ui-settings/lib/client.js +281 -117
  436. package/node_modules/@deepseek-ai/dsh-client-ui-settings/lib/index.js +18 -4
  437. package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +13 -10
  438. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.i18n.yaml +6 -0
  439. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.md +75 -0
  440. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.zh.md +75 -0
  441. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2383 -0
  442. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/index.js +28 -0
  443. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +69 -0
  444. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/README.i18n.yaml +6 -0
  445. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/README.md +78 -0
  446. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/README.zh.md +78 -0
  447. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/lib/client.js +175 -0
  448. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/lib/index.js +12 -0
  449. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +60 -0
  450. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.i18n.yaml +2 -2
  451. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +17 -6
  452. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +17 -6
  453. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +166 -36
  454. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/index.js +8 -8
  455. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +19 -15
  456. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +2 -2
  457. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +14 -11
  458. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +25 -22
  459. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +1246 -180
  460. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/index.js +24 -4
  461. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +15 -10
  462. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.i18n.yaml +2 -2
  463. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.md +5 -3
  464. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.zh.md +5 -3
  465. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +116 -61
  466. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +14 -12
  467. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.i18n.yaml +2 -2
  468. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.md +11 -46
  469. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.zh.md +15 -50
  470. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +15 -1753
  471. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +10 -14
  472. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/README.i18n.yaml +6 -0
  473. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/README.md +78 -0
  474. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/README.zh.md +78 -0
  475. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/lib/client.js +199 -0
  476. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/lib/index.js +12 -0
  477. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +60 -0
  478. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +9 -8
  479. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/README.i18n.yaml +6 -0
  480. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/README.md +82 -0
  481. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/README.zh.md +82 -0
  482. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/lib/client.js +857 -0
  483. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/lib/index.js +13 -0
  484. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +61 -0
  485. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.i18n.yaml +6 -0
  486. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.md +79 -0
  487. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.zh.md +79 -0
  488. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/lib/client.js +324 -0
  489. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/lib/index.js +13 -0
  490. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +61 -0
  491. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +2 -2
  492. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +2 -2
  493. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +2 -2
  494. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +35 -28
  495. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +12 -13
  496. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.i18n.yaml +2 -2
  497. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.md +13 -12
  498. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.zh.md +13 -12
  499. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/lib/client.js +1191 -429
  500. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +16 -9
  501. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +2 -2
  502. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +46 -20
  503. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +46 -20
  504. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.excel.js +133782 -0
  505. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +3766 -789
  506. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.pdf.js +37 -15
  507. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/index.js +13 -6
  508. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +34 -21
  509. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.i18n.yaml +2 -2
  510. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.md +11 -9
  511. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.zh.md +11 -9
  512. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/client.js +316 -106
  513. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +15 -13
  514. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +2 -2
  515. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +10 -7
  516. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +10 -7
  517. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +323 -111
  518. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +15 -14
  519. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.i18n.yaml +2 -2
  520. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.md +3 -3
  521. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.zh.md +3 -3
  522. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.js +24 -141
  523. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.terminal.js +1 -1
  524. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +16 -15
  525. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.i18n.yaml +2 -2
  526. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.md +3 -1
  527. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.zh.md +3 -1
  528. package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +25 -24
  529. package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +15 -15
  530. package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +4 -4
  531. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.i18n.yaml +2 -2
  532. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.md +13 -7
  533. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.zh.md +13 -7
  534. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +168 -260
  535. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +19 -19
  536. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.i18n.yaml +2 -2
  537. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +6 -4
  538. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +6 -4
  539. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +172 -70
  540. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/index.js +14 -27
  541. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/styles/Montserrat-OFL.txt +93 -0
  542. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/styles/brand-font.css +24 -0
  543. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/styles/montserrat-light.woff2 +0 -0
  544. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/styles/montserrat-medium.woff2 +0 -0
  545. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/styles/montserrat-regular.woff2 +0 -0
  546. package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +17 -15
  547. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +2 -2
  548. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +10 -2
  549. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +10 -2
  550. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +1887 -204
  551. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +24 -23
  552. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.i18n.yaml +2 -2
  553. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.md +3 -1
  554. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.zh.md +3 -1
  555. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +32 -44
  556. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +18 -17
  557. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.i18n.yaml +2 -2
  558. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.md +1 -1
  559. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.zh.md +1 -1
  560. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +19 -13
  561. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +20 -19
  562. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.i18n.yaml +2 -2
  563. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.md +1 -1
  564. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.zh.md +1 -1
  565. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +9 -8
  566. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +16 -15
  567. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +2 -2
  568. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +102 -11
  569. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +102 -11
  570. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +2182 -1015
  571. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +26 -22
  572. package/node_modules/@deepseek-ai/dsh-cmdline/package.json +6 -6
  573. package/node_modules/@deepseek-ai/dsh-command-compact/package.json +12 -12
  574. package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +15 -15
  575. package/node_modules/@deepseek-ai/dsh-command-goal/package.json +14 -14
  576. package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +46 -18
  577. package/node_modules/@deepseek-ai/dsh-commands/package.json +20 -20
  578. package/node_modules/@deepseek-ai/dsh-compaction/lib/index.js +2 -5
  579. package/node_modules/@deepseek-ai/dsh-compaction/lib/invariant.js +4 -22
  580. package/node_modules/@deepseek-ai/dsh-compaction/lib/types/checkpoint.js +2 -2
  581. package/node_modules/@deepseek-ai/dsh-compaction/lib/types/invariant.js +2 -3
  582. package/node_modules/@deepseek-ai/dsh-compaction/package.json +13 -13
  583. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.i18n.yaml +2 -2
  584. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.md +9 -8
  585. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.zh.md +9 -8
  586. package/node_modules/@deepseek-ai/dsh-compaction-basic/lib/index.js +50 -19
  587. package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +27 -27
  588. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/lib/index.js +1 -7
  589. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/lib/types/image-offload.js +0 -3
  590. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/lib/types/project-message.js +0 -5
  591. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +18 -18
  592. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/lib/index.js +3 -7
  593. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +18 -18
  594. package/node_modules/@deepseek-ai/dsh-config-editor/README.i18n.yaml +6 -0
  595. package/node_modules/@deepseek-ai/dsh-config-editor/README.md +79 -0
  596. package/node_modules/@deepseek-ai/dsh-config-editor/README.zh.md +79 -0
  597. package/node_modules/@deepseek-ai/dsh-config-editor/lib/index.js +132 -0
  598. package/node_modules/@deepseek-ai/dsh-config-editor/package.json +54 -0
  599. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +878 -170
  600. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +9 -9
  601. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/index.js +6 -68
  602. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +107 -51
  603. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.remote-client.js +15 -15
  604. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/types/index.js +5 -6
  605. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/types/sandbox.js +0 -27
  606. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +20 -20
  607. package/node_modules/@deepseek-ai/dsh-credentials/package.json +6 -6
  608. package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +12 -12
  609. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.i18n.yaml +6 -0
  610. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.md +63 -0
  611. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.zh.md +63 -0
  612. package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/index.js +35 -0
  613. package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/types/index.js +36 -0
  614. package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/types/types.js +2 -0
  615. package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +42 -0
  616. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.i18n.yaml +6 -0
  617. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.md +96 -0
  618. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.zh.md +96 -0
  619. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/index.js +891 -0
  620. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/details.js +55 -0
  621. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/index.js +488 -0
  622. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/logout.js +34 -0
  623. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/protocol.js +210 -0
  624. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/types.js +2 -0
  625. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/package.json +52 -0
  626. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.i18n.yaml +2 -2
  627. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.md +1 -1
  628. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.zh.md +1 -1
  629. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +3 -3
  630. package/node_modules/@deepseek-ai/dsh-deque/package.json +3 -3
  631. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.i18n.yaml +2 -2
  632. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.md +8 -4
  633. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.zh.md +8 -4
  634. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/index.js +14 -74
  635. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/invariant.js +6 -8
  636. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.host.js +51 -189
  637. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.remote-client.js +3 -151
  638. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/client.js +1 -1
  639. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/index.js +0 -41
  640. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/projection.js +10 -10
  641. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/roster.js +8 -4
  642. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/locale/en.json +6 -0
  643. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/locale/zh.json +6 -0
  644. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +28 -26
  645. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.i18n.yaml +2 -2
  646. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.md +16 -4
  647. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.zh.md +16 -4
  648. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/cordis.patch.yml +3 -0
  649. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/icon.svg +12 -0
  650. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/en.json +6 -0
  651. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/zh.json +6 -0
  652. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +12 -7
  653. package/node_modules/@deepseek-ai/{dsh-experimental-agent-team-web-profile → dsh-experimental-api-speech-to-text}/README.i18n.yaml +3 -3
  654. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/README.md +78 -0
  655. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/README.zh.md +78 -0
  656. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/index.js +218 -0
  657. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/typert.host.js +432 -0
  658. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/typert.remote-client.js +311 -0
  659. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/types/index.js +142 -0
  660. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/types/types.js +2 -0
  661. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +60 -0
  662. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.i18n.yaml +2 -2
  663. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.md +11 -9
  664. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.zh.md +11 -9
  665. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/lib/client.js +127 -562
  666. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/locale/en.json +6 -0
  667. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/locale/zh.json +6 -0
  668. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +30 -27
  669. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.i18n.yaml +6 -0
  670. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.md +76 -0
  671. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.zh.md +76 -0
  672. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/client.js +5714 -0
  673. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/index.js +6 -0
  674. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +92 -0
  675. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.i18n.yaml +6 -0
  676. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.md +80 -0
  677. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.zh.md +80 -0
  678. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/index.js +200 -0
  679. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/types/index.js +181 -0
  680. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/types/types.js +2 -0
  681. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/types/wave.js +24 -0
  682. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +57 -0
  683. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.i18n.yaml +6 -0
  684. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.md +82 -0
  685. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.zh.md +82 -0
  686. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/lib/index.js +818 -0
  687. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/lib/worker.js +219 -0
  688. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +53 -0
  689. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/runtime/assets.json +28 -0
  690. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.i18n.yaml +2 -2
  691. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.md +3 -3
  692. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.zh.md +3 -3
  693. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/lib/index.js +23 -24
  694. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/locale/en.json +6 -0
  695. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/locale/zh.json +6 -0
  696. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +27 -25
  697. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/README.i18n.yaml +6 -0
  698. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/README.md +77 -0
  699. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/README.zh.md +77 -0
  700. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/cordis.patch.yml +13 -0
  701. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/icon.svg +9 -0
  702. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/locale/en.json +6 -0
  703. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/locale/zh.json +6 -0
  704. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +54 -0
  705. package/node_modules/@deepseek-ai/dsh-file-reference/README.i18n.yaml +2 -2
  706. package/node_modules/@deepseek-ai/dsh-file-reference/README.md +1 -1
  707. package/node_modules/@deepseek-ai/dsh-file-reference/README.zh.md +1 -1
  708. package/node_modules/@deepseek-ai/dsh-file-reference/package.json +5 -5
  709. package/node_modules/@deepseek-ai/dsh-file-reference-local/README.i18n.yaml +2 -2
  710. package/node_modules/@deepseek-ai/dsh-file-reference-local/README.md +3 -4
  711. package/node_modules/@deepseek-ai/dsh-file-reference-local/README.zh.md +3 -4
  712. package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +12 -12
  713. package/node_modules/@deepseek-ai/dsh-fs/README.i18n.yaml +2 -2
  714. package/node_modules/@deepseek-ai/dsh-fs/README.md +7 -5
  715. package/node_modules/@deepseek-ai/dsh-fs/README.zh.md +7 -5
  716. package/node_modules/@deepseek-ai/dsh-fs/lib/index.js +12 -0
  717. package/node_modules/@deepseek-ai/dsh-fs/package.json +11 -11
  718. package/node_modules/@deepseek-ai/dsh-fs-local/README.i18n.yaml +2 -2
  719. package/node_modules/@deepseek-ai/dsh-fs-local/README.md +6 -3
  720. package/node_modules/@deepseek-ai/dsh-fs-local/README.zh.md +6 -3
  721. package/node_modules/@deepseek-ai/dsh-fs-local/lib/index.js +27 -0
  722. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +8 -7
  723. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +6 -6
  724. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.i18n.yaml +2 -2
  725. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.md +1 -1
  726. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.zh.md +1 -1
  727. package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +12 -12
  728. package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +46 -18
  729. package/node_modules/@deepseek-ai/dsh-goal/package.json +25 -25
  730. package/node_modules/@deepseek-ai/dsh-goal-round-driver/lib/index.js +2 -3
  731. package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +17 -17
  732. package/node_modules/@deepseek-ai/dsh-headless/lib/index.js +1 -1
  733. package/node_modules/@deepseek-ai/dsh-headless/lib/{json-stream-Bh4BGGk9.js → json-stream-BA-F3lfb.js} +4 -4
  734. package/node_modules/@deepseek-ai/dsh-headless/lib/startup.js +1 -1
  735. package/node_modules/@deepseek-ai/dsh-headless/package.json +22 -22
  736. package/node_modules/@deepseek-ai/dsh-hmr/README.i18n.yaml +2 -2
  737. package/node_modules/@deepseek-ai/dsh-hmr/README.md +1 -1
  738. package/node_modules/@deepseek-ai/dsh-hmr/README.zh.md +1 -1
  739. package/node_modules/@deepseek-ai/dsh-hmr/package.json +15 -15
  740. package/node_modules/@deepseek-ai/dsh-home-paths/package.json +3 -3
  741. package/node_modules/@deepseek-ai/dsh-hook-protocol/lib/index.js +1 -1
  742. package/node_modules/@deepseek-ai/dsh-hook-protocol/package.json +9 -9
  743. package/node_modules/@deepseek-ai/dsh-hooks-claude-code/lib/index.js +4 -7
  744. package/node_modules/@deepseek-ai/dsh-hooks-claude-code/package.json +23 -23
  745. package/node_modules/@deepseek-ai/dsh-hooks-codex/lib/index.js +3 -6
  746. package/node_modules/@deepseek-ai/dsh-hooks-codex/package.json +21 -21
  747. package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +3 -3
  748. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +18 -18
  749. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +5 -5
  750. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +5 -5
  751. package/node_modules/@deepseek-ai/dsh-host-frontend-static/README.i18n.yaml +2 -2
  752. package/node_modules/@deepseek-ai/dsh-host-frontend-static/README.md +3 -1
  753. package/node_modules/@deepseek-ai/dsh-host-frontend-static/README.zh.md +3 -1
  754. package/node_modules/@deepseek-ai/dsh-host-frontend-static/lib/index.js +1 -1
  755. package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +10 -10
  756. package/node_modules/@deepseek-ai/dsh-host-open-in-app/README.i18n.yaml +2 -2
  757. package/node_modules/@deepseek-ai/dsh-host-open-in-app/README.md +2 -0
  758. package/node_modules/@deepseek-ai/dsh-host-open-in-app/README.zh.md +2 -0
  759. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/index.js +28 -81
  760. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/types/icons.js +4 -49
  761. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/types/index.js +8 -8
  762. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/types/resolver.js +8 -27
  763. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/types/shared.js +16 -7
  764. package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +9 -9
  765. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/README.i18n.yaml +2 -2
  766. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/README.md +8 -4
  767. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/README.zh.md +8 -4
  768. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/index.js +19 -11
  769. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/typert.host.js +23 -4
  770. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/typert.remote-client.js +23 -4
  771. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/types/index.js +18 -10
  772. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +14 -12
  773. package/node_modules/@deepseek-ai/dsh-host-webserver/README.i18n.yaml +2 -2
  774. package/node_modules/@deepseek-ai/dsh-host-webserver/README.md +1 -1
  775. package/node_modules/@deepseek-ai/dsh-host-webserver/README.zh.md +1 -1
  776. package/node_modules/@deepseek-ai/dsh-host-webserver/lib/index.js +1 -0
  777. package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +4 -4
  778. package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +4 -4
  779. package/node_modules/@deepseek-ai/dsh-invariants/README.i18n.yaml +2 -2
  780. package/node_modules/@deepseek-ai/dsh-invariants/README.md +1 -1
  781. package/node_modules/@deepseek-ai/dsh-invariants/README.zh.md +1 -1
  782. package/node_modules/@deepseek-ai/dsh-invariants/package.json +4 -4
  783. package/node_modules/@deepseek-ai/dsh-jobs/README.i18n.yaml +2 -2
  784. package/node_modules/@deepseek-ai/dsh-jobs/README.md +18 -11
  785. package/node_modules/@deepseek-ai/dsh-jobs/README.zh.md +18 -11
  786. package/node_modules/@deepseek-ai/dsh-jobs/lib/index.js +74 -16
  787. package/node_modules/@deepseek-ai/dsh-jobs/lib/invariant.js +67 -17
  788. package/node_modules/@deepseek-ai/dsh-jobs/lib/types/archive-admission.js +43 -0
  789. package/node_modules/@deepseek-ai/dsh-jobs/lib/types/index.js +34 -16
  790. package/node_modules/@deepseek-ai/dsh-jobs/lib/types/invariant.js +90 -27
  791. package/node_modules/@deepseek-ai/dsh-jobs/lib/types/types.js +3 -2
  792. package/node_modules/@deepseek-ai/dsh-jobs/lib/types/view.js +9 -0
  793. package/node_modules/@deepseek-ai/dsh-jobs/package.json +22 -11
  794. package/node_modules/@deepseek-ai/dsh-jobs-local/README.i18n.yaml +2 -2
  795. package/node_modules/@deepseek-ai/dsh-jobs-local/README.md +18 -11
  796. package/node_modules/@deepseek-ai/dsh-jobs-local/README.zh.md +17 -10
  797. package/node_modules/@deepseek-ai/dsh-jobs-local/lib/index.js +566 -193
  798. package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +16 -16
  799. package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +3 -3
  800. package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +3 -3
  801. package/node_modules/@deepseek-ai/dsh-llm/README.i18n.yaml +2 -2
  802. package/node_modules/@deepseek-ai/dsh-llm/README.md +11 -8
  803. package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +11 -8
  804. package/node_modules/@deepseek-ai/dsh-llm/lib/index.js +41 -97
  805. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +69 -13
  806. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.remote-client.js +3 -3
  807. package/node_modules/@deepseek-ai/dsh-llm/lib/types/assembler.js +4 -4
  808. package/node_modules/@deepseek-ai/dsh-llm/lib/types/content.js +12 -64
  809. package/node_modules/@deepseek-ai/dsh-llm/lib/types/index.js +3 -1
  810. package/node_modules/@deepseek-ai/dsh-llm/lib/types/message.js +21 -16
  811. package/node_modules/@deepseek-ai/dsh-llm/package.json +11 -11
  812. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.i18n.yaml +2 -2
  813. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.md +35 -49
  814. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.zh.md +36 -50
  815. package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +1132 -2048
  816. package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +53 -43
  817. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +2 -2
  818. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.md +12 -9
  819. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.zh.md +11 -8
  820. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +84 -184
  821. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +30 -24
  822. package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +25 -25
  823. package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +23 -23
  824. package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +14 -14
  825. package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +19 -19
  826. package/node_modules/@deepseek-ai/dsh-native-command/README.i18n.yaml +2 -2
  827. package/node_modules/@deepseek-ai/dsh-native-command/README.md +8 -9
  828. package/node_modules/@deepseek-ai/dsh-native-command/README.zh.md +8 -9
  829. package/node_modules/@deepseek-ai/dsh-native-command/lib/index.js +612 -3
  830. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/desktop-entry.js +79 -0
  831. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/file-applications-linux.js +70 -0
  832. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/file-applications-windows.js +228 -0
  833. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/file-applications.js +191 -0
  834. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/index.js +10 -0
  835. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/path-opener.js +230 -0
  836. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/runner.js +27 -0
  837. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/types.js +25 -0
  838. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/url-opener.js +88 -0
  839. package/node_modules/@deepseek-ai/dsh-native-command/package.json +10 -5
  840. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/lib/index.js +33 -57
  841. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +15 -15
  842. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.i18n.yaml +2 -2
  843. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.md +2 -2
  844. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.zh.md +2 -2
  845. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/index.js +4 -4
  846. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/typert.host.js +41 -3
  847. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/typert.remote-client.js +39 -1
  848. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/types/index.js +4 -3
  849. package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +11 -11
  850. package/node_modules/@deepseek-ai/dsh-output-retention/package.json +3 -3
  851. package/node_modules/@deepseek-ai/dsh-package-manifest/README.i18n.yaml +2 -2
  852. package/node_modules/@deepseek-ai/dsh-package-manifest/README.md +3 -1
  853. package/node_modules/@deepseek-ai/dsh-package-manifest/README.zh.md +3 -1
  854. package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +3 -3
  855. package/node_modules/@deepseek-ai/dsh-permission-presets/README.i18n.yaml +2 -2
  856. package/node_modules/@deepseek-ai/dsh-permission-presets/README.md +1 -1
  857. package/node_modules/@deepseek-ai/dsh-permission-presets/README.zh.md +1 -1
  858. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/index.js +16 -35
  859. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +54 -20
  860. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.remote-client.js +7 -1
  861. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/types/index.js +14 -38
  862. package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +23 -24
  863. package/node_modules/@deepseek-ai/dsh-persona/README.i18n.yaml +2 -2
  864. package/node_modules/@deepseek-ai/dsh-persona/README.md +1 -1
  865. package/node_modules/@deepseek-ai/dsh-persona/README.zh.md +1 -1
  866. package/node_modules/@deepseek-ai/dsh-persona/package.json +7 -7
  867. package/node_modules/@deepseek-ai/dsh-plan-mode/lib/index.js +1 -2
  868. package/node_modules/@deepseek-ai/dsh-plan-mode/lib/types/index.js +1 -1
  869. package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +24 -24
  870. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +2 -2
  871. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +12 -2
  872. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +12 -2
  873. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +371 -74
  874. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +203 -29
  875. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +155 -15
  876. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +210 -70
  877. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-failure.js +1 -1
  878. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-spec.js +16 -2
  879. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +35 -5
  880. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/registry.js +95 -0
  881. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/tools.js +5 -1
  882. package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +37 -32
  883. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/README.i18n.yaml +2 -2
  884. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/README.md +1 -1
  885. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/README.zh.md +1 -1
  886. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/lib/index.js +1 -1
  887. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/lib/types/index.js +1 -1
  888. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +20 -20
  889. package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +5 -5
  890. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +23 -23
  891. package/node_modules/@deepseek-ai/dsh-pwsh-local/README.i18n.yaml +2 -2
  892. package/node_modules/@deepseek-ai/dsh-pwsh-local/README.md +6 -5
  893. package/node_modules/@deepseek-ai/dsh-pwsh-local/README.zh.md +6 -5
  894. package/node_modules/@deepseek-ai/dsh-pwsh-local/lib/index.js +161 -196
  895. package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +11 -13
  896. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/README.i18n.yaml +2 -2
  897. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/README.md +5 -5
  898. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/README.zh.md +5 -5
  899. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/lib/index.js +58 -63
  900. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +14 -14
  901. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/lib/index.js +36 -60
  902. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +12 -12
  903. package/node_modules/@deepseek-ai/dsh-sandbox/package.json +8 -8
  904. package/node_modules/@deepseek-ai/dsh-sandbox-local/README.i18n.yaml +3 -3
  905. package/node_modules/@deepseek-ai/dsh-sandbox-local/README.md +3 -3
  906. package/node_modules/@deepseek-ai/dsh-sandbox-local/README.zh.md +3 -3
  907. package/node_modules/@deepseek-ai/dsh-sandbox-local/lib/index.js +3 -2
  908. package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +12 -12
  909. package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +16 -16
  910. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.i18n.yaml +3 -3
  911. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.md +19 -15
  912. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.zh.md +17 -13
  913. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/index.js +1 -1
  914. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/runner.js +1 -1
  915. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/{types-CutH1Lgc.js → types-DxezulnA.js} +267 -78
  916. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +10 -10
  917. package/node_modules/@deepseek-ai/dsh-schedule/README.i18n.yaml +2 -2
  918. package/node_modules/@deepseek-ai/dsh-schedule/README.md +3 -1
  919. package/node_modules/@deepseek-ai/dsh-schedule/README.zh.md +4 -1
  920. package/node_modules/@deepseek-ai/dsh-schedule/lib/index.js +104 -37
  921. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/index.js +61 -5
  922. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/runtime.js +11 -1
  923. package/node_modules/@deepseek-ai/dsh-schedule/package.json +25 -23
  924. package/node_modules/@deepseek-ai/dsh-scope/package.json +5 -5
  925. package/node_modules/@deepseek-ai/dsh-sdk-app/README.i18n.yaml +2 -2
  926. package/node_modules/@deepseek-ai/dsh-sdk-app/README.md +2 -0
  927. package/node_modules/@deepseek-ai/dsh-sdk-app/README.zh.md +2 -0
  928. package/node_modules/@deepseek-ai/dsh-sdk-app/cordis.patch.yml +15 -0
  929. package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +10 -8
  930. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/index.js +1 -1
  931. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +25 -25
  932. package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +31 -31
  933. package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +9 -9
  934. package/node_modules/@deepseek-ai/dsh-session/README.i18n.yaml +2 -2
  935. package/node_modules/@deepseek-ai/dsh-session/README.md +11 -9
  936. package/node_modules/@deepseek-ai/dsh-session/README.zh.md +12 -8
  937. package/node_modules/@deepseek-ai/dsh-session/lib/index.js +215 -125
  938. package/node_modules/@deepseek-ai/dsh-session/lib/invariant.js +4 -1
  939. package/node_modules/@deepseek-ai/dsh-session/lib/types/fork.js +28 -0
  940. package/node_modules/@deepseek-ai/dsh-session/lib/types/index.js +56 -61
  941. package/node_modules/@deepseek-ai/dsh-session/lib/types/invariant.js +5 -1
  942. package/node_modules/@deepseek-ai/dsh-session/lib/types/known-event-types.js +1 -0
  943. package/node_modules/@deepseek-ai/dsh-session/lib/types/repair.js +52 -23
  944. package/node_modules/@deepseek-ai/dsh-session/lib/types/surface.js +73 -17
  945. package/node_modules/@deepseek-ai/dsh-session/lib/types/types.js +1 -1
  946. package/node_modules/@deepseek-ai/dsh-session/package.json +15 -11
  947. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +18 -18
  948. package/node_modules/@deepseek-ai/dsh-session-format/package.json +4 -4
  949. package/node_modules/@deepseek-ai/dsh-session-format-catalog/README.i18n.yaml +2 -2
  950. package/node_modules/@deepseek-ai/dsh-session-format-catalog/README.md +5 -1
  951. package/node_modules/@deepseek-ai/dsh-session-format-catalog/README.zh.md +5 -1
  952. package/node_modules/@deepseek-ai/dsh-session-format-catalog/lib/index.js +55 -10
  953. package/node_modules/@deepseek-ai/dsh-session-format-catalog/lib/types/children.js +17 -0
  954. package/node_modules/@deepseek-ai/dsh-session-format-catalog/lib/types/generated.js +25 -11
  955. package/node_modules/@deepseek-ai/dsh-session-format-catalog/lib/types/historical.js +20 -0
  956. package/node_modules/@deepseek-ai/dsh-session-format-catalog/lib/types/index.js +2 -0
  957. package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +11 -10
  958. package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +6 -6
  959. package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +8 -8
  960. package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +6 -6
  961. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.i18n.yaml +6 -0
  962. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.md +350 -0
  963. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.zh.md +350 -0
  964. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/lib/index.js +1552 -0
  965. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/package.json +51 -0
  966. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/index.js +1 -0
  967. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/types/index.js +1 -0
  968. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +19 -19
  969. package/node_modules/@deepseek-ai/dsh-session-log-export/README.i18n.yaml +2 -2
  970. package/node_modules/@deepseek-ai/dsh-session-log-export/README.md +6 -2
  971. package/node_modules/@deepseek-ai/dsh-session-log-export/README.zh.md +6 -2
  972. package/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +43 -20
  973. package/node_modules/@deepseek-ai/dsh-session-log-export/lib/index.js +48 -17
  974. package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +25 -23
  975. package/node_modules/@deepseek-ai/dsh-session-persistence/lib/index.js +2 -0
  976. package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +11 -11
  977. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/README.i18n.yaml +2 -2
  978. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/README.md +6 -2
  979. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/README.zh.md +6 -2
  980. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/index.js +210 -45
  981. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +1456 -313
  982. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +14 -14
  983. package/node_modules/@deepseek-ai/dsh-session-projection/package.json +5 -5
  984. package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.i18n.yaml +2 -2
  985. package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.md +2 -2
  986. package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.zh.md +2 -2
  987. package/node_modules/@deepseek-ai/dsh-session-projection-cache/lib/index.js +71 -51
  988. package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +13 -13
  989. package/node_modules/@deepseek-ai/dsh-session-query/lib/index.js +4 -5
  990. package/node_modules/@deepseek-ai/dsh-session-query/package.json +20 -20
  991. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +13 -13
  992. package/node_modules/@deepseek-ai/dsh-session-reference/lib/index.js +5 -5
  993. package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +47 -19
  994. package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.remote-client.js +1 -1
  995. package/node_modules/@deepseek-ai/dsh-session-reference/lib/types/index.js +3 -7
  996. package/node_modules/@deepseek-ai/dsh-session-reference/lib/types/projection.js +1 -0
  997. package/node_modules/@deepseek-ai/dsh-session-reference/package.json +39 -39
  998. package/node_modules/@deepseek-ai/dsh-session-stats/package.json +11 -11
  999. package/node_modules/@deepseek-ai/dsh-session-telemetry/README.i18n.yaml +2 -2
  1000. package/node_modules/@deepseek-ai/dsh-session-telemetry/README.md +1 -1
  1001. package/node_modules/@deepseek-ai/dsh-session-telemetry/README.zh.md +1 -1
  1002. package/node_modules/@deepseek-ai/dsh-session-telemetry/lib/index.js +6 -5
  1003. package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +7 -7
  1004. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +23 -23
  1005. package/node_modules/@deepseek-ai/dsh-session-title/package.json +19 -19
  1006. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +17 -17
  1007. package/node_modules/@deepseek-ai/dsh-session-title-llm/lib/index.js +1 -4
  1008. package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +13 -13
  1009. package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +11 -11
  1010. package/node_modules/@deepseek-ai/dsh-settings/README.i18n.yaml +2 -2
  1011. package/node_modules/@deepseek-ai/dsh-settings/README.md +19 -96
  1012. package/node_modules/@deepseek-ai/dsh-settings/README.zh.md +25 -102
  1013. package/node_modules/@deepseek-ai/dsh-settings/lib/index.js +360 -426
  1014. package/node_modules/@deepseek-ai/dsh-settings/lib/types/index.js +271 -512
  1015. package/node_modules/@deepseek-ai/dsh-settings/lib/types/redact.js +14 -8
  1016. package/node_modules/@deepseek-ai/dsh-settings/lib/types/schema.js +85 -0
  1017. package/node_modules/@deepseek-ai/dsh-settings/lib/types/types.js +1 -9
  1018. package/node_modules/@deepseek-ai/dsh-settings/package.json +21 -17
  1019. package/node_modules/@deepseek-ai/dsh-shell/README.i18n.yaml +2 -2
  1020. package/node_modules/@deepseek-ai/dsh-shell/README.md +17 -10
  1021. package/node_modules/@deepseek-ai/dsh-shell/README.zh.md +17 -10
  1022. package/node_modules/@deepseek-ai/dsh-shell/lib/index.js +19 -21
  1023. package/node_modules/@deepseek-ai/dsh-shell/package.json +7 -9
  1024. package/node_modules/@deepseek-ai/dsh-shell-env/README.i18n.yaml +2 -2
  1025. package/node_modules/@deepseek-ai/dsh-shell-env/README.md +5 -5
  1026. package/node_modules/@deepseek-ai/dsh-shell-env/README.zh.md +5 -5
  1027. package/node_modules/@deepseek-ai/dsh-shell-env/lib/index.js +10 -1
  1028. package/node_modules/@deepseek-ai/dsh-shell-env/package.json +14 -12
  1029. package/node_modules/@deepseek-ai/dsh-skill/package.json +9 -9
  1030. package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +5 -5
  1031. package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +10 -10
  1032. package/node_modules/@deepseek-ai/dsh-skill-office/README.i18n.yaml +6 -0
  1033. package/node_modules/@deepseek-ai/dsh-skill-office/README.md +100 -0
  1034. package/node_modules/@deepseek-ai/dsh-skill-office/README.zh.md +100 -0
  1035. package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-docx/SKILL.md +46 -0
  1036. package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-pptx/SKILL.md +70 -0
  1037. package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-xlsx/SKILL.md +56 -0
  1038. package/node_modules/@deepseek-ai/dsh-skill-office/assets/scripts/check_office.py +279 -0
  1039. package/node_modules/@deepseek-ai/dsh-skill-office/lib/index.js +80 -0
  1040. package/node_modules/@deepseek-ai/dsh-skill-office/package.json +43 -0
  1041. package/node_modules/@deepseek-ai/dsh-spill/package.json +9 -9
  1042. package/node_modules/@deepseek-ai/dsh-spill-local/package.json +11 -11
  1043. package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +21 -21
  1044. package/node_modules/@deepseek-ai/dsh-storage/package.json +3 -3
  1045. package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +8 -8
  1046. package/node_modules/@deepseek-ai/dsh-storage-json/package.json +6 -6
  1047. package/node_modules/@deepseek-ai/dsh-subagent/README.i18n.yaml +2 -2
  1048. package/node_modules/@deepseek-ai/dsh-subagent/README.md +9 -6
  1049. package/node_modules/@deepseek-ai/dsh-subagent/README.zh.md +9 -6
  1050. package/node_modules/@deepseek-ai/dsh-subagent/lib/index.js +301 -239
  1051. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +60 -89
  1052. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.remote-client.js +2 -56
  1053. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/archive-admission.js +151 -0
  1054. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/catalog.js +12 -6
  1055. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/control-types.js +2 -3
  1056. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/control.js +2 -40
  1057. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/index.js +29 -91
  1058. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/lifecycle.js +14 -19
  1059. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/list-children.js +45 -49
  1060. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/projection.js +10 -4
  1061. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/run-settlement.js +1 -1
  1062. package/node_modules/@deepseek-ai/dsh-subagent/package.json +57 -54
  1063. package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +24 -24
  1064. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +18 -18
  1065. package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +26 -26
  1066. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +20 -20
  1067. package/node_modules/@deepseek-ai/dsh-subprocess/package.json +6 -6
  1068. package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +9 -9
  1069. package/node_modules/@deepseek-ai/dsh-system-prompt/lib/index.js +3 -3
  1070. package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +10 -10
  1071. package/node_modules/@deepseek-ai/dsh-terminal/package.json +8 -8
  1072. package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +20 -20
  1073. package/node_modules/@deepseek-ai/dsh-time-context/lib/index.js +2 -3
  1074. package/node_modules/@deepseek-ai/dsh-time-context/lib/invariant.js +4 -4
  1075. package/node_modules/@deepseek-ai/dsh-time-context/package.json +23 -23
  1076. package/node_modules/@deepseek-ai/dsh-timeout/package.json +3 -3
  1077. package/node_modules/@deepseek-ai/dsh-tmux-context/lib/index.js +35 -57
  1078. package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +14 -14
  1079. package/node_modules/@deepseek-ai/dsh-token-meter/lib/index.js +0 -7
  1080. package/node_modules/@deepseek-ai/dsh-token-meter/lib/types/estimate.js +0 -3
  1081. package/node_modules/@deepseek-ai/dsh-token-meter/lib/types/surface-fold.js +0 -5
  1082. package/node_modules/@deepseek-ai/dsh-token-meter/package.json +17 -17
  1083. package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +11 -11
  1084. package/node_modules/@deepseek-ai/dsh-tool-bash/README.i18n.yaml +2 -2
  1085. package/node_modules/@deepseek-ai/dsh-tool-bash/README.md +16 -10
  1086. package/node_modules/@deepseek-ai/dsh-tool-bash/README.zh.md +16 -10
  1087. package/node_modules/@deepseek-ai/dsh-tool-bash/lib/index.js +421 -183
  1088. package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +32 -32
  1089. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/README.i18n.yaml +2 -2
  1090. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/README.md +1 -1
  1091. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/README.zh.md +1 -1
  1092. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/lib/index.js +9 -3
  1093. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +22 -22
  1094. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +9 -9
  1095. package/node_modules/@deepseek-ai/dsh-tool-cordis/README.i18n.yaml +2 -2
  1096. package/node_modules/@deepseek-ai/dsh-tool-cordis/README.md +6 -5
  1097. package/node_modules/@deepseek-ai/dsh-tool-cordis/README.zh.md +6 -5
  1098. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/index.js +4 -9980
  1099. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +7809 -0
  1100. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/config.js +93 -0
  1101. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/host.js +17 -0
  1102. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/index.js +57 -0
  1103. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/present.js +16 -0
  1104. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/providers.js +85 -0
  1105. package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +21 -12
  1106. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +30 -30
  1107. package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +23 -23
  1108. package/node_modules/@deepseek-ai/dsh-tool-goal/lib/index.js +1 -2
  1109. package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +20 -20
  1110. package/node_modules/@deepseek-ai/dsh-tool-jobs/README.i18n.yaml +2 -2
  1111. package/node_modules/@deepseek-ai/dsh-tool-jobs/README.md +9 -8
  1112. package/node_modules/@deepseek-ai/dsh-tool-jobs/README.zh.md +10 -9
  1113. package/node_modules/@deepseek-ai/dsh-tool-jobs/lib/index.js +110 -51
  1114. package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +18 -18
  1115. package/node_modules/@deepseek-ai/dsh-tool-present/README.i18n.yaml +2 -2
  1116. package/node_modules/@deepseek-ai/dsh-tool-present/README.md +1 -1
  1117. package/node_modules/@deepseek-ai/dsh-tool-present/README.zh.md +1 -1
  1118. package/node_modules/@deepseek-ai/dsh-tool-present/lib/index.js +1 -1
  1119. package/node_modules/@deepseek-ai/dsh-tool-present/lib/types/index.js +5 -4
  1120. package/node_modules/@deepseek-ai/dsh-tool-present/package.json +20 -20
  1121. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.i18n.yaml +2 -2
  1122. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.md +10 -5
  1123. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.zh.md +10 -5
  1124. package/node_modules/@deepseek-ai/dsh-tool-pwsh/lib/index.js +440 -207
  1125. package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +31 -31
  1126. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.i18n.yaml +2 -2
  1127. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.md +1 -1
  1128. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.zh.md +1 -1
  1129. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/lib/index.js +9 -3
  1130. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +23 -23
  1131. package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +23 -23
  1132. package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +15 -15
  1133. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +20 -20
  1134. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.i18n.yaml +2 -2
  1135. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.md +1 -1
  1136. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.zh.md +1 -1
  1137. package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +2 -2
  1138. package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/model-selection-settings.js +12 -38
  1139. package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +30 -32
  1140. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.i18n.yaml +2 -2
  1141. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.md +4 -4
  1142. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.zh.md +4 -4
  1143. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/index.js +1 -1
  1144. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/index.js +1 -1
  1145. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/list-agents.js +10 -20
  1146. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +21 -21
  1147. package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +20 -20
  1148. package/node_modules/@deepseek-ai/dsh-tool-web/package.json +21 -21
  1149. package/node_modules/@deepseek-ai/dsh-tool-workflow/README.i18n.yaml +2 -2
  1150. package/node_modules/@deepseek-ai/dsh-tool-workflow/README.md +21 -8
  1151. package/node_modules/@deepseek-ai/dsh-tool-workflow/README.zh.md +21 -8
  1152. package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/index.js +179 -11
  1153. package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/types/index.js +147 -14
  1154. package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/types/record.js +43 -0
  1155. package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +25 -21
  1156. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/README.i18n.yaml +6 -0
  1157. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/README.md +128 -0
  1158. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/README.zh.md +128 -0
  1159. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/lib/index.js +252 -0
  1160. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +44 -0
  1161. package/node_modules/@deepseek-ai/dsh-tools/README.i18n.yaml +2 -2
  1162. package/node_modules/@deepseek-ai/dsh-tools/README.md +4 -0
  1163. package/node_modules/@deepseek-ai/dsh-tools/README.zh.md +4 -0
  1164. package/node_modules/@deepseek-ai/dsh-tools/lib/index.js +5 -6
  1165. package/node_modules/@deepseek-ai/dsh-tools/lib/types/index.js +2 -1
  1166. package/node_modules/@deepseek-ai/dsh-tools/lib/types/ptc.js +1 -1
  1167. package/node_modules/@deepseek-ai/dsh-tools/lib/types/schema.js +1 -0
  1168. package/node_modules/@deepseek-ai/dsh-tools/package.json +27 -27
  1169. package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +2 -2
  1170. package/node_modules/@deepseek-ai/dsh-tui-app/README.md +10 -10
  1171. package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +10 -10
  1172. package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +510 -113
  1173. package/node_modules/@deepseek-ai/dsh-tui-app/package.json +75 -75
  1174. package/node_modules/@deepseek-ai/dsh-typert-loader/lib/index.js +1 -0
  1175. package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +9 -9
  1176. package/node_modules/@deepseek-ai/dsh-typert-protocol/README.i18n.yaml +2 -2
  1177. package/node_modules/@deepseek-ai/dsh-typert-protocol/README.md +7 -2
  1178. package/node_modules/@deepseek-ai/dsh-typert-protocol/README.zh.md +7 -2
  1179. package/node_modules/@deepseek-ai/dsh-typert-protocol/lib/index.js +66 -3
  1180. package/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/index.js +20 -2
  1181. package/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/json-value.js +61 -0
  1182. package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +6 -3
  1183. package/node_modules/@deepseek-ai/dsh-typert-registry/lib/client.js +3 -0
  1184. package/node_modules/@deepseek-ai/dsh-typert-registry/lib/index.js +3 -0
  1185. package/node_modules/@deepseek-ai/dsh-typert-registry/lib/types/service.js +6 -0
  1186. package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +4 -4
  1187. package/node_modules/@deepseek-ai/dsh-user-approval/lib/index.js +1 -4
  1188. package/node_modules/@deepseek-ai/dsh-user-approval/lib/invariant.js +1 -4
  1189. package/node_modules/@deepseek-ai/dsh-user-approval/lib/types/index.js +1 -1
  1190. package/node_modules/@deepseek-ai/dsh-user-approval/package.json +18 -18
  1191. package/node_modules/@deepseek-ai/dsh-user-questions/package.json +9 -9
  1192. package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +3 -3
  1193. package/node_modules/@deepseek-ai/dsh-util-time/package.json +3 -3
  1194. package/node_modules/@deepseek-ai/dsh-util-values/package.json +3 -3
  1195. package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +3 -3
  1196. package/node_modules/@deepseek-ai/dsh-web/package.json +6 -6
  1197. package/node_modules/@deepseek-ai/dsh-web-app/README.i18n.yaml +2 -2
  1198. package/node_modules/@deepseek-ai/dsh-web-app/README.md +9 -6
  1199. package/node_modules/@deepseek-ai/dsh-web-app/README.zh.md +9 -6
  1200. package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +51 -29
  1201. package/node_modules/@deepseek-ai/dsh-web-app/lib/index.js +293 -1
  1202. package/node_modules/@deepseek-ai/dsh-web-app/package.json +150 -102
  1203. package/node_modules/@deepseek-ai/dsh-web-app/presets/cordis.patch.yml +154 -0
  1204. package/node_modules/@deepseek-ai/dsh-web-app/presets/minimal.patch.yml +61 -0
  1205. package/node_modules/@deepseek-ai/dsh-web-app/presets/ptc.patch.yml +152 -0
  1206. package/node_modules/@deepseek-ai/dsh-web-app/presets/standard.patch.yml +146 -0
  1207. package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +10 -10
  1208. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-DU8FBaxM.js +127 -0
  1209. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Uv-aF9RH.css +1 -0
  1210. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/favicon-dark.svg +3 -0
  1211. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/favicon.svg +0 -5
  1212. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +4 -3
  1213. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/manifest.webmanifest +3 -4
  1214. package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +15 -10
  1215. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.i18n.yaml +2 -2
  1216. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.md +4 -4
  1217. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.zh.md +4 -4
  1218. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/lib/index.js +21 -29
  1219. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +16 -18
  1220. package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +9 -9
  1221. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +9 -9
  1222. package/node_modules/@deepseek-ai/dsh-webhook/lib/index.js +121 -50
  1223. package/node_modules/@deepseek-ai/dsh-webhook/lib/types/session.js +111 -46
  1224. package/node_modules/@deepseek-ai/dsh-webhook/package.json +25 -25
  1225. package/node_modules/@deepseek-ai/dsh-webhook-github/package.json +15 -15
  1226. package/node_modules/@deepseek-ai/dsh-win32-process/package.json +4 -4
  1227. package/node_modules/@deepseek-ai/dsh-workflow/package.json +13 -13
  1228. package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +36 -36
  1229. package/node_modules/@deepseek-ai/dsh-workspace/README.i18n.yaml +2 -2
  1230. package/node_modules/@deepseek-ai/dsh-workspace/README.md +16 -4
  1231. package/node_modules/@deepseek-ai/dsh-workspace/README.zh.md +17 -4
  1232. package/node_modules/@deepseek-ai/dsh-workspace/lib/index.js +166 -25
  1233. package/node_modules/@deepseek-ai/dsh-workspace/lib/invariant.js +8 -3
  1234. package/node_modules/@deepseek-ai/dsh-workspace/lib/types/index.js +185 -21
  1235. package/node_modules/@deepseek-ai/dsh-workspace/lib/types/spec.js +11 -4
  1236. package/node_modules/@deepseek-ai/dsh-workspace/package.json +16 -16
  1237. package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +16 -16
  1238. package/node_modules/@deepseek-ai/schemastery/README.md +4 -0
  1239. package/node_modules/@deepseek-ai/schemastery/lib/index.cjs +40 -1
  1240. package/node_modules/@deepseek-ai/schemastery/lib/index.mjs +41 -2
  1241. package/node_modules/@deepseek-ai/schemastery/package.json +2 -2
  1242. package/node_modules/@deepseek-ai/schemastery/src/index.ts +93 -33
  1243. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +0 -1
  1244. package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +0 -1
  1245. package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +0 -1
  1246. package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +0 -1
  1247. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +0 -1
  1248. package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +0 -2
  1249. package/node_modules/@eslint-community/regexpp/LICENSE +21 -0
  1250. package/node_modules/@eslint-community/regexpp/README.md +177 -0
  1251. package/node_modules/@eslint-community/regexpp/index.js +3042 -0
  1252. package/node_modules/@eslint-community/regexpp/index.mjs +3032 -0
  1253. package/node_modules/@eslint-community/regexpp/package.json +71 -0
  1254. package/node_modules/ajv/.runkit_example.js +23 -0
  1255. package/node_modules/ajv/LICENSE +22 -0
  1256. package/node_modules/ajv/README.md +207 -0
  1257. package/node_modules/ajv/dist/2019.js +61 -0
  1258. package/node_modules/ajv/dist/2020.js +55 -0
  1259. package/node_modules/ajv/dist/ajv.js +50 -0
  1260. package/node_modules/ajv/dist/compile/codegen/code.js +156 -0
  1261. package/node_modules/ajv/dist/compile/codegen/index.js +697 -0
  1262. package/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
  1263. package/node_modules/ajv/dist/compile/errors.js +123 -0
  1264. package/node_modules/ajv/dist/compile/index.js +242 -0
  1265. package/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
  1266. package/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
  1267. package/node_modules/ajv/dist/compile/jtd/types.js +14 -0
  1268. package/node_modules/ajv/dist/compile/names.js +28 -0
  1269. package/node_modules/ajv/dist/compile/ref_error.js +12 -0
  1270. package/node_modules/ajv/dist/compile/resolve.js +155 -0
  1271. package/node_modules/ajv/dist/compile/rules.js +26 -0
  1272. package/node_modules/ajv/dist/compile/util.js +178 -0
  1273. package/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
  1274. package/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
  1275. package/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
  1276. package/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
  1277. package/node_modules/ajv/dist/compile/validate/index.js +520 -0
  1278. package/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
  1279. package/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
  1280. package/node_modules/ajv/dist/core.js +618 -0
  1281. package/node_modules/ajv/dist/jtd.js +72 -0
  1282. package/node_modules/ajv/dist/refs/data.json +13 -0
  1283. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
  1284. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
  1285. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
  1286. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
  1287. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
  1288. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  1289. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
  1290. package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
  1291. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  1292. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  1293. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  1294. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  1295. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  1296. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  1297. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  1298. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  1299. package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  1300. package/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
  1301. package/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  1302. package/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
  1303. package/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
  1304. package/node_modules/ajv/dist/runtime/equal.js +7 -0
  1305. package/node_modules/ajv/dist/runtime/parseJson.js +185 -0
  1306. package/node_modules/ajv/dist/runtime/quote.js +30 -0
  1307. package/node_modules/ajv/dist/runtime/re2.js +6 -0
  1308. package/node_modules/ajv/dist/runtime/timestamp.js +42 -0
  1309. package/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
  1310. package/node_modules/ajv/dist/runtime/uri.js +6 -0
  1311. package/node_modules/ajv/dist/runtime/validation_error.js +11 -0
  1312. package/node_modules/ajv/dist/standalone/index.js +90 -0
  1313. package/node_modules/ajv/dist/standalone/instance.js +35 -0
  1314. package/node_modules/ajv/dist/types/index.js +3 -0
  1315. package/node_modules/ajv/dist/types/json-schema.js +3 -0
  1316. package/node_modules/ajv/dist/types/jtd-schema.js +3 -0
  1317. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  1318. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
  1319. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  1320. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  1321. package/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
  1322. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  1323. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  1324. package/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
  1325. package/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
  1326. package/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
  1327. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  1328. package/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
  1329. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  1330. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  1331. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  1332. package/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
  1333. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  1334. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  1335. package/node_modules/ajv/dist/vocabularies/code.js +131 -0
  1336. package/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
  1337. package/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
  1338. package/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
  1339. package/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
  1340. package/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
  1341. package/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
  1342. package/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  1343. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  1344. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  1345. package/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
  1346. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  1347. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  1348. package/node_modules/ajv/dist/vocabularies/errors.js +3 -0
  1349. package/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  1350. package/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
  1351. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
  1352. package/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
  1353. package/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
  1354. package/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
  1355. package/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
  1356. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
  1357. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
  1358. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
  1359. package/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
  1360. package/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
  1361. package/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
  1362. package/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
  1363. package/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
  1364. package/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
  1365. package/node_modules/ajv/dist/vocabularies/next.js +8 -0
  1366. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  1367. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  1368. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
  1369. package/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
  1370. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  1371. package/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
  1372. package/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
  1373. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  1374. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  1375. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  1376. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  1377. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  1378. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  1379. package/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
  1380. package/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
  1381. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  1382. package/node_modules/ajv/lib/2019.ts +81 -0
  1383. package/node_modules/ajv/lib/2020.ts +75 -0
  1384. package/node_modules/ajv/lib/ajv.ts +70 -0
  1385. package/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
  1386. package/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
  1387. package/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
  1388. package/node_modules/ajv/lib/compile/errors.ts +184 -0
  1389. package/node_modules/ajv/lib/compile/index.ts +324 -0
  1390. package/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
  1391. package/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
  1392. package/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
  1393. package/node_modules/ajv/lib/compile/names.ts +27 -0
  1394. package/node_modules/ajv/lib/compile/ref_error.ts +13 -0
  1395. package/node_modules/ajv/lib/compile/resolve.ts +149 -0
  1396. package/node_modules/ajv/lib/compile/rules.ts +50 -0
  1397. package/node_modules/ajv/lib/compile/util.ts +213 -0
  1398. package/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
  1399. package/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
  1400. package/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
  1401. package/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
  1402. package/node_modules/ajv/lib/compile/validate/index.ts +582 -0
  1403. package/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
  1404. package/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
  1405. package/node_modules/ajv/lib/core.ts +892 -0
  1406. package/node_modules/ajv/lib/jtd.ts +132 -0
  1407. package/node_modules/ajv/lib/refs/data.json +13 -0
  1408. package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
  1409. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
  1410. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
  1411. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
  1412. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
  1413. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  1414. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
  1415. package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
  1416. package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
  1417. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
  1418. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
  1419. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
  1420. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  1421. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  1422. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  1423. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
  1424. package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
  1425. package/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
  1426. package/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
  1427. package/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
  1428. package/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
  1429. package/node_modules/ajv/lib/runtime/equal.ts +7 -0
  1430. package/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
  1431. package/node_modules/ajv/lib/runtime/quote.ts +31 -0
  1432. package/node_modules/ajv/lib/runtime/re2.ts +6 -0
  1433. package/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
  1434. package/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
  1435. package/node_modules/ajv/lib/runtime/uri.ts +6 -0
  1436. package/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
  1437. package/node_modules/ajv/lib/standalone/index.ts +100 -0
  1438. package/node_modules/ajv/lib/standalone/instance.ts +36 -0
  1439. package/node_modules/ajv/lib/types/index.ts +244 -0
  1440. package/node_modules/ajv/lib/types/json-schema.ts +187 -0
  1441. package/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
  1442. package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
  1443. package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
  1444. package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
  1445. package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
  1446. package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
  1447. package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
  1448. package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
  1449. package/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
  1450. package/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
  1451. package/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
  1452. package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
  1453. package/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
  1454. package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
  1455. package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
  1456. package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
  1457. package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
  1458. package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
  1459. package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
  1460. package/node_modules/ajv/lib/vocabularies/code.ts +168 -0
  1461. package/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
  1462. package/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
  1463. package/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
  1464. package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
  1465. package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
  1466. package/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
  1467. package/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
  1468. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
  1469. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
  1470. package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
  1471. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
  1472. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
  1473. package/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
  1474. package/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
  1475. package/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
  1476. package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
  1477. package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
  1478. package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
  1479. package/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
  1480. package/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
  1481. package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
  1482. package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
  1483. package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
  1484. package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
  1485. package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
  1486. package/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
  1487. package/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
  1488. package/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
  1489. package/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
  1490. package/node_modules/ajv/lib/vocabularies/next.ts +8 -0
  1491. package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
  1492. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
  1493. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
  1494. package/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
  1495. package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
  1496. package/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
  1497. package/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
  1498. package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
  1499. package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
  1500. package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
  1501. package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
  1502. package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
  1503. package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
  1504. package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
  1505. package/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
  1506. package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
  1507. package/node_modules/ajv/package.json +104 -0
  1508. package/node_modules/fast-uri/.gitattributes +2 -0
  1509. package/node_modules/fast-uri/.github/dependabot.yml +13 -0
  1510. package/node_modules/fast-uri/.github/workflows/ci.yml +106 -0
  1511. package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
  1512. package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
  1513. package/node_modules/fast-uri/LICENSE +30 -0
  1514. package/node_modules/fast-uri/README.md +152 -0
  1515. package/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
  1516. package/node_modules/fast-uri/benchmark/equal.mjs +51 -0
  1517. package/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
  1518. package/node_modules/fast-uri/benchmark/package.json +17 -0
  1519. package/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
  1520. package/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
  1521. package/node_modules/fast-uri/eslint.config.js +6 -0
  1522. package/node_modules/fast-uri/index.js +631 -0
  1523. package/node_modules/fast-uri/lib/schemes.js +272 -0
  1524. package/node_modules/fast-uri/lib/utils.js +747 -0
  1525. package/node_modules/fast-uri/package.json +56 -0
  1526. package/node_modules/fast-uri/test/ajv.test.js +43 -0
  1527. package/node_modules/fast-uri/test/component-safe-serialization.test.js +163 -0
  1528. package/node_modules/fast-uri/test/equal.test.js +145 -0
  1529. package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +503 -0
  1530. package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
  1531. package/node_modules/fast-uri/test/ipv6-canonical.test.js +34 -0
  1532. package/node_modules/fast-uri/test/ipv6-validation.test.js +124 -0
  1533. package/node_modules/fast-uri/test/malformed-percent.test.js +77 -0
  1534. package/node_modules/fast-uri/test/malformed-urn.test.js +61 -0
  1535. package/node_modules/fast-uri/test/parse.test.js +327 -0
  1536. package/node_modules/fast-uri/test/query-fragment-normalization.test.js +33 -0
  1537. package/node_modules/fast-uri/test/reserved-path-normalization.test.js +109 -0
  1538. package/node_modules/fast-uri/test/resolve.test.js +87 -0
  1539. package/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
  1540. package/node_modules/fast-uri/test/scheme-validation.test.js +124 -0
  1541. package/node_modules/fast-uri/test/security-normalization.test.js +178 -0
  1542. package/node_modules/fast-uri/test/security.test.js +431 -0
  1543. package/node_modules/fast-uri/test/serialize.test.js +151 -0
  1544. package/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
  1545. package/node_modules/fast-uri/test/uri-js.test.js +912 -0
  1546. package/node_modules/fast-uri/test/urn-full-input.test.js +29 -0
  1547. package/node_modules/fast-uri/test/util.test.js +38 -0
  1548. package/node_modules/fast-uri/test/websocket-query-preservation.test.js +24 -0
  1549. package/node_modules/fast-uri/tsconfig.json +9 -0
  1550. package/node_modules/fast-uri/types/index.test-d.ts +17 -0
  1551. package/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
  1552. package/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
  1553. package/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
  1554. package/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
  1555. package/node_modules/json-schema-traverse/LICENSE +21 -0
  1556. package/node_modules/json-schema-traverse/README.md +95 -0
  1557. package/node_modules/json-schema-traverse/index.js +93 -0
  1558. package/node_modules/json-schema-traverse/package.json +38 -0
  1559. package/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
  1560. package/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
  1561. package/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
  1562. package/node_modules/require-from-string/index.js +34 -0
  1563. package/node_modules/require-from-string/license +21 -0
  1564. package/node_modules/require-from-string/package.json +25 -0
  1565. package/node_modules/require-from-string/readme.md +56 -0
  1566. package/node_modules/sherpa-onnx-node/README.md +11 -0
  1567. package/node_modules/sherpa-onnx-node/addon-static-import.js +70 -0
  1568. package/node_modules/sherpa-onnx-node/addon.js +98 -0
  1569. package/node_modules/sherpa-onnx-node/audio-tagg.js +45 -0
  1570. package/node_modules/sherpa-onnx-node/keyword-spotter.js +68 -0
  1571. package/node_modules/sherpa-onnx-node/non-streaming-asr.js +158 -0
  1572. package/node_modules/sherpa-onnx-node/non-streaming-speaker-diarization.js +38 -0
  1573. package/node_modules/sherpa-onnx-node/non-streaming-speech-denoiser.js +32 -0
  1574. package/node_modules/sherpa-onnx-node/non-streaming-tts.js +116 -0
  1575. package/node_modules/sherpa-onnx-node/online-speech-denoiser.js +46 -0
  1576. package/node_modules/sherpa-onnx-node/package.json +56 -0
  1577. package/node_modules/sherpa-onnx-node/punctuation.js +43 -0
  1578. package/node_modules/sherpa-onnx-node/resampler.js +80 -0
  1579. package/node_modules/sherpa-onnx-node/sherpa-onnx.js +49 -0
  1580. package/node_modules/sherpa-onnx-node/speaker-identification.js +152 -0
  1581. package/node_modules/sherpa-onnx-node/spoken-language-identification.js +38 -0
  1582. package/node_modules/sherpa-onnx-node/streaming-asr.js +181 -0
  1583. package/node_modules/sherpa-onnx-node/types.js +788 -0
  1584. package/node_modules/sherpa-onnx-node/vad.js +134 -0
  1585. package/package.json +318 -272
  1586. package/node_modules/@bufbuild/protobuf/README.md +0 -41
  1587. package/node_modules/@bufbuild/protobuf/dist/commonjs/clone.js +0 -66
  1588. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/boot.js +0 -18
  1589. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/enum.js +0 -31
  1590. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/extension.js +0 -28
  1591. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/file.js +0 -18
  1592. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/index.js +0 -39
  1593. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/message.js +0 -24
  1594. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/service.js +0 -27
  1595. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/symbols.js +0 -43
  1596. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/types.js +0 -15
  1597. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/boot.js +0 -105
  1598. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/embed.js +0 -244
  1599. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/enum.js +0 -58
  1600. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/extension.js +0 -28
  1601. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/file.js +0 -35
  1602. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/index.js +0 -39
  1603. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/message.js +0 -24
  1604. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/restore-json-names.js +0 -29
  1605. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/scalar.js +0 -67
  1606. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/service.js +0 -27
  1607. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/symbols.js +0 -74
  1608. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/types.js +0 -15
  1609. package/node_modules/@bufbuild/protobuf/dist/commonjs/create.js +0 -296
  1610. package/node_modules/@bufbuild/protobuf/dist/commonjs/descriptors.js +0 -53
  1611. package/node_modules/@bufbuild/protobuf/dist/commonjs/equals.js +0 -209
  1612. package/node_modules/@bufbuild/protobuf/dist/commonjs/extensions.js +0 -168
  1613. package/node_modules/@bufbuild/protobuf/dist/commonjs/fields.js +0 -45
  1614. package/node_modules/@bufbuild/protobuf/dist/commonjs/from-binary.js +0 -415
  1615. package/node_modules/@bufbuild/protobuf/dist/commonjs/from-json.js +0 -1037
  1616. package/node_modules/@bufbuild/protobuf/dist/commonjs/index.js +0 -55
  1617. package/node_modules/@bufbuild/protobuf/dist/commonjs/is-message.js +0 -33
  1618. package/node_modules/@bufbuild/protobuf/dist/commonjs/json-value.js +0 -15
  1619. package/node_modules/@bufbuild/protobuf/dist/commonjs/merge.js +0 -70
  1620. package/node_modules/@bufbuild/protobuf/dist/commonjs/package.json +0 -4
  1621. package/node_modules/@bufbuild/protobuf/dist/commonjs/proto-int64.js +0 -131
  1622. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/error.js +0 -36
  1623. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/guard.js +0 -78
  1624. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/index.js +0 -41
  1625. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/message.js +0 -157
  1626. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/names.js +0 -115
  1627. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/nested-types.js +0 -110
  1628. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/path.js +0 -376
  1629. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect-check.js +0 -292
  1630. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect-types.js +0 -16
  1631. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect.js +0 -469
  1632. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/scalar.js +0 -129
  1633. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/unsafe.js +0 -149
  1634. package/node_modules/@bufbuild/protobuf/dist/commonjs/registry.js +0 -954
  1635. package/node_modules/@bufbuild/protobuf/dist/commonjs/to-binary.js +0 -437
  1636. package/node_modules/@bufbuild/protobuf/dist/commonjs/to-json.js +0 -625
  1637. package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/from-text.js +0 -684
  1638. package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/index.js +0 -21
  1639. package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/is-group-like.js +0 -47
  1640. package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/reader.js +0 -481
  1641. package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/to-text.js +0 -358
  1642. package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/writer.js +0 -220
  1643. package/node_modules/@bufbuild/protobuf/dist/commonjs/types.js +0 -15
  1644. package/node_modules/@bufbuild/protobuf/dist/commonjs/unknown-enum.js +0 -26
  1645. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/base64-encoding.js +0 -188
  1646. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/binary-encoding.js +0 -726
  1647. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/index.js +0 -37
  1648. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/size-delimited.js +0 -191
  1649. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/text-encoding.js +0 -106
  1650. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/text-format.js +0 -199
  1651. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/varint.js +0 -334
  1652. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/any.js +0 -75
  1653. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/duration.js +0 -39
  1654. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/any_pb.js +0 -27
  1655. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/api_pb.js +0 -39
  1656. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/compiler/plugin_pb.js +0 -68
  1657. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/cpp_features_pb.js +0 -60
  1658. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/descriptor_pb.js +0 -892
  1659. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/duration_pb.js +0 -27
  1660. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/empty_pb.js +0 -27
  1661. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/field_mask_pb.js +0 -27
  1662. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/go_features_pb.js +0 -126
  1663. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/java_features_pb.js +0 -106
  1664. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/source_context_pb.js +0 -27
  1665. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/struct_pb.js +0 -59
  1666. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/timestamp_pb.js +0 -27
  1667. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/type_pb.js +0 -242
  1668. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/wrappers_pb.js +0 -67
  1669. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/index.js +0 -48
  1670. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/json.js +0 -44
  1671. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/timestamp.js +0 -57
  1672. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/wrappers.js +0 -66
  1673. package/node_modules/@bufbuild/protobuf/dist/esm/clone.js +0 -63
  1674. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/boot.js +0 -14
  1675. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/enum.js +0 -26
  1676. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/extension.js +0 -25
  1677. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/file.js +0 -14
  1678. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/index.js +0 -23
  1679. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/message.js +0 -21
  1680. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/service.js +0 -24
  1681. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/symbols.js +0 -40
  1682. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/types.js +0 -14
  1683. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/boot.js +0 -101
  1684. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/embed.js +0 -239
  1685. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/enum.js +0 -53
  1686. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/extension.js +0 -25
  1687. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js +0 -32
  1688. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/index.js +0 -23
  1689. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.js +0 -21
  1690. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/restore-json-names.js +0 -26
  1691. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/scalar.js +0 -63
  1692. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/service.js +0 -24
  1693. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/symbols.js +0 -71
  1694. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/types.js +0 -14
  1695. package/node_modules/@bufbuild/protobuf/dist/esm/create.js +0 -293
  1696. package/node_modules/@bufbuild/protobuf/dist/esm/descriptors.js +0 -50
  1697. package/node_modules/@bufbuild/protobuf/dist/esm/equals.js +0 -206
  1698. package/node_modules/@bufbuild/protobuf/dist/esm/extensions.js +0 -159
  1699. package/node_modules/@bufbuild/protobuf/dist/esm/fields.js +0 -41
  1700. package/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +0 -409
  1701. package/node_modules/@bufbuild/protobuf/dist/esm/from-json.js +0 -1029
  1702. package/node_modules/@bufbuild/protobuf/dist/esm/index.js +0 -29
  1703. package/node_modules/@bufbuild/protobuf/dist/esm/is-message.js +0 -30
  1704. package/node_modules/@bufbuild/protobuf/dist/esm/json-value.js +0 -14
  1705. package/node_modules/@bufbuild/protobuf/dist/esm/merge.js +0 -67
  1706. package/node_modules/@bufbuild/protobuf/dist/esm/package.json +0 -4
  1707. package/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.js +0 -128
  1708. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.js +0 -31
  1709. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.js +0 -71
  1710. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/index.js +0 -21
  1711. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/message.js +0 -152
  1712. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.js +0 -109
  1713. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.js +0 -105
  1714. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/path.js +0 -369
  1715. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.js +0 -284
  1716. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-types.js +0 -14
  1717. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js +0 -464
  1718. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.js +0 -124
  1719. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.js +0 -140
  1720. package/node_modules/@bufbuild/protobuf/dist/esm/registry.js +0 -948
  1721. package/node_modules/@bufbuild/protobuf/dist/esm/to-binary.js +0 -433
  1722. package/node_modules/@bufbuild/protobuf/dist/esm/to-json.js +0 -620
  1723. package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/from-text.js +0 -680
  1724. package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/index.js +0 -15
  1725. package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/is-group-like.js +0 -44
  1726. package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/reader.js +0 -477
  1727. package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/to-text.js +0 -355
  1728. package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/writer.js +0 -214
  1729. package/node_modules/@bufbuild/protobuf/dist/esm/types.js +0 -14
  1730. package/node_modules/@bufbuild/protobuf/dist/esm/unknown-enum.js +0 -23
  1731. package/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js +0 -184
  1732. package/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js +0 -721
  1733. package/node_modules/@bufbuild/protobuf/dist/esm/wire/index.js +0 -18
  1734. package/node_modules/@bufbuild/protobuf/dist/esm/wire/size-delimited.js +0 -186
  1735. package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js +0 -101
  1736. package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-format.js +0 -195
  1737. package/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.js +0 -325
  1738. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/any.js +0 -69
  1739. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/duration.js +0 -35
  1740. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/any_pb.js +0 -24
  1741. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/api_pb.js +0 -36
  1742. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js +0 -65
  1743. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.js +0 -57
  1744. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +0 -888
  1745. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/duration_pb.js +0 -24
  1746. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.js +0 -24
  1747. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js +0 -24
  1748. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.js +0 -123
  1749. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/java_features_pb.js +0 -103
  1750. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/source_context_pb.js +0 -24
  1751. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.js +0 -56
  1752. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js +0 -24
  1753. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.js +0 -239
  1754. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js +0 -64
  1755. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/index.js +0 -32
  1756. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/json.js +0 -41
  1757. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.js +0 -50
  1758. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js +0 -61
  1759. package/node_modules/@bufbuild/protobuf/package.json +0 -136
  1760. package/node_modules/@deepseek-ai/dsh-agent-presets/README.md +0 -195
  1761. package/node_modules/@deepseek-ai/dsh-agent-presets/README.zh.md +0 -195
  1762. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/index.js +0 -1820
  1763. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/invariant.js +0 -1838
  1764. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/typert.remote-client.js +0 -207
  1765. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/authoring.js +0 -176
  1766. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/discovery.js +0 -316
  1767. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/index.js +0 -799
  1768. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/metadata.js +0 -92
  1769. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/mount.js +0 -386
  1770. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/preset.js +0 -11
  1771. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/specifier.js +0 -41
  1772. package/node_modules/@deepseek-ai/dsh-agent-presets/package.json +0 -98
  1773. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/agent.cordis.yml +0 -283
  1774. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/preset.yml +0 -3
  1775. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/skills/cordis-plugin-development/SKILL.md +0 -108
  1776. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/skills/editing-cordis-compositions/SKILL.md +0 -102
  1777. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/minimal/agent.cordis.yml +0 -69
  1778. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/minimal/preset.yml +0 -3
  1779. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/ptc/agent.cordis.yml +0 -287
  1780. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/ptc/preset.yml +0 -3
  1781. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/standard/agent.cordis.yml +0 -266
  1782. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/standard/preset.yml +0 -3
  1783. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/README.md +0 -138
  1784. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/README.zh.md +0 -138
  1785. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/index.js +0 -501
  1786. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/typert.host.js +0 -350
  1787. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/typert.remote-client.js +0 -249
  1788. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/types/index.js +0 -424
  1789. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/types/types.js +0 -12
  1790. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/queue-mirror.js +0 -61
  1791. package/node_modules/@deepseek-ai/dsh-client-ui-settings-unarchive-sessions/README.md +0 -112
  1792. package/node_modules/@deepseek-ai/dsh-client-ui-settings-unarchive-sessions/README.zh.md +0 -112
  1793. package/node_modules/@deepseek-ai/dsh-client-ui-settings-unarchive-sessions/lib/client.js +0 -216
  1794. package/node_modules/@deepseek-ai/dsh-client-ui-settings-unarchive-sessions/lib/index.js +0 -6
  1795. package/node_modules/@deepseek-ai/dsh-client-ui-settings-unarchive-sessions/package.json +0 -66
  1796. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/README.md +0 -98
  1797. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/README.zh.md +0 -98
  1798. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/cordis.patch.yml +0 -6
  1799. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/package.json +0 -47
  1800. package/node_modules/@deepseek-ai/dsh-llm-cursor/README.md +0 -142
  1801. package/node_modules/@deepseek-ai/dsh-llm-cursor/README.zh.md +0 -142
  1802. package/node_modules/@deepseek-ai/dsh-llm-cursor/lib/index.js +0 -3050
  1803. package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +0 -62
  1804. package/node_modules/@deepseek-ai/dsh-settings/lib/invariant.js +0 -35
  1805. package/node_modules/@deepseek-ai/dsh-settings/lib/types/invariant.js +0 -41
  1806. package/node_modules/@deepseek-ai/dsh-settings-file/README.md +0 -150
  1807. package/node_modules/@deepseek-ai/dsh-settings-file/README.zh.md +0 -150
  1808. package/node_modules/@deepseek-ai/dsh-settings-file/lib/index.js +0 -285
  1809. package/node_modules/@deepseek-ai/dsh-settings-file/package.json +0 -47
  1810. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-UEJ3Ntqn.js +0 -1511
  1811. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-8VXBH-f-.js +0 -127
  1812. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-lP1BfJ4l.css +0 -1
  1813. /package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset-registry}/lib/types/types.js +0 -0
  1814. /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team-web-profile → dsh-experimental-voice-input-bundle}/lib/index.js +0 -0
@@ -0,0 +1,3042 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var ast = /*#__PURE__*/Object.freeze({
6
+ __proto__: null
7
+ });
8
+
9
+ const latestEcmaVersion = 2025;
10
+
11
+ let largeIdStartRanges = undefined;
12
+ let largeIdContinueRanges = undefined;
13
+ function isIdStart(cp) {
14
+ if (cp < 0x41)
15
+ return false;
16
+ if (cp < 0x5b)
17
+ return true;
18
+ if (cp < 0x61)
19
+ return false;
20
+ if (cp < 0x7b)
21
+ return true;
22
+ return isLargeIdStart(cp);
23
+ }
24
+ function isIdContinue(cp) {
25
+ if (cp < 0x30)
26
+ return false;
27
+ if (cp < 0x3a)
28
+ return true;
29
+ if (cp < 0x41)
30
+ return false;
31
+ if (cp < 0x5b)
32
+ return true;
33
+ if (cp === 0x5f)
34
+ return true;
35
+ if (cp < 0x61)
36
+ return false;
37
+ if (cp < 0x7b)
38
+ return true;
39
+ return isLargeIdStart(cp) || isLargeIdContinue(cp);
40
+ }
41
+ function isLargeIdStart(cp) {
42
+ return isInRange(cp, largeIdStartRanges !== null && largeIdStartRanges !== void 0 ? largeIdStartRanges : (largeIdStartRanges = initLargeIdStartRanges()));
43
+ }
44
+ function isLargeIdContinue(cp) {
45
+ return isInRange(cp, largeIdContinueRanges !== null && largeIdContinueRanges !== void 0 ? largeIdContinueRanges : (largeIdContinueRanges = initLargeIdContinueRanges()));
46
+ }
47
+ function initLargeIdStartRanges() {
48
+ return restoreRanges("4q 0 b 0 5 0 6 m 2 u 2 cp 5 b f 4 8 0 2 0 3m 4 2 1 3 3 2 0 7 0 2 2 2 0 2 j 2 2a 2 3u 9 4l 2 11 3 0 7 14 20 q 5 3 1a 16 10 1 2 2q 2 0 g 1 8 1 b 2 3 0 h 0 2 t u 2g c 0 p w a 1 5 0 6 l 5 0 a 0 4 0 o o 8 a 6 n 2 6 h 15 1n 1h 4 0 j 0 8 9 g f 5 7 3 1 3 l 2 6 2 0 4 3 4 0 h 0 e 1 2 2 f 1 b 0 9 5 5 1 3 l 2 6 2 1 2 1 2 1 w 3 2 0 k 2 h 8 2 2 2 l 2 6 2 1 2 4 4 0 j 0 g 1 o 0 c 7 3 1 3 l 2 6 2 1 2 4 4 0 v 1 2 2 g 0 i 0 2 5 4 2 2 3 4 1 2 0 2 1 4 1 4 2 4 b n 0 1h 7 2 2 2 m 2 f 4 0 r 2 2 1 3 1 v 0 5 7 2 2 2 m 2 9 2 4 4 0 v 2 2 1 g 1 i 8 2 2 2 14 3 0 h 0 6 2 9 2 p 5 6 h 4 n 2 8 2 0 3 6 1n 1b 2 1 d 6 1n 1 2 0 2 4 2 n 2 0 2 9 2 1 a 0 3 4 2 0 m 3 x 0 1s 7 2 z s 4 38 16 l 0 h 5 5 3 4 0 4 1 8 2 5 c d 0 i 11 2 0 6 0 3 16 2 98 2 3 3 6 2 0 2 3 3 14 2 3 3 w 2 3 3 6 2 0 2 3 3 e 2 1k 2 3 3 1u 12 f h 2d 3 5 4 h7 3 g 2 p 6 22 4 a 8 h e i f h f c 2 2 g 1f 10 0 5 0 1w 2g 8 14 2 0 6 1x b u 1e t 3 4 c 17 5 p 1j m a 1g 2b 0 2m 1a i 7 1j t e 1 b 17 r z 16 2 b z 3 a 6 16 3 2 16 3 2 5 2 1 4 0 6 5b 1t 7p 3 5 3 11 3 5 3 7 2 0 2 0 2 0 2 u 3 1g 2 6 2 0 4 2 2 6 4 3 3 5 5 c 6 2 2 6 39 0 e 0 h c 2u 0 5 0 3 9 2 0 3 5 7 0 2 0 2 0 2 f 3 3 6 4 5 0 i 14 22g 6c 7 3 4 1 d 11 2 0 6 0 3 1j 8 0 h m a 6 2 6 2 6 2 6 2 6 2 6 2 6 2 6 fb 2 q 8 8 4 3 4 5 2d 5 4 2 2h 2 3 6 16 2 2l i v 1d f e9 533 1t h3g 1w 19 3 7g 4 f b 1 l 1a h u 3 27 14 8 3 2u 3 29 l g 2 2 2 3 2 m u 1f f 1d 1r 5 4 0 2 1 c r b m q s 8 1a t 0 h 4 2 9 b 4 2 14 o 2 2 7 l m 4 0 4 1d 2 0 4 1 3 4 3 0 2 0 p 2 3 a 8 2 d 5 3 5 3 5 a 6 2 6 2 16 2 d 7 36 u 8mb d m 5 1c 6it a5 3 2x 13 6 d 4 6 0 2 9 2 c 2 4 2 0 2 1 2 1 2 2z y a2 j 1r 3 1h 15 b 39 4 2 3q 11 p 7 p c 2g 4 5 3 5 3 5 3 2 10 b 2 p 2 i 2 1 2 e 3 d z 3e 1y 1g 7g s 4 1c 1c v e t 6 11 b t 3 z 5 7 2 4 17 4d j z 5 z 5 13 9 1f d a 2 e 2 6 2 1 2 a 2 e 2 6 2 1 4 1f d 8m a l b 7 p 5 2 15 2 8 1y 5 3 0 2 17 2 1 4 0 3 m b m a u 1u i 2 1 b l b p 7 p 13 1j 7 1 1t 0 g 3 2 2 2 s 17 s 4 s 10 7 2 r s 1h b l b i e h 33 20 1k 1e e 1e e z 13 r a m 6z 15 7 1 h 5 1l s b 0 9 l 17 h 1b k s m d 1g 1m 1 3 0 e 18 x o r z u 0 3 0 9 y 4 0 d 1b f 3 m 0 2 0 10 h 2 o k 1 1s 6 2 0 2 3 2 e 2 9 8 1a 13 7 3 1 3 l 2 6 2 1 2 4 4 0 j 0 d 4 v 9 2 0 3 0 2 11 2 0 q 0 2 0 19 1g j 3 l 2 v 1b l 1 2 0 55 1a 16 3 11 1b l 0 1o 16 e 0 20 q 12 6 56 17 39 1r w 7 3 0 3 7 2 1 2 n g 0 2 0 2n 7 3 12 h 0 2 0 t 0 b 13 8 0 m 0 c 19 k 0 j 20 5k w w 8 2 10 i 0 1e t 35 6 2 1 2 11 m 0 q 5 2 1 2 v f 0 o 17 79 i g 0 2 c 2 x 3h 0 28 pl 2v 32 i 5f 219 2o g tr i 5 q 32y 6 g6 5a2 t 1cz fs 8 u i 26 i t j 1b h 3 w k 6 i c1 18 5w 1r x o 3 o 19 22 6 0 1v c 1t 1 2 0 f 4 a 5p1 16 v 2q 36 6pq 3 2 6 2 1 2 82 g 0 u 2 3 0 f 3 9 az 1s5 2y 6 c 4 8 8 9 4mf 2c 2 1y 2 1 3 0 3 1 3 3 2 b 2 0 2 6 2 1s 2 3 3 7 2 6 2 r 2 3 2 4 2 0 4 6 2 9f 3 o 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 7 1f9 u 7 5 7a 1p 43 18 b 6 h 0 8y t j 17 dh r 6d t 3 0 5s u 2 2 2 1 2 6 3 4 a 1 69 6 2 3 2 1 2 e 2 5g 1o 1v 8 0 xh 3 2 q 2 1 2 0 3 0 2 9 2 3 2 0 2 0 7 0 5 0 2 0 2 0 2 2 2 1 2 0 3 0 2 0 2 0 2 0 2 0 2 1 2 0 3 3 2 6 2 3 2 3 2 0 2 9 2 g 6 2 2 4 2 g 3et wyn x 3dp 3 4gd 3 5rk g h9 1wj f1 15v 3t6 6 6jt");
49
+ }
50
+ function initLargeIdContinueRanges() {
51
+ return restoreRanges("53 0 g9 33 o 0 70 4 7e 18 2 0 2 1 2 1 2 0 21 a 1d u 7 0 2u 6 3 5 3 1 2 3 3 9 o 0 v q 2k a g 9 y 8 a 0 p 3 2 8 2 2 2 4 18 2 1o 8 17 n 2 w 1j 2 2 h 2 6 b 1 3 9 i 2 1l 0 2 6 3 1 3 2 a 0 b 1 3 9 f 0 3 2 1l 0 2 4 5 1 3 2 4 0 l b 4 0 c 2 1l 0 2 7 2 2 2 2 l 1 3 9 b 5 2 2 1l 0 2 6 3 1 3 2 8 2 b 1 3 9 j 0 1o 4 4 2 2 3 a 0 f 9 h 4 1k 0 2 6 2 2 2 3 8 1 c 1 3 9 i 2 1l 0 2 6 2 2 2 3 8 1 c 1 3 9 4 0 d 3 1k 1 2 6 2 2 2 3 a 0 b 1 3 9 i 2 1z 0 5 5 2 0 2 7 7 9 3 1 1q 0 3 6 d 7 2 9 2g 0 3 8 c 6 2 9 1r 1 7 9 c 0 2 0 2 0 5 1 1e j 2 1 6 a 2 z a 0 2t j 2 9 d 3 5 2 2 2 3 6 4 3 e b 2 e jk 2 a 8 pt 3 t 2 u 1 v 1 1t v a 0 3 9 y 2 2 a 40 0 3b b 5 b b 9 3l a 1p 4 1m 9 2 s 3 a 7 9 n d 2 u 3 b l 4 1c g c 9 i 8 d 2 v c 3 9 19 d 1d j 9 9 7 9 3b 2 2 k 5 0 7 0 3 2 5j 1r el 1 1e 1 k 0 3g c 5 0 4 b 2db 2 3y 0 2p v ff 5 2y 1 2p 0 n51 9 1y 0 5 9 x 1 29 1 7l 0 4 0 5 0 o 4 5 0 2c 1 1f h b 9 7 h e a t 7 q c 19 3 1c d g 9 c 0 b 9 1c d d 0 9 1 3 9 y 2 1f 0 2 2 3 1 6 1 2 0 16 4 6 1 6l 7 2 1 3 9 fmt 0 ki f h f 4 1 p 2 5d 9 12 0 12 0 ig 0 6b 0 46 4 86 9 120 2 2 1 6 3 15 2 5 0 4m 1 fy 3 9 9 7 9 w 4 8u 1 26 5 1z a 1e 3 3f 2 1i e w a 3 1 b 3 1a a 8 0 1a 9 7 2 11 d 2 9 6 1 19 0 d 2 1d d 9 3 2 b 2b b 7 0 3 0 4e b 6 9 7 3 1k 1 2 6 3 1 3 2 a 0 b 1 3 6 4 4 1w 8 2 0 3 0 2 3 2 4 2 0 f 1 2b h a 9 5 0 2a j d 9 5y 6 3 8 s 1 2b g g 9 2a c 9 9 7 j 1m e 5 9 6r e 4m 9 1z 5 2 1 3 3 2 0 2 1 d 9 3c 6 3 6 4 0 t 9 15 6 2 3 9 0 a a 1b f 5j 7 3t 9 1i 7 2 7 h 9 1l l 2 d 3f 5 4 0 2 1 2 6 2 0 9 9 1d 4 2 1 2 4 9 9 1j 9 7e 3 a 1 2 0 1d 6 4 4 e a 44m 0 7 e 8uh r 1t3 9 2f 9 13 4 1o 6 q 9 ev 9 d2 0 2 1i 8 3 2a 0 c 1 f58 1 382 9 ef 19 3 m f3 4 4 5 9 7 3 6 v 3 45 2 13e 1d e9 1i 5 1d 9 0 f 0 n 4 2 e 11t 6 2 g 3 6 2 1 2 4 2t 0 4h 6 a 9 9x 0 1q d dv d 6t 1 2 9 6h 0 3 0 8 1 6 0 d7 6 32 6 6 9 3o7 9 gvt3 6n");
52
+ }
53
+ function isInRange(cp, ranges) {
54
+ let l = 0, r = (ranges.length / 2) | 0, i = 0, min = 0, max = 0;
55
+ while (l < r) {
56
+ i = ((l + r) / 2) | 0;
57
+ min = ranges[2 * i];
58
+ max = ranges[2 * i + 1];
59
+ if (cp < min) {
60
+ r = i;
61
+ }
62
+ else if (cp > max) {
63
+ l = i + 1;
64
+ }
65
+ else {
66
+ return true;
67
+ }
68
+ }
69
+ return false;
70
+ }
71
+ function restoreRanges(data) {
72
+ let last = 0;
73
+ return data.split(" ").map((s) => (last += parseInt(s, 36) | 0));
74
+ }
75
+
76
+ class DataSet {
77
+ constructor(raw2018, raw2019, raw2020, raw2021, raw2022, raw2023, raw2024, raw2025, raw2026) {
78
+ this._raw2018 = raw2018;
79
+ this._raw2019 = raw2019;
80
+ this._raw2020 = raw2020;
81
+ this._raw2021 = raw2021;
82
+ this._raw2022 = raw2022;
83
+ this._raw2023 = raw2023;
84
+ this._raw2024 = raw2024;
85
+ this._raw2025 = raw2025;
86
+ this._raw2026 = raw2026;
87
+ }
88
+ get es2018() {
89
+ var _a;
90
+ return ((_a = this._set2018) !== null && _a !== void 0 ? _a : (this._set2018 = new Set(this._raw2018.split(" "))));
91
+ }
92
+ get es2019() {
93
+ var _a;
94
+ return ((_a = this._set2019) !== null && _a !== void 0 ? _a : (this._set2019 = new Set(this._raw2019.split(" "))));
95
+ }
96
+ get es2020() {
97
+ var _a;
98
+ return ((_a = this._set2020) !== null && _a !== void 0 ? _a : (this._set2020 = new Set(this._raw2020.split(" "))));
99
+ }
100
+ get es2021() {
101
+ var _a;
102
+ return ((_a = this._set2021) !== null && _a !== void 0 ? _a : (this._set2021 = new Set(this._raw2021.split(" "))));
103
+ }
104
+ get es2022() {
105
+ var _a;
106
+ return ((_a = this._set2022) !== null && _a !== void 0 ? _a : (this._set2022 = new Set(this._raw2022.split(" "))));
107
+ }
108
+ get es2023() {
109
+ var _a;
110
+ return ((_a = this._set2023) !== null && _a !== void 0 ? _a : (this._set2023 = new Set(this._raw2023.split(" "))));
111
+ }
112
+ get es2024() {
113
+ var _a;
114
+ return ((_a = this._set2024) !== null && _a !== void 0 ? _a : (this._set2024 = new Set(this._raw2024.split(" "))));
115
+ }
116
+ get es2025() {
117
+ var _a;
118
+ return ((_a = this._set2025) !== null && _a !== void 0 ? _a : (this._set2025 = new Set(this._raw2025.split(" "))));
119
+ }
120
+ get es2026() {
121
+ var _a;
122
+ return ((_a = this._set2026) !== null && _a !== void 0 ? _a : (this._set2026 = new Set(this._raw2026.split(" "))));
123
+ }
124
+ }
125
+ const gcNameSet = new Set(["General_Category", "gc"]);
126
+ const scNameSet = new Set(["Script", "Script_Extensions", "sc", "scx"]);
127
+ const gcValueSets = new DataSet("C Cased_Letter Cc Cf Close_Punctuation Cn Co Combining_Mark Connector_Punctuation Control Cs Currency_Symbol Dash_Punctuation Decimal_Number Enclosing_Mark Final_Punctuation Format Initial_Punctuation L LC Letter Letter_Number Line_Separator Ll Lm Lo Lowercase_Letter Lt Lu M Mark Math_Symbol Mc Me Mn Modifier_Letter Modifier_Symbol N Nd Nl No Nonspacing_Mark Number Open_Punctuation Other Other_Letter Other_Number Other_Punctuation Other_Symbol P Paragraph_Separator Pc Pd Pe Pf Pi Po Private_Use Ps Punctuation S Sc Separator Sk Sm So Space_Separator Spacing_Mark Surrogate Symbol Titlecase_Letter Unassigned Uppercase_Letter Z Zl Zp Zs cntrl digit punct", "", "", "", "", "", "", "", "");
128
+ const scValueSets = new DataSet("Adlam Adlm Aghb Ahom Anatolian_Hieroglyphs Arab Arabic Armenian Armi Armn Avestan Avst Bali Balinese Bamu Bamum Bass Bassa_Vah Batak Batk Beng Bengali Bhaiksuki Bhks Bopo Bopomofo Brah Brahmi Brai Braille Bugi Buginese Buhd Buhid Cakm Canadian_Aboriginal Cans Cari Carian Caucasian_Albanian Chakma Cham Cher Cherokee Common Copt Coptic Cprt Cuneiform Cypriot Cyrillic Cyrl Deseret Deva Devanagari Dsrt Dupl Duployan Egyp Egyptian_Hieroglyphs Elba Elbasan Ethi Ethiopic Geor Georgian Glag Glagolitic Gonm Goth Gothic Gran Grantha Greek Grek Gujarati Gujr Gurmukhi Guru Han Hang Hangul Hani Hano Hanunoo Hatr Hatran Hebr Hebrew Hira Hiragana Hluw Hmng Hung Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian Ital Java Javanese Kaithi Kali Kana Kannada Katakana Kayah_Li Khar Kharoshthi Khmer Khmr Khoj Khojki Khudawadi Knda Kthi Lana Lao Laoo Latin Latn Lepc Lepcha Limb Limbu Lina Linb Linear_A Linear_B Lisu Lyci Lycian Lydi Lydian Mahajani Mahj Malayalam Mand Mandaic Mani Manichaean Marc Marchen Masaram_Gondi Meetei_Mayek Mend Mende_Kikakui Merc Mero Meroitic_Cursive Meroitic_Hieroglyphs Miao Mlym Modi Mong Mongolian Mro Mroo Mtei Mult Multani Myanmar Mymr Nabataean Narb Nbat New_Tai_Lue Newa Nko Nkoo Nshu Nushu Ogam Ogham Ol_Chiki Olck Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_South_Arabian Old_Turkic Oriya Orkh Orya Osage Osge Osma Osmanya Pahawh_Hmong Palm Palmyrene Pau_Cin_Hau Pauc Perm Phag Phags_Pa Phli Phlp Phnx Phoenician Plrd Prti Psalter_Pahlavi Qaac Qaai Rejang Rjng Runic Runr Samaritan Samr Sarb Saur Saurashtra Sgnw Sharada Shavian Shaw Shrd Sidd Siddham SignWriting Sind Sinh Sinhala Sora Sora_Sompeng Soyo Soyombo Sund Sundanese Sylo Syloti_Nagri Syrc Syriac Tagalog Tagb Tagbanwa Tai_Le Tai_Tham Tai_Viet Takr Takri Tale Talu Tamil Taml Tang Tangut Tavt Telu Telugu Tfng Tglg Thaa Thaana Thai Tibetan Tibt Tifinagh Tirh Tirhuta Ugar Ugaritic Vai Vaii Wara Warang_Citi Xpeo Xsux Yi Yiii Zanabazar_Square Zanb Zinh Zyyy", "Dogr Dogra Gong Gunjala_Gondi Hanifi_Rohingya Maka Makasar Medefaidrin Medf Old_Sogdian Rohg Sogd Sogdian Sogo", "Elym Elymaic Hmnp Nand Nandinagari Nyiakeng_Puachue_Hmong Wancho Wcho", "Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", "Cpmn Cypro_Minoan Old_Uyghur Ougr Tangsa Tnsa Toto Vith Vithkuqi", "Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz", "", "", "");
129
+ const binPropertySets = new DataSet("AHex ASCII ASCII_Hex_Digit Alpha Alphabetic Any Assigned Bidi_C Bidi_Control Bidi_M Bidi_Mirrored CI CWCF CWCM CWKCF CWL CWT CWU Case_Ignorable Cased Changes_When_Casefolded Changes_When_Casemapped Changes_When_Lowercased Changes_When_NFKC_Casefolded Changes_When_Titlecased Changes_When_Uppercased DI Dash Default_Ignorable_Code_Point Dep Deprecated Dia Diacritic Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Ext Extender Gr_Base Gr_Ext Grapheme_Base Grapheme_Extend Hex Hex_Digit IDC IDS IDSB IDST IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideo Ideographic Join_C Join_Control LOE Logical_Order_Exception Lower Lowercase Math NChar Noncharacter_Code_Point Pat_Syn Pat_WS Pattern_Syntax Pattern_White_Space QMark Quotation_Mark RI Radical Regional_Indicator SD STerm Sentence_Terminal Soft_Dotted Term Terminal_Punctuation UIdeo Unified_Ideograph Upper Uppercase VS Variation_Selector White_Space XIDC XIDS XID_Continue XID_Start space", "Extended_Pictographic", "", "EBase EComp EMod EPres ExtPict", "", "", "", "", "");
130
+ const binPropertyOfStringsSets = new DataSet("", "", "", "", "", "", "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji RGI_Emoji_Flag_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence", "", "");
131
+ function isValidUnicodeProperty(version, name, value) {
132
+ if (gcNameSet.has(name)) {
133
+ return version >= 2018 && gcValueSets.es2018.has(value);
134
+ }
135
+ if (scNameSet.has(name)) {
136
+ return ((version >= 2018 && scValueSets.es2018.has(value)) ||
137
+ (version >= 2019 && scValueSets.es2019.has(value)) ||
138
+ (version >= 2020 && scValueSets.es2020.has(value)) ||
139
+ (version >= 2021 && scValueSets.es2021.has(value)) ||
140
+ (version >= 2022 && scValueSets.es2022.has(value)) ||
141
+ (version >= 2023 && scValueSets.es2023.has(value)));
142
+ }
143
+ return false;
144
+ }
145
+ function isValidLoneUnicodeProperty(version, value) {
146
+ return ((version >= 2018 && binPropertySets.es2018.has(value)) ||
147
+ (version >= 2019 && binPropertySets.es2019.has(value)) ||
148
+ (version >= 2021 && binPropertySets.es2021.has(value)));
149
+ }
150
+ function isValidLoneUnicodePropertyOfString(version, value) {
151
+ return version >= 2024 && binPropertyOfStringsSets.es2024.has(value);
152
+ }
153
+
154
+ const BACKSPACE = 0x08;
155
+ const CHARACTER_TABULATION = 0x09;
156
+ const LINE_FEED = 0x0a;
157
+ const LINE_TABULATION = 0x0b;
158
+ const FORM_FEED = 0x0c;
159
+ const CARRIAGE_RETURN = 0x0d;
160
+ const EXCLAMATION_MARK = 0x21;
161
+ const NUMBER_SIGN = 0x23;
162
+ const DOLLAR_SIGN = 0x24;
163
+ const PERCENT_SIGN = 0x25;
164
+ const AMPERSAND = 0x26;
165
+ const LEFT_PARENTHESIS = 0x28;
166
+ const RIGHT_PARENTHESIS = 0x29;
167
+ const ASTERISK = 0x2a;
168
+ const PLUS_SIGN = 0x2b;
169
+ const COMMA = 0x2c;
170
+ const HYPHEN_MINUS = 0x2d;
171
+ const FULL_STOP = 0x2e;
172
+ const SOLIDUS = 0x2f;
173
+ const DIGIT_ZERO = 0x30;
174
+ const DIGIT_ONE = 0x31;
175
+ const DIGIT_SEVEN = 0x37;
176
+ const DIGIT_NINE = 0x39;
177
+ const COLON = 0x3a;
178
+ const SEMICOLON = 0x3b;
179
+ const LESS_THAN_SIGN = 0x3c;
180
+ const EQUALS_SIGN = 0x3d;
181
+ const GREATER_THAN_SIGN = 0x3e;
182
+ const QUESTION_MARK = 0x3f;
183
+ const COMMERCIAL_AT = 0x40;
184
+ const LATIN_CAPITAL_LETTER_A = 0x41;
185
+ const LATIN_CAPITAL_LETTER_B = 0x42;
186
+ const LATIN_CAPITAL_LETTER_D = 0x44;
187
+ const LATIN_CAPITAL_LETTER_F = 0x46;
188
+ const LATIN_CAPITAL_LETTER_P = 0x50;
189
+ const LATIN_CAPITAL_LETTER_S = 0x53;
190
+ const LATIN_CAPITAL_LETTER_W = 0x57;
191
+ const LATIN_CAPITAL_LETTER_Z = 0x5a;
192
+ const LOW_LINE = 0x5f;
193
+ const LATIN_SMALL_LETTER_A = 0x61;
194
+ const LATIN_SMALL_LETTER_B = 0x62;
195
+ const LATIN_SMALL_LETTER_C = 0x63;
196
+ const LATIN_SMALL_LETTER_D = 0x64;
197
+ const LATIN_SMALL_LETTER_F = 0x66;
198
+ const LATIN_SMALL_LETTER_G = 0x67;
199
+ const LATIN_SMALL_LETTER_I = 0x69;
200
+ const LATIN_SMALL_LETTER_K = 0x6b;
201
+ const LATIN_SMALL_LETTER_M = 0x6d;
202
+ const LATIN_SMALL_LETTER_N = 0x6e;
203
+ const LATIN_SMALL_LETTER_P = 0x70;
204
+ const LATIN_SMALL_LETTER_Q = 0x71;
205
+ const LATIN_SMALL_LETTER_R = 0x72;
206
+ const LATIN_SMALL_LETTER_S = 0x73;
207
+ const LATIN_SMALL_LETTER_T = 0x74;
208
+ const LATIN_SMALL_LETTER_U = 0x75;
209
+ const LATIN_SMALL_LETTER_V = 0x76;
210
+ const LATIN_SMALL_LETTER_W = 0x77;
211
+ const LATIN_SMALL_LETTER_X = 0x78;
212
+ const LATIN_SMALL_LETTER_Y = 0x79;
213
+ const LATIN_SMALL_LETTER_Z = 0x7a;
214
+ const LEFT_SQUARE_BRACKET = 0x5b;
215
+ const REVERSE_SOLIDUS = 0x5c;
216
+ const RIGHT_SQUARE_BRACKET = 0x5d;
217
+ const CIRCUMFLEX_ACCENT = 0x5e;
218
+ const GRAVE_ACCENT = 0x60;
219
+ const LEFT_CURLY_BRACKET = 0x7b;
220
+ const VERTICAL_LINE = 0x7c;
221
+ const RIGHT_CURLY_BRACKET = 0x7d;
222
+ const TILDE = 0x7e;
223
+ const ZERO_WIDTH_NON_JOINER = 0x200c;
224
+ const ZERO_WIDTH_JOINER = 0x200d;
225
+ const LINE_SEPARATOR = 0x2028;
226
+ const PARAGRAPH_SEPARATOR = 0x2029;
227
+ const MIN_CODE_POINT = 0x00;
228
+ const MAX_CODE_POINT = 0x10ffff;
229
+ function isLatinLetter(code) {
230
+ return ((code >= LATIN_CAPITAL_LETTER_A && code <= LATIN_CAPITAL_LETTER_Z) ||
231
+ (code >= LATIN_SMALL_LETTER_A && code <= LATIN_SMALL_LETTER_Z));
232
+ }
233
+ function isDecimalDigit(code) {
234
+ return code >= DIGIT_ZERO && code <= DIGIT_NINE;
235
+ }
236
+ function isOctalDigit(code) {
237
+ return code >= DIGIT_ZERO && code <= DIGIT_SEVEN;
238
+ }
239
+ function isHexDigit(code) {
240
+ return ((code >= DIGIT_ZERO && code <= DIGIT_NINE) ||
241
+ (code >= LATIN_CAPITAL_LETTER_A && code <= LATIN_CAPITAL_LETTER_F) ||
242
+ (code >= LATIN_SMALL_LETTER_A && code <= LATIN_SMALL_LETTER_F));
243
+ }
244
+ function isLineTerminator(code) {
245
+ return (code === LINE_FEED ||
246
+ code === CARRIAGE_RETURN ||
247
+ code === LINE_SEPARATOR ||
248
+ code === PARAGRAPH_SEPARATOR);
249
+ }
250
+ function isValidUnicode(code) {
251
+ return code >= MIN_CODE_POINT && code <= MAX_CODE_POINT;
252
+ }
253
+ function digitToInt(code) {
254
+ if (code >= LATIN_SMALL_LETTER_A && code <= LATIN_SMALL_LETTER_F) {
255
+ return code - LATIN_SMALL_LETTER_A + 10;
256
+ }
257
+ if (code >= LATIN_CAPITAL_LETTER_A && code <= LATIN_CAPITAL_LETTER_F) {
258
+ return code - LATIN_CAPITAL_LETTER_A + 10;
259
+ }
260
+ return code - DIGIT_ZERO;
261
+ }
262
+ function isLeadSurrogate(code) {
263
+ return code >= 0xd800 && code <= 0xdbff;
264
+ }
265
+ function isTrailSurrogate(code) {
266
+ return code >= 0xdc00 && code <= 0xdfff;
267
+ }
268
+ function combineSurrogatePair(lead, trail) {
269
+ return (lead - 0xd800) * 0x400 + (trail - 0xdc00) + 0x10000;
270
+ }
271
+
272
+ class GroupSpecifiersAsES2018 {
273
+ constructor() {
274
+ this.groupName = new Set();
275
+ }
276
+ clear() {
277
+ this.groupName.clear();
278
+ }
279
+ isEmpty() {
280
+ return !this.groupName.size;
281
+ }
282
+ hasInPattern(name) {
283
+ return this.groupName.has(name);
284
+ }
285
+ hasInScope(name) {
286
+ return this.hasInPattern(name);
287
+ }
288
+ addToScope(name) {
289
+ this.groupName.add(name);
290
+ }
291
+ enterDisjunction() {
292
+ }
293
+ enterAlternative() {
294
+ }
295
+ leaveDisjunction() {
296
+ }
297
+ }
298
+ class BranchID {
299
+ constructor(parent, base) {
300
+ this.parent = parent;
301
+ this.base = base !== null && base !== void 0 ? base : this;
302
+ }
303
+ separatedFrom(other) {
304
+ var _a, _b;
305
+ if (this.base === other.base && this !== other) {
306
+ return true;
307
+ }
308
+ if (other.parent && this.separatedFrom(other.parent)) {
309
+ return true;
310
+ }
311
+ return (_b = (_a = this.parent) === null || _a === void 0 ? void 0 : _a.separatedFrom(other)) !== null && _b !== void 0 ? _b : false;
312
+ }
313
+ child() {
314
+ return new BranchID(this, null);
315
+ }
316
+ sibling() {
317
+ return new BranchID(this.parent, this.base);
318
+ }
319
+ }
320
+ class GroupSpecifiersAsES2025 {
321
+ constructor() {
322
+ this.branchID = new BranchID(null, null);
323
+ this.groupNames = new Map();
324
+ }
325
+ clear() {
326
+ this.branchID = new BranchID(null, null);
327
+ this.groupNames.clear();
328
+ }
329
+ isEmpty() {
330
+ return !this.groupNames.size;
331
+ }
332
+ enterDisjunction() {
333
+ this.branchID = this.branchID.child();
334
+ }
335
+ enterAlternative(index) {
336
+ if (index === 0) {
337
+ return;
338
+ }
339
+ this.branchID = this.branchID.sibling();
340
+ }
341
+ leaveDisjunction() {
342
+ this.branchID = this.branchID.parent;
343
+ }
344
+ hasInPattern(name) {
345
+ return this.groupNames.has(name);
346
+ }
347
+ hasInScope(name) {
348
+ const branches = this.groupNames.get(name);
349
+ if (!branches) {
350
+ return false;
351
+ }
352
+ for (const branch of branches) {
353
+ if (!branch.separatedFrom(this.branchID)) {
354
+ return true;
355
+ }
356
+ }
357
+ return false;
358
+ }
359
+ addToScope(name) {
360
+ const branches = this.groupNames.get(name);
361
+ if (branches) {
362
+ branches.push(this.branchID);
363
+ return;
364
+ }
365
+ this.groupNames.set(name, [this.branchID]);
366
+ }
367
+ }
368
+
369
+ const legacyImpl = {
370
+ at(s, end, i) {
371
+ return i < end ? s.charCodeAt(i) : -1;
372
+ },
373
+ width(c) {
374
+ return 1;
375
+ },
376
+ };
377
+ const unicodeImpl = {
378
+ at(s, end, i) {
379
+ return i < end ? s.codePointAt(i) : -1;
380
+ },
381
+ width(c) {
382
+ return c > 0xffff ? 2 : 1;
383
+ },
384
+ };
385
+ class Reader {
386
+ constructor() {
387
+ this._impl = legacyImpl;
388
+ this._s = "";
389
+ this._i = 0;
390
+ this._end = 0;
391
+ this._cp1 = -1;
392
+ this._w1 = 1;
393
+ this._cp2 = -1;
394
+ this._w2 = 1;
395
+ this._cp3 = -1;
396
+ this._w3 = 1;
397
+ this._cp4 = -1;
398
+ }
399
+ get source() {
400
+ return this._s;
401
+ }
402
+ get index() {
403
+ return this._i;
404
+ }
405
+ get currentCodePoint() {
406
+ return this._cp1;
407
+ }
408
+ get nextCodePoint() {
409
+ return this._cp2;
410
+ }
411
+ get nextCodePoint2() {
412
+ return this._cp3;
413
+ }
414
+ get nextCodePoint3() {
415
+ return this._cp4;
416
+ }
417
+ reset(source, start, end, uFlag) {
418
+ this._impl = uFlag ? unicodeImpl : legacyImpl;
419
+ this._s = source;
420
+ this._end = end;
421
+ this.rewind(start);
422
+ }
423
+ rewind(index) {
424
+ const impl = this._impl;
425
+ this._i = index;
426
+ this._cp1 = impl.at(this._s, this._end, index);
427
+ this._w1 = impl.width(this._cp1);
428
+ this._cp2 = impl.at(this._s, this._end, index + this._w1);
429
+ this._w2 = impl.width(this._cp2);
430
+ this._cp3 = impl.at(this._s, this._end, index + this._w1 + this._w2);
431
+ this._w3 = impl.width(this._cp3);
432
+ this._cp4 = impl.at(this._s, this._end, index + this._w1 + this._w2 + this._w3);
433
+ }
434
+ advance() {
435
+ if (this._cp1 !== -1) {
436
+ const impl = this._impl;
437
+ this._i += this._w1;
438
+ this._cp1 = this._cp2;
439
+ this._w1 = this._w2;
440
+ this._cp2 = this._cp3;
441
+ this._w2 = impl.width(this._cp2);
442
+ this._cp3 = this._cp4;
443
+ this._w3 = impl.width(this._cp3);
444
+ this._cp4 = impl.at(this._s, this._end, this._i + this._w1 + this._w2 + this._w3);
445
+ }
446
+ }
447
+ eat(cp) {
448
+ if (this._cp1 === cp) {
449
+ this.advance();
450
+ return true;
451
+ }
452
+ return false;
453
+ }
454
+ eat2(cp1, cp2) {
455
+ if (this._cp1 === cp1 && this._cp2 === cp2) {
456
+ this.advance();
457
+ this.advance();
458
+ return true;
459
+ }
460
+ return false;
461
+ }
462
+ eat3(cp1, cp2, cp3) {
463
+ if (this._cp1 === cp1 && this._cp2 === cp2 && this._cp3 === cp3) {
464
+ this.advance();
465
+ this.advance();
466
+ this.advance();
467
+ return true;
468
+ }
469
+ return false;
470
+ }
471
+ }
472
+
473
+ class RegExpSyntaxError extends SyntaxError {
474
+ constructor(message, index) {
475
+ super(message);
476
+ this.index = index;
477
+ }
478
+ }
479
+ function newRegExpSyntaxError(srcCtx, flags, index, message) {
480
+ let source = "";
481
+ if (srcCtx.kind === "literal") {
482
+ const literal = srcCtx.source.slice(srcCtx.start, srcCtx.end);
483
+ if (literal) {
484
+ source = `: ${literal}`;
485
+ }
486
+ }
487
+ else if (srcCtx.kind === "pattern") {
488
+ const pattern = srcCtx.source.slice(srcCtx.start, srcCtx.end);
489
+ const flagsText = `${flags.unicode ? "u" : ""}${flags.unicodeSets ? "v" : ""}`;
490
+ source = `: /${pattern}/${flagsText}`;
491
+ }
492
+ return new RegExpSyntaxError(`Invalid regular expression${source}: ${message}`, index);
493
+ }
494
+
495
+ const SYNTAX_CHARACTER = new Set([
496
+ CIRCUMFLEX_ACCENT,
497
+ DOLLAR_SIGN,
498
+ REVERSE_SOLIDUS,
499
+ FULL_STOP,
500
+ ASTERISK,
501
+ PLUS_SIGN,
502
+ QUESTION_MARK,
503
+ LEFT_PARENTHESIS,
504
+ RIGHT_PARENTHESIS,
505
+ LEFT_SQUARE_BRACKET,
506
+ RIGHT_SQUARE_BRACKET,
507
+ LEFT_CURLY_BRACKET,
508
+ RIGHT_CURLY_BRACKET,
509
+ VERTICAL_LINE,
510
+ ]);
511
+ const CLASS_SET_RESERVED_DOUBLE_PUNCTUATOR_CHARACTER = new Set([
512
+ AMPERSAND,
513
+ EXCLAMATION_MARK,
514
+ NUMBER_SIGN,
515
+ DOLLAR_SIGN,
516
+ PERCENT_SIGN,
517
+ ASTERISK,
518
+ PLUS_SIGN,
519
+ COMMA,
520
+ FULL_STOP,
521
+ COLON,
522
+ SEMICOLON,
523
+ LESS_THAN_SIGN,
524
+ EQUALS_SIGN,
525
+ GREATER_THAN_SIGN,
526
+ QUESTION_MARK,
527
+ COMMERCIAL_AT,
528
+ CIRCUMFLEX_ACCENT,
529
+ GRAVE_ACCENT,
530
+ TILDE,
531
+ ]);
532
+ const CLASS_SET_SYNTAX_CHARACTER = new Set([
533
+ LEFT_PARENTHESIS,
534
+ RIGHT_PARENTHESIS,
535
+ LEFT_SQUARE_BRACKET,
536
+ RIGHT_SQUARE_BRACKET,
537
+ LEFT_CURLY_BRACKET,
538
+ RIGHT_CURLY_BRACKET,
539
+ SOLIDUS,
540
+ HYPHEN_MINUS,
541
+ REVERSE_SOLIDUS,
542
+ VERTICAL_LINE,
543
+ ]);
544
+ const CLASS_SET_RESERVED_PUNCTUATOR = new Set([
545
+ AMPERSAND,
546
+ HYPHEN_MINUS,
547
+ EXCLAMATION_MARK,
548
+ NUMBER_SIGN,
549
+ PERCENT_SIGN,
550
+ COMMA,
551
+ COLON,
552
+ SEMICOLON,
553
+ LESS_THAN_SIGN,
554
+ EQUALS_SIGN,
555
+ GREATER_THAN_SIGN,
556
+ COMMERCIAL_AT,
557
+ GRAVE_ACCENT,
558
+ TILDE,
559
+ ]);
560
+ const FLAG_PROP_TO_CODEPOINT = {
561
+ global: LATIN_SMALL_LETTER_G,
562
+ ignoreCase: LATIN_SMALL_LETTER_I,
563
+ multiline: LATIN_SMALL_LETTER_M,
564
+ unicode: LATIN_SMALL_LETTER_U,
565
+ sticky: LATIN_SMALL_LETTER_Y,
566
+ dotAll: LATIN_SMALL_LETTER_S,
567
+ hasIndices: LATIN_SMALL_LETTER_D,
568
+ unicodeSets: LATIN_SMALL_LETTER_V,
569
+ };
570
+ const FLAG_CODEPOINT_TO_PROP = Object.fromEntries(Object.entries(FLAG_PROP_TO_CODEPOINT).map(([k, v]) => [v, k]));
571
+ function isSyntaxCharacter(cp) {
572
+ return SYNTAX_CHARACTER.has(cp);
573
+ }
574
+ function isClassSetReservedDoublePunctuatorCharacter(cp) {
575
+ return CLASS_SET_RESERVED_DOUBLE_PUNCTUATOR_CHARACTER.has(cp);
576
+ }
577
+ function isClassSetSyntaxCharacter(cp) {
578
+ return CLASS_SET_SYNTAX_CHARACTER.has(cp);
579
+ }
580
+ function isClassSetReservedPunctuator(cp) {
581
+ return CLASS_SET_RESERVED_PUNCTUATOR.has(cp);
582
+ }
583
+ function isIdentifierStartChar(cp) {
584
+ return isIdStart(cp) || cp === DOLLAR_SIGN || cp === LOW_LINE;
585
+ }
586
+ function isIdentifierPartChar(cp) {
587
+ return (isIdContinue(cp) ||
588
+ cp === DOLLAR_SIGN ||
589
+ cp === ZERO_WIDTH_NON_JOINER ||
590
+ cp === ZERO_WIDTH_JOINER);
591
+ }
592
+ function isUnicodePropertyNameCharacter(cp) {
593
+ return isLatinLetter(cp) || cp === LOW_LINE;
594
+ }
595
+ function isUnicodePropertyValueCharacter(cp) {
596
+ return isUnicodePropertyNameCharacter(cp) || isDecimalDigit(cp);
597
+ }
598
+ function isRegularExpressionModifier(ch) {
599
+ return (ch === LATIN_SMALL_LETTER_I ||
600
+ ch === LATIN_SMALL_LETTER_M ||
601
+ ch === LATIN_SMALL_LETTER_S);
602
+ }
603
+ class RegExpValidator {
604
+ constructor(options) {
605
+ this._reader = new Reader();
606
+ this._unicodeMode = false;
607
+ this._unicodeSetsMode = false;
608
+ this._nFlag = false;
609
+ this._lastIntValue = 0;
610
+ this._lastRange = {
611
+ min: 0,
612
+ max: Number.POSITIVE_INFINITY,
613
+ };
614
+ this._lastStrValue = "";
615
+ this._lastAssertionIsQuantifiable = false;
616
+ this._numCapturingParens = 0;
617
+ this._backreferenceNames = new Set();
618
+ this._srcCtx = null;
619
+ this._options = options !== null && options !== void 0 ? options : {};
620
+ this._groupSpecifiers =
621
+ this.ecmaVersion >= 2025
622
+ ? new GroupSpecifiersAsES2025()
623
+ : new GroupSpecifiersAsES2018();
624
+ }
625
+ validateLiteral(source, start = 0, end = source.length) {
626
+ this._srcCtx = { source, start, end, kind: "literal" };
627
+ this._unicodeSetsMode = this._unicodeMode = this._nFlag = false;
628
+ this.reset(source, start, end);
629
+ this.onLiteralEnter(start);
630
+ if (this.eat(SOLIDUS) && this.eatRegExpBody() && this.eat(SOLIDUS)) {
631
+ const flagStart = this.index;
632
+ const unicode = source.includes("u", flagStart);
633
+ const unicodeSets = source.includes("v", flagStart);
634
+ this.validateFlagsInternal(source, flagStart, end);
635
+ this.validatePatternInternal(source, start + 1, flagStart - 1, {
636
+ unicode,
637
+ unicodeSets,
638
+ });
639
+ }
640
+ else if (start >= end) {
641
+ this.raise("Empty");
642
+ }
643
+ else {
644
+ const c = String.fromCodePoint(this.currentCodePoint);
645
+ this.raise(`Unexpected character '${c}'`);
646
+ }
647
+ this.onLiteralLeave(start, end);
648
+ }
649
+ validateFlags(source, start = 0, end = source.length) {
650
+ this._srcCtx = { source, start, end, kind: "flags" };
651
+ this.validateFlagsInternal(source, start, end);
652
+ }
653
+ validatePattern(source, start = 0, end = source.length, uFlagOrFlags = undefined) {
654
+ this._srcCtx = { source, start, end, kind: "pattern" };
655
+ this.validatePatternInternal(source, start, end, uFlagOrFlags);
656
+ }
657
+ validatePatternInternal(source, start = 0, end = source.length, uFlagOrFlags = undefined) {
658
+ const mode = this._parseFlagsOptionToMode(uFlagOrFlags, end);
659
+ this._unicodeMode = mode.unicodeMode;
660
+ this._nFlag = mode.nFlag;
661
+ this._unicodeSetsMode = mode.unicodeSetsMode;
662
+ this.reset(source, start, end);
663
+ this.consumePattern();
664
+ if (!this._nFlag &&
665
+ this.ecmaVersion >= 2018 &&
666
+ !this._groupSpecifiers.isEmpty()) {
667
+ this._nFlag = true;
668
+ this.rewind(start);
669
+ this.consumePattern();
670
+ }
671
+ }
672
+ validateFlagsInternal(source, start, end) {
673
+ const flags = this.parseFlags(source, start, end);
674
+ this.onRegExpFlags(start, end, flags);
675
+ }
676
+ _parseFlagsOptionToMode(uFlagOrFlags, sourceEnd) {
677
+ let unicode = false;
678
+ let unicodeSets = false;
679
+ if (uFlagOrFlags && this.ecmaVersion >= 2015) {
680
+ if (typeof uFlagOrFlags === "object") {
681
+ unicode = Boolean(uFlagOrFlags.unicode);
682
+ if (this.ecmaVersion >= 2024) {
683
+ unicodeSets = Boolean(uFlagOrFlags.unicodeSets);
684
+ }
685
+ }
686
+ else {
687
+ unicode = uFlagOrFlags;
688
+ }
689
+ }
690
+ if (unicode && unicodeSets) {
691
+ this.raise("Invalid regular expression flags", {
692
+ index: sourceEnd + 1,
693
+ unicode,
694
+ unicodeSets,
695
+ });
696
+ }
697
+ const unicodeMode = unicode || unicodeSets;
698
+ const nFlag = (unicode && this.ecmaVersion >= 2018) ||
699
+ unicodeSets ||
700
+ Boolean(this._options.strict && this.ecmaVersion >= 2023);
701
+ const unicodeSetsMode = unicodeSets;
702
+ return { unicodeMode, nFlag, unicodeSetsMode };
703
+ }
704
+ get strict() {
705
+ return Boolean(this._options.strict) || this._unicodeMode;
706
+ }
707
+ get ecmaVersion() {
708
+ var _a;
709
+ return (_a = this._options.ecmaVersion) !== null && _a !== void 0 ? _a : latestEcmaVersion;
710
+ }
711
+ onLiteralEnter(start) {
712
+ if (this._options.onLiteralEnter) {
713
+ this._options.onLiteralEnter(start);
714
+ }
715
+ }
716
+ onLiteralLeave(start, end) {
717
+ if (this._options.onLiteralLeave) {
718
+ this._options.onLiteralLeave(start, end);
719
+ }
720
+ }
721
+ onRegExpFlags(start, end, flags) {
722
+ if (this._options.onRegExpFlags) {
723
+ this._options.onRegExpFlags(start, end, flags);
724
+ }
725
+ if (this._options.onFlags) {
726
+ this._options.onFlags(start, end, flags.global, flags.ignoreCase, flags.multiline, flags.unicode, flags.sticky, flags.dotAll, flags.hasIndices);
727
+ }
728
+ }
729
+ onPatternEnter(start) {
730
+ if (this._options.onPatternEnter) {
731
+ this._options.onPatternEnter(start);
732
+ }
733
+ }
734
+ onPatternLeave(start, end) {
735
+ if (this._options.onPatternLeave) {
736
+ this._options.onPatternLeave(start, end);
737
+ }
738
+ }
739
+ onDisjunctionEnter(start) {
740
+ if (this._options.onDisjunctionEnter) {
741
+ this._options.onDisjunctionEnter(start);
742
+ }
743
+ }
744
+ onDisjunctionLeave(start, end) {
745
+ if (this._options.onDisjunctionLeave) {
746
+ this._options.onDisjunctionLeave(start, end);
747
+ }
748
+ }
749
+ onAlternativeEnter(start, index) {
750
+ if (this._options.onAlternativeEnter) {
751
+ this._options.onAlternativeEnter(start, index);
752
+ }
753
+ }
754
+ onAlternativeLeave(start, end, index) {
755
+ if (this._options.onAlternativeLeave) {
756
+ this._options.onAlternativeLeave(start, end, index);
757
+ }
758
+ }
759
+ onGroupEnter(start) {
760
+ if (this._options.onGroupEnter) {
761
+ this._options.onGroupEnter(start);
762
+ }
763
+ }
764
+ onGroupLeave(start, end) {
765
+ if (this._options.onGroupLeave) {
766
+ this._options.onGroupLeave(start, end);
767
+ }
768
+ }
769
+ onModifiersEnter(start) {
770
+ if (this._options.onModifiersEnter) {
771
+ this._options.onModifiersEnter(start);
772
+ }
773
+ }
774
+ onModifiersLeave(start, end) {
775
+ if (this._options.onModifiersLeave) {
776
+ this._options.onModifiersLeave(start, end);
777
+ }
778
+ }
779
+ onAddModifiers(start, end, flags) {
780
+ if (this._options.onAddModifiers) {
781
+ this._options.onAddModifiers(start, end, flags);
782
+ }
783
+ }
784
+ onRemoveModifiers(start, end, flags) {
785
+ if (this._options.onRemoveModifiers) {
786
+ this._options.onRemoveModifiers(start, end, flags);
787
+ }
788
+ }
789
+ onCapturingGroupEnter(start, name) {
790
+ if (this._options.onCapturingGroupEnter) {
791
+ this._options.onCapturingGroupEnter(start, name);
792
+ }
793
+ }
794
+ onCapturingGroupLeave(start, end, name) {
795
+ if (this._options.onCapturingGroupLeave) {
796
+ this._options.onCapturingGroupLeave(start, end, name);
797
+ }
798
+ }
799
+ onQuantifier(start, end, min, max, greedy) {
800
+ if (this._options.onQuantifier) {
801
+ this._options.onQuantifier(start, end, min, max, greedy);
802
+ }
803
+ }
804
+ onLookaroundAssertionEnter(start, kind, negate) {
805
+ if (this._options.onLookaroundAssertionEnter) {
806
+ this._options.onLookaroundAssertionEnter(start, kind, negate);
807
+ }
808
+ }
809
+ onLookaroundAssertionLeave(start, end, kind, negate) {
810
+ if (this._options.onLookaroundAssertionLeave) {
811
+ this._options.onLookaroundAssertionLeave(start, end, kind, negate);
812
+ }
813
+ }
814
+ onEdgeAssertion(start, end, kind) {
815
+ if (this._options.onEdgeAssertion) {
816
+ this._options.onEdgeAssertion(start, end, kind);
817
+ }
818
+ }
819
+ onWordBoundaryAssertion(start, end, kind, negate) {
820
+ if (this._options.onWordBoundaryAssertion) {
821
+ this._options.onWordBoundaryAssertion(start, end, kind, negate);
822
+ }
823
+ }
824
+ onAnyCharacterSet(start, end, kind) {
825
+ if (this._options.onAnyCharacterSet) {
826
+ this._options.onAnyCharacterSet(start, end, kind);
827
+ }
828
+ }
829
+ onEscapeCharacterSet(start, end, kind, negate) {
830
+ if (this._options.onEscapeCharacterSet) {
831
+ this._options.onEscapeCharacterSet(start, end, kind, negate);
832
+ }
833
+ }
834
+ onUnicodePropertyCharacterSet(start, end, kind, key, value, negate, strings) {
835
+ if (this._options.onUnicodePropertyCharacterSet) {
836
+ this._options.onUnicodePropertyCharacterSet(start, end, kind, key, value, negate, strings);
837
+ }
838
+ }
839
+ onCharacter(start, end, value) {
840
+ if (this._options.onCharacter) {
841
+ this._options.onCharacter(start, end, value);
842
+ }
843
+ }
844
+ onBackreference(start, end, ref) {
845
+ if (this._options.onBackreference) {
846
+ this._options.onBackreference(start, end, ref);
847
+ }
848
+ }
849
+ onCharacterClassEnter(start, negate, unicodeSets) {
850
+ if (this._options.onCharacterClassEnter) {
851
+ this._options.onCharacterClassEnter(start, negate, unicodeSets);
852
+ }
853
+ }
854
+ onCharacterClassLeave(start, end, negate) {
855
+ if (this._options.onCharacterClassLeave) {
856
+ this._options.onCharacterClassLeave(start, end, negate);
857
+ }
858
+ }
859
+ onCharacterClassRange(start, end, min, max) {
860
+ if (this._options.onCharacterClassRange) {
861
+ this._options.onCharacterClassRange(start, end, min, max);
862
+ }
863
+ }
864
+ onClassIntersection(start, end) {
865
+ if (this._options.onClassIntersection) {
866
+ this._options.onClassIntersection(start, end);
867
+ }
868
+ }
869
+ onClassSubtraction(start, end) {
870
+ if (this._options.onClassSubtraction) {
871
+ this._options.onClassSubtraction(start, end);
872
+ }
873
+ }
874
+ onClassStringDisjunctionEnter(start) {
875
+ if (this._options.onClassStringDisjunctionEnter) {
876
+ this._options.onClassStringDisjunctionEnter(start);
877
+ }
878
+ }
879
+ onClassStringDisjunctionLeave(start, end) {
880
+ if (this._options.onClassStringDisjunctionLeave) {
881
+ this._options.onClassStringDisjunctionLeave(start, end);
882
+ }
883
+ }
884
+ onStringAlternativeEnter(start, index) {
885
+ if (this._options.onStringAlternativeEnter) {
886
+ this._options.onStringAlternativeEnter(start, index);
887
+ }
888
+ }
889
+ onStringAlternativeLeave(start, end, index) {
890
+ if (this._options.onStringAlternativeLeave) {
891
+ this._options.onStringAlternativeLeave(start, end, index);
892
+ }
893
+ }
894
+ get index() {
895
+ return this._reader.index;
896
+ }
897
+ get currentCodePoint() {
898
+ return this._reader.currentCodePoint;
899
+ }
900
+ get nextCodePoint() {
901
+ return this._reader.nextCodePoint;
902
+ }
903
+ get nextCodePoint2() {
904
+ return this._reader.nextCodePoint2;
905
+ }
906
+ get nextCodePoint3() {
907
+ return this._reader.nextCodePoint3;
908
+ }
909
+ reset(source, start, end) {
910
+ this._reader.reset(source, start, end, this._unicodeMode);
911
+ }
912
+ rewind(index) {
913
+ this._reader.rewind(index);
914
+ }
915
+ advance() {
916
+ this._reader.advance();
917
+ }
918
+ eat(cp) {
919
+ return this._reader.eat(cp);
920
+ }
921
+ eat2(cp1, cp2) {
922
+ return this._reader.eat2(cp1, cp2);
923
+ }
924
+ eat3(cp1, cp2, cp3) {
925
+ return this._reader.eat3(cp1, cp2, cp3);
926
+ }
927
+ raise(message, context) {
928
+ var _a, _b, _c;
929
+ throw newRegExpSyntaxError(this._srcCtx, {
930
+ unicode: (_a = context === null || context === void 0 ? void 0 : context.unicode) !== null && _a !== void 0 ? _a : (this._unicodeMode && !this._unicodeSetsMode),
931
+ unicodeSets: (_b = context === null || context === void 0 ? void 0 : context.unicodeSets) !== null && _b !== void 0 ? _b : this._unicodeSetsMode,
932
+ }, (_c = context === null || context === void 0 ? void 0 : context.index) !== null && _c !== void 0 ? _c : this.index, message);
933
+ }
934
+ eatRegExpBody() {
935
+ const start = this.index;
936
+ let inClass = false;
937
+ let escaped = false;
938
+ for (;;) {
939
+ const cp = this.currentCodePoint;
940
+ if (cp === -1 || isLineTerminator(cp)) {
941
+ const kind = inClass ? "character class" : "regular expression";
942
+ this.raise(`Unterminated ${kind}`);
943
+ }
944
+ if (escaped) {
945
+ escaped = false;
946
+ }
947
+ else if (cp === REVERSE_SOLIDUS) {
948
+ escaped = true;
949
+ }
950
+ else if (cp === LEFT_SQUARE_BRACKET) {
951
+ inClass = true;
952
+ }
953
+ else if (cp === RIGHT_SQUARE_BRACKET) {
954
+ inClass = false;
955
+ }
956
+ else if ((cp === SOLIDUS && !inClass) ||
957
+ (cp === ASTERISK && this.index === start)) {
958
+ break;
959
+ }
960
+ this.advance();
961
+ }
962
+ return this.index !== start;
963
+ }
964
+ consumePattern() {
965
+ const start = this.index;
966
+ this._numCapturingParens = this.countCapturingParens();
967
+ this._groupSpecifiers.clear();
968
+ this._backreferenceNames.clear();
969
+ this.onPatternEnter(start);
970
+ this.consumeDisjunction();
971
+ const cp = this.currentCodePoint;
972
+ if (this.currentCodePoint !== -1) {
973
+ if (cp === RIGHT_PARENTHESIS) {
974
+ this.raise("Unmatched ')'");
975
+ }
976
+ if (cp === REVERSE_SOLIDUS) {
977
+ this.raise("\\ at end of pattern");
978
+ }
979
+ if (cp === RIGHT_SQUARE_BRACKET || cp === RIGHT_CURLY_BRACKET) {
980
+ this.raise("Lone quantifier brackets");
981
+ }
982
+ const c = String.fromCodePoint(cp);
983
+ this.raise(`Unexpected character '${c}'`);
984
+ }
985
+ for (const name of this._backreferenceNames) {
986
+ if (!this._groupSpecifiers.hasInPattern(name)) {
987
+ this.raise("Invalid named capture referenced");
988
+ }
989
+ }
990
+ this.onPatternLeave(start, this.index);
991
+ }
992
+ countCapturingParens() {
993
+ const start = this.index;
994
+ let inClass = false;
995
+ let escaped = false;
996
+ let count = 0;
997
+ let cp = 0;
998
+ while ((cp = this.currentCodePoint) !== -1) {
999
+ if (escaped) {
1000
+ escaped = false;
1001
+ }
1002
+ else if (cp === REVERSE_SOLIDUS) {
1003
+ escaped = true;
1004
+ }
1005
+ else if (cp === LEFT_SQUARE_BRACKET) {
1006
+ inClass = true;
1007
+ }
1008
+ else if (cp === RIGHT_SQUARE_BRACKET) {
1009
+ inClass = false;
1010
+ }
1011
+ else if (cp === LEFT_PARENTHESIS &&
1012
+ !inClass &&
1013
+ (this.nextCodePoint !== QUESTION_MARK ||
1014
+ (this.nextCodePoint2 === LESS_THAN_SIGN &&
1015
+ this.nextCodePoint3 !== EQUALS_SIGN &&
1016
+ this.nextCodePoint3 !== EXCLAMATION_MARK))) {
1017
+ count += 1;
1018
+ }
1019
+ this.advance();
1020
+ }
1021
+ this.rewind(start);
1022
+ return count;
1023
+ }
1024
+ consumeDisjunction() {
1025
+ const start = this.index;
1026
+ let i = 0;
1027
+ this._groupSpecifiers.enterDisjunction();
1028
+ this.onDisjunctionEnter(start);
1029
+ do {
1030
+ this.consumeAlternative(i++);
1031
+ } while (this.eat(VERTICAL_LINE));
1032
+ if (this.consumeQuantifier(true)) {
1033
+ this.raise("Nothing to repeat");
1034
+ }
1035
+ if (this.eat(LEFT_CURLY_BRACKET)) {
1036
+ this.raise("Lone quantifier brackets");
1037
+ }
1038
+ this.onDisjunctionLeave(start, this.index);
1039
+ this._groupSpecifiers.leaveDisjunction();
1040
+ }
1041
+ consumeAlternative(i) {
1042
+ const start = this.index;
1043
+ this._groupSpecifiers.enterAlternative(i);
1044
+ this.onAlternativeEnter(start, i);
1045
+ while (this.currentCodePoint !== -1 && this.consumeTerm()) {
1046
+ }
1047
+ this.onAlternativeLeave(start, this.index, i);
1048
+ }
1049
+ consumeTerm() {
1050
+ if (this._unicodeMode || this.strict) {
1051
+ return (this.consumeAssertion() ||
1052
+ (this.consumeAtom() && this.consumeOptionalQuantifier()));
1053
+ }
1054
+ return ((this.consumeAssertion() &&
1055
+ (!this._lastAssertionIsQuantifiable ||
1056
+ this.consumeOptionalQuantifier())) ||
1057
+ (this.consumeExtendedAtom() && this.consumeOptionalQuantifier()));
1058
+ }
1059
+ consumeOptionalQuantifier() {
1060
+ this.consumeQuantifier();
1061
+ return true;
1062
+ }
1063
+ consumeAssertion() {
1064
+ const start = this.index;
1065
+ this._lastAssertionIsQuantifiable = false;
1066
+ if (this.eat(CIRCUMFLEX_ACCENT)) {
1067
+ this.onEdgeAssertion(start, this.index, "start");
1068
+ return true;
1069
+ }
1070
+ if (this.eat(DOLLAR_SIGN)) {
1071
+ this.onEdgeAssertion(start, this.index, "end");
1072
+ return true;
1073
+ }
1074
+ if (this.eat2(REVERSE_SOLIDUS, LATIN_CAPITAL_LETTER_B)) {
1075
+ this.onWordBoundaryAssertion(start, this.index, "word", true);
1076
+ return true;
1077
+ }
1078
+ if (this.eat2(REVERSE_SOLIDUS, LATIN_SMALL_LETTER_B)) {
1079
+ this.onWordBoundaryAssertion(start, this.index, "word", false);
1080
+ return true;
1081
+ }
1082
+ if (this.eat2(LEFT_PARENTHESIS, QUESTION_MARK)) {
1083
+ const lookbehind = this.ecmaVersion >= 2018 && this.eat(LESS_THAN_SIGN);
1084
+ let negate = false;
1085
+ if (this.eat(EQUALS_SIGN) ||
1086
+ (negate = this.eat(EXCLAMATION_MARK))) {
1087
+ const kind = lookbehind ? "lookbehind" : "lookahead";
1088
+ this.onLookaroundAssertionEnter(start, kind, negate);
1089
+ this.consumeDisjunction();
1090
+ if (!this.eat(RIGHT_PARENTHESIS)) {
1091
+ this.raise("Unterminated group");
1092
+ }
1093
+ this._lastAssertionIsQuantifiable = !lookbehind && !this.strict;
1094
+ this.onLookaroundAssertionLeave(start, this.index, kind, negate);
1095
+ return true;
1096
+ }
1097
+ this.rewind(start);
1098
+ }
1099
+ return false;
1100
+ }
1101
+ consumeQuantifier(noConsume = false) {
1102
+ const start = this.index;
1103
+ let min = 0;
1104
+ let max = 0;
1105
+ let greedy = false;
1106
+ if (this.eat(ASTERISK)) {
1107
+ min = 0;
1108
+ max = Number.POSITIVE_INFINITY;
1109
+ }
1110
+ else if (this.eat(PLUS_SIGN)) {
1111
+ min = 1;
1112
+ max = Number.POSITIVE_INFINITY;
1113
+ }
1114
+ else if (this.eat(QUESTION_MARK)) {
1115
+ min = 0;
1116
+ max = 1;
1117
+ }
1118
+ else if (this.eatBracedQuantifier(noConsume)) {
1119
+ ({ min, max } = this._lastRange);
1120
+ }
1121
+ else {
1122
+ return false;
1123
+ }
1124
+ greedy = !this.eat(QUESTION_MARK);
1125
+ if (!noConsume) {
1126
+ this.onQuantifier(start, this.index, min, max, greedy);
1127
+ }
1128
+ return true;
1129
+ }
1130
+ eatBracedQuantifier(noError) {
1131
+ const start = this.index;
1132
+ if (this.eat(LEFT_CURLY_BRACKET)) {
1133
+ if (this.eatDecimalDigits()) {
1134
+ const min = this._lastIntValue;
1135
+ let max = min;
1136
+ if (this.eat(COMMA)) {
1137
+ max = this.eatDecimalDigits()
1138
+ ? this._lastIntValue
1139
+ : Number.POSITIVE_INFINITY;
1140
+ }
1141
+ if (this.eat(RIGHT_CURLY_BRACKET)) {
1142
+ if (!noError && max < min) {
1143
+ this.raise("numbers out of order in {} quantifier");
1144
+ }
1145
+ this._lastRange = { min, max };
1146
+ return true;
1147
+ }
1148
+ }
1149
+ if (!noError && (this._unicodeMode || this.strict)) {
1150
+ this.raise("Incomplete quantifier");
1151
+ }
1152
+ this.rewind(start);
1153
+ }
1154
+ return false;
1155
+ }
1156
+ consumeAtom() {
1157
+ return (this.consumePatternCharacter() ||
1158
+ this.consumeDot() ||
1159
+ this.consumeReverseSolidusAtomEscape() ||
1160
+ Boolean(this.consumeCharacterClass()) ||
1161
+ this.consumeCapturingGroup() ||
1162
+ this.consumeUncapturingGroup());
1163
+ }
1164
+ consumeDot() {
1165
+ if (this.eat(FULL_STOP)) {
1166
+ this.onAnyCharacterSet(this.index - 1, this.index, "any");
1167
+ return true;
1168
+ }
1169
+ return false;
1170
+ }
1171
+ consumeReverseSolidusAtomEscape() {
1172
+ const start = this.index;
1173
+ if (this.eat(REVERSE_SOLIDUS)) {
1174
+ if (this.consumeAtomEscape()) {
1175
+ return true;
1176
+ }
1177
+ this.rewind(start);
1178
+ }
1179
+ return false;
1180
+ }
1181
+ consumeUncapturingGroup() {
1182
+ const start = this.index;
1183
+ if (this.eat2(LEFT_PARENTHESIS, QUESTION_MARK)) {
1184
+ this.onGroupEnter(start);
1185
+ if (this.ecmaVersion >= 2025) {
1186
+ this.consumeModifiers();
1187
+ }
1188
+ if (!this.eat(COLON)) {
1189
+ this.rewind(start + 1);
1190
+ this.raise("Invalid group");
1191
+ }
1192
+ this.consumeDisjunction();
1193
+ if (!this.eat(RIGHT_PARENTHESIS)) {
1194
+ this.raise("Unterminated group");
1195
+ }
1196
+ this.onGroupLeave(start, this.index);
1197
+ return true;
1198
+ }
1199
+ return false;
1200
+ }
1201
+ consumeModifiers() {
1202
+ const start = this.index;
1203
+ const hasAddModifiers = this.eatModifiers();
1204
+ const addModifiersEnd = this.index;
1205
+ const hasHyphen = this.eat(HYPHEN_MINUS);
1206
+ if (!hasAddModifiers && !hasHyphen) {
1207
+ return false;
1208
+ }
1209
+ this.onModifiersEnter(start);
1210
+ const addModifiers = this.parseModifiers(start, addModifiersEnd);
1211
+ this.onAddModifiers(start, addModifiersEnd, addModifiers);
1212
+ if (hasHyphen) {
1213
+ const modifiersStart = this.index;
1214
+ if (!this.eatModifiers() &&
1215
+ !hasAddModifiers &&
1216
+ this.currentCodePoint === COLON) {
1217
+ this.raise("Invalid empty flags");
1218
+ }
1219
+ const modifiers = this.parseModifiers(modifiersStart, this.index);
1220
+ for (const [flagName] of Object.entries(modifiers).filter(([, enable]) => enable)) {
1221
+ if (addModifiers[flagName]) {
1222
+ this.raise(`Duplicated flag '${String.fromCodePoint(FLAG_PROP_TO_CODEPOINT[flagName])}'`);
1223
+ }
1224
+ }
1225
+ this.onRemoveModifiers(modifiersStart, this.index, modifiers);
1226
+ }
1227
+ this.onModifiersLeave(start, this.index);
1228
+ return true;
1229
+ }
1230
+ consumeCapturingGroup() {
1231
+ const start = this.index;
1232
+ if (this.eat(LEFT_PARENTHESIS)) {
1233
+ let name = null;
1234
+ if (this.ecmaVersion >= 2018) {
1235
+ if (this.consumeGroupSpecifier()) {
1236
+ name = this._lastStrValue;
1237
+ }
1238
+ else if (this.currentCodePoint === QUESTION_MARK) {
1239
+ this.rewind(start);
1240
+ return false;
1241
+ }
1242
+ }
1243
+ else if (this.currentCodePoint === QUESTION_MARK) {
1244
+ this.rewind(start);
1245
+ return false;
1246
+ }
1247
+ this.onCapturingGroupEnter(start, name);
1248
+ this.consumeDisjunction();
1249
+ if (!this.eat(RIGHT_PARENTHESIS)) {
1250
+ this.raise("Unterminated group");
1251
+ }
1252
+ this.onCapturingGroupLeave(start, this.index, name);
1253
+ return true;
1254
+ }
1255
+ return false;
1256
+ }
1257
+ consumeExtendedAtom() {
1258
+ return (this.consumeDot() ||
1259
+ this.consumeReverseSolidusAtomEscape() ||
1260
+ this.consumeReverseSolidusFollowedByC() ||
1261
+ Boolean(this.consumeCharacterClass()) ||
1262
+ this.consumeCapturingGroup() ||
1263
+ this.consumeUncapturingGroup() ||
1264
+ this.consumeInvalidBracedQuantifier() ||
1265
+ this.consumeExtendedPatternCharacter());
1266
+ }
1267
+ consumeReverseSolidusFollowedByC() {
1268
+ const start = this.index;
1269
+ if (this.currentCodePoint === REVERSE_SOLIDUS &&
1270
+ this.nextCodePoint === LATIN_SMALL_LETTER_C) {
1271
+ this._lastIntValue = this.currentCodePoint;
1272
+ this.advance();
1273
+ this.onCharacter(start, this.index, REVERSE_SOLIDUS);
1274
+ return true;
1275
+ }
1276
+ return false;
1277
+ }
1278
+ consumeInvalidBracedQuantifier() {
1279
+ if (this.eatBracedQuantifier(true)) {
1280
+ this.raise("Nothing to repeat");
1281
+ }
1282
+ return false;
1283
+ }
1284
+ consumePatternCharacter() {
1285
+ const start = this.index;
1286
+ const cp = this.currentCodePoint;
1287
+ if (cp !== -1 && !isSyntaxCharacter(cp)) {
1288
+ this.advance();
1289
+ this.onCharacter(start, this.index, cp);
1290
+ return true;
1291
+ }
1292
+ return false;
1293
+ }
1294
+ consumeExtendedPatternCharacter() {
1295
+ const start = this.index;
1296
+ const cp = this.currentCodePoint;
1297
+ if (cp !== -1 &&
1298
+ cp !== CIRCUMFLEX_ACCENT &&
1299
+ cp !== DOLLAR_SIGN &&
1300
+ cp !== REVERSE_SOLIDUS &&
1301
+ cp !== FULL_STOP &&
1302
+ cp !== ASTERISK &&
1303
+ cp !== PLUS_SIGN &&
1304
+ cp !== QUESTION_MARK &&
1305
+ cp !== LEFT_PARENTHESIS &&
1306
+ cp !== RIGHT_PARENTHESIS &&
1307
+ cp !== LEFT_SQUARE_BRACKET &&
1308
+ cp !== VERTICAL_LINE) {
1309
+ this.advance();
1310
+ this.onCharacter(start, this.index, cp);
1311
+ return true;
1312
+ }
1313
+ return false;
1314
+ }
1315
+ consumeGroupSpecifier() {
1316
+ const start = this.index;
1317
+ if (this.eat(QUESTION_MARK)) {
1318
+ if (this.eatGroupName()) {
1319
+ if (!this._groupSpecifiers.hasInScope(this._lastStrValue)) {
1320
+ this._groupSpecifiers.addToScope(this._lastStrValue);
1321
+ return true;
1322
+ }
1323
+ this.raise("Duplicate capture group name");
1324
+ }
1325
+ this.rewind(start);
1326
+ }
1327
+ return false;
1328
+ }
1329
+ consumeAtomEscape() {
1330
+ if (this.consumeBackreference() ||
1331
+ this.consumeCharacterClassEscape() ||
1332
+ this.consumeCharacterEscape() ||
1333
+ (this._nFlag && this.consumeKGroupName())) {
1334
+ return true;
1335
+ }
1336
+ if (this.strict || this._unicodeMode) {
1337
+ this.raise("Invalid escape");
1338
+ }
1339
+ return false;
1340
+ }
1341
+ consumeBackreference() {
1342
+ const start = this.index;
1343
+ if (this.eatDecimalEscape()) {
1344
+ const n = this._lastIntValue;
1345
+ if (n <= this._numCapturingParens) {
1346
+ this.onBackreference(start - 1, this.index, n);
1347
+ return true;
1348
+ }
1349
+ if (this.strict || this._unicodeMode) {
1350
+ this.raise("Invalid escape");
1351
+ }
1352
+ this.rewind(start);
1353
+ }
1354
+ return false;
1355
+ }
1356
+ consumeCharacterClassEscape() {
1357
+ var _a;
1358
+ const start = this.index;
1359
+ if (this.eat(LATIN_SMALL_LETTER_D)) {
1360
+ this._lastIntValue = -1;
1361
+ this.onEscapeCharacterSet(start - 1, this.index, "digit", false);
1362
+ return {};
1363
+ }
1364
+ if (this.eat(LATIN_CAPITAL_LETTER_D)) {
1365
+ this._lastIntValue = -1;
1366
+ this.onEscapeCharacterSet(start - 1, this.index, "digit", true);
1367
+ return {};
1368
+ }
1369
+ if (this.eat(LATIN_SMALL_LETTER_S)) {
1370
+ this._lastIntValue = -1;
1371
+ this.onEscapeCharacterSet(start - 1, this.index, "space", false);
1372
+ return {};
1373
+ }
1374
+ if (this.eat(LATIN_CAPITAL_LETTER_S)) {
1375
+ this._lastIntValue = -1;
1376
+ this.onEscapeCharacterSet(start - 1, this.index, "space", true);
1377
+ return {};
1378
+ }
1379
+ if (this.eat(LATIN_SMALL_LETTER_W)) {
1380
+ this._lastIntValue = -1;
1381
+ this.onEscapeCharacterSet(start - 1, this.index, "word", false);
1382
+ return {};
1383
+ }
1384
+ if (this.eat(LATIN_CAPITAL_LETTER_W)) {
1385
+ this._lastIntValue = -1;
1386
+ this.onEscapeCharacterSet(start - 1, this.index, "word", true);
1387
+ return {};
1388
+ }
1389
+ let negate = false;
1390
+ if (this._unicodeMode &&
1391
+ this.ecmaVersion >= 2018 &&
1392
+ (this.eat(LATIN_SMALL_LETTER_P) ||
1393
+ (negate = this.eat(LATIN_CAPITAL_LETTER_P)))) {
1394
+ this._lastIntValue = -1;
1395
+ let result = null;
1396
+ if (this.eat(LEFT_CURLY_BRACKET) &&
1397
+ (result = this.eatUnicodePropertyValueExpression()) &&
1398
+ this.eat(RIGHT_CURLY_BRACKET)) {
1399
+ if (negate && result.strings) {
1400
+ this.raise("Invalid property name");
1401
+ }
1402
+ this.onUnicodePropertyCharacterSet(start - 1, this.index, "property", result.key, result.value, negate, (_a = result.strings) !== null && _a !== void 0 ? _a : false);
1403
+ return { mayContainStrings: result.strings };
1404
+ }
1405
+ this.raise("Invalid property name");
1406
+ }
1407
+ return null;
1408
+ }
1409
+ consumeCharacterEscape() {
1410
+ const start = this.index;
1411
+ if (this.eatControlEscape() ||
1412
+ this.eatCControlLetter() ||
1413
+ this.eatZero() ||
1414
+ this.eatHexEscapeSequence() ||
1415
+ this.eatRegExpUnicodeEscapeSequence() ||
1416
+ (!this.strict &&
1417
+ !this._unicodeMode &&
1418
+ this.eatLegacyOctalEscapeSequence()) ||
1419
+ this.eatIdentityEscape()) {
1420
+ this.onCharacter(start - 1, this.index, this._lastIntValue);
1421
+ return true;
1422
+ }
1423
+ return false;
1424
+ }
1425
+ consumeKGroupName() {
1426
+ const start = this.index;
1427
+ if (this.eat(LATIN_SMALL_LETTER_K)) {
1428
+ if (this.eatGroupName()) {
1429
+ const groupName = this._lastStrValue;
1430
+ this._backreferenceNames.add(groupName);
1431
+ this.onBackreference(start - 1, this.index, groupName);
1432
+ return true;
1433
+ }
1434
+ this.raise("Invalid named reference");
1435
+ }
1436
+ return false;
1437
+ }
1438
+ consumeCharacterClass() {
1439
+ const start = this.index;
1440
+ if (this.eat(LEFT_SQUARE_BRACKET)) {
1441
+ const negate = this.eat(CIRCUMFLEX_ACCENT);
1442
+ this.onCharacterClassEnter(start, negate, this._unicodeSetsMode);
1443
+ const result = this.consumeClassContents();
1444
+ if (!this.eat(RIGHT_SQUARE_BRACKET)) {
1445
+ if (this.currentCodePoint === -1) {
1446
+ this.raise("Unterminated character class");
1447
+ }
1448
+ this.raise("Invalid character in character class");
1449
+ }
1450
+ if (negate && result.mayContainStrings) {
1451
+ this.raise("Negated character class may contain strings");
1452
+ }
1453
+ this.onCharacterClassLeave(start, this.index, negate);
1454
+ return result;
1455
+ }
1456
+ return null;
1457
+ }
1458
+ consumeClassContents() {
1459
+ if (this._unicodeSetsMode) {
1460
+ if (this.currentCodePoint === RIGHT_SQUARE_BRACKET) {
1461
+ return {};
1462
+ }
1463
+ const result = this.consumeClassSetExpression();
1464
+ return result;
1465
+ }
1466
+ const strict = this.strict || this._unicodeMode;
1467
+ for (;;) {
1468
+ const rangeStart = this.index;
1469
+ if (!this.consumeClassAtom()) {
1470
+ break;
1471
+ }
1472
+ const min = this._lastIntValue;
1473
+ if (!this.eat(HYPHEN_MINUS)) {
1474
+ continue;
1475
+ }
1476
+ this.onCharacter(this.index - 1, this.index, HYPHEN_MINUS);
1477
+ if (!this.consumeClassAtom()) {
1478
+ break;
1479
+ }
1480
+ const max = this._lastIntValue;
1481
+ if (min === -1 || max === -1) {
1482
+ if (strict) {
1483
+ this.raise("Invalid character class");
1484
+ }
1485
+ continue;
1486
+ }
1487
+ if (min > max) {
1488
+ this.raise("Range out of order in character class");
1489
+ }
1490
+ this.onCharacterClassRange(rangeStart, this.index, min, max);
1491
+ }
1492
+ return {};
1493
+ }
1494
+ consumeClassAtom() {
1495
+ const start = this.index;
1496
+ const cp = this.currentCodePoint;
1497
+ if (cp !== -1 &&
1498
+ cp !== REVERSE_SOLIDUS &&
1499
+ cp !== RIGHT_SQUARE_BRACKET) {
1500
+ this.advance();
1501
+ this._lastIntValue = cp;
1502
+ this.onCharacter(start, this.index, this._lastIntValue);
1503
+ return true;
1504
+ }
1505
+ if (this.eat(REVERSE_SOLIDUS)) {
1506
+ if (this.consumeClassEscape()) {
1507
+ return true;
1508
+ }
1509
+ if (!this.strict &&
1510
+ this.currentCodePoint === LATIN_SMALL_LETTER_C) {
1511
+ this._lastIntValue = REVERSE_SOLIDUS;
1512
+ this.onCharacter(start, this.index, this._lastIntValue);
1513
+ return true;
1514
+ }
1515
+ if (this.strict || this._unicodeMode) {
1516
+ this.raise("Invalid escape");
1517
+ }
1518
+ this.rewind(start);
1519
+ }
1520
+ return false;
1521
+ }
1522
+ consumeClassEscape() {
1523
+ const start = this.index;
1524
+ if (this.eat(LATIN_SMALL_LETTER_B)) {
1525
+ this._lastIntValue = BACKSPACE;
1526
+ this.onCharacter(start - 1, this.index, this._lastIntValue);
1527
+ return true;
1528
+ }
1529
+ if (this._unicodeMode && this.eat(HYPHEN_MINUS)) {
1530
+ this._lastIntValue = HYPHEN_MINUS;
1531
+ this.onCharacter(start - 1, this.index, this._lastIntValue);
1532
+ return true;
1533
+ }
1534
+ let cp = 0;
1535
+ if (!this.strict &&
1536
+ !this._unicodeMode &&
1537
+ this.currentCodePoint === LATIN_SMALL_LETTER_C &&
1538
+ (isDecimalDigit((cp = this.nextCodePoint)) || cp === LOW_LINE)) {
1539
+ this.advance();
1540
+ this.advance();
1541
+ this._lastIntValue = cp % 0x20;
1542
+ this.onCharacter(start - 1, this.index, this._lastIntValue);
1543
+ return true;
1544
+ }
1545
+ return (Boolean(this.consumeCharacterClassEscape()) ||
1546
+ this.consumeCharacterEscape());
1547
+ }
1548
+ consumeClassSetExpression() {
1549
+ const start = this.index;
1550
+ let mayContainStrings = false;
1551
+ let result = null;
1552
+ if (this.consumeClassSetCharacter()) {
1553
+ if (this.consumeClassSetRangeFromOperator(start)) {
1554
+ this.consumeClassUnionRight({});
1555
+ return {};
1556
+ }
1557
+ mayContainStrings = false;
1558
+ }
1559
+ else if ((result = this.consumeClassSetOperand())) {
1560
+ mayContainStrings = result.mayContainStrings;
1561
+ }
1562
+ else {
1563
+ const cp = this.currentCodePoint;
1564
+ if (cp === REVERSE_SOLIDUS) {
1565
+ this.advance();
1566
+ this.raise("Invalid escape");
1567
+ }
1568
+ if (cp === this.nextCodePoint &&
1569
+ isClassSetReservedDoublePunctuatorCharacter(cp)) {
1570
+ this.raise("Invalid set operation in character class");
1571
+ }
1572
+ this.raise("Invalid character in character class");
1573
+ }
1574
+ if (this.eat2(AMPERSAND, AMPERSAND)) {
1575
+ while (this.currentCodePoint !== AMPERSAND &&
1576
+ (result = this.consumeClassSetOperand())) {
1577
+ this.onClassIntersection(start, this.index);
1578
+ if (!result.mayContainStrings) {
1579
+ mayContainStrings = false;
1580
+ }
1581
+ if (this.eat2(AMPERSAND, AMPERSAND)) {
1582
+ continue;
1583
+ }
1584
+ return { mayContainStrings };
1585
+ }
1586
+ this.raise("Invalid character in character class");
1587
+ }
1588
+ if (this.eat2(HYPHEN_MINUS, HYPHEN_MINUS)) {
1589
+ while (this.consumeClassSetOperand()) {
1590
+ this.onClassSubtraction(start, this.index);
1591
+ if (this.eat2(HYPHEN_MINUS, HYPHEN_MINUS)) {
1592
+ continue;
1593
+ }
1594
+ return { mayContainStrings };
1595
+ }
1596
+ this.raise("Invalid character in character class");
1597
+ }
1598
+ return this.consumeClassUnionRight({ mayContainStrings });
1599
+ }
1600
+ consumeClassUnionRight(leftResult) {
1601
+ let mayContainStrings = leftResult.mayContainStrings;
1602
+ for (;;) {
1603
+ const start = this.index;
1604
+ if (this.consumeClassSetCharacter()) {
1605
+ this.consumeClassSetRangeFromOperator(start);
1606
+ continue;
1607
+ }
1608
+ const result = this.consumeClassSetOperand();
1609
+ if (result) {
1610
+ if (result.mayContainStrings) {
1611
+ mayContainStrings = true;
1612
+ }
1613
+ continue;
1614
+ }
1615
+ break;
1616
+ }
1617
+ return { mayContainStrings };
1618
+ }
1619
+ consumeClassSetRangeFromOperator(start) {
1620
+ const currentStart = this.index;
1621
+ const min = this._lastIntValue;
1622
+ if (this.eat(HYPHEN_MINUS)) {
1623
+ if (this.consumeClassSetCharacter()) {
1624
+ const max = this._lastIntValue;
1625
+ if (min === -1 || max === -1) {
1626
+ this.raise("Invalid character class");
1627
+ }
1628
+ if (min > max) {
1629
+ this.raise("Range out of order in character class");
1630
+ }
1631
+ this.onCharacterClassRange(start, this.index, min, max);
1632
+ return true;
1633
+ }
1634
+ this.rewind(currentStart);
1635
+ }
1636
+ return false;
1637
+ }
1638
+ consumeClassSetOperand() {
1639
+ let result = null;
1640
+ if ((result = this.consumeNestedClass())) {
1641
+ return result;
1642
+ }
1643
+ if ((result = this.consumeClassStringDisjunction())) {
1644
+ return result;
1645
+ }
1646
+ if (this.consumeClassSetCharacter()) {
1647
+ return {};
1648
+ }
1649
+ return null;
1650
+ }
1651
+ consumeNestedClass() {
1652
+ const start = this.index;
1653
+ if (this.eat(LEFT_SQUARE_BRACKET)) {
1654
+ const negate = this.eat(CIRCUMFLEX_ACCENT);
1655
+ this.onCharacterClassEnter(start, negate, true);
1656
+ const result = this.consumeClassContents();
1657
+ if (!this.eat(RIGHT_SQUARE_BRACKET)) {
1658
+ this.raise("Unterminated character class");
1659
+ }
1660
+ if (negate && result.mayContainStrings) {
1661
+ this.raise("Negated character class may contain strings");
1662
+ }
1663
+ this.onCharacterClassLeave(start, this.index, negate);
1664
+ return result;
1665
+ }
1666
+ if (this.eat(REVERSE_SOLIDUS)) {
1667
+ const result = this.consumeCharacterClassEscape();
1668
+ if (result) {
1669
+ return result;
1670
+ }
1671
+ this.rewind(start);
1672
+ }
1673
+ return null;
1674
+ }
1675
+ consumeClassStringDisjunction() {
1676
+ const start = this.index;
1677
+ if (this.eat3(REVERSE_SOLIDUS, LATIN_SMALL_LETTER_Q, LEFT_CURLY_BRACKET)) {
1678
+ this.onClassStringDisjunctionEnter(start);
1679
+ let i = 0;
1680
+ let mayContainStrings = false;
1681
+ do {
1682
+ if (this.consumeClassString(i++).mayContainStrings) {
1683
+ mayContainStrings = true;
1684
+ }
1685
+ } while (this.eat(VERTICAL_LINE));
1686
+ if (this.eat(RIGHT_CURLY_BRACKET)) {
1687
+ this.onClassStringDisjunctionLeave(start, this.index);
1688
+ return { mayContainStrings };
1689
+ }
1690
+ this.raise("Unterminated class string disjunction");
1691
+ }
1692
+ return null;
1693
+ }
1694
+ consumeClassString(i) {
1695
+ const start = this.index;
1696
+ let count = 0;
1697
+ this.onStringAlternativeEnter(start, i);
1698
+ while (this.currentCodePoint !== -1 &&
1699
+ this.consumeClassSetCharacter()) {
1700
+ count++;
1701
+ }
1702
+ this.onStringAlternativeLeave(start, this.index, i);
1703
+ return { mayContainStrings: count !== 1 };
1704
+ }
1705
+ consumeClassSetCharacter() {
1706
+ const start = this.index;
1707
+ const cp = this.currentCodePoint;
1708
+ if (cp !== this.nextCodePoint ||
1709
+ !isClassSetReservedDoublePunctuatorCharacter(cp)) {
1710
+ if (cp !== -1 && !isClassSetSyntaxCharacter(cp)) {
1711
+ this._lastIntValue = cp;
1712
+ this.advance();
1713
+ this.onCharacter(start, this.index, this._lastIntValue);
1714
+ return true;
1715
+ }
1716
+ }
1717
+ if (this.eat(REVERSE_SOLIDUS)) {
1718
+ if (this.consumeCharacterEscape()) {
1719
+ return true;
1720
+ }
1721
+ if (isClassSetReservedPunctuator(this.currentCodePoint)) {
1722
+ this._lastIntValue = this.currentCodePoint;
1723
+ this.advance();
1724
+ this.onCharacter(start, this.index, this._lastIntValue);
1725
+ return true;
1726
+ }
1727
+ if (this.eat(LATIN_SMALL_LETTER_B)) {
1728
+ this._lastIntValue = BACKSPACE;
1729
+ this.onCharacter(start, this.index, this._lastIntValue);
1730
+ return true;
1731
+ }
1732
+ this.rewind(start);
1733
+ }
1734
+ return false;
1735
+ }
1736
+ eatGroupName() {
1737
+ if (this.eat(LESS_THAN_SIGN)) {
1738
+ if (this.eatRegExpIdentifierName() && this.eat(GREATER_THAN_SIGN)) {
1739
+ return true;
1740
+ }
1741
+ this.raise("Invalid capture group name");
1742
+ }
1743
+ return false;
1744
+ }
1745
+ eatRegExpIdentifierName() {
1746
+ if (this.eatRegExpIdentifierStart()) {
1747
+ this._lastStrValue = String.fromCodePoint(this._lastIntValue);
1748
+ while (this.eatRegExpIdentifierPart()) {
1749
+ this._lastStrValue += String.fromCodePoint(this._lastIntValue);
1750
+ }
1751
+ return true;
1752
+ }
1753
+ return false;
1754
+ }
1755
+ eatRegExpIdentifierStart() {
1756
+ const start = this.index;
1757
+ const forceUFlag = !this._unicodeMode && this.ecmaVersion >= 2020;
1758
+ let cp = this.currentCodePoint;
1759
+ this.advance();
1760
+ if (cp === REVERSE_SOLIDUS &&
1761
+ this.eatRegExpUnicodeEscapeSequence(forceUFlag)) {
1762
+ cp = this._lastIntValue;
1763
+ }
1764
+ else if (forceUFlag &&
1765
+ isLeadSurrogate(cp) &&
1766
+ isTrailSurrogate(this.currentCodePoint)) {
1767
+ cp = combineSurrogatePair(cp, this.currentCodePoint);
1768
+ this.advance();
1769
+ }
1770
+ if (isIdentifierStartChar(cp)) {
1771
+ this._lastIntValue = cp;
1772
+ return true;
1773
+ }
1774
+ if (this.index !== start) {
1775
+ this.rewind(start);
1776
+ }
1777
+ return false;
1778
+ }
1779
+ eatRegExpIdentifierPart() {
1780
+ const start = this.index;
1781
+ const forceUFlag = !this._unicodeMode && this.ecmaVersion >= 2020;
1782
+ let cp = this.currentCodePoint;
1783
+ this.advance();
1784
+ if (cp === REVERSE_SOLIDUS &&
1785
+ this.eatRegExpUnicodeEscapeSequence(forceUFlag)) {
1786
+ cp = this._lastIntValue;
1787
+ }
1788
+ else if (forceUFlag &&
1789
+ isLeadSurrogate(cp) &&
1790
+ isTrailSurrogate(this.currentCodePoint)) {
1791
+ cp = combineSurrogatePair(cp, this.currentCodePoint);
1792
+ this.advance();
1793
+ }
1794
+ if (isIdentifierPartChar(cp)) {
1795
+ this._lastIntValue = cp;
1796
+ return true;
1797
+ }
1798
+ if (this.index !== start) {
1799
+ this.rewind(start);
1800
+ }
1801
+ return false;
1802
+ }
1803
+ eatCControlLetter() {
1804
+ const start = this.index;
1805
+ if (this.eat(LATIN_SMALL_LETTER_C)) {
1806
+ if (this.eatControlLetter()) {
1807
+ return true;
1808
+ }
1809
+ this.rewind(start);
1810
+ }
1811
+ return false;
1812
+ }
1813
+ eatZero() {
1814
+ if (this.currentCodePoint === DIGIT_ZERO &&
1815
+ !isDecimalDigit(this.nextCodePoint)) {
1816
+ this._lastIntValue = 0;
1817
+ this.advance();
1818
+ return true;
1819
+ }
1820
+ return false;
1821
+ }
1822
+ eatControlEscape() {
1823
+ if (this.eat(LATIN_SMALL_LETTER_F)) {
1824
+ this._lastIntValue = FORM_FEED;
1825
+ return true;
1826
+ }
1827
+ if (this.eat(LATIN_SMALL_LETTER_N)) {
1828
+ this._lastIntValue = LINE_FEED;
1829
+ return true;
1830
+ }
1831
+ if (this.eat(LATIN_SMALL_LETTER_R)) {
1832
+ this._lastIntValue = CARRIAGE_RETURN;
1833
+ return true;
1834
+ }
1835
+ if (this.eat(LATIN_SMALL_LETTER_T)) {
1836
+ this._lastIntValue = CHARACTER_TABULATION;
1837
+ return true;
1838
+ }
1839
+ if (this.eat(LATIN_SMALL_LETTER_V)) {
1840
+ this._lastIntValue = LINE_TABULATION;
1841
+ return true;
1842
+ }
1843
+ return false;
1844
+ }
1845
+ eatControlLetter() {
1846
+ const cp = this.currentCodePoint;
1847
+ if (isLatinLetter(cp)) {
1848
+ this.advance();
1849
+ this._lastIntValue = cp % 0x20;
1850
+ return true;
1851
+ }
1852
+ return false;
1853
+ }
1854
+ eatRegExpUnicodeEscapeSequence(forceUFlag = false) {
1855
+ const start = this.index;
1856
+ const uFlag = forceUFlag || this._unicodeMode;
1857
+ if (this.eat(LATIN_SMALL_LETTER_U)) {
1858
+ if ((uFlag && this.eatRegExpUnicodeSurrogatePairEscape()) ||
1859
+ this.eatFixedHexDigits(4) ||
1860
+ (uFlag && this.eatRegExpUnicodeCodePointEscape())) {
1861
+ return true;
1862
+ }
1863
+ if (this.strict || uFlag) {
1864
+ this.raise("Invalid unicode escape");
1865
+ }
1866
+ this.rewind(start);
1867
+ }
1868
+ return false;
1869
+ }
1870
+ eatRegExpUnicodeSurrogatePairEscape() {
1871
+ const start = this.index;
1872
+ if (this.eatFixedHexDigits(4)) {
1873
+ const lead = this._lastIntValue;
1874
+ if (isLeadSurrogate(lead) &&
1875
+ this.eat(REVERSE_SOLIDUS) &&
1876
+ this.eat(LATIN_SMALL_LETTER_U) &&
1877
+ this.eatFixedHexDigits(4)) {
1878
+ const trail = this._lastIntValue;
1879
+ if (isTrailSurrogate(trail)) {
1880
+ this._lastIntValue = combineSurrogatePair(lead, trail);
1881
+ return true;
1882
+ }
1883
+ }
1884
+ this.rewind(start);
1885
+ }
1886
+ return false;
1887
+ }
1888
+ eatRegExpUnicodeCodePointEscape() {
1889
+ const start = this.index;
1890
+ if (this.eat(LEFT_CURLY_BRACKET) &&
1891
+ this.eatHexDigits() &&
1892
+ this.eat(RIGHT_CURLY_BRACKET) &&
1893
+ isValidUnicode(this._lastIntValue)) {
1894
+ return true;
1895
+ }
1896
+ this.rewind(start);
1897
+ return false;
1898
+ }
1899
+ eatIdentityEscape() {
1900
+ const cp = this.currentCodePoint;
1901
+ if (this.isValidIdentityEscape(cp)) {
1902
+ this._lastIntValue = cp;
1903
+ this.advance();
1904
+ return true;
1905
+ }
1906
+ return false;
1907
+ }
1908
+ isValidIdentityEscape(cp) {
1909
+ if (cp === -1) {
1910
+ return false;
1911
+ }
1912
+ if (this._unicodeMode) {
1913
+ return isSyntaxCharacter(cp) || cp === SOLIDUS;
1914
+ }
1915
+ if (this.strict) {
1916
+ return !isIdContinue(cp);
1917
+ }
1918
+ if (this._nFlag) {
1919
+ return !(cp === LATIN_SMALL_LETTER_C || cp === LATIN_SMALL_LETTER_K);
1920
+ }
1921
+ return cp !== LATIN_SMALL_LETTER_C;
1922
+ }
1923
+ eatDecimalEscape() {
1924
+ this._lastIntValue = 0;
1925
+ let cp = this.currentCodePoint;
1926
+ if (cp >= DIGIT_ONE && cp <= DIGIT_NINE) {
1927
+ do {
1928
+ this._lastIntValue = 10 * this._lastIntValue + (cp - DIGIT_ZERO);
1929
+ this.advance();
1930
+ } while ((cp = this.currentCodePoint) >= DIGIT_ZERO &&
1931
+ cp <= DIGIT_NINE);
1932
+ return true;
1933
+ }
1934
+ return false;
1935
+ }
1936
+ eatUnicodePropertyValueExpression() {
1937
+ const start = this.index;
1938
+ if (this.eatUnicodePropertyName() && this.eat(EQUALS_SIGN)) {
1939
+ const key = this._lastStrValue;
1940
+ if (this.eatUnicodePropertyValue()) {
1941
+ const value = this._lastStrValue;
1942
+ if (isValidUnicodeProperty(this.ecmaVersion, key, value)) {
1943
+ return {
1944
+ key,
1945
+ value: value || null,
1946
+ };
1947
+ }
1948
+ this.raise("Invalid property name");
1949
+ }
1950
+ }
1951
+ this.rewind(start);
1952
+ if (this.eatLoneUnicodePropertyNameOrValue()) {
1953
+ const nameOrValue = this._lastStrValue;
1954
+ if (isValidUnicodeProperty(this.ecmaVersion, "General_Category", nameOrValue)) {
1955
+ return {
1956
+ key: "General_Category",
1957
+ value: nameOrValue || null,
1958
+ };
1959
+ }
1960
+ if (isValidLoneUnicodeProperty(this.ecmaVersion, nameOrValue)) {
1961
+ return {
1962
+ key: nameOrValue,
1963
+ value: null,
1964
+ };
1965
+ }
1966
+ if (this._unicodeSetsMode &&
1967
+ isValidLoneUnicodePropertyOfString(this.ecmaVersion, nameOrValue)) {
1968
+ return {
1969
+ key: nameOrValue,
1970
+ value: null,
1971
+ strings: true,
1972
+ };
1973
+ }
1974
+ this.raise("Invalid property name");
1975
+ }
1976
+ return null;
1977
+ }
1978
+ eatUnicodePropertyName() {
1979
+ this._lastStrValue = "";
1980
+ while (isUnicodePropertyNameCharacter(this.currentCodePoint)) {
1981
+ this._lastStrValue += String.fromCodePoint(this.currentCodePoint);
1982
+ this.advance();
1983
+ }
1984
+ return this._lastStrValue !== "";
1985
+ }
1986
+ eatUnicodePropertyValue() {
1987
+ this._lastStrValue = "";
1988
+ while (isUnicodePropertyValueCharacter(this.currentCodePoint)) {
1989
+ this._lastStrValue += String.fromCodePoint(this.currentCodePoint);
1990
+ this.advance();
1991
+ }
1992
+ return this._lastStrValue !== "";
1993
+ }
1994
+ eatLoneUnicodePropertyNameOrValue() {
1995
+ return this.eatUnicodePropertyValue();
1996
+ }
1997
+ eatHexEscapeSequence() {
1998
+ const start = this.index;
1999
+ if (this.eat(LATIN_SMALL_LETTER_X)) {
2000
+ if (this.eatFixedHexDigits(2)) {
2001
+ return true;
2002
+ }
2003
+ if (this._unicodeMode || this.strict) {
2004
+ this.raise("Invalid escape");
2005
+ }
2006
+ this.rewind(start);
2007
+ }
2008
+ return false;
2009
+ }
2010
+ eatDecimalDigits() {
2011
+ const start = this.index;
2012
+ this._lastIntValue = 0;
2013
+ while (isDecimalDigit(this.currentCodePoint)) {
2014
+ this._lastIntValue =
2015
+ 10 * this._lastIntValue + digitToInt(this.currentCodePoint);
2016
+ this.advance();
2017
+ }
2018
+ return this.index !== start;
2019
+ }
2020
+ eatHexDigits() {
2021
+ const start = this.index;
2022
+ this._lastIntValue = 0;
2023
+ while (isHexDigit(this.currentCodePoint)) {
2024
+ this._lastIntValue =
2025
+ 16 * this._lastIntValue + digitToInt(this.currentCodePoint);
2026
+ this.advance();
2027
+ }
2028
+ return this.index !== start;
2029
+ }
2030
+ eatLegacyOctalEscapeSequence() {
2031
+ if (this.eatOctalDigit()) {
2032
+ const n1 = this._lastIntValue;
2033
+ if (this.eatOctalDigit()) {
2034
+ const n2 = this._lastIntValue;
2035
+ if (n1 <= 3 && this.eatOctalDigit()) {
2036
+ this._lastIntValue = n1 * 64 + n2 * 8 + this._lastIntValue;
2037
+ }
2038
+ else {
2039
+ this._lastIntValue = n1 * 8 + n2;
2040
+ }
2041
+ }
2042
+ else {
2043
+ this._lastIntValue = n1;
2044
+ }
2045
+ return true;
2046
+ }
2047
+ return false;
2048
+ }
2049
+ eatOctalDigit() {
2050
+ const cp = this.currentCodePoint;
2051
+ if (isOctalDigit(cp)) {
2052
+ this.advance();
2053
+ this._lastIntValue = cp - DIGIT_ZERO;
2054
+ return true;
2055
+ }
2056
+ this._lastIntValue = 0;
2057
+ return false;
2058
+ }
2059
+ eatFixedHexDigits(length) {
2060
+ const start = this.index;
2061
+ this._lastIntValue = 0;
2062
+ for (let i = 0; i < length; ++i) {
2063
+ const cp = this.currentCodePoint;
2064
+ if (!isHexDigit(cp)) {
2065
+ this.rewind(start);
2066
+ return false;
2067
+ }
2068
+ this._lastIntValue = 16 * this._lastIntValue + digitToInt(cp);
2069
+ this.advance();
2070
+ }
2071
+ return true;
2072
+ }
2073
+ eatModifiers() {
2074
+ let ate = false;
2075
+ while (isRegularExpressionModifier(this.currentCodePoint)) {
2076
+ this.advance();
2077
+ ate = true;
2078
+ }
2079
+ return ate;
2080
+ }
2081
+ parseModifiers(start, end) {
2082
+ const { ignoreCase, multiline, dotAll } = this.parseFlags(this._reader.source, start, end);
2083
+ return { ignoreCase, multiline, dotAll };
2084
+ }
2085
+ parseFlags(source, start, end) {
2086
+ const flags = {
2087
+ global: false,
2088
+ ignoreCase: false,
2089
+ multiline: false,
2090
+ unicode: false,
2091
+ sticky: false,
2092
+ dotAll: false,
2093
+ hasIndices: false,
2094
+ unicodeSets: false,
2095
+ };
2096
+ const validFlags = new Set();
2097
+ validFlags.add(LATIN_SMALL_LETTER_G);
2098
+ validFlags.add(LATIN_SMALL_LETTER_I);
2099
+ validFlags.add(LATIN_SMALL_LETTER_M);
2100
+ if (this.ecmaVersion >= 2015) {
2101
+ validFlags.add(LATIN_SMALL_LETTER_U);
2102
+ validFlags.add(LATIN_SMALL_LETTER_Y);
2103
+ if (this.ecmaVersion >= 2018) {
2104
+ validFlags.add(LATIN_SMALL_LETTER_S);
2105
+ if (this.ecmaVersion >= 2022) {
2106
+ validFlags.add(LATIN_SMALL_LETTER_D);
2107
+ if (this.ecmaVersion >= 2024) {
2108
+ validFlags.add(LATIN_SMALL_LETTER_V);
2109
+ }
2110
+ }
2111
+ }
2112
+ }
2113
+ for (let i = start; i < end; ++i) {
2114
+ const flag = source.charCodeAt(i);
2115
+ if (validFlags.has(flag)) {
2116
+ const prop = FLAG_CODEPOINT_TO_PROP[flag];
2117
+ if (flags[prop]) {
2118
+ this.raise(`Duplicated flag '${source[i]}'`, {
2119
+ index: start,
2120
+ });
2121
+ }
2122
+ flags[prop] = true;
2123
+ }
2124
+ else {
2125
+ this.raise(`Invalid flag '${source[i]}'`, { index: start });
2126
+ }
2127
+ }
2128
+ return flags;
2129
+ }
2130
+ }
2131
+
2132
+ const DUMMY_PATTERN = {};
2133
+ const DUMMY_FLAGS = {};
2134
+ const DUMMY_CAPTURING_GROUP = {};
2135
+ function isClassSetOperand(node) {
2136
+ return (node.type === "Character" ||
2137
+ node.type === "CharacterSet" ||
2138
+ node.type === "CharacterClass" ||
2139
+ node.type === "ExpressionCharacterClass" ||
2140
+ node.type === "ClassStringDisjunction");
2141
+ }
2142
+ class RegExpParserState {
2143
+ constructor(options) {
2144
+ var _a;
2145
+ this._node = DUMMY_PATTERN;
2146
+ this._expressionBufferMap = new Map();
2147
+ this._flags = DUMMY_FLAGS;
2148
+ this._backreferences = [];
2149
+ this._capturingGroups = [];
2150
+ this.source = "";
2151
+ this.strict = Boolean(options === null || options === void 0 ? void 0 : options.strict);
2152
+ this.ecmaVersion = (_a = options === null || options === void 0 ? void 0 : options.ecmaVersion) !== null && _a !== void 0 ? _a : latestEcmaVersion;
2153
+ }
2154
+ get pattern() {
2155
+ if (this._node.type !== "Pattern") {
2156
+ throw new Error("UnknownError");
2157
+ }
2158
+ return this._node;
2159
+ }
2160
+ get flags() {
2161
+ if (this._flags.type !== "Flags") {
2162
+ throw new Error("UnknownError");
2163
+ }
2164
+ return this._flags;
2165
+ }
2166
+ onRegExpFlags(start, end, { global, ignoreCase, multiline, unicode, sticky, dotAll, hasIndices, unicodeSets, }) {
2167
+ this._flags = {
2168
+ type: "Flags",
2169
+ parent: null,
2170
+ start,
2171
+ end,
2172
+ raw: this.source.slice(start, end),
2173
+ global,
2174
+ ignoreCase,
2175
+ multiline,
2176
+ unicode,
2177
+ sticky,
2178
+ dotAll,
2179
+ hasIndices,
2180
+ unicodeSets,
2181
+ };
2182
+ }
2183
+ onPatternEnter(start) {
2184
+ this._node = {
2185
+ type: "Pattern",
2186
+ parent: null,
2187
+ start,
2188
+ end: start,
2189
+ raw: "",
2190
+ alternatives: [],
2191
+ };
2192
+ this._backreferences.length = 0;
2193
+ this._capturingGroups.length = 0;
2194
+ }
2195
+ onPatternLeave(start, end) {
2196
+ this._node.end = end;
2197
+ this._node.raw = this.source.slice(start, end);
2198
+ for (const reference of this._backreferences) {
2199
+ const ref = reference.ref;
2200
+ const groups = typeof ref === "number"
2201
+ ? [this._capturingGroups[ref - 1]]
2202
+ : this._capturingGroups.filter((g) => g.name === ref);
2203
+ if (groups.length === 1) {
2204
+ const group = groups[0];
2205
+ reference.ambiguous = false;
2206
+ reference.resolved = group;
2207
+ }
2208
+ else {
2209
+ reference.ambiguous = true;
2210
+ reference.resolved = groups;
2211
+ }
2212
+ for (const group of groups) {
2213
+ group.references.push(reference);
2214
+ }
2215
+ }
2216
+ }
2217
+ onAlternativeEnter(start) {
2218
+ const parent = this._node;
2219
+ if (parent.type !== "Assertion" &&
2220
+ parent.type !== "CapturingGroup" &&
2221
+ parent.type !== "Group" &&
2222
+ parent.type !== "Pattern") {
2223
+ throw new Error("UnknownError");
2224
+ }
2225
+ this._node = {
2226
+ type: "Alternative",
2227
+ parent,
2228
+ start,
2229
+ end: start,
2230
+ raw: "",
2231
+ elements: [],
2232
+ };
2233
+ parent.alternatives.push(this._node);
2234
+ }
2235
+ onAlternativeLeave(start, end) {
2236
+ const node = this._node;
2237
+ if (node.type !== "Alternative") {
2238
+ throw new Error("UnknownError");
2239
+ }
2240
+ node.end = end;
2241
+ node.raw = this.source.slice(start, end);
2242
+ this._node = node.parent;
2243
+ }
2244
+ onGroupEnter(start) {
2245
+ const parent = this._node;
2246
+ if (parent.type !== "Alternative") {
2247
+ throw new Error("UnknownError");
2248
+ }
2249
+ const group = {
2250
+ type: "Group",
2251
+ parent,
2252
+ start,
2253
+ end: start,
2254
+ raw: "",
2255
+ modifiers: null,
2256
+ alternatives: [],
2257
+ };
2258
+ this._node = group;
2259
+ parent.elements.push(this._node);
2260
+ }
2261
+ onGroupLeave(start, end) {
2262
+ const node = this._node;
2263
+ if (node.type !== "Group" || node.parent.type !== "Alternative") {
2264
+ throw new Error("UnknownError");
2265
+ }
2266
+ node.end = end;
2267
+ node.raw = this.source.slice(start, end);
2268
+ this._node = node.parent;
2269
+ }
2270
+ onModifiersEnter(start) {
2271
+ const parent = this._node;
2272
+ if (parent.type !== "Group") {
2273
+ throw new Error("UnknownError");
2274
+ }
2275
+ this._node = {
2276
+ type: "Modifiers",
2277
+ parent,
2278
+ start,
2279
+ end: start,
2280
+ raw: "",
2281
+ add: null,
2282
+ remove: null,
2283
+ };
2284
+ parent.modifiers = this._node;
2285
+ }
2286
+ onModifiersLeave(start, end) {
2287
+ const node = this._node;
2288
+ if (node.type !== "Modifiers" || node.parent.type !== "Group") {
2289
+ throw new Error("UnknownError");
2290
+ }
2291
+ node.end = end;
2292
+ node.raw = this.source.slice(start, end);
2293
+ this._node = node.parent;
2294
+ }
2295
+ onAddModifiers(start, end, { ignoreCase, multiline, dotAll, }) {
2296
+ const parent = this._node;
2297
+ if (parent.type !== "Modifiers") {
2298
+ throw new Error("UnknownError");
2299
+ }
2300
+ parent.add = {
2301
+ type: "ModifierFlags",
2302
+ parent,
2303
+ start,
2304
+ end,
2305
+ raw: this.source.slice(start, end),
2306
+ ignoreCase,
2307
+ multiline,
2308
+ dotAll,
2309
+ };
2310
+ }
2311
+ onRemoveModifiers(start, end, { ignoreCase, multiline, dotAll, }) {
2312
+ const parent = this._node;
2313
+ if (parent.type !== "Modifiers") {
2314
+ throw new Error("UnknownError");
2315
+ }
2316
+ parent.remove = {
2317
+ type: "ModifierFlags",
2318
+ parent,
2319
+ start,
2320
+ end,
2321
+ raw: this.source.slice(start, end),
2322
+ ignoreCase,
2323
+ multiline,
2324
+ dotAll,
2325
+ };
2326
+ }
2327
+ onCapturingGroupEnter(start, name) {
2328
+ const parent = this._node;
2329
+ if (parent.type !== "Alternative") {
2330
+ throw new Error("UnknownError");
2331
+ }
2332
+ this._node = {
2333
+ type: "CapturingGroup",
2334
+ parent,
2335
+ start,
2336
+ end: start,
2337
+ raw: "",
2338
+ name,
2339
+ alternatives: [],
2340
+ references: [],
2341
+ };
2342
+ parent.elements.push(this._node);
2343
+ this._capturingGroups.push(this._node);
2344
+ }
2345
+ onCapturingGroupLeave(start, end) {
2346
+ const node = this._node;
2347
+ if (node.type !== "CapturingGroup" ||
2348
+ node.parent.type !== "Alternative") {
2349
+ throw new Error("UnknownError");
2350
+ }
2351
+ node.end = end;
2352
+ node.raw = this.source.slice(start, end);
2353
+ this._node = node.parent;
2354
+ }
2355
+ onQuantifier(start, end, min, max, greedy) {
2356
+ const parent = this._node;
2357
+ if (parent.type !== "Alternative") {
2358
+ throw new Error("UnknownError");
2359
+ }
2360
+ const element = parent.elements.pop();
2361
+ if (element == null ||
2362
+ element.type === "Quantifier" ||
2363
+ (element.type === "Assertion" && element.kind !== "lookahead")) {
2364
+ throw new Error("UnknownError");
2365
+ }
2366
+ const node = {
2367
+ type: "Quantifier",
2368
+ parent,
2369
+ start: element.start,
2370
+ end,
2371
+ raw: this.source.slice(element.start, end),
2372
+ min,
2373
+ max,
2374
+ greedy,
2375
+ element,
2376
+ };
2377
+ parent.elements.push(node);
2378
+ element.parent = node;
2379
+ }
2380
+ onLookaroundAssertionEnter(start, kind, negate) {
2381
+ const parent = this._node;
2382
+ if (parent.type !== "Alternative") {
2383
+ throw new Error("UnknownError");
2384
+ }
2385
+ const node = (this._node = {
2386
+ type: "Assertion",
2387
+ parent,
2388
+ start,
2389
+ end: start,
2390
+ raw: "",
2391
+ kind,
2392
+ negate,
2393
+ alternatives: [],
2394
+ });
2395
+ parent.elements.push(node);
2396
+ }
2397
+ onLookaroundAssertionLeave(start, end) {
2398
+ const node = this._node;
2399
+ if (node.type !== "Assertion" || node.parent.type !== "Alternative") {
2400
+ throw new Error("UnknownError");
2401
+ }
2402
+ node.end = end;
2403
+ node.raw = this.source.slice(start, end);
2404
+ this._node = node.parent;
2405
+ }
2406
+ onEdgeAssertion(start, end, kind) {
2407
+ const parent = this._node;
2408
+ if (parent.type !== "Alternative") {
2409
+ throw new Error("UnknownError");
2410
+ }
2411
+ parent.elements.push({
2412
+ type: "Assertion",
2413
+ parent,
2414
+ start,
2415
+ end,
2416
+ raw: this.source.slice(start, end),
2417
+ kind,
2418
+ });
2419
+ }
2420
+ onWordBoundaryAssertion(start, end, kind, negate) {
2421
+ const parent = this._node;
2422
+ if (parent.type !== "Alternative") {
2423
+ throw new Error("UnknownError");
2424
+ }
2425
+ parent.elements.push({
2426
+ type: "Assertion",
2427
+ parent,
2428
+ start,
2429
+ end,
2430
+ raw: this.source.slice(start, end),
2431
+ kind,
2432
+ negate,
2433
+ });
2434
+ }
2435
+ onAnyCharacterSet(start, end, kind) {
2436
+ const parent = this._node;
2437
+ if (parent.type !== "Alternative") {
2438
+ throw new Error("UnknownError");
2439
+ }
2440
+ parent.elements.push({
2441
+ type: "CharacterSet",
2442
+ parent,
2443
+ start,
2444
+ end,
2445
+ raw: this.source.slice(start, end),
2446
+ kind,
2447
+ });
2448
+ }
2449
+ onEscapeCharacterSet(start, end, kind, negate) {
2450
+ const parent = this._node;
2451
+ if (parent.type !== "Alternative" && parent.type !== "CharacterClass") {
2452
+ throw new Error("UnknownError");
2453
+ }
2454
+ parent.elements.push({
2455
+ type: "CharacterSet",
2456
+ parent,
2457
+ start,
2458
+ end,
2459
+ raw: this.source.slice(start, end),
2460
+ kind,
2461
+ negate,
2462
+ });
2463
+ }
2464
+ onUnicodePropertyCharacterSet(start, end, kind, key, value, negate, strings) {
2465
+ const parent = this._node;
2466
+ if (parent.type !== "Alternative" && parent.type !== "CharacterClass") {
2467
+ throw new Error("UnknownError");
2468
+ }
2469
+ const base = {
2470
+ type: "CharacterSet",
2471
+ parent: null,
2472
+ start,
2473
+ end,
2474
+ raw: this.source.slice(start, end),
2475
+ kind,
2476
+ strings: null,
2477
+ key,
2478
+ };
2479
+ if (strings) {
2480
+ if ((parent.type === "CharacterClass" && !parent.unicodeSets) ||
2481
+ negate ||
2482
+ value !== null) {
2483
+ throw new Error("UnknownError");
2484
+ }
2485
+ parent.elements.push(Object.assign(Object.assign({}, base), { parent, strings, value, negate }));
2486
+ }
2487
+ else {
2488
+ parent.elements.push(Object.assign(Object.assign({}, base), { parent, strings, value, negate }));
2489
+ }
2490
+ }
2491
+ onCharacter(start, end, value) {
2492
+ const parent = this._node;
2493
+ if (parent.type !== "Alternative" &&
2494
+ parent.type !== "CharacterClass" &&
2495
+ parent.type !== "StringAlternative") {
2496
+ throw new Error("UnknownError");
2497
+ }
2498
+ parent.elements.push({
2499
+ type: "Character",
2500
+ parent,
2501
+ start,
2502
+ end,
2503
+ raw: this.source.slice(start, end),
2504
+ value,
2505
+ });
2506
+ }
2507
+ onBackreference(start, end, ref) {
2508
+ const parent = this._node;
2509
+ if (parent.type !== "Alternative") {
2510
+ throw new Error("UnknownError");
2511
+ }
2512
+ const node = {
2513
+ type: "Backreference",
2514
+ parent,
2515
+ start,
2516
+ end,
2517
+ raw: this.source.slice(start, end),
2518
+ ref,
2519
+ ambiguous: false,
2520
+ resolved: DUMMY_CAPTURING_GROUP,
2521
+ };
2522
+ parent.elements.push(node);
2523
+ this._backreferences.push(node);
2524
+ }
2525
+ onCharacterClassEnter(start, negate, unicodeSets) {
2526
+ const parent = this._node;
2527
+ const base = {
2528
+ type: "CharacterClass",
2529
+ parent,
2530
+ start,
2531
+ end: start,
2532
+ raw: "",
2533
+ unicodeSets,
2534
+ negate,
2535
+ elements: [],
2536
+ };
2537
+ if (parent.type === "Alternative") {
2538
+ const node = Object.assign(Object.assign({}, base), { parent });
2539
+ this._node = node;
2540
+ parent.elements.push(node);
2541
+ }
2542
+ else if (parent.type === "CharacterClass" &&
2543
+ parent.unicodeSets &&
2544
+ unicodeSets) {
2545
+ const node = Object.assign(Object.assign({}, base), { parent,
2546
+ unicodeSets });
2547
+ this._node = node;
2548
+ parent.elements.push(node);
2549
+ }
2550
+ else {
2551
+ throw new Error("UnknownError");
2552
+ }
2553
+ }
2554
+ onCharacterClassLeave(start, end) {
2555
+ const node = this._node;
2556
+ if (node.type !== "CharacterClass" ||
2557
+ (node.parent.type !== "Alternative" &&
2558
+ node.parent.type !== "CharacterClass")) {
2559
+ throw new Error("UnknownError");
2560
+ }
2561
+ const parent = node.parent;
2562
+ node.end = end;
2563
+ node.raw = this.source.slice(start, end);
2564
+ this._node = parent;
2565
+ const expression = this._expressionBufferMap.get(node);
2566
+ if (!expression) {
2567
+ return;
2568
+ }
2569
+ if (node.elements.length > 0) {
2570
+ throw new Error("UnknownError");
2571
+ }
2572
+ this._expressionBufferMap.delete(node);
2573
+ const newNode = {
2574
+ type: "ExpressionCharacterClass",
2575
+ parent,
2576
+ start: node.start,
2577
+ end: node.end,
2578
+ raw: node.raw,
2579
+ negate: node.negate,
2580
+ expression,
2581
+ };
2582
+ expression.parent = newNode;
2583
+ if (node !== parent.elements.pop()) {
2584
+ throw new Error("UnknownError");
2585
+ }
2586
+ parent.elements.push(newNode);
2587
+ }
2588
+ onCharacterClassRange(start, end) {
2589
+ const parent = this._node;
2590
+ if (parent.type !== "CharacterClass") {
2591
+ throw new Error("UnknownError");
2592
+ }
2593
+ const elements = parent.elements;
2594
+ const max = elements.pop();
2595
+ if (!max || max.type !== "Character") {
2596
+ throw new Error("UnknownError");
2597
+ }
2598
+ if (!parent.unicodeSets) {
2599
+ const hyphen = elements.pop();
2600
+ if (!hyphen ||
2601
+ hyphen.type !== "Character" ||
2602
+ hyphen.value !== HYPHEN_MINUS) {
2603
+ throw new Error("UnknownError");
2604
+ }
2605
+ }
2606
+ const min = elements.pop();
2607
+ if (!min || min.type !== "Character") {
2608
+ throw new Error("UnknownError");
2609
+ }
2610
+ const node = {
2611
+ type: "CharacterClassRange",
2612
+ parent,
2613
+ start,
2614
+ end,
2615
+ raw: this.source.slice(start, end),
2616
+ min,
2617
+ max,
2618
+ };
2619
+ min.parent = node;
2620
+ max.parent = node;
2621
+ elements.push(node);
2622
+ }
2623
+ onClassIntersection(start, end) {
2624
+ var _a;
2625
+ const parent = this._node;
2626
+ if (parent.type !== "CharacterClass" || !parent.unicodeSets) {
2627
+ throw new Error("UnknownError");
2628
+ }
2629
+ const right = parent.elements.pop();
2630
+ const left = (_a = this._expressionBufferMap.get(parent)) !== null && _a !== void 0 ? _a : parent.elements.pop();
2631
+ if (!left ||
2632
+ !right ||
2633
+ left.type === "ClassSubtraction" ||
2634
+ (left.type !== "ClassIntersection" && !isClassSetOperand(left)) ||
2635
+ !isClassSetOperand(right)) {
2636
+ throw new Error("UnknownError");
2637
+ }
2638
+ const node = {
2639
+ type: "ClassIntersection",
2640
+ parent: parent,
2641
+ start,
2642
+ end,
2643
+ raw: this.source.slice(start, end),
2644
+ left,
2645
+ right,
2646
+ };
2647
+ left.parent = node;
2648
+ right.parent = node;
2649
+ this._expressionBufferMap.set(parent, node);
2650
+ }
2651
+ onClassSubtraction(start, end) {
2652
+ var _a;
2653
+ const parent = this._node;
2654
+ if (parent.type !== "CharacterClass" || !parent.unicodeSets) {
2655
+ throw new Error("UnknownError");
2656
+ }
2657
+ const right = parent.elements.pop();
2658
+ const left = (_a = this._expressionBufferMap.get(parent)) !== null && _a !== void 0 ? _a : parent.elements.pop();
2659
+ if (!left ||
2660
+ !right ||
2661
+ left.type === "ClassIntersection" ||
2662
+ (left.type !== "ClassSubtraction" && !isClassSetOperand(left)) ||
2663
+ !isClassSetOperand(right)) {
2664
+ throw new Error("UnknownError");
2665
+ }
2666
+ const node = {
2667
+ type: "ClassSubtraction",
2668
+ parent: parent,
2669
+ start,
2670
+ end,
2671
+ raw: this.source.slice(start, end),
2672
+ left,
2673
+ right,
2674
+ };
2675
+ left.parent = node;
2676
+ right.parent = node;
2677
+ this._expressionBufferMap.set(parent, node);
2678
+ }
2679
+ onClassStringDisjunctionEnter(start) {
2680
+ const parent = this._node;
2681
+ if (parent.type !== "CharacterClass" || !parent.unicodeSets) {
2682
+ throw new Error("UnknownError");
2683
+ }
2684
+ this._node = {
2685
+ type: "ClassStringDisjunction",
2686
+ parent,
2687
+ start,
2688
+ end: start,
2689
+ raw: "",
2690
+ alternatives: [],
2691
+ };
2692
+ parent.elements.push(this._node);
2693
+ }
2694
+ onClassStringDisjunctionLeave(start, end) {
2695
+ const node = this._node;
2696
+ if (node.type !== "ClassStringDisjunction" ||
2697
+ node.parent.type !== "CharacterClass") {
2698
+ throw new Error("UnknownError");
2699
+ }
2700
+ node.end = end;
2701
+ node.raw = this.source.slice(start, end);
2702
+ this._node = node.parent;
2703
+ }
2704
+ onStringAlternativeEnter(start) {
2705
+ const parent = this._node;
2706
+ if (parent.type !== "ClassStringDisjunction") {
2707
+ throw new Error("UnknownError");
2708
+ }
2709
+ this._node = {
2710
+ type: "StringAlternative",
2711
+ parent,
2712
+ start,
2713
+ end: start,
2714
+ raw: "",
2715
+ elements: [],
2716
+ };
2717
+ parent.alternatives.push(this._node);
2718
+ }
2719
+ onStringAlternativeLeave(start, end) {
2720
+ const node = this._node;
2721
+ if (node.type !== "StringAlternative") {
2722
+ throw new Error("UnknownError");
2723
+ }
2724
+ node.end = end;
2725
+ node.raw = this.source.slice(start, end);
2726
+ this._node = node.parent;
2727
+ }
2728
+ }
2729
+ class RegExpParser {
2730
+ constructor(options) {
2731
+ this._state = new RegExpParserState(options);
2732
+ this._validator = new RegExpValidator(this._state);
2733
+ }
2734
+ parseLiteral(source, start = 0, end = source.length) {
2735
+ this._state.source = source;
2736
+ this._validator.validateLiteral(source, start, end);
2737
+ const pattern = this._state.pattern;
2738
+ const flags = this._state.flags;
2739
+ const literal = {
2740
+ type: "RegExpLiteral",
2741
+ parent: null,
2742
+ start,
2743
+ end,
2744
+ raw: source,
2745
+ pattern,
2746
+ flags,
2747
+ };
2748
+ pattern.parent = literal;
2749
+ flags.parent = literal;
2750
+ return literal;
2751
+ }
2752
+ parseFlags(source, start = 0, end = source.length) {
2753
+ this._state.source = source;
2754
+ this._validator.validateFlags(source, start, end);
2755
+ return this._state.flags;
2756
+ }
2757
+ parsePattern(source, start = 0, end = source.length, uFlagOrFlags = undefined) {
2758
+ this._state.source = source;
2759
+ this._validator.validatePattern(source, start, end, uFlagOrFlags);
2760
+ return this._state.pattern;
2761
+ }
2762
+ }
2763
+
2764
+ class RegExpVisitor {
2765
+ constructor(handlers) {
2766
+ this._handlers = handlers;
2767
+ }
2768
+ visit(node) {
2769
+ switch (node.type) {
2770
+ case "Alternative":
2771
+ this.visitAlternative(node);
2772
+ break;
2773
+ case "Assertion":
2774
+ this.visitAssertion(node);
2775
+ break;
2776
+ case "Backreference":
2777
+ this.visitBackreference(node);
2778
+ break;
2779
+ case "CapturingGroup":
2780
+ this.visitCapturingGroup(node);
2781
+ break;
2782
+ case "Character":
2783
+ this.visitCharacter(node);
2784
+ break;
2785
+ case "CharacterClass":
2786
+ this.visitCharacterClass(node);
2787
+ break;
2788
+ case "CharacterClassRange":
2789
+ this.visitCharacterClassRange(node);
2790
+ break;
2791
+ case "CharacterSet":
2792
+ this.visitCharacterSet(node);
2793
+ break;
2794
+ case "ClassIntersection":
2795
+ this.visitClassIntersection(node);
2796
+ break;
2797
+ case "ClassStringDisjunction":
2798
+ this.visitClassStringDisjunction(node);
2799
+ break;
2800
+ case "ClassSubtraction":
2801
+ this.visitClassSubtraction(node);
2802
+ break;
2803
+ case "ExpressionCharacterClass":
2804
+ this.visitExpressionCharacterClass(node);
2805
+ break;
2806
+ case "Flags":
2807
+ this.visitFlags(node);
2808
+ break;
2809
+ case "Group":
2810
+ this.visitGroup(node);
2811
+ break;
2812
+ case "Modifiers":
2813
+ this.visitModifiers(node);
2814
+ break;
2815
+ case "ModifierFlags":
2816
+ this.visitModifierFlags(node);
2817
+ break;
2818
+ case "Pattern":
2819
+ this.visitPattern(node);
2820
+ break;
2821
+ case "Quantifier":
2822
+ this.visitQuantifier(node);
2823
+ break;
2824
+ case "RegExpLiteral":
2825
+ this.visitRegExpLiteral(node);
2826
+ break;
2827
+ case "StringAlternative":
2828
+ this.visitStringAlternative(node);
2829
+ break;
2830
+ default:
2831
+ throw new Error(`Unknown type: ${node.type}`);
2832
+ }
2833
+ }
2834
+ visitAlternative(node) {
2835
+ if (this._handlers.onAlternativeEnter) {
2836
+ this._handlers.onAlternativeEnter(node);
2837
+ }
2838
+ node.elements.forEach(this.visit, this);
2839
+ if (this._handlers.onAlternativeLeave) {
2840
+ this._handlers.onAlternativeLeave(node);
2841
+ }
2842
+ }
2843
+ visitAssertion(node) {
2844
+ if (this._handlers.onAssertionEnter) {
2845
+ this._handlers.onAssertionEnter(node);
2846
+ }
2847
+ if (node.kind === "lookahead" || node.kind === "lookbehind") {
2848
+ node.alternatives.forEach(this.visit, this);
2849
+ }
2850
+ if (this._handlers.onAssertionLeave) {
2851
+ this._handlers.onAssertionLeave(node);
2852
+ }
2853
+ }
2854
+ visitBackreference(node) {
2855
+ if (this._handlers.onBackreferenceEnter) {
2856
+ this._handlers.onBackreferenceEnter(node);
2857
+ }
2858
+ if (this._handlers.onBackreferenceLeave) {
2859
+ this._handlers.onBackreferenceLeave(node);
2860
+ }
2861
+ }
2862
+ visitCapturingGroup(node) {
2863
+ if (this._handlers.onCapturingGroupEnter) {
2864
+ this._handlers.onCapturingGroupEnter(node);
2865
+ }
2866
+ node.alternatives.forEach(this.visit, this);
2867
+ if (this._handlers.onCapturingGroupLeave) {
2868
+ this._handlers.onCapturingGroupLeave(node);
2869
+ }
2870
+ }
2871
+ visitCharacter(node) {
2872
+ if (this._handlers.onCharacterEnter) {
2873
+ this._handlers.onCharacterEnter(node);
2874
+ }
2875
+ if (this._handlers.onCharacterLeave) {
2876
+ this._handlers.onCharacterLeave(node);
2877
+ }
2878
+ }
2879
+ visitCharacterClass(node) {
2880
+ if (this._handlers.onCharacterClassEnter) {
2881
+ this._handlers.onCharacterClassEnter(node);
2882
+ }
2883
+ node.elements.forEach(this.visit, this);
2884
+ if (this._handlers.onCharacterClassLeave) {
2885
+ this._handlers.onCharacterClassLeave(node);
2886
+ }
2887
+ }
2888
+ visitCharacterClassRange(node) {
2889
+ if (this._handlers.onCharacterClassRangeEnter) {
2890
+ this._handlers.onCharacterClassRangeEnter(node);
2891
+ }
2892
+ this.visitCharacter(node.min);
2893
+ this.visitCharacter(node.max);
2894
+ if (this._handlers.onCharacterClassRangeLeave) {
2895
+ this._handlers.onCharacterClassRangeLeave(node);
2896
+ }
2897
+ }
2898
+ visitCharacterSet(node) {
2899
+ if (this._handlers.onCharacterSetEnter) {
2900
+ this._handlers.onCharacterSetEnter(node);
2901
+ }
2902
+ if (this._handlers.onCharacterSetLeave) {
2903
+ this._handlers.onCharacterSetLeave(node);
2904
+ }
2905
+ }
2906
+ visitClassIntersection(node) {
2907
+ if (this._handlers.onClassIntersectionEnter) {
2908
+ this._handlers.onClassIntersectionEnter(node);
2909
+ }
2910
+ this.visit(node.left);
2911
+ this.visit(node.right);
2912
+ if (this._handlers.onClassIntersectionLeave) {
2913
+ this._handlers.onClassIntersectionLeave(node);
2914
+ }
2915
+ }
2916
+ visitClassStringDisjunction(node) {
2917
+ if (this._handlers.onClassStringDisjunctionEnter) {
2918
+ this._handlers.onClassStringDisjunctionEnter(node);
2919
+ }
2920
+ node.alternatives.forEach(this.visit, this);
2921
+ if (this._handlers.onClassStringDisjunctionLeave) {
2922
+ this._handlers.onClassStringDisjunctionLeave(node);
2923
+ }
2924
+ }
2925
+ visitClassSubtraction(node) {
2926
+ if (this._handlers.onClassSubtractionEnter) {
2927
+ this._handlers.onClassSubtractionEnter(node);
2928
+ }
2929
+ this.visit(node.left);
2930
+ this.visit(node.right);
2931
+ if (this._handlers.onClassSubtractionLeave) {
2932
+ this._handlers.onClassSubtractionLeave(node);
2933
+ }
2934
+ }
2935
+ visitExpressionCharacterClass(node) {
2936
+ if (this._handlers.onExpressionCharacterClassEnter) {
2937
+ this._handlers.onExpressionCharacterClassEnter(node);
2938
+ }
2939
+ this.visit(node.expression);
2940
+ if (this._handlers.onExpressionCharacterClassLeave) {
2941
+ this._handlers.onExpressionCharacterClassLeave(node);
2942
+ }
2943
+ }
2944
+ visitFlags(node) {
2945
+ if (this._handlers.onFlagsEnter) {
2946
+ this._handlers.onFlagsEnter(node);
2947
+ }
2948
+ if (this._handlers.onFlagsLeave) {
2949
+ this._handlers.onFlagsLeave(node);
2950
+ }
2951
+ }
2952
+ visitGroup(node) {
2953
+ if (this._handlers.onGroupEnter) {
2954
+ this._handlers.onGroupEnter(node);
2955
+ }
2956
+ if (node.modifiers) {
2957
+ this.visit(node.modifiers);
2958
+ }
2959
+ node.alternatives.forEach(this.visit, this);
2960
+ if (this._handlers.onGroupLeave) {
2961
+ this._handlers.onGroupLeave(node);
2962
+ }
2963
+ }
2964
+ visitModifiers(node) {
2965
+ if (this._handlers.onModifiersEnter) {
2966
+ this._handlers.onModifiersEnter(node);
2967
+ }
2968
+ if (node.add) {
2969
+ this.visit(node.add);
2970
+ }
2971
+ if (node.remove) {
2972
+ this.visit(node.remove);
2973
+ }
2974
+ if (this._handlers.onModifiersLeave) {
2975
+ this._handlers.onModifiersLeave(node);
2976
+ }
2977
+ }
2978
+ visitModifierFlags(node) {
2979
+ if (this._handlers.onModifierFlagsEnter) {
2980
+ this._handlers.onModifierFlagsEnter(node);
2981
+ }
2982
+ if (this._handlers.onModifierFlagsLeave) {
2983
+ this._handlers.onModifierFlagsLeave(node);
2984
+ }
2985
+ }
2986
+ visitPattern(node) {
2987
+ if (this._handlers.onPatternEnter) {
2988
+ this._handlers.onPatternEnter(node);
2989
+ }
2990
+ node.alternatives.forEach(this.visit, this);
2991
+ if (this._handlers.onPatternLeave) {
2992
+ this._handlers.onPatternLeave(node);
2993
+ }
2994
+ }
2995
+ visitQuantifier(node) {
2996
+ if (this._handlers.onQuantifierEnter) {
2997
+ this._handlers.onQuantifierEnter(node);
2998
+ }
2999
+ this.visit(node.element);
3000
+ if (this._handlers.onQuantifierLeave) {
3001
+ this._handlers.onQuantifierLeave(node);
3002
+ }
3003
+ }
3004
+ visitRegExpLiteral(node) {
3005
+ if (this._handlers.onRegExpLiteralEnter) {
3006
+ this._handlers.onRegExpLiteralEnter(node);
3007
+ }
3008
+ this.visitPattern(node.pattern);
3009
+ this.visitFlags(node.flags);
3010
+ if (this._handlers.onRegExpLiteralLeave) {
3011
+ this._handlers.onRegExpLiteralLeave(node);
3012
+ }
3013
+ }
3014
+ visitStringAlternative(node) {
3015
+ if (this._handlers.onStringAlternativeEnter) {
3016
+ this._handlers.onStringAlternativeEnter(node);
3017
+ }
3018
+ node.elements.forEach(this.visit, this);
3019
+ if (this._handlers.onStringAlternativeLeave) {
3020
+ this._handlers.onStringAlternativeLeave(node);
3021
+ }
3022
+ }
3023
+ }
3024
+
3025
+ function parseRegExpLiteral(source, options) {
3026
+ return new RegExpParser(options).parseLiteral(String(source));
3027
+ }
3028
+ function validateRegExpLiteral(source, options) {
3029
+ new RegExpValidator(options).validateLiteral(source);
3030
+ }
3031
+ function visitRegExpAST(node, handlers) {
3032
+ new RegExpVisitor(handlers).visit(node);
3033
+ }
3034
+
3035
+ exports.AST = ast;
3036
+ exports.RegExpParser = RegExpParser;
3037
+ exports.RegExpSyntaxError = RegExpSyntaxError;
3038
+ exports.RegExpValidator = RegExpValidator;
3039
+ exports.parseRegExpLiteral = parseRegExpLiteral;
3040
+ exports.validateRegExpLiteral = validateRegExpLiteral;
3041
+ exports.visitRegExpAST = visitRegExpAST;
3042
+ //# sourceMappingURL=index.js.map