@comate/zulu 0.0.9 → 0.0.12

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 (286) hide show
  1. package/README.md +98 -0
  2. package/comate-engine/bin/comate.js +10 -0
  3. package/comate-engine/fallbackServer.js +1 -0
  4. package/comate-engine/node_modules/@comate/plugin-engine/dist/index.d.ts +188 -0
  5. package/comate-engine/node_modules/@comate/plugin-engine/dist/index.js +36 -0
  6. package/comate-engine/node_modules/@comate/plugin-engine/package.json +49 -0
  7. package/comate-engine/node_modules/@comate/plugin-host/bin.js +44 -0
  8. package/comate-engine/node_modules/@comate/plugin-host/dist/index.js +1 -0
  9. package/comate-engine/node_modules/@comate/plugin-host/dist/main.d.ts +14 -0
  10. package/comate-engine/node_modules/@comate/plugin-host/dist/main.js +9 -0
  11. package/comate-engine/node_modules/@comate/plugin-host/dist/user-Btg63hPI.js +36 -0
  12. package/comate-engine/node_modules/@comate/plugin-host/package.json +47 -0
  13. package/comate-engine/node_modules/@comate/plugin-shared-internals/dist/index.d.ts +2849 -0
  14. package/comate-engine/node_modules/@comate/plugin-shared-internals/dist/index.js +36 -0
  15. package/comate-engine/node_modules/@comate/plugin-shared-internals/package.json +72 -0
  16. package/comate-engine/node_modules/@comate/preview-proxy/bin/preview.js +13 -0
  17. package/comate-engine/node_modules/@comate/preview-proxy/dist/index.js +350 -0
  18. package/comate-engine/node_modules/@comate/preview-proxy/package.json +83 -0
  19. package/comate-engine/node_modules/@comate/preview-proxy/static/comate-preview-injector.css +1 -0
  20. package/comate-engine/node_modules/@comate/preview-proxy/static/comate-preview-injector.js +2 -0
  21. package/comate-engine/node_modules/@comate/preview-proxy/static/comate-preview-injector.js.LICENSE.txt +58 -0
  22. package/comate-engine/node_modules/compare-versions/LICENSE +21 -0
  23. package/comate-engine/node_modules/compare-versions/README.md +133 -0
  24. package/comate-engine/node_modules/compare-versions/lib/esm/compare.d.ts +19 -0
  25. package/comate-engine/node_modules/compare-versions/lib/esm/compare.js +44 -0
  26. package/comate-engine/node_modules/compare-versions/lib/esm/compare.js.map +1 -0
  27. package/comate-engine/node_modules/compare-versions/lib/esm/compareVersions.d.ts +8 -0
  28. package/comate-engine/node_modules/compare-versions/lib/esm/compareVersions.js +29 -0
  29. package/comate-engine/node_modules/compare-versions/lib/esm/compareVersions.js.map +1 -0
  30. package/comate-engine/node_modules/compare-versions/lib/esm/index.d.ts +5 -0
  31. package/comate-engine/node_modules/compare-versions/lib/esm/index.js +5 -0
  32. package/comate-engine/node_modules/compare-versions/lib/esm/index.js.map +1 -0
  33. package/comate-engine/node_modules/compare-versions/lib/esm/satisfies.d.ts +14 -0
  34. package/comate-engine/node_modules/compare-versions/lib/esm/satisfies.js +66 -0
  35. package/comate-engine/node_modules/compare-versions/lib/esm/satisfies.js.map +1 -0
  36. package/comate-engine/node_modules/compare-versions/lib/esm/utils.d.ts +7 -0
  37. package/comate-engine/node_modules/compare-versions/lib/esm/utils.js +37 -0
  38. package/comate-engine/node_modules/compare-versions/lib/esm/utils.js.map +1 -0
  39. package/comate-engine/node_modules/compare-versions/lib/esm/validate.d.ts +28 -0
  40. package/comate-engine/node_modules/compare-versions/lib/esm/validate.js +31 -0
  41. package/comate-engine/node_modules/compare-versions/lib/esm/validate.js.map +1 -0
  42. package/comate-engine/node_modules/compare-versions/lib/umd/index.js +216 -0
  43. package/comate-engine/node_modules/compare-versions/lib/umd/index.js.map +1 -0
  44. package/comate-engine/node_modules/compare-versions/package.json +45 -0
  45. package/comate-engine/node_modules/compare-versions/src/compare.ts +54 -0
  46. package/comate-engine/node_modules/compare-versions/src/compareVersions.ts +31 -0
  47. package/comate-engine/node_modules/compare-versions/src/index.ts +5 -0
  48. package/comate-engine/node_modules/compare-versions/src/satisfies.ts +69 -0
  49. package/comate-engine/node_modules/compare-versions/src/utils.ts +50 -0
  50. package/comate-engine/node_modules/compare-versions/src/validate.ts +36 -0
  51. package/comate-engine/node_modules/pkce-challenge/LICENSE +21 -0
  52. package/comate-engine/node_modules/pkce-challenge/README.md +55 -0
  53. package/comate-engine/node_modules/pkce-challenge/dist/index.browser.d.ts +19 -0
  54. package/comate-engine/node_modules/pkce-challenge/dist/index.browser.js +72 -0
  55. package/comate-engine/node_modules/pkce-challenge/dist/index.node.cjs +80 -0
  56. package/comate-engine/node_modules/pkce-challenge/dist/index.node.d.cts +19 -0
  57. package/comate-engine/node_modules/pkce-challenge/dist/index.node.d.ts +19 -0
  58. package/comate-engine/node_modules/pkce-challenge/dist/index.node.js +75 -0
  59. package/comate-engine/node_modules/pkce-challenge/package.json +58 -0
  60. package/comate-engine/node_modules/web-streams-polyfill/LICENSE +22 -0
  61. package/comate-engine/node_modules/web-streams-polyfill/README.md +119 -0
  62. package/comate-engine/node_modules/web-streams-polyfill/dist/polyfill.es5.js +8 -0
  63. package/comate-engine/node_modules/web-streams-polyfill/dist/polyfill.js +8 -0
  64. package/comate-engine/node_modules/web-streams-polyfill/dist/ponyfill.es5.js +8 -0
  65. package/comate-engine/node_modules/web-streams-polyfill/dist/ponyfill.es5.mjs +8 -0
  66. package/comate-engine/node_modules/web-streams-polyfill/dist/ponyfill.js +8 -0
  67. package/comate-engine/node_modules/web-streams-polyfill/dist/ponyfill.mjs +8 -0
  68. package/comate-engine/node_modules/web-streams-polyfill/package.json +98 -0
  69. package/comate-engine/node_modules/web-streams-polyfill/types/polyfill.d.ts +28 -0
  70. package/comate-engine/node_modules/web-streams-polyfill/types/ponyfill.d.ts +809 -0
  71. package/comate-engine/node_modules/web-streams-polyfill/types/tsdoc-metadata.json +11 -0
  72. package/comate-engine/package.json +94 -0
  73. package/comate-engine/plugins/aiscan/assets/icon.svg +12 -0
  74. package/comate-engine/plugins/aiscan/dist/index.js +53861 -0
  75. package/comate-engine/plugins/aiscan/package.json +67 -0
  76. package/comate-engine/plugins/appdev/assets/icon.png +0 -0
  77. package/comate-engine/plugins/appdev/dist/help.md +12 -0
  78. package/comate-engine/plugins/appdev/dist/index.d.ts +2 -0
  79. package/comate-engine/plugins/appdev/dist/index.js +194 -0
  80. package/comate-engine/plugins/appdev/dist/providers/err.d.ts +8 -0
  81. package/comate-engine/plugins/appdev/dist/providers/err.js +37 -0
  82. package/comate-engine/plugins/appdev/dist/providers/fallback.d.ts +5 -0
  83. package/comate-engine/plugins/appdev/dist/providers/fallback.js +28 -0
  84. package/comate-engine/plugins/appdev/dist/providers/help.d.ts +8 -0
  85. package/comate-engine/plugins/appdev/dist/providers/help.js +19 -0
  86. package/comate-engine/plugins/appdev/dist/providers/medusa.d.ts +8 -0
  87. package/comate-engine/plugins/appdev/dist/providers/medusa.js +39 -0
  88. package/comate-engine/plugins/appdev/dist/providers/qa.d.ts +8 -0
  89. package/comate-engine/plugins/appdev/dist/providers/qa.js +33 -0
  90. package/comate-engine/plugins/appdev/package.json +67 -0
  91. package/comate-engine/plugins/bfc/assets/bfc-icon.png +0 -0
  92. package/comate-engine/plugins/bfc/dist/config/config.d.ts +4 -0
  93. package/comate-engine/plugins/bfc/dist/config/config.js +4 -0
  94. package/comate-engine/plugins/bfc/dist/help.md +11 -0
  95. package/comate-engine/plugins/bfc/dist/index.d.ts +2 -0
  96. package/comate-engine/plugins/bfc/dist/index.js +452 -0
  97. package/comate-engine/plugins/bfc/dist/providers/bfcInstructMode.d.ts +8 -0
  98. package/comate-engine/plugins/bfc/dist/providers/bfcInstructMode.js +77 -0
  99. package/comate-engine/plugins/bfc/dist/providers/genAbnormalCode.d.ts +8 -0
  100. package/comate-engine/plugins/bfc/dist/providers/genAbnormalCode.js +71 -0
  101. package/comate-engine/plugins/bfc/dist/providers/genBfcCode.d.ts +8 -0
  102. package/comate-engine/plugins/bfc/dist/providers/genBfcCode.js +74 -0
  103. package/comate-engine/plugins/bfc/dist/providers/getBatchCases.d.ts +10 -0
  104. package/comate-engine/plugins/bfc/dist/providers/getBatchCases.js +71 -0
  105. package/comate-engine/plugins/bfc/dist/providers/help.d.ts +8 -0
  106. package/comate-engine/plugins/bfc/dist/providers/help.js +19 -0
  107. package/comate-engine/plugins/bfc/dist/service/generateService.d.ts +14 -0
  108. package/comate-engine/plugins/bfc/dist/service/generateService.js +27 -0
  109. package/comate-engine/plugins/bfc/package.json +85 -0
  110. package/comate-engine/plugins/bpm/assets/bpm.png +0 -0
  111. package/comate-engine/plugins/bpm/dist/index.js +313 -0
  112. package/comate-engine/plugins/bpm/package.json +65 -0
  113. package/comate-engine/plugins/casebuilder/assets/icon.svg +1 -0
  114. package/comate-engine/plugins/casebuilder/dist/help.md +33 -0
  115. package/comate-engine/plugins/casebuilder/dist/index.js +837 -0
  116. package/comate-engine/plugins/casebuilder/package.json +80 -0
  117. package/comate-engine/plugins/centrino/assets/icon.png +0 -0
  118. package/comate-engine/plugins/centrino/dist/help.md +30 -0
  119. package/comate-engine/plugins/centrino/dist/index.js +1046 -0
  120. package/comate-engine/plugins/centrino/package.json +68 -0
  121. package/comate-engine/plugins/cnap/assets/cnap.png +0 -0
  122. package/comate-engine/plugins/cnap/dist/help.md +11 -0
  123. package/comate-engine/plugins/cnap/dist/index.js +171 -0
  124. package/comate-engine/plugins/cnap/package.json +65 -0
  125. package/comate-engine/plugins/demo-feature/assets/icon.svg +1 -0
  126. package/comate-engine/plugins/demo-feature/dist/help.md +1 -0
  127. package/comate-engine/plugins/demo-feature/dist/index.d.ts +2 -0
  128. package/comate-engine/plugins/demo-feature/dist/index.js +36008 -0
  129. package/comate-engine/plugins/demo-feature/dist/providers/codeQuery.d.ts +12 -0
  130. package/comate-engine/plugins/demo-feature/dist/providers/codeQuery.js +23 -0
  131. package/comate-engine/plugins/demo-feature/dist/providers/codeSearch.d.ts +8 -0
  132. package/comate-engine/plugins/demo-feature/dist/providers/codeSearch.js +26 -0
  133. package/comate-engine/plugins/demo-feature/dist/providers/config.d.ts +13 -0
  134. package/comate-engine/plugins/demo-feature/dist/providers/config.js +25 -0
  135. package/comate-engine/plugins/demo-feature/dist/providers/context.d.ts +10 -0
  136. package/comate-engine/plugins/demo-feature/dist/providers/context.js +49 -0
  137. package/comate-engine/plugins/demo-feature/dist/providers/debugAgent.d.ts +8 -0
  138. package/comate-engine/plugins/demo-feature/dist/providers/debugAgent.js +65 -0
  139. package/comate-engine/plugins/demo-feature/dist/providers/explainCode.d.ts +9 -0
  140. package/comate-engine/plugins/demo-feature/dist/providers/explainCode.js +24 -0
  141. package/comate-engine/plugins/demo-feature/dist/providers/fallback.d.ts +5 -0
  142. package/comate-engine/plugins/demo-feature/dist/providers/fallback.js +23 -0
  143. package/comate-engine/plugins/demo-feature/dist/providers/file.d.ts +13 -0
  144. package/comate-engine/plugins/demo-feature/dist/providers/file.js +36 -0
  145. package/comate-engine/plugins/demo-feature/dist/providers/help.d.ts +8 -0
  146. package/comate-engine/plugins/demo-feature/dist/providers/help.js +19 -0
  147. package/comate-engine/plugins/demo-feature/dist/providers/information.d.ts +13 -0
  148. package/comate-engine/plugins/demo-feature/dist/providers/information.js +23 -0
  149. package/comate-engine/plugins/demo-feature/dist/providers/knowledge.d.ts +15 -0
  150. package/comate-engine/plugins/demo-feature/dist/providers/knowledge.js +71 -0
  151. package/comate-engine/plugins/demo-feature/dist/providers/log.d.ts +12 -0
  152. package/comate-engine/plugins/demo-feature/dist/providers/log.js +21 -0
  153. package/comate-engine/plugins/demo-feature/dist/providers/onlyCode.d.ts +8 -0
  154. package/comate-engine/plugins/demo-feature/dist/providers/onlyCode.js +23 -0
  155. package/comate-engine/plugins/demo-feature/dist/providers/pluginConfig.d.ts +8 -0
  156. package/comate-engine/plugins/demo-feature/dist/providers/pluginConfig.js +47 -0
  157. package/comate-engine/plugins/demo-feature/dist/providers/prompt.d.ts +7 -0
  158. package/comate-engine/plugins/demo-feature/dist/providers/prompt.js +7 -0
  159. package/comate-engine/plugins/demo-feature/dist/providers/ragProvider.d.ts +8 -0
  160. package/comate-engine/plugins/demo-feature/dist/providers/ragProvider.js +17 -0
  161. package/comate-engine/plugins/demo-feature/dist/providers/render.d.ts +8 -0
  162. package/comate-engine/plugins/demo-feature/dist/providers/render.js +75 -0
  163. package/comate-engine/plugins/demo-feature/dist/providers/renderJsx.d.ts +10 -0
  164. package/comate-engine/plugins/demo-feature/dist/providers/renderJsx.js +173 -0
  165. package/comate-engine/plugins/demo-feature/dist/providers/section.d.ts +8 -0
  166. package/comate-engine/plugins/demo-feature/dist/providers/section.js +136 -0
  167. package/comate-engine/plugins/demo-feature/dist/providers/selectedKnowledge.d.ts +12 -0
  168. package/comate-engine/plugins/demo-feature/dist/providers/selectedKnowledge.js +17 -0
  169. package/comate-engine/plugins/demo-feature/dist/providers/streaming.d.ts +8 -0
  170. package/comate-engine/plugins/demo-feature/dist/providers/streaming.js +29 -0
  171. package/comate-engine/plugins/demo-feature/dist/providers/userDetail.d.ts +8 -0
  172. package/comate-engine/plugins/demo-feature/dist/providers/userDetail.js +28 -0
  173. package/comate-engine/plugins/demo-feature/package.json +214 -0
  174. package/comate-engine/plugins/demo-timer/assets/icon.svg +2 -0
  175. package/comate-engine/plugins/demo-timer/dist/index.js +463 -0
  176. package/comate-engine/plugins/demo-timer/package.json +73 -0
  177. package/comate-engine/plugins/dev-tools/assets/icon.png +0 -0
  178. package/comate-engine/plugins/dev-tools/dist/help.md +18 -0
  179. package/comate-engine/plugins/dev-tools/dist/index.js +166160 -0
  180. package/comate-engine/plugins/dev-tools/package.json +95 -0
  181. package/comate-engine/plugins/devaux/assets/icon.svg +1 -0
  182. package/comate-engine/plugins/devaux/dist/help.md +41 -0
  183. package/comate-engine/plugins/devaux/dist/index.js +73829 -0
  184. package/comate-engine/plugins/devaux/dist/static/tree-sitter-cpp.wasm +0 -0
  185. package/comate-engine/plugins/devaux/dist/static/tree-sitter-go.wasm +0 -0
  186. package/comate-engine/plugins/devaux/dist/static/tree-sitter.wasm +0 -0
  187. package/comate-engine/plugins/devaux/dist/tree-sitter.wasm +0 -0
  188. package/comate-engine/plugins/devaux/package.json +83 -0
  189. package/comate-engine/plugins/f2c/assets/icon.svg +11 -0
  190. package/comate-engine/plugins/f2c/dist/help.md +13 -0
  191. package/comate-engine/plugins/f2c/dist/index.js +64551 -0
  192. package/comate-engine/plugins/f2c/package.json +56 -0
  193. package/comate-engine/plugins/fcnap/assets/icon.png +0 -0
  194. package/comate-engine/plugins/fcnap/dist/help.md +9 -0
  195. package/comate-engine/plugins/fcnap/dist/index.js +105 -0
  196. package/comate-engine/plugins/fcnap/package.json +50 -0
  197. package/comate-engine/plugins/front-end-skills/assets/icon.svg +1 -0
  198. package/comate-engine/plugins/front-end-skills/dist/help.md +17 -0
  199. package/comate-engine/plugins/front-end-skills/dist/index.js +8172 -0
  200. package/comate-engine/plugins/front-end-skills/package.json +79 -0
  201. package/comate-engine/plugins/gdp/assets/icon.png +0 -0
  202. package/comate-engine/plugins/gdp/dist/help.md +11 -0
  203. package/comate-engine/plugins/gdp/dist/index.js +53065 -0
  204. package/comate-engine/plugins/gdp/package.json +79 -0
  205. package/comate-engine/plugins/git/assets/git.svg +1 -0
  206. package/comate-engine/plugins/git/assets/icon.svg +1 -0
  207. package/comate-engine/plugins/git/dist/help.md +7 -0
  208. package/comate-engine/plugins/git/dist/index.js +32675 -0
  209. package/comate-engine/plugins/git/package.json +91 -0
  210. package/comate-engine/plugins/harmonyos/assets/harmonyos.png +0 -0
  211. package/comate-engine/plugins/harmonyos/dist/index.js +78 -0
  212. package/comate-engine/plugins/harmonyos/package.json +37 -0
  213. package/comate-engine/plugins/iapi/assets/icon.png +0 -0
  214. package/comate-engine/plugins/iapi/dist/help.md +13 -0
  215. package/comate-engine/plugins/iapi/dist/index.js +458 -0
  216. package/comate-engine/plugins/iapi/dist/static/lang/tree-sitter-go.wasm +0 -0
  217. package/comate-engine/plugins/iapi/dist/static/lang/tree-sitter-java.wasm +0 -0
  218. package/comate-engine/plugins/iapi/dist/static/tree-sitter-go.wasm +0 -0
  219. package/comate-engine/plugins/iapi/dist/static/tree-sitter-java.wasm +0 -0
  220. package/comate-engine/plugins/iapi/dist/tree-sitter.wasm +0 -0
  221. package/comate-engine/plugins/iapi/package.json +102 -0
  222. package/comate-engine/plugins/icafe/assets/icafe.svg +1 -0
  223. package/comate-engine/plugins/icafe/dist/help.md +5 -0
  224. package/comate-engine/plugins/icafe/dist/index.js +885 -0
  225. package/comate-engine/plugins/icafe/package.json +74 -0
  226. package/comate-engine/plugins/ievalue/assets/iEValue.svg +10 -0
  227. package/comate-engine/plugins/ievalue/dist/index.js +2920 -0
  228. package/comate-engine/plugins/ievalue/package.json +88 -0
  229. package/comate-engine/plugins/ipipe/assets/iPipePlugin.png +0 -0
  230. package/comate-engine/plugins/ipipe/dist/help.md +15 -0
  231. package/comate-engine/plugins/ipipe/dist/index.js +7264 -0
  232. package/comate-engine/plugins/ipipe/package.json +62 -0
  233. package/comate-engine/plugins/jarvis/assets/icon.svg +1 -0
  234. package/comate-engine/plugins/jarvis/dist/help.md +17 -0
  235. package/comate-engine/plugins/jarvis/dist/index.js +140416 -0
  236. package/comate-engine/plugins/jarvis/package.json +93 -0
  237. package/comate-engine/plugins/mapsearch/assets/mapsearchicon.png +0 -0
  238. package/comate-engine/plugins/mapsearch/dist/help.md +4 -0
  239. package/comate-engine/plugins/mapsearch/dist/index.js +145 -0
  240. package/comate-engine/plugins/mapsearch/package.json +53 -0
  241. package/comate-engine/plugins/paddle/assets/icon.png +0 -0
  242. package/comate-engine/plugins/paddle/assets/paconvert-3.0.1-py3-none-any.whl +0 -0
  243. package/comate-engine/plugins/paddle/dist/help.md +31 -0
  244. package/comate-engine/plugins/paddle/dist/index.js +1011 -0
  245. package/comate-engine/plugins/paddle/package.json +129 -0
  246. package/comate-engine/plugins/robot/assets/Robot.png +0 -0
  247. package/comate-engine/plugins/robot/dist/index.js +288 -0
  248. package/comate-engine/plugins/robot/package.json +67 -0
  249. package/comate-engine/plugins/security/assets/comate.png +0 -0
  250. package/comate-engine/plugins/security/dist/index.js +18393 -0
  251. package/comate-engine/plugins/security/package.json +82 -0
  252. package/comate-engine/plugins/smartapp/assets/icon.png +0 -0
  253. package/comate-engine/plugins/smartapp/dist/help.md +4 -0
  254. package/comate-engine/plugins/smartapp/dist/index.js +113 -0
  255. package/comate-engine/plugins/smartapp/package.json +54 -0
  256. package/comate-engine/plugins/springer/assets/icon.png +0 -0
  257. package/comate-engine/plugins/springer/dist/help.md +4 -0
  258. package/comate-engine/plugins/springer/dist/index.js +94525 -0
  259. package/comate-engine/plugins/springer/package.json +71 -0
  260. package/comate-engine/plugins/testmate/assets/icon.svg +1 -0
  261. package/comate-engine/plugins/testmate/dist/help.md +62 -0
  262. package/comate-engine/plugins/testmate/dist/index.js +21483 -0
  263. package/comate-engine/plugins/testmate/package.json +85 -0
  264. package/comate-engine/plugins/tor/assets/TorPlugin.png +0 -0
  265. package/comate-engine/plugins/tor/dist/help.md +22 -0
  266. package/comate-engine/plugins/tor/dist/index.js +807 -0
  267. package/comate-engine/plugins/tor/package.json +99 -0
  268. package/comate-engine/plugins/weiyun/assets/icon.png +0 -0
  269. package/comate-engine/plugins/weiyun/dist/help.md +11 -0
  270. package/comate-engine/plugins/weiyun/dist/index.js +100491 -0
  271. package/comate-engine/plugins/weiyun/package.json +55 -0
  272. package/comate-engine/plugins/wenku/assets/icon.svg +1 -0
  273. package/comate-engine/plugins/wenku/dist/index.js +249 -0
  274. package/comate-engine/plugins/wenku/package.json +55 -0
  275. package/comate-engine/plugins/workcard/assets/favicon.png +0 -0
  276. package/comate-engine/plugins/workcard/dist/help.md +30 -0
  277. package/comate-engine/plugins/workcard/dist/index.js +490 -0
  278. package/comate-engine/plugins/workcard/package.json +95 -0
  279. package/comate-engine/plugins/xiaomi-aiot/assets/icon.png +0 -0
  280. package/comate-engine/plugins/xiaomi-aiot/dist/help.md +6 -0
  281. package/comate-engine/plugins/xiaomi-aiot/dist/index.js +37466 -0
  282. package/comate-engine/plugins/xiaomi-aiot/package.json +63 -0
  283. package/comate-engine/server.d.ts +3 -0
  284. package/comate-engine/server.js +474 -0
  285. package/dist/bundle/index.js +29 -58174
  286. package/package.json +2 -1
package/README.md ADDED
@@ -0,0 +1,98 @@
1
+ # Zulu CLI
2
+
3
+ ## 环境
4
+ * nodejs >= 22
5
+ * ripgrep >= 12 需要手动安装该库
6
+
7
+ ## 安装
8
+ ### 安装 ripgrep
9
+ 以下是在不同操作系统和包管理器中安装`ripgrep`的常见命令:
10
+ #### MacOS
11
+ ```shell
12
+ brew install ripgrep
13
+ ```
14
+ #### Linux
15
+ ##### Ubuntu/Debian
16
+ ```shell
17
+ sudo apt update
18
+ sudo apt install ripgrep
19
+ ```
20
+ ##### CentOS
21
+ ```shell
22
+ sudo yum install epel-release
23
+ sudo yum install ripgrep
24
+ ```
25
+ #### Windows
26
+ ```shell
27
+ winget install BurntSushi.ripgrep.MSVC
28
+ ```
29
+ #### 验证安装
30
+ 安装完成后,可以使用以下命令验证:
31
+ ```shell
32
+ rg --version
33
+ ```
34
+ 选择适合你操作系统和包管理器的命令即可。推荐使用系统自带的包管理器,这样更容易管理和更新。
35
+
36
+ ### 安装 Zulu-CLI
37
+ ```shell
38
+ npm install -g @comate/zulu
39
+ ```
40
+
41
+ ## 网络
42
+ 默认请求`https://comate.baidu.com`,如果环境未知,请执行`zulu --ping`测试连通性,如果不通:
43
+
44
+ * 厂内用户可以使用export HTTP_HOST="https://comate-saas-proxy.now.baidu-int.com"修改默认请求的域名
45
+ * 私有服务或者其他特殊场景可以设置export HTTP_HOST="xxxx"其他zulu支持的域名
46
+
47
+ ## 使用
48
+ ```shell
49
+ zulu run --query="你好" --license=xxxx
50
+ ```
51
+ 命令执行后会以`STDOUT`形式返回模型完整的JSON数据日志,文件操作直接应用到文件
52
+
53
+ ## Command
54
+
55
+ | command | 是否必须 | option | 描述 |
56
+ |:---|:---|:---|:---|
57
+ | run | 是 | --license | license的值 |
58
+ | run | 是 | --query | 问题的内容 |
59
+ | run | | --cwd | 工作路径,默认执行时所在地址 |
60
+ | run | | --ripgrep | ripgrep的绝对路径 |
61
+ | | | --ping | 测试网络连通性 |
62
+ | | | --help | 帮助 |
63
+ | | | --version | 版本号 |
64
+
65
+ ## Env
66
+
67
+ | key | value | 描述 |
68
+ |:---|:---|:---|
69
+ | HTTP_PROXY | string | 设置代理 |
70
+ | http_proxy | string | 设置代理 |
71
+ | HTTPS_PROXY | string | 设置代理 |
72
+ | https_proxy | string | 设置代理 |
73
+ | HTTP_HOST | string | 设置服务地址,默认是 https://comate.baidu.com |
74
+ | DEBUG | boolean | 打开调试日志 |
75
+
76
+
77
+ ## 调试
78
+ * 使用环境变量`DEBUG=true`,`STDOUT`会显示debug级别的日志
79
+ * `~/.comate-engine/store`中获取对应轮次对话的详细日志
80
+
81
+ ## 最佳实践
82
+ * 请注意,`Zulu CLI`使用`Turbo`模式,黑名单是空,这也意味着`Zulu`会默认执行所以指令,请注意安全风险
83
+ * 目前版本只支持单轮次对话,请尽量准确描述任务
84
+
85
+ ## Dockerfile
86
+ ```dockerfile
87
+ FROM node:current-alpine3.22
88
+
89
+ # 安装 ripgrep
90
+ RUN apk add --no-cache ripgrep
91
+
92
+ # 全局安装 @comate/zulu-cli
93
+ RUN npm install -g @comate/zulu
94
+
95
+ WORKDIR /app
96
+
97
+ CMD ["zulu", "--help"]
98
+ ```
@@ -0,0 +1,10 @@
1
+ // ================ polyfill start ================
2
+ import { compare } from 'compare-versions';
3
+ if (compare(process.version, '18.0.0', '<')) {
4
+ await import('web-streams-polyfill/polyfill');
5
+ }
6
+ // ================= polyfill end =================
7
+
8
+ // 通过await import延迟加载,使得polyfill在主模块之前执行
9
+ const {run} = await import('../server.js');
10
+ run();
@@ -0,0 +1 @@
1
+ import e from"util";import t from"path";import n from"os";import o from"crypto";import r from"net";import i from"url";import s from"fs";import a from"child_process";var c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var u={},l={};function d(e){return"string"==typeof e||e instanceof String}function f(e){return"function"==typeof e}function h(e){return Array.isArray(e)}Object.defineProperty(l,"__esModule",{value:!0}),l.thenable=l.typedArray=l.stringArray=l.array=l.func=l.error=l.number=l.string=l.boolean=void 0,l.boolean=function(e){return!0===e||!1===e},l.string=d,l.number=function(e){return"number"==typeof e||e instanceof Number},l.error=function(e){return e instanceof Error},l.func=f,l.array=h,l.stringArray=function(e){return h(e)&&e.every((e=>d(e)))},l.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},l.thenable=function(e){return e&&f(e.then)};var g={},p={},m={},y={},v={};let b;function R(){if(void 0===b)throw new Error("No runtime abstraction layer installed");return b}Object.defineProperty(v,"__esModule",{value:!0}),(R||(R={})).install=function(e){if(void 0===e)throw new Error("No runtime abstraction layer provided");b=e},v.default=R;var D,T={};D=T,Object.defineProperty(D,"__esModule",{value:!0}),D.Disposable=void 0,(D.Disposable||(D.Disposable={})).create=function(e){return{dispose:e}};var _={};Object.defineProperty(_,"__esModule",{value:!0}),_.AbstractMessageBuffer=void 0,_.AbstractMessageBuffer=class{constructor(e="utf-8"){this._encoding=e,this._chunks=[],this._totalLength=0}get encoding(){return this._encoding}append(e){const t="string"==typeof e?this.fromString(e,this._encoding):e;this._chunks.push(t),this._totalLength+=t.byteLength}tryReadHeaders(){if(0===this._chunks.length)return;let e=0,t=0,n=0,o=0;e:for(;t<this._chunks.length;){const r=this._chunks[t];for(n=0;n<r.length;){switch(r[n]){case 13:switch(e){case 0:e=1;break;case 2:e=3;break;default:e=0}break;case 10:switch(e){case 1:e=2;break;case 3:e=4,n++;break e;default:e=0}break;default:e=0}n++}o+=r.byteLength,t++}if(4!==e)return;const r=this._read(o+n),i=new Map,s=this.toString(r,"ascii").split("\r\n");if(s.length<2)return i;for(let e=0;e<s.length-2;e++){const t=s[e],n=t.indexOf(":");if(-1===n)throw new Error("Message header must separate key and value using :");const o=t.substr(0,n),r=t.substr(n+1).trim();i.set(o,r)}return i}tryReadBody(e){if(!(this._totalLength<e))return this._read(e)}get numberOfBytes(){return this._totalLength}_read(e){if(0===e)return this.emptyBuffer();if(e>this._totalLength)throw new Error("Cannot read so many bytes!");if(this._chunks[0].byteLength===e){const t=this._chunks[0];return this._chunks.shift(),this._totalLength-=e,this.asNative(t)}if(this._chunks[0].byteLength>e){const t=this._chunks[0],n=this.asNative(t,e);return this._chunks[0]=t.slice(e),this._totalLength-=e,n}const t=this.allocNative(e);let n=0;for(;e>0;){const o=this._chunks[0];if(o.byteLength>e){const r=o.slice(0,e);t.set(r,n),n+=e,this._chunks[0]=o.slice(e),this._totalLength-=e,e-=e}else t.set(o,n),n+=o.byteLength,this._chunks.shift(),this._totalLength-=o.byteLength,e-=o.byteLength}return t}},Object.defineProperty(y,"__esModule",{value:!0});const k=v,C=e,w=T,P=_;class q extends P.AbstractMessageBuffer{constructor(e="utf-8"){super(e)}emptyBuffer(){return q.emptyBuffer}fromString(e,t){return Buffer.from(e,t)}toString(e,t){return e instanceof Buffer?e.toString(t):new C.TextDecoder(t).decode(e)}asNative(e,t){return void 0===t?e instanceof Buffer?e:Buffer.from(e):e instanceof Buffer?e.slice(0,t):Buffer.from(e,0,t)}allocNative(e){return Buffer.allocUnsafe(e)}}q.emptyBuffer=Buffer.allocUnsafe(0);class S{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),w.Disposable.create((()=>this.stream.off("close",e)))}onError(e){return this.stream.on("error",e),w.Disposable.create((()=>this.stream.off("error",e)))}onEnd(e){return this.stream.on("end",e),w.Disposable.create((()=>this.stream.off("end",e)))}onData(e){return this.stream.on("data",e),w.Disposable.create((()=>this.stream.off("data",e)))}}class N{constructor(e){this.stream=e}onClose(e){return this.stream.on("close",e),w.Disposable.create((()=>this.stream.off("close",e)))}onError(e){return this.stream.on("error",e),w.Disposable.create((()=>this.stream.off("error",e)))}onEnd(e){return this.stream.on("end",e),w.Disposable.create((()=>this.stream.off("end",e)))}write(e,t){return new Promise(((n,o)=>{const r=e=>{null==e?n():o(e)};"string"==typeof e?this.stream.write(e,t,r):this.stream.write(e,r)}))}end(){this.stream.end()}}const x=Object.freeze({messageBuffer:Object.freeze({create:e=>new q(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{try{return Promise.resolve(Buffer.from(JSON.stringify(e,void 0,0),t.charset))}catch(e){return Promise.reject(e)}}}),decoder:Object.freeze({name:"application/json",decode:(e,t)=>{try{return e instanceof Buffer?Promise.resolve(JSON.parse(e.toString(t.charset))):Promise.resolve(JSON.parse(new C.TextDecoder(t.charset).decode(e)))}catch(e){return Promise.reject(e)}}})}),stream:Object.freeze({asReadableStream:e=>new S(e),asWritableStream:e=>new N(e)}),console:console,timer:Object.freeze({setTimeout(e,t,...n){const o=setTimeout(e,t,...n);return{dispose:()=>clearTimeout(o)}},setImmediate(e,...t){const n=setImmediate(e,...t);return{dispose:()=>clearImmediate(n)}},setInterval(e,t,...n){const o=setInterval(e,t,...n);return{dispose:()=>clearInterval(o)}}})});function M(){return x}(M||(M={})).install=function(){k.default.install(x)},y.default=M;var O,E,j={},F={},I={};function W(){if(O)return I;function e(e){return"string"==typeof e||e instanceof String}function t(e){return Array.isArray(e)}return O=1,Object.defineProperty(I,"__esModule",{value:!0}),I.stringArray=I.array=I.func=I.error=I.number=I.string=I.boolean=void 0,I.boolean=function(e){return!0===e||!1===e},I.string=e,I.number=function(e){return"number"==typeof e||e instanceof Number},I.error=function(e){return e instanceof Error},I.func=function(e){return"function"==typeof e},I.array=t,I.stringArray=function(n){return t(n)&&n.every((t=>e(t)))},I}function L(){return E||(E=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Message=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType=e.RequestType0=e.AbstractMessageSignature=e.ParameterStructures=e.ResponseError=e.ErrorCodes=void 0;const t=W();var n,o;!function(e){e.ParseError=-32700,e.InvalidRequest=-32600,e.MethodNotFound=-32601,e.InvalidParams=-32602,e.InternalError=-32603,e.jsonrpcReservedErrorRangeStart=-32099,e.serverErrorStart=-32099,e.MessageWriteError=-32099,e.MessageReadError=-32098,e.PendingResponseRejected=-32097,e.ConnectionInactive=-32096,e.ServerNotInitialized=-32002,e.UnknownErrorCode=-32001,e.jsonrpcReservedErrorRangeEnd=-32e3,e.serverErrorEnd=-32e3}(n=e.ErrorCodes||(e.ErrorCodes={}));class r extends Error{constructor(e,o,i){super(o),this.code=t.number(e)?e:n.UnknownErrorCode,this.data=i,Object.setPrototypeOf(this,r.prototype)}toJson(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),e}}e.ResponseError=r;class i{constructor(e){this.kind=e}static is(e){return e===i.auto||e===i.byName||e===i.byPosition}toString(){return this.kind}}e.ParameterStructures=i,i.auto=new i("auto"),i.byPosition=new i("byPosition"),i.byName=new i("byName");class s{constructor(e,t){this.method=e,this.numberOfParams=t}get parameterStructures(){return i.auto}}e.AbstractMessageSignature=s,e.RequestType0=class extends s{constructor(e){super(e,0)}},e.RequestType=class extends s{constructor(e,t=i.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.RequestType1=class extends s{constructor(e,t=i.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.RequestType2=class extends s{constructor(e){super(e,2)}},e.RequestType3=class extends s{constructor(e){super(e,3)}},e.RequestType4=class extends s{constructor(e){super(e,4)}},e.RequestType5=class extends s{constructor(e){super(e,5)}},e.RequestType6=class extends s{constructor(e){super(e,6)}},e.RequestType7=class extends s{constructor(e){super(e,7)}},e.RequestType8=class extends s{constructor(e){super(e,8)}},e.RequestType9=class extends s{constructor(e){super(e,9)}},e.NotificationType=class extends s{constructor(e,t=i.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.NotificationType0=class extends s{constructor(e){super(e,0)}},e.NotificationType1=class extends s{constructor(e,t=i.auto){super(e,1),this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}},e.NotificationType2=class extends s{constructor(e){super(e,2)}},e.NotificationType3=class extends s{constructor(e){super(e,3)}},e.NotificationType4=class extends s{constructor(e){super(e,4)}},e.NotificationType5=class extends s{constructor(e){super(e,5)}},e.NotificationType6=class extends s{constructor(e){super(e,6)}},e.NotificationType7=class extends s{constructor(e){super(e,7)}},e.NotificationType8=class extends s{constructor(e){super(e,8)}},e.NotificationType9=class extends s{constructor(e){super(e,9)}},(o=e.Message||(e.Message={})).isRequest=function(e){const n=e;return n&&t.string(n.method)&&(t.string(n.id)||t.number(n.id))},o.isNotification=function(e){const n=e;return n&&t.string(n.method)&&void 0===e.id},o.isResponse=function(e){const n=e;return n&&(void 0!==n.result||!!n.error)&&(t.string(n.id)||t.number(n.id)||null===n.id)}}(F)),F}var A,H={};function U(){return A||(A=1,function(e){var t,n;Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.Touch=void 0,function(e){e.None=0,e.First=1,e.AsOld=e.First,e.Last=2,e.AsNew=e.Last}(n=e.Touch||(e.Touch={}));class o{constructor(){this[t]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=n.None){const o=this._map.get(e);if(o)return t!==n.None&&this.touch(o,t),o.value}set(e,t,o=n.None){let r=this._map.get(e);if(r)r.value=t,o!==n.None&&this.touch(r,o);else{switch(r={key:e,value:t,next:void 0,previous:void 0},o){case n.None:this.addItemLast(r);break;case n.First:this.addItemFirst(r);break;case n.Last:default:this.addItemLast(r)}this._map.set(e,r),this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){const n=this._state;let o=this._head;for(;o;){if(t?e.bind(t)(o.value,o.key,this):e(o.value,o.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");o=o.next}}keys(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.key,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}values(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:t.value,done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}entries(){const e=this._state;let t=this._head;const n={[Symbol.iterator]:()=>n,next:()=>{if(this._state!==e)throw new Error("LinkedMap got modified during iteration.");if(t){const e={value:[t.key,t.value],done:!1};return t=t.next,e}return{value:void 0,done:!0}}};return n}[(t=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0),this._state++}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e,this._state++}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e,this._state++}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0,this._state++}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(t===n.First||t===n.Last)if(t===n.First){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e,this._state++}else if(t===n.Last){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e,this._state++}}toJSON(){const e=[];return this.forEach(((t,n)=>{e.push([n,t])})),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}e.LinkedMap=o,e.LRUCache=class extends o{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e,t=n.AsNew){return super.get(e,t)}peek(e){return super.get(e,n.None)}set(e,t){return super.set(e,t,n.Last),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}}(H)),H}var z,$={};function K(){return z||(z=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Emitter=e.Event=void 0;const t=v;!function(e){const t={dispose(){}};e.None=function(){return t}}(e.Event||(e.Event={}));class n{add(e,t=null,n){this._callbacks||(this._callbacks=[],this._contexts=[]),this._callbacks.push(e),this._contexts.push(t),Array.isArray(n)&&n.push({dispose:()=>this.remove(e,t)})}remove(e,t=null){if(!this._callbacks)return;let n=!1;for(let o=0,r=this._callbacks.length;o<r;o++)if(this._callbacks[o]===e){if(this._contexts[o]===t)return this._callbacks.splice(o,1),void this._contexts.splice(o,1);n=!0}if(n)throw new Error("When adding a listener with a context, you should remove it with the same context")}invoke(...e){if(!this._callbacks)return[];const n=[],o=this._callbacks.slice(0),r=this._contexts.slice(0);for(let i=0,s=o.length;i<s;i++)try{n.push(o[i].apply(r[i],e))}catch(e){(0,t.default)().console.error(e)}return n}isEmpty(){return!this._callbacks||0===this._callbacks.length}dispose(){this._callbacks=void 0,this._contexts=void 0}}class o{constructor(e){this._options=e}get event(){return this._event||(this._event=(e,t,r)=>{this._callbacks||(this._callbacks=new n),this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()&&this._options.onFirstListenerAdd(this),this._callbacks.add(e,t);const i={dispose:()=>{this._callbacks&&(this._callbacks.remove(e,t),i.dispose=o._noop,this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()&&this._options.onLastListenerRemove(this))}};return Array.isArray(r)&&r.push(i),i}),this._event}fire(e){this._callbacks&&this._callbacks.invoke.call(this._callbacks,e)}dispose(){this._callbacks&&(this._callbacks.dispose(),this._callbacks=void 0)}}e.Emitter=o,o._noop=function(){}}($)),$}var V,B={};function J(){return V||(V=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;const t=v,n=W(),o=K();var r;!function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:o.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:o.Event.None}),e.is=function(t){const o=t;return o&&(o===e.None||o===e.Cancelled||n.boolean(o.isCancellationRequested)&&!!o.onCancellationRequested)}}(r=e.CancellationToken||(e.CancellationToken={}));const i=Object.freeze((function(e,n){const o=(0,t.default)().timer.setTimeout(e.bind(n),0);return{dispose(){o.dispose()}}}));class s{constructor(){this._isCancelled=!1}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?i:(this._emitter||(this._emitter=new o.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)}}e.CancellationTokenSource=class{get token(){return this._token||(this._token=new s),this._token}cancel(){this._token?this._token.cancel():this._token=r.Cancelled}dispose(){this._token?this._token instanceof s&&this._token.dispose():this._token=r.None}}}(B)),B}var G,X,Y,Q={},Z={},ee={};var te,ne,oe={};function re(){return te||(te=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createMessageConnection=e.ConnectionOptions=e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.ConnectionStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=e.TraceFormat=e.TraceValues=e.Trace=e.NullLogger=e.ProgressType=e.ProgressToken=void 0;const t=v,n=W(),o=L(),r=U(),i=K(),s=J();var a,c,u,l,d,f,h,g,p,m,y,b,R,D,T;!function(e){e.type=new o.NotificationType("$/cancelRequest")}(a||(a={})),function(e){e.is=function(e){return"string"==typeof e||"number"==typeof e}}(c=e.ProgressToken||(e.ProgressToken={})),function(e){e.type=new o.NotificationType("$/progress")}(u||(u={})),e.ProgressType=class{constructor(){}},function(e){e.is=function(e){return n.func(e)}}(l||(l={})),e.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}}),function(e){e[e.Off=0]="Off",e[e.Messages=1]="Messages",e[e.Compact=2]="Compact",e[e.Verbose=3]="Verbose"}(d=e.Trace||(e.Trace={})),(f=e.TraceValues||(e.TraceValues={})).Off="off",f.Messages="messages",f.Compact="compact",f.Verbose="verbose",function(e){e.fromString=function(t){if(!n.string(t))return e.Off;switch(t=t.toLowerCase()){case"off":default:return e.Off;case"messages":return e.Messages;case"compact":return e.Compact;case"verbose":return e.Verbose}},e.toString=function(t){switch(t){case e.Off:return"off";case e.Messages:return"messages";case e.Compact:return"compact";case e.Verbose:return"verbose";default:return"off"}}}(d=e.Trace||(e.Trace={})),function(e){e.Text="text",e.JSON="json"}(e.TraceFormat||(e.TraceFormat={})),function(e){e.fromString=function(t){return n.string(t)&&"json"===(t=t.toLowerCase())?e.JSON:e.Text}}(h=e.TraceFormat||(e.TraceFormat={})),function(e){e.type=new o.NotificationType("$/setTrace")}(g=e.SetTraceNotification||(e.SetTraceNotification={})),function(e){e.type=new o.NotificationType("$/logTrace")}(p=e.LogTraceNotification||(e.LogTraceNotification={})),function(e){e[e.Closed=1]="Closed",e[e.Disposed=2]="Disposed",e[e.AlreadyListening=3]="AlreadyListening"}(m=e.ConnectionErrors||(e.ConnectionErrors={}));class _ extends Error{constructor(e,t){super(t),this.code=e,Object.setPrototypeOf(this,_.prototype)}}e.ConnectionError=_,function(e){e.is=function(e){const t=e;return t&&n.func(t.cancelUndispatched)}}(y=e.ConnectionStrategy||(e.ConnectionStrategy={})),function(e){e.Message=Object.freeze({createCancellationTokenSource:e=>new s.CancellationTokenSource}),e.is=function(e){const t=e;return t&&n.func(t.createCancellationTokenSource)}}(b=e.CancellationReceiverStrategy||(e.CancellationReceiverStrategy={})),function(e){e.Message=Object.freeze({sendCancellation:(e,t)=>e.sendNotification(a.type,{id:t}),cleanup(e){}}),e.is=function(e){const t=e;return t&&n.func(t.sendCancellation)&&n.func(t.cleanup)}}(R=e.CancellationSenderStrategy||(e.CancellationSenderStrategy={})),function(e){e.Message=Object.freeze({receiver:b.Message,sender:R.Message}),e.is=function(e){const t=e;return t&&b.is(t.receiver)&&R.is(t.sender)}}(D=e.CancellationStrategy||(e.CancellationStrategy={})),(e.ConnectionOptions||(e.ConnectionOptions={})).is=function(e){const t=e;return t&&(D.is(t.cancellationStrategy)||y.is(t.connectionStrategy))},function(e){e[e.New=1]="New",e[e.Listening=2]="Listening",e[e.Closed=3]="Closed",e[e.Disposed=4]="Disposed"}(T||(T={})),e.createMessageConnection=function(f,y,v,b){const R=void 0!==v?v:e.NullLogger;let k=0,C=0,w=0;const P="2.0";let q;const S=new Map;let N;const x=new Map,M=new Map;let O,E,j=new r.LinkedMap,F=new Map,I=new Set,W=new Map,L=d.Off,A=h.Text,H=T.New;const U=new i.Emitter,z=new i.Emitter,$=new i.Emitter,K=new i.Emitter,V=new i.Emitter,B=b&&b.cancellationStrategy?b.cancellationStrategy:D.Message;function J(e){if(null===e)throw new Error("Can't send requests with id null since the response can't be correlated.");return"req-"+e.toString()}function G(e){}function X(){return H===T.Listening}function Y(){return H===T.Closed}function Q(){return H===T.Disposed}function Z(){H!==T.New&&H!==T.Listening||(H=T.Closed,z.fire(void 0))}function ee(){O||0===j.size||(O=(0,t.default)().timer.setImmediate((()=>{O=void 0,function(){if(0===j.size)return;const e=j.shift();try{o.Message.isRequest(e)?function(e){if(Q())return;function t(t,n,r){const i={jsonrpc:P,id:e.id};t instanceof o.ResponseError?i.error=t.toJson():i.result=void 0===t?null:t,oe(i,n,r),y.write(i).catch((()=>R.error("Sending response failed.")))}function r(t,n,o){const r={jsonrpc:P,id:e.id,error:t.toJson()};oe(r,n,o),y.write(r).catch((()=>R.error("Sending response failed.")))}function i(t,n,o){void 0===t&&(t=null);const r={jsonrpc:P,id:e.id,result:t};oe(r,n,o),y.write(r).catch((()=>R.error("Sending response failed.")))}!function(e){if(L!==d.Off&&E)if(A===h.Text){let t;L!==d.Verbose&&L!==d.Compact||!e.params||(t=`Params: ${ne(e.params)}\n\n`),E.log(`Received request '${e.method} - (${e.id})'.`,t)}else ie("receive-request",e)}(e);const s=S.get(e.method);let a,c;s&&(a=s.type,c=s.handler);const u=Date.now();if(c||q){const s=e.id??String(Date.now()),l=B.receiver.createCancellationTokenSource(s);null!==e.id&&I.has(e.id)&&l.cancel(),null!==e.id&&W.set(s,l);try{let i;if(c)if(void 0===e.params){if(void 0!==a&&0!==a.numberOfParams)return void r(new o.ResponseError(o.ErrorCodes.InvalidParams,`Request ${e.method} defines ${a.numberOfParams} params but received none.`),e.method,u);i=c(l.token)}else if(Array.isArray(e.params)){if(void 0!==a&&a.parameterStructures===o.ParameterStructures.byName)return void r(new o.ResponseError(o.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,u);i=c(...e.params,l.token)}else{if(void 0!==a&&a.parameterStructures===o.ParameterStructures.byPosition)return void r(new o.ResponseError(o.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,u);i=c(e.params,l.token)}else q&&(i=q(e.method,e.params,l.token));const d=i;i?d.then?d.then((n=>{W.delete(s),t(n,e.method,u)}),(t=>{W.delete(s),t instanceof o.ResponseError?r(t,e.method,u):t&&n.string(t.message)?r(new o.ResponseError(o.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,u):r(new o.ResponseError(o.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,u)})):(W.delete(s),t(i,e.method,u)):(W.delete(s),function(t,n,o){void 0===t&&(t=null);const r={jsonrpc:P,id:e.id,result:t};oe(r,n,o),y.write(r).catch((()=>R.error("Sending response failed.")))}(i,e.method,u))}catch(i){W.delete(s),i instanceof o.ResponseError?t(i,e.method,u):i&&n.string(i.message)?r(new o.ResponseError(o.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${i.message}`),e.method,u):r(new o.ResponseError(o.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,u)}}else r(new o.ResponseError(o.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,u)}(e):o.Message.isNotification(e)?function(e){if(Q())return;let t,n;if(e.method===a.type.method){const t=e.params.id;return I.delete(t),void re(e)}{const o=x.get(e.method);o&&(n=o.handler,t=o.type)}if(n||N)try{if(re(e),n)if(void 0===e.params)void 0!==t&&0!==t.numberOfParams&&t.parameterStructures!==o.ParameterStructures.byName&&R.error(`Notification ${e.method} defines ${t.numberOfParams} params but received none.`),n();else if(Array.isArray(e.params)){const r=e.params;e.method===u.type.method&&2===r.length&&c.is(r[0])?n({token:r[0],value:r[1]}):(void 0!==t&&(t.parameterStructures===o.ParameterStructures.byName&&R.error(`Notification ${e.method} defines parameters by name but received parameters by position`),t.numberOfParams!==e.params.length&&R.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${r.length} arguments`)),n(...r))}else void 0!==t&&t.parameterStructures===o.ParameterStructures.byPosition&&R.error(`Notification ${e.method} defines parameters by position but received parameters by name`),n(e.params);else N&&N(e.method,e.params)}catch(t){t.message?R.error(`Notification handler '${e.method}' failed with message: ${t.message}`):R.error(`Notification handler '${e.method}' failed unexpectedly.`)}else $.fire(e)}(e):o.Message.isResponse(e)?function(e){if(!Q())if(null===e.id)e.error?R.error(`Received response message without id: Error is: \n${JSON.stringify(e.error,void 0,4)}`):R.error("Received response message without id. No further error information provided.");else{const t=e.id,n=F.get(t);if(function(e,t){if(L!==d.Off&&E)if(A===h.Text){let n;if(L!==d.Verbose&&L!==d.Compact||(e.error&&e.error.data?n=`Error data: ${ne(e.error.data)}\n\n`:e.result?n=`Result: ${ne(e.result)}\n\n`:void 0===e.error&&(n="No result returned.\n\n")),t){const o=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:"";E.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${o}`,n)}else E.log(`Received response ${e.id} without active response promise.`,n)}else ie("receive-response",e)}(e,n),void 0!==n){F.delete(t);try{if(e.error){const t=e.error;n.reject(new o.ResponseError(t.code,t.message,t.data))}else{if(void 0===e.result)throw new Error("Should never happen.");n.resolve(e.result)}}catch(e){e.message?R.error(`Response handler '${n.method}' failed with message: ${e.message}`):R.error(`Response handler '${n.method}' failed unexpectedly.`)}}}}(e):function(e){if(!e)return void R.error("Received empty message.");R.error(`Received message which is neither a response nor a notification message:\n${JSON.stringify(e,null,4)}`);const t=e;if(n.string(t.id)||n.number(t.id)){const e=t.id,n=F.get(e);n&&n.reject(new Error("The received response has neither a result nor an error property."))}}(e)}finally{ee()}}()})))}f.onClose(Z),f.onError((function(e){U.fire([e,void 0,void 0])})),y.onClose(Z),y.onError((function(e){U.fire(e)}));const te=e=>{try{if(o.Message.isNotification(e)&&e.method===a.type.method){const t=e.params.id,n=J(t),r=j.get(n);if(o.Message.isRequest(r)){const o=b?.connectionStrategy,i=o&&o.cancelUndispatched?o.cancelUndispatched(r,G):void 0;if(i&&(void 0!==i.error||void 0!==i.result))return j.delete(n),W.delete(t),i.id=r.id,oe(i,e.method,Date.now()),void y.write(i).catch((()=>R.error("Sending response for canceled message failed.")))}const i=W.get(t);if(void 0!==i)return i.cancel(),void re(e);I.add(t)}!function(e,t){var n;o.Message.isRequest(t)?e.set(J(t.id),t):o.Message.isResponse(t)?e.set(null===(n=t.id)?"res-unknown-"+(++w).toString():"res-"+n.toString(),t):e.set("not-"+(++C).toString(),t)}(j,e)}finally{ee()}};function ne(e){if(null!=e)switch(L){case d.Verbose:return JSON.stringify(e,null,4);case d.Compact:return JSON.stringify(e);default:return}}function oe(e,t,n){if(L!==d.Off&&E)if(A===h.Text){let o;L!==d.Verbose&&L!==d.Compact||(e.error&&e.error.data?o=`Error data: ${ne(e.error.data)}\n\n`:e.result?o=`Result: ${ne(e.result)}\n\n`:void 0===e.error&&(o="No result returned.\n\n")),E.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-n}ms`,o)}else ie("send-response",e)}function re(e){if(L!==d.Off&&E&&e.method!==p.type.method)if(A===h.Text){let t;L!==d.Verbose&&L!==d.Compact||(t=e.params?`Params: ${ne(e.params)}\n\n`:"No parameters provided.\n\n"),E.log(`Received notification '${e.method}'.`,t)}else ie("receive-notification",e)}function ie(e,t){if(!E||L===d.Off)return;const n={isLSPMessage:!0,type:e,message:t,timestamp:Date.now()};E.log(n)}function se(){if(Y())throw new _(m.Closed,"Connection is closed.");if(Q())throw new _(m.Disposed,"Connection is disposed.")}function ae(e){return void 0===e?null:e}function ce(e){return null===e?void 0:e}function ue(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function le(e,t){switch(e){case o.ParameterStructures.auto:return ue(t)?ce(t):[ae(t)];case o.ParameterStructures.byName:if(!ue(t))throw new Error("Received parameters by name but param is not an object literal.");return ce(t);case o.ParameterStructures.byPosition:return[ae(t)];default:throw new Error(`Unknown parameter structure ${e.toString()}`)}}function de(e,t){let n;const o=e.numberOfParams;switch(o){case 0:n=void 0;break;case 1:n=le(e.parameterStructures,t[0]);break;default:n=[];for(let e=0;e<t.length&&e<o;e++)n.push(ae(t[e]));if(t.length<o)for(let e=t.length;e<o;e++)n.push(null)}return n}const fe={sendNotification:(e,...t)=>{let r,i;if(se(),n.string(e)){r=e;const n=t[0];let s=0,a=o.ParameterStructures.auto;o.ParameterStructures.is(n)&&(s=1,a=n);let c=t.length;const u=c-s;switch(u){case 0:i=void 0;break;case 1:i=le(a,t[s]);break;default:if(a===o.ParameterStructures.byName)throw new Error(`Received ${u} parameters for 'by Name' notification parameter structure.`);i=t.slice(s,c).map((e=>ae(e)))}}else{const n=t;r=e.method,i=de(e,n)}const s={jsonrpc:P,method:r,params:i};return function(e){if(L!==d.Off&&E)if(A===h.Text){let t;L!==d.Verbose&&L!==d.Compact||(t=e.params?`Params: ${ne(e.params)}\n\n`:"No parameters provided.\n\n"),E.log(`Sending notification '${e.method}'.`,t)}else ie("send-notification",e)}(s),y.write(s).catch((()=>R.error("Sending notification failed.")))},onNotification:(e,t)=>{let o;return se(),n.func(e)?N=e:t&&(n.string(e)?(o=e,x.set(e,{type:void 0,handler:t})):(o=e.method,x.set(e.method,{type:e,handler:t}))),{dispose:()=>{void 0!==o?x.delete(o):N=void 0}}},onProgress:(e,t,n)=>{if(M.has(t))throw new Error(`Progress handler for token ${t} already registered`);return M.set(t,n),{dispose:()=>{M.delete(t)}}},sendProgress:(e,t,n)=>fe.sendNotification(u.type,{token:t,value:n}),onUnhandledProgress:K.event,sendRequest:(e,...t)=>{let r,i,a;if(se(),function(){if(!X())throw new Error("Call listen() first.")}(),n.string(e)){r=e;const n=t[0],c=t[t.length-1];let u=0,l=o.ParameterStructures.auto;o.ParameterStructures.is(n)&&(u=1,l=n);let d=t.length;s.CancellationToken.is(c)&&(d-=1,a=c);const f=d-u;switch(f){case 0:i=void 0;break;case 1:i=le(l,t[u]);break;default:if(l===o.ParameterStructures.byName)throw new Error(`Received ${f} parameters for 'by Name' request parameter structure.`);i=t.slice(u,d).map((e=>ae(e)))}}else{const n=t;r=e.method,i=de(e,n);const o=e.numberOfParams;a=s.CancellationToken.is(n[o])?n[o]:void 0}const c=k++;let u;return a&&(u=a.onCancellationRequested((()=>{const e=B.sender.sendCancellation(fe,c);return void 0===e?(R.log(`Received no promise from cancellation strategy when cancelling id ${c}`),Promise.resolve()):e.catch((()=>{R.log(`Sending cancellation messages for id ${c} failed`)}))}))),new Promise(((e,t)=>{const n={jsonrpc:P,id:c,method:r,params:i};let s={method:r,timerStart:Date.now(),resolve:t=>{e(t),B.sender.cleanup(c),u?.dispose()},reject:e=>{t(e),B.sender.cleanup(c),u?.dispose()}};!function(e){if(L!==d.Off&&E)if(A===h.Text){let t;L!==d.Verbose&&L!==d.Compact||!e.params||(t=`Params: ${ne(e.params)}\n\n`),E.log(`Sending request '${e.method} - (${e.id})'.`,t)}else ie("send-request",e)}(n);try{y.write(n).catch((()=>R.error("Sending request failed.")))}catch(e){s.reject(new o.ResponseError(o.ErrorCodes.MessageWriteError,e.message?e.message:"Unknown reason")),s=null}s&&F.set(c,s)}))},onRequest:(e,t)=>{se();let o=null;return l.is(e)?(o=void 0,q=e):n.string(e)?(o=null,void 0!==t&&(o=e,S.set(e,{handler:t,type:void 0}))):void 0!==t&&(o=e.method,S.set(e.method,{type:e,handler:t})),{dispose:()=>{null!==o&&(void 0!==o?S.delete(o):q=void 0)}}},hasPendingResponse:()=>F.size>0,trace:async(e,t,o)=>{let r=!1,i=h.Text;void 0!==o&&(n.boolean(o)?r=o:(r=o.sendNotification||!1,i=o.traceFormat||h.Text)),L=e,A=i,E=L===d.Off?void 0:t,!r||Y()||Q()||await fe.sendNotification(g.type,{value:d.toString(e)})},onError:U.event,onClose:z.event,onUnhandledNotification:$.event,onDispose:V.event,end:()=>{y.end()},dispose:()=>{if(Q())return;H=T.Disposed,V.fire(void 0);const e=new o.ResponseError(o.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const t of F.values())t.reject(e);F=new Map,W=new Map,I=new Set,j=new r.LinkedMap,n.func(y.dispose)&&y.dispose(),n.func(f.dispose)&&f.dispose()},listen:()=>{se(),function(){if(X())throw new _(m.AlreadyListening,"Connection is already listening")}(),H=T.Listening,f.listen(te)},inspect:()=>{(0,t.default)().console.log("inspect")}};return fe.onNotification(p.type,(e=>{if(L===d.Off||!E)return;const t=L===d.Verbose||L===d.Compact;E.log(e.message,t?e.verbose:void 0)})),fe.onNotification(u.type,(e=>{const t=M.get(e.token);t?t(e.value):K.fire(e)})),fe}}(oe)),oe}function ie(){return ne||(ne=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TraceFormat=e.TraceValues=e.Trace=e.ProgressType=e.ProgressToken=e.createMessageConnection=e.NullLogger=e.ConnectionOptions=e.ConnectionStrategy=e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=e.CancellationToken=e.CancellationTokenSource=e.Emitter=e.Event=e.Disposable=e.LRUCache=e.Touch=e.LinkedMap=e.ParameterStructures=e.NotificationType9=e.NotificationType8=e.NotificationType7=e.NotificationType6=e.NotificationType5=e.NotificationType4=e.NotificationType3=e.NotificationType2=e.NotificationType1=e.NotificationType0=e.NotificationType=e.ErrorCodes=e.ResponseError=e.RequestType9=e.RequestType8=e.RequestType7=e.RequestType6=e.RequestType5=e.RequestType4=e.RequestType3=e.RequestType2=e.RequestType1=e.RequestType0=e.RequestType=e.Message=e.RAL=void 0,e.CancellationStrategy=e.CancellationSenderStrategy=e.CancellationReceiverStrategy=e.ConnectionError=e.ConnectionErrors=e.LogTraceNotification=e.SetTraceNotification=void 0;const t=L();Object.defineProperty(e,"Message",{enumerable:!0,get:function(){return t.Message}}),Object.defineProperty(e,"RequestType",{enumerable:!0,get:function(){return t.RequestType}}),Object.defineProperty(e,"RequestType0",{enumerable:!0,get:function(){return t.RequestType0}}),Object.defineProperty(e,"RequestType1",{enumerable:!0,get:function(){return t.RequestType1}}),Object.defineProperty(e,"RequestType2",{enumerable:!0,get:function(){return t.RequestType2}}),Object.defineProperty(e,"RequestType3",{enumerable:!0,get:function(){return t.RequestType3}}),Object.defineProperty(e,"RequestType4",{enumerable:!0,get:function(){return t.RequestType4}}),Object.defineProperty(e,"RequestType5",{enumerable:!0,get:function(){return t.RequestType5}}),Object.defineProperty(e,"RequestType6",{enumerable:!0,get:function(){return t.RequestType6}}),Object.defineProperty(e,"RequestType7",{enumerable:!0,get:function(){return t.RequestType7}}),Object.defineProperty(e,"RequestType8",{enumerable:!0,get:function(){return t.RequestType8}}),Object.defineProperty(e,"RequestType9",{enumerable:!0,get:function(){return t.RequestType9}}),Object.defineProperty(e,"ResponseError",{enumerable:!0,get:function(){return t.ResponseError}}),Object.defineProperty(e,"ErrorCodes",{enumerable:!0,get:function(){return t.ErrorCodes}}),Object.defineProperty(e,"NotificationType",{enumerable:!0,get:function(){return t.NotificationType}}),Object.defineProperty(e,"NotificationType0",{enumerable:!0,get:function(){return t.NotificationType0}}),Object.defineProperty(e,"NotificationType1",{enumerable:!0,get:function(){return t.NotificationType1}}),Object.defineProperty(e,"NotificationType2",{enumerable:!0,get:function(){return t.NotificationType2}}),Object.defineProperty(e,"NotificationType3",{enumerable:!0,get:function(){return t.NotificationType3}}),Object.defineProperty(e,"NotificationType4",{enumerable:!0,get:function(){return t.NotificationType4}}),Object.defineProperty(e,"NotificationType5",{enumerable:!0,get:function(){return t.NotificationType5}}),Object.defineProperty(e,"NotificationType6",{enumerable:!0,get:function(){return t.NotificationType6}}),Object.defineProperty(e,"NotificationType7",{enumerable:!0,get:function(){return t.NotificationType7}}),Object.defineProperty(e,"NotificationType8",{enumerable:!0,get:function(){return t.NotificationType8}}),Object.defineProperty(e,"NotificationType9",{enumerable:!0,get:function(){return t.NotificationType9}}),Object.defineProperty(e,"ParameterStructures",{enumerable:!0,get:function(){return t.ParameterStructures}});const n=U();Object.defineProperty(e,"LinkedMap",{enumerable:!0,get:function(){return n.LinkedMap}}),Object.defineProperty(e,"LRUCache",{enumerable:!0,get:function(){return n.LRUCache}}),Object.defineProperty(e,"Touch",{enumerable:!0,get:function(){return n.Touch}});const o=T;Object.defineProperty(e,"Disposable",{enumerable:!0,get:function(){return o.Disposable}});const r=K();Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return r.Event}}),Object.defineProperty(e,"Emitter",{enumerable:!0,get:function(){return r.Emitter}});const i=J();Object.defineProperty(e,"CancellationTokenSource",{enumerable:!0,get:function(){return i.CancellationTokenSource}}),Object.defineProperty(e,"CancellationToken",{enumerable:!0,get:function(){return i.CancellationToken}});const s=(G||(G=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReadableStreamMessageReader=e.AbstractMessageReader=e.MessageReader=void 0;const t=v,n=W(),o=K();var r;(e.MessageReader||(e.MessageReader={})).is=function(e){let t=e;return t&&n.func(t.listen)&&n.func(t.dispose)&&n.func(t.onError)&&n.func(t.onClose)&&n.func(t.onPartialMessage)};class i{constructor(){this.errorEmitter=new o.Emitter,this.closeEmitter=new o.Emitter,this.partialMessageEmitter=new o.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){return e instanceof Error?e:new Error(`Reader received error. Reason: ${n.string(e.message)?e.message:"unknown"}`)}}e.AbstractMessageReader=i,function(e){e.fromOptions=function(e){let n,o;const r=new Map;let i;const s=new Map;if(void 0===e||"string"==typeof e)n=e??"utf-8";else{if(n=e.charset??"utf-8",void 0!==e.contentDecoder&&(o=e.contentDecoder,r.set(o.name,o)),void 0!==e.contentDecoders)for(const t of e.contentDecoders)r.set(t.name,t);if(void 0!==e.contentTypeDecoder&&(i=e.contentTypeDecoder,s.set(i.name,i)),void 0!==e.contentTypeDecoders)for(const t of e.contentTypeDecoders)s.set(t.name,t)}return void 0===i&&(i=(0,t.default)().applicationJson.decoder,s.set(i.name,i)),{charset:n,contentDecoder:o,contentDecoders:r,contentTypeDecoder:i,contentTypeDecoders:s}}}(r||(r={})),e.ReadableStreamMessageReader=class extends i{constructor(e,n){super(),this.readable=e,this.options=r.fromOptions(n),this.buffer=(0,t.default)().messageBuffer.create(this.options.charset),this._partialMessageTimeout=1e4,this.nextMessageLength=-1,this.messageToken=0}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1,this.messageToken=0,this.partialMessageTimer=void 0,this.callback=e;const t=this.readable.onData((e=>{this.onData(e)}));return this.readable.onError((e=>this.fireError(e))),this.readable.onClose((()=>this.fireClose())),t}onData(e){for(this.buffer.append(e);;){if(-1===this.nextMessageLength){const e=this.buffer.tryReadHeaders();if(!e)return;const t=e.get("Content-Length");if(!t)throw new Error("Header must provide a Content-Length property.");const n=parseInt(t);if(isNaN(n))throw new Error("Content-Length value must be a number.");this.nextMessageLength=n}const e=this.buffer.tryReadBody(this.nextMessageLength);if(void 0===e)return void this.setPartialMessageTimer();let t;this.clearPartialMessageTimer(),this.nextMessageLength=-1,t=void 0!==this.options.contentDecoder?this.options.contentDecoder.decode(e):Promise.resolve(e),t.then((e=>{this.options.contentTypeDecoder.decode(e,this.options).then((e=>{this.callback(e)}),(e=>{this.fireError(e)}))}),(e=>{this.fireError(e)}))}}clearPartialMessageTimer(){this.partialMessageTimer&&(this.partialMessageTimer.dispose(),this.partialMessageTimer=void 0)}setPartialMessageTimer(){this.clearPartialMessageTimer(),this._partialMessageTimeout<=0||(this.partialMessageTimer=(0,t.default)().timer.setTimeout(((e,t)=>{this.partialMessageTimer=void 0,e===this.messageToken&&(this.firePartialMessage({messageToken:e,waitingTime:t}),this.setPartialMessageTimer())}),this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout))}}}(Q)),Q);Object.defineProperty(e,"MessageReader",{enumerable:!0,get:function(){return s.MessageReader}}),Object.defineProperty(e,"AbstractMessageReader",{enumerable:!0,get:function(){return s.AbstractMessageReader}}),Object.defineProperty(e,"ReadableStreamMessageReader",{enumerable:!0,get:function(){return s.ReadableStreamMessageReader}});const a=(Y||(Y=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WriteableStreamMessageWriter=e.AbstractMessageWriter=e.MessageWriter=void 0;const t=v,n=W(),o=function(){if(X)return ee;X=1,Object.defineProperty(ee,"__esModule",{value:!0}),ee.Semaphore=void 0;const e=v;return ee.Semaphore=class{constructor(e=1){if(e<=0)throw new Error("Capacity must be greater than 0");this._capacity=e,this._active=0,this._waiting=[]}lock(e){return new Promise(((t,n)=>{this._waiting.push({thunk:e,resolve:t,reject:n}),this.runNext()}))}get active(){return this._active}runNext(){0!==this._waiting.length&&this._active!==this._capacity&&(0,e.default)().timer.setImmediate((()=>this.doRunNext()))}doRunNext(){if(0===this._waiting.length||this._active===this._capacity)return;const e=this._waiting.shift();if(this._active++,this._active>this._capacity)throw new Error("To many thunks active");try{const t=e.thunk();t instanceof Promise?t.then((t=>{this._active--,e.resolve(t),this.runNext()}),(t=>{this._active--,e.reject(t),this.runNext()})):(this._active--,e.resolve(t),this.runNext())}catch(t){this._active--,e.reject(t),this.runNext()}}},ee}(),r=K();var i;(e.MessageWriter||(e.MessageWriter={})).is=function(e){let t=e;return t&&n.func(t.dispose)&&n.func(t.onClose)&&n.func(t.onError)&&n.func(t.write)};class s{constructor(){this.errorEmitter=new r.Emitter,this.closeEmitter=new r.Emitter}dispose(){this.errorEmitter.dispose(),this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,n){this.errorEmitter.fire([this.asError(e),t,n])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(void 0)}asError(e){return e instanceof Error?e:new Error(`Writer received error. Reason: ${n.string(e.message)?e.message:"unknown"}`)}}e.AbstractMessageWriter=s,function(e){e.fromOptions=function(e){return void 0===e||"string"==typeof e?{charset:e??"utf-8",contentTypeEncoder:(0,t.default)().applicationJson.encoder}:{charset:e.charset??"utf-8",contentEncoder:e.contentEncoder,contentTypeEncoder:e.contentTypeEncoder??(0,t.default)().applicationJson.encoder}}}(i||(i={})),e.WriteableStreamMessageWriter=class extends s{constructor(e,t){super(),this.writable=e,this.options=i.fromOptions(t),this.errorCount=0,this.writeSemaphore=new o.Semaphore(1),this.writable.onError((e=>this.fireError(e))),this.writable.onClose((()=>this.fireClose()))}async write(e){return this.writeSemaphore.lock((async()=>this.options.contentTypeEncoder.encode(e,this.options).then((e=>void 0!==this.options.contentEncoder?this.options.contentEncoder.encode(e):e)).then((t=>{const n=[];return n.push("Content-Length: ",t.byteLength.toString(),"\r\n"),n.push("\r\n"),this.doWrite(e,n,t)}),(e=>{throw this.fireError(e),e}))))}async doWrite(e,t,n){try{return await this.writable.write(t.join(""),"ascii"),this.writable.write(n)}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}}(Z)),Z);Object.defineProperty(e,"MessageWriter",{enumerable:!0,get:function(){return a.MessageWriter}}),Object.defineProperty(e,"AbstractMessageWriter",{enumerable:!0,get:function(){return a.AbstractMessageWriter}}),Object.defineProperty(e,"WriteableStreamMessageWriter",{enumerable:!0,get:function(){return a.WriteableStreamMessageWriter}});const c=re();Object.defineProperty(e,"ConnectionStrategy",{enumerable:!0,get:function(){return c.ConnectionStrategy}}),Object.defineProperty(e,"ConnectionOptions",{enumerable:!0,get:function(){return c.ConnectionOptions}}),Object.defineProperty(e,"NullLogger",{enumerable:!0,get:function(){return c.NullLogger}}),Object.defineProperty(e,"createMessageConnection",{enumerable:!0,get:function(){return c.createMessageConnection}}),Object.defineProperty(e,"ProgressToken",{enumerable:!0,get:function(){return c.ProgressToken}}),Object.defineProperty(e,"ProgressType",{enumerable:!0,get:function(){return c.ProgressType}}),Object.defineProperty(e,"Trace",{enumerable:!0,get:function(){return c.Trace}}),Object.defineProperty(e,"TraceValues",{enumerable:!0,get:function(){return c.TraceValues}}),Object.defineProperty(e,"TraceFormat",{enumerable:!0,get:function(){return c.TraceFormat}}),Object.defineProperty(e,"SetTraceNotification",{enumerable:!0,get:function(){return c.SetTraceNotification}}),Object.defineProperty(e,"LogTraceNotification",{enumerable:!0,get:function(){return c.LogTraceNotification}}),Object.defineProperty(e,"ConnectionErrors",{enumerable:!0,get:function(){return c.ConnectionErrors}}),Object.defineProperty(e,"ConnectionError",{enumerable:!0,get:function(){return c.ConnectionError}}),Object.defineProperty(e,"CancellationReceiverStrategy",{enumerable:!0,get:function(){return c.CancellationReceiverStrategy}}),Object.defineProperty(e,"CancellationSenderStrategy",{enumerable:!0,get:function(){return c.CancellationSenderStrategy}}),Object.defineProperty(e,"CancellationStrategy",{enumerable:!0,get:function(){return c.CancellationStrategy}});const u=v;e.RAL=u.default}(j)),j}!function(e){var i=c&&c.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),s=c&&c.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.createMessageConnection=e.createServerSocketTransport=e.createClientSocketTransport=e.createServerPipeTransport=e.createClientPipeTransport=e.generateRandomPipeName=e.StreamMessageWriter=e.StreamMessageReader=e.SocketMessageWriter=e.SocketMessageReader=e.IPCMessageWriter=e.IPCMessageReader=void 0;const a=y;a.default.install();const u=ie(),l=t,d=n,f=o,h=r;s(ie(),e);class g extends u.AbstractMessageReader{constructor(e){super(),this.process=e;let t=this.process;t.on("error",(e=>this.fireError(e))),t.on("close",(()=>this.fireClose()))}listen(e){return this.process.on("message",e),u.Disposable.create((()=>this.process.off("message",e)))}}e.IPCMessageReader=g;class p extends u.AbstractMessageWriter{constructor(e){super(),this.process=e,this.errorCount=0;let t=this.process;t.on("error",(e=>this.fireError(e))),t.on("close",(()=>this.fireClose))}write(e){try{return"function"==typeof this.process.send&&this.process.send(e,void 0,void 0,(t=>{t?(this.errorCount++,this.handleError(t,e)):this.errorCount=0})),Promise.resolve()}catch(t){return this.handleError(t,e),Promise.reject(t)}}handleError(e,t){this.errorCount++,this.fireError(e,t,this.errorCount)}end(){}}e.IPCMessageWriter=p;class m extends u.ReadableStreamMessageReader{constructor(e,t="utf-8"){super((0,a.default)().stream.asReadableStream(e),t)}}e.SocketMessageReader=m;class v extends u.WriteableStreamMessageWriter{constructor(e,t){super((0,a.default)().stream.asWritableStream(e),t),this.socket=e}dispose(){super.dispose(),this.socket.destroy()}}e.SocketMessageWriter=v;class b extends u.ReadableStreamMessageReader{constructor(e,t){super((0,a.default)().stream.asReadableStream(e),t)}}e.StreamMessageReader=b;class R extends u.WriteableStreamMessageWriter{constructor(e,t){super((0,a.default)().stream.asWritableStream(e),t)}}e.StreamMessageWriter=R;const D=process.env.XDG_RUNTIME_DIR,T=new Map([["linux",107],["darwin",103]]);e.generateRandomPipeName=function(){const e=(0,f.randomBytes)(21).toString("hex");if("win32"===process.platform)return`\\\\.\\pipe\\vscode-jsonrpc-${e}-sock`;let t;t=D?l.join(D,`vscode-ipc-${e}.sock`):l.join(d.tmpdir(),`vscode-${e}.sock`);const n=T.get(process.platform);return void 0!==n&&t.length>=n&&(0,a.default)().console.warn(`WARNING: IPC handle "${t}" is longer than ${n} characters.`),t},e.createClientPipeTransport=function(e,t="utf-8"){let n;const o=new Promise(((e,t)=>{n=e}));return new Promise(((r,i)=>{let s=(0,h.createServer)((e=>{s.close(),n([new m(e,t),new v(e,t)])}));s.on("error",i),s.listen(e,(()=>{s.removeListener("error",i),r({onConnected:()=>o})}))}))},e.createServerPipeTransport=function(e,t="utf-8"){const n=(0,h.createConnection)(e);return[new m(n,t),new v(n,t)]},e.createClientSocketTransport=function(e,t="utf-8"){let n;const o=new Promise(((e,t)=>{n=e}));return new Promise(((r,i)=>{const s=(0,h.createServer)((e=>{s.close(),n([new m(e,t),new v(e,t)])}));s.on("error",i),s.listen(e,"127.0.0.1",(()=>{s.removeListener("error",i),r({onConnected:()=>o})}))}))},e.createServerSocketTransport=function(e,t="utf-8"){const n=(0,h.createConnection)(e,"127.0.0.1");return[new m(n,t),new v(n,t)]},e.createMessageConnection=function(e,t,n,o){n||(n=u.NullLogger);const r=function(e){const t=e;return void 0!==t.read&&void 0!==t.addListener}(e)?new b(e):e,i=function(e){const t=e;return void 0!==t.write&&void 0!==t.addListener}(t)?new R(t):t;return u.ConnectionStrategy.is(o)&&(o={connectionStrategy:o}),(0,u.createMessageConnection)(r,i,n,o)}}(m);var se,ae,ce,ue,le,de,fe,he,ge,pe,me,ye,ve,be,Re,De,Te,_e,ke,Ce,we,Pe,qe,Se,Ne,xe,Me,Oe,Ee=m,je={};(se||(se={})).is=function(e){return"string"==typeof e},(ae||(ae={})).is=function(e){return"string"==typeof e},function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(ce||(ce={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(ue||(ue={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=ue.MAX_VALUE),t===Number.MAX_VALUE&&(t=ue.MAX_VALUE),{line:e,character:t}},e.is=function(e){var t=e;return Nt.objectLiteral(t)&&Nt.uinteger(t.line)&&Nt.uinteger(t.character)}}(le||(le={})),function(e){e.create=function(e,t,n,o){if(Nt.uinteger(e)&&Nt.uinteger(t)&&Nt.uinteger(n)&&Nt.uinteger(o))return{start:le.create(e,t),end:le.create(n,o)};if(le.is(e)&&le.is(t))return{start:e,end:t};throw new Error("Range#create called with invalid arguments[".concat(e,", ").concat(t,", ").concat(n,", ").concat(o,"]"))},e.is=function(e){var t=e;return Nt.objectLiteral(t)&&le.is(t.start)&&le.is(t.end)}}(de||(de={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){var t=e;return Nt.objectLiteral(t)&&de.is(t.range)&&(Nt.string(t.uri)||Nt.undefined(t.uri))}}(fe||(fe={})),function(e){e.create=function(e,t,n,o){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:o}},e.is=function(e){var t=e;return Nt.objectLiteral(t)&&de.is(t.targetRange)&&Nt.string(t.targetUri)&&de.is(t.targetSelectionRange)&&(de.is(t.originSelectionRange)||Nt.undefined(t.originSelectionRange))}}(he||(he={})),function(e){e.create=function(e,t,n,o){return{red:e,green:t,blue:n,alpha:o}},e.is=function(e){var t=e;return Nt.objectLiteral(t)&&Nt.numberRange(t.red,0,1)&&Nt.numberRange(t.green,0,1)&&Nt.numberRange(t.blue,0,1)&&Nt.numberRange(t.alpha,0,1)}}(ge||(ge={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){var t=e;return Nt.objectLiteral(t)&&de.is(t.range)&&ge.is(t.color)}}(pe||(pe={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){var t=e;return Nt.objectLiteral(t)&&Nt.string(t.label)&&(Nt.undefined(t.textEdit)||Ce.is(t))&&(Nt.undefined(t.additionalTextEdits)||Nt.typedArray(t.additionalTextEdits,Ce.is))}}(me||(me={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(ye||(ye={})),function(e){e.create=function(e,t,n,o,r,i){var s={startLine:e,endLine:t};return Nt.defined(n)&&(s.startCharacter=n),Nt.defined(o)&&(s.endCharacter=o),Nt.defined(r)&&(s.kind=r),Nt.defined(i)&&(s.collapsedText=i),s},e.is=function(e){var t=e;return Nt.objectLiteral(t)&&Nt.uinteger(t.startLine)&&Nt.uinteger(t.startLine)&&(Nt.undefined(t.startCharacter)||Nt.uinteger(t.startCharacter))&&(Nt.undefined(t.endCharacter)||Nt.uinteger(t.endCharacter))&&(Nt.undefined(t.kind)||Nt.string(t.kind))}}(ve||(ve={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){var t=e;return Nt.defined(t)&&fe.is(t.location)&&Nt.string(t.message)}}(be||(be={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(Re||(Re={})),function(e){e.Unnecessary=1,e.Deprecated=2}(De||(De={})),(Te||(Te={})).is=function(e){var t=e;return Nt.objectLiteral(t)&&Nt.string(t.href)},function(e){e.create=function(e,t,n,o,r,i){var s={range:e,message:t};return Nt.defined(n)&&(s.severity=n),Nt.defined(o)&&(s.code=o),Nt.defined(r)&&(s.source=r),Nt.defined(i)&&(s.relatedInformation=i),s},e.is=function(e){var t,n=e;return Nt.defined(n)&&de.is(n.range)&&Nt.string(n.message)&&(Nt.number(n.severity)||Nt.undefined(n.severity))&&(Nt.integer(n.code)||Nt.string(n.code)||Nt.undefined(n.code))&&(Nt.undefined(n.codeDescription)||Nt.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(Nt.string(n.source)||Nt.undefined(n.source))&&(Nt.undefined(n.relatedInformation)||Nt.typedArray(n.relatedInformation,be.is))}}(_e||(_e={})),function(e){e.create=function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var r={title:e,command:t};return Nt.defined(n)&&n.length>0&&(r.arguments=n),r},e.is=function(e){var t=e;return Nt.defined(t)&&Nt.string(t.title)&&Nt.string(t.command)}}(ke||(ke={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){var t=e;return Nt.objectLiteral(t)&&Nt.string(t.newText)&&de.is(t.range)}}(Ce||(Ce={})),function(e){e.create=function(e,t,n){var o={label:e};return void 0!==t&&(o.needsConfirmation=t),void 0!==n&&(o.description=n),o},e.is=function(e){var t=e;return Nt.objectLiteral(t)&&Nt.string(t.label)&&(Nt.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(Nt.string(t.description)||void 0===t.description)}}(we||(we={})),(Pe||(Pe={})).is=function(e){var t=e;return Nt.string(t)},function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){var t=e;return Ce.is(t)&&(we.is(t.annotationId)||Pe.is(t.annotationId))}}(qe||(qe={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){var t=e;return Nt.defined(t)&&We.is(t.textDocument)&&Array.isArray(t.edits)}}(Se||(Se={})),function(e){e.create=function(e,t,n){var o={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(o.options=t),void 0!==n&&(o.annotationId=n),o},e.is=function(e){var t=e;return t&&"create"===t.kind&&Nt.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||Nt.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Nt.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Pe.is(t.annotationId))}}(Ne||(Ne={})),function(e){e.create=function(e,t,n,o){var r={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(r.options=n),void 0!==o&&(r.annotationId=o),r},e.is=function(e){var t=e;return t&&"rename"===t.kind&&Nt.string(t.oldUri)&&Nt.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||Nt.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||Nt.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||Pe.is(t.annotationId))}}(xe||(xe={})),function(e){e.create=function(e,t,n){var o={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(o.options=t),void 0!==n&&(o.annotationId=n),o},e.is=function(e){var t=e;return t&&"delete"===t.kind&&Nt.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||Nt.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||Nt.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||Pe.is(t.annotationId))}}(Me||(Me={})),(Oe||(Oe={})).is=function(e){var t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every((function(e){return Nt.string(e.kind)?Ne.is(e)||xe.is(e)||Me.is(e):Se.is(e)})))};var Fe,Ie,We,Le,Ae,He,Ue,ze,$e,Ke,Ve,Be,Je,Ge,Xe,Ye,Qe,Ze,et,tt,nt,ot,rt,it,st,at,ct,ut,lt,dt,ft,ht,gt,pt,mt,yt,vt,bt,Rt,Dt,Tt,_t,kt,Ct,wt,Pt=function(){function e(e,t){this.edits=e,this.changeAnnotations=t}return e.prototype.insert=function(e,t,n){var o,r;if(void 0===n?o=Ce.insert(e,t):Pe.is(n)?(r=n,o=qe.insert(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),o=qe.insert(e,t,r)),this.edits.push(o),void 0!==r)return r},e.prototype.replace=function(e,t,n){var o,r;if(void 0===n?o=Ce.replace(e,t):Pe.is(n)?(r=n,o=qe.replace(e,t,n)):(this.assertChangeAnnotations(this.changeAnnotations),r=this.changeAnnotations.manage(n),o=qe.replace(e,t,r)),this.edits.push(o),void 0!==r)return r},e.prototype.delete=function(e,t){var n,o;if(void 0===t?n=Ce.del(e):Pe.is(t)?(o=t,n=qe.del(e,t)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(t),n=qe.del(e,o)),this.edits.push(n),void 0!==o)return o},e.prototype.add=function(e){this.edits.push(e)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(e){if(void 0===e)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),qt=function(){function e(e){this._annotations=void 0===e?Object.create(null):e,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(e,t){var n;if(Pe.is(e)?n=e:(n=this.nextId(),t=e),void 0!==this._annotations[n])throw new Error("Id ".concat(n," is already in use."));if(void 0===t)throw new Error("No annotation provided for id ".concat(n));return this._annotations[n]=t,this._size++,n},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),St=function(){function e(e){var t=this;this._textEditChanges=Object.create(null),void 0!==e?(this._workspaceEdit=e,e.documentChanges?(this._changeAnnotations=new qt(e.changeAnnotations),e.changeAnnotations=this._changeAnnotations.all(),e.documentChanges.forEach((function(e){if(Se.is(e)){var n=new Pt(e.edits,t._changeAnnotations);t._textEditChanges[e.textDocument.uri]=n}}))):e.changes&&Object.keys(e.changes).forEach((function(n){var o=new Pt(e.changes[n]);t._textEditChanges[n]=o}))):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),void 0!==this._changeAnnotations&&(0===this._changeAnnotations.size?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(e){if(We.is(e)){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var t={uri:e.uri,version:e.version};if(!(o=this._textEditChanges[t.uri])){var n={textDocument:t,edits:r=[]};this._workspaceEdit.documentChanges.push(n),o=new Pt(r,this._changeAnnotations),this._textEditChanges[t.uri]=o}return o}if(this.initChanges(),void 0===this._workspaceEdit.changes)throw new Error("Workspace edit is not configured for normal text edit changes.");var o;if(!(o=this._textEditChanges[e])){var r=[];this._workspaceEdit.changes[e]=r,o=new Pt(r),this._textEditChanges[e]=o}return o},e.prototype.initDocumentChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._changeAnnotations=new qt,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){void 0===this._workspaceEdit.documentChanges&&void 0===this._workspaceEdit.changes&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var o,r,i;if(we.is(t)||Pe.is(t)?o=t:n=t,void 0===o?r=Ne.create(e,n):(i=Pe.is(o)?o:this._changeAnnotations.manage(o),r=Ne.create(e,n,i)),this._workspaceEdit.documentChanges.push(r),void 0!==i)return i},e.prototype.renameFile=function(e,t,n,o){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var r,i,s;if(we.is(n)||Pe.is(n)?r=n:o=n,void 0===r?i=xe.create(e,t,o):(s=Pe.is(r)?r:this._changeAnnotations.manage(r),i=xe.create(e,t,o,s)),this._workspaceEdit.documentChanges.push(i),void 0!==s)return s},e.prototype.deleteFile=function(e,t,n){if(this.initDocumentChanges(),void 0===this._workspaceEdit.documentChanges)throw new Error("Workspace edit is not configured for document changes.");var o,r,i;if(we.is(t)||Pe.is(t)?o=t:n=t,void 0===o?r=Me.create(e,n):(i=Pe.is(o)?o:this._changeAnnotations.manage(o),r=Me.create(e,n,i)),this._workspaceEdit.documentChanges.push(r),void 0!==i)return i},e}();!function(e){e.create=function(e){return{uri:e}},e.is=function(e){var t=e;return Nt.defined(t)&&Nt.string(t.uri)}}(Fe||(Fe={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Nt.defined(t)&&Nt.string(t.uri)&&Nt.integer(t.version)}}(Ie||(Ie={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){var t=e;return Nt.defined(t)&&Nt.string(t.uri)&&(null===t.version||Nt.integer(t.version))}}(We||(We={})),function(e){e.create=function(e,t,n,o){return{uri:e,languageId:t,version:n,text:o}},e.is=function(e){var t=e;return Nt.defined(t)&&Nt.string(t.uri)&&Nt.string(t.languageId)&&Nt.integer(t.version)&&Nt.string(t.text)}}(Le||(Le={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){var n=t;return n===e.PlainText||n===e.Markdown}}(Ae||(Ae={})),(He||(He={})).is=function(e){var t=e;return Nt.objectLiteral(e)&&Ae.is(t.kind)&&Nt.string(t.value)},function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(Ue||(Ue={})),function(e){e.PlainText=1,e.Snippet=2}(ze||(ze={})),($e||($e={})).Deprecated=1,function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){var t=e;return t&&Nt.string(t.newText)&&de.is(t.insert)&&de.is(t.replace)}}(Ke||(Ke={})),function(e){e.asIs=1,e.adjustIndentation=2}(Ve||(Ve={})),(Be||(Be={})).is=function(e){var t=e;return t&&(Nt.string(t.detail)||void 0===t.detail)&&(Nt.string(t.description)||void 0===t.description)},(Je||(Je={})).create=function(e){return{label:e}},(Ge||(Ge={})).create=function(e,t){return{items:e||[],isIncomplete:!!t}},function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){var t=e;return Nt.string(t)||Nt.objectLiteral(t)&&Nt.string(t.language)&&Nt.string(t.value)}}(Xe||(Xe={})),(Ye||(Ye={})).is=function(e){var t=e;return!!t&&Nt.objectLiteral(t)&&(He.is(t.contents)||Xe.is(t.contents)||Nt.typedArray(t.contents,Xe.is))&&(void 0===e.range||de.is(e.range))},(Qe||(Qe={})).create=function(e,t){return t?{label:e,documentation:t}:{label:e}},(Ze||(Ze={})).create=function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];var r={label:e};return Nt.defined(t)&&(r.documentation=t),Nt.defined(n)?r.parameters=n:r.parameters=[],r},function(e){e.Text=1,e.Read=2,e.Write=3}(et||(et={})),(tt||(tt={})).create=function(e,t){var n={range:e};return Nt.number(t)&&(n.kind=t),n},function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(nt||(nt={})),(ot||(ot={})).Deprecated=1,(rt||(rt={})).create=function(e,t,n,o,r){var i={name:e,kind:t,location:{uri:o,range:n}};return r&&(i.containerName=r),i},(it||(it={})).create=function(e,t,n,o){return void 0!==o?{name:e,kind:t,location:{uri:n,range:o}}:{name:e,kind:t,location:{uri:n}}},function(e){e.create=function(e,t,n,o,r,i){var s={name:e,detail:t,kind:n,range:o,selectionRange:r};return void 0!==i&&(s.children=i),s},e.is=function(e){var t=e;return t&&Nt.string(t.name)&&Nt.number(t.kind)&&de.is(t.range)&&de.is(t.selectionRange)&&(void 0===t.detail||Nt.string(t.detail))&&(void 0===t.deprecated||Nt.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(st||(st={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"}(at||(at={})),function(e){e.Invoked=1,e.Automatic=2}(ct||(ct={})),function(e){e.create=function(e,t,n){var o={diagnostics:e};return null!=t&&(o.only=t),null!=n&&(o.triggerKind=n),o},e.is=function(e){var t=e;return Nt.defined(t)&&Nt.typedArray(t.diagnostics,_e.is)&&(void 0===t.only||Nt.typedArray(t.only,Nt.string))&&(void 0===t.triggerKind||t.triggerKind===ct.Invoked||t.triggerKind===ct.Automatic)}}(ut||(ut={})),function(e){e.create=function(e,t,n){var o={title:e},r=!0;return"string"==typeof t?(r=!1,o.kind=t):ke.is(t)?o.command=t:o.edit=t,r&&void 0!==n&&(o.kind=n),o},e.is=function(e){var t=e;return t&&Nt.string(t.title)&&(void 0===t.diagnostics||Nt.typedArray(t.diagnostics,_e.is))&&(void 0===t.kind||Nt.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||ke.is(t.command))&&(void 0===t.isPreferred||Nt.boolean(t.isPreferred))&&(void 0===t.edit||Oe.is(t.edit))}}(lt||(lt={})),function(e){e.create=function(e,t){var n={range:e};return Nt.defined(t)&&(n.data=t),n},e.is=function(e){var t=e;return Nt.defined(t)&&de.is(t.range)&&(Nt.undefined(t.command)||ke.is(t.command))}}(dt||(dt={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){var t=e;return Nt.defined(t)&&Nt.uinteger(t.tabSize)&&Nt.boolean(t.insertSpaces)}}(ft||(ft={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){var t=e;return Nt.defined(t)&&de.is(t.range)&&(Nt.undefined(t.target)||Nt.string(t.target))}}(ht||(ht={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){var n=t;return Nt.objectLiteral(n)&&de.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(gt||(gt={})),function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"}(pt||(pt={})),function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"}(mt||(mt={})),(yt||(yt={})).is=function(e){var t=e;return Nt.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])},function(e){e.create=function(e,t){return{range:e,text:t}},e.is=function(e){var t=e;return null!=t&&de.is(t.range)&&Nt.string(t.text)}}(vt||(vt={})),function(e){e.create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},e.is=function(e){var t=e;return null!=t&&de.is(t.range)&&Nt.boolean(t.caseSensitiveLookup)&&(Nt.string(t.variableName)||void 0===t.variableName)}}(bt||(bt={})),function(e){e.create=function(e,t){return{range:e,expression:t}},e.is=function(e){var t=e;return null!=t&&de.is(t.range)&&(Nt.string(t.expression)||void 0===t.expression)}}(Rt||(Rt={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){var t=e;return Nt.defined(t)&&de.is(e.stoppedLocation)}}(Dt||(Dt={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}(Tt||(Tt={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){var t=e;return Nt.objectLiteral(t)&&(void 0===t.tooltip||Nt.string(t.tooltip)||He.is(t.tooltip))&&(void 0===t.location||fe.is(t.location))&&(void 0===t.command||ke.is(t.command))}}(_t||(_t={})),function(e){e.create=function(e,t,n){var o={position:e,label:t};return void 0!==n&&(o.kind=n),o},e.is=function(e){var t=e;return Nt.objectLiteral(t)&&le.is(t.position)&&(Nt.string(t.label)||Nt.typedArray(t.label,_t.is))&&(void 0===t.kind||Tt.is(t.kind))&&void 0===t.textEdits||Nt.typedArray(t.textEdits,Ce.is)&&(void 0===t.tooltip||Nt.string(t.tooltip)||He.is(t.tooltip))&&(void 0===t.paddingLeft||Nt.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Nt.boolean(t.paddingRight))}}(kt||(kt={})),(Ct||(Ct={})).is=function(e){var t=e;return Nt.objectLiteral(t)&&ae.is(t.uri)&&Nt.string(t.name)},function(e){function t(e,n){if(e.length<=1)return e;var o=e.length/2|0,r=e.slice(0,o),i=e.slice(o);t(r,n),t(i,n);for(var s=0,a=0,c=0;s<r.length&&a<i.length;){var u=n(r[s],i[a]);e[c++]=u<=0?r[s++]:i[a++]}for(;s<r.length;)e[c++]=r[s++];for(;a<i.length;)e[c++]=i[a++];return e}e.create=function(e,t,n,o){return new xt(e,t,n,o)},e.is=function(e){var t=e;return!!(Nt.defined(t)&&Nt.string(t.uri)&&(Nt.undefined(t.languageId)||Nt.string(t.languageId))&&Nt.uinteger(t.lineCount)&&Nt.func(t.getText)&&Nt.func(t.positionAt)&&Nt.func(t.offsetAt))},e.applyEdits=function(e,n){for(var o=e.getText(),r=t(n,(function(e,t){var n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n})),i=o.length,s=r.length-1;s>=0;s--){var a=r[s],c=e.offsetAt(a.range.start),u=e.offsetAt(a.range.end);if(!(u<=i))throw new Error("Overlapping edit");o=o.substring(0,c)+a.newText+o.substring(u,o.length),i=c}return o}}(wt||(wt={}));var Nt,xt=function(){function e(e,t,n,o){this._uri=e,this._languageId=t,this._version=n,this._content=o,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(e){if(e){var t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content},e.prototype.update=function(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(void 0===this._lineOffsets){for(var e=[],t=this._content,n=!0,o=0;o<t.length;o++){n&&(e.push(o),n=!1);var r=t.charAt(o);n="\r"===r||"\n"===r,"\r"===r&&o+1<t.length&&"\n"===t.charAt(o+1)&&o++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets},e.prototype.positionAt=function(e){e=Math.max(Math.min(e,this._content.length),0);var t=this.getLineOffsets(),n=0,o=t.length;if(0===o)return le.create(0,e);for(;n<o;){var r=Math.floor((n+o)/2);t[r]>e?o=r:n=r+1}var i=n-1;return le.create(i,e-t[i])},e.prototype.offsetAt=function(e){var t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;var n=t[e.line],o=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,o),n)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}();!function(e){var t=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,o){return"[object Number]"===t.call(e)&&n<=e&&e<=o},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"==typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(Nt||(Nt={}));var Mt=function(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})})),n}(Object.freeze({__proto__:null,get AnnotatedTextEdit(){return qe},get ChangeAnnotation(){return we},get ChangeAnnotationIdentifier(){return Pe},get CodeAction(){return lt},get CodeActionContext(){return ut},get CodeActionKind(){return at},get CodeActionTriggerKind(){return ct},get CodeDescription(){return Te},get CodeLens(){return dt},get Color(){return ge},get ColorInformation(){return pe},get ColorPresentation(){return me},get Command(){return ke},get CompletionItem(){return Je},get CompletionItemKind(){return Ue},get CompletionItemLabelDetails(){return Be},get CompletionItemTag(){return $e},get CompletionList(){return Ge},get CreateFile(){return Ne},get DeleteFile(){return Me},get Diagnostic(){return _e},get DiagnosticRelatedInformation(){return be},get DiagnosticSeverity(){return Re},get DiagnosticTag(){return De},get DocumentHighlight(){return tt},get DocumentHighlightKind(){return et},get DocumentLink(){return ht},get DocumentSymbol(){return st},get DocumentUri(){return se},EOL:["\n","\r\n","\r"],get FoldingRange(){return ve},get FoldingRangeKind(){return ye},get FormattingOptions(){return ft},get Hover(){return Ye},get InlayHint(){return kt},get InlayHintKind(){return Tt},get InlayHintLabelPart(){return _t},get InlineValueContext(){return Dt},get InlineValueEvaluatableExpression(){return Rt},get InlineValueText(){return vt},get InlineValueVariableLookup(){return bt},get InsertReplaceEdit(){return Ke},get InsertTextFormat(){return ze},get InsertTextMode(){return Ve},get Location(){return fe},get LocationLink(){return he},get MarkedString(){return Xe},get MarkupContent(){return He},get MarkupKind(){return Ae},get OptionalVersionedTextDocumentIdentifier(){return We},get ParameterInformation(){return Qe},get Position(){return le},get Range(){return de},get RenameFile(){return xe},get SelectionRange(){return gt},get SemanticTokenModifiers(){return mt},get SemanticTokenTypes(){return pt},get SemanticTokens(){return yt},get SignatureInformation(){return Ze},get SymbolInformation(){return rt},get SymbolKind(){return nt},get SymbolTag(){return ot},get TextDocument(){return wt},get TextDocumentEdit(){return Se},get TextDocumentIdentifier(){return Fe},get TextDocumentItem(){return Le},get TextEdit(){return Ce},get URI(){return ae},get VersionedTextDocumentIdentifier(){return Ie},WorkspaceChange:St,get WorkspaceEdit(){return Oe},get WorkspaceFolder(){return Ct},get WorkspaceSymbol(){return it},get integer(){return ce},get uinteger(){return ue}})),Ot={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ProtocolNotificationType=e.ProtocolNotificationType0=e.ProtocolRequestType=e.ProtocolRequestType0=e.RegistrationType=e.MessageDirection=void 0;const t=m;var n;(n=e.MessageDirection||(e.MessageDirection={})).clientToServer="clientToServer",n.serverToClient="serverToClient",n.both="both",e.RegistrationType=class{constructor(e){this.method=e}},e.ProtocolRequestType0=class extends t.RequestType0{constructor(e){super(e)}},e.ProtocolRequestType=class extends t.RequestType{constructor(e){super(e,t.ParameterStructures.byName)}},e.ProtocolNotificationType0=class extends t.NotificationType0{constructor(e){super(e)}},e.ProtocolNotificationType=class extends t.NotificationType{constructor(e){super(e,t.ParameterStructures.byName)}}}(Ot);var Et={},jt={};function Ft(e){return"string"==typeof e||e instanceof String}function It(e){return Array.isArray(e)}Object.defineProperty(jt,"__esModule",{value:!0}),jt.objectLiteral=jt.typedArray=jt.stringArray=jt.array=jt.func=jt.error=jt.number=jt.string=jt.boolean=void 0,jt.boolean=function(e){return!0===e||!1===e},jt.string=Ft,jt.number=function(e){return"number"==typeof e||e instanceof Number},jt.error=function(e){return e instanceof Error},jt.func=function(e){return"function"==typeof e},jt.array=It,jt.stringArray=function(e){return It(e)&&e.every((e=>Ft(e)))},jt.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)},jt.objectLiteral=function(e){return null!==e&&"object"==typeof e};var Wt={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ImplementationRequest=void 0;const t=Ot;var n;(n=e.ImplementationRequest||(e.ImplementationRequest={})).method="textDocument/implementation",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)}(Wt);var Lt={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TypeDefinitionRequest=void 0;const t=Ot;var n;(n=e.TypeDefinitionRequest||(e.TypeDefinitionRequest={})).method="textDocument/typeDefinition",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)}(Lt);var At={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=void 0;const t=Ot;var n,o;(n=e.WorkspaceFoldersRequest||(e.WorkspaceFoldersRequest={})).method="workspace/workspaceFolders",n.messageDirection=t.MessageDirection.serverToClient,n.type=new t.ProtocolRequestType0(n.method),(o=e.DidChangeWorkspaceFoldersNotification||(e.DidChangeWorkspaceFoldersNotification={})).method="workspace/didChangeWorkspaceFolders",o.messageDirection=t.MessageDirection.clientToServer,o.type=new t.ProtocolNotificationType(o.method)}(At);var Ht={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigurationRequest=void 0;const t=Ot;var n;(n=e.ConfigurationRequest||(e.ConfigurationRequest={})).method="workspace/configuration",n.messageDirection=t.MessageDirection.serverToClient,n.type=new t.ProtocolRequestType(n.method)}(Ht);var Ut={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ColorPresentationRequest=e.DocumentColorRequest=void 0;const t=Ot;var n,o;(n=e.DocumentColorRequest||(e.DocumentColorRequest={})).method="textDocument/documentColor",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method),(o=e.ColorPresentationRequest||(e.ColorPresentationRequest={})).method="textDocument/colorPresentation",o.messageDirection=t.MessageDirection.clientToServer,o.type=new t.ProtocolRequestType(o.method)}(Ut);var zt={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FoldingRangeRequest=void 0;const t=Ot;var n;(n=e.FoldingRangeRequest||(e.FoldingRangeRequest={})).method="textDocument/foldingRange",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)}(zt);var $t={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DeclarationRequest=void 0;const t=Ot;var n;(n=e.DeclarationRequest||(e.DeclarationRequest={})).method="textDocument/declaration",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)}($t);var Kt={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SelectionRangeRequest=void 0;const t=Ot;var n;(n=e.SelectionRangeRequest||(e.SelectionRangeRequest={})).method="textDocument/selectionRange",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)}(Kt);var Vt={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=void 0;const t=m,n=Ot;var o,r,i;(o=e.WorkDoneProgress||(e.WorkDoneProgress={})).type=new t.ProgressType,o.is=function(e){return e===o.type},(r=e.WorkDoneProgressCreateRequest||(e.WorkDoneProgressCreateRequest={})).method="window/workDoneProgress/create",r.messageDirection=n.MessageDirection.serverToClient,r.type=new n.ProtocolRequestType(r.method),(i=e.WorkDoneProgressCancelNotification||(e.WorkDoneProgressCancelNotification={})).method="window/workDoneProgress/cancel",i.messageDirection=n.MessageDirection.clientToServer,i.type=new n.ProtocolNotificationType(i.method)}(Vt);var Bt={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.CallHierarchyPrepareRequest=void 0;const t=Ot;var n,o,r;(n=e.CallHierarchyPrepareRequest||(e.CallHierarchyPrepareRequest={})).method="textDocument/prepareCallHierarchy",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method),(o=e.CallHierarchyIncomingCallsRequest||(e.CallHierarchyIncomingCallsRequest={})).method="callHierarchy/incomingCalls",o.messageDirection=t.MessageDirection.clientToServer,o.type=new t.ProtocolRequestType(o.method),(r=e.CallHierarchyOutgoingCallsRequest||(e.CallHierarchyOutgoingCallsRequest={})).method="callHierarchy/outgoingCalls",r.messageDirection=t.MessageDirection.clientToServer,r.type=new t.ProtocolRequestType(r.method)}(Bt);var Jt={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.SemanticTokensRegistrationType=e.TokenFormat=void 0;const t=Ot;var n,o,r,i,s;(e.TokenFormat||(e.TokenFormat={})).Relative="relative",function(e){e.method="textDocument/semanticTokens",e.type=new t.RegistrationType(e.method)}(n=e.SemanticTokensRegistrationType||(e.SemanticTokensRegistrationType={})),(o=e.SemanticTokensRequest||(e.SemanticTokensRequest={})).method="textDocument/semanticTokens/full",o.messageDirection=t.MessageDirection.clientToServer,o.type=new t.ProtocolRequestType(o.method),o.registrationMethod=n.method,(r=e.SemanticTokensDeltaRequest||(e.SemanticTokensDeltaRequest={})).method="textDocument/semanticTokens/full/delta",r.messageDirection=t.MessageDirection.clientToServer,r.type=new t.ProtocolRequestType(r.method),r.registrationMethod=n.method,(i=e.SemanticTokensRangeRequest||(e.SemanticTokensRangeRequest={})).method="textDocument/semanticTokens/range",i.messageDirection=t.MessageDirection.clientToServer,i.type=new t.ProtocolRequestType(i.method),i.registrationMethod=n.method,(s=e.SemanticTokensRefreshRequest||(e.SemanticTokensRefreshRequest={})).method="workspace/semanticTokens/refresh",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolRequestType0(s.method)}(Jt);var Gt={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ShowDocumentRequest=void 0;const t=Ot;var n;(n=e.ShowDocumentRequest||(e.ShowDocumentRequest={})).method="window/showDocument",n.messageDirection=t.MessageDirection.serverToClient,n.type=new t.ProtocolRequestType(n.method)}(Gt);var Xt={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedEditingRangeRequest=void 0;const t=Ot;var n;(n=e.LinkedEditingRangeRequest||(e.LinkedEditingRangeRequest={})).method="textDocument/linkedEditingRange",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method)}(Xt);var Yt={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.DidRenameFilesNotification=e.WillRenameFilesRequest=e.DidCreateFilesNotification=e.WillCreateFilesRequest=e.FileOperationPatternKind=void 0;const t=Ot;var n,o,r,i,s,a,c;(n=e.FileOperationPatternKind||(e.FileOperationPatternKind={})).file="file",n.folder="folder",(o=e.WillCreateFilesRequest||(e.WillCreateFilesRequest={})).method="workspace/willCreateFiles",o.messageDirection=t.MessageDirection.clientToServer,o.type=new t.ProtocolRequestType(o.method),(r=e.DidCreateFilesNotification||(e.DidCreateFilesNotification={})).method="workspace/didCreateFiles",r.messageDirection=t.MessageDirection.clientToServer,r.type=new t.ProtocolNotificationType(r.method),(i=e.WillRenameFilesRequest||(e.WillRenameFilesRequest={})).method="workspace/willRenameFiles",i.messageDirection=t.MessageDirection.clientToServer,i.type=new t.ProtocolRequestType(i.method),(s=e.DidRenameFilesNotification||(e.DidRenameFilesNotification={})).method="workspace/didRenameFiles",s.messageDirection=t.MessageDirection.clientToServer,s.type=new t.ProtocolNotificationType(s.method),(a=e.DidDeleteFilesNotification||(e.DidDeleteFilesNotification={})).method="workspace/didDeleteFiles",a.messageDirection=t.MessageDirection.clientToServer,a.type=new t.ProtocolNotificationType(a.method),(c=e.WillDeleteFilesRequest||(e.WillDeleteFilesRequest={})).method="workspace/willDeleteFiles",c.messageDirection=t.MessageDirection.clientToServer,c.type=new t.ProtocolRequestType(c.method)}(Yt);var Qt={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=void 0;const t=Ot;var n,o,r;(n=e.UniquenessLevel||(e.UniquenessLevel={})).document="document",n.project="project",n.group="group",n.scheme="scheme",n.global="global",(o=e.MonikerKind||(e.MonikerKind={})).$import="import",o.$export="export",o.local="local",(r=e.MonikerRequest||(e.MonikerRequest={})).method="textDocument/moniker",r.messageDirection=t.MessageDirection.clientToServer,r.type=new t.ProtocolRequestType(r.method)}(Qt);var Zt={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TypeHierarchySubtypesRequest=e.TypeHierarchySupertypesRequest=e.TypeHierarchyPrepareRequest=void 0;const t=Ot;var n,o,r;(n=e.TypeHierarchyPrepareRequest||(e.TypeHierarchyPrepareRequest={})).method="textDocument/prepareTypeHierarchy",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method),(o=e.TypeHierarchySupertypesRequest||(e.TypeHierarchySupertypesRequest={})).method="typeHierarchy/supertypes",o.messageDirection=t.MessageDirection.clientToServer,o.type=new t.ProtocolRequestType(o.method),(r=e.TypeHierarchySubtypesRequest||(e.TypeHierarchySubtypesRequest={})).method="typeHierarchy/subtypes",r.messageDirection=t.MessageDirection.clientToServer,r.type=new t.ProtocolRequestType(r.method)}(Zt);var en={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlineValueRefreshRequest=e.InlineValueRequest=void 0;const t=Ot;var n,o;(n=e.InlineValueRequest||(e.InlineValueRequest={})).method="textDocument/inlineValue",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method),(o=e.InlineValueRefreshRequest||(e.InlineValueRefreshRequest={})).method="workspace/inlineValue/refresh",o.messageDirection=t.MessageDirection.clientToServer,o.type=new t.ProtocolRequestType0(o.method)}(en);var tn={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=void 0;const t=Ot;var n,o,r;(n=e.InlayHintRequest||(e.InlayHintRequest={})).method="textDocument/inlayHint",n.messageDirection=t.MessageDirection.clientToServer,n.type=new t.ProtocolRequestType(n.method),(o=e.InlayHintResolveRequest||(e.InlayHintResolveRequest={})).method="inlayHint/resolve",o.messageDirection=t.MessageDirection.clientToServer,o.type=new t.ProtocolRequestType(o.method),(r=e.InlayHintRefreshRequest||(e.InlayHintRefreshRequest={})).method="workspace/inlayHint/refresh",r.messageDirection=t.MessageDirection.clientToServer,r.type=new t.ProtocolRequestType0(r.method)}(tn);var nn={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DiagnosticRefreshRequest=e.WorkspaceDiagnosticRequest=e.DocumentDiagnosticRequest=e.DocumentDiagnosticReportKind=e.DiagnosticServerCancellationData=void 0;const t=m,n=jt,o=Ot;var r,i,s,a;(e.DiagnosticServerCancellationData||(e.DiagnosticServerCancellationData={})).is=function(e){const t=e;return t&&n.boolean(t.retriggerRequest)},(r=e.DocumentDiagnosticReportKind||(e.DocumentDiagnosticReportKind={})).Full="full",r.Unchanged="unchanged",(i=e.DocumentDiagnosticRequest||(e.DocumentDiagnosticRequest={})).method="textDocument/diagnostic",i.messageDirection=o.MessageDirection.clientToServer,i.type=new o.ProtocolRequestType(i.method),i.partialResult=new t.ProgressType,(s=e.WorkspaceDiagnosticRequest||(e.WorkspaceDiagnosticRequest={})).method="workspace/diagnostic",s.messageDirection=o.MessageDirection.clientToServer,s.type=new o.ProtocolRequestType(s.method),s.partialResult=new t.ProgressType,(a=e.DiagnosticRefreshRequest||(e.DiagnosticRefreshRequest={})).method="workspace/diagnostic/refresh",a.messageDirection=o.MessageDirection.clientToServer,a.type=new o.ProtocolRequestType0(a.method)}(nn);var on={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DidCloseNotebookDocumentNotification=e.DidSaveNotebookDocumentNotification=e.DidChangeNotebookDocumentNotification=e.NotebookCellArrayChange=e.DidOpenNotebookDocumentNotification=e.NotebookDocumentSyncRegistrationType=e.NotebookDocument=e.NotebookCell=e.ExecutionSummary=e.NotebookCellKind=void 0;const t=Mt,n=jt,o=Ot;var r,i,s,a,c,u,l,d,f,h;!function(e){e.Markup=1,e.Code=2,e.is=function(e){return 1===e||2===e}}(r=e.NotebookCellKind||(e.NotebookCellKind={})),function(e){e.create=function(e,t){const n={executionOrder:e};return!0!==t&&!1!==t||(n.success=t),n},e.is=function(e){const o=e;return n.objectLiteral(o)&&t.uinteger.is(o.executionOrder)&&(void 0===o.success||n.boolean(o.success))},e.equals=function(e,t){return e===t||null!=e&&null!=t&&e.executionOrder===t.executionOrder&&e.success===t.success}}(i=e.ExecutionSummary||(e.ExecutionSummary={})),function(e){function o(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;const r=Array.isArray(e),i=Array.isArray(t);if(r!==i)return!1;if(r&&i){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!o(e[n],t[n]))return!1}if(n.objectLiteral(e)&&n.objectLiteral(t)){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;if(n.sort(),r.sort(),!o(n,r))return!1;for(let r=0;r<n.length;r++){const i=n[r];if(!o(e[i],t[i]))return!1}}return!0}e.create=function(e,t){return{kind:e,document:t}},e.is=function(e){const o=e;return n.objectLiteral(o)&&r.is(o.kind)&&t.DocumentUri.is(o.document)&&(void 0===o.metadata||n.objectLiteral(o.metadata))},e.diff=function(e,t){const n=new Set;return e.document!==t.document&&n.add("document"),e.kind!==t.kind&&n.add("kind"),e.executionSummary!==t.executionSummary&&n.add("executionSummary"),void 0===e.metadata&&void 0===t.metadata||o(e.metadata,t.metadata)||n.add("metadata"),void 0===e.executionSummary&&void 0===t.executionSummary||i.equals(e.executionSummary,t.executionSummary)||n.add("executionSummary"),n}}(s=e.NotebookCell||(e.NotebookCell={})),(a=e.NotebookDocument||(e.NotebookDocument={})).create=function(e,t,n,o){return{uri:e,notebookType:t,version:n,cells:o}},a.is=function(e){const o=e;return n.objectLiteral(o)&&n.string(o.uri)&&t.integer.is(o.version)&&n.typedArray(o.cells,s.is)},function(e){e.method="notebookDocument/sync",e.messageDirection=o.MessageDirection.clientToServer,e.type=new o.RegistrationType(e.method)}(c=e.NotebookDocumentSyncRegistrationType||(e.NotebookDocumentSyncRegistrationType={})),(u=e.DidOpenNotebookDocumentNotification||(e.DidOpenNotebookDocumentNotification={})).method="notebookDocument/didOpen",u.messageDirection=o.MessageDirection.clientToServer,u.type=new o.ProtocolNotificationType(u.method),u.registrationMethod=c.method,(l=e.NotebookCellArrayChange||(e.NotebookCellArrayChange={})).is=function(e){const o=e;return n.objectLiteral(o)&&t.uinteger.is(o.start)&&t.uinteger.is(o.deleteCount)&&(void 0===o.cells||n.typedArray(o.cells,s.is))},l.create=function(e,t,n){const o={start:e,deleteCount:t};return void 0!==n&&(o.cells=n),o},(d=e.DidChangeNotebookDocumentNotification||(e.DidChangeNotebookDocumentNotification={})).method="notebookDocument/didChange",d.messageDirection=o.MessageDirection.clientToServer,d.type=new o.ProtocolNotificationType(d.method),d.registrationMethod=c.method,(f=e.DidSaveNotebookDocumentNotification||(e.DidSaveNotebookDocumentNotification={})).method="notebookDocument/didSave",f.messageDirection=o.MessageDirection.clientToServer,f.type=new o.ProtocolNotificationType(f.method),f.registrationMethod=c.method,(h=e.DidCloseNotebookDocumentNotification||(e.DidCloseNotebookDocumentNotification={})).method="notebookDocument/didClose",h.messageDirection=o.MessageDirection.clientToServer,h.type=new o.ProtocolNotificationType(h.method),h.registrationMethod=c.method}(on),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.WorkspaceSymbolRequest=e.CodeActionResolveRequest=e.CodeActionRequest=e.DocumentSymbolRequest=e.DocumentHighlightRequest=e.ReferencesRequest=e.DefinitionRequest=e.SignatureHelpRequest=e.SignatureHelpTriggerKind=e.HoverRequest=e.CompletionResolveRequest=e.CompletionRequest=e.CompletionTriggerKind=e.PublishDiagnosticsNotification=e.WatchKind=e.RelativePattern=e.FileChangeType=e.DidChangeWatchedFilesNotification=e.WillSaveTextDocumentWaitUntilRequest=e.WillSaveTextDocumentNotification=e.TextDocumentSaveReason=e.DidSaveTextDocumentNotification=e.DidCloseTextDocumentNotification=e.DidChangeTextDocumentNotification=e.TextDocumentContentChangeEvent=e.DidOpenTextDocumentNotification=e.TextDocumentSyncKind=e.TelemetryEventNotification=e.LogMessageNotification=e.ShowMessageRequest=e.ShowMessageNotification=e.MessageType=e.DidChangeConfigurationNotification=e.ExitNotification=e.ShutdownRequest=e.InitializedNotification=e.InitializeErrorCodes=e.InitializeRequest=e.WorkDoneProgressOptions=e.TextDocumentRegistrationOptions=e.StaticRegistrationOptions=e.PositionEncodingKind=e.FailureHandlingKind=e.ResourceOperationKind=e.UnregistrationRequest=e.RegistrationRequest=e.DocumentSelector=e.NotebookCellTextDocumentFilter=e.NotebookDocumentFilter=e.TextDocumentFilter=void 0,e.TypeHierarchySubtypesRequest=e.TypeHierarchyPrepareRequest=e.MonikerRequest=e.MonikerKind=e.UniquenessLevel=e.WillDeleteFilesRequest=e.DidDeleteFilesNotification=e.WillRenameFilesRequest=e.DidRenameFilesNotification=e.WillCreateFilesRequest=e.DidCreateFilesNotification=e.FileOperationPatternKind=e.LinkedEditingRangeRequest=e.ShowDocumentRequest=e.SemanticTokensRegistrationType=e.SemanticTokensRefreshRequest=e.SemanticTokensRangeRequest=e.SemanticTokensDeltaRequest=e.SemanticTokensRequest=e.TokenFormat=e.CallHierarchyPrepareRequest=e.CallHierarchyOutgoingCallsRequest=e.CallHierarchyIncomingCallsRequest=e.WorkDoneProgressCancelNotification=e.WorkDoneProgressCreateRequest=e.WorkDoneProgress=e.SelectionRangeRequest=e.DeclarationRequest=e.FoldingRangeRequest=e.ColorPresentationRequest=e.DocumentColorRequest=e.ConfigurationRequest=e.DidChangeWorkspaceFoldersNotification=e.WorkspaceFoldersRequest=e.TypeDefinitionRequest=e.ImplementationRequest=e.ApplyWorkspaceEditRequest=e.ExecuteCommandRequest=e.PrepareRenameRequest=e.RenameRequest=e.PrepareSupportDefaultBehavior=e.DocumentOnTypeFormattingRequest=e.DocumentRangeFormattingRequest=e.DocumentFormattingRequest=e.DocumentLinkResolveRequest=e.DocumentLinkRequest=e.CodeLensRefreshRequest=e.CodeLensResolveRequest=e.CodeLensRequest=e.WorkspaceSymbolResolveRequest=void 0,e.DidCloseNotebookDocumentNotification=e.DidSaveNotebookDocumentNotification=e.DidChangeNotebookDocumentNotification=e.NotebookCellArrayChange=e.DidOpenNotebookDocumentNotification=e.NotebookDocumentSyncRegistrationType=e.NotebookDocument=e.NotebookCell=e.ExecutionSummary=e.NotebookCellKind=e.DiagnosticRefreshRequest=e.WorkspaceDiagnosticRequest=e.DocumentDiagnosticRequest=e.DocumentDiagnosticReportKind=e.DiagnosticServerCancellationData=e.InlayHintRefreshRequest=e.InlayHintResolveRequest=e.InlayHintRequest=e.InlineValueRefreshRequest=e.InlineValueRequest=e.TypeHierarchySupertypesRequest=void 0;const t=Ot,n=Mt,o=jt,r=Wt;Object.defineProperty(e,"ImplementationRequest",{enumerable:!0,get:function(){return r.ImplementationRequest}});const i=Lt;Object.defineProperty(e,"TypeDefinitionRequest",{enumerable:!0,get:function(){return i.TypeDefinitionRequest}});const s=At;Object.defineProperty(e,"WorkspaceFoldersRequest",{enumerable:!0,get:function(){return s.WorkspaceFoldersRequest}}),Object.defineProperty(e,"DidChangeWorkspaceFoldersNotification",{enumerable:!0,get:function(){return s.DidChangeWorkspaceFoldersNotification}});const a=Ht;Object.defineProperty(e,"ConfigurationRequest",{enumerable:!0,get:function(){return a.ConfigurationRequest}});const c=Ut;Object.defineProperty(e,"DocumentColorRequest",{enumerable:!0,get:function(){return c.DocumentColorRequest}}),Object.defineProperty(e,"ColorPresentationRequest",{enumerable:!0,get:function(){return c.ColorPresentationRequest}});const u=zt;Object.defineProperty(e,"FoldingRangeRequest",{enumerable:!0,get:function(){return u.FoldingRangeRequest}});const l=$t;Object.defineProperty(e,"DeclarationRequest",{enumerable:!0,get:function(){return l.DeclarationRequest}});const d=Kt;Object.defineProperty(e,"SelectionRangeRequest",{enumerable:!0,get:function(){return d.SelectionRangeRequest}});const f=Vt;Object.defineProperty(e,"WorkDoneProgress",{enumerable:!0,get:function(){return f.WorkDoneProgress}}),Object.defineProperty(e,"WorkDoneProgressCreateRequest",{enumerable:!0,get:function(){return f.WorkDoneProgressCreateRequest}}),Object.defineProperty(e,"WorkDoneProgressCancelNotification",{enumerable:!0,get:function(){return f.WorkDoneProgressCancelNotification}});const h=Bt;Object.defineProperty(e,"CallHierarchyIncomingCallsRequest",{enumerable:!0,get:function(){return h.CallHierarchyIncomingCallsRequest}}),Object.defineProperty(e,"CallHierarchyOutgoingCallsRequest",{enumerable:!0,get:function(){return h.CallHierarchyOutgoingCallsRequest}}),Object.defineProperty(e,"CallHierarchyPrepareRequest",{enumerable:!0,get:function(){return h.CallHierarchyPrepareRequest}});const g=Jt;Object.defineProperty(e,"TokenFormat",{enumerable:!0,get:function(){return g.TokenFormat}}),Object.defineProperty(e,"SemanticTokensRequest",{enumerable:!0,get:function(){return g.SemanticTokensRequest}}),Object.defineProperty(e,"SemanticTokensDeltaRequest",{enumerable:!0,get:function(){return g.SemanticTokensDeltaRequest}}),Object.defineProperty(e,"SemanticTokensRangeRequest",{enumerable:!0,get:function(){return g.SemanticTokensRangeRequest}}),Object.defineProperty(e,"SemanticTokensRefreshRequest",{enumerable:!0,get:function(){return g.SemanticTokensRefreshRequest}}),Object.defineProperty(e,"SemanticTokensRegistrationType",{enumerable:!0,get:function(){return g.SemanticTokensRegistrationType}});const p=Gt;Object.defineProperty(e,"ShowDocumentRequest",{enumerable:!0,get:function(){return p.ShowDocumentRequest}});const m=Xt;Object.defineProperty(e,"LinkedEditingRangeRequest",{enumerable:!0,get:function(){return m.LinkedEditingRangeRequest}});const y=Yt;Object.defineProperty(e,"FileOperationPatternKind",{enumerable:!0,get:function(){return y.FileOperationPatternKind}}),Object.defineProperty(e,"DidCreateFilesNotification",{enumerable:!0,get:function(){return y.DidCreateFilesNotification}}),Object.defineProperty(e,"WillCreateFilesRequest",{enumerable:!0,get:function(){return y.WillCreateFilesRequest}}),Object.defineProperty(e,"DidRenameFilesNotification",{enumerable:!0,get:function(){return y.DidRenameFilesNotification}}),Object.defineProperty(e,"WillRenameFilesRequest",{enumerable:!0,get:function(){return y.WillRenameFilesRequest}}),Object.defineProperty(e,"DidDeleteFilesNotification",{enumerable:!0,get:function(){return y.DidDeleteFilesNotification}}),Object.defineProperty(e,"WillDeleteFilesRequest",{enumerable:!0,get:function(){return y.WillDeleteFilesRequest}});const v=Qt;Object.defineProperty(e,"UniquenessLevel",{enumerable:!0,get:function(){return v.UniquenessLevel}}),Object.defineProperty(e,"MonikerKind",{enumerable:!0,get:function(){return v.MonikerKind}}),Object.defineProperty(e,"MonikerRequest",{enumerable:!0,get:function(){return v.MonikerRequest}});const b=Zt;Object.defineProperty(e,"TypeHierarchyPrepareRequest",{enumerable:!0,get:function(){return b.TypeHierarchyPrepareRequest}}),Object.defineProperty(e,"TypeHierarchySubtypesRequest",{enumerable:!0,get:function(){return b.TypeHierarchySubtypesRequest}}),Object.defineProperty(e,"TypeHierarchySupertypesRequest",{enumerable:!0,get:function(){return b.TypeHierarchySupertypesRequest}});const R=en;Object.defineProperty(e,"InlineValueRequest",{enumerable:!0,get:function(){return R.InlineValueRequest}}),Object.defineProperty(e,"InlineValueRefreshRequest",{enumerable:!0,get:function(){return R.InlineValueRefreshRequest}});const D=tn;Object.defineProperty(e,"InlayHintRequest",{enumerable:!0,get:function(){return D.InlayHintRequest}}),Object.defineProperty(e,"InlayHintResolveRequest",{enumerable:!0,get:function(){return D.InlayHintResolveRequest}}),Object.defineProperty(e,"InlayHintRefreshRequest",{enumerable:!0,get:function(){return D.InlayHintRefreshRequest}});const T=nn;Object.defineProperty(e,"DiagnosticServerCancellationData",{enumerable:!0,get:function(){return T.DiagnosticServerCancellationData}}),Object.defineProperty(e,"DocumentDiagnosticReportKind",{enumerable:!0,get:function(){return T.DocumentDiagnosticReportKind}}),Object.defineProperty(e,"DocumentDiagnosticRequest",{enumerable:!0,get:function(){return T.DocumentDiagnosticRequest}}),Object.defineProperty(e,"WorkspaceDiagnosticRequest",{enumerable:!0,get:function(){return T.WorkspaceDiagnosticRequest}}),Object.defineProperty(e,"DiagnosticRefreshRequest",{enumerable:!0,get:function(){return T.DiagnosticRefreshRequest}});const _=on;var k,C,w,P,q,S,N,x,M,O,E,j,F,I,W,L,A,H,U,z,$,K,V,B,J,G,X,Y,Q,Z,ee,te,ne,oe,re,ie,se,ae,ce,ue,le,de,fe,he,ge,pe,me,ye,ve,be,Re,De,Te,_e,ke,Ce,we,Pe,qe;Object.defineProperty(e,"NotebookCellKind",{enumerable:!0,get:function(){return _.NotebookCellKind}}),Object.defineProperty(e,"ExecutionSummary",{enumerable:!0,get:function(){return _.ExecutionSummary}}),Object.defineProperty(e,"NotebookCell",{enumerable:!0,get:function(){return _.NotebookCell}}),Object.defineProperty(e,"NotebookDocument",{enumerable:!0,get:function(){return _.NotebookDocument}}),Object.defineProperty(e,"NotebookDocumentSyncRegistrationType",{enumerable:!0,get:function(){return _.NotebookDocumentSyncRegistrationType}}),Object.defineProperty(e,"DidOpenNotebookDocumentNotification",{enumerable:!0,get:function(){return _.DidOpenNotebookDocumentNotification}}),Object.defineProperty(e,"NotebookCellArrayChange",{enumerable:!0,get:function(){return _.NotebookCellArrayChange}}),Object.defineProperty(e,"DidChangeNotebookDocumentNotification",{enumerable:!0,get:function(){return _.DidChangeNotebookDocumentNotification}}),Object.defineProperty(e,"DidSaveNotebookDocumentNotification",{enumerable:!0,get:function(){return _.DidSaveNotebookDocumentNotification}}),Object.defineProperty(e,"DidCloseNotebookDocumentNotification",{enumerable:!0,get:function(){return _.DidCloseNotebookDocumentNotification}}),function(e){e.is=function(e){const t=e;return o.string(t.language)||o.string(t.scheme)||o.string(t.pattern)}}(k=e.TextDocumentFilter||(e.TextDocumentFilter={})),function(e){e.is=function(e){const t=e;return o.objectLiteral(t)&&(o.string(t.notebookType)||o.string(t.scheme)||o.string(t.pattern))}}(C=e.NotebookDocumentFilter||(e.NotebookDocumentFilter={})),function(e){e.is=function(e){const t=e;return o.objectLiteral(t)&&(o.string(t.notebook)||C.is(t.notebook))&&(void 0===t.language||o.string(t.language))}}(w=e.NotebookCellTextDocumentFilter||(e.NotebookCellTextDocumentFilter={})),function(e){e.is=function(e){if(!Array.isArray(e))return!1;for(let t of e)if(!o.string(t)&&!k.is(t)&&!w.is(t))return!1;return!0}}(P=e.DocumentSelector||(e.DocumentSelector={})),(q=e.RegistrationRequest||(e.RegistrationRequest={})).method="client/registerCapability",q.messageDirection=t.MessageDirection.serverToClient,q.type=new t.ProtocolRequestType(q.method),(S=e.UnregistrationRequest||(e.UnregistrationRequest={})).method="client/unregisterCapability",S.messageDirection=t.MessageDirection.serverToClient,S.type=new t.ProtocolRequestType(S.method),(N=e.ResourceOperationKind||(e.ResourceOperationKind={})).Create="create",N.Rename="rename",N.Delete="delete",(x=e.FailureHandlingKind||(e.FailureHandlingKind={})).Abort="abort",x.Transactional="transactional",x.TextOnlyTransactional="textOnlyTransactional",x.Undo="undo",(M=e.PositionEncodingKind||(e.PositionEncodingKind={})).UTF8="utf-8",M.UTF16="utf-16",M.UTF32="utf-32",(e.StaticRegistrationOptions||(e.StaticRegistrationOptions={})).hasId=function(e){const t=e;return t&&o.string(t.id)&&t.id.length>0},(e.TextDocumentRegistrationOptions||(e.TextDocumentRegistrationOptions={})).is=function(e){const t=e;return t&&(null===t.documentSelector||P.is(t.documentSelector))},(O=e.WorkDoneProgressOptions||(e.WorkDoneProgressOptions={})).is=function(e){const t=e;return o.objectLiteral(t)&&(void 0===t.workDoneProgress||o.boolean(t.workDoneProgress))},O.hasWorkDoneProgress=function(e){const t=e;return t&&o.boolean(t.workDoneProgress)},(E=e.InitializeRequest||(e.InitializeRequest={})).method="initialize",E.messageDirection=t.MessageDirection.clientToServer,E.type=new t.ProtocolRequestType(E.method),(e.InitializeErrorCodes||(e.InitializeErrorCodes={})).unknownProtocolVersion=1,(j=e.InitializedNotification||(e.InitializedNotification={})).method="initialized",j.messageDirection=t.MessageDirection.clientToServer,j.type=new t.ProtocolNotificationType(j.method),(F=e.ShutdownRequest||(e.ShutdownRequest={})).method="shutdown",F.messageDirection=t.MessageDirection.clientToServer,F.type=new t.ProtocolRequestType0(F.method),(I=e.ExitNotification||(e.ExitNotification={})).method="exit",I.messageDirection=t.MessageDirection.clientToServer,I.type=new t.ProtocolNotificationType0(I.method),(W=e.DidChangeConfigurationNotification||(e.DidChangeConfigurationNotification={})).method="workspace/didChangeConfiguration",W.messageDirection=t.MessageDirection.clientToServer,W.type=new t.ProtocolNotificationType(W.method),(L=e.MessageType||(e.MessageType={})).Error=1,L.Warning=2,L.Info=3,L.Log=4,(A=e.ShowMessageNotification||(e.ShowMessageNotification={})).method="window/showMessage",A.messageDirection=t.MessageDirection.serverToClient,A.type=new t.ProtocolNotificationType(A.method),(H=e.ShowMessageRequest||(e.ShowMessageRequest={})).method="window/showMessageRequest",H.messageDirection=t.MessageDirection.serverToClient,H.type=new t.ProtocolRequestType(H.method),(U=e.LogMessageNotification||(e.LogMessageNotification={})).method="window/logMessage",U.messageDirection=t.MessageDirection.serverToClient,U.type=new t.ProtocolNotificationType(U.method),(z=e.TelemetryEventNotification||(e.TelemetryEventNotification={})).method="telemetry/event",z.messageDirection=t.MessageDirection.serverToClient,z.type=new t.ProtocolNotificationType(z.method),($=e.TextDocumentSyncKind||(e.TextDocumentSyncKind={})).None=0,$.Full=1,$.Incremental=2,(K=e.DidOpenTextDocumentNotification||(e.DidOpenTextDocumentNotification={})).method="textDocument/didOpen",K.messageDirection=t.MessageDirection.clientToServer,K.type=new t.ProtocolNotificationType(K.method),(V=e.TextDocumentContentChangeEvent||(e.TextDocumentContentChangeEvent={})).isIncremental=function(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0!==t.range&&(void 0===t.rangeLength||"number"==typeof t.rangeLength)},V.isFull=function(e){let t=e;return null!=t&&"string"==typeof t.text&&void 0===t.range&&void 0===t.rangeLength},(B=e.DidChangeTextDocumentNotification||(e.DidChangeTextDocumentNotification={})).method="textDocument/didChange",B.messageDirection=t.MessageDirection.clientToServer,B.type=new t.ProtocolNotificationType(B.method),(J=e.DidCloseTextDocumentNotification||(e.DidCloseTextDocumentNotification={})).method="textDocument/didClose",J.messageDirection=t.MessageDirection.clientToServer,J.type=new t.ProtocolNotificationType(J.method),(G=e.DidSaveTextDocumentNotification||(e.DidSaveTextDocumentNotification={})).method="textDocument/didSave",G.messageDirection=t.MessageDirection.clientToServer,G.type=new t.ProtocolNotificationType(G.method),(X=e.TextDocumentSaveReason||(e.TextDocumentSaveReason={})).Manual=1,X.AfterDelay=2,X.FocusOut=3,(Y=e.WillSaveTextDocumentNotification||(e.WillSaveTextDocumentNotification={})).method="textDocument/willSave",Y.messageDirection=t.MessageDirection.clientToServer,Y.type=new t.ProtocolNotificationType(Y.method),(Q=e.WillSaveTextDocumentWaitUntilRequest||(e.WillSaveTextDocumentWaitUntilRequest={})).method="textDocument/willSaveWaitUntil",Q.messageDirection=t.MessageDirection.clientToServer,Q.type=new t.ProtocolRequestType(Q.method),(Z=e.DidChangeWatchedFilesNotification||(e.DidChangeWatchedFilesNotification={})).method="workspace/didChangeWatchedFiles",Z.messageDirection=t.MessageDirection.clientToServer,Z.type=new t.ProtocolNotificationType(Z.method),(ee=e.FileChangeType||(e.FileChangeType={})).Created=1,ee.Changed=2,ee.Deleted=3,(e.RelativePattern||(e.RelativePattern={})).is=function(e){const t=e;return o.objectLiteral(t)&&(n.URI.is(t.baseUri)||n.WorkspaceFolder.is(t.baseUri))&&o.string(t.pattern)},(te=e.WatchKind||(e.WatchKind={})).Create=1,te.Change=2,te.Delete=4,(ne=e.PublishDiagnosticsNotification||(e.PublishDiagnosticsNotification={})).method="textDocument/publishDiagnostics",ne.messageDirection=t.MessageDirection.serverToClient,ne.type=new t.ProtocolNotificationType(ne.method),(oe=e.CompletionTriggerKind||(e.CompletionTriggerKind={})).Invoked=1,oe.TriggerCharacter=2,oe.TriggerForIncompleteCompletions=3,(re=e.CompletionRequest||(e.CompletionRequest={})).method="textDocument/completion",re.messageDirection=t.MessageDirection.clientToServer,re.type=new t.ProtocolRequestType(re.method),(ie=e.CompletionResolveRequest||(e.CompletionResolveRequest={})).method="completionItem/resolve",ie.messageDirection=t.MessageDirection.clientToServer,ie.type=new t.ProtocolRequestType(ie.method),(se=e.HoverRequest||(e.HoverRequest={})).method="textDocument/hover",se.messageDirection=t.MessageDirection.clientToServer,se.type=new t.ProtocolRequestType(se.method),(ae=e.SignatureHelpTriggerKind||(e.SignatureHelpTriggerKind={})).Invoked=1,ae.TriggerCharacter=2,ae.ContentChange=3,(ce=e.SignatureHelpRequest||(e.SignatureHelpRequest={})).method="textDocument/signatureHelp",ce.messageDirection=t.MessageDirection.clientToServer,ce.type=new t.ProtocolRequestType(ce.method),(ue=e.DefinitionRequest||(e.DefinitionRequest={})).method="textDocument/definition",ue.messageDirection=t.MessageDirection.clientToServer,ue.type=new t.ProtocolRequestType(ue.method),(le=e.ReferencesRequest||(e.ReferencesRequest={})).method="textDocument/references",le.messageDirection=t.MessageDirection.clientToServer,le.type=new t.ProtocolRequestType(le.method),(de=e.DocumentHighlightRequest||(e.DocumentHighlightRequest={})).method="textDocument/documentHighlight",de.messageDirection=t.MessageDirection.clientToServer,de.type=new t.ProtocolRequestType(de.method),(fe=e.DocumentSymbolRequest||(e.DocumentSymbolRequest={})).method="textDocument/documentSymbol",fe.messageDirection=t.MessageDirection.clientToServer,fe.type=new t.ProtocolRequestType(fe.method),(he=e.CodeActionRequest||(e.CodeActionRequest={})).method="textDocument/codeAction",he.messageDirection=t.MessageDirection.clientToServer,he.type=new t.ProtocolRequestType(he.method),(ge=e.CodeActionResolveRequest||(e.CodeActionResolveRequest={})).method="codeAction/resolve",ge.messageDirection=t.MessageDirection.clientToServer,ge.type=new t.ProtocolRequestType(ge.method),(pe=e.WorkspaceSymbolRequest||(e.WorkspaceSymbolRequest={})).method="workspace/symbol",pe.messageDirection=t.MessageDirection.clientToServer,pe.type=new t.ProtocolRequestType(pe.method),(me=e.WorkspaceSymbolResolveRequest||(e.WorkspaceSymbolResolveRequest={})).method="workspaceSymbol/resolve",me.messageDirection=t.MessageDirection.clientToServer,me.type=new t.ProtocolRequestType(me.method),(ye=e.CodeLensRequest||(e.CodeLensRequest={})).method="textDocument/codeLens",ye.messageDirection=t.MessageDirection.clientToServer,ye.type=new t.ProtocolRequestType(ye.method),(ve=e.CodeLensResolveRequest||(e.CodeLensResolveRequest={})).method="codeLens/resolve",ve.messageDirection=t.MessageDirection.clientToServer,ve.type=new t.ProtocolRequestType(ve.method),(be=e.CodeLensRefreshRequest||(e.CodeLensRefreshRequest={})).method="workspace/codeLens/refresh",be.messageDirection=t.MessageDirection.serverToClient,be.type=new t.ProtocolRequestType0(be.method),(Re=e.DocumentLinkRequest||(e.DocumentLinkRequest={})).method="textDocument/documentLink",Re.messageDirection=t.MessageDirection.clientToServer,Re.type=new t.ProtocolRequestType(Re.method),(De=e.DocumentLinkResolveRequest||(e.DocumentLinkResolveRequest={})).method="documentLink/resolve",De.messageDirection=t.MessageDirection.clientToServer,De.type=new t.ProtocolRequestType(De.method),(Te=e.DocumentFormattingRequest||(e.DocumentFormattingRequest={})).method="textDocument/formatting",Te.messageDirection=t.MessageDirection.clientToServer,Te.type=new t.ProtocolRequestType(Te.method),(_e=e.DocumentRangeFormattingRequest||(e.DocumentRangeFormattingRequest={})).method="textDocument/rangeFormatting",_e.messageDirection=t.MessageDirection.clientToServer,_e.type=new t.ProtocolRequestType(_e.method),(ke=e.DocumentOnTypeFormattingRequest||(e.DocumentOnTypeFormattingRequest={})).method="textDocument/onTypeFormatting",ke.messageDirection=t.MessageDirection.clientToServer,ke.type=new t.ProtocolRequestType(ke.method),(e.PrepareSupportDefaultBehavior||(e.PrepareSupportDefaultBehavior={})).Identifier=1,(Ce=e.RenameRequest||(e.RenameRequest={})).method="textDocument/rename",Ce.messageDirection=t.MessageDirection.clientToServer,Ce.type=new t.ProtocolRequestType(Ce.method),(we=e.PrepareRenameRequest||(e.PrepareRenameRequest={})).method="textDocument/prepareRename",we.messageDirection=t.MessageDirection.clientToServer,we.type=new t.ProtocolRequestType(we.method),(Pe=e.ExecuteCommandRequest||(e.ExecuteCommandRequest={})).method="workspace/executeCommand",Pe.messageDirection=t.MessageDirection.clientToServer,Pe.type=new t.ProtocolRequestType(Pe.method),(qe=e.ApplyWorkspaceEditRequest||(e.ApplyWorkspaceEditRequest={})).method="workspace/applyEdit",qe.messageDirection=t.MessageDirection.serverToClient,qe.type=new t.ProtocolRequestType("workspace/applyEdit")}(Et);var rn={};Object.defineProperty(rn,"__esModule",{value:!0}),rn.createProtocolConnection=void 0;const sn=m;rn.createProtocolConnection=function(e,t,n,o){return sn.ConnectionStrategy.is(o)&&(o={connectionStrategy:o}),(0,sn.createMessageConnection)(e,t,n,o)},function(e){var t=c&&c.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),n=c&&c.__exportStar||function(e,n){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(n,o)||t(n,e,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.LSPErrorCodes=e.createProtocolConnection=void 0,n(m,e),n(Mt,e),n(Ot,e),n(Et,e);var o,r=rn;Object.defineProperty(e,"createProtocolConnection",{enumerable:!0,get:function(){return r.createProtocolConnection}}),(o=e.LSPErrorCodes||(e.LSPErrorCodes={})).lspReservedErrorRangeStart=-32899,o.RequestFailed=-32803,o.ServerCancelled=-32802,o.ContentModified=-32801,o.RequestCancelled=-32800,o.lspReservedErrorRangeEnd=-32800}(je),function(e){var t=c&&c.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),n=c&&c.__exportStar||function(e,n){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(n,o)||t(n,e,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.createProtocolConnection=void 0;const o=Ee;n(Ee,e),n(je,e),e.createProtocolConnection=function(e,t,n,r){return(0,o.createMessageConnection)(e,t,n,r)}}(p);var an={};Object.defineProperty(an,"__esModule",{value:!0}),an.generateUuid=an.parse=an.isUUID=an.v4=an.empty=void 0;class cn{constructor(e){this._value=e}asHex(){return this._value}equals(e){return this.asHex()===e.asHex()}}class un extends cn{constructor(){super([un._randomHex(),un._randomHex(),un._randomHex(),un._randomHex(),un._randomHex(),un._randomHex(),un._randomHex(),un._randomHex(),"-",un._randomHex(),un._randomHex(),un._randomHex(),un._randomHex(),"-","4",un._randomHex(),un._randomHex(),un._randomHex(),"-",un._oneOf(un._timeHighBits),un._randomHex(),un._randomHex(),un._randomHex(),"-",un._randomHex(),un._randomHex(),un._randomHex(),un._randomHex(),un._randomHex(),un._randomHex(),un._randomHex(),un._randomHex(),un._randomHex(),un._randomHex(),un._randomHex(),un._randomHex()].join(""))}static _oneOf(e){return e[Math.floor(e.length*Math.random())]}static _randomHex(){return un._oneOf(un._chars)}}function ln(){return new un}un._chars=["0","1","2","3","4","5","6","6","7","8","9","a","b","c","d","e","f"],un._timeHighBits=["8","9","a","b"],an.empty=new cn("00000000-0000-0000-0000-000000000000"),an.v4=ln;const dn=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function fn(e){return dn.test(e)}an.isUUID=fn,an.parse=function(e){if(!fn(e))throw new Error("invalid uuid");return new cn(e)},an.generateUuid=function(){return ln().asHex()};var hn={};Object.defineProperty(hn,"__esModule",{value:!0}),hn.attachPartialResult=hn.ProgressFeature=hn.attachWorkDone=void 0;const gn=p,pn=an;class mn{constructor(e,t){this._connection=e,this._token=t,mn.Instances.set(this._token,this)}begin(e,t,n,o){let r={kind:"begin",title:e,percentage:t,message:n,cancellable:o};this._connection.sendProgress(gn.WorkDoneProgress.type,this._token,r)}report(e,t){let n={kind:"report"};"number"==typeof e?(n.percentage=e,void 0!==t&&(n.message=t)):n.message=e,this._connection.sendProgress(gn.WorkDoneProgress.type,this._token,n)}done(){mn.Instances.delete(this._token),this._connection.sendProgress(gn.WorkDoneProgress.type,this._token,{kind:"end"})}}mn.Instances=new Map;class yn extends mn{constructor(e,t){super(e,t),this._source=new gn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose(),super.done()}cancel(){this._source.cancel()}}class vn{constructor(){}begin(){}report(){}done(){}}class bn extends vn{constructor(){super(),this._source=new gn.CancellationTokenSource}get token(){return this._source.token}done(){this._source.dispose()}cancel(){this._source.cancel()}}var Rn;hn.attachWorkDone=function(e,t){if(void 0===t||void 0===t.workDoneToken)return new vn;const n=t.workDoneToken;return delete t.workDoneToken,new mn(e,n)},hn.ProgressFeature=e=>class extends e{constructor(){super(),this._progressSupported=!1}initialize(e){super.initialize(e),!0===e?.window?.workDoneProgress&&(this._progressSupported=!0,this.connection.onNotification(gn.WorkDoneProgressCancelNotification.type,(e=>{let t=mn.Instances.get(e.token);(t instanceof yn||t instanceof bn)&&t.cancel()})))}attachWorkDoneProgress(e){return void 0===e?new vn:new mn(this.connection,e)}createWorkDoneProgress(){if(this._progressSupported){const e=(0,pn.generateUuid)();return this.connection.sendRequest(gn.WorkDoneProgressCreateRequest.type,{token:e}).then((()=>new yn(this.connection,e)))}return Promise.resolve(new bn)}},(Rn||(Rn={})).type=new gn.ProgressType;class Dn{constructor(e,t){this._connection=e,this._token=t}report(e){this._connection.sendProgress(Rn.type,this._token,e)}}hn.attachPartialResult=function(e,t){if(void 0===t||void 0===t.partialResultToken)return;const n=t.partialResultToken;return delete t.partialResultToken,new Dn(e,n)};var Tn={};Object.defineProperty(Tn,"__esModule",{value:!0}),Tn.ConfigurationFeature=void 0;const _n=p,kn=l;Tn.ConfigurationFeature=e=>class extends e{getConfiguration(e){return e?kn.string(e)?this._getConfiguration({section:e}):this._getConfiguration(e):this._getConfiguration({})}_getConfiguration(e){let t={items:Array.isArray(e)?e:[e]};return this.connection.sendRequest(_n.ConfigurationRequest.type,t).then((t=>Array.isArray(t)?Array.isArray(e)?t:t[0]:Array.isArray(e)?[]:null))}};var Cn={};Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.WorkspaceFoldersFeature=void 0;const wn=p;Cn.WorkspaceFoldersFeature=e=>class extends e{constructor(){super(),this._notificationIsAutoRegistered=!1}initialize(e){super.initialize(e);let t=e.workspace;t&&t.workspaceFolders&&(this._onDidChangeWorkspaceFolders=new wn.Emitter,this.connection.onNotification(wn.DidChangeWorkspaceFoldersNotification.type,(e=>{this._onDidChangeWorkspaceFolders.fire(e.event)})))}fillServerCapabilities(e){super.fillServerCapabilities(e);const t=e.workspace?.workspaceFolders?.changeNotifications;this._notificationIsAutoRegistered=!0===t||"string"==typeof t}getWorkspaceFolders(){return this.connection.sendRequest(wn.WorkspaceFoldersRequest.type)}get onDidChangeWorkspaceFolders(){if(!this._onDidChangeWorkspaceFolders)throw new Error("Client doesn't support sending workspace folder change events.");return this._notificationIsAutoRegistered||this._unregistration||(this._unregistration=this.connection.client.register(wn.DidChangeWorkspaceFoldersNotification.type)),this._onDidChangeWorkspaceFolders.event}};var Pn={};Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.CallHierarchyFeature=void 0;const qn=p;Pn.CallHierarchyFeature=e=>class extends e{get callHierarchy(){return{onPrepare:e=>this.connection.onRequest(qn.CallHierarchyPrepareRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t),void 0))),onIncomingCalls:e=>{const t=qn.CallHierarchyIncomingCallsRequest.type;return this.connection.onRequest(t,((n,o)=>e(n,o,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))},onOutgoingCalls:e=>{const t=qn.CallHierarchyOutgoingCallsRequest.type;return this.connection.onRequest(t,((n,o)=>e(n,o,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))}}}};var Sn={};Object.defineProperty(Sn,"__esModule",{value:!0}),Sn.SemanticTokensBuilder=Sn.SemanticTokensDiff=Sn.SemanticTokensFeature=void 0;const Nn=p;Sn.SemanticTokensFeature=e=>class extends e{get semanticTokens(){return{refresh:()=>this.connection.sendRequest(Nn.SemanticTokensRefreshRequest.type),on:e=>{const t=Nn.SemanticTokensRequest.type;return this.connection.onRequest(t,((n,o)=>e(n,o,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))},onDelta:e=>{const t=Nn.SemanticTokensDeltaRequest.type;return this.connection.onRequest(t,((n,o)=>e(n,o,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))},onRange:e=>{const t=Nn.SemanticTokensRangeRequest.type;return this.connection.onRequest(t,((n,o)=>e(n,o,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))}}}};class xn{constructor(e,t){this.originalSequence=e,this.modifiedSequence=t}computeDiff(){const e=this.originalSequence.length,t=this.modifiedSequence.length;let n=0;for(;n<t&&n<e&&this.originalSequence[n]===this.modifiedSequence[n];)n++;if(n<t&&n<e){let o=e-1,r=t-1;for(;o>=n&&r>=n&&this.originalSequence[o]===this.modifiedSequence[r];)o--,r--;(o<n||r<n)&&(o++,r++);const i=o-n+1,s=this.modifiedSequence.slice(n,r+1);return 1===s.length&&s[0]===this.originalSequence[o]?[{start:n,deleteCount:i-1}]:[{start:n,deleteCount:i,data:s}]}return n<t?[{start:n,deleteCount:0,data:this.modifiedSequence.slice(n)}]:n<e?[{start:n,deleteCount:e-n}]:[]}}Sn.SemanticTokensDiff=xn,Sn.SemanticTokensBuilder=class{constructor(){this._prevData=void 0,this.initialize()}initialize(){this._id=Date.now(),this._prevLine=0,this._prevChar=0,this._data=[],this._dataLen=0}push(e,t,n,o,r){let i=e,s=t;this._dataLen>0&&(i-=this._prevLine,0===i&&(s-=this._prevChar)),this._data[this._dataLen++]=i,this._data[this._dataLen++]=s,this._data[this._dataLen++]=n,this._data[this._dataLen++]=o,this._data[this._dataLen++]=r,this._prevLine=e,this._prevChar=t}get id(){return this._id.toString()}previousResult(e){this.id===e&&(this._prevData=this._data),this.initialize()}build(){return this._prevData=void 0,{resultId:this.id,data:this._data}}canBuildEdits(){return void 0!==this._prevData}buildEdits(){return void 0!==this._prevData?{resultId:this.id,edits:new xn(this._prevData,this._data).computeDiff()}:this.build()}};var Mn={};Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.ShowDocumentFeature=void 0;const On=p;Mn.ShowDocumentFeature=e=>class extends e{showDocument(e){return this.connection.sendRequest(On.ShowDocumentRequest.type,e)}};var En={};Object.defineProperty(En,"__esModule",{value:!0}),En.FileOperationsFeature=void 0;const jn=p;En.FileOperationsFeature=e=>class extends e{onDidCreateFiles(e){return this.connection.onNotification(jn.DidCreateFilesNotification.type,(t=>{e(t)}))}onDidRenameFiles(e){return this.connection.onNotification(jn.DidRenameFilesNotification.type,(t=>{e(t)}))}onDidDeleteFiles(e){return this.connection.onNotification(jn.DidDeleteFilesNotification.type,(t=>{e(t)}))}onWillCreateFiles(e){return this.connection.onRequest(jn.WillCreateFilesRequest.type,((t,n)=>e(t,n)))}onWillRenameFiles(e){return this.connection.onRequest(jn.WillRenameFilesRequest.type,((t,n)=>e(t,n)))}onWillDeleteFiles(e){return this.connection.onRequest(jn.WillDeleteFilesRequest.type,((t,n)=>e(t,n)))}};var Fn={};Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.LinkedEditingRangeFeature=void 0;const In=p;Fn.LinkedEditingRangeFeature=e=>class extends e{onLinkedEditingRange(e){return this.connection.onRequest(In.LinkedEditingRangeRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t),void 0)))}};var Wn={};Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.TypeHierarchyFeature=void 0;const Ln=p;Wn.TypeHierarchyFeature=e=>class extends e{get typeHierarchy(){return{onPrepare:e=>this.connection.onRequest(Ln.TypeHierarchyPrepareRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t),void 0))),onSupertypes:e=>{const t=Ln.TypeHierarchySupertypesRequest.type;return this.connection.onRequest(t,((n,o)=>e(n,o,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))},onSubtypes:e=>{const t=Ln.TypeHierarchySubtypesRequest.type;return this.connection.onRequest(t,((n,o)=>e(n,o,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))}}}};var An={};Object.defineProperty(An,"__esModule",{value:!0}),An.InlineValueFeature=void 0;const Hn=p;An.InlineValueFeature=e=>class extends e{get inlineValue(){return{refresh:()=>this.connection.sendRequest(Hn.InlineValueRefreshRequest.type),on:e=>this.connection.onRequest(Hn.InlineValueRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t))))}}};var Un={};Object.defineProperty(Un,"__esModule",{value:!0}),Un.InlayHintFeature=void 0;const zn=p;Un.InlayHintFeature=e=>class extends e{get inlayHint(){return{refresh:()=>this.connection.sendRequest(zn.InlayHintRefreshRequest.type),on:e=>this.connection.onRequest(zn.InlayHintRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t)))),resolve:e=>this.connection.onRequest(zn.InlayHintResolveRequest.type,((t,n)=>e(t,n)))}}};var $n={};Object.defineProperty($n,"__esModule",{value:!0}),$n.DiagnosticFeature=void 0;const Kn=p;$n.DiagnosticFeature=e=>class extends e{get diagnostics(){return{refresh:()=>this.connection.sendRequest(Kn.DiagnosticRefreshRequest.type),on:e=>this.connection.onRequest(Kn.DocumentDiagnosticRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t),this.attachPartialResultProgress(Kn.DocumentDiagnosticRequest.partialResult,t)))),onWorkspace:e=>this.connection.onRequest(Kn.WorkspaceDiagnosticRequest.type,((t,n)=>e(t,n,this.attachWorkDoneProgress(t),this.attachPartialResultProgress(Kn.WorkspaceDiagnosticRequest.partialResult,t))))}}};var Vn={},Bn={};Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.TextDocuments=void 0;const Jn=p;Bn.TextDocuments=class{constructor(e){this._configuration=e,this._syncedDocuments=new Map,this._onDidChangeContent=new Jn.Emitter,this._onDidOpen=new Jn.Emitter,this._onDidClose=new Jn.Emitter,this._onDidSave=new Jn.Emitter,this._onWillSave=new Jn.Emitter}get onDidOpen(){return this._onDidOpen.event}get onDidChangeContent(){return this._onDidChangeContent.event}get onWillSave(){return this._onWillSave.event}onWillSaveWaitUntil(e){this._willSaveWaitUntil=e}get onDidSave(){return this._onDidSave.event}get onDidClose(){return this._onDidClose.event}get(e){return this._syncedDocuments.get(e)}all(){return Array.from(this._syncedDocuments.values())}keys(){return Array.from(this._syncedDocuments.keys())}listen(e){e.__textDocumentSync=Jn.TextDocumentSyncKind.Incremental;const t=[];return t.push(e.onDidOpenTextDocument((e=>{const t=e.textDocument,n=this._configuration.create(t.uri,t.languageId,t.version,t.text);this._syncedDocuments.set(t.uri,n);const o=Object.freeze({document:n});this._onDidOpen.fire(o),this._onDidChangeContent.fire(o)}))),t.push(e.onDidChangeTextDocument((e=>{const t=e.textDocument,n=e.contentChanges;if(0===n.length)return;const{version:o}=t;if(null==o)throw new Error(`Received document change event for ${t.uri} without valid version identifier`);let r=this._syncedDocuments.get(t.uri);void 0!==r&&(r=this._configuration.update(r,n,o),this._syncedDocuments.set(t.uri,r),this._onDidChangeContent.fire(Object.freeze({document:r})))}))),t.push(e.onDidCloseTextDocument((e=>{let t=this._syncedDocuments.get(e.textDocument.uri);void 0!==t&&(this._syncedDocuments.delete(e.textDocument.uri),this._onDidClose.fire(Object.freeze({document:t})))}))),t.push(e.onWillSaveTextDocument((e=>{let t=this._syncedDocuments.get(e.textDocument.uri);void 0!==t&&this._onWillSave.fire(Object.freeze({document:t,reason:e.reason}))}))),t.push(e.onWillSaveTextDocumentWaitUntil(((e,t)=>{let n=this._syncedDocuments.get(e.textDocument.uri);return void 0!==n&&this._willSaveWaitUntil?this._willSaveWaitUntil(Object.freeze({document:n,reason:e.reason}),t):[]}))),t.push(e.onDidSaveTextDocument((e=>{let t=this._syncedDocuments.get(e.textDocument.uri);void 0!==t&&this._onDidSave.fire(Object.freeze({document:t}))}))),Jn.Disposable.create((()=>{t.forEach((e=>e.dispose()))}))}},Object.defineProperty(Vn,"__esModule",{value:!0}),Vn.NotebookDocuments=Vn.NotebookSyncFeature=void 0;const Gn=p,Xn=Bn;Vn.NotebookSyncFeature=e=>class extends e{get synchronization(){return{onDidOpenNotebookDocument:e=>this.connection.onNotification(Gn.DidOpenNotebookDocumentNotification.type,(t=>{e(t)})),onDidChangeNotebookDocument:e=>this.connection.onNotification(Gn.DidChangeNotebookDocumentNotification.type,(t=>{e(t)})),onDidSaveNotebookDocument:e=>this.connection.onNotification(Gn.DidSaveNotebookDocumentNotification.type,(t=>{e(t)})),onDidCloseNotebookDocument:e=>this.connection.onNotification(Gn.DidCloseNotebookDocumentNotification.type,(t=>{e(t)}))}}};class Yn{onDidOpenTextDocument(e){return this.openHandler=e,Gn.Disposable.create((()=>{this.openHandler=void 0}))}openTextDocument(e){this.openHandler&&this.openHandler(e)}onDidChangeTextDocument(e){return this.changeHandler=e,Gn.Disposable.create((()=>{this.changeHandler=e}))}changeTextDocument(e){this.changeHandler&&this.changeHandler(e)}onDidCloseTextDocument(e){return this.closeHandler=e,Gn.Disposable.create((()=>{this.closeHandler=void 0}))}closeTextDocument(e){this.closeHandler&&this.closeHandler(e)}onWillSaveTextDocument(){return Yn.NULL_DISPOSE}onWillSaveTextDocumentWaitUntil(){return Yn.NULL_DISPOSE}onDidSaveTextDocument(){return Yn.NULL_DISPOSE}}Yn.NULL_DISPOSE=Object.freeze({dispose:()=>{}}),Vn.NotebookDocuments=class{constructor(e){e instanceof Xn.TextDocuments?this._cellTextDocuments=e:this._cellTextDocuments=new Xn.TextDocuments(e),this.notebookDocuments=new Map,this.notebookCellMap=new Map,this._onDidOpen=new Gn.Emitter,this._onDidChange=new Gn.Emitter,this._onDidSave=new Gn.Emitter,this._onDidClose=new Gn.Emitter}get cellTextDocuments(){return this._cellTextDocuments}getCellTextDocument(e){return this._cellTextDocuments.get(e.document)}getNotebookDocument(e){return this.notebookDocuments.get(e)}getNotebookCell(e){const t=this.notebookCellMap.get(e);return t&&t[0]}findNotebookDocumentForCell(e){const t="string"==typeof e?e:e.document,n=this.notebookCellMap.get(t);return n&&n[1]}get onDidOpen(){return this._onDidOpen.event}get onDidSave(){return this._onDidSave.event}get onDidChange(){return this._onDidChange.event}get onDidClose(){return this._onDidClose.event}listen(e){const t=new Yn,n=[];return n.push(this.cellTextDocuments.listen(t)),n.push(e.notebooks.synchronization.onDidOpenNotebookDocument((e=>{this.notebookDocuments.set(e.notebookDocument.uri,e.notebookDocument);for(const n of e.cellTextDocuments)t.openTextDocument({textDocument:n});this.updateCellMap(e.notebookDocument),this._onDidOpen.fire(e.notebookDocument)}))),n.push(e.notebooks.synchronization.onDidChangeNotebookDocument((e=>{const n=this.notebookDocuments.get(e.notebookDocument.uri);if(void 0===n)return;n.version=e.notebookDocument.version;const o=n.metadata;let r=!1;const i=e.change;void 0!==i.metadata&&(r=!0,n.metadata=i.metadata);const s=[],a=[],c=[],u=[];if(void 0!==i.cells){const e=i.cells;if(void 0!==e.structure){const o=e.structure.array;if(n.cells.splice(o.start,o.deleteCount,...void 0!==o.cells?o.cells:[]),void 0!==e.structure.didOpen)for(const n of e.structure.didOpen)t.openTextDocument({textDocument:n}),s.push(n.uri);if(e.structure.didClose)for(const n of e.structure.didClose)t.closeTextDocument({textDocument:n}),a.push(n.uri)}if(void 0!==e.data){const t=new Map(e.data.map((e=>[e.document,e])));for(let e=0;e<=n.cells.length;e++){const o=t.get(n.cells[e].document);if(void 0!==o){const r=n.cells.splice(e,1,o);if(c.push({old:r[0],new:o}),t.delete(o.document),0===t.size)break}}}if(void 0!==e.textContent)for(const n of e.textContent)t.changeTextDocument({textDocument:n.document,contentChanges:n.changes}),u.push(n.document.uri)}this.updateCellMap(n);const l={notebookDocument:n};r&&(l.metadata={old:o,new:n.metadata});const d=[];for(const e of s)d.push(this.getNotebookCell(e));const f=[];for(const e of a)f.push(this.getNotebookCell(e));const h=[];for(const e of u)h.push(this.getNotebookCell(e));(d.length>0||f.length>0||c.length>0||h.length>0)&&(l.cells={added:d,removed:f,changed:{data:c,textContent:h}}),void 0===l.metadata&&void 0===l.cells||this._onDidChange.fire(l)}))),n.push(e.notebooks.synchronization.onDidSaveNotebookDocument((e=>{const t=this.notebookDocuments.get(e.notebookDocument.uri);void 0!==t&&this._onDidSave.fire(t)}))),n.push(e.notebooks.synchronization.onDidCloseNotebookDocument((e=>{const n=this.notebookDocuments.get(e.notebookDocument.uri);if(void 0!==n){this._onDidClose.fire(n);for(const n of e.cellTextDocuments)t.closeTextDocument({textDocument:n});this.notebookDocuments.delete(e.notebookDocument.uri);for(const e of n.cells)this.notebookCellMap.delete(e.document)}}))),Gn.Disposable.create((()=>{n.forEach((e=>e.dispose()))}))}updateCellMap(e){for(const t of e.cells)this.notebookCellMap.set(t.document,[t,e])}};var Qn={};Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.MonikerFeature=void 0;const Zn=p;Qn.MonikerFeature=e=>class extends e{get moniker(){return{on:e=>{const t=Zn.MonikerRequest.type;return this.connection.onRequest(t,((n,o)=>e(n,o,this.attachWorkDoneProgress(n),this.attachPartialResultProgress(t,n))))}}}},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createConnection=e.combineFeatures=e.combineNotebooksFeatures=e.combineLanguagesFeatures=e.combineWorkspaceFeatures=e.combineWindowFeatures=e.combineClientFeatures=e.combineTracerFeatures=e.combineTelemetryFeatures=e.combineConsoleFeatures=e._NotebooksImpl=e._LanguagesImpl=e.BulkUnregistration=e.BulkRegistration=e.ErrorMessageTracker=void 0;const t=p,n=l,o=an,r=hn,i=Tn,s=Cn,a=Pn,c=Sn,u=Mn,d=En,f=Fn,h=Wn,g=An,m=Un,y=$n,v=Vn,b=Qn;function R(e){if(null!==e)return e}e.ErrorMessageTracker=class{constructor(){this._messages=Object.create(null)}add(e){let t=this._messages[e];t||(t=0),t++,this._messages[e]=t}sendErrors(e){Object.keys(this._messages).forEach((t=>{e.window.showErrorMessage(t)}))}};class D{constructor(){}rawAttach(e){this._rawConnection=e}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}fillServerCapabilities(e){}initialize(e){}error(e){this.send(t.MessageType.Error,e)}warn(e){this.send(t.MessageType.Warning,e)}info(e){this.send(t.MessageType.Info,e)}log(e){this.send(t.MessageType.Log,e)}send(e,n){this._rawConnection&&this._rawConnection.sendNotification(t.LogMessageNotification.type,{type:e,message:n}).catch((()=>{(0,t.RAL)().console.error("Sending log message failed")}))}}const T=(0,u.ShowDocumentFeature)((0,r.ProgressFeature)(class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}showErrorMessage(e,...n){let o={type:t.MessageType.Error,message:e,actions:n};return this.connection.sendRequest(t.ShowMessageRequest.type,o).then(R)}showWarningMessage(e,...n){let o={type:t.MessageType.Warning,message:e,actions:n};return this.connection.sendRequest(t.ShowMessageRequest.type,o).then(R)}showInformationMessage(e,...n){let o={type:t.MessageType.Info,message:e,actions:n};return this.connection.sendRequest(t.ShowMessageRequest.type,o).then(R)}}));(e.BulkRegistration||(e.BulkRegistration={})).create=function(){return new _};class _{constructor(){this._registrations=[],this._registered=new Set}add(e,t){const r=n.string(e)?e:e.method;if(this._registered.has(r))throw new Error(`${r} is already added to this registration`);const i=o.generateUuid();this._registrations.push({id:i,method:r,registerOptions:t||{}}),this._registered.add(r)}asRegistrationParams(){return{registrations:this._registrations}}}(e.BulkUnregistration||(e.BulkUnregistration={})).create=function(){return new k(void 0,[])};class k{constructor(e,t){this._connection=e,this._unregistrations=new Map,t.forEach((e=>{this._unregistrations.set(e.method,e)}))}get isAttached(){return!!this._connection}attach(e){this._connection=e}add(e){this._unregistrations.set(e.method,e)}dispose(){let e=[];for(let t of this._unregistrations.values())e.push(t);let n={unregisterations:e};this._connection.sendRequest(t.UnregistrationRequest.type,n).catch((()=>{this._connection.console.info("Bulk unregistration failed.")}))}disposeSingle(e){const o=n.string(e)?e:e.method,r=this._unregistrations.get(o);if(!r)return!1;let i={unregisterations:[r]};return this._connection.sendRequest(t.UnregistrationRequest.type,i).then((()=>{this._unregistrations.delete(o)}),(e=>{this._connection.console.info(`Un-registering request handler for ${r.id} failed.`)})),!0}}class C{attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}register(e,t,n){return e instanceof _?this.registerMany(e):e instanceof k?this.registerSingle1(e,t,n):this.registerSingle2(e,t)}registerSingle1(e,r,i){const s=n.string(r)?r:r.method,a=o.generateUuid();let c={registrations:[{id:a,method:s,registerOptions:i||{}}]};return e.isAttached||e.attach(this.connection),this.connection.sendRequest(t.RegistrationRequest.type,c).then((t=>(e.add({id:a,method:s}),e)),(e=>(this.connection.console.info(`Registering request handler for ${s} failed.`),Promise.reject(e))))}registerSingle2(e,r){const i=n.string(e)?e:e.method,s=o.generateUuid();let a={registrations:[{id:s,method:i,registerOptions:r||{}}]};return this.connection.sendRequest(t.RegistrationRequest.type,a).then((e=>t.Disposable.create((()=>{this.unregisterSingle(s,i).catch((()=>{this.connection.console.info(`Un-registering capability with id ${s} failed.`)}))}))),(e=>(this.connection.console.info(`Registering request handler for ${i} failed.`),Promise.reject(e))))}unregisterSingle(e,n){let o={unregisterations:[{id:e,method:n}]};return this.connection.sendRequest(t.UnregistrationRequest.type,o).catch((()=>{this.connection.console.info(`Un-registering request handler for ${e} failed.`)}))}registerMany(e){let n=e.asRegistrationParams();return this.connection.sendRequest(t.RegistrationRequest.type,n).then((()=>new k(this._connection,n.registrations.map((e=>({id:e.id,method:e.method}))))),(e=>(this.connection.console.info("Bulk registration failed."),Promise.reject(e))))}}const w=(0,d.FileOperationsFeature)((0,s.WorkspaceFoldersFeature)((0,i.ConfigurationFeature)(class{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}applyEdit(e){let n=(o=e)&&o.edit?e:{edit:e};var o;return this.connection.sendRequest(t.ApplyWorkspaceEditRequest.type,n)}})));class P{constructor(){this._trace=t.Trace.Off}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}set trace(e){this._trace=e}log(e,n){this._trace!==t.Trace.Off&&this.connection.sendNotification(t.LogTraceNotification.type,{message:e,verbose:this._trace===t.Trace.Verbose?n:void 0}).catch((()=>{}))}}class q{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}logEvent(e){this.connection.sendNotification(t.TelemetryEventNotification.type,e).catch((()=>{this.connection.console.log("Sending TelemetryEventNotification failed")}))}}class S{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,r.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,t){return(0,r.attachPartialResult)(this.connection,t)}}e._LanguagesImpl=S;const N=(0,b.MonikerFeature)((0,y.DiagnosticFeature)((0,m.InlayHintFeature)((0,g.InlineValueFeature)((0,h.TypeHierarchyFeature)((0,f.LinkedEditingRangeFeature)((0,c.SemanticTokensFeature)((0,a.CallHierarchyFeature)(S))))))));class x{constructor(){}attach(e){this._connection=e}get connection(){if(!this._connection)throw new Error("Remote is not attached to a connection yet.");return this._connection}initialize(e){}fillServerCapabilities(e){}attachWorkDoneProgress(e){return(0,r.attachWorkDone)(this.connection,e)}attachPartialResultProgress(e,t){return(0,r.attachPartialResult)(this.connection,t)}}e._NotebooksImpl=x;const M=(0,v.NotebookSyncFeature)(x);function O(e,t){return function(n){return t(e(n))}}function E(e,t){return function(n){return t(e(n))}}function j(e,t){return function(n){return t(e(n))}}function F(e,t){return function(n){return t(e(n))}}function I(e,t){return function(n){return t(e(n))}}function W(e,t){return function(n){return t(e(n))}}function L(e,t){return function(n){return t(e(n))}}function A(e,t){return function(n){return t(e(n))}}e.combineConsoleFeatures=O,e.combineTelemetryFeatures=E,e.combineTracerFeatures=j,e.combineClientFeatures=F,e.combineWindowFeatures=I,e.combineWorkspaceFeatures=W,e.combineLanguagesFeatures=L,e.combineNotebooksFeatures=A,e.combineFeatures=function(e,t){function n(e,t,n){return e&&t?n(e,t):e||t}return{__brand:"features",console:n(e.console,t.console,O),tracer:n(e.tracer,t.tracer,j),telemetry:n(e.telemetry,t.telemetry,E),client:n(e.client,t.client,F),window:n(e.window,t.window,I),workspace:n(e.workspace,t.workspace,W),languages:n(e.languages,t.languages,L),notebooks:n(e.notebooks,t.notebooks,A)}},e.createConnection=function(e,o,i){const s=i&&i.console?new(i.console(D)):new D,a=e(s);s.rawAttach(a);const c=i&&i.tracer?new(i.tracer(P)):new P,u=i&&i.telemetry?new(i.telemetry(q)):new q,l=i&&i.client?new(i.client(C)):new C,d=i&&i.window?new(i.window(T)):new T,f=i&&i.workspace?new(i.workspace(w)):new w,h=i&&i.languages?new(i.languages(N)):new N,g=i&&i.notebooks?new(i.notebooks(M)):new M,p=[s,c,u,l,d,f,h,g];let m,y,v,b={listen:()=>a.listen(),sendRequest:(e,...t)=>a.sendRequest(n.string(e)?e:e.method,...t),onRequest:(e,t)=>a.onRequest(e,t),sendNotification:(e,t)=>{const o=n.string(e)?e:e.method;return 1===arguments.length?a.sendNotification(o):a.sendNotification(o,t)},onNotification:(e,t)=>a.onNotification(e,t),onProgress:a.onProgress,sendProgress:a.sendProgress,onInitialize:e=>(y=e,{dispose:()=>{y=void 0}}),onInitialized:e=>a.onNotification(t.InitializedNotification.type,e),onShutdown:e=>(m=e,{dispose:()=>{m=void 0}}),onExit:e=>(v=e,{dispose:()=>{v=void 0}}),get console(){return s},get telemetry(){return u},get tracer(){return c},get client(){return l},get window(){return d},get workspace(){return f},get languages(){return h},get notebooks(){return g},onDidChangeConfiguration:e=>a.onNotification(t.DidChangeConfigurationNotification.type,e),onDidChangeWatchedFiles:e=>a.onNotification(t.DidChangeWatchedFilesNotification.type,e),__textDocumentSync:void 0,onDidOpenTextDocument:e=>a.onNotification(t.DidOpenTextDocumentNotification.type,e),onDidChangeTextDocument:e=>a.onNotification(t.DidChangeTextDocumentNotification.type,e),onDidCloseTextDocument:e=>a.onNotification(t.DidCloseTextDocumentNotification.type,e),onWillSaveTextDocument:e=>a.onNotification(t.WillSaveTextDocumentNotification.type,e),onWillSaveTextDocumentWaitUntil:e=>a.onRequest(t.WillSaveTextDocumentWaitUntilRequest.type,e),onDidSaveTextDocument:e=>a.onNotification(t.DidSaveTextDocumentNotification.type,e),sendDiagnostics:e=>a.sendNotification(t.PublishDiagnosticsNotification.type,e),onHover:e=>a.onRequest(t.HoverRequest.type,((t,n)=>e(t,n,(0,r.attachWorkDone)(a,t),void 0))),onCompletion:e=>a.onRequest(t.CompletionRequest.type,((t,n)=>e(t,n,(0,r.attachWorkDone)(a,t),(0,r.attachPartialResult)(a,t)))),onCompletionResolve:e=>a.onRequest(t.CompletionResolveRequest.type,e),onSignatureHelp:e=>a.onRequest(t.SignatureHelpRequest.type,((t,n)=>e(t,n,(0,r.attachWorkDone)(a,t),void 0))),onDeclaration:e=>a.onRequest(t.DeclarationRequest.type,((t,n)=>e(t,n,(0,r.attachWorkDone)(a,t),(0,r.attachPartialResult)(a,t)))),onDefinition:e=>a.onRequest(t.DefinitionRequest.type,((t,n)=>e(t,n,(0,r.attachWorkDone)(a,t),(0,r.attachPartialResult)(a,t)))),onTypeDefinition:e=>a.onRequest(t.TypeDefinitionRequest.type,((t,n)=>e(t,n,(0,r.attachWorkDone)(a,t),(0,r.attachPartialResult)(a,t)))),onImplementation:e=>a.onRequest(t.ImplementationRequest.type,((t,n)=>e(t,n,(0,r.attachWorkDone)(a,t),(0,r.attachPartialResult)(a,t)))),onReferences:e=>a.onRequest(t.ReferencesRequest.type,((t,n)=>e(t,n,(0,r.attachWorkDone)(a,t),(0,r.attachPartialResult)(a,t)))),onDocumentHighlight:e=>a.onRequest(t.DocumentHighlightRequest.type,((t,n)=>e(t,n,(0,r.attachWorkDone)(a,t),(0,r.attachPartialResult)(a,t)))),onDocumentSymbol:e=>a.onRequest(t.DocumentSymbolRequest.type,((t,n)=>e(t,n,(0,r.attachWorkDone)(a,t),(0,r.attachPartialResult)(a,t)))),onWorkspaceSymbol:e=>a.onRequest(t.WorkspaceSymbolRequest.type,((t,n)=>e(t,n,(0,r.attachWorkDone)(a,t),(0,r.attachPartialResult)(a,t)))),onWorkspaceSymbolResolve:e=>a.onRequest(t.WorkspaceSymbolResolveRequest.type,e),onCodeAction:e=>a.onRequest(t.CodeActionRequest.type,((t,n)=>e(t,n,(0,r.attachWorkDone)(a,t),(0,r.attachPartialResult)(a,t)))),onCodeActionResolve:e=>a.onRequest(t.CodeActionResolveRequest.type,((t,n)=>e(t,n))),onCodeLens:e=>a.onRequest(t.CodeLensRequest.type,((t,n)=>e(t,n,(0,r.attachWorkDone)(a,t),(0,r.attachPartialResult)(a,t)))),onCodeLensResolve:e=>a.onRequest(t.CodeLensResolveRequest.type,((t,n)=>e(t,n))),onDocumentFormatting:e=>a.onRequest(t.DocumentFormattingRequest.type,((t,n)=>e(t,n,(0,r.attachWorkDone)(a,t),void 0))),onDocumentRangeFormatting:e=>a.onRequest(t.DocumentRangeFormattingRequest.type,((t,n)=>e(t,n,(0,r.attachWorkDone)(a,t),void 0))),onDocumentOnTypeFormatting:e=>a.onRequest(t.DocumentOnTypeFormattingRequest.type,((t,n)=>e(t,n))),onRenameRequest:e=>a.onRequest(t.RenameRequest.type,((t,n)=>e(t,n,(0,r.attachWorkDone)(a,t),void 0))),onPrepareRename:e=>a.onRequest(t.PrepareRenameRequest.type,((t,n)=>e(t,n))),onDocumentLinks:e=>a.onRequest(t.DocumentLinkRequest.type,((t,n)=>e(t,n,(0,r.attachWorkDone)(a,t),(0,r.attachPartialResult)(a,t)))),onDocumentLinkResolve:e=>a.onRequest(t.DocumentLinkResolveRequest.type,((t,n)=>e(t,n))),onDocumentColor:e=>a.onRequest(t.DocumentColorRequest.type,((t,n)=>e(t,n,(0,r.attachWorkDone)(a,t),(0,r.attachPartialResult)(a,t)))),onColorPresentation:e=>a.onRequest(t.ColorPresentationRequest.type,((t,n)=>e(t,n,(0,r.attachWorkDone)(a,t),(0,r.attachPartialResult)(a,t)))),onFoldingRanges:e=>a.onRequest(t.FoldingRangeRequest.type,((t,n)=>e(t,n,(0,r.attachWorkDone)(a,t),(0,r.attachPartialResult)(a,t)))),onSelectionRanges:e=>a.onRequest(t.SelectionRangeRequest.type,((t,n)=>e(t,n,(0,r.attachWorkDone)(a,t),(0,r.attachPartialResult)(a,t)))),onExecuteCommand:e=>a.onRequest(t.ExecuteCommandRequest.type,((t,n)=>e(t,n,(0,r.attachWorkDone)(a,t),void 0))),dispose:()=>a.dispose()};for(let e of p)e.attach(b);return a.onRequest(t.InitializeRequest.type,(e=>{o.initialize(e),n.string(e.trace)&&(c.trace=t.Trace.fromString(e.trace));for(let t of p)t.initialize(e.capabilities);if(y){let o=y(e,(new t.CancellationTokenSource).token,(0,r.attachWorkDone)(a,e),void 0);return(i=o,i instanceof Promise?i:n.thenable(i)?new Promise(((e,t)=>{i.then((t=>e(t)),(e=>t(e)))})):Promise.resolve(i)).then((e=>{if(e instanceof t.ResponseError)return e;let o=e;o||(o={capabilities:{}});let r=o.capabilities;r||(r={},o.capabilities=r),void 0===r.textDocumentSync||null===r.textDocumentSync?r.textDocumentSync=n.number(b.__textDocumentSync)?b.__textDocumentSync:t.TextDocumentSyncKind.None:n.number(r.textDocumentSync)||n.number(r.textDocumentSync.change)||(r.textDocumentSync.change=n.number(b.__textDocumentSync)?b.__textDocumentSync:t.TextDocumentSyncKind.None);for(let e of p)e.fillServerCapabilities(r);return o}))}{let e={capabilities:{textDocumentSync:t.TextDocumentSyncKind.None}};for(let t of p)t.fillServerCapabilities(e.capabilities);return e}var i})),a.onRequest(t.ShutdownRequest.type,(()=>(o.shutdownReceived=!0,m?m((new t.CancellationTokenSource).token):void 0))),a.onNotification(t.ExitNotification.type,(()=>{try{v&&v()}finally{o.shutdownReceived?o.exit(0):o.exit(1)}})),a.onNotification(t.SetTraceNotification.type,(e=>{c.trace=t.Trace.fromString(e.value)})),b}}(g);var eo={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.resolveModulePath=e.FileSystem=e.resolveGlobalYarnPath=e.resolveGlobalNodePath=e.resolve=e.uriToFilePath=void 0;const n=i,o=t,r=s,c=a;function u(){return"win32"===process.platform}function l(e,t,n,i){const s="NODE_PATH",a=["var p = process;","p.on('message',function(m){","if(m.c==='e'){","p.exit(0);","}","else if(m.c==='rs'){","try{","var r=require.resolve(m.a);","p.send({c:'r',s:true,r:r});","}","catch(err){","p.send({c:'r',s:false});","}","}","});"].join("");return new Promise(((u,l)=>{let d=process.env,f=Object.create(null);Object.keys(d).forEach((e=>f[e]=d[e])),t&&r.existsSync(t)&&(f[s]?f[s]=t+o.delimiter+f[s]:f[s]=t,i&&i(`NODE_PATH value is: ${f[s]}`)),f.ELECTRON_RUN_AS_NODE="1";try{let t=(0,c.fork)("",[],{cwd:n,env:f,execArgv:["-e",a]});if(void 0===t.pid)return void l(new Error(`Starting process to resolve node module ${e} failed`));t.on("error",(e=>{l(e)})),t.on("message",(n=>{"r"===n.c&&(t.send({c:"e"}),n.s?u(n.r):l(new Error(`Failed to resolve module: ${e}`)))}));let o={c:"rs",a:e};t.send(o)}catch(e){l(e)}}))}function d(e){let t="npm";const n=Object.create(null);Object.keys(process.env).forEach((e=>n[e]=process.env[e])),n.NO_UPDATE_NOTIFIER="true";const r={encoding:"utf8",env:n};u()&&(t="npm.cmd",r.shell=!0);let i=()=>{};try{process.on("SIGPIPE",i);let n=(0,c.spawnSync)(t,["config","get","prefix"],r).stdout;if(!n)return void(e&&e("'npm config get prefix' didn't return a value."));let s=n.trim();return e&&e(`'npm config get prefix' value is: ${s}`),s.length>0?u()?o.join(s,"node_modules"):o.join(s,"lib","node_modules"):void 0}catch(e){return}finally{process.removeListener("SIGPIPE",i)}}var f;e.uriToFilePath=function(e){let t=n.parse(e);if("file:"!==t.protocol||!t.path)return;let r=t.path.split("/");for(var i=0,s=r.length;i<s;i++)r[i]=decodeURIComponent(r[i]);if("win32"===process.platform&&r.length>1){let e=r[0],t=r[1];0===e.length&&t.length>1&&":"===t[1]&&r.shift()}return o.normalize(r.join("/"))},e.resolve=l,e.resolveGlobalNodePath=d,e.resolveGlobalYarnPath=function(e){let t="yarn",n={encoding:"utf8"};u()&&(t="yarn.cmd",n.shell=!0);let r=()=>{};try{process.on("SIGPIPE",r);let i=(0,c.spawnSync)(t,["global","dir","--json"],n),s=i.stdout;if(!s)return void(e&&(e("'yarn global dir' didn't return a value."),i.stderr&&e(i.stderr)));let a=s.trim().split(/\r?\n/);for(let t of a)try{let e=JSON.parse(t);if("log"===e.type)return o.join(e.data,"node_modules")}catch(e){}return}catch(e){return}finally{process.removeListener("SIGPIPE",r)}},function(e){let t;function n(){return void 0!==t||(t=!("win32"===process.platform||r.existsSync(__filename.toUpperCase())&&r.existsSync(__filename.toLowerCase()))),t}e.isCaseSensitive=n,e.isParent=function(e,t){return n()?0===o.normalize(t).indexOf(o.normalize(e)):0===o.normalize(t).toLowerCase().indexOf(o.normalize(e).toLowerCase())}}(f=e.FileSystem||(e.FileSystem={})),e.resolveModulePath=function(e,t,n,r){return n?(o.isAbsolute(n)||(n=o.join(e,n)),l(t,n,n,r).then((e=>f.isParent(n,e)?e:Promise.reject(new Error(`Failed to load ${t} from node path location.`)))).then(void 0,(n=>l(t,d(r),e,r)))):l(t,d(r),e,r)}}(eo);var to=p,no={};!function(e){var t=c&&c.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),n=c&&c.__exportStar||function(e,n){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(n,o)||t(n,e,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.ProposedFeatures=e.NotebookDocuments=e.TextDocuments=e.SemanticTokensBuilder=void 0;const o=Sn;Object.defineProperty(e,"SemanticTokensBuilder",{enumerable:!0,get:function(){return o.SemanticTokensBuilder}}),n(p,e);const r=Bn;Object.defineProperty(e,"TextDocuments",{enumerable:!0,get:function(){return r.TextDocuments}});const i=Vn;Object.defineProperty(e,"NotebookDocuments",{enumerable:!0,get:function(){return i.NotebookDocuments}}),n(g,e),(e.ProposedFeatures||(e.ProposedFeatures={})).all={__brand:"features"}}(no),function(e){var t=c&&c.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),n=c&&c.__exportStar||function(e,n){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(n,o)||t(n,e,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.createConnection=e.Files=void 0;const o=l,r=g,i=eo,s=to;var a;n(to,e),n(no,e),(a=e.Files||(e.Files={})).uriToFilePath=i.uriToFilePath,a.resolveGlobalNodePath=i.resolveGlobalNodePath,a.resolveGlobalYarnPath=i.resolveGlobalYarnPath,a.resolve=i.resolve,a.resolveModulePath=i.resolveModulePath;let u,d=!1;!function(){const e="--clientProcessId";function t(e){try{let t=parseInt(e);isNaN(t)||(u=setInterval((()=>{try{process.kill(t,0)}catch(e){process.exit(d?0:1)}}),3e3))}catch(e){}}for(let n=2;n<process.argv.length;n++){let o=process.argv[n];if(o===e&&n+1<process.argv.length)return void t(process.argv[n+1]);{let n=o.split("=");n[0]===e&&t(n[1])}}}();const f={initialize:e=>{const t=e.processId;o.number(t)&&void 0===u&&setInterval((()=>{try{process.kill(t,0)}catch(e){process.exit(d?0:1)}}),3e3)},get shutdownReceived(){return d},set shutdownReceived(e){d=e},exit:e=>{process.exit(e)}};e.createConnection=function(e,t,n,i){let a,c,u,l;return void 0!==e&&"features"===e.__brand&&(a=e,e=t,t=n,n=i),s.ConnectionStrategy.is(e)||s.ConnectionOptions.is(e)?l=e:(c=e,u=t,l=n),function(e,t,n,i){if(!e&&!t&&process.argv.length>2){let n,o,r=process.argv.slice(2);for(let i=0;i<r.length;i++){let c=r[i];if("--node-ipc"===c){e=new s.IPCMessageReader(process),t=new s.IPCMessageWriter(process);break}if("--stdio"===c){e=process.stdin,t=process.stdout;break}if("--socket"===c){n=parseInt(r[i+1]);break}if("--pipe"===c){o=r[i+1];break}var a=c.split("=");if("--socket"===a[0]){n=parseInt(a[1]);break}if("--pipe"===a[0]){o=a[1];break}}if(n){let o=(0,s.createServerSocketTransport)(n);e=o[0],t=o[1]}else if(o){let n=(0,s.createServerPipeTransport)(o);e=n[0],t=n[1]}}var c="Use arguments of createConnection or set command line parameters: '--node-ipc', '--stdio' or '--socket={number}'";if(!e)throw new Error("Connection input stream is not set. "+c);if(!t)throw new Error("Connection output stream is not set. "+c);if(o.func(e.read)&&o.func(e.on)){let t=e;t.on("end",(()=>{process.exit(d?0:1)})),t.on("close",(()=>{process.exit(d?0:1)}))}return(0,r.createConnection)((o=>(0,s.createProtocolConnection)(e,t,o,n)),f,i)}(c,u,l,a)}}(u);var oo=u;const ro=oo.createConnection(oo.ProposedFeatures.all,new oo.StreamMessageReader(process.stdin),new oo.StreamMessageWriter(process.stdout));let io=!1,so=!1;ro.onInitialize((e=>{const t=e.capabilities;io=!(!t.workspace||!t.workspace.configuration),so=!(!t.workspace||!t.workspace.workspaceFolders);const n={capabilities:{textDocumentSync:oo.TextDocumentSyncKind.Incremental}};return so&&(n.capabilities.workspace={workspaceFolders:{supported:!0}}),n})),ro.onInitialized((()=>{io&&ro.client.register(oo.DidChangeConfigurationNotification.type,void 0),so&&ro.workspace.onDidChangeWorkspaceFolders((e=>{ro.console.log("Workspace folder change event received.")})),ro.console.log("This log is from fallback service. Node version: "+process.version)})),ro.listen();