@covalent/components 8.14.1 → 8.15.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (313) hide show
  1. package/abap-1354785f.mjs +1314 -0
  2. package/abap-c7187853.js +6 -0
  3. package/action-ribbon.js +1 -1
  4. package/action-ribbon.mjs +4 -3
  5. package/alert.js +1 -1
  6. package/alert.mjs +4 -3
  7. package/apex-279d4f27.mjs +315 -0
  8. package/apex-fc5f2b3e.js +6 -0
  9. package/app-shell.js +1 -1
  10. package/app-shell.mjs +8 -7
  11. package/assets/css.worker-1af1972f.js +84 -0
  12. package/assets/editor.worker-df55e1ff.js +8 -0
  13. package/assets/html.worker-38c267f1.js +456 -0
  14. package/assets/json.worker-bf861c27.js +39 -0
  15. package/assets/ts.worker-e151483b.js +33972 -0
  16. package/async-directive-4a34f75e.js +5 -0
  17. package/async-directive-99a01ec7.mjs +78 -0
  18. package/azcli-ba812c55.mjs +74 -0
  19. package/azcli-eb191d91.js +6 -0
  20. package/badge.js +1 -1
  21. package/badge.mjs +4 -3
  22. package/bat-34d38df4.js +6 -0
  23. package/bat-4d77495d.mjs +95 -0
  24. package/bicep-7b240724.mjs +108 -0
  25. package/bicep-a8264e77.js +7 -0
  26. package/button.js +1 -1
  27. package/button.mjs +10 -9
  28. package/cameligo-5d2daeb8.mjs +168 -0
  29. package/cameligo-6e71c8f3.js +6 -0
  30. package/card.js +1 -1
  31. package/card.mjs +4 -3
  32. package/cell/cell.d.ts +58 -0
  33. package/cell/cell.d.ts.map +1 -0
  34. package/cell.js +25 -0
  35. package/cell.mjs +129 -0
  36. package/check-list-item.js +1 -1
  37. package/check-list-item.mjs +8 -7
  38. package/checkbox.js +1 -1
  39. package/checkbox.mjs +16 -15
  40. package/{chip-ebd0a88e.js → chip-c65a4549.js} +1 -1
  41. package/{chip-2d0fd3f0.mjs → chip-fb0ea5c5.mjs} +1 -1
  42. package/chip-set.js +2 -2
  43. package/chip-set.mjs +46 -45
  44. package/chip.js +1 -1
  45. package/chip.mjs +5 -4
  46. package/circular-progress.js +1 -1
  47. package/circular-progress.mjs +5 -4
  48. package/class-map-0a4c6ca9.js +5 -0
  49. package/class-map-6e504a9a.mjs +38 -0
  50. package/clojure-355adae1.js +6 -0
  51. package/clojure-b7ea12a3.mjs +754 -0
  52. package/code-editor/code-editor.d.ts +51 -0
  53. package/code-editor/code-editor.d.ts.map +1 -0
  54. package/code-editor-383a8fae.mjs +94274 -0
  55. package/code-editor-4cce5e5d.js +1200 -0
  56. package/code-editor.js +1 -0
  57. package/code-editor.mjs +10 -0
  58. package/code-snippet.js +1 -1
  59. package/code-snippet.mjs +4 -3
  60. package/coffee-1a8cfbf4.mjs +228 -0
  61. package/coffee-fd8a7421.js +6 -0
  62. package/cpp-642b10c4.mjs +387 -0
  63. package/cpp-7eec3311.js +6 -0
  64. package/csharp-32862cd2.js +6 -0
  65. package/csharp-d987ddad.mjs +320 -0
  66. package/csp-54919de0.js +6 -0
  67. package/csp-96407af0.mjs +57 -0
  68. package/css-5dd354ac.mjs +186 -0
  69. package/css-9be95551.js +8 -0
  70. package/cssMode-821261c4.js +9 -0
  71. package/cssMode-9b89f9af.mjs +1450 -0
  72. package/cypher-11e5a4b6.mjs +262 -0
  73. package/cypher-cc849b67.js +6 -0
  74. package/dart-031264ea.js +6 -0
  75. package/dart-5d209f63.mjs +270 -0
  76. package/{dialog-c9dbe94d.mjs → dialog-16aad066.mjs} +1 -1
  77. package/{dialog-82b03745.js → dialog-86192b9a.js} +1 -1
  78. package/dialog.js +1 -1
  79. package/dialog.mjs +5 -4
  80. package/directive-1186bc23.js +5 -0
  81. package/directive-daf4e9b6.mjs +27 -0
  82. package/dockerfile-2f8684f7.js +6 -0
  83. package/dockerfile-8739cff7.mjs +132 -0
  84. package/drawer.js +1 -1
  85. package/drawer.mjs +5 -4
  86. package/ecl-68a6f20f.js +6 -0
  87. package/ecl-a20c5155.mjs +454 -0
  88. package/elixir-32cc668e.js +6 -0
  89. package/elixir-8b028584.mjs +467 -0
  90. package/flow9-0dea2e73.mjs +141 -0
  91. package/flow9-1d2ab5f6.js +6 -0
  92. package/formfield.js +3 -3
  93. package/formfield.mjs +4 -3
  94. package/freemarker2-4fc0d2e6.mjs +648 -0
  95. package/freemarker2-7095cbc4.js +8 -0
  96. package/fsharp-49a70fad.mjs +210 -0
  97. package/fsharp-a22f5013.js +6 -0
  98. package/go-46e3b371.mjs +208 -0
  99. package/go-cdd943fd.js +6 -0
  100. package/graphql-1a14eb34.js +6 -0
  101. package/graphql-51a577e5.mjs +141 -0
  102. package/handlebars-6a356ce9.js +6 -0
  103. package/handlebars-82c24f9d.mjs +396 -0
  104. package/hcl-0833427e.js +6 -0
  105. package/hcl-56b85754.mjs +177 -0
  106. package/html-a95df2b1.mjs +286 -0
  107. package/html-d9124a1e.js +6 -0
  108. package/htmlMode-3946317b.js +9 -0
  109. package/htmlMode-45fac07b.mjs +1460 -0
  110. package/icon-button-toggle.js +1 -1
  111. package/icon-button-toggle.mjs +6 -5
  112. package/icon-button.js +1 -1
  113. package/icon-button.mjs +6 -5
  114. package/icon-check-toggle.js +1 -1
  115. package/icon-check-toggle.mjs +7 -6
  116. package/icon-radio-toggle.js +3 -3
  117. package/icon-radio-toggle.mjs +7 -6
  118. package/index.d.ts +3 -0
  119. package/index.d.ts.map +1 -1
  120. package/index.js +1 -1
  121. package/index.mjs +125 -117
  122. package/ini-1d58d82f.mjs +68 -0
  123. package/ini-34a929df.js +6 -0
  124. package/java-32d7b433.js +6 -0
  125. package/java-cd017f60.mjs +221 -0
  126. package/javascript-0226b3a0.mjs +80 -0
  127. package/javascript-ec698494.js +6 -0
  128. package/jsonMode-a8e45f39.js +11 -0
  129. package/jsonMode-bdcd2ed9.mjs +1871 -0
  130. package/julia-7db1fb9a.js +6 -0
  131. package/julia-a0caf483.mjs +496 -0
  132. package/kotlin-4b9019e1.js +6 -0
  133. package/kotlin-c6e52a56.mjs +245 -0
  134. package/less-5219eae1.js +7 -0
  135. package/less-718543b4.mjs +168 -0
  136. package/lexon-5e6e7a44.mjs +151 -0
  137. package/lexon-dfd683ab.js +6 -0
  138. package/linear-progress.js +1 -1
  139. package/linear-progress.mjs +5 -4
  140. package/liquid-2dc745b6.mjs +243 -0
  141. package/liquid-b6e2effe.js +6 -0
  142. package/list-item.js +2 -2
  143. package/list-item.mjs +7 -6
  144. package/list.js +1 -1
  145. package/list.mjs +8 -7
  146. package/lua-b46719a9.js +6 -0
  147. package/lua-f159160b.mjs +157 -0
  148. package/m3-87473279.js +6 -0
  149. package/m3-aadaf771.mjs +210 -0
  150. package/markdown-9b448c46.mjs +202 -0
  151. package/markdown-eae8e3ba.js +6 -0
  152. package/menu.js +5 -5
  153. package/menu.mjs +9 -8
  154. package/mips-161e49ce.mjs +194 -0
  155. package/mips-82a1ce59.js +6 -0
  156. package/msdax-b3b5017e.js +6 -0
  157. package/msdax-f65cb1e6.mjs +377 -0
  158. package/{mwc-checkbox-base-c40d16d2.mjs → mwc-checkbox-base-02b4eb91.mjs} +2 -2
  159. package/{mwc-checkbox-base-3d8c9549.js → mwc-checkbox-base-935d9566.js} +1 -1
  160. package/{mwc-drawer-base-798b11f8.js → mwc-drawer-base-bbae43c3.js} +1 -1
  161. package/{mwc-drawer-base-9c77129c.mjs → mwc-drawer-base-ca75f41f.mjs} +1 -1
  162. package/{mwc-line-ripple-directive-a6b39a3c.js → mwc-line-ripple-directive-40145003.js} +14 -14
  163. package/{mwc-line-ripple-directive-f9dd7fe3.mjs → mwc-line-ripple-directive-aabd8778.mjs} +6 -5
  164. package/{mwc-list-base-400b00e2.js → mwc-list-base-22616d0a.js} +1 -1
  165. package/{mwc-list-base-495cbb3b.mjs → mwc-list-base-402e1d8e.mjs} +1 -1
  166. package/{mwc-list-item-base-297d86b0.js → mwc-list-item-base-06d93e6e.js} +1 -1
  167. package/{mwc-list-item-base-6449e812.mjs → mwc-list-item-base-3c6a3bfb.mjs} +2 -2
  168. package/{mwc-menu-base-9704207e.mjs → mwc-menu-base-04586160.mjs} +3 -3
  169. package/{mwc-menu-base-c75ca473.js → mwc-menu-base-08f54c38.js} +1 -1
  170. package/{mwc-radio-base-913e02e2.js → mwc-radio-base-147cf999.js} +1 -1
  171. package/{mwc-radio-base-4dbe9e38.mjs → mwc-radio-base-768b4221.mjs} +2 -2
  172. package/{mwc-slider.css-c7107d94.js → mwc-slider.css-c5f99704.js} +1 -1
  173. package/{mwc-slider.css-30c91236.mjs → mwc-slider.css-cda43bd0.mjs} +3 -3
  174. package/{mwc-tab-base-effde6e4.mjs → mwc-tab-base-0814a3ef.mjs} +2 -2
  175. package/{mwc-tab-base-f28722aa.js → mwc-tab-base-f2269fd1.js} +1 -1
  176. package/{mwc-top-app-bar-base-28c4192d.mjs → mwc-top-app-bar-base-8a7f7312.mjs} +1 -1
  177. package/{mwc-top-app-bar-base-aec60f27.js → mwc-top-app-bar-base-8c8cde51.js} +1 -1
  178. package/mysql-24549dd1.mjs +875 -0
  179. package/mysql-69f1c589.js +6 -0
  180. package/nav-list-item.js +1 -1
  181. package/nav-list-item.mjs +7 -6
  182. package/notebook/notebook.d.ts +49 -0
  183. package/notebook/notebook.d.ts.map +1 -0
  184. package/notebook.js +90 -0
  185. package/notebook.mjs +3307 -0
  186. package/objective-c-c8319b65.js +6 -0
  187. package/objective-c-e129a5ca.mjs +188 -0
  188. package/package.json +16 -1
  189. package/pascal-4ccdf5ce.mjs +245 -0
  190. package/pascal-e5207a08.js +6 -0
  191. package/pascaligo-8eb79945.js +6 -0
  192. package/pascaligo-a9603dcd.mjs +158 -0
  193. package/perl-ba1fb97a.mjs +599 -0
  194. package/perl-e8264c91.js +6 -0
  195. package/pgsql-89978310.mjs +843 -0
  196. package/pgsql-c8ba6faf.js +6 -0
  197. package/php-987b9d87.mjs +471 -0
  198. package/php-a6dcde52.js +6 -0
  199. package/pla-96c2695d.mjs +131 -0
  200. package/pla-c85b0e59.js +6 -0
  201. package/postiats-3c2c478e.js +6 -0
  202. package/postiats-7b52ebac.mjs +544 -0
  203. package/powerquery-8954ec26.mjs +890 -0
  204. package/powerquery-b0d5f9e4.js +6 -0
  205. package/powershell-cdb88123.js +6 -0
  206. package/powershell-f00d0274.mjs +233 -0
  207. package/protobuf-3eb85f80.mjs +422 -0
  208. package/protobuf-a3b2ca94.js +7 -0
  209. package/pug-6fab415a.mjs +393 -0
  210. package/pug-c5df821d.js +6 -0
  211. package/python-7770f129.mjs +264 -0
  212. package/python-c7862f06.js +6 -0
  213. package/qsharp-4792f872.mjs +282 -0
  214. package/qsharp-7eddb7b9.js +6 -0
  215. package/r-42c6f0aa.js +6 -0
  216. package/r-630f5d6b.mjs +245 -0
  217. package/radio-list-item.js +1 -1
  218. package/radio-list-item.mjs +8 -7
  219. package/radio.js +2 -2
  220. package/radio.mjs +7 -6
  221. package/razor-3871ef20.mjs +517 -0
  222. package/razor-4a6a11b1.js +6 -0
  223. package/redis-0d0a89dd.js +6 -0
  224. package/redis-276b8288.mjs +298 -0
  225. package/redshift-520a7359.mjs +806 -0
  226. package/redshift-b6bdaeca.js +6 -0
  227. package/restructuredtext-4676a3fc.mjs +162 -0
  228. package/restructuredtext-c83d56ed.js +6 -0
  229. package/{ripple-handlers-0d9ad7c2.mjs → ripple-handlers-8883e893.mjs} +2 -2
  230. package/{ripple-handlers-5d5b21db.js → ripple-handlers-9fb4a31a.js} +1 -1
  231. package/ruby-764137cd.mjs +444 -0
  232. package/ruby-96103dcf.js +6 -0
  233. package/rust-87887495.js +6 -0
  234. package/rust-97f8f6e1.mjs +337 -0
  235. package/sb-8c22f14c.mjs +110 -0
  236. package/sb-e2701210.js +6 -0
  237. package/scala-c68c650c.mjs +353 -0
  238. package/scala-e8b7bd42.js +6 -0
  239. package/scheme-b9cbf7cb.js +6 -0
  240. package/scheme-e6a52cb0.mjs +114 -0
  241. package/scss-45104c77.mjs +244 -0
  242. package/scss-d0f4f80e.js +8 -0
  243. package/select.js +1 -1
  244. package/select.mjs +10 -9
  245. package/shell-09452d42.mjs +224 -0
  246. package/shell-43cfbe7d.js +6 -0
  247. package/side-sheet.js +1 -1
  248. package/side-sheet.mjs +3 -2
  249. package/slider-range.js +1 -1
  250. package/slider-range.mjs +7 -6
  251. package/slider.js +1 -1
  252. package/slider.mjs +12 -11
  253. package/snackbar.js +14 -18
  254. package/snackbar.mjs +88 -159
  255. package/solidity-d4979008.mjs +1351 -0
  256. package/solidity-f1319e8a.js +6 -0
  257. package/sophia-21995caf.mjs +190 -0
  258. package/sophia-a1ce907f.js +6 -0
  259. package/sparql-5088743c.mjs +193 -0
  260. package/sparql-98d9e092.js +6 -0
  261. package/sql-63ec8e76.mjs +818 -0
  262. package/sql-faf05577.js +6 -0
  263. package/st-122893c4.js +6 -0
  264. package/st-fa9ab362.mjs +414 -0
  265. package/status-dialog.js +1 -1
  266. package/status-dialog.mjs +7 -6
  267. package/status-header.js +1 -1
  268. package/status-header.mjs +4 -3
  269. package/{style-map-88d2563f.js → style-map-a135c6ab.js} +2 -2
  270. package/{style-map-bc3ed3e0.mjs → style-map-e7ec6d41.mjs} +1 -1
  271. package/style.css +1 -0
  272. package/swift-724ff2a3.js +8 -0
  273. package/swift-abdf1835.mjs +315 -0
  274. package/switch.js +1 -1
  275. package/switch.mjs +6 -5
  276. package/systemverilog-8139818b.js +6 -0
  277. package/systemverilog-a4f858ed.mjs +556 -0
  278. package/tab-bar.js +2 -2
  279. package/tab-bar.mjs +7 -6
  280. package/tab.js +1 -1
  281. package/tab.mjs +9 -8
  282. package/tcl-8adf937f.mjs +232 -0
  283. package/tcl-e49fed0b.js +6 -0
  284. package/text-lockup.js +1 -1
  285. package/text-lockup.mjs +4 -3
  286. package/textarea.js +1 -1
  287. package/textarea.mjs +6 -5
  288. package/{textfield-11525c88.js → textfield-0645375b.js} +16 -16
  289. package/{textfield-902f3ad3.mjs → textfield-93cfcf3c.mjs} +5 -4
  290. package/textfield.js +1 -1
  291. package/textfield.mjs +6 -5
  292. package/toolbar.js +1 -1
  293. package/toolbar.mjs +5 -4
  294. package/top-app-bar-fixed.js +1 -1
  295. package/top-app-bar-fixed.mjs +5 -4
  296. package/top-app-bar.js +1 -1
  297. package/top-app-bar.mjs +8 -7
  298. package/tree-list-item.js +1 -1
  299. package/tree-list-item.mjs +4 -3
  300. package/tsMode-426fdb34.mjs +794 -0
  301. package/tsMode-9087ec29.js +16 -0
  302. package/twig-404eb73e.mjs +323 -0
  303. package/twig-4bfb5b04.js +6 -0
  304. package/typescript-37d9bf54.mjs +332 -0
  305. package/typescript-eb2ab867.js +6 -0
  306. package/vb-8dfd000c.js +6 -0
  307. package/vb-e21e8153.mjs +364 -0
  308. package/xml-349a9a42.js +6 -0
  309. package/xml-9970ffe1.mjs +100 -0
  310. package/yaml-167e3d82.mjs +189 -0
  311. package/yaml-837b2090.js +6 -0
  312. package/class-map-4b94b017.mjs +0 -62
  313. package/class-map-b5efe8da.js +0 -9
@@ -0,0 +1,1460 @@
1
+ var $e = Object.defineProperty;
2
+ var qe = (e, n, i) => n in e ? $e(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
+ var E = (e, n, i) => (qe(e, typeof n != "symbol" ? n + "" : n, i), i);
4
+ import { m as Qe } from "./code-editor-383a8fae.mjs";
5
+ import "./query-assigned-elements-4a39219d.mjs";
6
+ import "./property-9b6ea53b.mjs";
7
+ import "./async-directive-99a01ec7.mjs";
8
+ import "./directive-helpers-e3ea6592.mjs";
9
+ import "./directive-daf4e9b6.mjs";
10
+ /*!-----------------------------------------------------------------------------
11
+ * Copyright (c) Microsoft Corporation. All rights reserved.
12
+ * Version: 0.34.1(547870b6881302c5b4ff32173c16d06009e3588f)
13
+ * Released under the MIT license
14
+ * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
15
+ *-----------------------------------------------------------------------------*/
16
+ var Ge = Object.defineProperty, Je = Object.getOwnPropertyDescriptor, Ye = Object.getOwnPropertyNames, Ze = Object.prototype.hasOwnProperty, Y = (e, n, i, r) => {
17
+ if (n && typeof n == "object" || typeof n == "function")
18
+ for (let t of Ye(n))
19
+ !Ze.call(e, t) && t !== i && Ge(e, t, { get: () => n[t], enumerable: !(r = Je(n, t)) || r.enumerable });
20
+ return e;
21
+ }, Ke = (e, n, i) => (Y(e, n, "default"), i && Y(i, n, "default")), c = {};
22
+ Ke(c, Qe);
23
+ var et = 2 * 60 * 1e3, Me = class {
24
+ constructor(e) {
25
+ E(this, "_defaults");
26
+ E(this, "_idleCheckInterval");
27
+ E(this, "_lastUsedTime");
28
+ E(this, "_configChangeListener");
29
+ E(this, "_worker");
30
+ E(this, "_client");
31
+ this._defaults = e, this._worker = null, this._client = null, this._idleCheckInterval = window.setInterval(() => this._checkIfIdle(), 30 * 1e3), this._lastUsedTime = 0, this._configChangeListener = this._defaults.onDidChange(() => this._stopWorker());
32
+ }
33
+ _stopWorker() {
34
+ this._worker && (this._worker.dispose(), this._worker = null), this._client = null;
35
+ }
36
+ dispose() {
37
+ clearInterval(this._idleCheckInterval), this._configChangeListener.dispose(), this._stopWorker();
38
+ }
39
+ _checkIfIdle() {
40
+ if (!this._worker)
41
+ return;
42
+ Date.now() - this._lastUsedTime > et && this._stopWorker();
43
+ }
44
+ _getClient() {
45
+ return this._lastUsedTime = Date.now(), this._client || (this._worker = c.editor.createWebWorker({
46
+ moduleId: "vs/language/html/htmlWorker",
47
+ createData: {
48
+ languageSettings: this._defaults.options,
49
+ languageId: this._defaults.languageId
50
+ },
51
+ label: this._defaults.languageId
52
+ }), this._client = this._worker.getProxy()), this._client;
53
+ }
54
+ getLanguageServiceWorker(...e) {
55
+ let n;
56
+ return this._getClient().then((i) => {
57
+ n = i;
58
+ }).then((i) => {
59
+ if (this._worker)
60
+ return this._worker.withSyncedResources(e);
61
+ }).then((i) => n);
62
+ }
63
+ }, Z;
64
+ (function(e) {
65
+ e.MIN_VALUE = -2147483648, e.MAX_VALUE = 2147483647;
66
+ })(Z || (Z = {}));
67
+ var H;
68
+ (function(e) {
69
+ e.MIN_VALUE = 0, e.MAX_VALUE = 2147483647;
70
+ })(H || (H = {}));
71
+ var k;
72
+ (function(e) {
73
+ function n(r, t) {
74
+ return r === Number.MAX_VALUE && (r = H.MAX_VALUE), t === Number.MAX_VALUE && (t = H.MAX_VALUE), { line: r, character: t };
75
+ }
76
+ e.create = n;
77
+ function i(r) {
78
+ var t = r;
79
+ return s.objectLiteral(t) && s.uinteger(t.line) && s.uinteger(t.character);
80
+ }
81
+ e.is = i;
82
+ })(k || (k = {}));
83
+ var p;
84
+ (function(e) {
85
+ function n(r, t, a, o) {
86
+ if (s.uinteger(r) && s.uinteger(t) && s.uinteger(a) && s.uinteger(o))
87
+ return { start: k.create(r, t), end: k.create(a, o) };
88
+ if (k.is(r) && k.is(t))
89
+ return { start: r, end: t };
90
+ throw new Error("Range#create called with invalid arguments[" + r + ", " + t + ", " + a + ", " + o + "]");
91
+ }
92
+ e.create = n;
93
+ function i(r) {
94
+ var t = r;
95
+ return s.objectLiteral(t) && k.is(t.start) && k.is(t.end);
96
+ }
97
+ e.is = i;
98
+ })(p || (p = {}));
99
+ var X;
100
+ (function(e) {
101
+ function n(r, t) {
102
+ return { uri: r, range: t };
103
+ }
104
+ e.create = n;
105
+ function i(r) {
106
+ var t = r;
107
+ return s.defined(t) && p.is(t.range) && (s.string(t.uri) || s.undefined(t.uri));
108
+ }
109
+ e.is = i;
110
+ })(X || (X = {}));
111
+ var K;
112
+ (function(e) {
113
+ function n(r, t, a, o) {
114
+ return { targetUri: r, targetRange: t, targetSelectionRange: a, originSelectionRange: o };
115
+ }
116
+ e.create = n;
117
+ function i(r) {
118
+ var t = r;
119
+ return s.defined(t) && p.is(t.targetRange) && s.string(t.targetUri) && (p.is(t.targetSelectionRange) || s.undefined(t.targetSelectionRange)) && (p.is(t.originSelectionRange) || s.undefined(t.originSelectionRange));
120
+ }
121
+ e.is = i;
122
+ })(K || (K = {}));
123
+ var B;
124
+ (function(e) {
125
+ function n(r, t, a, o) {
126
+ return {
127
+ red: r,
128
+ green: t,
129
+ blue: a,
130
+ alpha: o
131
+ };
132
+ }
133
+ e.create = n;
134
+ function i(r) {
135
+ var t = r;
136
+ return s.numberRange(t.red, 0, 1) && s.numberRange(t.green, 0, 1) && s.numberRange(t.blue, 0, 1) && s.numberRange(t.alpha, 0, 1);
137
+ }
138
+ e.is = i;
139
+ })(B || (B = {}));
140
+ var ee;
141
+ (function(e) {
142
+ function n(r, t) {
143
+ return {
144
+ range: r,
145
+ color: t
146
+ };
147
+ }
148
+ e.create = n;
149
+ function i(r) {
150
+ var t = r;
151
+ return p.is(t.range) && B.is(t.color);
152
+ }
153
+ e.is = i;
154
+ })(ee || (ee = {}));
155
+ var te;
156
+ (function(e) {
157
+ function n(r, t, a) {
158
+ return {
159
+ label: r,
160
+ textEdit: t,
161
+ additionalTextEdits: a
162
+ };
163
+ }
164
+ e.create = n;
165
+ function i(r) {
166
+ var t = r;
167
+ return s.string(t.label) && (s.undefined(t.textEdit) || C.is(t)) && (s.undefined(t.additionalTextEdits) || s.typedArray(t.additionalTextEdits, C.is));
168
+ }
169
+ e.is = i;
170
+ })(te || (te = {}));
171
+ var R;
172
+ (function(e) {
173
+ e.Comment = "comment", e.Imports = "imports", e.Region = "region";
174
+ })(R || (R = {}));
175
+ var re;
176
+ (function(e) {
177
+ function n(r, t, a, o, u) {
178
+ var f = {
179
+ startLine: r,
180
+ endLine: t
181
+ };
182
+ return s.defined(a) && (f.startCharacter = a), s.defined(o) && (f.endCharacter = o), s.defined(u) && (f.kind = u), f;
183
+ }
184
+ e.create = n;
185
+ function i(r) {
186
+ var t = r;
187
+ return s.uinteger(t.startLine) && s.uinteger(t.startLine) && (s.undefined(t.startCharacter) || s.uinteger(t.startCharacter)) && (s.undefined(t.endCharacter) || s.uinteger(t.endCharacter)) && (s.undefined(t.kind) || s.string(t.kind));
188
+ }
189
+ e.is = i;
190
+ })(re || (re = {}));
191
+ var $;
192
+ (function(e) {
193
+ function n(r, t) {
194
+ return {
195
+ location: r,
196
+ message: t
197
+ };
198
+ }
199
+ e.create = n;
200
+ function i(r) {
201
+ var t = r;
202
+ return s.defined(t) && X.is(t.location) && s.string(t.message);
203
+ }
204
+ e.is = i;
205
+ })($ || ($ = {}));
206
+ var I;
207
+ (function(e) {
208
+ e.Error = 1, e.Warning = 2, e.Information = 3, e.Hint = 4;
209
+ })(I || (I = {}));
210
+ var ne;
211
+ (function(e) {
212
+ e.Unnecessary = 1, e.Deprecated = 2;
213
+ })(ne || (ne = {}));
214
+ var ie;
215
+ (function(e) {
216
+ function n(i) {
217
+ var r = i;
218
+ return r != null && s.string(r.href);
219
+ }
220
+ e.is = n;
221
+ })(ie || (ie = {}));
222
+ var U;
223
+ (function(e) {
224
+ function n(r, t, a, o, u, f) {
225
+ var d = { range: r, message: t };
226
+ return s.defined(a) && (d.severity = a), s.defined(o) && (d.code = o), s.defined(u) && (d.source = u), s.defined(f) && (d.relatedInformation = f), d;
227
+ }
228
+ e.create = n;
229
+ function i(r) {
230
+ var t, a = r;
231
+ return s.defined(a) && p.is(a.range) && s.string(a.message) && (s.number(a.severity) || s.undefined(a.severity)) && (s.integer(a.code) || s.string(a.code) || s.undefined(a.code)) && (s.undefined(a.codeDescription) || s.string((t = a.codeDescription) === null || t === void 0 ? void 0 : t.href)) && (s.string(a.source) || s.undefined(a.source)) && (s.undefined(a.relatedInformation) || s.typedArray(a.relatedInformation, $.is));
232
+ }
233
+ e.is = i;
234
+ })(U || (U = {}));
235
+ var M;
236
+ (function(e) {
237
+ function n(r, t) {
238
+ for (var a = [], o = 2; o < arguments.length; o++)
239
+ a[o - 2] = arguments[o];
240
+ var u = { title: r, command: t };
241
+ return s.defined(a) && a.length > 0 && (u.arguments = a), u;
242
+ }
243
+ e.create = n;
244
+ function i(r) {
245
+ var t = r;
246
+ return s.defined(t) && s.string(t.title) && s.string(t.command);
247
+ }
248
+ e.is = i;
249
+ })(M || (M = {}));
250
+ var C;
251
+ (function(e) {
252
+ function n(a, o) {
253
+ return { range: a, newText: o };
254
+ }
255
+ e.replace = n;
256
+ function i(a, o) {
257
+ return { range: { start: a, end: a }, newText: o };
258
+ }
259
+ e.insert = i;
260
+ function r(a) {
261
+ return { range: a, newText: "" };
262
+ }
263
+ e.del = r;
264
+ function t(a) {
265
+ var o = a;
266
+ return s.objectLiteral(o) && s.string(o.newText) && p.is(o.range);
267
+ }
268
+ e.is = t;
269
+ })(C || (C = {}));
270
+ var P;
271
+ (function(e) {
272
+ function n(r, t, a) {
273
+ var o = { label: r };
274
+ return t !== void 0 && (o.needsConfirmation = t), a !== void 0 && (o.description = a), o;
275
+ }
276
+ e.create = n;
277
+ function i(r) {
278
+ var t = r;
279
+ return t !== void 0 && s.objectLiteral(t) && s.string(t.label) && (s.boolean(t.needsConfirmation) || t.needsConfirmation === void 0) && (s.string(t.description) || t.description === void 0);
280
+ }
281
+ e.is = i;
282
+ })(P || (P = {}));
283
+ var m;
284
+ (function(e) {
285
+ function n(i) {
286
+ var r = i;
287
+ return typeof r == "string";
288
+ }
289
+ e.is = n;
290
+ })(m || (m = {}));
291
+ var x;
292
+ (function(e) {
293
+ function n(a, o, u) {
294
+ return { range: a, newText: o, annotationId: u };
295
+ }
296
+ e.replace = n;
297
+ function i(a, o, u) {
298
+ return { range: { start: a, end: a }, newText: o, annotationId: u };
299
+ }
300
+ e.insert = i;
301
+ function r(a, o) {
302
+ return { range: a, newText: "", annotationId: o };
303
+ }
304
+ e.del = r;
305
+ function t(a) {
306
+ var o = a;
307
+ return C.is(o) && (P.is(o.annotationId) || m.is(o.annotationId));
308
+ }
309
+ e.is = t;
310
+ })(x || (x = {}));
311
+ var O;
312
+ (function(e) {
313
+ function n(r, t) {
314
+ return { textDocument: r, edits: t };
315
+ }
316
+ e.create = n;
317
+ function i(r) {
318
+ var t = r;
319
+ return s.defined(t) && V.is(t.textDocument) && Array.isArray(t.edits);
320
+ }
321
+ e.is = i;
322
+ })(O || (O = {}));
323
+ var S;
324
+ (function(e) {
325
+ function n(r, t, a) {
326
+ var o = {
327
+ kind: "create",
328
+ uri: r
329
+ };
330
+ return t !== void 0 && (t.overwrite !== void 0 || t.ignoreIfExists !== void 0) && (o.options = t), a !== void 0 && (o.annotationId = a), o;
331
+ }
332
+ e.create = n;
333
+ function i(r) {
334
+ var t = r;
335
+ return t && t.kind === "create" && s.string(t.uri) && (t.options === void 0 || (t.options.overwrite === void 0 || s.boolean(t.options.overwrite)) && (t.options.ignoreIfExists === void 0 || s.boolean(t.options.ignoreIfExists))) && (t.annotationId === void 0 || m.is(t.annotationId));
336
+ }
337
+ e.is = i;
338
+ })(S || (S = {}));
339
+ var T;
340
+ (function(e) {
341
+ function n(r, t, a, o) {
342
+ var u = {
343
+ kind: "rename",
344
+ oldUri: r,
345
+ newUri: t
346
+ };
347
+ return a !== void 0 && (a.overwrite !== void 0 || a.ignoreIfExists !== void 0) && (u.options = a), o !== void 0 && (u.annotationId = o), u;
348
+ }
349
+ e.create = n;
350
+ function i(r) {
351
+ var t = r;
352
+ return t && t.kind === "rename" && s.string(t.oldUri) && s.string(t.newUri) && (t.options === void 0 || (t.options.overwrite === void 0 || s.boolean(t.options.overwrite)) && (t.options.ignoreIfExists === void 0 || s.boolean(t.options.ignoreIfExists))) && (t.annotationId === void 0 || m.is(t.annotationId));
353
+ }
354
+ e.is = i;
355
+ })(T || (T = {}));
356
+ var F;
357
+ (function(e) {
358
+ function n(r, t, a) {
359
+ var o = {
360
+ kind: "delete",
361
+ uri: r
362
+ };
363
+ return t !== void 0 && (t.recursive !== void 0 || t.ignoreIfNotExists !== void 0) && (o.options = t), a !== void 0 && (o.annotationId = a), o;
364
+ }
365
+ e.create = n;
366
+ function i(r) {
367
+ var t = r;
368
+ return t && t.kind === "delete" && s.string(t.uri) && (t.options === void 0 || (t.options.recursive === void 0 || s.boolean(t.options.recursive)) && (t.options.ignoreIfNotExists === void 0 || s.boolean(t.options.ignoreIfNotExists))) && (t.annotationId === void 0 || m.is(t.annotationId));
369
+ }
370
+ e.is = i;
371
+ })(F || (F = {}));
372
+ var q;
373
+ (function(e) {
374
+ function n(i) {
375
+ var r = i;
376
+ return r && (r.changes !== void 0 || r.documentChanges !== void 0) && (r.documentChanges === void 0 || r.documentChanges.every(function(t) {
377
+ return s.string(t.kind) ? S.is(t) || T.is(t) || F.is(t) : O.is(t);
378
+ }));
379
+ }
380
+ e.is = n;
381
+ })(q || (q = {}));
382
+ var W = function() {
383
+ function e(n, i) {
384
+ this.edits = n, this.changeAnnotations = i;
385
+ }
386
+ return e.prototype.insert = function(n, i, r) {
387
+ var t, a;
388
+ if (r === void 0 ? t = C.insert(n, i) : m.is(r) ? (a = r, t = x.insert(n, i, r)) : (this.assertChangeAnnotations(this.changeAnnotations), a = this.changeAnnotations.manage(r), t = x.insert(n, i, a)), this.edits.push(t), a !== void 0)
389
+ return a;
390
+ }, e.prototype.replace = function(n, i, r) {
391
+ var t, a;
392
+ if (r === void 0 ? t = C.replace(n, i) : m.is(r) ? (a = r, t = x.replace(n, i, r)) : (this.assertChangeAnnotations(this.changeAnnotations), a = this.changeAnnotations.manage(r), t = x.replace(n, i, a)), this.edits.push(t), a !== void 0)
393
+ return a;
394
+ }, e.prototype.delete = function(n, i) {
395
+ var r, t;
396
+ if (i === void 0 ? r = C.del(n) : m.is(i) ? (t = i, r = x.del(n, i)) : (this.assertChangeAnnotations(this.changeAnnotations), t = this.changeAnnotations.manage(i), r = x.del(n, t)), this.edits.push(r), t !== void 0)
397
+ return t;
398
+ }, e.prototype.add = function(n) {
399
+ this.edits.push(n);
400
+ }, e.prototype.all = function() {
401
+ return this.edits;
402
+ }, e.prototype.clear = function() {
403
+ this.edits.splice(0, this.edits.length);
404
+ }, e.prototype.assertChangeAnnotations = function(n) {
405
+ if (n === void 0)
406
+ throw new Error("Text edit change is not configured to manage change annotations.");
407
+ }, e;
408
+ }(), ae = function() {
409
+ function e(n) {
410
+ this._annotations = n === void 0 ? /* @__PURE__ */ Object.create(null) : n, this._counter = 0, this._size = 0;
411
+ }
412
+ return e.prototype.all = function() {
413
+ return this._annotations;
414
+ }, Object.defineProperty(e.prototype, "size", {
415
+ get: function() {
416
+ return this._size;
417
+ },
418
+ enumerable: !1,
419
+ configurable: !0
420
+ }), e.prototype.manage = function(n, i) {
421
+ var r;
422
+ if (m.is(n) ? r = n : (r = this.nextId(), i = n), this._annotations[r] !== void 0)
423
+ throw new Error("Id " + r + " is already in use.");
424
+ if (i === void 0)
425
+ throw new Error("No annotation provided for id " + r);
426
+ return this._annotations[r] = i, this._size++, r;
427
+ }, e.prototype.nextId = function() {
428
+ return this._counter++, this._counter.toString();
429
+ }, e;
430
+ }();
431
+ (function() {
432
+ function e(n) {
433
+ var i = this;
434
+ this._textEditChanges = /* @__PURE__ */ Object.create(null), n !== void 0 ? (this._workspaceEdit = n, n.documentChanges ? (this._changeAnnotations = new ae(n.changeAnnotations), n.changeAnnotations = this._changeAnnotations.all(), n.documentChanges.forEach(function(r) {
435
+ if (O.is(r)) {
436
+ var t = new W(r.edits, i._changeAnnotations);
437
+ i._textEditChanges[r.textDocument.uri] = t;
438
+ }
439
+ })) : n.changes && Object.keys(n.changes).forEach(function(r) {
440
+ var t = new W(n.changes[r]);
441
+ i._textEditChanges[r] = t;
442
+ })) : this._workspaceEdit = {};
443
+ }
444
+ return Object.defineProperty(e.prototype, "edit", {
445
+ get: function() {
446
+ return this.initDocumentChanges(), this._changeAnnotations !== void 0 && (this._changeAnnotations.size === 0 ? this._workspaceEdit.changeAnnotations = void 0 : this._workspaceEdit.changeAnnotations = this._changeAnnotations.all()), this._workspaceEdit;
447
+ },
448
+ enumerable: !1,
449
+ configurable: !0
450
+ }), e.prototype.getTextEditChange = function(n) {
451
+ if (V.is(n)) {
452
+ if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0)
453
+ throw new Error("Workspace edit is not configured for document changes.");
454
+ var i = { uri: n.uri, version: n.version }, r = this._textEditChanges[i.uri];
455
+ if (!r) {
456
+ var t = [], a = {
457
+ textDocument: i,
458
+ edits: t
459
+ };
460
+ this._workspaceEdit.documentChanges.push(a), r = new W(t, this._changeAnnotations), this._textEditChanges[i.uri] = r;
461
+ }
462
+ return r;
463
+ } else {
464
+ if (this.initChanges(), this._workspaceEdit.changes === void 0)
465
+ throw new Error("Workspace edit is not configured for normal text edit changes.");
466
+ var r = this._textEditChanges[n];
467
+ if (!r) {
468
+ var t = [];
469
+ this._workspaceEdit.changes[n] = t, r = new W(t), this._textEditChanges[n] = r;
470
+ }
471
+ return r;
472
+ }
473
+ }, e.prototype.initDocumentChanges = function() {
474
+ this._workspaceEdit.documentChanges === void 0 && this._workspaceEdit.changes === void 0 && (this._changeAnnotations = new ae(), this._workspaceEdit.documentChanges = [], this._workspaceEdit.changeAnnotations = this._changeAnnotations.all());
475
+ }, e.prototype.initChanges = function() {
476
+ this._workspaceEdit.documentChanges === void 0 && this._workspaceEdit.changes === void 0 && (this._workspaceEdit.changes = /* @__PURE__ */ Object.create(null));
477
+ }, e.prototype.createFile = function(n, i, r) {
478
+ if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0)
479
+ throw new Error("Workspace edit is not configured for document changes.");
480
+ var t;
481
+ P.is(i) || m.is(i) ? t = i : r = i;
482
+ var a, o;
483
+ if (t === void 0 ? a = S.create(n, r) : (o = m.is(t) ? t : this._changeAnnotations.manage(t), a = S.create(n, r, o)), this._workspaceEdit.documentChanges.push(a), o !== void 0)
484
+ return o;
485
+ }, e.prototype.renameFile = function(n, i, r, t) {
486
+ if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0)
487
+ throw new Error("Workspace edit is not configured for document changes.");
488
+ var a;
489
+ P.is(r) || m.is(r) ? a = r : t = r;
490
+ var o, u;
491
+ if (a === void 0 ? o = T.create(n, i, t) : (u = m.is(a) ? a : this._changeAnnotations.manage(a), o = T.create(n, i, t, u)), this._workspaceEdit.documentChanges.push(o), u !== void 0)
492
+ return u;
493
+ }, e.prototype.deleteFile = function(n, i, r) {
494
+ if (this.initDocumentChanges(), this._workspaceEdit.documentChanges === void 0)
495
+ throw new Error("Workspace edit is not configured for document changes.");
496
+ var t;
497
+ P.is(i) || m.is(i) ? t = i : r = i;
498
+ var a, o;
499
+ if (t === void 0 ? a = F.create(n, r) : (o = m.is(t) ? t : this._changeAnnotations.manage(t), a = F.create(n, r, o)), this._workspaceEdit.documentChanges.push(a), o !== void 0)
500
+ return o;
501
+ }, e;
502
+ })();
503
+ var oe;
504
+ (function(e) {
505
+ function n(r) {
506
+ return { uri: r };
507
+ }
508
+ e.create = n;
509
+ function i(r) {
510
+ var t = r;
511
+ return s.defined(t) && s.string(t.uri);
512
+ }
513
+ e.is = i;
514
+ })(oe || (oe = {}));
515
+ var se;
516
+ (function(e) {
517
+ function n(r, t) {
518
+ return { uri: r, version: t };
519
+ }
520
+ e.create = n;
521
+ function i(r) {
522
+ var t = r;
523
+ return s.defined(t) && s.string(t.uri) && s.integer(t.version);
524
+ }
525
+ e.is = i;
526
+ })(se || (se = {}));
527
+ var V;
528
+ (function(e) {
529
+ function n(r, t) {
530
+ return { uri: r, version: t };
531
+ }
532
+ e.create = n;
533
+ function i(r) {
534
+ var t = r;
535
+ return s.defined(t) && s.string(t.uri) && (t.version === null || s.integer(t.version));
536
+ }
537
+ e.is = i;
538
+ })(V || (V = {}));
539
+ var ue;
540
+ (function(e) {
541
+ function n(r, t, a, o) {
542
+ return { uri: r, languageId: t, version: a, text: o };
543
+ }
544
+ e.create = n;
545
+ function i(r) {
546
+ var t = r;
547
+ return s.defined(t) && s.string(t.uri) && s.string(t.languageId) && s.integer(t.version) && s.string(t.text);
548
+ }
549
+ e.is = i;
550
+ })(ue || (ue = {}));
551
+ var L;
552
+ (function(e) {
553
+ e.PlainText = "plaintext", e.Markdown = "markdown";
554
+ })(L || (L = {}));
555
+ (function(e) {
556
+ function n(i) {
557
+ var r = i;
558
+ return r === e.PlainText || r === e.Markdown;
559
+ }
560
+ e.is = n;
561
+ })(L || (L = {}));
562
+ var Q;
563
+ (function(e) {
564
+ function n(i) {
565
+ var r = i;
566
+ return s.objectLiteral(i) && L.is(r.kind) && s.string(r.value);
567
+ }
568
+ e.is = n;
569
+ })(Q || (Q = {}));
570
+ var l;
571
+ (function(e) {
572
+ 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;
573
+ })(l || (l = {}));
574
+ var G;
575
+ (function(e) {
576
+ e.PlainText = 1, e.Snippet = 2;
577
+ })(G || (G = {}));
578
+ var ce;
579
+ (function(e) {
580
+ e.Deprecated = 1;
581
+ })(ce || (ce = {}));
582
+ var de;
583
+ (function(e) {
584
+ function n(r, t, a) {
585
+ return { newText: r, insert: t, replace: a };
586
+ }
587
+ e.create = n;
588
+ function i(r) {
589
+ var t = r;
590
+ return t && s.string(t.newText) && p.is(t.insert) && p.is(t.replace);
591
+ }
592
+ e.is = i;
593
+ })(de || (de = {}));
594
+ var ge;
595
+ (function(e) {
596
+ e.asIs = 1, e.adjustIndentation = 2;
597
+ })(ge || (ge = {}));
598
+ var fe;
599
+ (function(e) {
600
+ function n(i) {
601
+ return { label: i };
602
+ }
603
+ e.create = n;
604
+ })(fe || (fe = {}));
605
+ var le;
606
+ (function(e) {
607
+ function n(i, r) {
608
+ return { items: i || [], isIncomplete: !!r };
609
+ }
610
+ e.create = n;
611
+ })(le || (le = {}));
612
+ var z;
613
+ (function(e) {
614
+ function n(r) {
615
+ return r.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&");
616
+ }
617
+ e.fromPlainText = n;
618
+ function i(r) {
619
+ var t = r;
620
+ return s.string(t) || s.objectLiteral(t) && s.string(t.language) && s.string(t.value);
621
+ }
622
+ e.is = i;
623
+ })(z || (z = {}));
624
+ var he;
625
+ (function(e) {
626
+ function n(i) {
627
+ var r = i;
628
+ return !!r && s.objectLiteral(r) && (Q.is(r.contents) || z.is(r.contents) || s.typedArray(r.contents, z.is)) && (i.range === void 0 || p.is(i.range));
629
+ }
630
+ e.is = n;
631
+ })(he || (he = {}));
632
+ var ve;
633
+ (function(e) {
634
+ function n(i, r) {
635
+ return r ? { label: i, documentation: r } : { label: i };
636
+ }
637
+ e.create = n;
638
+ })(ve || (ve = {}));
639
+ var pe;
640
+ (function(e) {
641
+ function n(i, r) {
642
+ for (var t = [], a = 2; a < arguments.length; a++)
643
+ t[a - 2] = arguments[a];
644
+ var o = { label: i };
645
+ return s.defined(r) && (o.documentation = r), s.defined(t) ? o.parameters = t : o.parameters = [], o;
646
+ }
647
+ e.create = n;
648
+ })(pe || (pe = {}));
649
+ var D;
650
+ (function(e) {
651
+ e.Text = 1, e.Read = 2, e.Write = 3;
652
+ })(D || (D = {}));
653
+ var me;
654
+ (function(e) {
655
+ function n(i, r) {
656
+ var t = { range: i };
657
+ return s.number(r) && (t.kind = r), t;
658
+ }
659
+ e.create = n;
660
+ })(me || (me = {}));
661
+ var h;
662
+ (function(e) {
663
+ 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;
664
+ })(h || (h = {}));
665
+ var _e;
666
+ (function(e) {
667
+ e.Deprecated = 1;
668
+ })(_e || (_e = {}));
669
+ var we;
670
+ (function(e) {
671
+ function n(i, r, t, a, o) {
672
+ var u = {
673
+ name: i,
674
+ kind: r,
675
+ location: { uri: a, range: t }
676
+ };
677
+ return o && (u.containerName = o), u;
678
+ }
679
+ e.create = n;
680
+ })(we || (we = {}));
681
+ var ke;
682
+ (function(e) {
683
+ function n(r, t, a, o, u, f) {
684
+ var d = {
685
+ name: r,
686
+ detail: t,
687
+ kind: a,
688
+ range: o,
689
+ selectionRange: u
690
+ };
691
+ return f !== void 0 && (d.children = f), d;
692
+ }
693
+ e.create = n;
694
+ function i(r) {
695
+ var t = r;
696
+ return t && s.string(t.name) && s.number(t.kind) && p.is(t.range) && p.is(t.selectionRange) && (t.detail === void 0 || s.string(t.detail)) && (t.deprecated === void 0 || s.boolean(t.deprecated)) && (t.children === void 0 || Array.isArray(t.children)) && (t.tags === void 0 || Array.isArray(t.tags));
697
+ }
698
+ e.is = i;
699
+ })(ke || (ke = {}));
700
+ var be;
701
+ (function(e) {
702
+ 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";
703
+ })(be || (be = {}));
704
+ var Ee;
705
+ (function(e) {
706
+ function n(r, t) {
707
+ var a = { diagnostics: r };
708
+ return t != null && (a.only = t), a;
709
+ }
710
+ e.create = n;
711
+ function i(r) {
712
+ var t = r;
713
+ return s.defined(t) && s.typedArray(t.diagnostics, U.is) && (t.only === void 0 || s.typedArray(t.only, s.string));
714
+ }
715
+ e.is = i;
716
+ })(Ee || (Ee = {}));
717
+ var xe;
718
+ (function(e) {
719
+ function n(r, t, a) {
720
+ var o = { title: r }, u = !0;
721
+ return typeof t == "string" ? (u = !1, o.kind = t) : M.is(t) ? o.command = t : o.edit = t, u && a !== void 0 && (o.kind = a), o;
722
+ }
723
+ e.create = n;
724
+ function i(r) {
725
+ var t = r;
726
+ return t && s.string(t.title) && (t.diagnostics === void 0 || s.typedArray(t.diagnostics, U.is)) && (t.kind === void 0 || s.string(t.kind)) && (t.edit !== void 0 || t.command !== void 0) && (t.command === void 0 || M.is(t.command)) && (t.isPreferred === void 0 || s.boolean(t.isPreferred)) && (t.edit === void 0 || q.is(t.edit));
727
+ }
728
+ e.is = i;
729
+ })(xe || (xe = {}));
730
+ var Ce;
731
+ (function(e) {
732
+ function n(r, t) {
733
+ var a = { range: r };
734
+ return s.defined(t) && (a.data = t), a;
735
+ }
736
+ e.create = n;
737
+ function i(r) {
738
+ var t = r;
739
+ return s.defined(t) && p.is(t.range) && (s.undefined(t.command) || M.is(t.command));
740
+ }
741
+ e.is = i;
742
+ })(Ce || (Ce = {}));
743
+ var Ae;
744
+ (function(e) {
745
+ function n(r, t) {
746
+ return { tabSize: r, insertSpaces: t };
747
+ }
748
+ e.create = n;
749
+ function i(r) {
750
+ var t = r;
751
+ return s.defined(t) && s.uinteger(t.tabSize) && s.boolean(t.insertSpaces);
752
+ }
753
+ e.is = i;
754
+ })(Ae || (Ae = {}));
755
+ var ye;
756
+ (function(e) {
757
+ function n(r, t, a) {
758
+ return { range: r, target: t, data: a };
759
+ }
760
+ e.create = n;
761
+ function i(r) {
762
+ var t = r;
763
+ return s.defined(t) && p.is(t.range) && (s.undefined(t.target) || s.string(t.target));
764
+ }
765
+ e.is = i;
766
+ })(ye || (ye = {}));
767
+ var Ie;
768
+ (function(e) {
769
+ function n(r, t) {
770
+ return { range: r, parent: t };
771
+ }
772
+ e.create = n;
773
+ function i(r) {
774
+ var t = r;
775
+ return t !== void 0 && p.is(t.range) && (t.parent === void 0 || e.is(t.parent));
776
+ }
777
+ e.is = i;
778
+ })(Ie || (Ie = {}));
779
+ var Pe;
780
+ (function(e) {
781
+ function n(a, o, u, f) {
782
+ return new tt(a, o, u, f);
783
+ }
784
+ e.create = n;
785
+ function i(a) {
786
+ var o = a;
787
+ return !!(s.defined(o) && s.string(o.uri) && (s.undefined(o.languageId) || s.string(o.languageId)) && s.uinteger(o.lineCount) && s.func(o.getText) && s.func(o.positionAt) && s.func(o.offsetAt));
788
+ }
789
+ e.is = i;
790
+ function r(a, o) {
791
+ for (var u = a.getText(), f = t(o, function(y, N) {
792
+ var J = y.range.start.line - N.range.start.line;
793
+ return J === 0 ? y.range.start.character - N.range.start.character : J;
794
+ }), d = u.length, v = f.length - 1; v >= 0; v--) {
795
+ var w = f[v], b = a.offsetAt(w.range.start), g = a.offsetAt(w.range.end);
796
+ if (g <= d)
797
+ u = u.substring(0, b) + w.newText + u.substring(g, u.length);
798
+ else
799
+ throw new Error("Overlapping edit");
800
+ d = b;
801
+ }
802
+ return u;
803
+ }
804
+ e.applyEdits = r;
805
+ function t(a, o) {
806
+ if (a.length <= 1)
807
+ return a;
808
+ var u = a.length / 2 | 0, f = a.slice(0, u), d = a.slice(u);
809
+ t(f, o), t(d, o);
810
+ for (var v = 0, w = 0, b = 0; v < f.length && w < d.length; ) {
811
+ var g = o(f[v], d[w]);
812
+ g <= 0 ? a[b++] = f[v++] : a[b++] = d[w++];
813
+ }
814
+ for (; v < f.length; )
815
+ a[b++] = f[v++];
816
+ for (; w < d.length; )
817
+ a[b++] = d[w++];
818
+ return a;
819
+ }
820
+ })(Pe || (Pe = {}));
821
+ var tt = function() {
822
+ function e(n, i, r, t) {
823
+ this._uri = n, this._languageId = i, this._version = r, this._content = t, this._lineOffsets = void 0;
824
+ }
825
+ return Object.defineProperty(e.prototype, "uri", {
826
+ get: function() {
827
+ return this._uri;
828
+ },
829
+ enumerable: !1,
830
+ configurable: !0
831
+ }), Object.defineProperty(e.prototype, "languageId", {
832
+ get: function() {
833
+ return this._languageId;
834
+ },
835
+ enumerable: !1,
836
+ configurable: !0
837
+ }), Object.defineProperty(e.prototype, "version", {
838
+ get: function() {
839
+ return this._version;
840
+ },
841
+ enumerable: !1,
842
+ configurable: !0
843
+ }), e.prototype.getText = function(n) {
844
+ if (n) {
845
+ var i = this.offsetAt(n.start), r = this.offsetAt(n.end);
846
+ return this._content.substring(i, r);
847
+ }
848
+ return this._content;
849
+ }, e.prototype.update = function(n, i) {
850
+ this._content = n.text, this._version = i, this._lineOffsets = void 0;
851
+ }, e.prototype.getLineOffsets = function() {
852
+ if (this._lineOffsets === void 0) {
853
+ for (var n = [], i = this._content, r = !0, t = 0; t < i.length; t++) {
854
+ r && (n.push(t), r = !1);
855
+ var a = i.charAt(t);
856
+ r = a === "\r" || a === `
857
+ `, a === "\r" && t + 1 < i.length && i.charAt(t + 1) === `
858
+ ` && t++;
859
+ }
860
+ r && i.length > 0 && n.push(i.length), this._lineOffsets = n;
861
+ }
862
+ return this._lineOffsets;
863
+ }, e.prototype.positionAt = function(n) {
864
+ n = Math.max(Math.min(n, this._content.length), 0);
865
+ var i = this.getLineOffsets(), r = 0, t = i.length;
866
+ if (t === 0)
867
+ return k.create(0, n);
868
+ for (; r < t; ) {
869
+ var a = Math.floor((r + t) / 2);
870
+ i[a] > n ? t = a : r = a + 1;
871
+ }
872
+ var o = r - 1;
873
+ return k.create(o, n - i[o]);
874
+ }, e.prototype.offsetAt = function(n) {
875
+ var i = this.getLineOffsets();
876
+ if (n.line >= i.length)
877
+ return this._content.length;
878
+ if (n.line < 0)
879
+ return 0;
880
+ var r = i[n.line], t = n.line + 1 < i.length ? i[n.line + 1] : this._content.length;
881
+ return Math.max(Math.min(r + n.character, t), r);
882
+ }, Object.defineProperty(e.prototype, "lineCount", {
883
+ get: function() {
884
+ return this.getLineOffsets().length;
885
+ },
886
+ enumerable: !1,
887
+ configurable: !0
888
+ }), e;
889
+ }(), s;
890
+ (function(e) {
891
+ var n = Object.prototype.toString;
892
+ function i(g) {
893
+ return typeof g < "u";
894
+ }
895
+ e.defined = i;
896
+ function r(g) {
897
+ return typeof g > "u";
898
+ }
899
+ e.undefined = r;
900
+ function t(g) {
901
+ return g === !0 || g === !1;
902
+ }
903
+ e.boolean = t;
904
+ function a(g) {
905
+ return n.call(g) === "[object String]";
906
+ }
907
+ e.string = a;
908
+ function o(g) {
909
+ return n.call(g) === "[object Number]";
910
+ }
911
+ e.number = o;
912
+ function u(g, y, N) {
913
+ return n.call(g) === "[object Number]" && y <= g && g <= N;
914
+ }
915
+ e.numberRange = u;
916
+ function f(g) {
917
+ return n.call(g) === "[object Number]" && -2147483648 <= g && g <= 2147483647;
918
+ }
919
+ e.integer = f;
920
+ function d(g) {
921
+ return n.call(g) === "[object Number]" && 0 <= g && g <= 2147483647;
922
+ }
923
+ e.uinteger = d;
924
+ function v(g) {
925
+ return n.call(g) === "[object Function]";
926
+ }
927
+ e.func = v;
928
+ function w(g) {
929
+ return g !== null && typeof g == "object";
930
+ }
931
+ e.objectLiteral = w;
932
+ function b(g, y) {
933
+ return Array.isArray(g) && g.every(y);
934
+ }
935
+ e.typedArray = b;
936
+ })(s || (s = {}));
937
+ var bt = class {
938
+ constructor(e, n, i) {
939
+ E(this, "_disposables", []);
940
+ E(this, "_listener", /* @__PURE__ */ Object.create(null));
941
+ this._languageId = e, this._worker = n;
942
+ const r = (a) => {
943
+ let o = a.getLanguageId();
944
+ if (o !== this._languageId)
945
+ return;
946
+ let u;
947
+ this._listener[a.uri.toString()] = a.onDidChangeContent(() => {
948
+ window.clearTimeout(u), u = window.setTimeout(() => this._doValidate(a.uri, o), 500);
949
+ }), this._doValidate(a.uri, o);
950
+ }, t = (a) => {
951
+ c.editor.setModelMarkers(a, this._languageId, []);
952
+ let o = a.uri.toString(), u = this._listener[o];
953
+ u && (u.dispose(), delete this._listener[o]);
954
+ };
955
+ this._disposables.push(c.editor.onDidCreateModel(r)), this._disposables.push(c.editor.onWillDisposeModel(t)), this._disposables.push(c.editor.onDidChangeModelLanguage((a) => {
956
+ t(a.model), r(a.model);
957
+ })), this._disposables.push(i((a) => {
958
+ c.editor.getModels().forEach((o) => {
959
+ o.getLanguageId() === this._languageId && (t(o), r(o));
960
+ });
961
+ })), this._disposables.push({
962
+ dispose: () => {
963
+ c.editor.getModels().forEach(t);
964
+ for (let a in this._listener)
965
+ this._listener[a].dispose();
966
+ }
967
+ }), c.editor.getModels().forEach(r);
968
+ }
969
+ dispose() {
970
+ this._disposables.forEach((e) => e && e.dispose()), this._disposables.length = 0;
971
+ }
972
+ _doValidate(e, n) {
973
+ this._worker(e).then((i) => i.doValidation(e.toString())).then((i) => {
974
+ const r = i.map((a) => nt(e, a));
975
+ let t = c.editor.getModel(e);
976
+ t && t.getLanguageId() === n && c.editor.setModelMarkers(t, n, r);
977
+ }).then(void 0, (i) => {
978
+ console.error(i);
979
+ });
980
+ }
981
+ };
982
+ function rt(e) {
983
+ switch (e) {
984
+ case I.Error:
985
+ return c.MarkerSeverity.Error;
986
+ case I.Warning:
987
+ return c.MarkerSeverity.Warning;
988
+ case I.Information:
989
+ return c.MarkerSeverity.Info;
990
+ case I.Hint:
991
+ return c.MarkerSeverity.Hint;
992
+ default:
993
+ return c.MarkerSeverity.Info;
994
+ }
995
+ }
996
+ function nt(e, n) {
997
+ let i = typeof n.code == "number" ? String(n.code) : n.code;
998
+ return {
999
+ severity: rt(n.severity),
1000
+ startLineNumber: n.range.start.line + 1,
1001
+ startColumn: n.range.start.character + 1,
1002
+ endLineNumber: n.range.end.line + 1,
1003
+ endColumn: n.range.end.character + 1,
1004
+ message: n.message,
1005
+ code: i,
1006
+ source: n.source
1007
+ };
1008
+ }
1009
+ var it = class {
1010
+ constructor(e, n) {
1011
+ this._worker = e, this._triggerCharacters = n;
1012
+ }
1013
+ get triggerCharacters() {
1014
+ return this._triggerCharacters;
1015
+ }
1016
+ provideCompletionItems(e, n, i, r) {
1017
+ const t = e.uri;
1018
+ return this._worker(t).then((a) => a.doComplete(t.toString(), A(n))).then((a) => {
1019
+ if (!a)
1020
+ return;
1021
+ const o = e.getWordUntilPosition(n), u = new c.Range(n.lineNumber, o.startColumn, n.lineNumber, o.endColumn), f = a.items.map((d) => {
1022
+ const v = {
1023
+ label: d.label,
1024
+ insertText: d.insertText || d.label,
1025
+ sortText: d.sortText,
1026
+ filterText: d.filterText,
1027
+ documentation: d.documentation,
1028
+ detail: d.detail,
1029
+ command: st(d.command),
1030
+ range: u,
1031
+ kind: ot(d.kind)
1032
+ };
1033
+ return d.textEdit && (at(d.textEdit) ? v.range = {
1034
+ insert: _(d.textEdit.insert),
1035
+ replace: _(d.textEdit.replace)
1036
+ } : v.range = _(d.textEdit.range), v.insertText = d.textEdit.newText), d.additionalTextEdits && (v.additionalTextEdits = d.additionalTextEdits.map(j)), d.insertTextFormat === G.Snippet && (v.insertTextRules = c.languages.CompletionItemInsertTextRule.InsertAsSnippet), v;
1037
+ });
1038
+ return {
1039
+ isIncomplete: a.isIncomplete,
1040
+ suggestions: f
1041
+ };
1042
+ });
1043
+ }
1044
+ };
1045
+ function A(e) {
1046
+ if (e)
1047
+ return { character: e.column - 1, line: e.lineNumber - 1 };
1048
+ }
1049
+ function Se(e) {
1050
+ if (e)
1051
+ return {
1052
+ start: {
1053
+ line: e.startLineNumber - 1,
1054
+ character: e.startColumn - 1
1055
+ },
1056
+ end: { line: e.endLineNumber - 1, character: e.endColumn - 1 }
1057
+ };
1058
+ }
1059
+ function _(e) {
1060
+ if (e)
1061
+ return new c.Range(e.start.line + 1, e.start.character + 1, e.end.line + 1, e.end.character + 1);
1062
+ }
1063
+ function at(e) {
1064
+ return typeof e.insert < "u" && typeof e.replace < "u";
1065
+ }
1066
+ function ot(e) {
1067
+ const n = c.languages.CompletionItemKind;
1068
+ switch (e) {
1069
+ case l.Text:
1070
+ return n.Text;
1071
+ case l.Method:
1072
+ return n.Method;
1073
+ case l.Function:
1074
+ return n.Function;
1075
+ case l.Constructor:
1076
+ return n.Constructor;
1077
+ case l.Field:
1078
+ return n.Field;
1079
+ case l.Variable:
1080
+ return n.Variable;
1081
+ case l.Class:
1082
+ return n.Class;
1083
+ case l.Interface:
1084
+ return n.Interface;
1085
+ case l.Module:
1086
+ return n.Module;
1087
+ case l.Property:
1088
+ return n.Property;
1089
+ case l.Unit:
1090
+ return n.Unit;
1091
+ case l.Value:
1092
+ return n.Value;
1093
+ case l.Enum:
1094
+ return n.Enum;
1095
+ case l.Keyword:
1096
+ return n.Keyword;
1097
+ case l.Snippet:
1098
+ return n.Snippet;
1099
+ case l.Color:
1100
+ return n.Color;
1101
+ case l.File:
1102
+ return n.File;
1103
+ case l.Reference:
1104
+ return n.Reference;
1105
+ }
1106
+ return n.Property;
1107
+ }
1108
+ function j(e) {
1109
+ if (e)
1110
+ return {
1111
+ range: _(e.range),
1112
+ text: e.newText
1113
+ };
1114
+ }
1115
+ function st(e) {
1116
+ return e && e.command === "editor.action.triggerSuggest" ? { id: e.command, title: e.title, arguments: e.arguments } : void 0;
1117
+ }
1118
+ var Te = class {
1119
+ constructor(e) {
1120
+ this._worker = e;
1121
+ }
1122
+ provideHover(e, n, i) {
1123
+ let r = e.uri;
1124
+ return this._worker(r).then((t) => t.doHover(r.toString(), A(n))).then((t) => {
1125
+ if (t)
1126
+ return {
1127
+ range: _(t.range),
1128
+ contents: ct(t.contents)
1129
+ };
1130
+ });
1131
+ }
1132
+ };
1133
+ function ut(e) {
1134
+ return e && typeof e == "object" && typeof e.kind == "string";
1135
+ }
1136
+ function Re(e) {
1137
+ return typeof e == "string" ? {
1138
+ value: e
1139
+ } : ut(e) ? e.kind === "plaintext" ? {
1140
+ value: e.value.replace(/[\\`*_{}[\]()#+\-.!]/g, "\\$&")
1141
+ } : {
1142
+ value: e.value
1143
+ } : { value: "```" + e.language + `
1144
+ ` + e.value + "\n```\n" };
1145
+ }
1146
+ function ct(e) {
1147
+ if (e)
1148
+ return Array.isArray(e) ? e.map(Re) : [Re(e)];
1149
+ }
1150
+ var Fe = class {
1151
+ constructor(e) {
1152
+ this._worker = e;
1153
+ }
1154
+ provideDocumentHighlights(e, n, i) {
1155
+ const r = e.uri;
1156
+ return this._worker(r).then((t) => t.findDocumentHighlights(r.toString(), A(n))).then((t) => {
1157
+ if (t)
1158
+ return t.map((a) => ({
1159
+ range: _(a.range),
1160
+ kind: dt(a.kind)
1161
+ }));
1162
+ });
1163
+ }
1164
+ };
1165
+ function dt(e) {
1166
+ switch (e) {
1167
+ case D.Read:
1168
+ return c.languages.DocumentHighlightKind.Read;
1169
+ case D.Write:
1170
+ return c.languages.DocumentHighlightKind.Write;
1171
+ case D.Text:
1172
+ return c.languages.DocumentHighlightKind.Text;
1173
+ }
1174
+ return c.languages.DocumentHighlightKind.Text;
1175
+ }
1176
+ var Et = class {
1177
+ constructor(e) {
1178
+ this._worker = e;
1179
+ }
1180
+ provideDefinition(e, n, i) {
1181
+ const r = e.uri;
1182
+ return this._worker(r).then((t) => t.findDefinition(r.toString(), A(n))).then((t) => {
1183
+ if (t)
1184
+ return [Le(t)];
1185
+ });
1186
+ }
1187
+ };
1188
+ function Le(e) {
1189
+ return {
1190
+ uri: c.Uri.parse(e.uri),
1191
+ range: _(e.range)
1192
+ };
1193
+ }
1194
+ var xt = class {
1195
+ constructor(e) {
1196
+ this._worker = e;
1197
+ }
1198
+ provideReferences(e, n, i, r) {
1199
+ const t = e.uri;
1200
+ return this._worker(t).then((a) => a.findReferences(t.toString(), A(n))).then((a) => {
1201
+ if (a)
1202
+ return a.map(Le);
1203
+ });
1204
+ }
1205
+ }, je = class {
1206
+ constructor(e) {
1207
+ this._worker = e;
1208
+ }
1209
+ provideRenameEdits(e, n, i, r) {
1210
+ const t = e.uri;
1211
+ return this._worker(t).then((a) => a.doRename(t.toString(), A(n), i)).then((a) => gt(a));
1212
+ }
1213
+ };
1214
+ function gt(e) {
1215
+ if (!e || !e.changes)
1216
+ return;
1217
+ let n = [];
1218
+ for (let i in e.changes) {
1219
+ const r = c.Uri.parse(i);
1220
+ for (let t of e.changes[i])
1221
+ n.push({
1222
+ resource: r,
1223
+ versionId: void 0,
1224
+ textEdit: {
1225
+ range: _(t.range),
1226
+ text: t.newText
1227
+ }
1228
+ });
1229
+ }
1230
+ return {
1231
+ edits: n
1232
+ };
1233
+ }
1234
+ var Ne = class {
1235
+ constructor(e) {
1236
+ this._worker = e;
1237
+ }
1238
+ provideDocumentSymbols(e, n) {
1239
+ const i = e.uri;
1240
+ return this._worker(i).then((r) => r.findDocumentSymbols(i.toString())).then((r) => {
1241
+ if (r)
1242
+ return r.map((t) => ({
1243
+ name: t.name,
1244
+ detail: "",
1245
+ containerName: t.containerName,
1246
+ kind: ft(t.kind),
1247
+ range: _(t.location.range),
1248
+ selectionRange: _(t.location.range),
1249
+ tags: []
1250
+ }));
1251
+ });
1252
+ }
1253
+ };
1254
+ function ft(e) {
1255
+ let n = c.languages.SymbolKind;
1256
+ switch (e) {
1257
+ case h.File:
1258
+ return n.Array;
1259
+ case h.Module:
1260
+ return n.Module;
1261
+ case h.Namespace:
1262
+ return n.Namespace;
1263
+ case h.Package:
1264
+ return n.Package;
1265
+ case h.Class:
1266
+ return n.Class;
1267
+ case h.Method:
1268
+ return n.Method;
1269
+ case h.Property:
1270
+ return n.Property;
1271
+ case h.Field:
1272
+ return n.Field;
1273
+ case h.Constructor:
1274
+ return n.Constructor;
1275
+ case h.Enum:
1276
+ return n.Enum;
1277
+ case h.Interface:
1278
+ return n.Interface;
1279
+ case h.Function:
1280
+ return n.Function;
1281
+ case h.Variable:
1282
+ return n.Variable;
1283
+ case h.Constant:
1284
+ return n.Constant;
1285
+ case h.String:
1286
+ return n.String;
1287
+ case h.Number:
1288
+ return n.Number;
1289
+ case h.Boolean:
1290
+ return n.Boolean;
1291
+ case h.Array:
1292
+ return n.Array;
1293
+ }
1294
+ return n.Function;
1295
+ }
1296
+ var We = class {
1297
+ constructor(e) {
1298
+ this._worker = e;
1299
+ }
1300
+ provideLinks(e, n) {
1301
+ const i = e.uri;
1302
+ return this._worker(i).then((r) => r.findDocumentLinks(i.toString())).then((r) => {
1303
+ if (r)
1304
+ return {
1305
+ links: r.map((t) => ({
1306
+ range: _(t.range),
1307
+ url: t.target
1308
+ }))
1309
+ };
1310
+ });
1311
+ }
1312
+ }, He = class {
1313
+ constructor(e) {
1314
+ this._worker = e;
1315
+ }
1316
+ provideDocumentFormattingEdits(e, n, i) {
1317
+ const r = e.uri;
1318
+ return this._worker(r).then((t) => t.format(r.toString(), null, Oe(n)).then((a) => {
1319
+ if (!(!a || a.length === 0))
1320
+ return a.map(j);
1321
+ }));
1322
+ }
1323
+ }, Ue = class {
1324
+ constructor(e) {
1325
+ this._worker = e;
1326
+ }
1327
+ provideDocumentRangeFormattingEdits(e, n, i, r) {
1328
+ const t = e.uri;
1329
+ return this._worker(t).then((a) => a.format(t.toString(), Se(n), Oe(i)).then((o) => {
1330
+ if (!(!o || o.length === 0))
1331
+ return o.map(j);
1332
+ }));
1333
+ }
1334
+ };
1335
+ function Oe(e) {
1336
+ return {
1337
+ tabSize: e.tabSize,
1338
+ insertSpaces: e.insertSpaces
1339
+ };
1340
+ }
1341
+ var Ct = class {
1342
+ constructor(e) {
1343
+ this._worker = e;
1344
+ }
1345
+ provideDocumentColors(e, n) {
1346
+ const i = e.uri;
1347
+ return this._worker(i).then((r) => r.findDocumentColors(i.toString())).then((r) => {
1348
+ if (r)
1349
+ return r.map((t) => ({
1350
+ color: t.color,
1351
+ range: _(t.range)
1352
+ }));
1353
+ });
1354
+ }
1355
+ provideColorPresentations(e, n, i) {
1356
+ const r = e.uri;
1357
+ return this._worker(r).then((t) => t.getColorPresentations(r.toString(), n.color, Se(n.range))).then((t) => {
1358
+ if (t)
1359
+ return t.map((a) => {
1360
+ let o = {
1361
+ label: a.label
1362
+ };
1363
+ return a.textEdit && (o.textEdit = j(a.textEdit)), a.additionalTextEdits && (o.additionalTextEdits = a.additionalTextEdits.map(j)), o;
1364
+ });
1365
+ });
1366
+ }
1367
+ }, Ve = class {
1368
+ constructor(e) {
1369
+ this._worker = e;
1370
+ }
1371
+ provideFoldingRanges(e, n, i) {
1372
+ const r = e.uri;
1373
+ return this._worker(r).then((t) => t.getFoldingRanges(r.toString(), n)).then((t) => {
1374
+ if (t)
1375
+ return t.map((a) => {
1376
+ const o = {
1377
+ start: a.startLine + 1,
1378
+ end: a.endLine + 1
1379
+ };
1380
+ return typeof a.kind < "u" && (o.kind = lt(a.kind)), o;
1381
+ });
1382
+ });
1383
+ }
1384
+ };
1385
+ function lt(e) {
1386
+ switch (e) {
1387
+ case R.Comment:
1388
+ return c.languages.FoldingRangeKind.Comment;
1389
+ case R.Imports:
1390
+ return c.languages.FoldingRangeKind.Imports;
1391
+ case R.Region:
1392
+ return c.languages.FoldingRangeKind.Region;
1393
+ }
1394
+ }
1395
+ var ze = class {
1396
+ constructor(e) {
1397
+ this._worker = e;
1398
+ }
1399
+ provideSelectionRanges(e, n, i) {
1400
+ const r = e.uri;
1401
+ return this._worker(r).then((t) => t.getSelectionRanges(r.toString(), n.map(A))).then((t) => {
1402
+ if (t)
1403
+ return t.map((a) => {
1404
+ const o = [];
1405
+ for (; a; )
1406
+ o.push({ range: _(a.range) }), a = a.parent;
1407
+ return o;
1408
+ });
1409
+ });
1410
+ }
1411
+ }, Xe = class extends it {
1412
+ constructor(e) {
1413
+ super(e, [".", ":", "<", '"', "=", "/"]);
1414
+ }
1415
+ };
1416
+ function At(e) {
1417
+ const n = new Me(e), i = (...t) => n.getLanguageServiceWorker(...t);
1418
+ let r = e.languageId;
1419
+ c.languages.registerCompletionItemProvider(r, new Xe(i)), c.languages.registerHoverProvider(r, new Te(i)), c.languages.registerDocumentHighlightProvider(r, new Fe(i)), c.languages.registerLinkProvider(r, new We(i)), c.languages.registerFoldingRangeProvider(r, new Ve(i)), c.languages.registerDocumentSymbolProvider(r, new Ne(i)), c.languages.registerSelectionRangeProvider(r, new ze(i)), c.languages.registerRenameProvider(r, new je(i)), r === "html" && (c.languages.registerDocumentFormattingEditProvider(r, new He(i)), c.languages.registerDocumentRangeFormattingEditProvider(r, new Ue(i)));
1420
+ }
1421
+ function yt(e) {
1422
+ const n = [], i = [], r = new Me(e);
1423
+ n.push(r);
1424
+ const t = (...o) => r.getLanguageServiceWorker(...o);
1425
+ function a() {
1426
+ const { languageId: o, modeConfiguration: u } = e;
1427
+ Be(i), u.completionItems && i.push(c.languages.registerCompletionItemProvider(o, new Xe(t))), u.hovers && i.push(c.languages.registerHoverProvider(o, new Te(t))), u.documentHighlights && i.push(c.languages.registerDocumentHighlightProvider(o, new Fe(t))), u.links && i.push(c.languages.registerLinkProvider(o, new We(t))), u.documentSymbols && i.push(c.languages.registerDocumentSymbolProvider(o, new Ne(t))), u.rename && i.push(c.languages.registerRenameProvider(o, new je(t))), u.foldingRanges && i.push(c.languages.registerFoldingRangeProvider(o, new Ve(t))), u.selectionRanges && i.push(c.languages.registerSelectionRangeProvider(o, new ze(t))), u.documentFormattingEdits && i.push(c.languages.registerDocumentFormattingEditProvider(o, new He(t))), u.documentRangeFormattingEdits && i.push(c.languages.registerDocumentRangeFormattingEditProvider(o, new Ue(t)));
1428
+ }
1429
+ return a(), n.push(De(i)), De(n);
1430
+ }
1431
+ function De(e) {
1432
+ return { dispose: () => Be(e) };
1433
+ }
1434
+ function Be(e) {
1435
+ for (; e.length; )
1436
+ e.pop().dispose();
1437
+ }
1438
+ export {
1439
+ it as CompletionAdapter,
1440
+ Et as DefinitionAdapter,
1441
+ bt as DiagnosticsAdapter,
1442
+ Ct as DocumentColorAdapter,
1443
+ He as DocumentFormattingEditProvider,
1444
+ Fe as DocumentHighlightAdapter,
1445
+ We as DocumentLinkAdapter,
1446
+ Ue as DocumentRangeFormattingEditProvider,
1447
+ Ne as DocumentSymbolAdapter,
1448
+ Ve as FoldingRangeAdapter,
1449
+ Te as HoverAdapter,
1450
+ xt as ReferenceAdapter,
1451
+ je as RenameAdapter,
1452
+ ze as SelectionRangeAdapter,
1453
+ Me as WorkerManager,
1454
+ A as fromPosition,
1455
+ Se as fromRange,
1456
+ yt as setupMode,
1457
+ At as setupMode1,
1458
+ _ as toRange,
1459
+ j as toTextEdit
1460
+ };