@songtonyli/dsh-cli 0.1.39 → 0.1.41

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 (1238) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@deepseek-ai/cordis/package.json +4 -4
  4. package/node_modules/@deepseek-ai/cordis-plugin-group/package.json +3 -3
  5. package/node_modules/@deepseek-ai/cordis-plugin-include/package.json +4 -4
  6. package/node_modules/@deepseek-ai/cordis-plugin-loader/package.json +4 -4
  7. package/node_modules/@deepseek-ai/cordis-plugin-timer/package.json +3 -3
  8. package/node_modules/@deepseek-ai/cosmokit/package.json +1 -1
  9. package/node_modules/@deepseek-ai/dsh/README.i18n.yaml +21 -5
  10. package/node_modules/@deepseek-ai/dsh/README.md +3 -1
  11. package/node_modules/@deepseek-ai/dsh/README.zh.md +3 -1
  12. package/node_modules/@deepseek-ai/dsh/lib/bin.js +5 -11
  13. package/node_modules/@deepseek-ai/dsh/lib/{dump-config-C-0P1h0W.js → dump-config-BEDI-dNY.js} +2 -2
  14. package/node_modules/@deepseek-ai/dsh/lib/dump-config-crgOY3tW.js +2 -0
  15. package/node_modules/@deepseek-ai/dsh/lib/{dump-config-schema-BgEU7VYz.js → dump-config-schema-DhhNOaro.js} +3 -3
  16. package/node_modules/@deepseek-ai/dsh/lib/plugin-DkYIj96-.js +83 -0
  17. package/node_modules/@deepseek-ai/dsh/lib/{profile-boot-DIiro1p-.js → profile-boot-BZ2ZjNWi.js} +4 -3
  18. package/node_modules/@deepseek-ai/dsh/lib/profile-boot.js +1 -1
  19. package/node_modules/@deepseek-ai/dsh/package.json +116 -113
  20. package/node_modules/@deepseek-ai/dsh-acp/README.i18n.yaml +81 -5
  21. package/node_modules/@deepseek-ai/dsh-acp/package.json +25 -25
  22. package/node_modules/@deepseek-ai/dsh-acp-app/README.i18n.yaml +42 -5
  23. package/node_modules/@deepseek-ai/dsh-acp-app/package.json +6 -6
  24. package/node_modules/@deepseek-ai/dsh-agent/README.i18n.yaml +90 -5
  25. package/node_modules/@deepseek-ai/dsh-agent/package.json +22 -22
  26. package/node_modules/@deepseek-ai/dsh-agent-default-model/README.i18n.yaml +51 -5
  27. package/node_modules/@deepseek-ai/dsh-agent-default-model/README.md +1 -1
  28. package/node_modules/@deepseek-ai/dsh-agent-default-model/README.zh.md +1 -1
  29. package/node_modules/@deepseek-ai/dsh-agent-default-model/lib/index.js +10 -3
  30. package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +10 -10
  31. package/node_modules/@deepseek-ai/dsh-agent-instructions/README.i18n.yaml +99 -5
  32. package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +26 -25
  33. package/node_modules/@deepseek-ai/dsh-agent-loop/README.i18n.yaml +99 -5
  34. package/node_modules/@deepseek-ai/dsh-agent-loop/README.md +3 -3
  35. package/node_modules/@deepseek-ai/dsh-agent-loop/README.zh.md +3 -3
  36. package/node_modules/@deepseek-ai/dsh-agent-loop/lib/index.js +35 -9
  37. package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +27 -26
  38. package/node_modules/@deepseek-ai/dsh-agent-preset/README.i18n.yaml +36 -5
  39. package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +12 -12
  40. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +9 -6
  41. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/SKILL.md +10 -3
  42. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/practices.md +38 -0
  43. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/ui-plugin.md +1 -1
  44. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.i18n.yaml +48 -5
  45. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.md +2 -2
  46. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.zh.md +2 -2
  47. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/index.js +52 -21
  48. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/invariant.js +52 -21
  49. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +114 -45
  50. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.remote-client.js +37 -3
  51. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/index.js +26 -11
  52. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/mount.js +5 -1
  53. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +39 -36
  54. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/README.i18n.yaml +54 -5
  55. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +11 -11
  56. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/README.i18n.yaml +63 -5
  57. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +7 -7
  58. package/node_modules/@deepseek-ai/dsh-api-account-controller/README.i18n.yaml +36 -5
  59. package/node_modules/@deepseek-ai/dsh-api-account-controller/README.md +7 -1
  60. package/node_modules/@deepseek-ai/dsh-api-account-controller/README.zh.md +7 -1
  61. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/index.js +123 -10
  62. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/typert.host.js +200 -11
  63. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/typert.remote-client.js +200 -11
  64. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/types/index.js +79 -6
  65. package/node_modules/@deepseek-ai/dsh-api-account-controller/package.json +9 -7
  66. package/node_modules/@deepseek-ai/dsh-api-gateway/README.i18n.yaml +33 -5
  67. package/node_modules/@deepseek-ai/dsh-api-gateway/README.md +4 -0
  68. package/node_modules/@deepseek-ai/dsh-api-gateway/README.zh.md +4 -0
  69. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.js +6 -2
  70. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/index.js +50 -26
  71. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/stream-client.js +9 -2
  72. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/index.js +61 -29
  73. package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +14 -13
  74. package/node_modules/@deepseek-ai/dsh-api-job-controller/README.i18n.yaml +33 -5
  75. package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +13 -13
  76. package/node_modules/@deepseek-ai/dsh-api-remotes/README.i18n.yaml +36 -5
  77. package/node_modules/@deepseek-ai/dsh-api-remotes/README.md +2 -2
  78. package/node_modules/@deepseek-ai/dsh-api-remotes/README.zh.md +2 -2
  79. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +1268 -217
  80. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/index.js +12 -0
  81. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/client/index.js +5 -2
  82. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/remote-events.js +3 -0
  83. package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +43 -40
  84. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.i18n.yaml +39 -5
  85. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.md +9 -5
  86. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.zh.md +9 -5
  87. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +101 -32
  88. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +159 -79
  89. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +179 -99
  90. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +40 -15
  91. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/catalog.js +52 -3
  92. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/assistant-stream.js +16 -1
  93. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/projection-store.js +9 -0
  94. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/session.js +81 -40
  95. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/transport.js +5 -2
  96. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.js +11 -14
  97. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history.js +24 -9
  98. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +24 -4
  99. package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +75 -68
  100. package/node_modules/@deepseek-ai/dsh-api-settings-controller/README.i18n.yaml +33 -5
  101. package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +16 -16
  102. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.i18n.yaml +36 -5
  103. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +63 -39
  104. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +20 -20
  105. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.i18n.yaml +33 -5
  106. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.md +4 -2
  107. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.zh.md +4 -2
  108. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/client.js +4 -5
  109. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/index.js +25 -12
  110. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/typert.host.js +13 -32
  111. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/typert.remote-client.js +11 -26
  112. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/client/model.js +2 -3
  113. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/client/service.js +2 -2
  114. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/default-directory.js +3 -3
  115. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/default-workspace.js +29 -0
  116. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/index.js +7 -11
  117. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +25 -21
  118. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.i18n.yaml +66 -5
  119. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.md +1 -1
  120. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.zh.md +1 -1
  121. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/index.js +7 -1
  122. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/typert.host.js +1 -1
  123. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/typert.remote-client.js +1 -1
  124. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/types/index.js +10 -1
  125. package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +15 -15
  126. package/node_modules/@deepseek-ai/dsh-app-boot/README.i18n.yaml +72 -5
  127. package/node_modules/@deepseek-ai/dsh-app-boot/README.md +11 -3
  128. package/node_modules/@deepseek-ai/dsh-app-boot/README.zh.md +11 -3
  129. package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +460 -60
  130. package/node_modules/@deepseek-ai/dsh-app-boot/lib/worker/profile-resolution-bootstrap.js +16 -6
  131. package/node_modules/@deepseek-ai/dsh-app-boot/package.json +22 -19
  132. package/node_modules/@deepseek-ai/dsh-atomic-write/README.i18n.yaml +54 -5
  133. package/node_modules/@deepseek-ai/dsh-atomic-write/README.md +6 -5
  134. package/node_modules/@deepseek-ai/dsh-atomic-write/README.zh.md +6 -5
  135. package/node_modules/@deepseek-ai/dsh-atomic-write/lib/index.js +73 -8
  136. package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +3 -3
  137. package/node_modules/@deepseek-ai/dsh-attachment/README.i18n.yaml +66 -5
  138. package/node_modules/@deepseek-ai/dsh-attachment/package.json +5 -5
  139. package/node_modules/@deepseek-ai/dsh-attachment-local/README.i18n.yaml +60 -5
  140. package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +9 -9
  141. package/node_modules/@deepseek-ai/dsh-authorization/README.i18n.yaml +63 -5
  142. package/node_modules/@deepseek-ai/dsh-authorization/package.json +9 -9
  143. package/node_modules/@deepseek-ai/dsh-base/README.i18n.yaml +60 -5
  144. package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +5 -2
  145. package/node_modules/@deepseek-ai/dsh-base/package.json +96 -95
  146. package/node_modules/@deepseek-ai/dsh-bash-local/README.i18n.yaml +60 -5
  147. package/node_modules/@deepseek-ai/dsh-bash-local/package.json +11 -11
  148. package/node_modules/@deepseek-ai/dsh-bash-sandbox/README.i18n.yaml +96 -5
  149. package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +14 -14
  150. package/node_modules/@deepseek-ai/dsh-brand/README.i18n.yaml +45 -5
  151. package/node_modules/@deepseek-ai/dsh-brand/package.json +3 -3
  152. package/node_modules/@deepseek-ai/dsh-chunked-list/README.i18n.yaml +36 -5
  153. package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +3 -3
  154. package/node_modules/@deepseek-ai/dsh-client-connection/README.i18n.yaml +36 -5
  155. package/node_modules/@deepseek-ai/dsh-client-connection/package.json +13 -13
  156. package/node_modules/@deepseek-ai/dsh-client-file-upload/README.i18n.yaml +36 -5
  157. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +63 -39
  158. package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +14 -14
  159. package/node_modules/@deepseek-ai/dsh-client-hmr/README.i18n.yaml +63 -5
  160. package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +8 -8
  161. package/node_modules/@deepseek-ai/dsh-client-locale/README.i18n.yaml +63 -5
  162. package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +9 -1
  163. package/node_modules/@deepseek-ai/dsh-client-locale/package.json +13 -13
  164. package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +69 -5
  165. package/node_modules/@deepseek-ai/dsh-client-modules/README.md +1 -1
  166. package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +1 -1
  167. package/node_modules/@deepseek-ai/dsh-client-modules/lib/client.js +103 -17
  168. package/node_modules/@deepseek-ai/dsh-client-modules/package.json +8 -8
  169. package/node_modules/@deepseek-ai/dsh-client-resources/README.i18n.yaml +48 -5
  170. package/node_modules/@deepseek-ai/dsh-client-resources/package.json +7 -7
  171. package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.i18n.yaml +37 -0
  172. package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.md +94 -0
  173. package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.zh.md +94 -0
  174. package/node_modules/@deepseek-ai/dsh-client-shortcuts/lib/client.js +2006 -0
  175. package/node_modules/@deepseek-ai/dsh-client-shortcuts/lib/index.js +23 -0
  176. package/node_modules/@deepseek-ai/dsh-client-shortcuts/lib/protocol.js +524 -0
  177. package/node_modules/@deepseek-ai/dsh-client-shortcuts/package.json +63 -0
  178. package/node_modules/@deepseek-ai/dsh-client-store/README.i18n.yaml +27 -5
  179. package/node_modules/@deepseek-ai/dsh-client-store/package.json +3 -3
  180. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.i18n.yaml +36 -5
  181. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.md +6 -6
  182. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.zh.md +6 -6
  183. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +192 -135
  184. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +18 -18
  185. package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.i18n.yaml +27 -5
  186. package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.md +3 -1
  187. package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.zh.md +3 -1
  188. package/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/client.js +77 -4
  189. package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +16 -15
  190. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.i18n.yaml +45 -5
  191. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.md +1 -1
  192. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.zh.md +1 -1
  193. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +19 -93
  194. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +11 -11
  195. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/README.i18n.yaml +42 -5
  196. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +6 -6
  197. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +51 -5
  198. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +34 -9
  199. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +34 -9
  200. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +885 -287
  201. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/index.js +15 -8
  202. package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +39 -39
  203. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +45 -5
  204. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +2 -0
  205. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +2 -0
  206. package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +2 -2
  207. package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +17 -17
  208. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +36 -5
  209. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +12 -6
  210. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +12 -6
  211. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +415 -80
  212. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +35 -34
  213. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.i18n.yaml +54 -5
  214. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.md +2 -0
  215. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.zh.md +2 -0
  216. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +73 -3
  217. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +14 -14
  218. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +57 -5
  219. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +10 -7
  220. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +10 -7
  221. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +242 -211
  222. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/index.js +1 -1
  223. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +29 -29
  224. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/README.i18n.yaml +39 -5
  225. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/lib/client.js +2 -2
  226. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +9 -9
  227. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/README.i18n.yaml +39 -5
  228. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +5 -5
  229. package/node_modules/@deepseek-ai/dsh-client-ui-goal/README.i18n.yaml +42 -5
  230. package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +8 -2
  231. package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +16 -16
  232. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.i18n.yaml +39 -5
  233. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.md +3 -1
  234. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.zh.md +3 -1
  235. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +3 -3
  236. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +14 -14
  237. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.i18n.yaml +42 -5
  238. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.md +1 -1
  239. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.zh.md +1 -1
  240. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +1 -1
  241. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +12 -12
  242. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.i18n.yaml +42 -5
  243. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.md +4 -2
  244. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.zh.md +4 -2
  245. package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +63 -36
  246. package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +14 -12
  247. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/README.i18n.yaml +39 -5
  248. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/lib/client.js +2 -2
  249. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +18 -18
  250. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +45 -5
  251. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +14 -9
  252. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +14 -9
  253. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +97 -80
  254. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +17 -17
  255. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.i18n.yaml +39 -5
  256. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +4 -2
  257. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +4 -2
  258. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +172 -56
  259. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +22 -18
  260. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/README.i18n.yaml +42 -5
  261. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/lib/client.js +4 -4
  262. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +17 -17
  263. package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.i18n.yaml +45 -5
  264. package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +8 -3
  265. package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +22 -22
  266. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +60 -5
  267. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +16 -6
  268. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +17 -7
  269. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +336 -98
  270. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/index.js +140 -4
  271. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/typert.host.js +53 -0
  272. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/typert.remote-client.js +28 -0
  273. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +36 -18
  274. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.i18n.yaml +60 -5
  275. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.md +32 -11
  276. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.zh.md +32 -11
  277. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Button.module.css +6 -8
  278. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Checkbox.module.css +1 -1
  279. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/CodeCard.module.css +83 -0
  280. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ConnectionIndicator.module.css +6 -2
  281. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DiffBlock.module.css +24 -53
  282. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/HoverCard.module.css +17 -8
  283. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ImageLightbox.module.css +46 -0
  284. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ImagePreview.module.css +24 -0
  285. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Input.module.css +2 -2
  286. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/JsonTree.module.css +3 -3
  287. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Menu.module.css +22 -18
  288. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/MenuSurface.module.css +49 -0
  289. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Modal.module.css +27 -6
  290. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Pill.module.css +2 -1
  291. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ReadBlock.module.css +13 -81
  292. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/RiskConfirmation.module.css +1 -1
  293. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SearchBlock.module.css +1 -1
  294. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SegmentedControl.module.css +9 -9
  295. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SegmentedTabs.module.css +3 -3
  296. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ShortcutKeys.module.css +33 -0
  297. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Switch.module.css +3 -8
  298. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/TerminalBlock.module.css +3 -3
  299. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Toast.module.css +2 -2
  300. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Tooltip.module.css +9 -1
  301. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/WebBlock.module.css +1 -1
  302. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +1735 -897
  303. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/CodeBlock.module.css +16 -1
  304. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/JsonBlock.module.css +2 -2
  305. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/MarkdownText.module.css +28 -23
  306. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/settings-form/SettingsForm.module.css +2 -2
  307. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/settings-form/fields.module.css +4 -4
  308. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Button.d.ts +6 -5
  309. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/CodeToolbar.d.ts +30 -0
  310. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DiffBlock.d.ts +3 -3
  311. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/HoverCard.d.ts +5 -2
  312. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ImageLightbox.d.ts +27 -0
  313. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ImagePreview.d.ts +12 -0
  314. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Menu.d.ts +12 -4
  315. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/MenuSurface.d.ts +16 -0
  316. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Modal.d.ts +12 -4
  317. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ReadBlock.d.ts +2 -1
  318. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ShortcutKeys.d.ts +11 -0
  319. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Tooltip.d.ts +17 -5
  320. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-highlighting.d.ts +1 -8
  321. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/focus.d.ts +9 -0
  322. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/guide-artwork.d.ts +15 -0
  323. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/index.d.ts +8 -4
  324. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/shared-artwork.d.ts +8 -1
  325. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/index.d.ts +10 -1
  326. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/input-modality.d.ts +19 -0
  327. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/keyboard-composition.d.ts +11 -0
  328. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/CodeBlock.d.ts +6 -1
  329. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/MarkdownDelegate.d.ts +11 -1
  330. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/highlight.d.ts +16 -10
  331. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/local-image-syntax.d.ts +10 -0
  332. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/render.d.ts +3 -0
  333. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/plugin-artwork.d.ts +1 -1
  334. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/fields.d.ts +1 -0
  335. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useModalLayer.d.ts +27 -0
  336. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/user-text.d.ts +2 -2
  337. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/user-text.module.css +4 -1
  338. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +6 -5
  339. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.i18n.yaml +48 -5
  340. package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +15 -15
  341. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/README.i18n.yaml +51 -5
  342. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +5 -5
  343. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.i18n.yaml +39 -5
  344. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +36 -39
  345. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +42 -45
  346. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +6735 -171
  347. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/index.js +1 -1
  348. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +32 -13
  349. package/node_modules/@deepseek-ai/dsh-client-ui-session/README.i18n.yaml +27 -5
  350. package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +10 -10
  351. package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.i18n.yaml +57 -5
  352. package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.md +3 -3
  353. package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.zh.md +3 -3
  354. package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +9 -9
  355. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.i18n.yaml +39 -5
  356. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.md +46 -8
  357. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.zh.md +46 -8
  358. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2300 -255
  359. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/index.js +66 -6
  360. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +22 -14
  361. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/README.i18n.yaml +36 -5
  362. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +11 -11
  363. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.i18n.yaml +57 -5
  364. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +10 -8
  365. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +10 -8
  366. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +202 -109
  367. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +20 -16
  368. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +60 -5
  369. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +10 -2
  370. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +11 -3
  371. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +48 -15
  372. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +13 -13
  373. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.i18n.yaml +51 -5
  374. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +1 -1
  375. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +14 -14
  376. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.i18n.yaml +36 -5
  377. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +1 -1
  378. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +8 -8
  379. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/README.i18n.yaml +36 -5
  380. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +11 -11
  381. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/README.i18n.yaml +57 -5
  382. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +10 -10
  383. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/README.i18n.yaml +36 -5
  384. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/README.zh.md +3 -3
  385. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/lib/client.js +12 -12
  386. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +11 -11
  387. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.i18n.yaml +36 -5
  388. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +11 -11
  389. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.i18n.yaml +37 -0
  390. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.md +89 -0
  391. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.zh.md +89 -0
  392. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/lib/client.js +1163 -0
  393. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/lib/index.js +6 -0
  394. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/package.json +63 -0
  395. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +54 -5
  396. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +4 -2
  397. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +4 -2
  398. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +59 -21
  399. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +16 -14
  400. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.i18n.yaml +51 -5
  401. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.md +5 -1
  402. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.zh.md +5 -1
  403. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/lib/client.js +77 -12
  404. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +13 -12
  405. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +45 -5
  406. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +14 -8
  407. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +14 -8
  408. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.excel.js +41 -15
  409. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +102 -75
  410. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.pdf.js +57 -28
  411. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +21 -21
  412. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.i18n.yaml +33 -5
  413. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.md +5 -1
  414. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.zh.md +5 -1
  415. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/client.js +76 -19
  416. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +19 -17
  417. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +54 -5
  418. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +12 -6
  419. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +12 -6
  420. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +667 -85
  421. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +20 -17
  422. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.i18n.yaml +36 -5
  423. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.md +4 -2
  424. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.zh.md +4 -2
  425. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.js +151 -106
  426. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.terminal.js +1 -1
  427. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +19 -17
  428. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.i18n.yaml +57 -5
  429. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.md +2 -0
  430. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.zh.md +2 -0
  431. package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +29 -2
  432. package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +15 -15
  433. package/node_modules/@deepseek-ai/dsh-client-ui-slots/README.i18n.yaml +54 -5
  434. package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +4 -4
  435. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.i18n.yaml +63 -5
  436. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.md +3 -1
  437. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.zh.md +3 -1
  438. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +67 -48
  439. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +19 -19
  440. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.i18n.yaml +54 -5
  441. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +20 -2
  442. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +20 -2
  443. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +13 -5
  444. package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +14 -14
  445. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +48 -5
  446. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +13 -5
  447. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +13 -5
  448. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +315 -90
  449. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +25 -24
  450. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.i18n.yaml +48 -5
  451. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.md +3 -1
  452. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.zh.md +3 -1
  453. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +68 -10
  454. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +18 -18
  455. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.i18n.yaml +51 -5
  456. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +8 -3
  457. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +20 -20
  458. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.i18n.yaml +48 -5
  459. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +1 -1
  460. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +16 -16
  461. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +72 -5
  462. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +12 -10
  463. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +12 -10
  464. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +608 -329
  465. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +27 -25
  466. package/node_modules/@deepseek-ai/dsh-cmdline/README.i18n.yaml +60 -5
  467. package/node_modules/@deepseek-ai/dsh-cmdline/package.json +6 -6
  468. package/node_modules/@deepseek-ai/dsh-command-compact/README.i18n.yaml +66 -5
  469. package/node_modules/@deepseek-ai/dsh-command-compact/package.json +12 -12
  470. package/node_modules/@deepseek-ai/dsh-command-feedback/README.i18n.yaml +63 -5
  471. package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +15 -15
  472. package/node_modules/@deepseek-ai/dsh-command-goal/README.i18n.yaml +63 -5
  473. package/node_modules/@deepseek-ai/dsh-command-goal/package.json +14 -14
  474. package/node_modules/@deepseek-ai/dsh-commands/README.i18n.yaml +75 -5
  475. package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +63 -39
  476. package/node_modules/@deepseek-ai/dsh-commands/package.json +20 -20
  477. package/node_modules/@deepseek-ai/dsh-compaction/README.i18n.yaml +84 -5
  478. package/node_modules/@deepseek-ai/dsh-compaction/package.json +13 -13
  479. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.i18n.yaml +105 -5
  480. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.md +2 -2
  481. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.zh.md +2 -2
  482. package/node_modules/@deepseek-ai/dsh-compaction-basic/lib/index.js +1 -0
  483. package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +27 -27
  484. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/README.i18n.yaml +54 -5
  485. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +18 -18
  486. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/README.i18n.yaml +66 -5
  487. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +18 -18
  488. package/node_modules/@deepseek-ai/dsh-config-editor/README.i18n.yaml +36 -5
  489. package/node_modules/@deepseek-ai/dsh-config-editor/package.json +12 -12
  490. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.i18n.yaml +78 -5
  491. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.md +4 -0
  492. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.zh.md +4 -0
  493. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +193 -43
  494. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +9 -9
  495. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.i18n.yaml +66 -5
  496. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +126 -78
  497. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +20 -20
  498. package/node_modules/@deepseek-ai/dsh-credentials/README.i18n.yaml +72 -5
  499. package/node_modules/@deepseek-ai/dsh-credentials/package.json +6 -6
  500. package/node_modules/@deepseek-ai/dsh-credentials-local/README.i18n.yaml +75 -5
  501. package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +12 -12
  502. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.i18n.yaml +36 -5
  503. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.md +13 -3
  504. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.zh.md +13 -3
  505. package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/index.js +54 -1
  506. package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/types/account-tasks.js +30 -0
  507. package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/types/index.js +26 -0
  508. package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +14 -5
  509. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.i18n.yaml +36 -5
  510. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.md +16 -8
  511. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.zh.md +16 -8
  512. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/index.js +262 -40
  513. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/details.js +44 -3
  514. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/index.js +190 -32
  515. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/protocol.js +45 -2
  516. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/package.json +12 -12
  517. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.i18n.yaml +30 -5
  518. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +3 -3
  519. package/node_modules/@deepseek-ai/dsh-deque/README.i18n.yaml +45 -5
  520. package/node_modules/@deepseek-ai/dsh-deque/package.json +3 -3
  521. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.i18n.yaml +99 -5
  522. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.md +7 -3
  523. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.zh.md +7 -3
  524. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/index.js +359 -323
  525. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/invariant.js +170 -25
  526. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/client.js +1 -1
  527. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/index.js +180 -237
  528. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/invariant.js +2 -2
  529. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/projection.js +95 -28
  530. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/task-board.js +7 -47
  531. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/task-view.js +57 -0
  532. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +25 -39
  533. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.i18n.yaml +51 -5
  534. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +7 -7
  535. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/README.i18n.yaml +36 -5
  536. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/README.md +2 -0
  537. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/README.zh.md +2 -0
  538. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/index.js +3 -2
  539. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/typert.host.js +27 -6
  540. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/typert.remote-client.js +20 -3
  541. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/types/index.js +2 -1
  542. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +8 -8
  543. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.i18n.yaml +64 -0
  544. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.md +129 -0
  545. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.zh.md +129 -0
  546. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/cordis.patch.yml +3 -0
  547. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/icon.svg +10 -0
  548. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/lib/index.js +508 -0
  549. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/en.json +6 -0
  550. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/zh.json +6 -0
  551. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/package.json +82 -0
  552. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.i18n.yaml +42 -5
  553. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.md +14 -10
  554. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.zh.md +14 -10
  555. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/lib/client.js +317 -4345
  556. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +24 -28
  557. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.i18n.yaml +36 -5
  558. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.md +4 -2
  559. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.zh.md +4 -2
  560. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/client.js +184 -44
  561. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +33 -33
  562. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.i18n.yaml +36 -5
  563. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.md +3 -1
  564. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.zh.md +3 -1
  565. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/index.js +5 -4
  566. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/types/index.js +5 -4
  567. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +11 -9
  568. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.i18n.yaml +36 -5
  569. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.md +5 -1
  570. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.zh.md +5 -1
  571. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/lib/index.js +164 -26
  572. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/lib/worker.js +3 -1
  573. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +10 -10
  574. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.i18n.yaml +69 -5
  575. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.md +1 -1
  576. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.zh.md +1 -1
  577. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/lib/index.js +9 -1
  578. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +25 -25
  579. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/README.i18n.yaml +36 -5
  580. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +8 -8
  581. package/node_modules/@deepseek-ai/dsh-file-reference/README.i18n.yaml +54 -5
  582. package/node_modules/@deepseek-ai/dsh-file-reference/package.json +5 -5
  583. package/node_modules/@deepseek-ai/dsh-file-reference-local/README.i18n.yaml +66 -5
  584. package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +12 -12
  585. package/node_modules/@deepseek-ai/dsh-fs/README.i18n.yaml +57 -5
  586. package/node_modules/@deepseek-ai/dsh-fs/package.json +11 -11
  587. package/node_modules/@deepseek-ai/dsh-fs-local/README.i18n.yaml +60 -5
  588. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +7 -7
  589. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.i18n.yaml +69 -5
  590. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +6 -6
  591. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.i18n.yaml +66 -5
  592. package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +12 -12
  593. package/node_modules/@deepseek-ai/dsh-goal/README.i18n.yaml +72 -5
  594. package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +63 -39
  595. package/node_modules/@deepseek-ai/dsh-goal/package.json +25 -25
  596. package/node_modules/@deepseek-ai/dsh-goal-round-driver/README.i18n.yaml +78 -5
  597. package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +17 -17
  598. package/node_modules/@deepseek-ai/dsh-headless/README.i18n.yaml +66 -5
  599. package/node_modules/@deepseek-ai/dsh-headless/package.json +22 -22
  600. package/node_modules/@deepseek-ai/dsh-hmr/README.i18n.yaml +45 -5
  601. package/node_modules/@deepseek-ai/dsh-hmr/package.json +15 -15
  602. package/node_modules/@deepseek-ai/dsh-home-paths/README.i18n.yaml +51 -5
  603. package/node_modules/@deepseek-ai/dsh-home-paths/package.json +3 -3
  604. package/node_modules/@deepseek-ai/dsh-hook-protocol/README.i18n.yaml +60 -5
  605. package/node_modules/@deepseek-ai/dsh-hook-protocol/package.json +9 -9
  606. package/node_modules/@deepseek-ai/dsh-hooks-claude-code/README.i18n.yaml +87 -5
  607. package/node_modules/@deepseek-ai/dsh-hooks-claude-code/package.json +23 -23
  608. package/node_modules/@deepseek-ai/dsh-hooks-codex/README.i18n.yaml +87 -5
  609. package/node_modules/@deepseek-ai/dsh-hooks-codex/package.json +21 -21
  610. package/node_modules/@deepseek-ai/dsh-host-directory-picker/README.i18n.yaml +57 -5
  611. package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +3 -3
  612. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/README.i18n.yaml +57 -5
  613. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +18 -18
  614. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/README.i18n.yaml +60 -5
  615. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +5 -5
  616. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/README.i18n.yaml +54 -5
  617. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +5 -5
  618. package/node_modules/@deepseek-ai/dsh-host-frontend-static/README.i18n.yaml +54 -5
  619. package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +10 -10
  620. package/node_modules/@deepseek-ai/dsh-host-open-in-app/README.i18n.yaml +51 -5
  621. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/index.js +2 -2
  622. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/types/resolver.js +2 -2
  623. package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +9 -9
  624. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/README.i18n.yaml +54 -5
  625. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +13 -13
  626. package/node_modules/@deepseek-ai/dsh-host-webserver/README.i18n.yaml +57 -5
  627. package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +4 -4
  628. package/node_modules/@deepseek-ai/dsh-http-proxy/README.i18n.yaml +54 -5
  629. package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +4 -4
  630. package/node_modules/@deepseek-ai/dsh-invariants/README.i18n.yaml +60 -5
  631. package/node_modules/@deepseek-ai/dsh-invariants/package.json +4 -4
  632. package/node_modules/@deepseek-ai/dsh-jobs/README.i18n.yaml +60 -5
  633. package/node_modules/@deepseek-ai/dsh-jobs/package.json +13 -13
  634. package/node_modules/@deepseek-ai/dsh-jobs-local/README.i18n.yaml +66 -5
  635. package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +16 -16
  636. package/node_modules/@deepseek-ai/dsh-launch-environment/README.i18n.yaml +48 -5
  637. package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +3 -3
  638. package/node_modules/@deepseek-ai/dsh-lazy-require/README.i18n.yaml +39 -5
  639. package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +3 -3
  640. package/node_modules/@deepseek-ai/dsh-llm/README.i18n.yaml +63 -5
  641. package/node_modules/@deepseek-ai/dsh-llm/README.md +5 -3
  642. package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +5 -3
  643. package/node_modules/@deepseek-ai/dsh-llm/lib/index.js +107 -12
  644. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +16 -20
  645. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.remote-client.js +3 -3
  646. package/node_modules/@deepseek-ai/dsh-llm/lib/types/content.js +107 -0
  647. package/node_modules/@deepseek-ai/dsh-llm/lib/types/error.js +2 -0
  648. package/node_modules/@deepseek-ai/dsh-llm/lib/types/index.js +26 -9
  649. package/node_modules/@deepseek-ai/dsh-llm/package.json +11 -11
  650. package/node_modules/@deepseek-ai/dsh-llm-cursor/README.i18n.yaml +66 -5
  651. package/node_modules/@deepseek-ai/dsh-llm-cursor/README.md +1 -1
  652. package/node_modules/@deepseek-ai/dsh-llm-cursor/README.zh.md +1 -1
  653. package/node_modules/@deepseek-ai/dsh-llm-cursor/lib/index.js +40 -0
  654. package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +26 -26
  655. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.i18n.yaml +90 -5
  656. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.md +18 -13
  657. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.zh.md +18 -13
  658. package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +642 -595
  659. package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +44 -47
  660. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.i18n.yaml +46 -0
  661. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.md +79 -0
  662. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.zh.md +79 -0
  663. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/lib/index.js +62 -0
  664. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/package.json +54 -0
  665. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.i18n.yaml +46 -0
  666. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.md +78 -0
  667. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.zh.md +78 -0
  668. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/lib/index.js +69 -0
  669. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/package.json +53 -0
  670. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +93 -5
  671. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +26 -25
  672. package/node_modules/@deepseek-ai/dsh-llm-retry/README.i18n.yaml +69 -5
  673. package/node_modules/@deepseek-ai/dsh-llm-retry/README.md +1 -1
  674. package/node_modules/@deepseek-ai/dsh-llm-retry/README.zh.md +1 -1
  675. package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +26 -25
  676. package/node_modules/@deepseek-ai/dsh-mcp-client/README.i18n.yaml +96 -5
  677. package/node_modules/@deepseek-ai/dsh-mcp-client/README.md +1 -1
  678. package/node_modules/@deepseek-ai/dsh-mcp-client/README.zh.md +1 -1
  679. package/node_modules/@deepseek-ai/dsh-mcp-client/lib/index.js +1 -1
  680. package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +23 -23
  681. package/node_modules/@deepseek-ai/dsh-mcp-resources/README.i18n.yaml +63 -5
  682. package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +14 -14
  683. package/node_modules/@deepseek-ai/dsh-message-feedback/README.i18n.yaml +54 -5
  684. package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +19 -19
  685. package/node_modules/@deepseek-ai/dsh-native-command/README.i18n.yaml +51 -5
  686. package/node_modules/@deepseek-ai/dsh-native-command/README.md +5 -3
  687. package/node_modules/@deepseek-ai/dsh-native-command/README.zh.md +5 -3
  688. package/node_modules/@deepseek-ai/dsh-native-command/lib/index.js +108 -33
  689. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/file-applications-windows.js +55 -10
  690. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/path-opener.js +59 -22
  691. package/node_modules/@deepseek-ai/dsh-native-command/package.json +4 -4
  692. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/README.i18n.yaml +69 -5
  693. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/lib/index.js +111 -9
  694. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +16 -16
  695. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.i18n.yaml +36 -5
  696. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.md +1 -1
  697. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.zh.md +1 -1
  698. package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +12 -12
  699. package/node_modules/@deepseek-ai/dsh-output-retention/README.i18n.yaml +66 -5
  700. package/node_modules/@deepseek-ai/dsh-output-retention/README.md +7 -3
  701. package/node_modules/@deepseek-ai/dsh-output-retention/README.zh.md +7 -3
  702. package/node_modules/@deepseek-ai/dsh-output-retention/lib/index.js +17 -1
  703. package/node_modules/@deepseek-ai/dsh-output-retention/package.json +3 -3
  704. package/node_modules/@deepseek-ai/dsh-package-manifest/README.i18n.yaml +36 -5
  705. package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +3 -3
  706. package/node_modules/@deepseek-ai/dsh-permission-presets/README.i18n.yaml +63 -5
  707. package/node_modules/@deepseek-ai/dsh-permission-presets/README.md +4 -4
  708. package/node_modules/@deepseek-ai/dsh-permission-presets/README.zh.md +4 -4
  709. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/index.js +9 -3
  710. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +65 -41
  711. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.remote-client.js +1 -1
  712. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/types/index.js +10 -3
  713. package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +23 -23
  714. package/node_modules/@deepseek-ai/dsh-persona/README.i18n.yaml +63 -5
  715. package/node_modules/@deepseek-ai/dsh-persona/package.json +7 -7
  716. package/node_modules/@deepseek-ai/dsh-plan-mode/README.i18n.yaml +108 -5
  717. package/node_modules/@deepseek-ai/dsh-plan-mode/lib/index.js +1 -1
  718. package/node_modules/@deepseek-ai/dsh-plan-mode/lib/types/index.js +0 -1
  719. package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +24 -24
  720. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +54 -5
  721. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +19 -2
  722. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +19 -2
  723. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +760 -155
  724. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +237 -26
  725. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +215 -22
  726. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/failure.js +19 -2
  727. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/github-connection.js +61 -0
  728. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +113 -23
  729. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-failure.js +1 -0
  730. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +403 -22
  731. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/registry.js +2 -0
  732. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/run-tree.js +57 -0
  733. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/tools.js +13 -3
  734. package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +33 -33
  735. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/README.i18n.yaml +42 -5
  736. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +19 -19
  737. package/node_modules/@deepseek-ai/dsh-ptc-runtime/README.i18n.yaml +69 -5
  738. package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +5 -5
  739. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.i18n.yaml +57 -5
  740. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +23 -23
  741. package/node_modules/@deepseek-ai/dsh-pwsh-local/README.i18n.yaml +63 -5
  742. package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +11 -11
  743. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/README.i18n.yaml +72 -5
  744. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +14 -14
  745. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/README.i18n.yaml +99 -5
  746. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/lib/index.js +111 -9
  747. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +12 -12
  748. package/node_modules/@deepseek-ai/dsh-sandbox/README.i18n.yaml +90 -5
  749. package/node_modules/@deepseek-ai/dsh-sandbox/README.md +1 -1
  750. package/node_modules/@deepseek-ai/dsh-sandbox/README.zh.md +1 -1
  751. package/node_modules/@deepseek-ai/dsh-sandbox/lib/index.js +16 -2
  752. package/node_modules/@deepseek-ai/dsh-sandbox/package.json +8 -8
  753. package/node_modules/@deepseek-ai/dsh-sandbox-local/README.i18n.yaml +64 -6
  754. package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +12 -12
  755. package/node_modules/@deepseek-ai/dsh-sandbox-policy/README.i18n.yaml +78 -5
  756. package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +16 -16
  757. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.i18n.yaml +67 -6
  758. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +10 -10
  759. package/node_modules/@deepseek-ai/dsh-schedule/README.i18n.yaml +75 -5
  760. package/node_modules/@deepseek-ai/dsh-schedule/README.md +65 -129
  761. package/node_modules/@deepseek-ai/dsh-schedule/README.zh.md +72 -137
  762. package/node_modules/@deepseek-ai/dsh-schedule/lib/index.js +2147 -797
  763. package/node_modules/@deepseek-ai/dsh-schedule/lib/invariant.js +79 -17
  764. package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.host.js +727 -0
  765. package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.remote-client.js +477 -0
  766. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/delivery-history.js +66 -0
  767. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/domain.js +1000 -113
  768. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/index.js +428 -101
  769. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/invariant.js +8 -1
  770. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/runtime.js +129 -268
  771. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/storage.js +54 -0
  772. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/tools.js +305 -204
  773. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/update.js +164 -0
  774. package/node_modules/@deepseek-ai/dsh-schedule/package.json +50 -28
  775. package/node_modules/@deepseek-ai/dsh-scope/README.i18n.yaml +51 -5
  776. package/node_modules/@deepseek-ai/dsh-scope/package.json +5 -5
  777. package/node_modules/@deepseek-ai/dsh-sdk-app/README.i18n.yaml +39 -5
  778. package/node_modules/@deepseek-ai/dsh-sdk-app/cordis.patch.yml +1 -0
  779. package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +9 -9
  780. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.i18n.yaml +72 -5
  781. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/index.js +1 -1
  782. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +25 -25
  783. package/node_modules/@deepseek-ai/dsh-sdk-minimal/README.i18n.yaml +48 -5
  784. package/node_modules/@deepseek-ai/dsh-sdk-minimal/cordis.patch.yml +1 -1
  785. package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +31 -31
  786. package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.i18n.yaml +54 -5
  787. package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +9 -9
  788. package/node_modules/@deepseek-ai/dsh-session/README.i18n.yaml +102 -5
  789. package/node_modules/@deepseek-ai/dsh-session/README.md +1 -1
  790. package/node_modules/@deepseek-ai/dsh-session/README.zh.md +1 -1
  791. package/node_modules/@deepseek-ai/dsh-session/lib/index.js +89 -0
  792. package/node_modules/@deepseek-ai/dsh-session/lib/types/index.js +16 -0
  793. package/node_modules/@deepseek-ai/dsh-session/lib/types/tool-history.js +76 -0
  794. package/node_modules/@deepseek-ai/dsh-session/package.json +11 -11
  795. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/README.i18n.yaml +63 -5
  796. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +18 -18
  797. package/node_modules/@deepseek-ai/dsh-session-format/README.i18n.yaml +51 -5
  798. package/node_modules/@deepseek-ai/dsh-session-format/package.json +4 -4
  799. package/node_modules/@deepseek-ai/dsh-session-format-catalog/README.i18n.yaml +51 -5
  800. package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +11 -11
  801. package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/README.i18n.yaml +51 -5
  802. package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +6 -6
  803. package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/README.i18n.yaml +51 -5
  804. package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +8 -8
  805. package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/README.i18n.yaml +78 -5
  806. package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +6 -6
  807. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.i18n.yaml +90 -5
  808. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.md +1 -1
  809. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.zh.md +1 -1
  810. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/package.json +5 -5
  811. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.i18n.yaml +45 -5
  812. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.md +8 -4
  813. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.zh.md +8 -4
  814. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/index.js +53 -9
  815. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/types/index.js +51 -9
  816. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +20 -19
  817. package/node_modules/@deepseek-ai/dsh-session-log-export/README.i18n.yaml +72 -5
  818. package/node_modules/@deepseek-ai/dsh-session-log-export/README.md +2 -0
  819. package/node_modules/@deepseek-ai/dsh-session-log-export/README.zh.md +2 -0
  820. package/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +3 -3
  821. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/CHANGELOG.md +10 -0
  822. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/LICENSE +1 -1
  823. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/README.md +10 -10
  824. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/esm/browser.js +82 -55
  825. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/esm/index.mjs +87 -56
  826. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/browser.cjs +106 -77
  827. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/index.cjs +106 -77
  828. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/node-worker.cjs +5 -1
  829. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/node.cjs +111 -78
  830. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/package.json +12 -11
  831. package/node_modules/@deepseek-ai/dsh-session-log-export/node_modules/fflate/umd/index.js +1 -0
  832. package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +25 -25
  833. package/node_modules/@deepseek-ai/dsh-session-persistence/README.i18n.yaml +78 -5
  834. package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +11 -11
  835. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/README.i18n.yaml +69 -5
  836. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +189 -9
  837. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +13 -13
  838. package/node_modules/@deepseek-ai/dsh-session-projection/README.i18n.yaml +57 -5
  839. package/node_modules/@deepseek-ai/dsh-session-projection/package.json +5 -5
  840. package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.i18n.yaml +60 -5
  841. package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +13 -13
  842. package/node_modules/@deepseek-ai/dsh-session-query/README.i18n.yaml +66 -5
  843. package/node_modules/@deepseek-ai/dsh-session-query/README.md +1 -1
  844. package/node_modules/@deepseek-ai/dsh-session-query/README.zh.md +1 -1
  845. package/node_modules/@deepseek-ai/dsh-session-query/lib/index.js +7 -1
  846. package/node_modules/@deepseek-ai/dsh-session-query/package.json +20 -20
  847. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/README.i18n.yaml +66 -5
  848. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +13 -13
  849. package/node_modules/@deepseek-ai/dsh-session-reference/README.i18n.yaml +66 -5
  850. package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +63 -39
  851. package/node_modules/@deepseek-ai/dsh-session-reference/package.json +39 -39
  852. package/node_modules/@deepseek-ai/dsh-session-stats/README.i18n.yaml +57 -5
  853. package/node_modules/@deepseek-ai/dsh-session-stats/package.json +11 -11
  854. package/node_modules/@deepseek-ai/dsh-session-telemetry/README.i18n.yaml +63 -5
  855. package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +7 -7
  856. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/README.i18n.yaml +60 -5
  857. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +23 -23
  858. package/node_modules/@deepseek-ai/dsh-session-title/README.i18n.yaml +72 -5
  859. package/node_modules/@deepseek-ai/dsh-session-title/package.json +19 -19
  860. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/README.i18n.yaml +63 -5
  861. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +18 -17
  862. package/node_modules/@deepseek-ai/dsh-session-title-llm/README.i18n.yaml +63 -5
  863. package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +13 -13
  864. package/node_modules/@deepseek-ai/dsh-session-turn-outline/README.i18n.yaml +54 -5
  865. package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +11 -11
  866. package/node_modules/@deepseek-ai/dsh-settings/README.i18n.yaml +36 -5
  867. package/node_modules/@deepseek-ai/dsh-settings/package.json +19 -19
  868. package/node_modules/@deepseek-ai/dsh-shell/README.i18n.yaml +66 -5
  869. package/node_modules/@deepseek-ai/dsh-shell/package.json +7 -7
  870. package/node_modules/@deepseek-ai/dsh-shell-env/README.i18n.yaml +57 -5
  871. package/node_modules/@deepseek-ai/dsh-shell-env/package.json +14 -14
  872. package/node_modules/@deepseek-ai/dsh-skill/README.i18n.yaml +63 -5
  873. package/node_modules/@deepseek-ai/dsh-skill/package.json +9 -9
  874. package/node_modules/@deepseek-ai/dsh-skill-badge/README.i18n.yaml +54 -5
  875. package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +5 -5
  876. package/node_modules/@deepseek-ai/dsh-skill-filesystem/README.i18n.yaml +66 -5
  877. package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +10 -10
  878. package/node_modules/@deepseek-ai/dsh-skill-office/README.i18n.yaml +42 -5
  879. package/node_modules/@deepseek-ai/dsh-skill-office/README.md +8 -2
  880. package/node_modules/@deepseek-ai/dsh-skill-office/README.zh.md +8 -2
  881. package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-docx/SKILL.md +14 -3
  882. package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-pptx/SKILL.md +14 -3
  883. package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-xlsx/SKILL.md +22 -4
  884. package/node_modules/@deepseek-ai/dsh-skill-office/lib/index.js +21 -3
  885. package/node_modules/@deepseek-ai/dsh-skill-office/package.json +9 -8
  886. package/node_modules/@deepseek-ai/dsh-spill/README.i18n.yaml +69 -5
  887. package/node_modules/@deepseek-ai/dsh-spill/README.md +2 -2
  888. package/node_modules/@deepseek-ai/dsh-spill/README.zh.md +2 -2
  889. package/node_modules/@deepseek-ai/dsh-spill/package.json +9 -9
  890. package/node_modules/@deepseek-ai/dsh-spill-local/README.i18n.yaml +63 -5
  891. package/node_modules/@deepseek-ai/dsh-spill-local/package.json +11 -11
  892. package/node_modules/@deepseek-ai/dsh-spill-policy/README.i18n.yaml +81 -5
  893. package/node_modules/@deepseek-ai/dsh-spill-policy/README.md +22 -22
  894. package/node_modules/@deepseek-ai/dsh-spill-policy/README.zh.md +22 -22
  895. package/node_modules/@deepseek-ai/dsh-spill-policy/lib/index.js +216 -142
  896. package/node_modules/@deepseek-ai/dsh-spill-policy/lib/types/index.js +110 -167
  897. package/node_modules/@deepseek-ai/dsh-spill-policy/lib/types/notice.js +10 -2
  898. package/node_modules/@deepseek-ai/dsh-spill-policy/lib/types/retention.js +88 -0
  899. package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +35 -22
  900. package/node_modules/@deepseek-ai/dsh-storage/README.i18n.yaml +66 -5
  901. package/node_modules/@deepseek-ai/dsh-storage/package.json +3 -3
  902. package/node_modules/@deepseek-ai/dsh-storage-domain/README.i18n.yaml +72 -5
  903. package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +8 -8
  904. package/node_modules/@deepseek-ai/dsh-storage-json/README.i18n.yaml +63 -5
  905. package/node_modules/@deepseek-ai/dsh-storage-json/lib/index.js +1 -1
  906. package/node_modules/@deepseek-ai/dsh-storage-json/package.json +6 -6
  907. package/node_modules/@deepseek-ai/dsh-subagent/README.i18n.yaml +93 -5
  908. package/node_modules/@deepseek-ai/dsh-subagent/README.md +3 -2
  909. package/node_modules/@deepseek-ai/dsh-subagent/README.zh.md +4 -3
  910. package/node_modules/@deepseek-ai/dsh-subagent/lib/index.js +71 -238
  911. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +65 -41
  912. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/control-types.js +1 -1
  913. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/index.js +12 -12
  914. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/list-children.js +50 -261
  915. package/node_modules/@deepseek-ai/dsh-subagent/package.json +51 -56
  916. package/node_modules/@deepseek-ai/dsh-subagent-acp/README.i18n.yaml +84 -5
  917. package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +24 -24
  918. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/README.i18n.yaml +81 -5
  919. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +18 -18
  920. package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/README.i18n.yaml +105 -5
  921. package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +26 -26
  922. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/README.i18n.yaml +78 -5
  923. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +21 -20
  924. package/node_modules/@deepseek-ai/dsh-subprocess/README.i18n.yaml +72 -5
  925. package/node_modules/@deepseek-ai/dsh-subprocess/package.json +6 -6
  926. package/node_modules/@deepseek-ai/dsh-subprocess-local/README.i18n.yaml +69 -5
  927. package/node_modules/@deepseek-ai/dsh-subprocess-local/README.md +3 -2
  928. package/node_modules/@deepseek-ai/dsh-subprocess-local/README.zh.md +3 -2
  929. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/index.js +10 -4
  930. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/output.js +82 -24
  931. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-B2zsQ1Dz.js +1529 -0
  932. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner.js +1 -1
  933. package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +9 -9
  934. package/node_modules/@deepseek-ai/dsh-system-prompt/README.i18n.yaml +87 -5
  935. package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +10 -10
  936. package/node_modules/@deepseek-ai/dsh-terminal/README.i18n.yaml +78 -5
  937. package/node_modules/@deepseek-ai/dsh-terminal/package.json +8 -8
  938. package/node_modules/@deepseek-ai/dsh-terminal-bash/README.i18n.yaml +90 -5
  939. package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +20 -20
  940. package/node_modules/@deepseek-ai/dsh-time-context/README.i18n.yaml +69 -5
  941. package/node_modules/@deepseek-ai/dsh-time-context/README.md +6 -6
  942. package/node_modules/@deepseek-ai/dsh-time-context/README.zh.md +6 -6
  943. package/node_modules/@deepseek-ai/dsh-time-context/lib/index.js +3 -3
  944. package/node_modules/@deepseek-ai/dsh-time-context/package.json +24 -24
  945. package/node_modules/@deepseek-ai/dsh-timeout/README.i18n.yaml +63 -5
  946. package/node_modules/@deepseek-ai/dsh-timeout/package.json +3 -3
  947. package/node_modules/@deepseek-ai/dsh-tmux-context/README.i18n.yaml +66 -5
  948. package/node_modules/@deepseek-ai/dsh-tmux-context/lib/index.js +111 -9
  949. package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +14 -14
  950. package/node_modules/@deepseek-ai/dsh-token-meter/README.i18n.yaml +63 -5
  951. package/node_modules/@deepseek-ai/dsh-token-meter/README.md +2 -0
  952. package/node_modules/@deepseek-ai/dsh-token-meter/README.zh.md +2 -0
  953. package/node_modules/@deepseek-ai/dsh-token-meter/package.json +22 -18
  954. package/node_modules/@deepseek-ai/dsh-tool-ask-user/README.i18n.yaml +75 -5
  955. package/node_modules/@deepseek-ai/dsh-tool-ask-user/lib/index.js +1 -1
  956. package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +11 -11
  957. package/node_modules/@deepseek-ai/dsh-tool-bash/README.i18n.yaml +126 -5
  958. package/node_modules/@deepseek-ai/dsh-tool-bash/README.md +2 -2
  959. package/node_modules/@deepseek-ai/dsh-tool-bash/README.zh.md +2 -2
  960. package/node_modules/@deepseek-ai/dsh-tool-bash/lib/index.js +6 -9
  961. package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +32 -32
  962. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/README.i18n.yaml +78 -5
  963. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/lib/index.js +2 -1
  964. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +24 -22
  965. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/README.i18n.yaml +66 -5
  966. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +9 -9
  967. package/node_modules/@deepseek-ai/dsh-tool-cordis/README.i18n.yaml +45 -5
  968. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +373 -79
  969. package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +16 -16
  970. package/node_modules/@deepseek-ai/dsh-tool-fs/README.i18n.yaml +141 -5
  971. package/node_modules/@deepseek-ai/dsh-tool-fs/README.md +4 -4
  972. package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +4 -4
  973. package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +37 -86
  974. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +32 -30
  975. package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.i18n.yaml +114 -5
  976. package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.md +3 -9
  977. package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.zh.md +3 -9
  978. package/node_modules/@deepseek-ai/dsh-tool-fs-search/lib/index.js +4 -5
  979. package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +23 -23
  980. package/node_modules/@deepseek-ai/dsh-tool-goal/README.i18n.yaml +78 -5
  981. package/node_modules/@deepseek-ai/dsh-tool-goal/README.md +2 -2
  982. package/node_modules/@deepseek-ai/dsh-tool-goal/README.zh.md +2 -2
  983. package/node_modules/@deepseek-ai/dsh-tool-goal/lib/index.js +6 -6
  984. package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +20 -20
  985. package/node_modules/@deepseek-ai/dsh-tool-jobs/README.i18n.yaml +96 -5
  986. package/node_modules/@deepseek-ai/dsh-tool-jobs/README.md +6 -6
  987. package/node_modules/@deepseek-ai/dsh-tool-jobs/README.zh.md +6 -6
  988. package/node_modules/@deepseek-ai/dsh-tool-jobs/lib/index.js +21 -15
  989. package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +18 -18
  990. package/node_modules/@deepseek-ai/dsh-tool-present/README.i18n.yaml +45 -5
  991. package/node_modules/@deepseek-ai/dsh-tool-present/README.md +1 -1
  992. package/node_modules/@deepseek-ai/dsh-tool-present/README.zh.md +1 -1
  993. package/node_modules/@deepseek-ai/dsh-tool-present/lib/index.js +2 -1
  994. package/node_modules/@deepseek-ai/dsh-tool-present/lib/types/index.js +5 -5
  995. package/node_modules/@deepseek-ai/dsh-tool-present/package.json +20 -20
  996. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.i18n.yaml +123 -5
  997. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.md +3 -3
  998. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.zh.md +3 -3
  999. package/node_modules/@deepseek-ai/dsh-tool-pwsh/lib/index.js +8 -8
  1000. package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +31 -31
  1001. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.i18n.yaml +78 -5
  1002. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.md +6 -6
  1003. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.zh.md +6 -6
  1004. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/lib/index.js +7 -25
  1005. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +25 -23
  1006. package/node_modules/@deepseek-ai/dsh-tool-ralph/README.i18n.yaml +99 -5
  1007. package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +23 -23
  1008. package/node_modules/@deepseek-ai/dsh-tool-skill/README.i18n.yaml +141 -5
  1009. package/node_modules/@deepseek-ai/dsh-tool-skill/lib/index.js +1 -1
  1010. package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +15 -15
  1011. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/README.i18n.yaml +78 -5
  1012. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/lib/index.js +2 -1
  1013. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +22 -20
  1014. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.i18n.yaml +120 -5
  1015. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.md +1 -1
  1016. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.zh.md +1 -1
  1017. package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +4 -4
  1018. package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +30 -30
  1019. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.i18n.yaml +105 -5
  1020. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.md +4 -4
  1021. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.zh.md +4 -4
  1022. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/index.js +3 -3
  1023. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/index.js +6 -11
  1024. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/list-agents.js +6 -14
  1025. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +21 -21
  1026. package/node_modules/@deepseek-ai/dsh-tool-todo/README.i18n.yaml +90 -5
  1027. package/node_modules/@deepseek-ai/dsh-tool-todo/README.md +1 -1
  1028. package/node_modules/@deepseek-ai/dsh-tool-todo/README.zh.md +1 -1
  1029. package/node_modules/@deepseek-ai/dsh-tool-todo/lib/index.js +4 -4
  1030. package/node_modules/@deepseek-ai/dsh-tool-todo/lib/types/index.js +5 -15
  1031. package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +20 -20
  1032. package/node_modules/@deepseek-ai/dsh-tool-web/README.i18n.yaml +150 -5
  1033. package/node_modules/@deepseek-ai/dsh-tool-web/README.md +4 -4
  1034. package/node_modules/@deepseek-ai/dsh-tool-web/README.zh.md +4 -4
  1035. package/node_modules/@deepseek-ai/dsh-tool-web/lib/index.js +4 -4
  1036. package/node_modules/@deepseek-ai/dsh-tool-web/package.json +22 -21
  1037. package/node_modules/@deepseek-ai/dsh-tool-workflow/README.i18n.yaml +102 -5
  1038. package/node_modules/@deepseek-ai/dsh-tool-workflow/README.md +1 -1
  1039. package/node_modules/@deepseek-ai/dsh-tool-workflow/README.zh.md +1 -1
  1040. package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/index.js +9 -16
  1041. package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/types/index.js +10 -16
  1042. package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +25 -25
  1043. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/README.i18n.yaml +66 -5
  1044. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +11 -11
  1045. package/node_modules/@deepseek-ai/dsh-tools/README.i18n.yaml +102 -5
  1046. package/node_modules/@deepseek-ai/dsh-tools/README.md +3 -1
  1047. package/node_modules/@deepseek-ai/dsh-tools/README.zh.md +3 -1
  1048. package/node_modules/@deepseek-ai/dsh-tools/lib/index.js +16 -2
  1049. package/node_modules/@deepseek-ai/dsh-tools/lib/types/index.js +13 -1
  1050. package/node_modules/@deepseek-ai/dsh-tools/lib/types/ptc.js +1 -1
  1051. package/node_modules/@deepseek-ai/dsh-tools/lib/types/schema.js +5 -0
  1052. package/node_modules/@deepseek-ai/dsh-tools/package.json +27 -27
  1053. package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +84 -5
  1054. package/node_modules/@deepseek-ai/dsh-tui-app/README.md +8 -5
  1055. package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +8 -5
  1056. package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +413 -21
  1057. package/node_modules/@deepseek-ai/dsh-tui-app/package.json +76 -76
  1058. package/node_modules/@deepseek-ai/dsh-typert-loader/README.i18n.yaml +57 -5
  1059. package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +9 -9
  1060. package/node_modules/@deepseek-ai/dsh-typert-protocol/README.i18n.yaml +63 -5
  1061. package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +4 -4
  1062. package/node_modules/@deepseek-ai/dsh-typert-registry/README.i18n.yaml +60 -5
  1063. package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +4 -4
  1064. package/node_modules/@deepseek-ai/dsh-user-approval/README.i18n.yaml +87 -5
  1065. package/node_modules/@deepseek-ai/dsh-user-approval/README.md +1 -1
  1066. package/node_modules/@deepseek-ai/dsh-user-approval/README.zh.md +1 -1
  1067. package/node_modules/@deepseek-ai/dsh-user-approval/package.json +18 -18
  1068. package/node_modules/@deepseek-ai/dsh-user-questions/README.i18n.yaml +42 -5
  1069. package/node_modules/@deepseek-ai/dsh-user-questions/package.json +9 -9
  1070. package/node_modules/@deepseek-ai/dsh-util-code-language/README.i18n.yaml +25 -0
  1071. package/node_modules/@deepseek-ai/dsh-util-code-language/README.md +50 -0
  1072. package/node_modules/@deepseek-ai/dsh-util-code-language/README.zh.md +50 -0
  1073. package/node_modules/@deepseek-ai/dsh-util-code-language/lib/index.js +269 -0
  1074. package/node_modules/@deepseek-ai/dsh-util-code-language/package.json +35 -0
  1075. package/node_modules/@deepseek-ai/dsh-util-crypto/README.i18n.yaml +33 -5
  1076. package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +3 -3
  1077. package/node_modules/@deepseek-ai/dsh-util-time/README.i18n.yaml +33 -5
  1078. package/node_modules/@deepseek-ai/dsh-util-time/package.json +3 -3
  1079. package/node_modules/@deepseek-ai/dsh-util-values/README.i18n.yaml +42 -5
  1080. package/node_modules/@deepseek-ai/dsh-util-values/package.json +3 -3
  1081. package/node_modules/@deepseek-ai/dsh-util-workspace-path/README.i18n.yaml +24 -5
  1082. package/node_modules/@deepseek-ai/dsh-util-workspace-path/README.md +2 -0
  1083. package/node_modules/@deepseek-ai/dsh-util-workspace-path/README.zh.md +2 -0
  1084. package/node_modules/@deepseek-ai/dsh-util-workspace-path/lib/index.js +11 -1
  1085. package/node_modules/@deepseek-ai/dsh-util-workspace-path/lib/types/index.d.ts +7 -0
  1086. package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +3 -3
  1087. package/node_modules/@deepseek-ai/dsh-web/README.i18n.yaml +66 -5
  1088. package/node_modules/@deepseek-ai/dsh-web/package.json +6 -6
  1089. package/node_modules/@deepseek-ai/dsh-web-app/README.i18n.yaml +75 -5
  1090. package/node_modules/@deepseek-ai/dsh-web-app/README.md +1 -1
  1091. package/node_modules/@deepseek-ai/dsh-web-app/README.zh.md +1 -1
  1092. package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +21 -3
  1093. package/node_modules/@deepseek-ai/dsh-web-app/lib/index.js +33 -5
  1094. package/node_modules/@deepseek-ai/dsh-web-app/package.json +143 -139
  1095. package/node_modules/@deepseek-ai/dsh-web-fetch-http/README.i18n.yaml +60 -5
  1096. package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +10 -10
  1097. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/Montserrat-OFL.txt +93 -0
  1098. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/montserrat-light-Cvd2VjE_.woff2 +0 -0
  1099. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/montserrat-medium-B4OyO9CN.woff2 +0 -0
  1100. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/montserrat-regular-DYep38cA.woff2 +0 -0
  1101. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-DUvMhLle.css +1 -0
  1102. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Q6zc2uHV.js +127 -0
  1103. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/asciidoc-Ve4PFQV2.js +2 -0
  1104. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/bat-BkioyH1T.js +2 -0
  1105. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/bibtex-CHM0blh-.js +2 -0
  1106. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/clojure-P80f7IUj.js +2 -0
  1107. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/cmake-D1j8_8rp.js +2 -0
  1108. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/csv-fuZLfV_i.js +2 -0
  1109. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/dart-bE4Kk8sk.js +2 -0
  1110. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/diff-D97Zzqfu.js +2 -0
  1111. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/dotenv-Da5cRb03.js +2 -0
  1112. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/elixir-CvYZzuDY.js +2 -0
  1113. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/erlang-DsQrWhSR.js +2 -0
  1114. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/fish-BvzEVeQv.js +2 -0
  1115. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/fsharp-CXgrBDvD.js +2 -0
  1116. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/graphql-DujV8YkJ.js +2 -0
  1117. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/groovy-gcz8RCvz.js +2 -0
  1118. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/haskell-Df6bDoY_.js +2 -0
  1119. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/hcl-BWvSN4gD.js +2 -0
  1120. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/html-derivative-DOyKdj44.js +2 -0
  1121. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/html-fwsONPVS.js +2 -0
  1122. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/http-DcV90OkR.js +2 -0
  1123. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/javascript-DI5JR1nB.js +2 -0
  1124. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/julia-BpJ6DjL_.js +2 -0
  1125. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/latex-B4C7GdlO.js +2 -0
  1126. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/log-2UxHyX5q.js +2 -0
  1127. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/make-CHLpvVh8.js +2 -0
  1128. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/nix-CwoSXNpI.js +2 -0
  1129. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/perl-DsWkoyyU.js +2 -0
  1130. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/php-LEPfNACG.js +2 -0
  1131. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/powershell-Dpen1YoG.js +2 -0
  1132. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/proto-C7zT0LnQ.js +2 -0
  1133. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/r-Dspwwk_N.js +2 -0
  1134. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/rst-BbocfKWr.js +2 -0
  1135. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/ruby-R292Iif0.js +2 -0
  1136. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/scala-C151Ov-r.js +2 -0
  1137. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/svelte-DNMY6jOf.js +2 -0
  1138. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/system-verilog-CnnmHF94.js +2 -0
  1139. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/vb-D17OF-Vu.js +2 -0
  1140. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/verilog-BQ8w6xss.js +2 -0
  1141. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/vue-Dq2x6432.js +2 -0
  1142. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
  1143. package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +17 -15
  1144. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.i18n.yaml +84 -5
  1145. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +16 -16
  1146. package/node_modules/@deepseek-ai/dsh-web-search-exa/README.i18n.yaml +60 -5
  1147. package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +9 -9
  1148. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/README.i18n.yaml +81 -5
  1149. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +9 -9
  1150. package/node_modules/@deepseek-ai/dsh-webhook/README.i18n.yaml +45 -5
  1151. package/node_modules/@deepseek-ai/dsh-webhook/package.json +25 -25
  1152. package/node_modules/@deepseek-ai/dsh-webhook-github/README.i18n.yaml +36 -5
  1153. package/node_modules/@deepseek-ai/dsh-webhook-github/package.json +15 -15
  1154. package/node_modules/@deepseek-ai/dsh-win32-process/README.i18n.yaml +42 -5
  1155. package/node_modules/@deepseek-ai/dsh-win32-process/package.json +4 -4
  1156. package/node_modules/@deepseek-ai/dsh-workflow/README.i18n.yaml +60 -5
  1157. package/node_modules/@deepseek-ai/dsh-workflow/package.json +13 -13
  1158. package/node_modules/@deepseek-ai/dsh-workflow-ptc/README.i18n.yaml +78 -5
  1159. package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +37 -36
  1160. package/node_modules/@deepseek-ai/dsh-workspace/README.i18n.yaml +87 -5
  1161. package/node_modules/@deepseek-ai/dsh-workspace/README.md +1 -1
  1162. package/node_modules/@deepseek-ai/dsh-workspace/README.zh.md +1 -1
  1163. package/node_modules/@deepseek-ai/dsh-workspace/lib/index.js +7 -5
  1164. package/node_modules/@deepseek-ai/dsh-workspace/lib/types/index.js +7 -5
  1165. package/node_modules/@deepseek-ai/dsh-workspace/package.json +16 -16
  1166. package/node_modules/@deepseek-ai/dsh-workspace-changes/README.i18n.yaml +36 -5
  1167. package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +16 -16
  1168. package/node_modules/@deepseek-ai/libreoffice-kit/README.md +30 -5
  1169. package/node_modules/@deepseek-ai/libreoffice-kit/README.zh.md +30 -5
  1170. package/node_modules/@deepseek-ai/libreoffice-kit/lib/cli.js +2058 -0
  1171. package/node_modules/@deepseek-ai/libreoffice-kit/lib/font-snapshot-worker.js +454 -0
  1172. package/node_modules/@deepseek-ai/libreoffice-kit/lib/index.js +1055 -57
  1173. package/node_modules/@deepseek-ai/libreoffice-kit/lib/worker.js +922 -239
  1174. package/node_modules/@deepseek-ai/libreoffice-kit/package.json +9 -3
  1175. package/node_modules/@deepseek-ai/node-addon-system/README.i18n.yaml +9 -5
  1176. package/node_modules/@deepseek-ai/node-addon-system/README.md +1 -1
  1177. package/node_modules/@deepseek-ai/node-addon-system/README.zh.md +1 -1
  1178. package/node_modules/@deepseek-ai/schemastery/package.json +2 -2
  1179. package/node_modules/@js-temporal/polyfill/CHANGELOG.md +453 -0
  1180. package/node_modules/@js-temporal/polyfill/LICENSE +13 -0
  1181. package/node_modules/@js-temporal/polyfill/README.md +90 -0
  1182. package/node_modules/@js-temporal/polyfill/dist/index.cjs +2 -0
  1183. package/node_modules/@js-temporal/polyfill/dist/index.esm.js +2 -0
  1184. package/node_modules/@js-temporal/polyfill/dist/index.umd.js +2 -0
  1185. package/node_modules/@js-temporal/polyfill/lib/assert.ts +8 -0
  1186. package/node_modules/@js-temporal/polyfill/lib/bigintmath.ts +39 -0
  1187. package/node_modules/@js-temporal/polyfill/lib/calendar.ts +2424 -0
  1188. package/node_modules/@js-temporal/polyfill/lib/debug.ts +7 -0
  1189. package/node_modules/@js-temporal/polyfill/lib/duration.ts +438 -0
  1190. package/node_modules/@js-temporal/polyfill/lib/ecmascript.ts +4973 -0
  1191. package/node_modules/@js-temporal/polyfill/lib/index.ts +34 -0
  1192. package/node_modules/@js-temporal/polyfill/lib/init.ts +43 -0
  1193. package/node_modules/@js-temporal/polyfill/lib/instant.ts +138 -0
  1194. package/node_modules/@js-temporal/polyfill/lib/intl.ts +758 -0
  1195. package/node_modules/@js-temporal/polyfill/lib/intrinsicclass.ts +162 -0
  1196. package/node_modules/@js-temporal/polyfill/lib/legacydate.ts +17 -0
  1197. package/node_modules/@js-temporal/polyfill/lib/math.ts +96 -0
  1198. package/node_modules/@js-temporal/polyfill/lib/now.ts +48 -0
  1199. package/node_modules/@js-temporal/polyfill/lib/plaindate.ts +212 -0
  1200. package/node_modules/@js-temporal/polyfill/lib/plaindatetime.ts +274 -0
  1201. package/node_modules/@js-temporal/polyfill/lib/plainmonthday.ts +110 -0
  1202. package/node_modules/@js-temporal/polyfill/lib/plaintime.ts +154 -0
  1203. package/node_modules/@js-temporal/polyfill/lib/plainyearmonth.ts +157 -0
  1204. package/node_modules/@js-temporal/polyfill/lib/regex.ts +59 -0
  1205. package/node_modules/@js-temporal/polyfill/lib/slots.ts +341 -0
  1206. package/node_modules/@js-temporal/polyfill/lib/temporal.ts +10 -0
  1207. package/node_modules/@js-temporal/polyfill/lib/timeduration.ts +149 -0
  1208. package/node_modules/@js-temporal/polyfill/lib/zoneddatetime.ts +492 -0
  1209. package/node_modules/@js-temporal/polyfill/package.json +125 -0
  1210. package/node_modules/fflate/CHANGELOG.md +0 -10
  1211. package/node_modules/fflate/LICENSE +1 -1
  1212. package/node_modules/fflate/README.md +10 -10
  1213. package/node_modules/fflate/esm/browser.js +55 -82
  1214. package/node_modules/fflate/esm/index.mjs +56 -87
  1215. package/node_modules/fflate/lib/browser.cjs +77 -106
  1216. package/node_modules/fflate/lib/index.cjs +77 -106
  1217. package/node_modules/fflate/lib/node-worker.cjs +1 -5
  1218. package/node_modules/fflate/lib/node.cjs +78 -111
  1219. package/node_modules/fflate/package.json +10 -11
  1220. package/node_modules/fflate/umd/index.js +1 -1
  1221. package/node_modules/jsbi/LICENSE +176 -0
  1222. package/node_modules/jsbi/README.md +173 -0
  1223. package/node_modules/jsbi/dist/jsbi-cjs.js +2 -0
  1224. package/node_modules/jsbi/dist/jsbi-umd.js +2 -0
  1225. package/node_modules/jsbi/dist/jsbi.mjs +2 -0
  1226. package/node_modules/jsbi/package.json +25 -0
  1227. package/package.json +305 -289
  1228. package/node_modules/@deepseek-ai/dsh/lib/dump-config-DaAE0NHG.js +0 -2
  1229. package/node_modules/@deepseek-ai/dsh/lib/plugin-CnNK4cws.js +0 -31
  1230. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.host.js +0 -741
  1231. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.remote-client.js +0 -70
  1232. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-DU8FBaxM.js +0 -127
  1233. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Uv-aF9RH.css +0 -1
  1234. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/html-CfGypltT.js +0 -2
  1235. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/php-DJl5gRdb.js +0 -2
  1236. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/ruby-5eNB0pDK.js +0 -2
  1237. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/umd/index.js +0 -1
  1238. /package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/worker.cjs +0 -0
@@ -1 +1 @@
1
- !function(f){typeof module!='undefined'&&typeof exports=='object'?module.exports=f():typeof define!='undefined'&&define.amd?define(f):(typeof self!='undefined'?self:this).fflate=f()}(function(){var _e={};"use strict";_e.deflate=zt,_e.deflateSync=kt,_e.inflate=At,_e.inflateSync=Tt,_e.gzip=It,_e.compress=It,_e.gzipSync=Ut,_e.compressSync=Ut,_e.gunzip=Zt,_e.gunzipSync=qt,_e.zlib=Lt,_e.zlibSync=Bt,_e.unzlib=Nt,_e.unzlibSync=Pt,_e.gzip=It,_e.compress=It,_e.decompress=Jt,_e.decompressSync=Kt,_e.strToU8=nn,_e.strFromU8=rn,_e.zip=dn,_e.zipSync=gn,_e.unzip=zn,_e.unzipSync=kn;var t=(typeof module!='undefined'&&typeof exports=='object'?function(_f){"use strict";var e,r,t,n=";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global";try{e=require("worker_threads"),r=e.Worker,t=e.isMarkedAsUntransferable}catch(e){}exports.default=r?function(e,o,a,s,u){var i=!1,l=new r(e+n,{eval:!0}).on("error",function(e){return u(e,null)}).on("message",function(e){return u(null,e)}).on("exit",function(e){e&&!i&&u(Error("exited with code "+e),null)});return t&&(s=s.filter(function(e){return!t(e)})),l.postMessage(a,s),l.terminate=function(){return i=!0,r.prototype.terminate.call(l)},l}:function(e,r,t,n,o){setImmediate(function(){return o(Error("async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)"),null)});var a=function(){};return{terminate:a,postMessage:a}};return _f}:function(_f){"use strict";var e={};_f.default=function(r,t,s,a,n){var o=new Worker(e[t]||(e[t]=URL.createObjectURL(new Blob([r+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return o.onmessage=function(e){var r=e.data,t=r.$e$;if(t){var s=Error(t[0]);s.code=t[1],s.stack=t[2],n(s,null)}else n(null,r)},o.postMessage(s,a),o};return _f})({}),n=Uint8Array,r=Uint16Array,i=Int32Array,e=new n([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),o=new n([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,n){for(var e=new r(31),o=0;o<31;++o)e[o]=n+=1<<t[o-1];var s=new i(e[30]);for(o=1;o<30;++o)for(var a=e[o];a<e[o+1];++a)s[a]=a-e[o]<<5|o;return{b:e,r:s}},u=a(e,2),h=u.b,f=u.r;h[28]=258,f[258]=28;for(var c=a(o,0),l=c.b,p=c.r,v=new r(32768),d=0;d<32768;++d){var g=(43690&d)>>1|(21845&d)<<1;v[d]=((65280&(g=(61680&(g=(52428&g)>>2|(13107&g)<<2))>>4|(3855&g)<<4))>>8|(255&g)<<8)>>1}var y=function(t,n,i){for(var e=t.length,o=0,s=new r(n);o<e;++o)t[o]&&++s[t[o]-1];var a,u=new r(n);for(o=1;o<n;++o)u[o]=u[o-1]+s[o-1]<<1;if(i){a=new r(1<<n);var h=15-n;for(o=0;o<e;++o)if(t[o])for(var f=o<<4|t[o],c=n-t[o],l=u[t[o]-1]++<<c,p=l|(1<<c)-1;l<=p;++l)a[v[l]>>h]=f}else for(a=new r(e),o=0;o<e;++o)t[o]&&(a[o]=v[u[t[o]-1]++]>>15-t[o]);return a},m=new n(288);for(d=0;d<144;++d)m[d]=8;for(d=144;d<256;++d)m[d]=9;for(d=256;d<280;++d)m[d]=7;for(d=280;d<288;++d)m[d]=8;var b=new n(32);for(d=0;d<32;++d)b[d]=5;var w=y(m,9,0),x=y(m,9,1),z=y(b,5,0),k=y(b,5,1),M=function(t){for(var n=t[0],r=1;r<t.length;++r)t[r]>n&&(n=t[r]);return n},S=function(t,n,r){var i=n/8|0;return(t[i]|t[i+1]<<8)>>(7&n)&r},A=function(t,n){var r=n/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(7&n)},T=function(t){return(t+7)/8|0},D=function(t,r,i){return(null==r||r<0)&&(r=0),(null==i||i>t.length)&&(i=t.length),new n(t.subarray(r,i))};_e.FlateErrorCode={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14};var C=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],I=function(t,n,r){var i=Error(n||C[t]);if(i.code=t,Error.captureStackTrace&&Error.captureStackTrace(i,I),!r)throw i;return i},U=function(t,r,i,a){var u=t.length,f=a?a.length:0;if(!u||r.f&&!r.l)return i||new n(0);var c=!i,p=c||2!=r.i,v=r.i;c&&(i=new n(3*u));var d=function(t){var r=i.length;if(t>r){var e=new n(Math.max(2*r,t));e.set(i),i=e}},g=r.f||0,m=r.p||0,b=r.b||0,w=r.l,z=r.d,C=r.m,U=r.n,F=8*u;do{if(!w){g=S(t,m,1);var E=S(t,m+1,3);if(m+=3,!E){var Z=t[(Y=T(m)+4)-4]|t[Y-3]<<8,q=Y+Z;if(q>u){v&&I(0);break}p&&d(b+Z),i.set(t.subarray(Y,q),b),r.b=b+=Z,r.p=m=8*q,r.f=g;continue}if(1==E)w=x,z=k,C=9,U=5;else if(2==E){var O=S(t,m,31)+257,G=S(t,m+10,15)+4,L=O+S(t,m+5,31)+1;m+=14;for(var B=new n(L),H=new n(19),j=0;j<G;++j)H[s[j]]=S(t,m+3*j,7);m+=3*G;var N=M(H),P=(1<<N)-1,V=y(H,N,1);for(j=0;j<L;){var Y,J=V[S(t,m,P)];if(m+=15&J,(Y=J>>4)<16)B[j++]=Y;else{var K=0,Q=0;for(16==Y?(Q=3+S(t,m,3),m+=2,K=B[j-1]):17==Y?(Q=3+S(t,m,7),m+=3):18==Y&&(Q=11+S(t,m,127),m+=7);Q--;)B[j++]=K}}var R=B.subarray(0,O),W=B.subarray(O);C=M(R),U=M(W),w=y(R,C,1),z=y(W,U,1)}else I(1);if(m>F){v&&I(0);break}}p&&d(b+131072);for(var X=(1<<C)-1,$=(1<<U)-1,_=m;;_=m){var tt=(K=w[A(t,m)&X])>>4;if((m+=15&K)>F){v&&I(0);break}if(K||I(2),tt<256)i[b++]=tt;else{if(256==tt){_=m,w=null;break}var nt=tt-254;tt>264&&(nt=S(t,m,(1<<(et=e[j=tt-257]))-1)+h[j],m+=et);var rt=z[A(t,m)&$],it=rt>>4;if(rt||I(3),m+=15&rt,W=l[it],it>3){var et=o[it];W+=A(t,m)&(1<<et)-1,m+=et}if(m>F){v&&I(0);break}p&&d(b+131072);var ot=b+nt;if(b<W){var st=f-W,at=Math.min(W,ot);for(st+b<0&&I(3);b<at;++b)i[b]=a[st+b]}for(;b<ot;++b)i[b]=i[b-W]}}r.l=w,r.p=_,r.b=b,r.f=g,w&&(g=1,r.m=C,r.d=z,r.n=U)}while(!g);return b!=i.length&&c?D(i,0,b):i.subarray(0,b)},F=function(t,n,r){var i=n/8|0;t[i]|=r<<=7&n,t[i+1]|=r>>8},E=function(t,n,r){var i=n/8|0;t[i]|=r<<=7&n,t[i+1]|=r>>8,t[i+2]|=r>>16},Z=function(t,i){for(var e=[],o=0;o<t.length;++o)t[o]&&e.push({s:o,f:t[o]});var s=e.length,a=e.slice();if(!s)return{t:j,l:0};if(1==s){var u=new n(e[0].s+1);return u[e[0].s]=1,{t:u,l:1}}e.sort(function(t,n){return t.f-n.f}),e.push({s:-1,f:25001});var h=e[0],f=e[1],c=0,l=1,p=2;for(e[0]={s:-1,f:h.f+f.f,l:h,r:f};l!=s-1;)h=e[e[c].f<e[p].f?c++:p++],f=e[c!=l&&e[c].f<e[p].f?c++:p++],e[l++]={s:-1,f:h.f+f.f,l:h,r:f};var v=a[0].s;for(o=1;o<s;++o)a[o].s>v&&(v=a[o].s);var d=new r(v+1),g=q(e[l-1],d,0);if(g>i){o=0;var y=0,m=g-i,b=1<<m;for(a.sort(function(t,n){return d[n.s]-d[t.s]||t.f-n.f});o<s;++o){var w=a[o].s;if(!(d[w]>i))break;y+=b-(1<<g-d[w]),d[w]=i}for(y>>=m;y>0;){var x=a[o].s;d[x]<i?y-=1<<i-d[x]++-1:++o}for(;o>=0&&y;--o){var z=a[o].s;d[z]==i&&(--d[z],++y)}g=i}return{t:new n(d),l:g}},q=function(t,n,r){return-1==t.s?Math.max(q(t.l,n,r+1),q(t.r,n,r+1)):n[t.s]=r},O=function(t){for(var n=t.length;n&&!t[--n];);for(var i=new r(++n),e=0,o=t[0],s=1,a=function(t){i[e++]=t},u=1;u<=n;++u)if(t[u]==o&&u!=n)++s;else{if(!o&&s>2){for(;s>138;s-=138)a(32754);s>2&&(a(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(a(o),--s;s>6;s-=6)a(8304);s>2&&(a(s-3<<5|8208),s=0)}for(;s--;)a(o);s=1,o=t[u]}return{c:i.subarray(0,e),n:n}},G=function(t,n){for(var r=0,i=0;i<n.length;++i)r+=t[i]*n[i];return r},L=function(t,n,r){var i=r.length,e=T(n+2);t[e]=255&i,t[e+1]=i>>8,t[e+2]=255^t[e],t[e+3]=255^t[e+1];for(var o=0;o<i;++o)t[e+o+4]=r[o];return 8*(e+4+i)},B=function(t,n,i,a,u,h,f,c,l,p,v){F(n,v++,i),++u[256];for(var d=Z(u,15),g=d.t,x=d.l,k=Z(h,15),M=k.t,S=k.l,A=O(g),T=A.c,D=A.n,C=O(M),I=C.c,U=C.n,q=new r(19),B=0;B<T.length;++B)++q[31&T[B]];for(B=0;B<I.length;++B)++q[31&I[B]];for(var H=Z(q,7),j=H.t,N=H.l,P=19;P>4&&!j[s[P-1]];--P);var V,Y,J,K,Q=p+5<<3,R=G(u,m)+G(h,b)+f,W=G(u,g)+G(h,M)+f+14+3*P+G(q,j)+2*q[16]+3*q[17]+7*q[18];if(l>=0&&Q<=R&&Q<=W)return L(n,v,t.subarray(l,l+p));if(F(n,v,1+(W<R)),v+=2,W<R){V=y(g,x,0),Y=g,J=y(M,S,0),K=M;var X=y(j,N,0);for(F(n,v,D-257),F(n,v+5,U-1),F(n,v+10,P-4),v+=14,B=0;B<P;++B)F(n,v+3*B,j[s[B]]);v+=3*P;for(var $=[T,I],_=0;_<2;++_){var tt=$[_];for(B=0;B<tt.length;++B)F(n,v,X[rt=31&tt[B]]),v+=j[rt],rt>15&&(F(n,v,tt[B]>>5&127),v+=tt[B]>>12)}}else V=w,Y=m,J=z,K=b;for(B=0;B<c;++B){var nt=a[B];if(nt>255){var rt;E(n,v,V[257+(rt=nt>>18&31)]),v+=Y[rt+257],rt>7&&(F(n,v,nt>>23&31),v+=e[rt]);var it=31&nt;E(n,v,J[it]),v+=K[it],it>3&&(E(n,v,nt>>5&8191),v+=o[it])}else E(n,v,V[nt]),v+=Y[nt]}return E(n,v,V[256]),v+Y[256]},H=new i([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),j=new n(0),N=function(t,s,a,u,h,c){var l=c.z||t.length,v=new n(u+l+5*(1+Math.ceil(l/7e3))+h),d=v.subarray(u,v.length-h),g=c.l,y=7&(c.r||0);if(s){y&&(d[0]=c.r>>3);for(var m=H[s-1],b=m>>13,w=8191&m,x=(1<<a)-1,z=c.p||new r(32768),k=c.h||new r(x+1),M=Math.ceil(a/3),S=2*M,A=function(n){return(t[n]^t[n+1]<<M^t[n+2]<<S)&x},C=new i(25e3),I=new r(288),U=new r(32),F=0,E=0,Z=c.i||0,q=0,O=c.w||0,G=0;Z+2<l;++Z){var j=A(Z),N=32767&Z,P=k[j];if(z[N]=P,k[j]=N,O<=Z){var V=l-Z;if((F>7e3||q>24576)&&(V>423||!g)){y=B(t,d,0,C,I,U,E,q,G,Z-G,y),q=F=E=0,G=Z;for(var Y=0;Y<286;++Y)I[Y]=0;for(Y=0;Y<30;++Y)U[Y]=0}var J=2,K=0,Q=w,R=N-P&32767;if(V>2&&j==A(Z-R))for(var W=Math.min(b,V)-1,X=Math.min(32767,Z),$=Math.min(258,V);R<=X&&--Q&&N!=P;){if(t[Z+J]==t[Z+J-R]){for(var _=0;_<$&&t[Z+_]==t[Z+_-R];++_);if(_>J){if(J=_,K=R,_>W)break;var tt=Math.min(R,_-2),nt=0;for(Y=0;Y<tt;++Y){var rt=Z-R+Y&32767,it=rt-z[rt]&32767;it>nt&&(nt=it,P=rt)}}}R+=(N=P)-(P=z[N])&32767}if(K){C[q++]=268435456|f[J]<<18|p[K];var et=31&f[J],ot=31&p[K];E+=e[et]+o[ot],++I[257+et],++U[ot],O=Z+J,++F}else C[q++]=t[Z],++I[t[Z]]}}for(Z=Math.max(Z,O);Z<l;++Z)C[q++]=t[Z],++I[t[Z]];y=B(t,d,g,C,I,U,E,q,G,Z-G,y),g||(c.r=7&y|d[y/8|0]<<3,y-=7,c.h=k,c.p=z,c.i=Z,c.w=O)}else{for(Z=c.w||0;Z<l+g;Z+=65535){var st=Z+65535;st>=l&&(d[y/8|0]=g,st=l),y=L(d,y+1,t.subarray(Z,st))}c.i=l}return D(v,0,u+T(y)+h)},P=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,i=9;--i;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),V=function(){var t=-1;return{p:function(n){for(var r=t,i=0;i<n.length;++i)r=P[255&r^n[i]]^r>>>8;t=r},d:function(){return~t}}},Y=function(){var t=1,n=0;return{p:function(r){for(var i=t,e=n,o=0|r.length,s=0;s!=o;){for(var a=Math.min(s+2655,o);s<a;++s)e+=i+=r[s];i=(65535&i)+15*(i>>16),e=(65535&e)+15*(e>>16)}t=i,n=e},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},J=function(t,r,i,e,o){if(!o&&(o={l:1},r.dictionary)){var s=r.dictionary.subarray(-32768),a=new n(s.length+t.length);a.set(s),a.set(t,s.length),t=a,o.w=s.length}return N(t,null==r.level?6:r.level,null==r.mem?o.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):20:12+r.mem,i,e,o)},K=function(t,n){var r={};for(var i in t)r[i]=t[i];for(var i in n)r[i]=n[i];return r},Q=function(t,n,r){for(var i=t(),e=""+t,o=e.slice(e.indexOf("[")+1,e.lastIndexOf("]")).replace(/\s+/g,"").split(","),s=0;s<i.length;++s){var a=i[s],u=o[s];if("function"==typeof a){n+=";"+u+"=";var h=""+a;if(a.prototype)if(-1!=h.indexOf("[native code]")){var f=h.indexOf(" ",8)+1;n+=h.slice(f,h.indexOf("(",f))}else for(var c in n+=h,a.prototype)n+=";"+u+".prototype."+c+"="+a.prototype[c];else n+=h}else r[u]=a}return n},R=[],W=function(t){var n=[];for(var r in t)t[r].buffer&&n.push((t[r]=new t[r].constructor(t[r])).buffer);return n},X=function(n,r,i,e){if(!R[i]){for(var o="",s={},a=n.length-1,u=0;u<a;++u)o=Q(n[u],o,s);R[i]={c:Q(n[a],o,s),e:s}}var h=K({},R[i].e);return(0,t.default)(R[i].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+r+"}",i,h,W(h),e)},$=function(){return[n,r,i,e,o,s,h,l,x,k,v,C,y,M,S,A,T,D,I,U,Tt,et,ot]},_=function(){return[n,r,i,e,o,s,f,p,w,m,z,b,v,H,j,y,F,E,Z,q,O,G,L,B,T,D,N,J,kt,et]},tt=function(){return[pt,gt,lt,V,P]},nt=function(){return[vt,dt]},rt=function(){return[yt,lt,Y]},it=function(){return[mt]},et=function(t){return postMessage(t,[t.buffer])},ot=function(t){return t&&{out:t.size&&new n(t.size),dictionary:t.dictionary}},st=function(t,n,r,i,e,o){var s=X(r,i,e,function(t,n){s.terminate(),o(t,n)});return s.postMessage([t,n],n.consume?[t.buffer]:[]),function(){s.terminate()}},at=function(t){return t.ondata=function(t,n){return postMessage([t,n],[t.buffer])},function(n){n.data[0]?(t.push(n.data[0],n.data[1]),postMessage([n.data[0].length])):t.flush(n.data[1])}},ut=function(t,n,r,i,e,o,s){var a,u=X(t,i,e,function(t,r){t?(u.terminate(),n.ondata.call(n,t)):Array.isArray(r)?1==r.length?(n.queuedSize-=r[0],n.ondrain&&n.ondrain(r[0])):(r[1]&&u.terminate(),n.ondata.call(n,t,r[0],r[1])):s(r)});u.postMessage(r),n.queuedSize=0,n.push=function(t,r){n.ondata||I(5),a&&n.ondata(I(4,0,1),null,!!r),n.queuedSize+=t.length,u.postMessage([t,a=r],t.buffer instanceof ArrayBuffer?[t.buffer]:[])},n.terminate=function(){u.terminate()},o&&(n.flush=function(t){u.postMessage([0,t])})},ht=function(t,n){return t[n]|t[n+1]<<8},ft=function(t,n){return(t[n]|t[n+1]<<8|t[n+2]<<16|t[n+3]<<24)>>>0},ct=function(t,n){return ft(t,n)+4294967296*ft(t,n+4)},lt=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},pt=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&lt(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var i=0;i<=r.length;++i)t[i+10]=r.charCodeAt(i)}},vt=function(t){31==t[0]&&139==t[1]&&8==t[2]||I(6,"invalid gzip data");var n=t[3],r=10;4&n&&(r+=2+(t[10]|t[11]<<8));for(var i=(n>>3&1)+(n>>4&1);i>0;i-=!t[r++]);return r+(2&n)},dt=function(t){var n=t.length;return(t[n-4]|t[n-3]<<8|t[n-2]<<16|t[n-1]<<24)>>>0},gt=function(t){return 10+(t.filename?t.filename.length+1:0)},yt=function(t,n){var r=n.level,i=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=i<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var e=Y();e.p(n.dictionary),lt(t,2,e.d())}},mt=function(t,n){return(8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31)&&I(6,"invalid zlib data"),(t[1]>>5&1)==+!n&&I(6,"invalid zlib data: "+(32&t[1]?"need":"unexpected")+" dictionary"),2+(t[1]>>3&4)};function bt(t,n){return"function"==typeof t&&(n=t,t={}),this.ondata=n,t}var wt=function(){function t(t,r){if("function"==typeof t&&(r=t,t={}),this.ondata=r,this.o=t||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new n(98304),this.o.dictionary){var i=this.o.dictionary.subarray(-32768);this.b.set(i,32768-i.length),this.s.i=32768-i.length}}return t.prototype.p=function(t,n){this.ondata(J(t,this.o,0,0,this.s),n)},t.prototype.push=function(t,r){this.ondata||I(5),this.s.l&&I(4);var i=t.length+this.s.z;if(i>this.b.length){if(i>2*this.b.length-32768){var e=new n(-32768&i);e.set(this.b.subarray(0,this.s.z)),this.b=e}var o=this.b.length-this.s.z;this.b.set(t.subarray(0,o),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(t.subarray(o),32768),this.s.z=t.length-o+32768,this.s.i=32766,this.s.w=32768}else this.b.set(t,this.s.z),this.s.z+=t.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2),r&&(this.s=this.o={},this.b=j)},t.prototype.flush=function(t){if(this.ondata||I(5),this.s.l&&I(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2,t){var r=new n(6);r[0]=this.s.r>>3;var i=L(r,this.s.r,j);this.s.r=0,this.ondata(r.subarray(0,i>>3),!1)}},t}();_e.Deflate=wt;var xt=function(){return function(t,n){ut([_,function(){return[at,wt]}],this,bt.call(this,t,n),function(t){var n=new wt(t.data);onmessage=at(n)},6,1)}}();function zt(t,n,r){return r||(r=n,n={}),"function"!=typeof r&&I(7),st(t,n,[_],function(t){return et(kt(t.data[0],t.data[1]))},0,r)}function kt(t,n){return J(t,n||{},0,0)}_e.AsyncDeflate=xt;var Mt=function(){function t(t,r){"function"==typeof t&&(r=t,t={}),this.ondata=r;var i=t&&t.dictionary&&t.dictionary.subarray(-32768);this.s={i:0,b:i?i.length:0},this.o=new n(32768),this.p=new n(0),i&&this.o.set(i)}return t.prototype.e=function(t){if(this.ondata||I(5),this.d&&I(4),this.p.length){if(t.length){var r=new n(this.p.length+t.length);r.set(this.p),r.set(t,this.p.length),this.p=r}}else this.p=t},t.prototype.c=function(t){this.s.i=+(this.d=t||!1);var n=this.s.b,r=U(this.p,this.s,this.o);this.ondata(D(r,n,this.s.b),this.d),this.o=D(r,this.s.b-32768),this.s.b=this.o.length,this.p=D(this.p,this.s.p/8|0),this.s.p&=7},t.prototype.push=function(t,n){this.e(t),this.c(n)},t}();_e.Inflate=Mt;var St=function(){return function(t,n){ut([$,function(){return[at,Mt]}],this,bt.call(this,t,n),function(t){var n=new Mt(t.data);onmessage=at(n)},7,0)}}();function At(t,n,r){return r||(r=n,n={}),"function"!=typeof r&&I(7),st(t,n,[$],function(t){return et(Tt(t.data[0],ot(t.data[1])))},1,r)}function Tt(t,n){return U(t,{i:2},n&&n.out,n&&n.dictionary)}_e.AsyncInflate=St;var Dt=function(){function t(t,n){this.c=V(),this.l=0,this.v=1,wt.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),this.l+=t.length,wt.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=J(t,this.o,this.v&&gt(this.o),n&&8,this.s);this.v&&(pt(r,this.o),this.v=0),n&&(lt(r,r.length-8,this.c.d()),lt(r,r.length-4,this.l)),this.ondata(r,n)},t.prototype.flush=function(t){wt.prototype.flush.call(this,t)},t}();_e.Gzip=Dt,_e.Compress=Dt;var Ct=function(){return function(t,n){ut([_,tt,function(){return[at,wt,Dt]}],this,bt.call(this,t,n),function(t){var n=new Dt(t.data);onmessage=at(n)},8,1)}}();function It(t,n,r){return r||(r=n,n={}),"function"!=typeof r&&I(7),st(t,n,[_,tt,function(){return[Ut]}],function(t){return et(Ut(t.data[0],t.data[1]))},2,r)}function Ut(t,n){n||(n={});var r=V(),i=t.length;r.p(t);var e=J(t,n,gt(n),8),o=e.length;return pt(e,n),lt(e,o-8,r.d()),lt(e,o-4,i),e}_e.AsyncGzip=Ct,_e.AsyncCompress=Ct;var Ft=function(){function t(t,n){this.v=1,this.r=0,Mt.call(this,t,n)}return t.prototype.push=function(t,r){if(Mt.prototype.e.call(this,t),this.r+=t.length,this.v){var i=this.p.subarray(this.v-1),e=i.length>3?vt(i):4;if(e>i.length){if(!r)return}else this.v>1&&this.onmember&&this.onmember(this.r-i.length);this.p=i.subarray(e),this.v=0}Mt.prototype.c.call(this,0),this.s.f&&!this.s.l?(this.v=T(this.s.p)+9,this.s={i:0},this.o=new n(0),this.push(new n(0),r)):r&&Mt.prototype.c.call(this,r)},t}();_e.Gunzip=Ft;var Et=function(){return function(t,n){var r=this;ut([$,nt,function(){return[at,Mt,Ft]}],this,bt.call(this,t,n),function(t){var n=new Ft(t.data);n.onmember=function(t){return postMessage(t)},onmessage=at(n)},9,0,function(t){return r.onmember&&r.onmember(t)})}}();function Zt(t,n,r){return r||(r=n,n={}),"function"!=typeof r&&I(7),st(t,n,[$,nt,function(){return[qt]}],function(t){return et(qt(t.data[0],t.data[1]))},3,r)}function qt(t,r){var i=vt(t);return i+8>t.length&&I(6,"invalid gzip data"),U(t.subarray(i,-8),{i:2},r&&r.out||new n(dt(t)),r&&r.dictionary)}_e.AsyncGunzip=Et;var Ot=function(){function t(t,n){this.c=Y(),this.v=1,wt.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),wt.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=J(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(yt(r,this.o),this.v=0),n&&lt(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(t){wt.prototype.flush.call(this,t)},t}();_e.Zlib=Ot;var Gt=function(){return function(t,n){ut([_,rt,function(){return[at,wt,Ot]}],this,bt.call(this,t,n),function(t){var n=new Ot(t.data);onmessage=at(n)},10,1)}}();function Lt(t,n,r){return r||(r=n,n={}),"function"!=typeof r&&I(7),st(t,n,[_,rt,function(){return[Bt]}],function(t){return et(Bt(t.data[0],t.data[1]))},4,r)}function Bt(t,n){n||(n={});var r=Y();r.p(t);var i=J(t,n,n.dictionary?6:2,4);return yt(i,n),lt(i,i.length-4,r.d()),i}_e.AsyncZlib=Gt;var Ht=function(){function t(t,n){Mt.call(this,t,n),this.v=t&&t.dictionary?2:1}return t.prototype.push=function(t,n){if(Mt.prototype.e.call(this,t),this.v){if(this.p.length<6&&!n)return;this.p=this.p.subarray(mt(this.p,this.v-1)),this.v=0}n&&(this.p.length<4&&I(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),Mt.prototype.c.call(this,n)},t}();_e.Unzlib=Ht;var jt=function(){return function(t,n){ut([$,it,function(){return[at,Mt,Ht]}],this,bt.call(this,t,n),function(t){var n=new Ht(t.data);onmessage=at(n)},11,0)}}();function Nt(t,n,r){return r||(r=n,n={}),"function"!=typeof r&&I(7),st(t,n,[$,it,function(){return[Pt]}],function(t){return et(Pt(t.data[0],ot(t.data[1])))},5,r)}function Pt(t,n){return U(t.subarray(mt(t,n&&n.dictionary),-4),{i:2},n&&n.out,n&&n.dictionary)}_e.AsyncUnzlib=jt;var Vt=function(){function t(t,n){this.o=bt.call(this,t,n)||{},this.G=Ft,this.I=Mt,this.Z=Ht}return t.prototype.i=function(){var t=this;this.s.ondata=function(n,r){t.ondata(n,r)}},t.prototype.push=function(t,r){if(this.ondata||I(5),this.s)this.s.push(t,r);else{if(this.p&&this.p.length){var i=new n(this.p.length+t.length);i.set(this.p),i.set(t,this.p.length)}else this.p=t;this.p.length>2&&(this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(this.o):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,r),this.p=null)}},t}();_e.Decompress=Vt;var Yt=function(){function t(t,n){Vt.call(this,t,n),this.queuedSize=0,this.G=Et,this.I=St,this.Z=jt}return t.prototype.i=function(){var t=this;this.s.ondata=function(n,r,i){t.ondata(n,r,i)},this.s.ondrain=function(n){t.queuedSize-=n,t.ondrain&&t.ondrain(n)}},t.prototype.push=function(t,n){this.queuedSize+=t.length,Vt.prototype.push.call(this,t,n)},t}();function Jt(t,n,r){return r||(r=n,n={}),"function"!=typeof r&&I(7),31==t[0]&&139==t[1]&&8==t[2]?Zt(t,n,r):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?At(t,n,r):Nt(t,n,r)}function Kt(t,n){return 31==t[0]&&139==t[1]&&8==t[2]?qt(t,n):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?Tt(t,n):Pt(t,n)}_e.AsyncDecompress=Yt;var Qt=function(t,r,i,e){for(var o in t){var s=t[o],a=r+o,u=e;Array.isArray(s)&&(u=K(e,s[1]),s=s[0]),ArrayBuffer.isView(s)?i[a]=[s,u]:(i[a+="/"]=[new n(0),u],Qt(s,a,i,e))}},Rt="undefined"!=typeof TextEncoder&&new TextEncoder,Wt="undefined"!=typeof TextDecoder&&new TextDecoder,Xt=0;try{Wt.decode(j,{stream:!0}),Xt=1}catch(t){}var $t=function(t){for(var n="",r=0;;){var i=t[r++],e=(i>127)+(i>223)+(i>239);if(r+e>t.length)return{s:n,r:D(t,r-1)};e?3==e?(i=((15&i)<<18|(63&t[r++])<<12|(63&t[r++])<<6|63&t[r++])-65536,n+=String.fromCharCode(55296|i>>10,56320|1023&i)):n+=String.fromCharCode(1&e?(31&i)<<6|63&t[r++]:(15&i)<<12|(63&t[r++])<<6|63&t[r++]):n+=String.fromCharCode(i)}},_t=function(){function t(t){this.ondata=t,Xt?this.t=new TextDecoder:this.p=j}return t.prototype.push=function(t,r){if(this.ondata||I(5),r=!!r,this.t)return this.ondata(this.t.decode(t,{stream:!0}),r),void(r&&(this.t.decode().length&&I(8),this.t=null));this.p||I(4);var i=new n(this.p.length+t.length);i.set(this.p),i.set(t,this.p.length);var e=$t(i),o=e.s,s=e.r;r?(s.length&&I(8),this.p=null):this.p=s,this.ondata(o,r)},t}();_e.DecodeUTF8=_t;var tn=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||I(5),this.d&&I(4),this.ondata(nn(t),this.d=n||!1)},t}();function nn(t,r){if(r){for(var i=new n(t.length),e=0;e<t.length;++e)i[e]=t.charCodeAt(e);return i}if(Rt)return Rt.encode(t);var o=t.length,s=new n(t.length+(t.length>>1)),a=0,u=function(t){s[a++]=t};for(e=0;e<o;++e){if(a+5>s.length){var h=new n(a+8+(o-e<<1));h.set(s),s=h}var f=t.charCodeAt(e);f<128||r?u(f):f<2048?(u(192|f>>6),u(128|63&f)):f>55295&&f<57344?(u(240|(f=65536+(1047552&f)|1023&t.charCodeAt(++e))>>18),u(128|f>>12&63),u(128|f>>6&63),u(128|63&f)):(u(224|f>>12),u(128|f>>6&63),u(128|63&f))}return D(s,0,a)}function rn(t,n){if(n){for(var r="",i=0;i<t.length;i+=16384)r+=String.fromCharCode.apply(null,t.subarray(i,i+16384));return r}if(Wt)return Wt.decode(t);var e=$t(t),o=e.s;return(r=e.r).length&&I(8),o}_e.EncodeUTF8=tn;var en=function(t){return 1==t?3:t<6?2:9==t?1:0},on=function(t,n){return n+30+ht(t,n+26)+ht(t,n+28)},sn=function(t,n,r){var i=ht(t,n+28),e=ht(t,n+30),o=rn(t.subarray(n+46,n+46+i),!(2048&ht(t,n+8))),s=n+46+i,a=an(t,s,e,r,ft(t,n+20),ft(t,n+24),ft(t,n+42)),u=a[0],h=a[1],f=a[2];return[ht(t,n+10),u,h,o,s+e+ht(t,n+32),f]},an=function(t,n,r,i,e,o,s){var a=4294967295==e,u=4294967295==o,h=4294967295==s,f=n+r;if(i&&a+u+h){for(;n+4<f;n+=4+ht(t,n+2))if(1==ht(t,n))return[a?ct(t,n+4+8*u):e,u?ct(t,n+4):o,h?ct(t,n+4+8*(u+a)):s,1];i<2&&I(13)}return[e,o,s,0]},un=function(t){var n=0;if(t)for(var r in t){var i=t[r].length;i>65535&&I(9),n+=i+4}return n},hn=function(t,n,r,i,e,o,s,a){var u=i.length,h=r.extra,f=a&&a.length,c=un(h);lt(t,n,null!=s?33639248:67324752),n+=4,null!=s&&(t[n++]=20,t[n++]=r.os),t[n]=20,n+=2,t[n++]=r.flag<<1|(o<0&&8),t[n++]=e&&8,t[n++]=255&r.compression,t[n++]=r.compression>>8;var l=new Date(null==r.mtime?Date.now():r.mtime),p=l.getFullYear()-1980;if((p<0||p>119)&&I(10),lt(t,n,p<<25|l.getMonth()+1<<21|l.getDate()<<16|l.getHours()<<11|l.getMinutes()<<5|l.getSeconds()>>1),n+=4,-1!=o&&(lt(t,n,r.crc),lt(t,n+4,o<0?-o-2:o),lt(t,n+8,r.size)),lt(t,n+12,u),lt(t,n+14,c),n+=16,null!=s&&(lt(t,n,f),lt(t,n+6,r.attrs),lt(t,n+10,s),n+=14),t.set(i,n),n+=u,c)for(var v in h){var d=h[v],g=d.length;lt(t,n,+v),lt(t,n+2,g),t.set(d,n+4),n+=4+g}return f&&(t.set(a,n),n+=f),n},fn=function(t,n,r,i,e){lt(t,n,101010256),lt(t,n+8,r),lt(t,n+10,r),lt(t,n+12,i),lt(t,n+16,e)},cn=function(){function t(t){this.filename=t,this.c=V(),this.size=0,this.compression=0}return t.prototype.process=function(t,n){this.ondata(null,t,n)},t.prototype.push=function(t,n){this.ondata||I(5),this.c.p(t),this.size+=t.length,n&&(this.crc=this.c.d()),this.process(t,n||!1)},t}();_e.ZipPassThrough=cn;var ln=function(){function t(t,n){var r=this;n||(n={}),cn.call(this,t),this.d=new wt(n,function(t,n){r.ondata(null,t,n)}),this.compression=8,this.flag=en(n.level)}return t.prototype.process=function(t,n){try{this.d.push(t,n)}catch(t){this.ondata(t,null,n)}},t.prototype.push=function(t,n){cn.prototype.push.call(this,t,n)},t}();_e.ZipDeflate=ln;var pn=function(){function t(t,n){var r=this;n||(n={}),cn.call(this,t),this.d=new xt(n,function(t,n,i){r.ondata(t,n,i)}),this.compression=8,this.flag=en(n.level),this.terminate=this.d.terminate}return t.prototype.process=function(t,n){this.d.push(t,n)},t.prototype.push=function(t,n){cn.prototype.push.call(this,t,n)},t}();_e.AsyncZipDeflate=pn;var vn=function(){function t(t){this.ondata=t,this.u=[],this.d=1}return t.prototype.add=function(t){var r=this;if(this.ondata||I(5),2&this.d)this.ondata(I(4+8*(1&this.d),0,1),null,!1);else{var i=nn(t.filename),e=i.length,o=t.comment,s=o&&nn(o),a=e!=t.filename.length||s&&o.length!=s.length,u=e+un(t.extra)+30;e>65535&&this.ondata(I(11,0,1),null,!1);var h=new n(u);hn(h,0,t,i,a,-1);var f=[h],c=function(){for(var t=0,n=f;t<n.length;t++)r.ondata(null,n[t],!1);f=[]},l=this.d;this.d=0;var p=this.u.length,v=K(t,{f:i,u:a,o:s,t:function(){t.terminate&&t.terminate()},r:function(){if(c(),l){var t=r.u[p+1];t?t.r():r.d=1}l=1}}),d=0;t.ondata=function(i,e,o){if(i)r.ondata(i,e,o),r.terminate();else if(d+=e.length,f.push(e),o){var s=new n(16);lt(s,0,134695760),lt(s,4,t.crc),lt(s,8,d),lt(s,12,t.size),f.push(s),v.c=d,v.b=u+d+16,v.crc=t.crc,v.size=t.size,l&&v.r(),l=1}else l&&c()},this.u.push(v)}},t.prototype.end=function(){var t=this;2&this.d?this.ondata(I(4+8*(1&this.d),0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&t.d&&(t.u.splice(-1,1),t.e())},t:function(){}}),this.d=3)},t.prototype.e=function(){for(var t=0,r=0,i=0,e=0,o=this.u;e<o.length;e++)i+=46+(h=o[e]).f.length+un(h.extra)+(h.o?h.o.length:0);for(var s=new n(i+22),a=0,u=this.u;a<u.length;a++){var h;hn(s,t,h=u[a],h.f,h.u,-h.c-2,r,h.o),t+=46+h.f.length+un(h.extra)+(h.o?h.o.length:0),r+=h.b}fn(s,t,this.u.length,i,r),this.ondata(null,s,!0),this.d=2},t.prototype.terminate=function(){for(var t=0,n=this.u;t<n.length;t++)n[t].t();this.d=2},t}();function dn(t,r,i){i||(i=r,r={}),"function"!=typeof i&&I(7);var e={};Qt(t,"",e,r);var o=Object.keys(e),s=o.length,a=0,u=0,h=s,f=Array(s),c=[],l=function(){for(var t=0;t<c.length;++t)c[t]()},p=function(t,n){xn(function(){i(t,n)})};xn(function(){p=i});var v=function(){var t=new n(u+22),r=a,i=u-a;u=0;for(var e=0;e<h;++e){var o=f[e];try{var s=o.c.length;hn(t,u,o,o.f,o.u,s);var c=30+o.f.length+un(o.extra),l=u+c;t.set(o.c,l),hn(t,a,o,o.f,o.u,s,u,o.m),a+=16+c+(o.m?o.m.length:0),u=l+s}catch(t){return p(t,null)}}fn(t,a,f.length,i,r),p(null,t)};s||v();for(var d=function(t){var n=o[t],r=e[n],i=r[0],h=r[1],d=V(),g=i.length;d.p(i);var y=nn(n),m=y.length,b=h.comment,w=b&&nn(b),x=w&&w.length,z=un(h.extra),k=0==h.level?0:8,M=function(r,i){if(r)l(),p(r,null);else{var e=i.length;f[t]=K(h,{size:g,crc:d.d(),c:i,f:y,m:w,u:m!=n.length||w&&b.length!=x,compression:k}),a+=30+m+z+e,u+=76+2*(m+z)+(x||0)+e,--s||v()}};if(m>65535&&M(I(11,0,1),null),k)if(g<16e4)try{M(null,kt(i,h))}catch(t){M(t,null)}else c.push(zt(i,h,M));else M(null,i)},g=0;g<h;++g)d(g);return l}function gn(t,r){r||(r={});var i={},e=[];Qt(t,"",i,r);var o=0,s=0;for(var a in i){var u=i[a],h=u[0],f=u[1],c=0==f.level?0:8,l=(M=nn(a)).length,p=f.comment,v=p&&nn(p),d=v&&v.length,g=un(f.extra);l>65535&&I(11);var y=c?kt(h,f):h,m=y.length,b=V();b.p(h),e.push(K(f,{size:h.length,crc:b.d(),c:y,f:M,m:v,u:l!=a.length||v&&p.length!=d,o:o,compression:c})),o+=30+l+g+m,s+=76+2*(l+g)+(d||0)+m}for(var w=new n(s+22),x=o,z=s-o,k=0;k<e.length;++k){var M;hn(w,(M=e[k]).o,M,M.f,M.u,M.c.length);var S=30+M.f.length+un(M.extra);w.set(M.c,M.o+S),hn(w,o,M,M.f,M.u,M.c.length,M.o,M.m),o+=16+S+(M.m?M.m.length:0)}return fn(w,o,e.length,z,x),w}_e.Zip=vn;var yn=function(){function t(){}return t.prototype.push=function(t,n){this.ondata(null,t,n)},t.compression=0,t}();_e.UnzipPassThrough=yn;var mn=function(){function t(){var t=this;this.i=new Mt(function(n,r){t.ondata(null,n,r)})}return t.prototype.push=function(t,n){try{this.i.push(t,n)}catch(t){this.ondata(t,null,n)}},t.compression=8,t}();_e.UnzipInflate=mn;var bn=function(){function t(t,n){var r=this;n<32e4?this.i=new Mt(function(t,n){r.ondata(null,t,n)}):(this.i=new St(function(t,n,i){r.ondata(t,n,i)}),this.terminate=this.i.terminate)}return t.prototype.push=function(t,n){this.i.terminate&&(t=D(t,0)),this.i.push(t,n)},t.compression=8,t}();_e.AsyncUnzipInflate=bn;var wn=function(){function t(t){this.onfile=t,this.k=[],this.o={0:yn},this.p=j}return t.prototype.push=function(t,r){var i=this;if(this.onfile||I(5),this.p||I(4),this.c>0){var e=Math.min(this.c,t.length),o=t.subarray(0,e);if(this.c-=e,this.d?this.d.push(o,!this.c):this.k[0].push(o),(t=t.subarray(e)).length)return this.push(t,r)}else{var s=0,a=0,u=void 0,h=void 0;this.p.length?t.length?((h=new n(this.p.length+t.length)).set(this.p),h.set(t,this.p.length)):h=this.p:h=t;for(var f=h.length,c=this.c,l=c&&this.d,p=function(){var t=ft(h,a);if(67324752==t){s=1,u=a,v.d=null,v.c=0;var n=ht(h,a+6),r=ht(h,a+8),e=2048&n,o=8&n,l=ht(h,a+26),p=ht(h,a+28);if(f>a+30+l+p){var d=[];v.k.unshift(d),s=2;var g,y=ft(h,a+18),m=ft(h,a+22),b=rn(h.subarray(a+30,a+=30+l),!e),w=an(h,a,p,2,y,m,0),x=w[0],z=w[1];o&&(x=-1-w[3]),a+=p,v.c=x;var k={name:b,compression:r,start:function(){if(k.ondata||I(5),x){var t=i.o[r];t||k.ondata(I(14,"unknown compression type "+r,1),null,!1),(g=x<0?new t(b):new t(b,x,z)).ondata=function(t,n,r){k.ondata(t,n,r)};for(var n=0,e=d;n<e.length;n++)g.push(e[n],!1);i.k[0]==d&&i.c?i.d=g:g.push(j,!0)}else k.ondata(null,j,!0)},terminate:function(){g&&g.terminate&&g.terminate()}};x>=0&&(k.size=x,k.originalSize=z),v.onfile(k)}return"break"}if(c){if(134695760==t)return u=a+=12+(-2==c&&8),s=3,v.c=0,"break";if(33639248==t)return u=a-=4,s=3,v.c=0,"break"}},v=this;a<f-4&&"break"!==p();++a);if(this.p=j,c<0){var d=h.subarray(0,s?u-12-(-2==c&&8)-(134695760==ft(h,u-16)&&4):a);l?l.push(d,!!s):this.k[+(2==s)].push(d)}if(2&s)return this.push(h.subarray(a),r);this.p=h.subarray(a)}r&&(this.c&&I(13),this.p=null)},t.prototype.register=function(t){this.o[t.compression]=t},t}();_e.Unzip=wn;var xn="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(t){t()};function zn(t,r,i){i||(i=r,r={}),"function"!=typeof i&&I(7);var e=[],o=function(){for(var t=0;t<e.length;++t)e[t]()},s={},a=function(t,n){xn(function(){i(t,n)})};xn(function(){a=i});for(var u=t.length-22;101010256!=ft(t,u);--u)if(!u||t.length-u>65558)return a(I(13,0,1),null),o;var h=ht(t,u+8);if(h){var f=h,c=ft(t,u+16),l=117853008==ft(t,u-20);if(l){var p=ft(t,u-12);(l=101075792==ft(t,p))&&(f=h=ft(t,p+32),c=ft(t,p+48))}for(var v=r&&r.filter,d=function(r){var i=sn(t,c,l),u=i[0],f=i[1],p=i[2],d=i[3],g=i[4],y=on(t,i[5]);c=g;var m=function(t,n){t?(o(),a(t,null)):(n&&(s[d]=n),--h||a(null,s))};if(!v||v({name:d,size:f,originalSize:p,compression:u}))if(u)if(8==u){var b=t.subarray(y,y+f);if(p<524288||f>.8*p)try{m(null,Tt(b,{out:new n(p)}))}catch(t){m(t,null)}else e.push(At(b,{size:p},m))}else m(I(14,"unknown compression type "+u,1),null);else m(null,D(t,y,y+f));else m(null,null)},g=0;g<f;++g)d()}else a(null,{});return o}function kn(t,r){for(var i={},e=t.length-22;101010256!=ft(t,e);--e)(!e||t.length-e>65558)&&I(13);var o=ht(t,e+8);if(!o)return{};var s=ft(t,e+16),a=117853008==ft(t,e-20);if(a){var u=ft(t,e-12);(a=101075792==ft(t,u))&&(o=ft(t,u+32),s=ft(t,u+48))}for(var h=r&&r.filter,f=0;f<o;++f){var c=sn(t,s,a),l=c[0],p=c[1],v=c[2],d=c[3],g=c[4],y=on(t,c[5]);s=g,h&&!h({name:d,size:p,originalSize:v,compression:l})||(l?8==l?i[d]=Tt(t.subarray(y,y+p),{out:new n(v)}):I(14,"unknown compression type "+l):i[d]=D(t,y,y+p))}return i}return _e});
1
+ !function(f){typeof module!='undefined'&&typeof exports=='object'?module.exports=f():typeof define!='undefined'&&define.amd?define(f):(typeof self!='undefined'?self:this).fflate=f()}(function(){var _e={};"use strict";var t=(typeof module!='undefined'&&typeof exports=='object'?function(_f){"use strict";var e,t=";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global";try{e=require("worker_threads").Worker}catch(e){}exports.default=e?function(r,n,o,a,s){var u=!1,i=new e(r+t,{eval:!0}).on("error",(function(e){return s(e,null)})).on("message",(function(e){return s(null,e)})).on("exit",(function(e){e&&!u&&s(Error("exited with code "+e),null)}));return i.postMessage(o,a),i.terminate=function(){return u=!0,e.prototype.terminate.call(i)},i}:function(e,t,r,n,o){setImmediate((function(){return o(Error("async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)"),null)}));var a=function(){};return{terminate:a,postMessage:a}};return _f}:function(_f){"use strict";var e={};_f.default=function(r,t,s,a,n){var o=new Worker(e[t]||(e[t]=URL.createObjectURL(new Blob([r+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return o.onmessage=function(e){var r=e.data,t=r.$e$;if(t){var s=Error(t[0]);s.code=t[1],s.stack=t[2],n(s,null)}else n(null,r)},o.postMessage(s,a),o};return _f})({}),n=Uint8Array,r=Uint16Array,e=Int32Array,i=new n([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),o=new n([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new n([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,n){for(var i=new r(31),o=0;o<31;++o)i[o]=n+=1<<t[o-1];var s=new e(i[30]);for(o=1;o<30;++o)for(var a=i[o];a<i[o+1];++a)s[a]=a-i[o]<<5|o;return{b:i,r:s}},u=a(i,2),h=u.b,f=u.r;h[28]=258,f[258]=28;for(var l=a(o,0),c=l.b,p=l.r,v=new r(32768),d=0;d<32768;++d){var g=(43690&d)>>1|(21845&d)<<1;v[d]=((65280&(g=(61680&(g=(52428&g)>>2|(13107&g)<<2))>>4|(3855&g)<<4))>>8|(255&g)<<8)>>1}var y=function(t,n,e){for(var i=t.length,o=0,s=new r(n);o<i;++o)t[o]&&++s[t[o]-1];var a,u=new r(n);for(o=1;o<n;++o)u[o]=u[o-1]+s[o-1]<<1;if(e){a=new r(1<<n);var h=15-n;for(o=0;o<i;++o)if(t[o])for(var f=o<<4|t[o],l=n-t[o],c=u[t[o]-1]++<<l,p=c|(1<<l)-1;c<=p;++c)a[v[c]>>h]=f}else for(a=new r(i),o=0;o<i;++o)t[o]&&(a[o]=v[u[t[o]-1]++]>>15-t[o]);return a},m=new n(288);for(d=0;d<144;++d)m[d]=8;for(d=144;d<256;++d)m[d]=9;for(d=256;d<280;++d)m[d]=7;for(d=280;d<288;++d)m[d]=8;var b=new n(32);for(d=0;d<32;++d)b[d]=5;var w=y(m,9,0),x=y(m,9,1),z=y(b,5,0),k=y(b,5,1),M=function(t){for(var n=t[0],r=1;r<t.length;++r)t[r]>n&&(n=t[r]);return n},S=function(t,n,r){var e=n/8|0;return(t[e]|t[e+1]<<8)>>(7&n)&r},A=function(t,n){var r=n/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(7&n)},T=function(t){return(t+7)/8|0},D=function(t,r,e){return(null==r||r<0)&&(r=0),(null==e||e>t.length)&&(e=t.length),new n(t.subarray(r,e))};_e.FlateErrorCode={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14};var C=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],I=function(t,n,r){var e=Error(n||C[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,I),!r)throw e;return e},U=function(t,r,e,a){var u=t.length,f=a?a.length:0;if(!u||r.f&&!r.l)return e||new n(0);var l=!e,p=l||2!=r.i,v=r.i;l&&(e=new n(3*u));var d=function(t){var r=e.length;if(t>r){var i=new n(Math.max(2*r,t));i.set(e),e=i}},g=r.f||0,m=r.p||0,b=r.b||0,w=r.l,z=r.d,C=r.m,U=r.n,F=8*u;do{if(!w){g=S(t,m,1);var E=S(t,m+1,3);if(m+=3,!E){var Z=t[(J=T(m)+4)-4]|t[J-3]<<8,q=J+Z;if(q>u){v&&I(0);break}p&&d(b+Z),e.set(t.subarray(J,q),b),r.b=b+=Z,r.p=m=8*q,r.f=g;continue}if(1==E)w=x,z=k,C=9,U=5;else if(2==E){var O=S(t,m,31)+257,G=S(t,m+10,15)+4,L=O+S(t,m+5,31)+1;m+=14;for(var H=new n(L),j=new n(19),N=0;N<G;++N)j[s[N]]=S(t,m+3*N,7);m+=3*G;var P=M(j),B=(1<<P)-1,Y=y(j,P,1);for(N=0;N<L;){var J,K=Y[S(t,m,B)];if(m+=15&K,(J=K>>4)<16)H[N++]=J;else{var Q=0,R=0;for(16==J?(R=3+S(t,m,3),m+=2,Q=H[N-1]):17==J?(R=3+S(t,m,7),m+=3):18==J&&(R=11+S(t,m,127),m+=7);R--;)H[N++]=Q}}var V=H.subarray(0,O),W=H.subarray(O);C=M(V),U=M(W),w=y(V,C,1),z=y(W,U,1)}else I(1);if(m>F){v&&I(0);break}}p&&d(b+131072);for(var X=(1<<C)-1,$=(1<<U)-1,_=m;;_=m){var tt=(Q=w[A(t,m)&X])>>4;if((m+=15&Q)>F){v&&I(0);break}if(Q||I(2),tt<256)e[b++]=tt;else{if(256==tt){_=m,w=null;break}var nt=tt-254;tt>264&&(nt=S(t,m,(1<<(it=i[N=tt-257]))-1)+h[N],m+=it);var rt=z[A(t,m)&$],et=rt>>4;if(rt||I(3),m+=15&rt,W=c[et],et>3){var it=o[et];W+=A(t,m)&(1<<it)-1,m+=it}if(m>F){v&&I(0);break}p&&d(b+131072);var ot=b+nt;if(b<W){var st=f-W,at=Math.min(W,ot);for(st+b<0&&I(3);b<at;++b)e[b]=a[st+b]}for(;b<ot;++b)e[b]=e[b-W]}}r.l=w,r.p=_,r.b=b,r.f=g,w&&(g=1,r.m=C,r.d=z,r.n=U)}while(!g);return b!=e.length&&l?D(e,0,b):e.subarray(0,b)},F=function(t,n,r){var e=n/8|0;t[e]|=r<<=7&n,t[e+1]|=r>>8},E=function(t,n,r){var e=n/8|0;t[e]|=r<<=7&n,t[e+1]|=r>>8,t[e+2]|=r>>16},Z=function(t,e){for(var i=[],o=0;o<t.length;++o)t[o]&&i.push({s:o,f:t[o]});var s=i.length,a=i.slice();if(!s)return{t:N,l:0};if(1==s){var u=new n(i[0].s+1);return u[i[0].s]=1,{t:u,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],f=i[1],l=0,c=1,p=2;for(i[0]={s:-1,f:h.f+f.f,l:h,r:f};c!=s-1;)h=i[i[l].f<i[p].f?l++:p++],f=i[l!=c&&i[l].f<i[p].f?l++:p++],i[c++]={s:-1,f:h.f+f.f,l:h,r:f};var v=a[0].s;for(o=1;o<s;++o)a[o].s>v&&(v=a[o].s);var d=new r(v+1),g=q(i[c-1],d,0);if(g>e){o=0;var y=0,m=g-e,b=1<<m;for(a.sort((function(t,n){return d[n.s]-d[t.s]||t.f-n.f}));o<s;++o){var w=a[o].s;if(!(d[w]>e))break;y+=b-(1<<g-d[w]),d[w]=e}for(y>>=m;y>0;){var x=a[o].s;d[x]<e?y-=1<<e-d[x]++-1:++o}for(;o>=0&&y;--o){var z=a[o].s;d[z]==e&&(--d[z],++y)}g=e}return{t:new n(d),l:g}},q=function(t,n,r){return-1==t.s?Math.max(q(t.l,n,r+1),q(t.r,n,r+1)):n[t.s]=r},O=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new r(++n),i=0,o=t[0],s=1,a=function(t){e[i++]=t},u=1;u<=n;++u)if(t[u]==o&&u!=n)++s;else{if(!o&&s>2){for(;s>138;s-=138)a(32754);s>2&&(a(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(a(o),--s;s>6;s-=6)a(8304);s>2&&(a(s-3<<5|8208),s=0)}for(;s--;)a(o);s=1,o=t[u]}return{c:e.subarray(0,i),n:n}},G=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},L=function(t,n,r){var e=r.length,i=T(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var o=0;o<e;++o)t[i+o+4]=r[o];return 8*(i+4+e)},H=function(t,n,e,a,u,h,f,l,c,p,v){F(n,v++,e),++u[256];for(var d=Z(u,15),g=d.t,x=d.l,k=Z(h,15),M=k.t,S=k.l,A=O(g),T=A.c,D=A.n,C=O(M),I=C.c,U=C.n,q=new r(19),H=0;H<T.length;++H)++q[31&T[H]];for(H=0;H<I.length;++H)++q[31&I[H]];for(var j=Z(q,7),N=j.t,P=j.l,B=19;B>4&&!N[s[B-1]];--B);var Y,J,K,Q,R=p+5<<3,V=G(u,m)+G(h,b)+f,W=G(u,g)+G(h,M)+f+14+3*B+G(q,N)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&R<=V&&R<=W)return L(n,v,t.subarray(c,c+p));if(F(n,v,1+(W<V)),v+=2,W<V){Y=y(g,x,0),J=g,K=y(M,S,0),Q=M;var X=y(N,P,0);for(F(n,v,D-257),F(n,v+5,U-1),F(n,v+10,B-4),v+=14,H=0;H<B;++H)F(n,v+3*H,N[s[H]]);v+=3*B;for(var $=[T,I],_=0;_<2;++_){var tt=$[_];for(H=0;H<tt.length;++H)F(n,v,X[rt=31&tt[H]]),v+=N[rt],rt>15&&(F(n,v,tt[H]>>5&127),v+=tt[H]>>12)}}else Y=w,J=m,K=z,Q=b;for(H=0;H<l;++H){var nt=a[H];if(nt>255){var rt;E(n,v,Y[257+(rt=nt>>18&31)]),v+=J[rt+257],rt>7&&(F(n,v,nt>>23&31),v+=i[rt]);var et=31&nt;E(n,v,K[et]),v+=Q[et],et>3&&(E(n,v,nt>>5&8191),v+=o[et])}else E(n,v,Y[nt]),v+=J[nt]}return E(n,v,Y[256]),v+J[256]},j=new e([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),N=new n(0),P=function(t,s,a,u,h,l){var c=l.z||t.length,v=new n(u+c+5*(1+Math.ceil(c/7e3))+h),d=v.subarray(u,v.length-h),g=l.l,y=7&(l.r||0);if(s){y&&(d[0]=l.r>>3);for(var m=j[s-1],b=m>>13,w=8191&m,x=(1<<a)-1,z=l.p||new r(32768),k=l.h||new r(x+1),M=Math.ceil(a/3),S=2*M,A=function(n){return(t[n]^t[n+1]<<M^t[n+2]<<S)&x},C=new e(25e3),I=new r(288),U=new r(32),F=0,E=0,Z=l.i||0,q=0,O=l.w||0,G=0;Z+2<c;++Z){var N=A(Z),P=32767&Z,B=k[N];if(z[P]=B,k[N]=P,O<=Z){var Y=c-Z;if((F>7e3||q>24576)&&(Y>423||!g)){y=H(t,d,0,C,I,U,E,q,G,Z-G,y),q=F=E=0,G=Z;for(var J=0;J<286;++J)I[J]=0;for(J=0;J<30;++J)U[J]=0}var K=2,Q=0,R=w,V=P-B&32767;if(Y>2&&N==A(Z-V))for(var W=Math.min(b,Y)-1,X=Math.min(32767,Z),$=Math.min(258,Y);V<=X&&--R&&P!=B;){if(t[Z+K]==t[Z+K-V]){for(var _=0;_<$&&t[Z+_]==t[Z+_-V];++_);if(_>K){if(K=_,Q=V,_>W)break;var tt=Math.min(V,_-2),nt=0;for(J=0;J<tt;++J){var rt=Z-V+J&32767,et=rt-z[rt]&32767;et>nt&&(nt=et,B=rt)}}}V+=(P=B)-(B=z[P])&32767}if(Q){C[q++]=268435456|f[K]<<18|p[Q];var it=31&f[K],ot=31&p[Q];E+=i[it]+o[ot],++I[257+it],++U[ot],O=Z+K,++F}else C[q++]=t[Z],++I[t[Z]]}}for(Z=Math.max(Z,O);Z<c;++Z)C[q++]=t[Z],++I[t[Z]];y=H(t,d,g,C,I,U,E,q,G,Z-G,y),g||(l.r=7&y|d[y/8|0]<<3,y-=7,l.h=k,l.p=z,l.i=Z,l.w=O)}else{for(Z=l.w||0;Z<c+g;Z+=65535){var st=Z+65535;st>=c&&(d[y/8|0]=g,st=c),y=L(d,y+1,t.subarray(Z,st))}l.i=c}return D(v,0,u+T(y)+h)},B=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),Y=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=B[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}},J=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,o=0|r.length,s=0;s!=o;){for(var a=Math.min(s+2655,o);s<a;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},K=function(t,r,e,i,o){if(!o&&(o={l:1},r.dictionary)){var s=r.dictionary.subarray(-32768),a=new n(s.length+t.length);a.set(s),a.set(t,s.length),t=a,o.w=s.length}return P(t,null==r.level?6:r.level,null==r.mem?o.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):20:12+r.mem,e,i,o)},Q=function(t,n){var r={};for(var e in t)r[e]=t[e];for(var e in n)r[e]=n[e];return r},R=function(t,n,r){for(var e=t(),i=""+t,o=i.slice(i.indexOf("[")+1,i.lastIndexOf("]")).replace(/\s+/g,"").split(","),s=0;s<e.length;++s){var a=e[s],u=o[s];if("function"==typeof a){n+=";"+u+"=";var h=""+a;if(a.prototype)if(-1!=h.indexOf("[native code]")){var f=h.indexOf(" ",8)+1;n+=h.slice(f,h.indexOf("(",f))}else for(var l in n+=h,a.prototype)n+=";"+u+".prototype."+l+"="+a.prototype[l];else n+=h}else r[u]=a}return n},V=[],W=function(t){var n=[];for(var r in t)t[r].buffer&&n.push((t[r]=new t[r].constructor(t[r])).buffer);return n},X=function(n,r,e,i){if(!V[e]){for(var o="",s={},a=n.length-1,u=0;u<a;++u)o=R(n[u],o,s);V[e]={c:R(n[a],o,s),e:s}}var h=Q({},V[e].e);return(0,t.default)(V[e].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+r+"}",e,h,W(h),i)},$=function(){return[n,r,e,i,o,s,h,c,x,k,v,C,y,M,S,A,T,D,I,U,Tt,it,ot]},_=function(){return[n,r,e,i,o,s,f,p,w,m,z,b,v,j,N,y,F,E,Z,q,O,G,L,H,T,D,P,K,kt,it]},tt=function(){return[pt,gt,ct,Y,B]},nt=function(){return[vt,dt]},rt=function(){return[yt,ct,J]},et=function(){return[mt]},it=function(t){return postMessage(t,[t.buffer])},ot=function(t){return t&&{out:t.size&&new n(t.size),dictionary:t.dictionary}},st=function(t,n,r,e,i,o){var s=X(r,e,i,(function(t,n){s.terminate(),o(t,n)}));return s.postMessage([t,n],n.consume?[t.buffer]:[]),function(){s.terminate()}},at=function(t){return t.ondata=function(t,n){return postMessage([t,n],[t.buffer])},function(n){n.data.length?(t.push(n.data[0],n.data[1]),postMessage([n.data[0].length])):t.flush()}},ut=function(t,n,r,e,i,o,s){var a,u=X(t,e,i,(function(t,r){t?(u.terminate(),n.ondata.call(n,t)):Array.isArray(r)?1==r.length?(n.queuedSize-=r[0],n.ondrain&&n.ondrain(r[0])):(r[1]&&u.terminate(),n.ondata.call(n,t,r[0],r[1])):s(r)}));u.postMessage(r),n.queuedSize=0,n.push=function(t,r){n.ondata||I(5),a&&n.ondata(I(4,0,1),null,!!r),n.queuedSize+=t.length,u.postMessage([t,a=r],[t.buffer])},n.terminate=function(){u.terminate()},o&&(n.flush=function(){u.postMessage([])})},ht=function(t,n){return t[n]|t[n+1]<<8},ft=function(t,n){return(t[n]|t[n+1]<<8|t[n+2]<<16|t[n+3]<<24)>>>0},lt=function(t,n){return ft(t,n)+4294967296*ft(t,n+4)},ct=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},pt=function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&ct(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}},vt=function(t){31==t[0]&&139==t[1]&&8==t[2]||I(6,"invalid gzip data");var n=t[3],r=10;4&n&&(r+=2+(t[10]|t[11]<<8));for(var e=(n>>3&1)+(n>>4&1);e>0;e-=!t[r++]);return r+(2&n)},dt=function(t){var n=t.length;return(t[n-4]|t[n-3]<<8|t[n-2]<<16|t[n-1]<<24)>>>0},gt=function(t){return 10+(t.filename?t.filename.length+1:0)},yt=function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=J();i.p(n.dictionary),ct(t,2,i.d())}},mt=function(t,n){return(8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31)&&I(6,"invalid zlib data"),(t[1]>>5&1)==+!n&&I(6,"invalid zlib data: "+(32&t[1]?"need":"unexpected")+" dictionary"),2+(t[1]>>3&4)};function bt(t,n){return"function"==typeof t&&(n=t,t={}),this.ondata=n,t}var wt=function(){function t(t,r){if("function"==typeof t&&(r=t,t={}),this.ondata=r,this.o=t||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new n(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return t.prototype.p=function(t,n){this.ondata(K(t,this.o,0,0,this.s),n)},t.prototype.push=function(t,r){this.ondata||I(5),this.s.l&&I(4);var e=t.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new n(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var o=this.b.length-this.s.z;this.b.set(t.subarray(0,o),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(t.subarray(o),32768),this.s.z=t.length-o+32768,this.s.i=32766,this.s.w=32768}else this.b.set(t,this.s.z),this.s.z+=t.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},t.prototype.flush=function(){this.ondata||I(5),this.s.l&&I(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},t}();_e.Deflate=wt;var xt=function(){return function(t,n){ut([_,function(){return[at,wt]}],this,bt.call(this,t,n),(function(t){var n=new wt(t.data);onmessage=at(n)}),6,1)}}();function zt(t,n,r){return r||(r=n,n={}),"function"!=typeof r&&I(7),st(t,n,[_],(function(t){return it(kt(t.data[0],t.data[1]))}),0,r)}function kt(t,n){return K(t,n||{},0,0)}_e.AsyncDeflate=xt,_e.deflate=zt,_e.deflateSync=kt;var Mt=function(){function t(t,r){"function"==typeof t&&(r=t,t={}),this.ondata=r;var e=t&&t.dictionary&&t.dictionary.subarray(-32768);this.s={i:0,b:e?e.length:0},this.o=new n(32768),this.p=new n(0),e&&this.o.set(e)}return t.prototype.e=function(t){if(this.ondata||I(5),this.d&&I(4),this.p.length){if(t.length){var r=new n(this.p.length+t.length);r.set(this.p),r.set(t,this.p.length),this.p=r}}else this.p=t},t.prototype.c=function(t){this.s.i=+(this.d=t||!1);var n=this.s.b,r=U(this.p,this.s,this.o);this.ondata(D(r,n,this.s.b),this.d),this.o=D(r,this.s.b-32768),this.s.b=this.o.length,this.p=D(this.p,this.s.p/8|0),this.s.p&=7},t.prototype.push=function(t,n){this.e(t),this.c(n)},t}();_e.Inflate=Mt;var St=function(){return function(t,n){ut([$,function(){return[at,Mt]}],this,bt.call(this,t,n),(function(t){var n=new Mt(t.data);onmessage=at(n)}),7,0)}}();function At(t,n,r){return r||(r=n,n={}),"function"!=typeof r&&I(7),st(t,n,[$],(function(t){return it(Tt(t.data[0],ot(t.data[1])))}),1,r)}function Tt(t,n){return U(t,{i:2},n&&n.out,n&&n.dictionary)}_e.AsyncInflate=St,_e.inflate=At,_e.inflateSync=Tt;var Dt=function(){function t(t,n){this.c=Y(),this.l=0,this.v=1,wt.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),this.l+=t.length,wt.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=K(t,this.o,this.v&&gt(this.o),n&&8,this.s);this.v&&(pt(r,this.o),this.v=0),n&&(ct(r,r.length-8,this.c.d()),ct(r,r.length-4,this.l)),this.ondata(r,n)},t.prototype.flush=function(){wt.prototype.flush.call(this)},t}();_e.Gzip=Dt,_e.Compress=Dt;var Ct=function(){return function(t,n){ut([_,tt,function(){return[at,wt,Dt]}],this,bt.call(this,t,n),(function(t){var n=new Dt(t.data);onmessage=at(n)}),8,1)}}();function It(t,n,r){return r||(r=n,n={}),"function"!=typeof r&&I(7),st(t,n,[_,tt,function(){return[Ut]}],(function(t){return it(Ut(t.data[0],t.data[1]))}),2,r)}function Ut(t,n){n||(n={});var r=Y(),e=t.length;r.p(t);var i=K(t,n,gt(n),8),o=i.length;return pt(i,n),ct(i,o-8,r.d()),ct(i,o-4,e),i}_e.AsyncGzip=Ct,_e.AsyncCompress=Ct,_e.gzip=It,_e.compress=It,_e.gzipSync=Ut,_e.compressSync=Ut;var Ft=function(){function t(t,n){this.v=1,this.r=0,Mt.call(this,t,n)}return t.prototype.push=function(t,r){if(Mt.prototype.e.call(this,t),this.r+=t.length,this.v){var e=this.p.subarray(this.v-1),i=e.length>3?vt(e):4;if(i>e.length){if(!r)return}else this.v>1&&this.onmember&&this.onmember(this.r-e.length);this.p=e.subarray(i),this.v=0}Mt.prototype.c.call(this,r),!this.s.f||this.s.l||r||(this.v=T(this.s.p)+9,this.s={i:0},this.o=new n(0),this.push(new n(0),r))},t}();_e.Gunzip=Ft;var Et=function(){return function(t,n){var r=this;ut([$,nt,function(){return[at,Mt,Ft]}],this,bt.call(this,t,n),(function(t){var n=new Ft(t.data);n.onmember=function(t){return postMessage(t)},onmessage=at(n)}),9,0,(function(t){return r.onmember&&r.onmember(t)}))}}();function Zt(t,n,r){return r||(r=n,n={}),"function"!=typeof r&&I(7),st(t,n,[$,nt,function(){return[qt]}],(function(t){return it(qt(t.data[0],t.data[1]))}),3,r)}function qt(t,r){var e=vt(t);return e+8>t.length&&I(6,"invalid gzip data"),U(t.subarray(e,-8),{i:2},r&&r.out||new n(dt(t)),r&&r.dictionary)}_e.AsyncGunzip=Et,_e.gunzip=Zt,_e.gunzipSync=qt;var Ot=function(){function t(t,n){this.c=J(),this.v=1,wt.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),wt.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=K(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(yt(r,this.o),this.v=0),n&&ct(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){wt.prototype.flush.call(this)},t}();_e.Zlib=Ot;var Gt=function(){return function(t,n){ut([_,rt,function(){return[at,wt,Ot]}],this,bt.call(this,t,n),(function(t){var n=new Ot(t.data);onmessage=at(n)}),10,1)}}();function Lt(t,n,r){return r||(r=n,n={}),"function"!=typeof r&&I(7),st(t,n,[_,rt,function(){return[Ht]}],(function(t){return it(Ht(t.data[0],t.data[1]))}),4,r)}function Ht(t,n){n||(n={});var r=J();r.p(t);var e=K(t,n,n.dictionary?6:2,4);return yt(e,n),ct(e,e.length-4,r.d()),e}_e.AsyncZlib=Gt,_e.zlib=Lt,_e.zlibSync=Ht;var jt=function(){function t(t,n){Mt.call(this,t,n),this.v=t&&t.dictionary?2:1}return t.prototype.push=function(t,n){if(Mt.prototype.e.call(this,t),this.v){if(this.p.length<6&&!n)return;this.p=this.p.subarray(mt(this.p,this.v-1)),this.v=0}n&&(this.p.length<4&&I(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),Mt.prototype.c.call(this,n)},t}();_e.Unzlib=jt;var Nt=function(){return function(t,n){ut([$,et,function(){return[at,Mt,jt]}],this,bt.call(this,t,n),(function(t){var n=new jt(t.data);onmessage=at(n)}),11,0)}}();function Pt(t,n,r){return r||(r=n,n={}),"function"!=typeof r&&I(7),st(t,n,[$,et,function(){return[Bt]}],(function(t){return it(Bt(t.data[0],ot(t.data[1])))}),5,r)}function Bt(t,n){return U(t.subarray(mt(t,n&&n.dictionary),-4),{i:2},n&&n.out,n&&n.dictionary)}_e.AsyncUnzlib=Nt,_e.unzlib=Pt,_e.unzlibSync=Bt;var Yt=function(){function t(t,n){this.o=bt.call(this,t,n)||{},this.G=Ft,this.I=Mt,this.Z=jt}return t.prototype.i=function(){var t=this;this.s.ondata=function(n,r){t.ondata(n,r)}},t.prototype.push=function(t,r){if(this.ondata||I(5),this.s)this.s.push(t,r);else{if(this.p&&this.p.length){var e=new n(this.p.length+t.length);e.set(this.p),e.set(t,this.p.length)}else this.p=t;this.p.length>2&&(this.s=31==this.p[0]&&139==this.p[1]&&8==this.p[2]?new this.G(this.o):8!=(15&this.p[0])||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,r),this.p=null)}},t}();_e.Decompress=Yt;var Jt=function(){function t(t,n){Yt.call(this,t,n),this.queuedSize=0,this.G=Et,this.I=St,this.Z=Nt}return t.prototype.i=function(){var t=this;this.s.ondata=function(n,r,e){t.ondata(n,r,e)},this.s.ondrain=function(n){t.queuedSize-=n,t.ondrain&&t.ondrain(n)}},t.prototype.push=function(t,n){this.queuedSize+=t.length,Yt.prototype.push.call(this,t,n)},t}();function Kt(t,n,r){return r||(r=n,n={}),"function"!=typeof r&&I(7),31==t[0]&&139==t[1]&&8==t[2]?Zt(t,n,r):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?At(t,n,r):Pt(t,n,r)}function Qt(t,n){return 31==t[0]&&139==t[1]&&8==t[2]?qt(t,n):8!=(15&t[0])||t[0]>>4>7||(t[0]<<8|t[1])%31?Tt(t,n):Bt(t,n)}_e.AsyncDecompress=Jt,_e.decompress=Kt,_e.decompressSync=Qt;var Rt=function(t,r,e,i){for(var o in t){var s=t[o],a=r+o,u=i;Array.isArray(s)&&(u=Q(i,s[1]),s=s[0]),s instanceof n?e[a]=[s,u]:(e[a+="/"]=[new n(0),u],Rt(s,a,e,i))}},Vt="undefined"!=typeof TextEncoder&&new TextEncoder,Wt="undefined"!=typeof TextDecoder&&new TextDecoder,Xt=0;try{Wt.decode(N,{stream:!0}),Xt=1}catch(t){}var $t=function(t){for(var n="",r=0;;){var e=t[r++],i=(e>127)+(e>223)+(e>239);if(r+i>t.length)return{s:n,r:D(t,r-1)};i?3==i?(e=((15&e)<<18|(63&t[r++])<<12|(63&t[r++])<<6|63&t[r++])-65536,n+=String.fromCharCode(55296|e>>10,56320|1023&e)):n+=String.fromCharCode(1&i?(31&e)<<6|63&t[r++]:(15&e)<<12|(63&t[r++])<<6|63&t[r++]):n+=String.fromCharCode(e)}},_t=function(){function t(t){this.ondata=t,Xt?this.t=new TextDecoder:this.p=N}return t.prototype.push=function(t,r){if(this.ondata||I(5),r=!!r,this.t)return this.ondata(this.t.decode(t,{stream:!0}),r),void(r&&(this.t.decode().length&&I(8),this.t=null));this.p||I(4);var e=new n(this.p.length+t.length);e.set(this.p),e.set(t,this.p.length);var i=$t(e),o=i.s,s=i.r;r?(s.length&&I(8),this.p=null):this.p=s,this.ondata(o,r)},t}();_e.DecodeUTF8=_t;var tn=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||I(5),this.d&&I(4),this.ondata(nn(t),this.d=n||!1)},t}();function nn(t,r){if(r){for(var e=new n(t.length),i=0;i<t.length;++i)e[i]=t.charCodeAt(i);return e}if(Vt)return Vt.encode(t);var o=t.length,s=new n(t.length+(t.length>>1)),a=0,u=function(t){s[a++]=t};for(i=0;i<o;++i){if(a+5>s.length){var h=new n(a+8+(o-i<<1));h.set(s),s=h}var f=t.charCodeAt(i);f<128||r?u(f):f<2048?(u(192|f>>6),u(128|63&f)):f>55295&&f<57344?(u(240|(f=65536+(1047552&f)|1023&t.charCodeAt(++i))>>18),u(128|f>>12&63),u(128|f>>6&63),u(128|63&f)):(u(224|f>>12),u(128|f>>6&63),u(128|63&f))}return D(s,0,a)}function rn(t,n){if(n){for(var r="",e=0;e<t.length;e+=16384)r+=String.fromCharCode.apply(null,t.subarray(e,e+16384));return r}if(Wt)return Wt.decode(t);var i=$t(t),o=i.s;return(r=i.r).length&&I(8),o}_e.EncodeUTF8=tn,_e.strToU8=nn,_e.strFromU8=rn;var en=function(t){return 1==t?3:t<6?2:9==t?1:0},on=function(t,n){return n+30+ht(t,n+26)+ht(t,n+28)},sn=function(t,n,r){var e=ht(t,n+28),i=rn(t.subarray(n+46,n+46+e),!(2048&ht(t,n+8))),o=n+46+e,s=ft(t,n+20),a=r&&4294967295==s?an(t,o):[s,ft(t,n+24),ft(t,n+42)],u=a[0],h=a[1],f=a[2];return[ht(t,n+10),u,h,i,o+ht(t,n+30)+ht(t,n+32),f]},an=function(t,n){for(;1!=ht(t,n);n+=4+ht(t,n+2));return[lt(t,n+12),lt(t,n+4),lt(t,n+20)]},un=function(t){var n=0;if(t)for(var r in t){var e=t[r].length;e>65535&&I(9),n+=e+4}return n},hn=function(t,n,r,e,i,o,s,a){var u=e.length,h=r.extra,f=a&&a.length,l=un(h);ct(t,n,null!=s?33639248:67324752),n+=4,null!=s&&(t[n++]=20,t[n++]=r.os),t[n]=20,n+=2,t[n++]=r.flag<<1|(o<0&&8),t[n++]=i&&8,t[n++]=255&r.compression,t[n++]=r.compression>>8;var c=new Date(null==r.mtime?Date.now():r.mtime),p=c.getFullYear()-1980;if((p<0||p>119)&&I(10),ct(t,n,p<<25|c.getMonth()+1<<21|c.getDate()<<16|c.getHours()<<11|c.getMinutes()<<5|c.getSeconds()>>1),n+=4,-1!=o&&(ct(t,n,r.crc),ct(t,n+4,o<0?-o-2:o),ct(t,n+8,r.size)),ct(t,n+12,u),ct(t,n+14,l),n+=16,null!=s&&(ct(t,n,f),ct(t,n+6,r.attrs),ct(t,n+10,s),n+=14),t.set(e,n),n+=u,l)for(var v in h){var d=h[v],g=d.length;ct(t,n,+v),ct(t,n+2,g),t.set(d,n+4),n+=4+g}return f&&(t.set(a,n),n+=f),n},fn=function(t,n,r,e,i){ct(t,n,101010256),ct(t,n+8,r),ct(t,n+10,r),ct(t,n+12,e),ct(t,n+16,i)},ln=function(){function t(t){this.filename=t,this.c=Y(),this.size=0,this.compression=0}return t.prototype.process=function(t,n){this.ondata(null,t,n)},t.prototype.push=function(t,n){this.ondata||I(5),this.c.p(t),this.size+=t.length,n&&(this.crc=this.c.d()),this.process(t,n||!1)},t}();_e.ZipPassThrough=ln;var cn=function(){function t(t,n){var r=this;n||(n={}),ln.call(this,t),this.d=new wt(n,(function(t,n){r.ondata(null,t,n)})),this.compression=8,this.flag=en(n.level)}return t.prototype.process=function(t,n){try{this.d.push(t,n)}catch(t){this.ondata(t,null,n)}},t.prototype.push=function(t,n){ln.prototype.push.call(this,t,n)},t}();_e.ZipDeflate=cn;var pn=function(){function t(t,n){var r=this;n||(n={}),ln.call(this,t),this.d=new xt(n,(function(t,n,e){r.ondata(t,n,e)})),this.compression=8,this.flag=en(n.level),this.terminate=this.d.terminate}return t.prototype.process=function(t,n){this.d.push(t,n)},t.prototype.push=function(t,n){ln.prototype.push.call(this,t,n)},t}();_e.AsyncZipDeflate=pn;var vn=function(){function t(t){this.ondata=t,this.u=[],this.d=1}return t.prototype.add=function(t){var r=this;if(this.ondata||I(5),2&this.d)this.ondata(I(4+8*(1&this.d),0,1),null,!1);else{var e=nn(t.filename),i=e.length,o=t.comment,s=o&&nn(o),a=i!=t.filename.length||s&&o.length!=s.length,u=i+un(t.extra)+30;i>65535&&this.ondata(I(11,0,1),null,!1);var h=new n(u);hn(h,0,t,e,a,-1);var f=[h],l=function(){for(var t=0,n=f;t<n.length;t++)r.ondata(null,n[t],!1);f=[]},c=this.d;this.d=0;var p=this.u.length,v=Q(t,{f:e,u:a,o:s,t:function(){t.terminate&&t.terminate()},r:function(){if(l(),c){var t=r.u[p+1];t?t.r():r.d=1}c=1}}),d=0;t.ondata=function(e,i,o){if(e)r.ondata(e,i,o),r.terminate();else if(d+=i.length,f.push(i),o){var s=new n(16);ct(s,0,134695760),ct(s,4,t.crc),ct(s,8,d),ct(s,12,t.size),f.push(s),v.c=d,v.b=u+d+16,v.crc=t.crc,v.size=t.size,c&&v.r(),c=1}else c&&l()},this.u.push(v)}},t.prototype.end=function(){var t=this;2&this.d?this.ondata(I(4+8*(1&this.d),0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&t.d&&(t.u.splice(-1,1),t.e())},t:function(){}}),this.d=3)},t.prototype.e=function(){for(var t=0,r=0,e=0,i=0,o=this.u;i<o.length;i++)e+=46+(h=o[i]).f.length+un(h.extra)+(h.o?h.o.length:0);for(var s=new n(e+22),a=0,u=this.u;a<u.length;a++){var h;hn(s,t,h=u[a],h.f,h.u,-h.c-2,r,h.o),t+=46+h.f.length+un(h.extra)+(h.o?h.o.length:0),r+=h.b}fn(s,t,this.u.length,e,r),this.ondata(null,s,!0),this.d=2},t.prototype.terminate=function(){for(var t=0,n=this.u;t<n.length;t++)n[t].t();this.d=2},t}();function dn(t,r,e){e||(e=r,r={}),"function"!=typeof e&&I(7);var i={};Rt(t,"",i,r);var o=Object.keys(i),s=o.length,a=0,u=0,h=s,f=Array(s),l=[],c=function(){for(var t=0;t<l.length;++t)l[t]()},p=function(t,n){xn((function(){e(t,n)}))};xn((function(){p=e}));var v=function(){var t=new n(u+22),r=a,e=u-a;u=0;for(var i=0;i<h;++i){var o=f[i];try{var s=o.c.length;hn(t,u,o,o.f,o.u,s);var l=30+o.f.length+un(o.extra),c=u+l;t.set(o.c,c),hn(t,a,o,o.f,o.u,s,u,o.m),a+=16+l+(o.m?o.m.length:0),u=c+s}catch(t){return p(t,null)}}fn(t,a,f.length,e,r),p(null,t)};s||v();for(var d=function(t){var n=o[t],r=i[n],e=r[0],h=r[1],d=Y(),g=e.length;d.p(e);var y=nn(n),m=y.length,b=h.comment,w=b&&nn(b),x=w&&w.length,z=un(h.extra),k=0==h.level?0:8,M=function(r,e){if(r)c(),p(r,null);else{var i=e.length;f[t]=Q(h,{size:g,crc:d.d(),c:e,f:y,m:w,u:m!=n.length||w&&b.length!=x,compression:k}),a+=30+m+z+i,u+=76+2*(m+z)+(x||0)+i,--s||v()}};if(m>65535&&M(I(11,0,1),null),k)if(g<16e4)try{M(null,kt(e,h))}catch(t){M(t,null)}else l.push(zt(e,h,M));else M(null,e)},g=0;g<h;++g)d(g);return c}function gn(t,r){r||(r={});var e={},i=[];Rt(t,"",e,r);var o=0,s=0;for(var a in e){var u=e[a],h=u[0],f=u[1],l=0==f.level?0:8,c=(M=nn(a)).length,p=f.comment,v=p&&nn(p),d=v&&v.length,g=un(f.extra);c>65535&&I(11);var y=l?kt(h,f):h,m=y.length,b=Y();b.p(h),i.push(Q(f,{size:h.length,crc:b.d(),c:y,f:M,m:v,u:c!=a.length||v&&p.length!=d,o:o,compression:l})),o+=30+c+g+m,s+=76+2*(c+g)+(d||0)+m}for(var w=new n(s+22),x=o,z=s-o,k=0;k<i.length;++k){var M;hn(w,(M=i[k]).o,M,M.f,M.u,M.c.length);var S=30+M.f.length+un(M.extra);w.set(M.c,M.o+S),hn(w,o,M,M.f,M.u,M.c.length,M.o,M.m),o+=16+S+(M.m?M.m.length:0)}return fn(w,o,i.length,z,x),w}_e.Zip=vn,_e.zip=dn,_e.zipSync=gn;var yn=function(){function t(){}return t.prototype.push=function(t,n){this.ondata(null,t,n)},t.compression=0,t}();_e.UnzipPassThrough=yn;var mn=function(){function t(){var t=this;this.i=new Mt((function(n,r){t.ondata(null,n,r)}))}return t.prototype.push=function(t,n){try{this.i.push(t,n)}catch(t){this.ondata(t,null,n)}},t.compression=8,t}();_e.UnzipInflate=mn;var bn=function(){function t(t,n){var r=this;n<32e4?this.i=new Mt((function(t,n){r.ondata(null,t,n)})):(this.i=new St((function(t,n,e){r.ondata(t,n,e)})),this.terminate=this.i.terminate)}return t.prototype.push=function(t,n){this.i.terminate&&(t=D(t,0)),this.i.push(t,n)},t.compression=8,t}();_e.AsyncUnzipInflate=bn;var wn=function(){function t(t){this.onfile=t,this.k=[],this.o={0:yn},this.p=N}return t.prototype.push=function(t,r){var e=this;if(this.onfile||I(5),this.p||I(4),this.c>0){var i=Math.min(this.c,t.length),o=t.subarray(0,i);if(this.c-=i,this.d?this.d.push(o,!this.c):this.k[0].push(o),(t=t.subarray(i)).length)return this.push(t,r)}else{var s=0,a=0,u=void 0,h=void 0;this.p.length?t.length?((h=new n(this.p.length+t.length)).set(this.p),h.set(t,this.p.length)):h=this.p:h=t;for(var f=h.length,l=this.c,c=l&&this.d,p=function(){var t,n=ft(h,a);if(67324752==n){s=1,u=a,v.d=null,v.c=0;var r=ht(h,a+6),i=ht(h,a+8),o=2048&r,c=8&r,p=ht(h,a+26),d=ht(h,a+28);if(f>a+30+p+d){var g=[];v.k.unshift(g),s=2;var y,m=ft(h,a+18),b=ft(h,a+22),w=rn(h.subarray(a+30,a+=30+p),!o);4294967295==m?(t=c?[-2]:an(h,a),m=t[0],b=t[1]):c&&(m=-1),a+=d,v.c=m;var x={name:w,compression:i,start:function(){if(x.ondata||I(5),m){var t=e.o[i];t||x.ondata(I(14,"unknown compression type "+i,1),null,!1),(y=m<0?new t(w):new t(w,m,b)).ondata=function(t,n,r){x.ondata(t,n,r)};for(var n=0,r=g;n<r.length;n++)y.push(r[n],!1);e.k[0]==g&&e.c?e.d=y:y.push(N,!0)}else x.ondata(null,N,!0)},terminate:function(){y&&y.terminate&&y.terminate()}};m>=0&&(x.size=m,x.originalSize=b),v.onfile(x)}return"break"}if(l){if(134695760==n)return u=a+=12+(-2==l&&8),s=3,v.c=0,"break";if(33639248==n)return u=a-=4,s=3,v.c=0,"break"}},v=this;a<f-4&&"break"!==p();++a);if(this.p=N,l<0){var d=h.subarray(0,s?u-12-(-2==l&&8)-(134695760==ft(h,u-16)&&4):a);c?c.push(d,!!s):this.k[+(2==s)].push(d)}if(2&s)return this.push(h.subarray(a),r);this.p=h.subarray(a)}r&&(this.c&&I(13),this.p=null)},t.prototype.register=function(t){this.o[t.compression]=t},t}();_e.Unzip=wn;var xn="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(t){t()};function zn(t,r,e){e||(e=r,r={}),"function"!=typeof e&&I(7);var i=[],o=function(){for(var t=0;t<i.length;++t)i[t]()},s={},a=function(t,n){xn((function(){e(t,n)}))};xn((function(){a=e}));for(var u=t.length-22;101010256!=ft(t,u);--u)if(!u||t.length-u>65558)return a(I(13,0,1),null),o;var h=ht(t,u+8);if(h){var f=h,l=ft(t,u+16),c=4294967295==l||65535==f;if(c){var p=ft(t,u-12);(c=101075792==ft(t,p))&&(f=h=ft(t,p+32),l=ft(t,p+48))}for(var v=r&&r.filter,d=function(r){var e=sn(t,l,c),u=e[0],f=e[1],p=e[2],d=e[3],g=e[4],y=on(t,e[5]);l=g;var m=function(t,n){t?(o(),a(t,null)):(n&&(s[d]=n),--h||a(null,s))};if(!v||v({name:d,size:f,originalSize:p,compression:u}))if(u)if(8==u){var b=t.subarray(y,y+f);if(p<524288||f>.8*p)try{m(null,Tt(b,{out:new n(p)}))}catch(t){m(t,null)}else i.push(At(b,{size:p},m))}else m(I(14,"unknown compression type "+u,1),null);else m(null,D(t,y,y+f));else m(null,null)},g=0;g<f;++g)d()}else a(null,{});return o}function kn(t,r){for(var e={},i=t.length-22;101010256!=ft(t,i);--i)(!i||t.length-i>65558)&&I(13);var o=ht(t,i+8);if(!o)return{};var s=ft(t,i+16),a=4294967295==s||65535==o;if(a){var u=ft(t,i-12);(a=101075792==ft(t,u))&&(o=ft(t,u+32),s=ft(t,u+48))}for(var h=r&&r.filter,f=0;f<o;++f){var l=sn(t,s,a),c=l[0],p=l[1],v=l[2],d=l[3],g=l[4],y=on(t,l[5]);s=g,h&&!h({name:d,size:p,originalSize:v,compression:c})||(c?8==c?e[d]=Tt(t.subarray(y,y+p),{out:new n(v)}):I(14,"unknown compression type "+c):e[d]=D(t,y,y+p))}return e}_e.unzip=zn,_e.unzipSync=kn;return _e});
@@ -0,0 +1,176 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ https://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
@@ -0,0 +1,173 @@
1
+ # JSBI — pure-JavaScript BigInts [![Build status](https://github.com/GoogleChromeLabs/jsbi/actions/workflows/main.yml/badge.svg)](https://github.com/GoogleChromeLabs/jsbi/actions/workflows/main.yml) [![jsbi on npm](https://img.shields.io/npm/v/jsbi)](https://www.npmjs.com/package/jsbi)
2
+
3
+ JSBI is a pure-JavaScript implementation of [the ECMAScript BigInt proposal](https://tc39.es/proposal-bigint/), which officially became a part of the JavaScript language in ES2020.
4
+
5
+ ## Installation
6
+
7
+ ```sh
8
+ npm install jsbi --save
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```js
14
+ import JSBI from './jsbi.mjs';
15
+
16
+ const max = JSBI.BigInt(Number.MAX_SAFE_INTEGER);
17
+ console.log(String(max));
18
+ // → '9007199254740991'
19
+ const other = JSBI.BigInt('2');
20
+ const result = JSBI.add(max, other);
21
+ console.log(String(result));
22
+ // → '9007199254740993'
23
+ ```
24
+
25
+ Note: explicitly call `toString` on any `JSBI` instances when `console.log()`ing them to see their numeric representation (e.g. `String(max)` or `max.toString()`). Without it (e.g. `console.log(max)`), you’ll instead see the object that represents the value.
26
+
27
+ Use [babel-plugin-transform-jsbi-to-bigint](https://github.com/GoogleChromeLabs/babel-plugin-transform-jsbi-to-bigint) to transpile JSBI code into native BigInt code.
28
+
29
+ Refer to the detailed instructions below for more information.
30
+
31
+ ## Why?
32
+
33
+ [Native BigInts are already shipping](https://v8.dev/features/bigint) in modern browsers (at the time of this writing, Google Chrome 67+, Opera 54+, Firefox 68+, Edge 79+, Safari 14+) and Node.js (v10.4+), but some users are still running older browsers — which means you can't use them yet if you want your code to run everywhere.
34
+
35
+ To use BigInts in code that you want to run *everywhere*, you need a library. But there’s a difficulty: the BigInt proposal changes the behavior of operators (like `+`, `>=`, etc.) to work on BigInts. These changes are impossible to polyfill directly; and they are also making it infeasible (in most cases) to transpile BigInt code to fallback code using Babel or similar tools. The reason is that such a transpilation would have to replace every single operator in the program with a call to some function that performs type checks on its inputs, which would incur an unacceptable performance penalty.
36
+
37
+ The solution is to do it the other way round: write code using a library’s syntax, and [transpile it to native BigInt code](https://github.com/GoogleChromeLabs/babel-plugin-transform-jsbi-to-bigint) when available. JSBI is designed for exactly this purpose: it provides a BigInt “polyfill” implementation that behaves exactly like the upcoming native BigInts, but with a syntax that you can ship on all browsers, today.
38
+
39
+ Its advantages over other, existing big-integer libraries are:
40
+
41
+ - it behaves exactly like native BigInts do where they are available, so to eventually migrate to those, you can [mechanically](https://github.com/GoogleChromeLabs/babel-plugin-transform-jsbi-to-bigint) update your code’s syntax; no re-thinking of its logic will be required.
42
+ - strong focus on performance. On average, JSBI is performance-competitive with the native implementation that Google Chrome is currently shipping. (Note: we expect this statement to gradually become outdated as browsers invest in additional optimizations.)
43
+
44
+ ## How?
45
+
46
+ Except for mechanical differences in syntax, you use JSBI-BigInts just [like you would use native BigInts](https://developers.google.com/web/updates/2018/05/bigint). Some things even look the same, after you replace `BigInt` with `JSBI.BigInt`:
47
+
48
+ | Operation | native BigInts | JSBI |
49
+ | -------------------- | ----------------------- | ------------------------ |
50
+ | Creation from String | `a = BigInt('456')` | `a = JSBI.BigInt('456')` |
51
+ | Creation from Number | `a = BigInt(789)` | `a = JSBI.BigInt(789)` |
52
+ | Conversion to String | `a.toString(radix)` | `a.toString(radix)` |
53
+ | Conversion to Number | `Number(a)` | `JSBI.toNumber(a)` |
54
+ | Truncation | `BigInt.asIntN(64, a)` | `JSBI.asIntN(64, a)` |
55
+ | | `BigInt.asUintN(64, a)` | `JSBI.asUintN(64, a)` |
56
+ | Type check | `typeof a === 'bigint'` | `a instanceof JSBI` |
57
+
58
+ Most operators are replaced by static functions:
59
+
60
+ | Operation | native BigInts | JSBI |
61
+ | --------------------------- | -------------- | --------------------------------- |
62
+ | Addition | `c = a + b` | `c = JSBI.add(a, b)` |
63
+ | Subtraction | `c = a - b` | `c = JSBI.subtract(a, b)` |
64
+ | Multiplication | `c = a * b` | `c = JSBI.multiply(a, b)` |
65
+ | Division | `c = a / b` | `c = JSBI.divide(a, b)` |
66
+ | Remainder | `c = a % b` | `c = JSBI.remainder(a, b)` |
67
+ | Exponentiation | `c = a ** b` | `c = JSBI.exponentiate(a, b)` |
68
+ | Negation | `b = -a` | `b = JSBI.unaryMinus(a)` |
69
+ | Bitwise negation | `b = ~a` | `b = JSBI.bitwiseNot(a)` |
70
+ | Left shifting | `c = a << b` | `c = JSBI.leftShift(a, b)` |
71
+ | Right shifting | `c = a >> b` | `c = JSBI.signedRightShift(a, b)` |
72
+ | Bitwise “and” | `c = a & b` | `c = JSBI.bitwiseAnd(a, b)` |
73
+ | Bitwise “or” | `c = a \| b` | `c = JSBI.bitwiseOr(a, b)` |
74
+ | Bitwise “xor” | `c = a ^ b` | `c = JSBI.bitwiseXor(a, b)` |
75
+ | Comparison to other BigInts | `a === b` | `JSBI.equal(a, b)` |
76
+ | | `a !== b` | `JSBI.notEqual(a, b)` |
77
+ | | `a < b` | `JSBI.lessThan(a, b)` |
78
+ | | `a <= b` | `JSBI.lessThanOrEqual(a, b)` |
79
+ | | `a > b` | `JSBI.greaterThan(a, b)` |
80
+ | | `a >= b` | `JSBI.greaterThanOrEqual(a, b)` |
81
+
82
+ The functions above operate only on BigInts. (They don’t perform type checks in the current implementation, because such checks are a waste of time when we assume that you know what you’re doing. Don’t try to call them with other inputs, or you’ll get “interesting” failures!)
83
+
84
+ Some operations are particularly interesting when you give them inputs of mixed types, e.g. comparing a BigInt to a Number, or concatenating a string with a BigInt. They are implemented as static functions named after the respective native operators:
85
+
86
+ | Operation | native BigInts | JSBI |
87
+ | ------------------------------- | -------------- | ---------------- |
88
+ | Abstract equality comparison | `x == y` | `JSBI.EQ(x, y)` |
89
+ | Generic “not equal” | `x != y` | `JSBI.NE(x, y)` |
90
+ | Generic “less than” | `x < y` | `JSBI.LT(x, y)` |
91
+ | Generic “less than or equal” | `x <= y` | `JSBI.LE(x, y)` |
92
+ | Generic “greater than” | `x > y` | `JSBI.GT(x, y)` |
93
+ | Generic “greater than or equal” | `x >= y` | `JSBI.GE(x, y)` |
94
+ | Generic addition | `x + y` | `JSBI.ADD(x, y)` |
95
+
96
+ The variable names `x` and `y` here indicate that the variables can refer to anything, for example: `JSBI.GT(101.5, BigInt('100'))` or `str = JSBI.ADD('result: ', BigInt('0x2A'))`.
97
+
98
+ Unfortunately, there are also a few things that are not supported at all:
99
+
100
+ | Unsupported operation | native BigInts | JSBI |
101
+ | --------------------- | -------------- | ------------------------------------ |
102
+ | literals | `a = 123n;` | N/A ☹ |
103
+ | increment | `a++` | N/A ☹ |
104
+ | | `a + 1n` | `JSBI.add(a, JSBI.BigInt('1'))` |
105
+ | decrement | `a--` | N/A ☹ |
106
+ | | `a - 1n` | `JSBI.subtract(a, JSBI.BigInt('1'))` |
107
+
108
+ It is impossible to replicate the exact behavior of the native `++` and `--` operators in a polyfill/library. Since JSBI is intended to be transpiled away eventually, it doesn’t provide a similar-but-different alternative. You can use `JSBI.add()` and `JSBI.subtract()` instead.
109
+
110
+ Since version 4.2.0, polyfills for `DataView` operations are included (where `dv` is a `DataView`, `i` is an index, `le` is an optional boolean indicating little endian mode, and `x` is a `BigInt` or a `JSBI` instance, respectively):
111
+
112
+ | native BigInts/DataViews | JSBI |
113
+ |-----------------------------|-------------------------------------------|
114
+ | `dv.getBigInt64(i, le)` | `JSBI.DataViewGetBigInt64(dv, i, le)` |
115
+ | `dv.setBigInt64(i, x, le)` | `JSBI.DataViewSetBigInt64(dv, i, x, le)` |
116
+ | `dv.getBigUint64(i, le)` | `JSBI.DataViewGetBigUint64(dv, i, le)` |
117
+ | `dv.setBigUint64(i, x, le)` | `JSBI.DataViewSetBigUint64(dv, i, x, le)` |
118
+
119
+ ## When?
120
+
121
+ Now! The JSBI library is ready for use today.
122
+
123
+ Once BigInts are natively supported everywhere, use [babel-plugin-transform-jsbi-to-bigint](https://github.com/GoogleChromeLabs/babel-plugin-transform-jsbi-to-bigint) to transpile your JSBI code into native BigInt code once and for all.
124
+
125
+ View [our issue tracker](https://github.com/GoogleChromeLabs/jsbi/issues) to learn more about out our future plans for JSBI, and please join the discussion!
126
+
127
+ A more vague future plan is to use the JSBI library (or an extension to it) as a staging ground for additional BigInt-related functionality. The official proposal is intentionally somewhat minimal, and leaves further “library functions” for follow-up proposals. Examples are a combined `exp`+`mod` function, and bit manipulation functions.
128
+
129
+ ## Development
130
+
131
+ 1. Clone this repository and `cd` into the local directory.
132
+
133
+ 1. Use the Node.js version specified in `.nvmrc`:
134
+
135
+ ```sh
136
+ nvm use
137
+ ```
138
+
139
+ 1. Install development dependencies:
140
+
141
+ ```sh
142
+ npm install
143
+ ```
144
+
145
+ 1. Run the tests:
146
+
147
+ ```sh
148
+ npm test
149
+ ```
150
+
151
+ See `npm run` for the list of commands.
152
+
153
+ ## For maintainers
154
+
155
+ ### How to publish a new release
156
+
157
+ 1. On the `main` branch, bump the version number in `package.json`:
158
+
159
+ ```sh
160
+ npm version patch -m 'Release v%s'
161
+ ```
162
+
163
+ Instead of `patch`, use `minor` or `major` [as needed](https://semver.org/).
164
+
165
+ Note that this produces a Git commit + tag.
166
+
167
+ 1. Push the release commit and tag:
168
+
169
+ ```sh
170
+ git push && git push --tags
171
+ ```
172
+
173
+ Our CI then automatically publishes the new release to npm.
@@ -0,0 +1,2 @@
1
+ "use strict";class JSBI extends Array{constructor(i,_){if(super(i),this.sign=_,Object.setPrototypeOf(this,JSBI.prototype),i>JSBI.__kMaxLength)throw new RangeError("Maximum BigInt size exceeded")}static BigInt(i){var _=Math.floor,t=Number.isFinite;if("number"==typeof i){if(0===i)return JSBI.__zero();if(JSBI.__isOneDigitInt(i))return 0>i?JSBI.__oneDigit(-i,!0):JSBI.__oneDigit(i,!1);if(!t(i)||_(i)!==i)throw new RangeError("The number "+i+" cannot be converted to BigInt because it is not an integer");return JSBI.__fromDouble(i)}if("string"==typeof i){const _=JSBI.__fromString(i);if(null===_)throw new SyntaxError("Cannot convert "+i+" to a BigInt");return _}if("boolean"==typeof i)return!0===i?JSBI.__oneDigit(1,!1):JSBI.__zero();if("object"==typeof i){if(i.constructor===JSBI)return i;const _=JSBI.__toPrimitive(i);return JSBI.BigInt(_)}throw new TypeError("Cannot convert "+i+" to a BigInt")}toDebugString(){const i=["BigInt["];for(const _ of this)i.push((_?(_>>>0).toString(16):_)+", ");return i.push("]"),i.join("")}toString(i=10){if(2>i||36<i)throw new RangeError("toString() radix argument must be between 2 and 36");return 0===this.length?"0":0==(i&i-1)?JSBI.__toStringBasePowerOfTwo(this,i):JSBI.__toStringGeneric(this,i,!1)}valueOf(){throw new Error("Convert JSBI instances to native numbers using `toNumber`.")}static toNumber(i){const _=i.length;if(0===_)return 0;if(1===_){const _=i.__unsignedDigit(0);return i.sign?-_:_}const t=i.__digit(_-1),e=JSBI.__clz30(t),n=30*_-e;if(1024<n)return i.sign?-Infinity:1/0;let g=n-1,o=t,s=_-1;const l=e+3;let r=32===l?0:o<<l;r>>>=12;const a=l-12;let u=12<=l?0:o<<20+l,d=20+l;for(0<a&&0<s&&(s--,o=i.__digit(s),r|=o>>>30-a,u=o<<a+2,d=a+2);0<d&&0<s;)s--,o=i.__digit(s),u|=30<=d?o<<d-30:o>>>30-d,d-=30;const h=JSBI.__decideRounding(i,d,s,o);if((1===h||0===h&&1==(1&u))&&(u=u+1>>>0,0===u&&(r++,0!=r>>>20&&(r=0,g++,1023<g))))return i.sign?-Infinity:1/0;const m=i.sign?-2147483648:0;return g=g+1023<<20,JSBI.__kBitConversionInts[JSBI.__kBitConversionIntHigh]=m|g|r,JSBI.__kBitConversionInts[JSBI.__kBitConversionIntLow]=u,JSBI.__kBitConversionDouble[0]}static unaryMinus(i){if(0===i.length)return i;const _=i.__copy();return _.sign=!i.sign,_}static bitwiseNot(i){return i.sign?JSBI.__absoluteSubOne(i).__trim():JSBI.__absoluteAddOne(i,!0)}static exponentiate(i,_){if(_.sign)throw new RangeError("Exponent must be positive");if(0===_.length)return JSBI.__oneDigit(1,!1);if(0===i.length)return i;if(1===i.length&&1===i.__digit(0))return i.sign&&0==(1&_.__digit(0))?JSBI.unaryMinus(i):i;if(1<_.length)throw new RangeError("BigInt too big");let t=_.__unsignedDigit(0);if(1===t)return i;if(t>=JSBI.__kMaxLengthBits)throw new RangeError("BigInt too big");if(1===i.length&&2===i.__digit(0)){const _=1+(0|t/30),e=i.sign&&0!=(1&t),n=new JSBI(_,e);n.__initializeDigits();const g=1<<t%30;return n.__setDigit(_-1,g),n}let e=null,n=i;for(0!=(1&t)&&(e=i),t>>=1;0!==t;t>>=1)n=JSBI.multiply(n,n),0!=(1&t)&&(null===e?e=n:e=JSBI.multiply(e,n));return e}static multiply(_,t){if(0===_.length)return _;if(0===t.length)return t;let i=_.length+t.length;30<=_.__clzmsd()+t.__clzmsd()&&i--;const e=new JSBI(i,_.sign!==t.sign);e.__initializeDigits();for(let n=0;n<_.length;n++)JSBI.__multiplyAccumulate(t,_.__digit(n),e,n);return e.__trim()}static divide(i,_){if(0===_.length)throw new RangeError("Division by zero");if(0>JSBI.__absoluteCompare(i,_))return JSBI.__zero();const t=i.sign!==_.sign,e=_.__unsignedDigit(0);let n;if(1===_.length&&32767>=e){if(1===e)return t===i.sign?i:JSBI.unaryMinus(i);n=JSBI.__absoluteDivSmall(i,e,null)}else n=JSBI.__absoluteDivLarge(i,_,!0,!1);return n.sign=t,n.__trim()}static remainder(i,_){if(0===_.length)throw new RangeError("Division by zero");if(0>JSBI.__absoluteCompare(i,_))return i;const t=_.__unsignedDigit(0);if(1===_.length&&32767>=t){if(1===t)return JSBI.__zero();const _=JSBI.__absoluteModSmall(i,t);return 0===_?JSBI.__zero():JSBI.__oneDigit(_,i.sign)}const e=JSBI.__absoluteDivLarge(i,_,!1,!0);return e.sign=i.sign,e.__trim()}static add(i,_){const t=i.sign;return t===_.sign?JSBI.__absoluteAdd(i,_,t):0<=JSBI.__absoluteCompare(i,_)?JSBI.__absoluteSub(i,_,t):JSBI.__absoluteSub(_,i,!t)}static subtract(i,_){const t=i.sign;return t===_.sign?0<=JSBI.__absoluteCompare(i,_)?JSBI.__absoluteSub(i,_,t):JSBI.__absoluteSub(_,i,!t):JSBI.__absoluteAdd(i,_,t)}static leftShift(i,_){return 0===_.length||0===i.length?i:_.sign?JSBI.__rightShiftByAbsolute(i,_):JSBI.__leftShiftByAbsolute(i,_)}static signedRightShift(i,_){return 0===_.length||0===i.length?i:_.sign?JSBI.__leftShiftByAbsolute(i,_):JSBI.__rightShiftByAbsolute(i,_)}static unsignedRightShift(){throw new TypeError("BigInts have no unsigned right shift; use >> instead")}static lessThan(i,_){return 0>JSBI.__compareToBigInt(i,_)}static lessThanOrEqual(i,_){return 0>=JSBI.__compareToBigInt(i,_)}static greaterThan(i,_){return 0<JSBI.__compareToBigInt(i,_)}static greaterThanOrEqual(i,_){return 0<=JSBI.__compareToBigInt(i,_)}static equal(_,t){if(_.sign!==t.sign)return!1;if(_.length!==t.length)return!1;for(let e=0;e<_.length;e++)if(_.__digit(e)!==t.__digit(e))return!1;return!0}static notEqual(i,_){return!JSBI.equal(i,_)}static bitwiseAnd(i,_){var t=Math.max;if(!i.sign&&!_.sign)return JSBI.__absoluteAnd(i,_).__trim();if(i.sign&&_.sign){const e=t(i.length,_.length)+1;let n=JSBI.__absoluteSubOne(i,e);const g=JSBI.__absoluteSubOne(_);return n=JSBI.__absoluteOr(n,g,n),JSBI.__absoluteAddOne(n,!0,n).__trim()}return i.sign&&([i,_]=[_,i]),JSBI.__absoluteAndNot(i,JSBI.__absoluteSubOne(_)).__trim()}static bitwiseXor(i,_){var t=Math.max;if(!i.sign&&!_.sign)return JSBI.__absoluteXor(i,_).__trim();if(i.sign&&_.sign){const e=t(i.length,_.length),n=JSBI.__absoluteSubOne(i,e),g=JSBI.__absoluteSubOne(_);return JSBI.__absoluteXor(n,g,n).__trim()}const e=t(i.length,_.length)+1;i.sign&&([i,_]=[_,i]);let n=JSBI.__absoluteSubOne(_,e);return n=JSBI.__absoluteXor(n,i,n),JSBI.__absoluteAddOne(n,!0,n).__trim()}static bitwiseOr(i,_){var t=Math.max;const e=t(i.length,_.length);if(!i.sign&&!_.sign)return JSBI.__absoluteOr(i,_).__trim();if(i.sign&&_.sign){let t=JSBI.__absoluteSubOne(i,e);const n=JSBI.__absoluteSubOne(_);return t=JSBI.__absoluteAnd(t,n,t),JSBI.__absoluteAddOne(t,!0,t).__trim()}i.sign&&([i,_]=[_,i]);let n=JSBI.__absoluteSubOne(_,e);return n=JSBI.__absoluteAndNot(n,i,n),JSBI.__absoluteAddOne(n,!0,n).__trim()}static asIntN(_,t){var i=Math.floor;if(0===t.length)return t;if(_=i(_),0>_)throw new RangeError("Invalid value: not (convertible to) a safe integer");if(0===_)return JSBI.__zero();if(_>=JSBI.__kMaxLengthBits)return t;const e=0|(_+29)/30;if(t.length<e)return t;const g=t.__unsignedDigit(e-1),o=1<<(_-1)%30;if(t.length===e&&g<o)return t;if(!((g&o)===o))return JSBI.__truncateToNBits(_,t);if(!t.sign)return JSBI.__truncateAndSubFromPowerOfTwo(_,t,!0);if(0==(g&o-1)){for(let n=e-2;0<=n;n--)if(0!==t.__digit(n))return JSBI.__truncateAndSubFromPowerOfTwo(_,t,!1);return t.length===e&&g===o?t:JSBI.__truncateToNBits(_,t)}return JSBI.__truncateAndSubFromPowerOfTwo(_,t,!1)}static asUintN(i,_){var t=Math.floor;if(0===_.length)return _;if(i=t(i),0>i)throw new RangeError("Invalid value: not (convertible to) a safe integer");if(0===i)return JSBI.__zero();if(_.sign){if(i>JSBI.__kMaxLengthBits)throw new RangeError("BigInt too big");return JSBI.__truncateAndSubFromPowerOfTwo(i,_,!1)}if(i>=JSBI.__kMaxLengthBits)return _;const e=0|(i+29)/30;if(_.length<e)return _;const g=i%30;if(_.length==e){if(0===g)return _;const i=_.__digit(e-1);if(0==i>>>g)return _}return JSBI.__truncateToNBits(i,_)}static ADD(i,_){if(i=JSBI.__toPrimitive(i),_=JSBI.__toPrimitive(_),"string"==typeof i)return"string"!=typeof _&&(_=_.toString()),i+_;if("string"==typeof _)return i.toString()+_;if(i=JSBI.__toNumeric(i),_=JSBI.__toNumeric(_),JSBI.__isBigInt(i)&&JSBI.__isBigInt(_))return JSBI.add(i,_);if("number"==typeof i&&"number"==typeof _)return i+_;throw new TypeError("Cannot mix BigInt and other types, use explicit conversions")}static LT(i,_){return JSBI.__compare(i,_,0)}static LE(i,_){return JSBI.__compare(i,_,1)}static GT(i,_){return JSBI.__compare(i,_,2)}static GE(i,_){return JSBI.__compare(i,_,3)}static EQ(i,_){for(;;){if(JSBI.__isBigInt(i))return JSBI.__isBigInt(_)?JSBI.equal(i,_):JSBI.EQ(_,i);if("number"==typeof i){if(JSBI.__isBigInt(_))return JSBI.__equalToNumber(_,i);if("object"!=typeof _)return i==_;_=JSBI.__toPrimitive(_)}else if("string"==typeof i){if(JSBI.__isBigInt(_))return i=JSBI.__fromString(i),null!==i&&JSBI.equal(i,_);if("object"!=typeof _)return i==_;_=JSBI.__toPrimitive(_)}else if("boolean"==typeof i){if(JSBI.__isBigInt(_))return JSBI.__equalToNumber(_,+i);if("object"!=typeof _)return i==_;_=JSBI.__toPrimitive(_)}else if("symbol"==typeof i){if(JSBI.__isBigInt(_))return!1;if("object"!=typeof _)return i==_;_=JSBI.__toPrimitive(_)}else if("object"==typeof i){if("object"==typeof _&&_.constructor!==JSBI)return i==_;i=JSBI.__toPrimitive(i)}else return i==_}}static NE(i,_){return!JSBI.EQ(i,_)}static DataViewGetBigInt64(i,_,t=!1){return JSBI.asIntN(64,JSBI.DataViewGetBigUint64(i,_,t))}static DataViewGetBigUint64(i,_,t=!1){const[e,n]=t?[4,0]:[0,4],g=i.getUint32(_+e,t),o=i.getUint32(_+n,t),s=new JSBI(3,!1);return s.__setDigit(0,1073741823&o),s.__setDigit(1,(268435455&g)<<2|o>>>30),s.__setDigit(2,g>>>28),s.__trim()}static DataViewSetBigInt64(i,_,t,e=!1){JSBI.DataViewSetBigUint64(i,_,t,e)}static DataViewSetBigUint64(i,_,t,e=!1){t=JSBI.asUintN(64,t);let n=0,g=0;if(0<t.length&&(g=t.__digit(0),1<t.length)){const i=t.__digit(1);g|=i<<30,n=i>>>2,2<t.length&&(n|=t.__digit(2)<<28)}const[o,s]=e?[4,0]:[0,4];i.setUint32(_+o,n,e),i.setUint32(_+s,g,e)}static __zero(){return new JSBI(0,!1)}static __oneDigit(i,_){const t=new JSBI(1,_);return t.__setDigit(0,i),t}__copy(){const _=new JSBI(this.length,this.sign);for(let t=0;t<this.length;t++)_[t]=this[t];return _}__trim(){let i=this.length,_=this[i-1];for(;0===_;)i--,_=this[i-1],this.pop();return 0===i&&(this.sign=!1),this}__initializeDigits(){for(let _=0;_<this.length;_++)this[_]=0}static __decideRounding(i,_,t,e){if(0<_)return-1;let n;if(0>_)n=-_-1;else{if(0===t)return-1;t--,e=i.__digit(t),n=29}let g=1<<n;if(0==(e&g))return-1;if(g-=1,0!=(e&g))return 1;for(;0<t;)if(t--,0!==i.__digit(t))return 1;return 0}static __fromDouble(i){JSBI.__kBitConversionDouble[0]=i;const _=2047&JSBI.__kBitConversionInts[JSBI.__kBitConversionIntHigh]>>>20,t=_-1023,e=(0|t/30)+1,n=new JSBI(e,0>i);let g=1048575&JSBI.__kBitConversionInts[JSBI.__kBitConversionIntHigh]|1048576,o=JSBI.__kBitConversionInts[JSBI.__kBitConversionIntLow];const s=20,l=t%30;let r,a=0;if(l<20){const i=s-l;a=i+32,r=g>>>i,g=g<<32-i|o>>>i,o<<=32-i}else if(l===20)a=32,r=g,g=o,o=0;else{const i=l-s;a=32-i,r=g<<i|o>>>32-i,g=o<<i,o=0}n.__setDigit(e-1,r);for(let _=e-2;0<=_;_--)0<a?(a-=30,r=g>>>2,g=g<<30|o>>>2,o<<=30):r=0,n.__setDigit(_,r);return n.__trim()}static __isWhitespace(i){return!!(13>=i&&9<=i)||(159>=i?32==i:131071>=i?160==i||5760==i:196607>=i?(i&=131071,10>=i||40==i||41==i||47==i||95==i||4096==i):65279==i)}static __fromString(i,_=0){let t=0;const e=i.length;let n=0;if(n===e)return JSBI.__zero();let g=i.charCodeAt(n);for(;JSBI.__isWhitespace(g);){if(++n===e)return JSBI.__zero();g=i.charCodeAt(n)}if(43===g){if(++n===e)return null;g=i.charCodeAt(n),t=1}else if(45===g){if(++n===e)return null;g=i.charCodeAt(n),t=-1}if(0===_){if(_=10,48===g){if(++n===e)return JSBI.__zero();if(g=i.charCodeAt(n),88===g||120===g){if(_=16,++n===e)return null;g=i.charCodeAt(n)}else if(79===g||111===g){if(_=8,++n===e)return null;g=i.charCodeAt(n)}else if(66===g||98===g){if(_=2,++n===e)return null;g=i.charCodeAt(n)}}}else if(16===_&&48===g){if(++n===e)return JSBI.__zero();if(g=i.charCodeAt(n),88===g||120===g){if(++n===e)return null;g=i.charCodeAt(n)}}if(0!=t&&10!==_)return null;for(;48===g;){if(++n===e)return JSBI.__zero();g=i.charCodeAt(n)}const o=e-n;let s=JSBI.__kMaxBitsPerChar[_],l=JSBI.__kBitsPerCharTableMultiplier-1;if(o>1073741824/s)return null;const r=s*o+l>>>JSBI.__kBitsPerCharTableShift,a=new JSBI(0|(r+29)/30,!1),u=10>_?_:10,h=10<_?_-10:0;if(0==(_&_-1)){s>>=JSBI.__kBitsPerCharTableShift;const _=[],t=[];let o=!1;do{let l=0,r=0;for(;;){let _;if(g-48>>>0<u)_=g-48;else if((32|g)-97>>>0<h)_=(32|g)-87;else{o=!0;break}if(r+=s,l=l<<s|_,++n===e){o=!0;break}if(g=i.charCodeAt(n),30<r+s)break}_.push(l),t.push(r)}while(!o);JSBI.__fillFromParts(a,_,t)}else{a.__initializeDigits();let t=!1,o=0;do{let r=0,b=1;for(;;){let s;if(g-48>>>0<u)s=g-48;else if((32|g)-97>>>0<h)s=(32|g)-87;else{t=!0;break}const l=b*_;if(1073741823<l)break;if(b=l,r=r*_+s,o++,++n===e){t=!0;break}g=i.charCodeAt(n)}l=30*JSBI.__kBitsPerCharTableMultiplier-1;const D=0|(s*o+l>>>JSBI.__kBitsPerCharTableShift)/30;a.__inplaceMultiplyAdd(b,r,D)}while(!t)}if(n!==e){if(!JSBI.__isWhitespace(g))return null;for(n++;n<e;n++)if(g=i.charCodeAt(n),!JSBI.__isWhitespace(g))return null}return a.sign=-1==t,a.__trim()}static __fillFromParts(_,t,e){let n=0,g=0,o=0;for(let s=t.length-1;0<=s;s--){const i=t[s],l=e[s];g|=i<<o,o+=l,30===o?(_.__setDigit(n++,g),o=0,g=0):30<o&&(_.__setDigit(n++,1073741823&g),o-=30,g=i>>>l-o)}if(0!==g){if(n>=_.length)throw new Error("implementation bug");_.__setDigit(n++,g)}for(;n<_.length;n++)_.__setDigit(n,0)}static __toStringBasePowerOfTwo(_,i){const t=_.length;let e=i-1;e=(85&e>>>1)+(85&e),e=(51&e>>>2)+(51&e),e=(15&e>>>4)+(15&e);const n=e,g=i-1,o=_.__digit(t-1),s=JSBI.__clz30(o);let l=0|(30*t-s+n-1)/n;if(_.sign&&l++,268435456<l)throw new Error("string too long");const r=Array(l);let a=l-1,u=0,d=0;for(let e=0;e<t-1;e++){const i=_.__digit(e),t=(u|i<<d)&g;r[a--]=JSBI.__kConversionChars[t];const o=n-d;for(u=i>>>o,d=30-o;d>=n;)r[a--]=JSBI.__kConversionChars[u&g],u>>>=n,d-=n}const h=(u|o<<d)&g;for(r[a--]=JSBI.__kConversionChars[h],u=o>>>n-d;0!==u;)r[a--]=JSBI.__kConversionChars[u&g],u>>>=n;if(_.sign&&(r[a--]="-"),-1!=a)throw new Error("implementation bug");return r.join("")}static __toStringGeneric(_,i,t){const e=_.length;if(0===e)return"";if(1===e){let e=_.__unsignedDigit(0).toString(i);return!1===t&&_.sign&&(e="-"+e),e}const n=30*e-JSBI.__clz30(_.__digit(e-1)),g=JSBI.__kMaxBitsPerChar[i],o=g-1;let s=n*JSBI.__kBitsPerCharTableMultiplier;s+=o-1,s=0|s/o;const l=s+1>>1,r=JSBI.exponentiate(JSBI.__oneDigit(i,!1),JSBI.__oneDigit(l,!1));let a,u;const d=r.__unsignedDigit(0);if(1===r.length&&32767>=d){a=new JSBI(_.length,!1),a.__initializeDigits();let t=0;for(let e=2*_.length-1;0<=e;e--){const i=t<<15|_.__halfDigit(e);a.__setHalfDigit(e,0|i/d),t=0|i%d}u=t.toString(i)}else{const t=JSBI.__absoluteDivLarge(_,r,!0,!0);a=t.quotient;const e=t.remainder.__trim();u=JSBI.__toStringGeneric(e,i,!0)}a.__trim();let h=JSBI.__toStringGeneric(a,i,!0);for(;u.length<l;)u="0"+u;return!1===t&&_.sign&&(h="-"+h),h+u}static __unequalSign(i){return i?-1:1}static __absoluteGreater(i){return i?-1:1}static __absoluteLess(i){return i?1:-1}static __compareToBigInt(i,_){const t=i.sign;if(t!==_.sign)return JSBI.__unequalSign(t);const e=JSBI.__absoluteCompare(i,_);return 0<e?JSBI.__absoluteGreater(t):0>e?JSBI.__absoluteLess(t):0}static __compareToNumber(i,_){if(JSBI.__isOneDigitInt(_)){const t=i.sign,e=0>_;if(t!==e)return JSBI.__unequalSign(t);if(0===i.length){if(e)throw new Error("implementation bug");return 0===_?0:-1}if(1<i.length)return JSBI.__absoluteGreater(t);const n=Math.abs(_),g=i.__unsignedDigit(0);return g>n?JSBI.__absoluteGreater(t):g<n?JSBI.__absoluteLess(t):0}return JSBI.__compareToDouble(i,_)}static __compareToDouble(i,_){if(_!==_)return _;if(_===1/0)return-1;if(_===-Infinity)return 1;const t=i.sign;if(t!==0>_)return JSBI.__unequalSign(t);if(0===_)throw new Error("implementation bug: should be handled elsewhere");if(0===i.length)return-1;JSBI.__kBitConversionDouble[0]=_;const e=2047&JSBI.__kBitConversionInts[JSBI.__kBitConversionIntHigh]>>>20;if(2047==e)throw new Error("implementation bug: handled elsewhere");const n=e-1023;if(0>n)return JSBI.__absoluteGreater(t);const g=i.length;let o=i.__digit(g-1);const s=JSBI.__clz30(o),l=30*g-s,r=n+1;if(l<r)return JSBI.__absoluteLess(t);if(l>r)return JSBI.__absoluteGreater(t);let a=1048576|1048575&JSBI.__kBitConversionInts[JSBI.__kBitConversionIntHigh],u=JSBI.__kBitConversionInts[JSBI.__kBitConversionIntLow];const d=20,h=29-s;if(h!==(0|(l-1)%30))throw new Error("implementation bug");let m,b=0;if(20>h){const i=d-h;b=i+32,m=a>>>i,a=a<<32-i|u>>>i,u<<=32-i}else if(20===h)b=32,m=a,a=u,u=0;else{const i=h-d;b=32-i,m=a<<i|u>>>32-i,a=u<<i,u=0}if(o>>>=0,m>>>=0,o>m)return JSBI.__absoluteGreater(t);if(o<m)return JSBI.__absoluteLess(t);for(let e=g-2;0<=e;e--){0<b?(b-=30,m=a>>>2,a=a<<30|u>>>2,u<<=30):m=0;const _=i.__unsignedDigit(e);if(_>m)return JSBI.__absoluteGreater(t);if(_<m)return JSBI.__absoluteLess(t)}if(0!==a||0!==u){if(0===b)throw new Error("implementation bug");return JSBI.__absoluteLess(t)}return 0}static __equalToNumber(i,_){var t=Math.abs;return JSBI.__isOneDigitInt(_)?0===_?0===i.length:1===i.length&&i.sign===0>_&&i.__unsignedDigit(0)===t(_):0===JSBI.__compareToDouble(i,_)}static __comparisonResultToBool(i,_){return 0===_?0>i:1===_?0>=i:2===_?0<i:3===_?0<=i:void 0}static __compare(i,_,t){if(i=JSBI.__toPrimitive(i),_=JSBI.__toPrimitive(_),"string"==typeof i&&"string"==typeof _)switch(t){case 0:return i<_;case 1:return i<=_;case 2:return i>_;case 3:return i>=_}if(JSBI.__isBigInt(i)&&"string"==typeof _)return _=JSBI.__fromString(_),null!==_&&JSBI.__comparisonResultToBool(JSBI.__compareToBigInt(i,_),t);if("string"==typeof i&&JSBI.__isBigInt(_))return i=JSBI.__fromString(i),null!==i&&JSBI.__comparisonResultToBool(JSBI.__compareToBigInt(i,_),t);if(i=JSBI.__toNumeric(i),_=JSBI.__toNumeric(_),JSBI.__isBigInt(i)){if(JSBI.__isBigInt(_))return JSBI.__comparisonResultToBool(JSBI.__compareToBigInt(i,_),t);if("number"!=typeof _)throw new Error("implementation bug");return JSBI.__comparisonResultToBool(JSBI.__compareToNumber(i,_),t)}if("number"!=typeof i)throw new Error("implementation bug");if(JSBI.__isBigInt(_))return JSBI.__comparisonResultToBool(JSBI.__compareToNumber(_,i),2^t);if("number"!=typeof _)throw new Error("implementation bug");return 0===t?i<_:1===t?i<=_:2===t?i>_:3===t?i>=_:void 0}__clzmsd(){return JSBI.__clz30(this.__digit(this.length-1))}static __absoluteAdd(_,t,e){if(_.length<t.length)return JSBI.__absoluteAdd(t,_,e);if(0===_.length)return _;if(0===t.length)return _.sign===e?_:JSBI.unaryMinus(_);let n=_.length;(0===_.__clzmsd()||t.length===_.length&&0===t.__clzmsd())&&n++;const g=new JSBI(n,e);let o=0,s=0;for(;s<t.length;s++){const i=_.__digit(s)+t.__digit(s)+o;o=i>>>30,g.__setDigit(s,1073741823&i)}for(;s<_.length;s++){const i=_.__digit(s)+o;o=i>>>30,g.__setDigit(s,1073741823&i)}return s<g.length&&g.__setDigit(s,o),g.__trim()}static __absoluteSub(_,t,e){if(0===_.length)return _;if(0===t.length)return _.sign===e?_:JSBI.unaryMinus(_);const n=new JSBI(_.length,e);let g=0,o=0;for(;o<t.length;o++){const i=_.__digit(o)-t.__digit(o)-g;g=1&i>>>30,n.__setDigit(o,1073741823&i)}for(;o<_.length;o++){const i=_.__digit(o)-g;g=1&i>>>30,n.__setDigit(o,1073741823&i)}return n.__trim()}static __absoluteAddOne(_,i,t=null){const e=_.length;null===t?t=new JSBI(e,i):t.sign=i;let n=1;for(let g=0;g<e;g++){const i=_.__digit(g)+n;n=i>>>30,t.__setDigit(g,1073741823&i)}return 0!=n&&t.__setDigitGrow(e,1),t}static __absoluteSubOne(_,t){const e=_.length;t=t||e;const n=new JSBI(t,!1);let g=1;for(let o=0;o<e;o++){const i=_.__digit(o)-g;g=1&i>>>30,n.__setDigit(o,1073741823&i)}if(0!=g)throw new Error("implementation bug");for(let g=e;g<t;g++)n.__setDigit(g,0);return n}static __absoluteAnd(_,t,e=null){let n=_.length,g=t.length,o=g;if(n<g){o=n;const i=_,e=n;_=t,n=g,t=i,g=e}let s=o;null===e?e=new JSBI(s,!1):s=e.length;let l=0;for(;l<o;l++)e.__setDigit(l,_.__digit(l)&t.__digit(l));for(;l<s;l++)e.__setDigit(l,0);return e}static __absoluteAndNot(_,t,e=null){const n=_.length,g=t.length;let o=g;n<g&&(o=n);let s=n;null===e?e=new JSBI(s,!1):s=e.length;let l=0;for(;l<o;l++)e.__setDigit(l,_.__digit(l)&~t.__digit(l));for(;l<n;l++)e.__setDigit(l,_.__digit(l));for(;l<s;l++)e.__setDigit(l,0);return e}static __absoluteOr(_,t,e=null){let n=_.length,g=t.length,o=g;if(n<g){o=n;const i=_,e=n;_=t,n=g,t=i,g=e}let s=n;null===e?e=new JSBI(s,!1):s=e.length;let l=0;for(;l<o;l++)e.__setDigit(l,_.__digit(l)|t.__digit(l));for(;l<n;l++)e.__setDigit(l,_.__digit(l));for(;l<s;l++)e.__setDigit(l,0);return e}static __absoluteXor(_,t,e=null){let n=_.length,g=t.length,o=g;if(n<g){o=n;const i=_,e=n;_=t,n=g,t=i,g=e}let s=n;null===e?e=new JSBI(s,!1):s=e.length;let l=0;for(;l<o;l++)e.__setDigit(l,_.__digit(l)^t.__digit(l));for(;l<n;l++)e.__setDigit(l,_.__digit(l));for(;l<s;l++)e.__setDigit(l,0);return e}static __absoluteCompare(_,t){const e=_.length-t.length;if(0!=e)return e;let n=_.length-1;for(;0<=n&&_.__digit(n)===t.__digit(n);)n--;return 0>n?0:_.__unsignedDigit(n)>t.__unsignedDigit(n)?1:-1}static __multiplyAccumulate(_,t,e,n){if(0===t)return;const g=32767&t,o=t>>>15;let s=0,l=0;for(let r,a=0;a<_.length;a++,n++){r=e.__digit(n);const i=_.__digit(a),t=32767&i,u=i>>>15,d=JSBI.__imul(t,g),h=JSBI.__imul(t,o),m=JSBI.__imul(u,g),b=JSBI.__imul(u,o);r+=l+d+s,s=r>>>30,r&=1073741823,r+=((32767&h)<<15)+((32767&m)<<15),s+=r>>>30,l=b+(h>>>15)+(m>>>15),e.__setDigit(n,1073741823&r)}for(;0!=s||0!==l;n++){let i=e.__digit(n);i+=s+l,l=0,s=i>>>30,e.__setDigit(n,1073741823&i)}}static __internalMultiplyAdd(_,t,e,g,o){let s=e,l=0;for(let n=0;n<g;n++){const i=_.__digit(n),e=JSBI.__imul(32767&i,t),g=JSBI.__imul(i>>>15,t),a=e+((32767&g)<<15)+l+s;s=a>>>30,l=g>>>15,o.__setDigit(n,1073741823&a)}if(o.length>g)for(o.__setDigit(g++,s+l);g<o.length;)o.__setDigit(g++,0);else if(0!==s+l)throw new Error("implementation bug")}__inplaceMultiplyAdd(i,_,t){t>this.length&&(t=this.length);const e=32767&i,n=i>>>15;let g=0,o=_;for(let s=0;s<t;s++){const i=this.__digit(s),_=32767&i,t=i>>>15,l=JSBI.__imul(_,e),r=JSBI.__imul(_,n),a=JSBI.__imul(t,e),u=JSBI.__imul(t,n);let d=o+l+g;g=d>>>30,d&=1073741823,d+=((32767&r)<<15)+((32767&a)<<15),g+=d>>>30,o=u+(r>>>15)+(a>>>15),this.__setDigit(s,1073741823&d)}if(0!=g||0!==o)throw new Error("implementation bug")}static __absoluteDivSmall(_,t,e=null){null===e&&(e=new JSBI(_.length,!1));let n=0;for(let g,o=2*_.length-1;0<=o;o-=2){g=(n<<15|_.__halfDigit(o))>>>0;const i=0|g/t;n=0|g%t,g=(n<<15|_.__halfDigit(o-1))>>>0;const s=0|g/t;n=0|g%t,e.__setDigit(o>>>1,i<<15|s)}return e}static __absoluteModSmall(_,t){let e=0;for(let n=2*_.length-1;0<=n;n--){const i=(e<<15|_.__halfDigit(n))>>>0;e=0|i%t}return e}static __absoluteDivLarge(i,_,t,e){const g=_.__halfDigitLength(),n=_.length,o=i.__halfDigitLength()-g;let s=null;t&&(s=new JSBI(o+2>>>1,!1),s.__initializeDigits());const l=new JSBI(g+2>>>1,!1);l.__initializeDigits();const r=JSBI.__clz15(_.__halfDigit(g-1));0<r&&(_=JSBI.__specialLeftShift(_,r,0));const a=JSBI.__specialLeftShift(i,r,1),u=_.__halfDigit(g-1);let d=0;for(let r,h=o;0<=h;h--){r=32767;const i=a.__halfDigit(h+g);if(i!==u){const t=(i<<15|a.__halfDigit(h+g-1))>>>0;r=0|t/u;let e=0|t%u;const n=_.__halfDigit(g-2),o=a.__halfDigit(h+g-2);for(;JSBI.__imul(r,n)>>>0>(e<<16|o)>>>0&&(r--,e+=u,!(32767<e)););}JSBI.__internalMultiplyAdd(_,r,0,n,l);let e=a.__inplaceSub(l,h,g+1);0!==e&&(e=a.__inplaceAdd(_,h,g),a.__setHalfDigit(h+g,32767&a.__halfDigit(h+g)+e),r--),t&&(1&h?d=r<<15:s.__setDigit(h>>>1,d|r))}if(e)return a.__inplaceRightShift(r),t?{quotient:s,remainder:a}:a;if(t)return s;throw new Error("unreachable")}static __clz15(i){return JSBI.__clz30(i)-15}__inplaceAdd(_,t,e){let n=0;for(let g=0;g<e;g++){const i=this.__halfDigit(t+g)+_.__halfDigit(g)+n;n=i>>>15,this.__setHalfDigit(t+g,32767&i)}return n}__inplaceSub(_,t,e){let n=0;if(1&t){t>>=1;let g=this.__digit(t),o=32767&g,s=0;for(;s<e-1>>>1;s++){const i=_.__digit(s),e=(g>>>15)-(32767&i)-n;n=1&e>>>15,this.__setDigit(t+s,(32767&e)<<15|32767&o),g=this.__digit(t+s+1),o=(32767&g)-(i>>>15)-n,n=1&o>>>15}const i=_.__digit(s),l=(g>>>15)-(32767&i)-n;n=1&l>>>15,this.__setDigit(t+s,(32767&l)<<15|32767&o);if(t+s+1>=this.length)throw new RangeError("out of bounds");0==(1&e)&&(g=this.__digit(t+s+1),o=(32767&g)-(i>>>15)-n,n=1&o>>>15,this.__setDigit(t+_.length,1073709056&g|32767&o))}else{t>>=1;let g=0;for(;g<_.length-1;g++){const i=this.__digit(t+g),e=_.__digit(g),o=(32767&i)-(32767&e)-n;n=1&o>>>15;const s=(i>>>15)-(e>>>15)-n;n=1&s>>>15,this.__setDigit(t+g,(32767&s)<<15|32767&o)}const i=this.__digit(t+g),o=_.__digit(g),s=(32767&i)-(32767&o)-n;n=1&s>>>15;let l=0;0==(1&e)&&(l=(i>>>15)-(o>>>15)-n,n=1&l>>>15),this.__setDigit(t+g,(32767&l)<<15|32767&s)}return n}__inplaceRightShift(_){if(0===_)return;let t=this.__digit(0)>>>_;const e=this.length-1;for(let n=0;n<e;n++){const i=this.__digit(n+1);this.__setDigit(n,1073741823&i<<30-_|t),t=i>>>_}this.__setDigit(e,t)}static __specialLeftShift(_,t,e){const g=_.length,n=new JSBI(g+e,!1);if(0===t){for(let t=0;t<g;t++)n.__setDigit(t,_.__digit(t));return 0<e&&n.__setDigit(g,0),n}let o=0;for(let s=0;s<g;s++){const i=_.__digit(s);n.__setDigit(s,1073741823&i<<t|o),o=i>>>30-t}return 0<e&&n.__setDigit(g,o),n}static __leftShiftByAbsolute(_,i){const t=JSBI.__toShiftAmount(i);if(0>t)throw new RangeError("BigInt too big");const e=0|t/30,n=t%30,g=_.length,o=0!==n&&0!=_.__digit(g-1)>>>30-n,s=g+e+(o?1:0),l=new JSBI(s,_.sign);if(0===n){let t=0;for(;t<e;t++)l.__setDigit(t,0);for(;t<s;t++)l.__setDigit(t,_.__digit(t-e))}else{let t=0;for(let _=0;_<e;_++)l.__setDigit(_,0);for(let o=0;o<g;o++){const i=_.__digit(o);l.__setDigit(o+e,1073741823&i<<n|t),t=i>>>30-n}if(o)l.__setDigit(g+e,t);else if(0!==t)throw new Error("implementation bug")}return l.__trim()}static __rightShiftByAbsolute(_,i){const t=_.length,e=_.sign,n=JSBI.__toShiftAmount(i);if(0>n)return JSBI.__rightShiftByMaximum(e);const g=0|n/30,o=n%30;let s=t-g;if(0>=s)return JSBI.__rightShiftByMaximum(e);let l=!1;if(e){if(0!=(_.__digit(g)&(1<<o)-1))l=!0;else for(let t=0;t<g;t++)if(0!==_.__digit(t)){l=!0;break}}if(l&&0===o){const i=_.__digit(t-1);0==~i&&s++}let r=new JSBI(s,e);if(0===o){r.__setDigit(s-1,0);for(let e=g;e<t;e++)r.__setDigit(e-g,_.__digit(e))}else{let e=_.__digit(g)>>>o;const n=t-g-1;for(let t=0;t<n;t++){const i=_.__digit(t+g+1);r.__setDigit(t,1073741823&i<<30-o|e),e=i>>>o}r.__setDigit(n,e)}return l&&(r=JSBI.__absoluteAddOne(r,!0,r)),r.__trim()}static __rightShiftByMaximum(i){return i?JSBI.__oneDigit(1,!0):JSBI.__zero()}static __toShiftAmount(i){if(1<i.length)return-1;const _=i.__unsignedDigit(0);return _>JSBI.__kMaxLengthBits?-1:_}static __toPrimitive(i,_="default"){if("object"!=typeof i)return i;if(i.constructor===JSBI)return i;if("undefined"!=typeof Symbol&&"symbol"==typeof Symbol.toPrimitive&&i[Symbol.toPrimitive]){const t=i[Symbol.toPrimitive](_);if("object"!=typeof t)return t;throw new TypeError("Cannot convert object to primitive value")}const t=i.valueOf;if(t){const _=t.call(i);if("object"!=typeof _)return _}const e=i.toString;if(e){const _=e.call(i);if("object"!=typeof _)return _}throw new TypeError("Cannot convert object to primitive value")}static __toNumeric(i){return JSBI.__isBigInt(i)?i:+i}static __isBigInt(i){return"object"==typeof i&&null!==i&&i.constructor===JSBI}static __truncateToNBits(i,_){const t=0|(i+29)/30,e=new JSBI(t,_.sign),n=t-1;for(let t=0;t<n;t++)e.__setDigit(t,_.__digit(t));let g=_.__digit(n);if(0!=i%30){const _=32-i%30;g=g<<_>>>_}return e.__setDigit(n,g),e.__trim()}static __truncateAndSubFromPowerOfTwo(_,t,e){var n=Math.min;const g=0|(_+29)/30,o=new JSBI(g,e);let s=0;const l=g-1;let a=0;for(const i=n(l,t.length);s<i;s++){const i=0-t.__digit(s)-a;a=1&i>>>30,o.__setDigit(s,1073741823&i)}for(;s<l;s++)o.__setDigit(s,0|1073741823&-a);let u=l<t.length?t.__digit(l):0;const d=_%30;let h;if(0==d)h=0-u-a,h&=1073741823;else{const i=32-d;u=u<<i>>>i;const _=1<<32-i;h=_-u-a,h&=_-1}return o.__setDigit(l,h),o.__trim()}__digit(_){return this[_]}__unsignedDigit(_){return this[_]>>>0}__setDigit(_,i){this[_]=0|i}__setDigitGrow(_,i){this[_]=0|i}__halfDigitLength(){const i=this.length;return 32767>=this.__unsignedDigit(i-1)?2*i-1:2*i}__halfDigit(_){return 32767&this[_>>>1]>>>15*(1&_)}__setHalfDigit(_,i){const t=_>>>1,e=this.__digit(t),n=1&_?32767&e|i<<15:1073709056&e|32767&i;this.__setDigit(t,n)}static __digitPow(i,_){let t=1;for(;0<_;)1&_&&(t*=i),_>>>=1,i*=i;return t}static __detectBigEndian(){return JSBI.__kBitConversionDouble[0]=-0,0!==JSBI.__kBitConversionInts[0]}static __isOneDigitInt(i){return(1073741823&i)===i}}JSBI.__kMaxLength=33554432,JSBI.__kMaxLengthBits=JSBI.__kMaxLength<<5,JSBI.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166],JSBI.__kBitsPerCharTableShift=5,JSBI.__kBitsPerCharTableMultiplier=1<<JSBI.__kBitsPerCharTableShift,JSBI.__kConversionChars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],JSBI.__kBitConversionBuffer=new ArrayBuffer(8),JSBI.__kBitConversionDouble=new Float64Array(JSBI.__kBitConversionBuffer),JSBI.__kBitConversionInts=new Int32Array(JSBI.__kBitConversionBuffer),JSBI.__kBitConversionIntHigh=JSBI.__detectBigEndian()?0:1,JSBI.__kBitConversionIntLow=JSBI.__detectBigEndian()?1:0,JSBI.__clz30=Math.clz32?function(i){return Math.clz32(i)-2}:function(i){return 0===i?30:0|29-(0|Math.log(i>>>0)/Math.LN2)},JSBI.__imul=Math.imul||function(i,_){return 0|i*_},module.exports=JSBI;
2
+ //# sourceMappingURL=jsbi-cjs.js.map