@kusto/monaco-kusto 13.0.1 → 13.0.2

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.
package/README.md CHANGED
@@ -91,9 +91,14 @@ Every PR should come with a test that checks it.
91
91
 
92
92
  ## Changelog
93
93
 
94
+ ## 13.0.2
95
+
96
+ - fix: revert the behaviour that closed the IntelliSense/completion menu when pressing `Shift+Enter` (introduced in 13.0.1).
97
+
94
98
  ## 13.0.1
95
99
 
96
100
  - feat: Close IntelliSense automatically when running a query with `Shift+Enter`.
101
+ - chore: upgrade **language‑service‑next** to **v12.0.0**.
97
102
 
98
103
  ## 13.0.0
99
104
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kusto/monaco-kusto",
3
- "version": "13.0.1",
3
+ "version": "13.0.2",
4
4
  "description": "CSL, KQL plugin for the Monaco Editor",
5
5
  "author": {
6
6
  "name": "Microsoft"
@@ -1,11 +1,11 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 13.0.1(c583448ef85a6c5416f36c2d537eccb626b81aa8)
3
+ * monaco-kusto version: 13.0.2(e6cccc4de83964ccb5eb5b66e79d61333b0dc314)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
7
7
 
8
- define('vs/language/kusto/kustoMode', ['exports', 'vs/editor/editor.main', './main-04597f81', './types-ffd2d452'], (function (exports, monaco, main, types$1) { 'use strict';
8
+ define('vs/language/kusto/kustoMode', ['exports', 'vs/editor/editor.main', './main-2fc60bf1', './types-142781ba'], (function (exports, monaco, main, types$1) { 'use strict';
9
9
 
10
10
  function _interopNamespaceDefault(e) {
11
11
  var n = Object.create(null);
@@ -1,11 +1,11 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 13.0.1(c583448ef85a6c5416f36c2d537eccb626b81aa8)
3
+ * monaco-kusto version: 13.0.2(e6cccc4de83964ccb5eb5b66e79d61333b0dc314)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
7
7
 
8
- define('vs/language/kusto/kustoWorker', ['exports', './main-04597f81', './schema-9c3b6c78'], (function (exports, main, schema) { 'use strict';
8
+ define('vs/language/kusto/kustoWorker', ['exports', './main-2fc60bf1', './schema-4073036d'], (function (exports, main, schema) { 'use strict';
9
9
 
10
10
  function _slicedToArray$2(r, e) { return _arrayWithHoles$2(r) || _iterableToArrayLimit$2(r, e) || _unsupportedIterableToArray$3(r, e) || _nonIterableRest$2(); }
11
11
  function _nonIterableRest$2() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -1,11 +1,11 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 13.0.1(c583448ef85a6c5416f36c2d537eccb626b81aa8)
3
+ * monaco-kusto version: 13.0.2(e6cccc4de83964ccb5eb5b66e79d61333b0dc314)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
7
7
 
8
- define('vs/language/kusto/main-04597f81', ['exports'], (function (exports) { 'use strict';
8
+ define('vs/language/kusto/main-2fc60bf1', ['exports'], (function (exports) { 'use strict';
9
9
 
10
10
  /* --------------------------------------------------------------------------------------------
11
11
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,11 +1,11 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 13.0.1(c583448ef85a6c5416f36c2d537eccb626b81aa8)
3
+ * monaco-kusto version: 13.0.2(e6cccc4de83964ccb5eb5b66e79d61333b0dc314)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
7
7
 
8
- define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/editor/editor.main', './types-ffd2d452', './schema-9c3b6c78'], (function (require, exports, monaco, types, schema) { 'use strict';
8
+ define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/editor/editor.main', './types-142781ba', './schema-4073036d'], (function (require, exports, monaco, types, schema) { 'use strict';
9
9
 
10
10
  function _interopNamespaceDefault(e) {
11
11
  var n = Object.create(null);
@@ -76,13 +76,13 @@ define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/edito
76
76
  };
77
77
  }
78
78
 
79
- function _typeof$3(o) { "@babel/helpers - typeof"; return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$3(o); }
80
- function _classCallCheck$3(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
81
- function _defineProperties$3(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey$3(o.key), o); } }
82
- function _createClass$3(e, r, t) { return r && _defineProperties$3(e.prototype, r), t && _defineProperties$3(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
83
- function _defineProperty$3(e, r, t) { return (r = _toPropertyKey$3(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
84
- function _toPropertyKey$3(t) { var i = _toPrimitive$3(t, "string"); return "symbol" == _typeof$3(i) ? i : i + ""; }
85
- function _toPrimitive$3(t, r) { if ("object" != _typeof$3(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$3(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
79
+ function _typeof$2(o) { "@babel/helpers - typeof"; return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$2(o); }
80
+ function _classCallCheck$2(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
81
+ function _defineProperties$2(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey$2(o.key), o); } }
82
+ function _createClass$2(e, r, t) { return r && _defineProperties$2(e.prototype, r), t && _defineProperties$2(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
83
+ function _defineProperty$2(e, r, t) { return (r = _toPropertyKey$2(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
84
+ function _toPropertyKey$2(t) { var i = _toPrimitive$2(t, "string"); return "symbol" == _typeof$2(i) ? i : i + ""; }
85
+ function _toPrimitive$2(t, r) { if ("object" != _typeof$2(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$2(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
86
86
 
87
87
  /**
88
88
  * Highlights the command that surround cursor location
@@ -94,9 +94,9 @@ define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/edito
94
94
  */
95
95
  function KustoCommandHighlighter(editor) {
96
96
  var _this = this;
97
- _classCallCheck$3(this, KustoCommandHighlighter);
98
- _defineProperty$3(this, "disposables", []);
99
- _defineProperty$3(this, "decorations", []);
97
+ _classCallCheck$2(this, KustoCommandHighlighter);
98
+ _defineProperty$2(this, "disposables", []);
99
+ _defineProperty$2(this, "decorations", []);
100
100
  this.editor = editor;
101
101
  // Note that selection update is triggered not only for selection changes, but also just when no text selection is occurring and cursor just moves around.
102
102
  // This case is counted as a 0-length selection starting and ending on the cursor position.
@@ -107,7 +107,7 @@ define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/edito
107
107
  _this.highlightCommandUnderCursor(changeEvent);
108
108
  });
109
109
  }
110
- return _createClass$3(KustoCommandHighlighter, [{
110
+ return _createClass$2(KustoCommandHighlighter, [{
111
111
  key: "getId",
112
112
  value: function getId() {
113
113
  return KustoCommandHighlighter.ID;
@@ -137,22 +137,22 @@ define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/edito
137
137
  }
138
138
  }]);
139
139
  }();
140
- _defineProperty$3(KustoCommandHighlighter, "ID", 'editor.contrib.kustoCommandHighlighter');
141
- _defineProperty$3(KustoCommandHighlighter, "CURRENT_COMMAND_HIGHLIGHT", {
140
+ _defineProperty$2(KustoCommandHighlighter, "ID", 'editor.contrib.kustoCommandHighlighter');
141
+ _defineProperty$2(KustoCommandHighlighter, "CURRENT_COMMAND_HIGHLIGHT", {
142
142
  className: 'selectionHighlight'
143
143
  });
144
144
 
145
- function _typeof$2(o) { "@babel/helpers - typeof"; return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$2(o); }
146
- function _defineProperties$2(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey$2(o.key), o); } }
147
- function _createClass$2(e, r, t) { return r && _defineProperties$2(e.prototype, r), t && _defineProperties$2(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
148
- function _classCallCheck$2(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
149
- function _defineProperty$2(e, r, t) { return (r = _toPropertyKey$2(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
150
- function _toPropertyKey$2(t) { var i = _toPrimitive$2(t, "string"); return "symbol" == _typeof$2(i) ? i : i + ""; }
151
- function _toPrimitive$2(t, r) { if ("object" != _typeof$2(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$2(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
152
- var KustoCommandFormatter = /*#__PURE__*/_createClass$2(function KustoCommandFormatter(editor) {
145
+ function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$1(o); }
146
+ function _defineProperties$1(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey$1(o.key), o); } }
147
+ function _createClass$1(e, r, t) { return r && _defineProperties$1(e.prototype, r), t && _defineProperties$1(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
148
+ function _classCallCheck$1(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
149
+ function _defineProperty$1(e, r, t) { return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
150
+ function _toPropertyKey$1(t) { var i = _toPrimitive$1(t, "string"); return "symbol" == _typeof$1(i) ? i : i + ""; }
151
+ function _toPrimitive$1(t, r) { if ("object" != _typeof$1(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$1(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
152
+ var KustoCommandFormatter = /*#__PURE__*/_createClass$1(function KustoCommandFormatter(editor) {
153
153
  var _this = this;
154
- _classCallCheck$2(this, KustoCommandFormatter);
155
- _defineProperty$2(this, "actionAdded", false);
154
+ _classCallCheck$1(this, KustoCommandFormatter);
155
+ _defineProperty$1(this, "actionAdded", false);
156
156
  this.editor = editor;
157
157
  // selection also represents no selection - for example the event gets triggered when moving cursor from point
158
158
  // a to point b. in the case start position will equal end position.
@@ -181,59 +181,6 @@ define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/edito
181
181
  });
182
182
  });
183
183
 
184
- function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$1(o); }
185
- function _classCallCheck$1(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
186
- function _defineProperties$1(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey$1(o.key), o); } }
187
- function _createClass$1(e, r, t) { return r && _defineProperties$1(e.prototype, r), t && _defineProperties$1(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
188
- function _defineProperty$1(e, r, t) { return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
189
- function _toPropertyKey$1(t) { var i = _toPrimitive$1(t, "string"); return "symbol" == _typeof$1(i) ? i : i + ""; }
190
- function _toPrimitive$1(t, r) { if ("object" != _typeof$1(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof$1(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
191
- /**
192
- * Registers a Kusto-specific action to close the IntelliSense suggestions popup.
193
- *
194
- * Note:
195
- * We register the action on the first cursor movement, not on editor creation,
196
- * because Monaco fires 'onDidCreateEditor' before the keybinding service is fully initialized.
197
- * Waiting for a cursor event guarantees that the editor is fully ready
198
- * and allows safe registration of actions with keybindings.
199
- */
200
- var KustoIntelliSenseCloser = /*#__PURE__*/function () {
201
- function KustoIntelliSenseCloser(editor) {
202
- var _this = this;
203
- _classCallCheck$1(this, KustoIntelliSenseCloser);
204
- _defineProperty$1(this, "actionRegistered", false);
205
- this.editor = editor;
206
- this.editor.onDidChangeCursorSelection(function () {
207
- var _this$editor$getModel;
208
- if (((_this$editor$getModel = _this.editor.getModel()) === null || _this$editor$getModel === void 0 ? void 0 : _this$editor$getModel.getLanguageId()) !== 'kusto') {
209
- return;
210
- }
211
- if (!_this.actionRegistered) {
212
- _this.registerAction();
213
- _this.actionRegistered = true;
214
- }
215
- });
216
- }
217
- return _createClass$1(KustoIntelliSenseCloser, [{
218
- key: "registerAction",
219
- value: function registerAction() {
220
- var _this2 = this;
221
- this.editor.addAction({
222
- id: 'kusto.closeIntelliSense',
223
- label: 'Close IntelliSense',
224
- keybindings: [monaco__namespace.KeyMod.Shift | monaco__namespace.KeyCode.Enter],
225
- run: function run(editor) {
226
- return closeIntelliSense(_this2.editor);
227
- }
228
- });
229
- }
230
- }]);
231
- }();
232
- function closeIntelliSense(editor) {
233
- var controller = editor.getContribution('editor.contrib.suggestController');
234
- controller === null || controller === void 0 || controller.cancelSuggestWidget();
235
- }
236
-
237
184
  var ThemeName = /*#__PURE__*/function (ThemeName) {
238
185
  ThemeName["light"] = "kusto-light";
239
186
  ThemeName["dark"] = "kusto-dark";
@@ -583,7 +530,6 @@ define('vs/language/kusto/monaco.contribution', ['require', 'exports', 'vs/edito
583
530
  new KustoCommandHighlighter(editor);
584
531
  if (isStandaloneCodeEditor(editor)) {
585
532
  new KustoCommandFormatter(editor);
586
- new KustoIntelliSenseCloser(editor);
587
533
  }
588
534
  triggerSuggestDialogWhenCompletionItemSelected(editor);
589
535
  });
@@ -1,11 +1,11 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 13.0.1(c583448ef85a6c5416f36c2d537eccb626b81aa8)
3
+ * monaco-kusto version: 13.0.2(e6cccc4de83964ccb5eb5b66e79d61333b0dc314)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
7
7
 
8
- define('vs/language/kusto/schema-9c3b6c78', ['exports'], (function (exports) { 'use strict';
8
+ define('vs/language/kusto/schema-4073036d', ['exports'], (function (exports) { 'use strict';
9
9
 
10
10
  // Definition of schema object in the context of language services. This model is exposed to consumers of this library.
11
11
 
@@ -1,11 +1,11 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 13.0.1(c583448ef85a6c5416f36c2d537eccb626b81aa8)
3
+ * monaco-kusto version: 13.0.2(e6cccc4de83964ccb5eb5b66e79d61333b0dc314)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
7
7
 
8
- define('vs/language/kusto/types-ffd2d452', ['exports'], (function (exports) { 'use strict';
8
+ define('vs/language/kusto/types-142781ba', ['exports'], (function (exports) { 'use strict';
9
9
 
10
10
  var LANGUAGE_ID = 'kusto';
11
11
 
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 13.0.1(c583448ef85a6c5416f36c2d537eccb626b81aa8)
3
+ * monaco-kusto version: 13.0.2(e6cccc4de83964ccb5eb5b66e79d61333b0dc314)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 13.0.1(c583448ef85a6c5416f36c2d537eccb626b81aa8)
3
+ * monaco-kusto version: 13.0.2(e6cccc4de83964ccb5eb5b66e79d61333b0dc314)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
@@ -8,7 +8,7 @@
8
8
  import * as worker from 'monaco-editor/esm/vs/editor/editor.worker';
9
9
  import * as ls from 'vscode-languageserver-types';
10
10
  import XRegExp from 'xregexp';
11
- import { d as getEntityDataTypeFromCslType, a as getCallName, b as getExpression, g as getCslTypeNameFromClrType } from './schema-4f17a725.js';
11
+ import { d as getEntityDataTypeFromCslType, a as getCallName, b as getExpression, g as getCslTypeNameFromClrType } from './schema-0a4e5e41.js';
12
12
  import '@kusto/language-service/bridge.min';
13
13
  import '@kusto/language-service/Kusto.JavaScript.Client.min';
14
14
  import '@kusto/language-service/newtonsoft.json.min';
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 13.0.1(c583448ef85a6c5416f36c2d537eccb626b81aa8)
3
+ * monaco-kusto version: 13.0.2(e6cccc4de83964ccb5eb5b66e79d61333b0dc314)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
@@ -9,7 +9,7 @@ import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
9
9
  import { languages } from 'monaco-editor/esm/vs/editor/editor.api';
10
10
  import * as ls from 'vscode-languageserver-types';
11
11
  import debounce from 'lodash-es/debounce';
12
- import { L as LANGUAGE_ID, T as Token, t as tokenTypes } from './globals-a0d2077f.js';
12
+ import { L as LANGUAGE_ID, T as Token, t as tokenTypes } from './globals-ac8b7ea1.js';
13
13
 
14
14
  class WorkerManager {
15
15
  constructor(_monacoInstance, defaults) {
@@ -1,15 +1,15 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 13.0.1(c583448ef85a6c5416f36c2d537eccb626b81aa8)
3
+ * monaco-kusto version: 13.0.2(e6cccc4de83964ccb5eb5b66e79d61333b0dc314)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
7
7
 
8
8
  import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
9
9
  import { editor } from 'monaco-editor/esm/vs/editor/editor.api';
10
- import { T as Token, L as LANGUAGE_ID } from './globals-a0d2077f.js';
11
- import { g as getCslTypeNameFromClrType, a as getCallName, b as getExpression, c as getInputParametersAsCslString, d as getEntityDataTypeFromCslType } from './schema-4f17a725.js';
12
- export { s as showSchema } from './schema-4f17a725.js';
10
+ import { T as Token, L as LANGUAGE_ID } from './globals-ac8b7ea1.js';
11
+ import { g as getCslTypeNameFromClrType, a as getCallName, b as getExpression, c as getInputParametersAsCslString, d as getEntityDataTypeFromCslType } from './schema-0a4e5e41.js';
12
+ export { s as showSchema } from './schema-0a4e5e41.js';
13
13
 
14
14
  function getCurrentCommandRange(editor, cursorPosition) {
15
15
  const zeroBasedCursorLineNumber = cursorPosition.lineNumber - 1;
@@ -139,43 +139,6 @@ class KustoCommandFormatter {
139
139
  }
140
140
  }
141
141
 
142
- /**
143
- * Registers a Kusto-specific action to close the IntelliSense suggestions popup.
144
- *
145
- * Note:
146
- * We register the action on the first cursor movement, not on editor creation,
147
- * because Monaco fires 'onDidCreateEditor' before the keybinding service is fully initialized.
148
- * Waiting for a cursor event guarantees that the editor is fully ready
149
- * and allows safe registration of actions with keybindings.
150
- */
151
- class KustoIntelliSenseCloser {
152
- actionRegistered = false;
153
- constructor(editor) {
154
- this.editor = editor;
155
- this.editor.onDidChangeCursorSelection(() => {
156
- if (this.editor.getModel()?.getLanguageId() !== 'kusto') {
157
- return;
158
- }
159
- if (!this.actionRegistered) {
160
- this.registerAction();
161
- this.actionRegistered = true;
162
- }
163
- });
164
- }
165
- registerAction() {
166
- this.editor.addAction({
167
- id: 'kusto.closeIntelliSense',
168
- label: 'Close IntelliSense',
169
- keybindings: [monaco.KeyMod.Shift | monaco.KeyCode.Enter],
170
- run: editor => closeIntelliSense(this.editor)
171
- });
172
- }
173
- }
174
- function closeIntelliSense(editor) {
175
- const controller = editor.getContribution('editor.contrib.suggestController');
176
- controller?.cancelSuggestWidget();
177
- }
178
-
179
142
  let ThemeName = /*#__PURE__*/function (ThemeName) {
180
143
  ThemeName["light"] = "kusto-light";
181
144
  ThemeName["dark"] = "kusto-dark";
@@ -491,7 +454,6 @@ monaco.editor.onDidCreateEditor(editor => {
491
454
  new KustoCommandHighlighter(editor);
492
455
  if (isStandaloneCodeEditor(editor)) {
493
456
  new KustoCommandFormatter(editor);
494
- new KustoIntelliSenseCloser(editor);
495
457
  }
496
458
  triggerSuggestDialogWhenCompletionItemSelected(editor);
497
459
  });
@@ -1,6 +1,6 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 13.0.1(c583448ef85a6c5416f36c2d537eccb626b81aa8)
3
+ * monaco-kusto version: 13.0.2(e6cccc4de83964ccb5eb5b66e79d61333b0dc314)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
@@ -1,7 +1,7 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 13.0.1(c583448ef85a6c5416f36c2d537eccb626b81aa8)
3
+ * monaco-kusto version: 13.0.2(e6cccc4de83964ccb5eb5b66e79d61333b0dc314)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
7
- define("vs/language/kusto/kustoMode",["exports","vs/editor/editor.main","./main-c88e79ea","./types-edb6ea80"],(function(t,e,r,n){"use strict";function o(t){var e=Object.create(null);return t&&Object.keys(t).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}})),e.default=t,Object.freeze(e)}var i=o(e),a=["onDidProvideCompletionItems"];function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function c(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */c=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),u=new C(n||[]);return o(a,"_invoke",{value:O(t,r,u)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="suspendedYield",v="executing",m="completed",g={};function b(){}function w(){}function _(){}var x={};f(x,a,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(A([])));L&&L!==r&&n.call(L,a)&&(x=L);var S=_.prototype=b.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,c){var s=p(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==u(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=d;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=I(u,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=p(e,r,n);if("normal"===s.type){if(o=n.done?m:y,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function I(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,I(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=p(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function A(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(u(e)+" is not iterable")}return w.prototype=_,o(S,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(j.prototype),f(j.prototype,s,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new j(h(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),f(S,l,"Generator"),f(S,a,(function(){return this})),f(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=A,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function s(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){s(i,n,o,a,u,"next",t)}function u(t){s(i,n,o,a,u,"throw",t)}a(void 0)}))}}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function h(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}var p=function(){return t=function t(e,r){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._monacoInstance=e,this._defaults=r,this._idleCheckInterval=self.setInterval((function(){return n._checkIfIdle()}),3e4),this._configChangeListener=this._defaults.onDidChange((function(){return n._saveStateAndStopWorker()}))},e=[{key:"_stopWorker",value:function(){var t=this._workerDetails;this._workerDetailsPromise=null,this._workerDetails=null,setTimeout(l(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t._worker&&t._worker.dispose();case 1:case"end":return e.stop()}}),e)}))),5e3)}},{key:"_saveStateAndStopWorker",value:function(){var t,e,r=this;null!==(t=this._workerDetails)&&void 0!==t&&t._worker&&(null===(e=this._workerDetails)||void 0===e||e._worker.getProxy().then((function(t){t.getSchema().then((function(t){r._storedState={schema:t},r._stopWorker()}))})))}},{key:"dispose",value:function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}},{key:"_checkIfIdle",value:function(){var t,e;if(null!==(t=this._workerDetails)&&void 0!==t&&t._worker){var r=this._defaults.getWorkerMaxIdleTime(),n=Date.now()-(null===(e=this._workerDetails)||void 0===e?void 0:e._lastUsedTime);r>0&&n>r&&this._saveStateAndStopWorker()}}},{key:"_getClient",value:function(){var t=this,e=this._defaults.languageSettings;e.onDidProvideCompletionItems;var r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,a);if(!this._workerDetailsPromise){var n=this._monacoInstance.editor.createWebWorker({moduleId:"vs/language/kusto/kustoWorker",label:"kusto",createData:{languageSettings:r,languageId:"kusto"}}),o=n.getProxy().then((function(e){return t._storedState?e.setSchema(t._storedState.schema).then((function(){return e})):e}));this._workerDetailsPromise=o.then((function(e){return t._workerDetails={_worker:n,_client:e,_lastUsedTime:Date.now()},t._workerDetails}))}return this._workerDetailsPromise}},{key:"getLanguageServiceWorker",value:function(){for(var t,e=this,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return this._getClient().then((function(e){t=e._client})).then((function(t){var r;return null===(r=e._workerDetails)||void 0===r||null===(r=r._worker)||void 0===r?void 0:r.withSyncedResources(n)})).then((function(e){return t}))}}],e&&f(t.prototype,e),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function y(t){var e=d(t);return null!=t&&("object"==e||"function"==e)}function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}var m="object"==("undefined"==typeof global?"undefined":v(global))&&global&&global.Object===Object&&global;function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}var b="object"==("undefined"==typeof self?"undefined":g(self))&&self&&self.Object===Object&&self,w=m||b||Function("return this")(),_=function(){return w.Date.now()},x=/\s/;var k=/^\s+/;function L(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&x.test(t.charAt(e)););return e}(t)+1).replace(k,""):t}var S=w.Symbol,E=Object.prototype,j=E.hasOwnProperty,O=E.toString,I=S?S.toStringTag:void 0;var P=Object.prototype.toString;var T="[object Null]",C="[object Undefined]",A=S?S.toStringTag:void 0;function N(t){return null==t?void 0===t?C:T:A&&A in Object(t)?function(t){var e=j.call(t,I),r=t[I];try{t[I]=void 0;var n=!0}catch(t){}var o=O.call(t);return n&&(e?t[I]=r:delete t[I]),o}(t):function(t){return P.call(t)}(t)}function D(t){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D(t)}function G(t){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G(t)}var F="[object Symbol]";function M(t){return"symbol"==G(t)||function(t){return null!=t&&"object"==D(t)}(t)&&N(t)==F}var U=NaN,K=/^[-+]0x[0-9a-f]+$/i,R=/^0b[01]+$/i,V=/^0o[0-7]+$/i,W=parseInt;function q(t){if("number"==typeof t)return t;if(M(t))return U;if(y(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=y(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=L(t);var r=R.test(t);return r||V.test(t)?W(t.slice(2),r?2:8):K.test(t)?U:+t}var z=Math.max,Y=Math.min;function $(t,e,r){var n,o,i,a,u,c,s=0,l=!1,f=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var r=n,i=o;return n=o=void 0,s=e,a=t.apply(i,r)}function d(t){var r=t-c;return void 0===c||r>=e||r<0||f&&t-s>=i}function v(){var t=_();if(d(t))return m(t);u=setTimeout(v,function(t){var r=e-(t-c);return f?Y(r,i-(t-s)):r}(t))}function m(t){return u=void 0,h&&n?p(t):(n=o=void 0,a)}function g(){var t=_(),r=d(t);if(n=arguments,o=this,c=t,r){if(void 0===u)return function(t){return s=t,u=setTimeout(v,e),l?p(t):a}(c);if(f)return clearTimeout(u),u=setTimeout(v,e),p(c)}return void 0===u&&(u=setTimeout(v,e)),a}return e=q(e)||0,y(r)&&(l=!!r.leading,i=(f="maxWait"in r)?z(q(r.maxWait)||0,e):i,h="trailing"in r?!!r.trailing:h),g.cancel=function(){void 0!==u&&clearTimeout(u),s=0,n=c=o=u=void 0},g.flush=function(){return void 0===u?a:m(_())},g}function H(t,e){return t&&e.filterText.toLowerCase().includes(t.toLowerCase())?"".concat(t).concat(e.filterText):e.filterText}function Q(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=J(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function B(t){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B(t)}function Z(t){return function(t){if(Array.isArray(t))return X(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||J(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J(t,e){if(t){if("string"==typeof t)return X(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?X(t,e):void 0}}function X(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function tt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */tt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),u=new P(n||[]);return o(a,"_invoke",{value:E(t,r,u)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",v={};function m(){}function g(){}function b(){}var w={};s(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(T([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==B(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=h;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=j(u,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?y:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(B(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},L(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(k),s(k,c,"Generator"),s(k,a,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function et(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function rt(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){et(i,n,o,a,u,"next",t)}function u(t){et(i,n,o,a,u,"throw",t)}a(void 0)}))}}function nt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ot(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ut(n.key),n)}}function it(t,e,r){return e&&ot(t.prototype,e),r&&ot(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function at(t,e,r){return(e=ut(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ut(t){var e=function(t,e){if("object"!=B(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=B(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==B(e)?e:e+""}var ct=function(){return it((function t(e,r,n,o,a){var u=this;nt(this,t),at(this,"_disposables",[]),at(this,"_contentListener",Object.create(null)),at(this,"_configurationListener",Object.create(null)),at(this,"_schemaListener",Object.create(null)),at(this,"_cursorListener",Object.create(null)),at(this,"_debouncedValidations",Object.create(null)),this._monacoInstance=e,this._languageId=r,this._worker=n,this.defaults=o;var c,s=function(t){var e=t.getLanguageId(),r=t.uri.toString();if(e===u._languageId){var n=u.getOrCreateDebouncedValidation(t,e);u._contentListener[r]=t.onDidChangeContent((function(t){var e=function(t){return t.changes.map((function(t){return{start:t.rangeOffset,end:t.rangeOffset+t.text.length}}))}(t);n(e)})),u._configurationListener[r]=u.defaults.onDidChange((function(){self.setTimeout((function(){return u._doValidate(t,e,[])}),0)})),u._schemaListener[r]=a((function(){self.setTimeout((function(){return u._doValidate(t,e,[])}),0)}))}},l=function(t){var e=t.getId();u._cursorListener[e]||(t.onDidDispose((function(){var t;null===(t=u._cursorListener[e])||void 0===t||t.dispose(),delete u._cursorListener[e]})),u._cursorListener[e]=t.onDidChangeCursorSelection((function(e){var r=t.getModel(),n=r.getLanguageId();if(n===u._languageId){var o=r.getOffsetAt(e.selection.getPosition());u.getOrCreateDebouncedValidation(r,n)([{start:o,end:o}])}})))},f=function(t){u._monacoInstance.editor.setModelMarkers(t,u._languageId,[]);var e=t.uri.toString(),r=u._contentListener[e];r&&(r.dispose(),delete u._contentListener[e]);var n=u._configurationListener[e];n&&(n.dispose(),delete u._configurationListener[e]);var o=u._schemaListener[e];o&&(o.dispose(),delete u._schemaListener[e]);var i=u._debouncedValidations[e];i&&(i.cancel(),delete u._debouncedValidations[e])};this.defaults.languageSettings.enableQuickFixes&&this._disposables.push(i.languages.registerCodeActionProvider(this._languageId,{provideCodeActions:(c=rt(tt().mark((function t(e,r,n,o){var i,a,c,s;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.getOffsetAt(r.getStartPosition()),a=e.getOffsetAt(r.getEndPosition()),c=n.markers.length>0,t.next=5,u.getMonacoCodeActions(e,i,a,c);case 5:return s=t.sent,t.abrupt("return",{actions:s,dispose:function(){}});case 7:case"end":return t.stop()}}),t)}))),function(t,e,r,n){return c.apply(this,arguments)})})),this._disposables.push(this._monacoInstance.editor.onDidCreateEditor(l)),this._disposables.push(this._monacoInstance.editor.onDidCreateModel(s)),this._disposables.push(this._monacoInstance.editor.onWillDisposeModel(f)),this._disposables.push(this._monacoInstance.editor.onDidChangeModelLanguage((function(t){f(t.model),s(t.model)}))),this._disposables.push({dispose:function(){for(var t in u._contentListener)u._contentListener[t].dispose();for(var e in u._cursorListener)u._cursorListener[e].dispose();for(var r in u._debouncedValidations)u._debouncedValidations[r].cancel()}}),this._monacoInstance.editor.getModels().forEach(s),this._monacoInstance.editor.getEditors().forEach(l)}),[{key:"getMonacoCodeActions",value:(t=rt(tt().mark((function t(e,r,n,o){var i,a,u,c,s,l,f,h=this;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=[],t.next=3,this._worker(e.uri);case 3:return a=t.sent,u=e.uri,t.next=7,a.getResultActions(u.toString(),r,n);case 7:c=t.sent,s=tt().mark((function t(){var r,n,a,u,s;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=c[f]).kind.includes("Extract Function")){t.next=3;break}return t.abrupt("return",0);case 3:if("quickfix"!=(a=null!==(r=h.defaults.languageSettings.quickFixCodeActions)&&void 0!==r&&r.find((function(t){return n.kind.includes(t)}))?"quickfix":"custom")||o){t.next=6;break}return t.abrupt("return",{v:void 0});case 6:u=n.changes,s=u.map((function(t){var r,n=e.getPositionAt(t.start),o=e.getPositionAt(t.start+t.deleteLength);return{resource:e.uri,textEdit:{range:{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:o.lineNumber,endColumn:o.column},text:null!==(r=t.insertText)&&void 0!==r?r:""}}})),i.push({title:n.title,diagnostics:[],kind:a,edit:{edits:Z(s)}});case 9:case"end":return t.stop()}}),t)})),f=0;case 10:if(!(f<c.length)){t.next=20;break}return t.delegateYield(s(),"t0",12);case 12:if(0!==(l=t.t0)){t.next=15;break}return t.abrupt("continue",17);case 15:if(!l){t.next=17;break}return t.abrupt("return",l.v);case 17:f++,t.next=10;break;case 20:return t.abrupt("return",i);case 21:case"end":return t.stop()}}),t,this)}))),function(e,r,n,o){return t.apply(this,arguments)})},{key:"getOrCreateDebouncedValidation",value:function(t,e){var r=this,n=t.uri.toString();return this._debouncedValidations[n]||(this._debouncedValidations[n]=$((function(n){return r._doValidate(t,e,n)}),500)),this._debouncedValidations[n]}},{key:"dispose",value:function(){this._disposables.forEach((function(t){return t&&t.dispose()})),this._disposables=[]}},{key:"_doValidate",value:function(t,e,r){var n=this;if(!t.isDisposed()){var o=t.uri,a=t.getVersionId();this._worker(o).then((function(t){return t.doValidation(o.toString(),r)})).then((function(t){if(n._monacoInstance.editor.getModel(o).getVersionId()===a){var r=t.map((function(t){return r="number"==typeof(e=t).code?String(e.code):e.code,{severity:st(e.severity),startLineNumber:e.range.start.line+1,startColumn:e.range.start.character+1,endLineNumber:e.range.end.line+1,endColumn:e.range.end.character+1,message:e.message,code:r,source:e.source};var e,r})),u=n._monacoInstance.editor.getModel(o),c=u.getAllDecorations().filter((function(t){return"squiggly-error"==t.options.className})).map((function(t){return t.id}));if(u&&u.getLanguageId()===e){var s=n.defaults.languageSettings.syntaxErrorAsMarkDown;if(s&&s.enableSyntaxErrorAsMarkDown){var l=s.header?"**".concat(s.header,"** \n\n"):"",f=s.icon?"![](".concat(s.icon,")"):"",h="".concat(f," ").concat(l),p=r.map((function(t){return{range:{startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn},options:{hoverMessage:{value:h+t.message},className:"squiggly-error",zIndex:100,overviewRuler:{color:"rgb(255, 18, 18, 0.7)",position:i.editor.OverviewRulerLane.Right},minimap:{color:"rgb(255, 18, 18, 0.7)",position:i.editor.MinimapPosition.Inline}}}})),d=i.editor.getModelMarkers({owner:e,resource:o});d&&d.length>0&&(c=[],n._monacoInstance.editor.setModelMarkers(u,e,[])),u.deltaDecorations(c,p)}else u.deltaDecorations(c,[]),n._monacoInstance.editor.setModelMarkers(u,e,r)}}})).then(void 0,(function(t){console.error(t)}))}}}]);var t}();function st(t){switch(t){case r.DiagnosticSeverity.Error:return i.MarkerSeverity.Error;case r.DiagnosticSeverity.Warning:return i.MarkerSeverity.Warning;case r.DiagnosticSeverity.Information:return i.MarkerSeverity.Info;case r.DiagnosticSeverity.Hint:return i.MarkerSeverity.Hint;default:return i.MarkerSeverity.Info}}function lt(t){if(t)return{character:t.column-1,line:t.lineNumber-1}}function ft(t){if(t)return new i.Range(t.start.line+1,t.start.character+1,t.end.line+1,t.end.character+1)}function ht(t){var e=i.languages.CompletionItemKind;switch(t){case r.CompletionItemKind.Text:return e.Text;case r.CompletionItemKind.Method:return e.Method;case r.CompletionItemKind.Function:return e.Function;case r.CompletionItemKind.Constructor:return e.Constructor;case r.CompletionItemKind.Field:return e.Field;case r.CompletionItemKind.Variable:return e.Variable;case r.CompletionItemKind.Class:return e.Class;case r.CompletionItemKind.Interface:return e.Interface;case r.CompletionItemKind.Module:return e.Module;case r.CompletionItemKind.Property:return e.Property;case r.CompletionItemKind.Unit:return e.Unit;case r.CompletionItemKind.Value:return e.Value;case r.CompletionItemKind.Enum:return e.Enum;case r.CompletionItemKind.Keyword:return e.Keyword;case r.CompletionItemKind.Snippet:return e.Snippet;case r.CompletionItemKind.Color:return e.Color;case r.CompletionItemKind.File:return e.File;case r.CompletionItemKind.Reference:return e.Reference}return e.Property}function pt(t){if(t)return{range:ft(t.range),text:t.newText}}var dt=function(){return it((function t(e,r){nt(this,t),this.languageSettings=r;var n=function(){var t=rt(tt().mark((function t(r,n){var o;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e(r);case 2:return o=t.sent,t.abrupt("return",o.doComplete(r.toString(),n));case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}();this.completionCacheManager=function(t){var e,r,n;return{getCompletionItems:function(o,i,a){return(!n||n.line!==a.line||!r||!o||!(null!=o&&o.includes(r)))&&(e=t(i,a)),r=o,n=a,e}}}(n)}),[{key:"triggerCharacters",get:function(){return[" ",".","("]}},{key:"provideCompletionItems",value:function(t,e,n,o){var a,u=this,c=t.getWordUntilPosition(e),s=new i.Range(e.lineNumber,c.startColumn,e.lineNumber,c.endColumn),l=t.uri,f=null==t||null===(a=t.getWordAtPosition(e))||void 0===a?void 0:a.word,h=this.languageSettings.onDidProvideCompletionItems;return this.completionCacheManager.getCompletionItems(f,l,lt(e)).then((function(t){return h?h(t):t})).then((function(t){if(t){var e=function(t,e){var r=t[0];if(!e)return r;var n=t.find((function(t){var r;return null===(r=t.filterText)||void 0===r?void 0:r.toLowerCase().startsWith(e.toLowerCase())}));return null!=n?n:r}(t.items,f);return{incomplete:!0,suggestions:t.items.map((function(t,n){var o,a={label:t.label,insertText:t.insertText,sortText:t.sortText,filterText:H(f,t),documentation:u.formatDocLink(null===(o=t.documentation)||void 0===o?void 0:o.value),detail:t.detail,range:s,kind:ht(t.kind),preselect:e.filterText===t.filterText};return t.textEdit&&(a.range=ft(t.textEdit.range),a.insertText=t.textEdit.newText),t.insertTextFormat===r.InsertTextFormat.Snippet&&(a.insertTextRules=i.languages.CompletionItemInsertTextRule.InsertAsSnippet),a}))}}}))}},{key:"formatDocLink",value:function(t){if(t){var e=this.languageSettings,r=e.documentationBaseUrl,n=void 0===r?"https://learn.microsoft.com/azure/data-explorer/kusto/query":r,o=e.documentationSuffix;return{value:t,isTrusted:!0,uris:new Proxy({},{get:function(t,e,r){var a=e.toString().replace(".md","");a.startsWith("https")||(a="".concat(n,"/").concat(a));var u=i.Uri.parse(a);return o&&(u.toString=function(){return a+o}),u}})}}}}])}();function yt(t){return"string"==typeof t?{value:t}:(e=t)&&"object"===B(e)&&"string"==typeof e.kind?"plaintext"===t.kind?{value:t.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:t.value}:{value:"```"+t.value+"\n"+t.value+"\n```\n"};var e}function vt(t){if(t)return Array.isArray(t)?t.map(yt):[yt(t)]}function mt(t){return{uri:i.Uri.parse(t.uri),range:ft(t.range)}}var gt=function(){return it((function t(e){nt(this,t),this._worker=e}),[{key:"provideDefinition",value:function(t,e,r){var n=t.uri;return this._worker(n).then((function(t){return t.findDefinition(n.toString(),lt(e))})).then((function(t){if(t&&0!=t.length)return[mt(t[0])]}))}}])}(),bt=function(){return it((function t(e){nt(this,t),this._worker=e}),[{key:"provideReferences",value:function(t,e,r,n){var o=t.uri;return this._worker(o).then((function(t){return t.findReferences(o.toString(),lt(e))})).then((function(t){if(t)return t.map(mt)}))}}])}();var wt=function(){return it((function t(e){nt(this,t),this._worker=e}),[{key:"provideRenameEdits",value:function(t,e,r,n){var o=t.uri;return this._worker(o).then((function(t){return t.doRename(o.toString(),lt(e),r)})).then((function(t){return function(t){if(t&&t.changes){var e=[];for(var r in t.changes){var n,o=i.Uri.parse(r),a=Q(t.changes[r]);try{for(a.s();!(n=a.n()).done;){var u=n.value;e.push({resource:o,textEdit:{range:ft(u.range),text:u.newText},versionId:void 0})}}catch(t){a.e(t)}finally{a.f()}}return{edits:e}}}(t)}))}}])}(),_t=function(){return it((function t(e){nt(this,t),this._worker=e}),[{key:"provideDocumentFormattingEdits",value:function(t,e,r){var n=t.uri;return this._worker(n).then((function(t){return t.doDocumentFormat(n.toString()).then((function(t){return t.map((function(t){return pt(t)}))}))}))}}])}(),xt=function(){return it((function t(e){nt(this,t),this._worker=e}),[{key:"provideDocumentRangeFormattingEdits",value:function(t,e,r,n){var o=t.uri;return this._worker(o).then((function(t){return t.doRangeFormat(o.toString(),function(t){if(t)return{start:lt(t.getStartPosition()),end:lt(t.getEndPosition())}}(e)).then((function(t){return t.map((function(t){return pt(t)}))}))}))}}])}(),kt=function(){return it((function t(e){nt(this,t),this._worker=e}),[{key:"provideFoldingRanges",value:function(t,e,r){var n=t.uri;return this._worker(n).then((function(t){return t.doFolding(n.toString()).then((function(t){return t.map((function(t){return function(t){return{start:t.startLine+1,end:t.endLine+1,kind:i.languages.FoldingRangeKind.Region}}(t)}))}))}))}}])}();var Lt=function(){return it((function t(e){nt(this,t),this._worker=e}),[{key:"provideHover",value:function(t,e,r){var n=t.uri;return this._worker(n).then((function(t){return t.doHover(n.toString(),lt(e))})).then((function(t){if(t)return{range:ft(t.range),contents:vt(t.contents)}}))}}])}(),St={name:n.LANGUAGE_ID,mimeTypes:["text/kusto"],displayName:"Kusto",defaultToken:"invalid",queryOperators:["as","consume","distinct","evaluate","extend","getschema","graph-match","graph-merge","graph-to-table","invoke","join","limit","lookup","make-graph","make-series","mv-apply","mv-expand","order","parse","parse-kv","parse-where","project","project-away","project-keep","project-rename","project-reorder","range","reduce","render","sample","sample-distinct","scan","serialize","sort","summarize","take","top","top-hitters","top-nested","union","where","filter","fork","facet","range","consume","find","search","print","partition","lookup"],queryParameters:["kind"],types:["bool","datetime","decimal","double","dynamic","guid","int","long","real","string","timespan"],commands:[".add",".alter",".alter-merge",".append",".as",".assert",".attach",".consume",".count",".create",".create-merge",".create-or-alter",".create-set",".datatable",".default",".define",".delete",".detach",".distinct",".drop",".drop-pretend",".dup-next-failed-ingest",".dup-next-ingest",".evaluate",".export",".extend",".externaldata",".filter",".find",".fork",".getschema",".ingest",".join",".limit",".load",".make-series",".materialize",".move",".mv-expand",".order",".parse",".parse-where",".partition",".pivot",".print",".project",".project-away",".project-keep",".project-rename",".reduce",".remove",".rename",".replace",".restrict",".run",".sample",".sample-distinct",".save",".search",".serialize",".set",".set-or-append",".set-or-replace",".show",".sort",".summarize",".take",".top",".top-hitters",".top-nested",".union"],functions:["abs","acos","ago","array_concat","array_length","array_slice","array_split","asin","atan","atan2","avg","bag_keys","base64_decodestring","base64_encodestring","bin","bin_at","binary_and","binary_not","binary_or","binary_shift_left","binary_shift_right","binary_xor","case","ceiling","coalesce","columnifexists","cos","count","countof","cot","cursor_after","datatable","datepart","datetime_add","datetime_diff","datetime_part","dayofmonth","dayofweek","dayofyear","dcount","dcount_hll","degrees","endofday","endofmonth","endofweek","endofyear","exp","exp10","exp2","extract","extractall","extractjson","format_datetime","format_timespan","floor","gamma","geo_distance_2points","geo_geohash_to_central_point","geo_point_in_circle","geo_point_in_polygon","geo_point_to_geohash","getmonth","gettype","getyear","hash","hash_sha256","hll_merge","iif","indexof","isempty","isfinite","isinf","isascii","isnan","isnotempty","isnotnull","isnull","isutf8","log","log10","log2","loggamma","make_datetime","make_string","make_timespan","materialize","max","max_of","min","min_of","monthofyear","next","not","pack","pack_array","pack_dictionary","parse_csv","parse_ipv4","parse_json","parse_path","parse_url","parse_urlquery","parse_user_agent","parse_version","parse_xml","parsejson","percentrank_tdigest","percentile_tdigest","pow","prev","radians","rand","rank_tdigest","repeat","replace","reverse","round","row_cumsum","row_window_session","series_add","series_decompose","series_decompose_anomalies","series_decompose_forecast","series_divide","series_equals","series_fill_backward","series_fill_const","series_fill_forward","series_fill_linear","series_fir","series_fit_2lines","series_fit_2lines_dynamic","series_fit_line","series_fit_line_dynamic","series_greater","series_greater_equals","series_iir","series_less","series_less_equals","series_multiply","series_not_equals","series_outliers","series_pearson_correlation","series_periods_detect","series_periods_validate","series_seasonal","series_stats","series_stats_dynamic","series_subtract","sign","sin","split","sqrt","startofday","startofmonth","startofweek","startofyear","strcat","strcat_array","strcat_delim","strcmp","strlen","strrep","string_size","substring","sum","tan","tdigest_merge","tobool","toboolean","todecimal","todouble","todynamic","tofloat","toguid","tohex","toint","tolong","tolower","toobject","toreal","toscalar","tostring","totimespan","toupper","translate","trim","trim_end","trim_start","typeof","url_decode","url_encode","week_of_year","welch_test"],keywords:["and","as","asc","between","by","contains","count","desc","extend","false","filter","find","from","has","in","inner","join","leftouter","let","not","on","or","policy","project","project-away","project-rename","project-reorder","project-keep","range","rename","retention","summarize","table","take","to","true","where","with"],tokenizer:{root:[[/(\/\/.*$)/,n.Token.Comment],[/[\(\)\{\}\|\[\]\:\=\,\<|\.\..]/,n.Token.Punctuation],[/[\+\-\*\/\%\!\<\<=\>\>=\=\==\!=\<>\:\;\,\=~\@\?\=>\!~]/,n.Token.MathOperator],[/"([^"\\]*(\\.[^"\\]*)*)"/,n.Token.StringLiteral],[/'([^"\\]*(\\.[^"\\]*)*)'/,n.Token.StringLiteral],[/[\w@#\-$\.]+/,{cases:{"@queryOperators":n.Token.QueryOperator,"@queryParameters":n.Token.QueryParameter,"@types":n.Token.Type,"@commands":n.Token.Command,"@functions":n.Token.Function,"@keywords":n.Token.Keyword,"@default":"identifier"}}]]}};function Et(t){return Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Et(t)}function jt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */jt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),u=new P(n||[]);return o(a,"_invoke",{value:E(t,r,u)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",v={};function m(){}function g(){}function b(){}var w={};s(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(T([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==Et(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=h;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=j(u,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?y:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Et(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},L(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(k),s(k,c,"Generator"),s(k,a,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function Ot(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||Pt(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function It(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Pt(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function Pt(t,e){if(t){if("string"==typeof t)return Tt(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Tt(t,e):void 0}}function Tt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Ct(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function At(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Nt(n.key),n)}}function Nt(t){var e=function(t,e){if("object"!=Et(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Et(e)?e:e+""}var Dt,Gt,Ft=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.classificationsGetter=e},e=[{key:"getLegend",value:function(){return{tokenTypes:n.tokenTypes,tokenModifiers:[]}}},{key:"provideDocumentSemanticTokens",value:(o=jt().mark((function t(e){var r,n,o,i,a,u,c,s,l,f,h,p,d,y,v,m,g,b,w,_;return jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.uri,t.next=3,this.classificationsGetter(r);case 3:n=t.sent,o=[],i=0,a=0,u=It(n);try{for(u.s();!(c=u.n()).done;)for(s=c.value,l=Mt(s,e),f=0,h=l;f<h.length;f++)p=h[f],d=Ot(p,5),y=d[0],v=d[1],m=d[2],g=d[3],b=d[4],_=0==(w=y-i)?v-a:v,o.push([w,_,m,g,b]),i=y,a=v}catch(t){u.e(t)}finally{u.f()}return t.abrupt("return",{data:new Uint32Array(o.flat(2)),resultId:e.getVersionId().toString()});case 10:case"end":return t.stop()}}),t,this)})),i=function(){var t=this,e=arguments;return new Promise((function(r,n){var i=o.apply(t,e);function a(t){Ct(i,r,n,a,u,"next",t)}function u(t){Ct(i,r,n,a,u,"throw",t)}a(void 0)}))},function(t){return i.apply(this,arguments)})},{key:"releaseDocumentSemanticTokens",value:function(){}}],e&&At(t.prototype,e),r&&At(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r,o,i}();function Mt(t,e){for(var r=t.line,n=t.character,o=t.length,i=t.kind,a=[],u=o,c=r,s=n;u>0&&c<e.getLineCount();){var l=e.getLineLength(c+1)-s+1,f=Math.min(u,l);a.push([c,s,f,i,0]),u-=f,c++,s=0}return a}function Ut(t){return Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ut(t)}function Kt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Kt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),u=new P(n||[]);return o(a,"_invoke",{value:E(t,r,u)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",v={};function m(){}function g(){}function b(){}var w={};s(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(T([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==Ut(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=h;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=j(u,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?y:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Ut(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},L(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(k),s(k,c,"Generator"),s(k,a,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function Rt(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function Vt(){var t,e=function(e,r){t&&t.dispose(),t=e.languages.registerDocumentSemanticTokensProvider(n.LANGUAGE_ID,r)};return function(t,r){var n=function(t){var e=function(){var e,r=(e=Kt().mark((function e(r){var n;return Kt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(r);case 2:return n=e.sent,e.abrupt("return",n.getClassifications(r.toString()));case 4:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(t){Rt(i,n,o,a,u,"next",t)}function u(t){Rt(i,n,o,a,u,"throw",t)}a(void 0)}))});return function(t){return r.apply(this,arguments)}}();return new Ft(e)}(r);e(t,n)}}function Wt(t){return Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wt(t)}function qt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function zt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qt(Object(r),!0).forEach((function(e){Yt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Yt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=Wt(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Wt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Wt(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $t(t){return function(t){if(Array.isArray(t))return Ht(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Ht(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ht(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ht(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Qt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Qt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),u=new P(n||[]);return o(a,"_invoke",{value:E(t,r,u)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",v={};function m(){}function g(){}function b(){}var w={};s(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(T([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==Wt(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=h;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=j(u,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?y:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Wt(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},L(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(k),s(k,c,"Generator"),s(k,a,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function Bt(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function Zt(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Bt(i,n,o,a,u,"next",t)}function u(t){Bt(i,n,o,a,u,"throw",t)}a(void 0)}))}}e.languages.LanguageConfiguration;var Jt=new Promise((function(t,e){Gt=t}));var Xt={folding:{offSide:!1,markers:{start:/^\s*[\r\n]/gm,end:/^\s*[\r\n]/gm}},comments:{lineComment:"//",blockComment:null},autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],brackets:[["[","]"],["{","}"],["(",")"]],colorizedBracketPairs:[],wordPattern:/[a-zA-Z0-9\-_]+/g};t.getKustoWorker=function(){return Jt.then((function(){return Dt}))},t.setupMode=function(t,e){var r=new i.Emitter,o=Vt(),a=new p(e,t),u=function t(n){for(var i=function(){var n=Zt(Qt().mark((function n(i,a){var u;return Qt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=a.setSchema(i),n.next=3,u.then((function(){r.fire(i)}));case 3:o(e,t);case 4:case"end":return n.stop()}}),n)})));return function(t,e){return n.apply(this,arguments)}}(),u=arguments.length,c=new Array(u>1?u-1:0),s=1;s<u;s++)c[s-1]=arguments[s];return a.getLanguageServiceWorker.apply(a,$t([n].concat(c))).then((function(t){return zt(zt({},t),{},{setSchema:function(e){return i(e,t)},setSchemaFromShowSchema:function(e,r,n,o,a){return Zt(Qt().mark((function u(){return Qt().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,t.normalizeSchema(e,r,n).then((function(e){(o||a)&&(e=zt(zt({},e),{},{globalScalarParameters:o,globalTabularParameters:a})),i(e,t)}));case 2:case"end":return u.stop()}}),u)})))()}})}))};e.languages.registerCompletionItemProvider(n.LANGUAGE_ID,new dt(u,t.languageSettings)),e.languages.setMonarchTokensProvider(n.LANGUAGE_ID,St),new ct(e,n.LANGUAGE_ID,u,t,r.event),e.languages.registerDocumentRangeFormattingEditProvider(n.LANGUAGE_ID,new xt(u)),e.languages.registerFoldingRangeProvider(n.LANGUAGE_ID,new kt(u)),e.languages.registerDefinitionProvider(n.LANGUAGE_ID,new gt(u)),e.languages.registerRenameProvider(n.LANGUAGE_ID,new wt(u)),e.languages.registerReferenceProvider(n.LANGUAGE_ID,new bt(u)),t.languageSettings.enableHover&&e.languages.registerHoverProvider(n.LANGUAGE_ID,new Lt(u)),e.languages.registerDocumentFormattingEditProvider(n.LANGUAGE_ID,new _t(u)),Dt=u,Gt(u),e.languages.setLanguageConfiguration(n.LANGUAGE_ID,Xt)}}));
7
+ define("vs/language/kusto/kustoMode",["exports","vs/editor/editor.main","./main-0cb1ed3d","./types-48ca9ca8"],(function(t,e,r,n){"use strict";function o(t){var e=Object.create(null);return t&&Object.keys(t).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}})),e.default=t,Object.freeze(e)}var i=o(e),a=["onDidProvideCompletionItems"];function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function c(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */c=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),u=new C(n||[]);return o(a,"_invoke",{value:O(t,r,u)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",y="suspendedYield",v="executing",m="completed",g={};function b(){}function w(){}function _(){}var x={};f(x,a,(function(){return this}));var k=Object.getPrototypeOf,L=k&&k(k(A([])));L&&L!==r&&n.call(L,a)&&(x=L);var S=_.prototype=b.prototype=Object.create(x);function E(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function r(o,i,a,c){var s=p(t[o],t,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==u(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function O(e,r,n){var o=d;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=I(u,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var s=p(e,r,n);if("normal"===s.type){if(o=n.done?m:y,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=m,n.method="throw",n.arg=s.arg)}}}function I(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,I(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=p(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function A(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(u(e)+" is not iterable")}return w.prototype=_,o(S,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:w,configurable:!0}),w.displayName=f(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,f(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},E(j.prototype),f(j.prototype,s,(function(){return this})),e.AsyncIterator=j,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new j(h(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(S),f(S,l,"Generator"),f(S,a,(function(){return this})),f(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=A,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function s(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){s(i,n,o,a,u,"next",t)}function u(t){s(i,n,o,a,u,"throw",t)}a(void 0)}))}}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function h(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}var p=function(){return t=function t(e,r){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._monacoInstance=e,this._defaults=r,this._idleCheckInterval=self.setInterval((function(){return n._checkIfIdle()}),3e4),this._configChangeListener=this._defaults.onDidChange((function(){return n._saveStateAndStopWorker()}))},e=[{key:"_stopWorker",value:function(){var t=this._workerDetails;this._workerDetailsPromise=null,this._workerDetails=null,setTimeout(l(c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t._worker&&t._worker.dispose();case 1:case"end":return e.stop()}}),e)}))),5e3)}},{key:"_saveStateAndStopWorker",value:function(){var t,e,r=this;null!==(t=this._workerDetails)&&void 0!==t&&t._worker&&(null===(e=this._workerDetails)||void 0===e||e._worker.getProxy().then((function(t){t.getSchema().then((function(t){r._storedState={schema:t},r._stopWorker()}))})))}},{key:"dispose",value:function(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}},{key:"_checkIfIdle",value:function(){var t,e;if(null!==(t=this._workerDetails)&&void 0!==t&&t._worker){var r=this._defaults.getWorkerMaxIdleTime(),n=Date.now()-(null===(e=this._workerDetails)||void 0===e?void 0:e._lastUsedTime);r>0&&n>r&&this._saveStateAndStopWorker()}}},{key:"_getClient",value:function(){var t=this,e=this._defaults.languageSettings;e.onDidProvideCompletionItems;var r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(e,a);if(!this._workerDetailsPromise){var n=this._monacoInstance.editor.createWebWorker({moduleId:"vs/language/kusto/kustoWorker",label:"kusto",createData:{languageSettings:r,languageId:"kusto"}}),o=n.getProxy().then((function(e){return t._storedState?e.setSchema(t._storedState.schema).then((function(){return e})):e}));this._workerDetailsPromise=o.then((function(e){return t._workerDetails={_worker:n,_client:e,_lastUsedTime:Date.now()},t._workerDetails}))}return this._workerDetailsPromise}},{key:"getLanguageServiceWorker",value:function(){for(var t,e=this,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return this._getClient().then((function(e){t=e._client})).then((function(t){var r;return null===(r=e._workerDetails)||void 0===r||null===(r=r._worker)||void 0===r?void 0:r.withSyncedResources(n)})).then((function(e){return t}))}}],e&&f(t.prototype,e),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r}();function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function y(t){var e=d(t);return null!=t&&("object"==e||"function"==e)}function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}var m="object"==("undefined"==typeof global?"undefined":v(global))&&global&&global.Object===Object&&global;function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}var b="object"==("undefined"==typeof self?"undefined":g(self))&&self&&self.Object===Object&&self,w=m||b||Function("return this")(),_=function(){return w.Date.now()},x=/\s/;var k=/^\s+/;function L(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&x.test(t.charAt(e)););return e}(t)+1).replace(k,""):t}var S=w.Symbol,E=Object.prototype,j=E.hasOwnProperty,O=E.toString,I=S?S.toStringTag:void 0;var P=Object.prototype.toString;var T="[object Null]",C="[object Undefined]",A=S?S.toStringTag:void 0;function N(t){return null==t?void 0===t?C:T:A&&A in Object(t)?function(t){var e=j.call(t,I),r=t[I];try{t[I]=void 0;var n=!0}catch(t){}var o=O.call(t);return n&&(e?t[I]=r:delete t[I]),o}(t):function(t){return P.call(t)}(t)}function D(t){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D(t)}function G(t){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G(t)}var F="[object Symbol]";function M(t){return"symbol"==G(t)||function(t){return null!=t&&"object"==D(t)}(t)&&N(t)==F}var U=NaN,K=/^[-+]0x[0-9a-f]+$/i,R=/^0b[01]+$/i,V=/^0o[0-7]+$/i,W=parseInt;function q(t){if("number"==typeof t)return t;if(M(t))return U;if(y(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=y(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=L(t);var r=R.test(t);return r||V.test(t)?W(t.slice(2),r?2:8):K.test(t)?U:+t}var z=Math.max,Y=Math.min;function $(t,e,r){var n,o,i,a,u,c,s=0,l=!1,f=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var r=n,i=o;return n=o=void 0,s=e,a=t.apply(i,r)}function d(t){var r=t-c;return void 0===c||r>=e||r<0||f&&t-s>=i}function v(){var t=_();if(d(t))return m(t);u=setTimeout(v,function(t){var r=e-(t-c);return f?Y(r,i-(t-s)):r}(t))}function m(t){return u=void 0,h&&n?p(t):(n=o=void 0,a)}function g(){var t=_(),r=d(t);if(n=arguments,o=this,c=t,r){if(void 0===u)return function(t){return s=t,u=setTimeout(v,e),l?p(t):a}(c);if(f)return clearTimeout(u),u=setTimeout(v,e),p(c)}return void 0===u&&(u=setTimeout(v,e)),a}return e=q(e)||0,y(r)&&(l=!!r.leading,i=(f="maxWait"in r)?z(q(r.maxWait)||0,e):i,h="trailing"in r?!!r.trailing:h),g.cancel=function(){void 0!==u&&clearTimeout(u),s=0,n=c=o=u=void 0},g.flush=function(){return void 0===u?a:m(_())},g}function H(t,e){return t&&e.filterText.toLowerCase().includes(t.toLowerCase())?"".concat(t).concat(e.filterText):e.filterText}function Q(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=J(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function B(t){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B(t)}function Z(t){return function(t){if(Array.isArray(t))return X(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||J(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J(t,e){if(t){if("string"==typeof t)return X(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?X(t,e):void 0}}function X(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function tt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */tt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),u=new P(n||[]);return o(a,"_invoke",{value:E(t,r,u)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",v={};function m(){}function g(){}function b(){}var w={};s(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(T([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==B(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=h;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=j(u,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?y:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(B(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},L(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(k),s(k,c,"Generator"),s(k,a,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function et(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function rt(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){et(i,n,o,a,u,"next",t)}function u(t){et(i,n,o,a,u,"throw",t)}a(void 0)}))}}function nt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ot(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ut(n.key),n)}}function it(t,e,r){return e&&ot(t.prototype,e),r&&ot(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function at(t,e,r){return(e=ut(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ut(t){var e=function(t,e){if("object"!=B(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=B(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==B(e)?e:e+""}var ct=function(){return it((function t(e,r,n,o,a){var u=this;nt(this,t),at(this,"_disposables",[]),at(this,"_contentListener",Object.create(null)),at(this,"_configurationListener",Object.create(null)),at(this,"_schemaListener",Object.create(null)),at(this,"_cursorListener",Object.create(null)),at(this,"_debouncedValidations",Object.create(null)),this._monacoInstance=e,this._languageId=r,this._worker=n,this.defaults=o;var c,s=function(t){var e=t.getLanguageId(),r=t.uri.toString();if(e===u._languageId){var n=u.getOrCreateDebouncedValidation(t,e);u._contentListener[r]=t.onDidChangeContent((function(t){var e=function(t){return t.changes.map((function(t){return{start:t.rangeOffset,end:t.rangeOffset+t.text.length}}))}(t);n(e)})),u._configurationListener[r]=u.defaults.onDidChange((function(){self.setTimeout((function(){return u._doValidate(t,e,[])}),0)})),u._schemaListener[r]=a((function(){self.setTimeout((function(){return u._doValidate(t,e,[])}),0)}))}},l=function(t){var e=t.getId();u._cursorListener[e]||(t.onDidDispose((function(){var t;null===(t=u._cursorListener[e])||void 0===t||t.dispose(),delete u._cursorListener[e]})),u._cursorListener[e]=t.onDidChangeCursorSelection((function(e){var r=t.getModel(),n=r.getLanguageId();if(n===u._languageId){var o=r.getOffsetAt(e.selection.getPosition());u.getOrCreateDebouncedValidation(r,n)([{start:o,end:o}])}})))},f=function(t){u._monacoInstance.editor.setModelMarkers(t,u._languageId,[]);var e=t.uri.toString(),r=u._contentListener[e];r&&(r.dispose(),delete u._contentListener[e]);var n=u._configurationListener[e];n&&(n.dispose(),delete u._configurationListener[e]);var o=u._schemaListener[e];o&&(o.dispose(),delete u._schemaListener[e]);var i=u._debouncedValidations[e];i&&(i.cancel(),delete u._debouncedValidations[e])};this.defaults.languageSettings.enableQuickFixes&&this._disposables.push(i.languages.registerCodeActionProvider(this._languageId,{provideCodeActions:(c=rt(tt().mark((function t(e,r,n,o){var i,a,c,s;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=e.getOffsetAt(r.getStartPosition()),a=e.getOffsetAt(r.getEndPosition()),c=n.markers.length>0,t.next=5,u.getMonacoCodeActions(e,i,a,c);case 5:return s=t.sent,t.abrupt("return",{actions:s,dispose:function(){}});case 7:case"end":return t.stop()}}),t)}))),function(t,e,r,n){return c.apply(this,arguments)})})),this._disposables.push(this._monacoInstance.editor.onDidCreateEditor(l)),this._disposables.push(this._monacoInstance.editor.onDidCreateModel(s)),this._disposables.push(this._monacoInstance.editor.onWillDisposeModel(f)),this._disposables.push(this._monacoInstance.editor.onDidChangeModelLanguage((function(t){f(t.model),s(t.model)}))),this._disposables.push({dispose:function(){for(var t in u._contentListener)u._contentListener[t].dispose();for(var e in u._cursorListener)u._cursorListener[e].dispose();for(var r in u._debouncedValidations)u._debouncedValidations[r].cancel()}}),this._monacoInstance.editor.getModels().forEach(s),this._monacoInstance.editor.getEditors().forEach(l)}),[{key:"getMonacoCodeActions",value:(t=rt(tt().mark((function t(e,r,n,o){var i,a,u,c,s,l,f,h=this;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=[],t.next=3,this._worker(e.uri);case 3:return a=t.sent,u=e.uri,t.next=7,a.getResultActions(u.toString(),r,n);case 7:c=t.sent,s=tt().mark((function t(){var r,n,a,u,s;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=c[f]).kind.includes("Extract Function")){t.next=3;break}return t.abrupt("return",0);case 3:if("quickfix"!=(a=null!==(r=h.defaults.languageSettings.quickFixCodeActions)&&void 0!==r&&r.find((function(t){return n.kind.includes(t)}))?"quickfix":"custom")||o){t.next=6;break}return t.abrupt("return",{v:void 0});case 6:u=n.changes,s=u.map((function(t){var r,n=e.getPositionAt(t.start),o=e.getPositionAt(t.start+t.deleteLength);return{resource:e.uri,textEdit:{range:{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:o.lineNumber,endColumn:o.column},text:null!==(r=t.insertText)&&void 0!==r?r:""}}})),i.push({title:n.title,diagnostics:[],kind:a,edit:{edits:Z(s)}});case 9:case"end":return t.stop()}}),t)})),f=0;case 10:if(!(f<c.length)){t.next=20;break}return t.delegateYield(s(),"t0",12);case 12:if(0!==(l=t.t0)){t.next=15;break}return t.abrupt("continue",17);case 15:if(!l){t.next=17;break}return t.abrupt("return",l.v);case 17:f++,t.next=10;break;case 20:return t.abrupt("return",i);case 21:case"end":return t.stop()}}),t,this)}))),function(e,r,n,o){return t.apply(this,arguments)})},{key:"getOrCreateDebouncedValidation",value:function(t,e){var r=this,n=t.uri.toString();return this._debouncedValidations[n]||(this._debouncedValidations[n]=$((function(n){return r._doValidate(t,e,n)}),500)),this._debouncedValidations[n]}},{key:"dispose",value:function(){this._disposables.forEach((function(t){return t&&t.dispose()})),this._disposables=[]}},{key:"_doValidate",value:function(t,e,r){var n=this;if(!t.isDisposed()){var o=t.uri,a=t.getVersionId();this._worker(o).then((function(t){return t.doValidation(o.toString(),r)})).then((function(t){if(n._monacoInstance.editor.getModel(o).getVersionId()===a){var r=t.map((function(t){return r="number"==typeof(e=t).code?String(e.code):e.code,{severity:st(e.severity),startLineNumber:e.range.start.line+1,startColumn:e.range.start.character+1,endLineNumber:e.range.end.line+1,endColumn:e.range.end.character+1,message:e.message,code:r,source:e.source};var e,r})),u=n._monacoInstance.editor.getModel(o),c=u.getAllDecorations().filter((function(t){return"squiggly-error"==t.options.className})).map((function(t){return t.id}));if(u&&u.getLanguageId()===e){var s=n.defaults.languageSettings.syntaxErrorAsMarkDown;if(s&&s.enableSyntaxErrorAsMarkDown){var l=s.header?"**".concat(s.header,"** \n\n"):"",f=s.icon?"![](".concat(s.icon,")"):"",h="".concat(f," ").concat(l),p=r.map((function(t){return{range:{startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn},options:{hoverMessage:{value:h+t.message},className:"squiggly-error",zIndex:100,overviewRuler:{color:"rgb(255, 18, 18, 0.7)",position:i.editor.OverviewRulerLane.Right},minimap:{color:"rgb(255, 18, 18, 0.7)",position:i.editor.MinimapPosition.Inline}}}})),d=i.editor.getModelMarkers({owner:e,resource:o});d&&d.length>0&&(c=[],n._monacoInstance.editor.setModelMarkers(u,e,[])),u.deltaDecorations(c,p)}else u.deltaDecorations(c,[]),n._monacoInstance.editor.setModelMarkers(u,e,r)}}})).then(void 0,(function(t){console.error(t)}))}}}]);var t}();function st(t){switch(t){case r.DiagnosticSeverity.Error:return i.MarkerSeverity.Error;case r.DiagnosticSeverity.Warning:return i.MarkerSeverity.Warning;case r.DiagnosticSeverity.Information:return i.MarkerSeverity.Info;case r.DiagnosticSeverity.Hint:return i.MarkerSeverity.Hint;default:return i.MarkerSeverity.Info}}function lt(t){if(t)return{character:t.column-1,line:t.lineNumber-1}}function ft(t){if(t)return new i.Range(t.start.line+1,t.start.character+1,t.end.line+1,t.end.character+1)}function ht(t){var e=i.languages.CompletionItemKind;switch(t){case r.CompletionItemKind.Text:return e.Text;case r.CompletionItemKind.Method:return e.Method;case r.CompletionItemKind.Function:return e.Function;case r.CompletionItemKind.Constructor:return e.Constructor;case r.CompletionItemKind.Field:return e.Field;case r.CompletionItemKind.Variable:return e.Variable;case r.CompletionItemKind.Class:return e.Class;case r.CompletionItemKind.Interface:return e.Interface;case r.CompletionItemKind.Module:return e.Module;case r.CompletionItemKind.Property:return e.Property;case r.CompletionItemKind.Unit:return e.Unit;case r.CompletionItemKind.Value:return e.Value;case r.CompletionItemKind.Enum:return e.Enum;case r.CompletionItemKind.Keyword:return e.Keyword;case r.CompletionItemKind.Snippet:return e.Snippet;case r.CompletionItemKind.Color:return e.Color;case r.CompletionItemKind.File:return e.File;case r.CompletionItemKind.Reference:return e.Reference}return e.Property}function pt(t){if(t)return{range:ft(t.range),text:t.newText}}var dt=function(){return it((function t(e,r){nt(this,t),this.languageSettings=r;var n=function(){var t=rt(tt().mark((function t(r,n){var o;return tt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e(r);case 2:return o=t.sent,t.abrupt("return",o.doComplete(r.toString(),n));case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}();this.completionCacheManager=function(t){var e,r,n;return{getCompletionItems:function(o,i,a){return(!n||n.line!==a.line||!r||!o||!(null!=o&&o.includes(r)))&&(e=t(i,a)),r=o,n=a,e}}}(n)}),[{key:"triggerCharacters",get:function(){return[" ",".","("]}},{key:"provideCompletionItems",value:function(t,e,n,o){var a,u=this,c=t.getWordUntilPosition(e),s=new i.Range(e.lineNumber,c.startColumn,e.lineNumber,c.endColumn),l=t.uri,f=null==t||null===(a=t.getWordAtPosition(e))||void 0===a?void 0:a.word,h=this.languageSettings.onDidProvideCompletionItems;return this.completionCacheManager.getCompletionItems(f,l,lt(e)).then((function(t){return h?h(t):t})).then((function(t){if(t){var e=function(t,e){var r=t[0];if(!e)return r;var n=t.find((function(t){var r;return null===(r=t.filterText)||void 0===r?void 0:r.toLowerCase().startsWith(e.toLowerCase())}));return null!=n?n:r}(t.items,f);return{incomplete:!0,suggestions:t.items.map((function(t,n){var o,a={label:t.label,insertText:t.insertText,sortText:t.sortText,filterText:H(f,t),documentation:u.formatDocLink(null===(o=t.documentation)||void 0===o?void 0:o.value),detail:t.detail,range:s,kind:ht(t.kind),preselect:e.filterText===t.filterText};return t.textEdit&&(a.range=ft(t.textEdit.range),a.insertText=t.textEdit.newText),t.insertTextFormat===r.InsertTextFormat.Snippet&&(a.insertTextRules=i.languages.CompletionItemInsertTextRule.InsertAsSnippet),a}))}}}))}},{key:"formatDocLink",value:function(t){if(t){var e=this.languageSettings,r=e.documentationBaseUrl,n=void 0===r?"https://learn.microsoft.com/azure/data-explorer/kusto/query":r,o=e.documentationSuffix;return{value:t,isTrusted:!0,uris:new Proxy({},{get:function(t,e,r){var a=e.toString().replace(".md","");a.startsWith("https")||(a="".concat(n,"/").concat(a));var u=i.Uri.parse(a);return o&&(u.toString=function(){return a+o}),u}})}}}}])}();function yt(t){return"string"==typeof t?{value:t}:(e=t)&&"object"===B(e)&&"string"==typeof e.kind?"plaintext"===t.kind?{value:t.value.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}:{value:t.value}:{value:"```"+t.value+"\n"+t.value+"\n```\n"};var e}function vt(t){if(t)return Array.isArray(t)?t.map(yt):[yt(t)]}function mt(t){return{uri:i.Uri.parse(t.uri),range:ft(t.range)}}var gt=function(){return it((function t(e){nt(this,t),this._worker=e}),[{key:"provideDefinition",value:function(t,e,r){var n=t.uri;return this._worker(n).then((function(t){return t.findDefinition(n.toString(),lt(e))})).then((function(t){if(t&&0!=t.length)return[mt(t[0])]}))}}])}(),bt=function(){return it((function t(e){nt(this,t),this._worker=e}),[{key:"provideReferences",value:function(t,e,r,n){var o=t.uri;return this._worker(o).then((function(t){return t.findReferences(o.toString(),lt(e))})).then((function(t){if(t)return t.map(mt)}))}}])}();var wt=function(){return it((function t(e){nt(this,t),this._worker=e}),[{key:"provideRenameEdits",value:function(t,e,r,n){var o=t.uri;return this._worker(o).then((function(t){return t.doRename(o.toString(),lt(e),r)})).then((function(t){return function(t){if(t&&t.changes){var e=[];for(var r in t.changes){var n,o=i.Uri.parse(r),a=Q(t.changes[r]);try{for(a.s();!(n=a.n()).done;){var u=n.value;e.push({resource:o,textEdit:{range:ft(u.range),text:u.newText},versionId:void 0})}}catch(t){a.e(t)}finally{a.f()}}return{edits:e}}}(t)}))}}])}(),_t=function(){return it((function t(e){nt(this,t),this._worker=e}),[{key:"provideDocumentFormattingEdits",value:function(t,e,r){var n=t.uri;return this._worker(n).then((function(t){return t.doDocumentFormat(n.toString()).then((function(t){return t.map((function(t){return pt(t)}))}))}))}}])}(),xt=function(){return it((function t(e){nt(this,t),this._worker=e}),[{key:"provideDocumentRangeFormattingEdits",value:function(t,e,r,n){var o=t.uri;return this._worker(o).then((function(t){return t.doRangeFormat(o.toString(),function(t){if(t)return{start:lt(t.getStartPosition()),end:lt(t.getEndPosition())}}(e)).then((function(t){return t.map((function(t){return pt(t)}))}))}))}}])}(),kt=function(){return it((function t(e){nt(this,t),this._worker=e}),[{key:"provideFoldingRanges",value:function(t,e,r){var n=t.uri;return this._worker(n).then((function(t){return t.doFolding(n.toString()).then((function(t){return t.map((function(t){return function(t){return{start:t.startLine+1,end:t.endLine+1,kind:i.languages.FoldingRangeKind.Region}}(t)}))}))}))}}])}();var Lt=function(){return it((function t(e){nt(this,t),this._worker=e}),[{key:"provideHover",value:function(t,e,r){var n=t.uri;return this._worker(n).then((function(t){return t.doHover(n.toString(),lt(e))})).then((function(t){if(t)return{range:ft(t.range),contents:vt(t.contents)}}))}}])}(),St={name:n.LANGUAGE_ID,mimeTypes:["text/kusto"],displayName:"Kusto",defaultToken:"invalid",queryOperators:["as","consume","distinct","evaluate","extend","getschema","graph-match","graph-merge","graph-to-table","invoke","join","limit","lookup","make-graph","make-series","mv-apply","mv-expand","order","parse","parse-kv","parse-where","project","project-away","project-keep","project-rename","project-reorder","range","reduce","render","sample","sample-distinct","scan","serialize","sort","summarize","take","top","top-hitters","top-nested","union","where","filter","fork","facet","range","consume","find","search","print","partition","lookup"],queryParameters:["kind"],types:["bool","datetime","decimal","double","dynamic","guid","int","long","real","string","timespan"],commands:[".add",".alter",".alter-merge",".append",".as",".assert",".attach",".consume",".count",".create",".create-merge",".create-or-alter",".create-set",".datatable",".default",".define",".delete",".detach",".distinct",".drop",".drop-pretend",".dup-next-failed-ingest",".dup-next-ingest",".evaluate",".export",".extend",".externaldata",".filter",".find",".fork",".getschema",".ingest",".join",".limit",".load",".make-series",".materialize",".move",".mv-expand",".order",".parse",".parse-where",".partition",".pivot",".print",".project",".project-away",".project-keep",".project-rename",".reduce",".remove",".rename",".replace",".restrict",".run",".sample",".sample-distinct",".save",".search",".serialize",".set",".set-or-append",".set-or-replace",".show",".sort",".summarize",".take",".top",".top-hitters",".top-nested",".union"],functions:["abs","acos","ago","array_concat","array_length","array_slice","array_split","asin","atan","atan2","avg","bag_keys","base64_decodestring","base64_encodestring","bin","bin_at","binary_and","binary_not","binary_or","binary_shift_left","binary_shift_right","binary_xor","case","ceiling","coalesce","columnifexists","cos","count","countof","cot","cursor_after","datatable","datepart","datetime_add","datetime_diff","datetime_part","dayofmonth","dayofweek","dayofyear","dcount","dcount_hll","degrees","endofday","endofmonth","endofweek","endofyear","exp","exp10","exp2","extract","extractall","extractjson","format_datetime","format_timespan","floor","gamma","geo_distance_2points","geo_geohash_to_central_point","geo_point_in_circle","geo_point_in_polygon","geo_point_to_geohash","getmonth","gettype","getyear","hash","hash_sha256","hll_merge","iif","indexof","isempty","isfinite","isinf","isascii","isnan","isnotempty","isnotnull","isnull","isutf8","log","log10","log2","loggamma","make_datetime","make_string","make_timespan","materialize","max","max_of","min","min_of","monthofyear","next","not","pack","pack_array","pack_dictionary","parse_csv","parse_ipv4","parse_json","parse_path","parse_url","parse_urlquery","parse_user_agent","parse_version","parse_xml","parsejson","percentrank_tdigest","percentile_tdigest","pow","prev","radians","rand","rank_tdigest","repeat","replace","reverse","round","row_cumsum","row_window_session","series_add","series_decompose","series_decompose_anomalies","series_decompose_forecast","series_divide","series_equals","series_fill_backward","series_fill_const","series_fill_forward","series_fill_linear","series_fir","series_fit_2lines","series_fit_2lines_dynamic","series_fit_line","series_fit_line_dynamic","series_greater","series_greater_equals","series_iir","series_less","series_less_equals","series_multiply","series_not_equals","series_outliers","series_pearson_correlation","series_periods_detect","series_periods_validate","series_seasonal","series_stats","series_stats_dynamic","series_subtract","sign","sin","split","sqrt","startofday","startofmonth","startofweek","startofyear","strcat","strcat_array","strcat_delim","strcmp","strlen","strrep","string_size","substring","sum","tan","tdigest_merge","tobool","toboolean","todecimal","todouble","todynamic","tofloat","toguid","tohex","toint","tolong","tolower","toobject","toreal","toscalar","tostring","totimespan","toupper","translate","trim","trim_end","trim_start","typeof","url_decode","url_encode","week_of_year","welch_test"],keywords:["and","as","asc","between","by","contains","count","desc","extend","false","filter","find","from","has","in","inner","join","leftouter","let","not","on","or","policy","project","project-away","project-rename","project-reorder","project-keep","range","rename","retention","summarize","table","take","to","true","where","with"],tokenizer:{root:[[/(\/\/.*$)/,n.Token.Comment],[/[\(\)\{\}\|\[\]\:\=\,\<|\.\..]/,n.Token.Punctuation],[/[\+\-\*\/\%\!\<\<=\>\>=\=\==\!=\<>\:\;\,\=~\@\?\=>\!~]/,n.Token.MathOperator],[/"([^"\\]*(\\.[^"\\]*)*)"/,n.Token.StringLiteral],[/'([^"\\]*(\\.[^"\\]*)*)'/,n.Token.StringLiteral],[/[\w@#\-$\.]+/,{cases:{"@queryOperators":n.Token.QueryOperator,"@queryParameters":n.Token.QueryParameter,"@types":n.Token.Type,"@commands":n.Token.Command,"@functions":n.Token.Function,"@keywords":n.Token.Keyword,"@default":"identifier"}}]]}};function Et(t){return Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Et(t)}function jt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */jt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),u=new P(n||[]);return o(a,"_invoke",{value:E(t,r,u)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",v={};function m(){}function g(){}function b(){}var w={};s(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(T([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==Et(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=h;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=j(u,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?y:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Et(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},L(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(k),s(k,c,"Generator"),s(k,a,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function Ot(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(t,e)||Pt(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function It(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Pt(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function Pt(t,e){if(t){if("string"==typeof t)return Tt(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Tt(t,e):void 0}}function Tt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Ct(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function At(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Nt(n.key),n)}}function Nt(t){var e=function(t,e){if("object"!=Et(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Et(e)?e:e+""}var Dt,Gt,Ft=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.classificationsGetter=e},e=[{key:"getLegend",value:function(){return{tokenTypes:n.tokenTypes,tokenModifiers:[]}}},{key:"provideDocumentSemanticTokens",value:(o=jt().mark((function t(e){var r,n,o,i,a,u,c,s,l,f,h,p,d,y,v,m,g,b,w,_;return jt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.uri,t.next=3,this.classificationsGetter(r);case 3:n=t.sent,o=[],i=0,a=0,u=It(n);try{for(u.s();!(c=u.n()).done;)for(s=c.value,l=Mt(s,e),f=0,h=l;f<h.length;f++)p=h[f],d=Ot(p,5),y=d[0],v=d[1],m=d[2],g=d[3],b=d[4],_=0==(w=y-i)?v-a:v,o.push([w,_,m,g,b]),i=y,a=v}catch(t){u.e(t)}finally{u.f()}return t.abrupt("return",{data:new Uint32Array(o.flat(2)),resultId:e.getVersionId().toString()});case 10:case"end":return t.stop()}}),t,this)})),i=function(){var t=this,e=arguments;return new Promise((function(r,n){var i=o.apply(t,e);function a(t){Ct(i,r,n,a,u,"next",t)}function u(t){Ct(i,r,n,a,u,"throw",t)}a(void 0)}))},function(t){return i.apply(this,arguments)})},{key:"releaseDocumentSemanticTokens",value:function(){}}],e&&At(t.prototype,e),r&&At(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,r,o,i}();function Mt(t,e){for(var r=t.line,n=t.character,o=t.length,i=t.kind,a=[],u=o,c=r,s=n;u>0&&c<e.getLineCount();){var l=e.getLineLength(c+1)-s+1,f=Math.min(u,l);a.push([c,s,f,i,0]),u-=f,c++,s=0}return a}function Ut(t){return Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ut(t)}function Kt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Kt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),u=new P(n||[]);return o(a,"_invoke",{value:E(t,r,u)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",v={};function m(){}function g(){}function b(){}var w={};s(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(T([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==Ut(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=h;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=j(u,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?y:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Ut(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},L(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(k),s(k,c,"Generator"),s(k,a,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function Rt(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function Vt(){var t,e=function(e,r){t&&t.dispose(),t=e.languages.registerDocumentSemanticTokensProvider(n.LANGUAGE_ID,r)};return function(t,r){var n=function(t){var e=function(){var e,r=(e=Kt().mark((function e(r){var n;return Kt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(r);case 2:return n=e.sent,e.abrupt("return",n.getClassifications(r.toString()));case 4:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(t){Rt(i,n,o,a,u,"next",t)}function u(t){Rt(i,n,o,a,u,"throw",t)}a(void 0)}))});return function(t){return r.apply(this,arguments)}}();return new Ft(e)}(r);e(t,n)}}function Wt(t){return Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wt(t)}function qt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function zt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?qt(Object(r),!0).forEach((function(e){Yt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Yt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=Wt(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Wt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Wt(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $t(t){return function(t){if(Array.isArray(t))return Ht(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Ht(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ht(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ht(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function Qt(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Qt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),u=new P(n||[]);return o(a,"_invoke",{value:E(t,r,u)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var h="suspendedStart",p="suspendedYield",d="executing",y="completed",v={};function m(){}function g(){}function b(){}var w={};s(w,a,(function(){return this}));var _=Object.getPrototypeOf,x=_&&_(_(T([])));x&&x!==r&&n.call(x,a)&&(w=x);var k=b.prototype=m.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function r(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==Wt(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(e,r,n){var o=h;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=j(u,n);if(c){if(c===v)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?y:p,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=y,n.method="throw",n.arg=s.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Wt(e)+" is not iterable")}return g.prototype=b,o(k,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=s(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s(t,c,"GeneratorFunction")),t.prototype=Object.create(k),t},e.awrap=function(t){return{__await:t}},L(S.prototype),s(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new S(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(k),s(k,c,"Generator"),s(k,a,(function(){return this})),s(k,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function Bt(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function Zt(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Bt(i,n,o,a,u,"next",t)}function u(t){Bt(i,n,o,a,u,"throw",t)}a(void 0)}))}}e.languages.LanguageConfiguration;var Jt=new Promise((function(t,e){Gt=t}));var Xt={folding:{offSide:!1,markers:{start:/^\s*[\r\n]/gm,end:/^\s*[\r\n]/gm}},comments:{lineComment:"//",blockComment:null},autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],brackets:[["[","]"],["{","}"],["(",")"]],colorizedBracketPairs:[],wordPattern:/[a-zA-Z0-9\-_]+/g};t.getKustoWorker=function(){return Jt.then((function(){return Dt}))},t.setupMode=function(t,e){var r=new i.Emitter,o=Vt(),a=new p(e,t),u=function t(n){for(var i=function(){var n=Zt(Qt().mark((function n(i,a){var u;return Qt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return u=a.setSchema(i),n.next=3,u.then((function(){r.fire(i)}));case 3:o(e,t);case 4:case"end":return n.stop()}}),n)})));return function(t,e){return n.apply(this,arguments)}}(),u=arguments.length,c=new Array(u>1?u-1:0),s=1;s<u;s++)c[s-1]=arguments[s];return a.getLanguageServiceWorker.apply(a,$t([n].concat(c))).then((function(t){return zt(zt({},t),{},{setSchema:function(e){return i(e,t)},setSchemaFromShowSchema:function(e,r,n,o,a){return Zt(Qt().mark((function u(){return Qt().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,t.normalizeSchema(e,r,n).then((function(e){(o||a)&&(e=zt(zt({},e),{},{globalScalarParameters:o,globalTabularParameters:a})),i(e,t)}));case 2:case"end":return u.stop()}}),u)})))()}})}))};e.languages.registerCompletionItemProvider(n.LANGUAGE_ID,new dt(u,t.languageSettings)),e.languages.setMonarchTokensProvider(n.LANGUAGE_ID,St),new ct(e,n.LANGUAGE_ID,u,t,r.event),e.languages.registerDocumentRangeFormattingEditProvider(n.LANGUAGE_ID,new xt(u)),e.languages.registerFoldingRangeProvider(n.LANGUAGE_ID,new kt(u)),e.languages.registerDefinitionProvider(n.LANGUAGE_ID,new gt(u)),e.languages.registerRenameProvider(n.LANGUAGE_ID,new wt(u)),e.languages.registerReferenceProvider(n.LANGUAGE_ID,new bt(u)),t.languageSettings.enableHover&&e.languages.registerHoverProvider(n.LANGUAGE_ID,new Lt(u)),e.languages.registerDocumentFormattingEditProvider(n.LANGUAGE_ID,new _t(u)),Dt=u,Gt(u),e.languages.setLanguageConfiguration(n.LANGUAGE_ID,Xt)}}));
@@ -1,10 +1,10 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 13.0.1(c583448ef85a6c5416f36c2d537eccb626b81aa8)
3
+ * monaco-kusto version: 13.0.2(e6cccc4de83964ccb5eb5b66e79d61333b0dc314)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
7
- define("vs/language/kusto/kustoWorker",["exports","./main-c88e79ea","./schema-7f7acd36"],(function(u,d,e){"use strict";function t(u,d){return function(u){if(Array.isArray(u))return u}(u)||function(u,d){var e=null==u?null:"undefined"!=typeof Symbol&&u[Symbol.iterator]||u["@@iterator"];if(null!=e){var t,n,a,r,c=[],f=!0,o=!1;try{if(a=(e=e.call(u)).next,0===d){if(Object(e)!==e)return;f=!1}else for(;!(f=(t=a.call(e)).done)&&(c.push(t.value),c.length!==d);f=!0);}catch(u){o=!0,n=u}finally{try{if(!f&&null!=e.return&&(r=e.return(),Object(r)!==r))return}finally{if(o)throw n}}return c}}(u,d)||a(u,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(u,d){var e="undefined"!=typeof Symbol&&u[Symbol.iterator]||u["@@iterator"];if(!e){if(Array.isArray(u)||(e=a(u))||d&&u&&"number"==typeof u.length){e&&(u=e);var t=0,n=function(){};return{s:n,n:function(){return t>=u.length?{done:!0}:{done:!1,value:u[t++]}},e:function(u){throw u},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,c=!0,f=!1;return{s:function(){e=e.call(u)},n:function(){var u=e.next();return c=u.done,u},e:function(u){f=!0,r=u},f:function(){try{c||null==e.return||e.return()}finally{if(f)throw r}}}}function a(u,d){if(u){if("string"==typeof u)return r(u,d);var e={}.toString.call(u).slice(8,-1);return"Object"===e&&u.constructor&&(e=u.constructor.name),"Map"===e||"Set"===e?Array.from(u):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(u,d):void 0}}function r(u,d){(null==d||d>u.length)&&(d=u.length);for(var e=0,t=Array(d);e<d;e++)t[e]=u[e];return t}
7
+ define("vs/language/kusto/kustoWorker",["exports","./main-0cb1ed3d","./schema-ba14fa16"],(function(u,d,e){"use strict";function t(u,d){return function(u){if(Array.isArray(u))return u}(u)||function(u,d){var e=null==u?null:"undefined"!=typeof Symbol&&u[Symbol.iterator]||u["@@iterator"];if(null!=e){var t,n,a,r,c=[],f=!0,o=!1;try{if(a=(e=e.call(u)).next,0===d){if(Object(e)!==e)return;f=!1}else for(;!(f=(t=a.call(e)).done)&&(c.push(t.value),c.length!==d);f=!0);}catch(u){o=!0,n=u}finally{try{if(!f&&null!=e.return&&(r=e.return(),Object(r)!==r))return}finally{if(o)throw n}}return c}}(u,d)||a(u,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(u,d){var e="undefined"!=typeof Symbol&&u[Symbol.iterator]||u["@@iterator"];if(!e){if(Array.isArray(u)||(e=a(u))||d&&u&&"number"==typeof u.length){e&&(u=e);var t=0,n=function(){};return{s:n,n:function(){return t>=u.length?{done:!0}:{done:!1,value:u[t++]}},e:function(u){throw u},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,c=!0,f=!1;return{s:function(){e=e.call(u)},n:function(){var u=e.next();return c=u.done,u},e:function(u){f=!0,r=u},f:function(){try{c||null==e.return||e.return()}finally{if(f)throw r}}}}function a(u,d){if(u){if("string"==typeof u)return r(u,d);var e={}.toString.call(u).slice(8,-1);return"Object"===e&&u.constructor&&(e=u.constructor.name),"Map"===e||"Set"===e?Array.from(u):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(u,d):void 0}}function r(u,d){(null==d||d>u.length)&&(d=u.length);for(var e=0,t=Array(d);e<d;e++)t[e]=u[e];return t}
8
8
  /*!
9
9
  * XRegExp 5.1.1
10
10
  * <xregexp.com>
@@ -1,7 +1,7 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 13.0.1(c583448ef85a6c5416f36c2d537eccb626b81aa8)
3
+ * monaco-kusto version: 13.0.2(e6cccc4de83964ccb5eb5b66e79d61333b0dc314)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
7
- define("vs/language/kusto/main-c88e79ea",["exports"],(function(n){"use strict";function e(n){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e(n)}function t(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,i(r.key),r)}}function i(n){var t=function(n,t){if("object"!=e(n)||!n)return n;var i=n[Symbol.toPrimitive];if(void 0!==i){var r=i.call(n,t||"default");if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}(n,"string");return"symbol"==e(t)?t:t+""}var r,o,a,u,c,s,d,f,g,l,v,m,p,b,y,h,x,I,A,L,k,E,R,T,w,j,C,_,S,M,N,U,D,P,O,V,K,F,X,z,W,q,B,H,Q,$,G,J,Y,Z,nn,en,tn,rn,on,an,un,cn,sn,dn,fn,gn,ln,vn,mn,pn,bn,yn,hn,xn,In,An,Ln,kn,En,Rn;!function(n){n.is=function(n){return"string"==typeof n}}(r||(r={})),function(n){n.is=function(n){return"string"==typeof n}}(o||(o={})),function(n){n.MIN_VALUE=-2147483648,n.MAX_VALUE=2147483647,n.is=function(e){return"number"==typeof e&&n.MIN_VALUE<=e&&e<=n.MAX_VALUE}}(a||(a={})),function(n){n.MIN_VALUE=0,n.MAX_VALUE=2147483647,n.is=function(e){return"number"==typeof e&&n.MIN_VALUE<=e&&e<=n.MAX_VALUE}}(u||(u={})),function(n){n.create=function(n,e){return n===Number.MAX_VALUE&&(n=u.MAX_VALUE),e===Number.MAX_VALUE&&(e=u.MAX_VALUE),{line:n,character:e}},n.is=function(n){var e=n;return Tn.objectLiteral(e)&&Tn.uinteger(e.line)&&Tn.uinteger(e.character)}}(c||(c={})),n.Range=void 0,(s=n.Range||(n.Range={})).create=function(n,e,t,i){if(Tn.uinteger(n)&&Tn.uinteger(e)&&Tn.uinteger(t)&&Tn.uinteger(i))return{start:c.create(n,e),end:c.create(t,i)};if(c.is(n)&&c.is(e))return{start:n,end:e};throw new Error("Range#create called with invalid arguments[".concat(n,", ").concat(e,", ").concat(t,", ").concat(i,"]"))},s.is=function(n){var e=n;return Tn.objectLiteral(e)&&c.is(e.start)&&c.is(e.end)},n.Location=void 0,(d=n.Location||(n.Location={})).create=function(n,e){return{uri:n,range:e}},d.is=function(e){var t=e;return Tn.objectLiteral(t)&&n.Range.is(t.range)&&(Tn.string(t.uri)||Tn.undefined(t.uri))},function(e){e.create=function(n,e,t,i){return{targetUri:n,targetRange:e,targetSelectionRange:t,originSelectionRange:i}},e.is=function(e){var t=e;return Tn.objectLiteral(t)&&n.Range.is(t.targetRange)&&Tn.string(t.targetUri)&&n.Range.is(t.targetSelectionRange)&&(n.Range.is(t.originSelectionRange)||Tn.undefined(t.originSelectionRange))}}(f||(f={})),function(n){n.create=function(n,e,t,i){return{red:n,green:e,blue:t,alpha:i}},n.is=function(n){var e=n;return Tn.objectLiteral(e)&&Tn.numberRange(e.red,0,1)&&Tn.numberRange(e.green,0,1)&&Tn.numberRange(e.blue,0,1)&&Tn.numberRange(e.alpha,0,1)}}(g||(g={})),function(e){e.create=function(n,e){return{range:n,color:e}},e.is=function(e){var t=e;return Tn.objectLiteral(t)&&n.Range.is(t.range)&&g.is(t.color)}}(l||(l={})),function(e){e.create=function(n,e,t){return{label:n,textEdit:e,additionalTextEdits:t}},e.is=function(e){var t=e;return Tn.objectLiteral(t)&&Tn.string(t.label)&&(Tn.undefined(t.textEdit)||n.TextEdit.is(t))&&(Tn.undefined(t.additionalTextEdits)||Tn.typedArray(t.additionalTextEdits,n.TextEdit.is))}}(v||(v={})),function(n){n.Comment="comment",n.Imports="imports",n.Region="region"}(m||(m={})),function(n){n.create=function(n,e,t,i,r,o){var a={startLine:n,endLine:e};return Tn.defined(t)&&(a.startCharacter=t),Tn.defined(i)&&(a.endCharacter=i),Tn.defined(r)&&(a.kind=r),Tn.defined(o)&&(a.collapsedText=o),a},n.is=function(n){var e=n;return Tn.objectLiteral(e)&&Tn.uinteger(e.startLine)&&Tn.uinteger(e.startLine)&&(Tn.undefined(e.startCharacter)||Tn.uinteger(e.startCharacter))&&(Tn.undefined(e.endCharacter)||Tn.uinteger(e.endCharacter))&&(Tn.undefined(e.kind)||Tn.string(e.kind))}}(p||(p={})),function(e){e.create=function(n,e){return{location:n,message:e}},e.is=function(e){var t=e;return Tn.defined(t)&&n.Location.is(t.location)&&Tn.string(t.message)}}(b||(b={})),n.DiagnosticSeverity=void 0,(y=n.DiagnosticSeverity||(n.DiagnosticSeverity={})).Error=1,y.Warning=2,y.Information=3,y.Hint=4,function(n){n.Unnecessary=1,n.Deprecated=2}(h||(h={})),function(n){n.is=function(n){var e=n;return Tn.objectLiteral(e)&&Tn.string(e.href)}}(x||(x={})),n.Diagnostic=void 0,(I=n.Diagnostic||(n.Diagnostic={})).create=function(n,e,t,i,r,o){var a={range:n,message:e};return Tn.defined(t)&&(a.severity=t),Tn.defined(i)&&(a.code=i),Tn.defined(r)&&(a.source=r),Tn.defined(o)&&(a.relatedInformation=o),a},I.is=function(e){var t,i=e;return Tn.defined(i)&&n.Range.is(i.range)&&Tn.string(i.message)&&(Tn.number(i.severity)||Tn.undefined(i.severity))&&(Tn.integer(i.code)||Tn.string(i.code)||Tn.undefined(i.code))&&(Tn.undefined(i.codeDescription)||Tn.string(null===(t=i.codeDescription)||void 0===t?void 0:t.href))&&(Tn.string(i.source)||Tn.undefined(i.source))&&(Tn.undefined(i.relatedInformation)||Tn.typedArray(i.relatedInformation,b.is))},function(n){n.create=function(n,e){for(var t={title:n,command:e},i=arguments.length,r=new Array(i>2?i-2:0),o=2;o<i;o++)r[o-2]=arguments[o];return Tn.defined(r)&&r.length>0&&(t.arguments=r),t},n.is=function(n){var e=n;return Tn.defined(e)&&Tn.string(e.title)&&Tn.string(e.command)}}(A||(A={})),n.TextEdit=void 0,(L=n.TextEdit||(n.TextEdit={})).replace=function(n,e){return{range:n,newText:e}},L.insert=function(n,e){return{range:{start:n,end:n},newText:e}},L.del=function(n){return{range:n,newText:""}},L.is=function(e){var t=e;return Tn.objectLiteral(t)&&Tn.string(t.newText)&&n.Range.is(t.range)},function(n){n.create=function(n,e,t){var i={label:n};return void 0!==e&&(i.needsConfirmation=e),void 0!==t&&(i.description=t),i},n.is=function(n){var e=n;return Tn.objectLiteral(e)&&Tn.string(e.label)&&(Tn.boolean(e.needsConfirmation)||void 0===e.needsConfirmation)&&(Tn.string(e.description)||void 0===e.description)}}(k||(k={})),function(n){n.is=function(n){var e=n;return Tn.string(e)}}(E||(E={})),function(e){e.replace=function(n,e,t){return{range:n,newText:e,annotationId:t}},e.insert=function(n,e,t){return{range:{start:n,end:n},newText:e,annotationId:t}},e.del=function(n,e){return{range:n,newText:"",annotationId:e}},e.is=function(e){var t=e;return n.TextEdit.is(t)&&(k.is(t.annotationId)||E.is(t.annotationId))}}(R||(R={})),function(n){n.create=function(n,e){return{textDocument:n,edits:e}},n.is=function(n){var e=n;return Tn.defined(e)&&N.is(e.textDocument)&&Array.isArray(e.edits)}}(T||(T={})),function(n){n.create=function(n,e,t){var i={kind:"create",uri:n};return void 0===e||void 0===e.overwrite&&void 0===e.ignoreIfExists||(i.options=e),void 0!==t&&(i.annotationId=t),i},n.is=function(n){var e=n;return e&&"create"===e.kind&&Tn.string(e.uri)&&(void 0===e.options||(void 0===e.options.overwrite||Tn.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||Tn.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||E.is(e.annotationId))}}(w||(w={})),function(n){n.create=function(n,e,t,i){var r={kind:"rename",oldUri:n,newUri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==i&&(r.annotationId=i),r},n.is=function(n){var e=n;return e&&"rename"===e.kind&&Tn.string(e.oldUri)&&Tn.string(e.newUri)&&(void 0===e.options||(void 0===e.options.overwrite||Tn.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||Tn.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||E.is(e.annotationId))}}(j||(j={})),function(n){n.create=function(n,e,t){var i={kind:"delete",uri:n};return void 0===e||void 0===e.recursive&&void 0===e.ignoreIfNotExists||(i.options=e),void 0!==t&&(i.annotationId=t),i},n.is=function(n){var e=n;return e&&"delete"===e.kind&&Tn.string(e.uri)&&(void 0===e.options||(void 0===e.options.recursive||Tn.boolean(e.options.recursive))&&(void 0===e.options.ignoreIfNotExists||Tn.boolean(e.options.ignoreIfNotExists)))&&(void 0===e.annotationId||E.is(e.annotationId))}}(C||(C={})),function(n){n.is=function(n){var e=n;return e&&(void 0!==e.changes||void 0!==e.documentChanges)&&(void 0===e.documentChanges||e.documentChanges.every((function(n){return Tn.string(n.kind)?w.is(n)||j.is(n)||C.is(n):T.is(n)})))}}(_||(_={})),function(n){n.create=function(n){return{uri:n}},n.is=function(n){var e=n;return Tn.defined(e)&&Tn.string(e.uri)}}(S||(S={})),function(n){n.create=function(n,e){return{uri:n,version:e}},n.is=function(n){var e=n;return Tn.defined(e)&&Tn.string(e.uri)&&Tn.integer(e.version)}}(M||(M={})),function(n){n.create=function(n,e){return{uri:n,version:e}},n.is=function(n){var e=n;return Tn.defined(e)&&Tn.string(e.uri)&&(null===e.version||Tn.integer(e.version))}}(N||(N={})),function(n){n.create=function(n,e,t,i){return{uri:n,languageId:e,version:t,text:i}},n.is=function(n){var e=n;return Tn.defined(e)&&Tn.string(e.uri)&&Tn.string(e.languageId)&&Tn.integer(e.version)&&Tn.string(e.text)}}(U||(U={})),n.MarkupKind=void 0,(D=n.MarkupKind||(n.MarkupKind={})).PlainText="plaintext",D.Markdown="markdown",D.is=function(n){var e=n;return e===D.PlainText||e===D.Markdown},function(e){e.is=function(e){var t=e;return Tn.objectLiteral(e)&&n.MarkupKind.is(t.kind)&&Tn.string(t.value)}}(P||(P={})),n.CompletionItemKind=void 0,(O=n.CompletionItemKind||(n.CompletionItemKind={})).Text=1,O.Method=2,O.Function=3,O.Constructor=4,O.Field=5,O.Variable=6,O.Class=7,O.Interface=8,O.Module=9,O.Property=10,O.Unit=11,O.Value=12,O.Enum=13,O.Keyword=14,O.Snippet=15,O.Color=16,O.File=17,O.Reference=18,O.Folder=19,O.EnumMember=20,O.Constant=21,O.Struct=22,O.Event=23,O.Operator=24,O.TypeParameter=25,n.InsertTextFormat=void 0,(V=n.InsertTextFormat||(n.InsertTextFormat={})).PlainText=1,V.Snippet=2,function(n){n.Deprecated=1}(K||(K={})),function(e){e.create=function(n,e,t){return{newText:n,insert:e,replace:t}},e.is=function(e){var t=e;return t&&Tn.string(t.newText)&&n.Range.is(t.insert)&&n.Range.is(t.replace)}}(F||(F={})),function(n){n.asIs=1,n.adjustIndentation=2}(X||(X={})),function(n){n.is=function(n){var e=n;return e&&(Tn.string(e.detail)||void 0===e.detail)&&(Tn.string(e.description)||void 0===e.description)}}(z||(z={})),n.CompletionItem=void 0,(n.CompletionItem||(n.CompletionItem={})).create=function(n){return{label:n}},n.CompletionList=void 0,(n.CompletionList||(n.CompletionList={})).create=function(n,e){return{items:n||[],isIncomplete:!!e}},function(n){n.fromPlainText=function(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},n.is=function(n){var e=n;return Tn.string(e)||Tn.objectLiteral(e)&&Tn.string(e.language)&&Tn.string(e.value)}}(W||(W={})),function(e){e.is=function(e){var t=e;return!!t&&Tn.objectLiteral(t)&&(P.is(t.contents)||W.is(t.contents)||Tn.typedArray(t.contents,W.is))&&(void 0===e.range||n.Range.is(e.range))}}(q||(q={})),function(n){n.create=function(n,e){return e?{label:n,documentation:e}:{label:n}}}(B||(B={})),function(n){n.create=function(n,e){var t={label:n};Tn.defined(e)&&(t.documentation=e);for(var i=arguments.length,r=new Array(i>2?i-2:0),o=2;o<i;o++)r[o-2]=arguments[o];return Tn.defined(r)?t.parameters=r:t.parameters=[],t}}(H||(H={})),function(n){n.Text=1,n.Read=2,n.Write=3}(Q||(Q={})),function(n){n.create=function(n,e){var t={range:n};return Tn.number(e)&&(t.kind=e),t}}($||($={})),function(n){n.File=1,n.Module=2,n.Namespace=3,n.Package=4,n.Class=5,n.Method=6,n.Property=7,n.Field=8,n.Constructor=9,n.Enum=10,n.Interface=11,n.Function=12,n.Variable=13,n.Constant=14,n.String=15,n.Number=16,n.Boolean=17,n.Array=18,n.Object=19,n.Key=20,n.Null=21,n.EnumMember=22,n.Struct=23,n.Event=24,n.Operator=25,n.TypeParameter=26}(G||(G={})),function(n){n.Deprecated=1}(J||(J={})),function(n){n.create=function(n,e,t,i,r){var o={name:n,kind:e,location:{uri:i,range:t}};return r&&(o.containerName=r),o}}(Y||(Y={})),function(n){n.create=function(n,e,t,i){return void 0!==i?{name:n,kind:e,location:{uri:t,range:i}}:{name:n,kind:e,location:{uri:t}}}}(Z||(Z={})),function(e){e.create=function(n,e,t,i,r,o){var a={name:n,detail:e,kind:t,range:i,selectionRange:r};return void 0!==o&&(a.children=o),a},e.is=function(e){var t=e;return t&&Tn.string(t.name)&&Tn.number(t.kind)&&n.Range.is(t.range)&&n.Range.is(t.selectionRange)&&(void 0===t.detail||Tn.string(t.detail))&&(void 0===t.deprecated||Tn.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(nn||(nn={})),function(n){n.Empty="",n.QuickFix="quickfix",n.Refactor="refactor",n.RefactorExtract="refactor.extract",n.RefactorInline="refactor.inline",n.RefactorRewrite="refactor.rewrite",n.Source="source",n.SourceOrganizeImports="source.organizeImports",n.SourceFixAll="source.fixAll"}(en||(en={})),function(n){n.Invoked=1,n.Automatic=2}(tn||(tn={})),function(e){e.create=function(n,e,t){var i={diagnostics:n};return null!=e&&(i.only=e),null!=t&&(i.triggerKind=t),i},e.is=function(e){var t=e;return Tn.defined(t)&&Tn.typedArray(t.diagnostics,n.Diagnostic.is)&&(void 0===t.only||Tn.typedArray(t.only,Tn.string))&&(void 0===t.triggerKind||t.triggerKind===tn.Invoked||t.triggerKind===tn.Automatic)}}(rn||(rn={})),function(e){e.create=function(n,e,t){var i={title:n},r=!0;return"string"==typeof e?(r=!1,i.kind=e):A.is(e)?i.command=e:i.edit=e,r&&void 0!==t&&(i.kind=t),i},e.is=function(e){var t=e;return t&&Tn.string(t.title)&&(void 0===t.diagnostics||Tn.typedArray(t.diagnostics,n.Diagnostic.is))&&(void 0===t.kind||Tn.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||A.is(t.command))&&(void 0===t.isPreferred||Tn.boolean(t.isPreferred))&&(void 0===t.edit||_.is(t.edit))}}(on||(on={})),function(e){e.create=function(n,e){var t={range:n};return Tn.defined(e)&&(t.data=e),t},e.is=function(e){var t=e;return Tn.defined(t)&&n.Range.is(t.range)&&(Tn.undefined(t.command)||A.is(t.command))}}(an||(an={})),function(n){n.create=function(n,e){return{tabSize:n,insertSpaces:e}},n.is=function(n){var e=n;return Tn.defined(e)&&Tn.uinteger(e.tabSize)&&Tn.boolean(e.insertSpaces)}}(un||(un={})),function(e){e.create=function(n,e,t){return{range:n,target:e,data:t}},e.is=function(e){var t=e;return Tn.defined(t)&&n.Range.is(t.range)&&(Tn.undefined(t.target)||Tn.string(t.target))}}(cn||(cn={})),function(e){e.create=function(n,e){return{range:n,parent:e}},e.is=function(t){var i=t;return Tn.objectLiteral(i)&&n.Range.is(i.range)&&(void 0===i.parent||e.is(i.parent))}}(sn||(sn={})),function(n){n.namespace="namespace",n.type="type",n.class="class",n.enum="enum",n.interface="interface",n.struct="struct",n.typeParameter="typeParameter",n.parameter="parameter",n.variable="variable",n.property="property",n.enumMember="enumMember",n.event="event",n.function="function",n.method="method",n.macro="macro",n.keyword="keyword",n.modifier="modifier",n.comment="comment",n.string="string",n.number="number",n.regexp="regexp",n.operator="operator",n.decorator="decorator"}(dn||(dn={})),function(n){n.declaration="declaration",n.definition="definition",n.readonly="readonly",n.static="static",n.deprecated="deprecated",n.abstract="abstract",n.async="async",n.modification="modification",n.documentation="documentation",n.defaultLibrary="defaultLibrary"}(fn||(fn={})),function(n){n.is=function(n){var e=n;return Tn.objectLiteral(e)&&(void 0===e.resultId||"string"==typeof e.resultId)&&Array.isArray(e.data)&&(0===e.data.length||"number"==typeof e.data[0])}}(gn||(gn={})),function(e){e.create=function(n,e){return{range:n,text:e}},e.is=function(e){var t=e;return null!=t&&n.Range.is(t.range)&&Tn.string(t.text)}}(ln||(ln={})),function(e){e.create=function(n,e,t){return{range:n,variableName:e,caseSensitiveLookup:t}},e.is=function(e){var t=e;return null!=t&&n.Range.is(t.range)&&Tn.boolean(t.caseSensitiveLookup)&&(Tn.string(t.variableName)||void 0===t.variableName)}}(vn||(vn={})),function(e){e.create=function(n,e){return{range:n,expression:e}},e.is=function(e){var t=e;return null!=t&&n.Range.is(t.range)&&(Tn.string(t.expression)||void 0===t.expression)}}(mn||(mn={})),function(e){e.create=function(n,e){return{frameId:n,stoppedLocation:e}},e.is=function(e){var t=e;return Tn.defined(t)&&n.Range.is(e.stoppedLocation)}}(pn||(pn={})),function(n){n.Type=1,n.Parameter=2,n.is=function(n){return 1===n||2===n}}(bn||(bn={})),function(e){e.create=function(n){return{value:n}},e.is=function(e){var t=e;return Tn.objectLiteral(t)&&(void 0===t.tooltip||Tn.string(t.tooltip)||P.is(t.tooltip))&&(void 0===t.location||n.Location.is(t.location))&&(void 0===t.command||A.is(t.command))}}(yn||(yn={})),function(e){e.create=function(n,e,t){var i={position:n,label:e};return void 0!==t&&(i.kind=t),i},e.is=function(e){var t=e;return Tn.objectLiteral(t)&&c.is(t.position)&&(Tn.string(t.label)||Tn.typedArray(t.label,yn.is))&&(void 0===t.kind||bn.is(t.kind))&&void 0===t.textEdits||Tn.typedArray(t.textEdits,n.TextEdit.is)&&(void 0===t.tooltip||Tn.string(t.tooltip)||P.is(t.tooltip))&&(void 0===t.paddingLeft||Tn.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Tn.boolean(t.paddingRight))}}(hn||(hn={})),function(n){n.createSnippet=function(n){return{kind:"snippet",value:n}}}(xn||(xn={})),function(n){n.create=function(n,e,t,i){return{insertText:n,filterText:e,range:t,command:i}}}(In||(In={})),function(n){n.create=function(n){return{items:n}}}(An||(An={})),function(n){n.Invoked=0,n.Automatic=1}(Ln||(Ln={})),function(n){n.create=function(n,e){return{range:n,text:e}}}(kn||(kn={})),function(n){n.create=function(n,e){return{triggerKind:n,selectedCompletionInfo:e}}}(En||(En={})),function(n){n.is=function(n){var e=n;return Tn.objectLiteral(e)&&o.is(e.uri)&&Tn.string(e.name)}}(Rn||(Rn={})),n.TextDocument=void 0,function(n){function e(n,t){if(n.length<=1)return n;var i=n.length/2|0,r=n.slice(0,i),o=n.slice(i);e(r,t),e(o,t);for(var a=0,u=0,c=0;a<r.length&&u<o.length;){var s=t(r[a],o[u]);n[c++]=s<=0?r[a++]:o[u++]}for(;a<r.length;)n[c++]=r[a++];for(;u<o.length;)n[c++]=o[u++];return n}n.create=function(n,e,t,i){return new wn(n,e,t,i)},n.is=function(n){var e=n;return!!(Tn.defined(e)&&Tn.string(e.uri)&&(Tn.undefined(e.languageId)||Tn.string(e.languageId))&&Tn.uinteger(e.lineCount)&&Tn.func(e.getText)&&Tn.func(e.positionAt)&&Tn.func(e.offsetAt))},n.applyEdits=function(n,t){for(var i=n.getText(),r=e(t,(function(n,e){var t=n.range.start.line-e.range.start.line;return 0===t?n.range.start.character-e.range.start.character:t})),o=i.length,a=r.length-1;a>=0;a--){var u=r[a],c=n.offsetAt(u.range.start),s=n.offsetAt(u.range.end);if(!(s<=o))throw new Error("Overlapping edit");i=i.substring(0,c)+u.newText+i.substring(s,i.length),o=c}return i}}(n.TextDocument||(n.TextDocument={}));var Tn,wn=function(){return n=function n(e,t,i,r){!function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),this._uri=e,this._languageId=t,this._version=i,this._content=r,this._lineOffsets=void 0},(e=[{key:"uri",get:function(){return this._uri}},{key:"languageId",get:function(){return this._languageId}},{key:"version",get:function(){return this._version}},{key:"getText",value:function(n){if(n){var e=this.offsetAt(n.start),t=this.offsetAt(n.end);return this._content.substring(e,t)}return this._content}},{key:"update",value:function(n,e){this._content=n.text,this._version=e,this._lineOffsets=void 0}},{key:"getLineOffsets",value:function(){if(void 0===this._lineOffsets){for(var n=[],e=this._content,t=!0,i=0;i<e.length;i++){t&&(n.push(i),t=!1);var r=e.charAt(i);t="\r"===r||"\n"===r,"\r"===r&&i+1<e.length&&"\n"===e.charAt(i+1)&&i++}t&&e.length>0&&n.push(e.length),this._lineOffsets=n}return this._lineOffsets}},{key:"positionAt",value:function(n){n=Math.max(Math.min(n,this._content.length),0);var e=this.getLineOffsets(),t=0,i=e.length;if(0===i)return c.create(0,n);for(;t<i;){var r=Math.floor((t+i)/2);e[r]>n?i=r:t=r+1}var o=t-1;return c.create(o,n-e[o])}},{key:"offsetAt",value:function(n){var e=this.getLineOffsets();if(n.line>=e.length)return this._content.length;if(n.line<0)return 0;var t=e[n.line],i=n.line+1<e.length?e[n.line+1]:this._content.length;return Math.max(Math.min(t+n.character,i),t)}},{key:"lineCount",get:function(){return this.getLineOffsets().length}}])&&t(n.prototype,e),i&&t(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,e,i}();!function(n){var t=Object.prototype.toString;n.defined=function(n){return void 0!==n},n.undefined=function(n){return void 0===n},n.boolean=function(n){return!0===n||!1===n},n.string=function(n){return"[object String]"===t.call(n)},n.number=function(n){return"[object Number]"===t.call(n)},n.numberRange=function(n,e,i){return"[object Number]"===t.call(n)&&e<=n&&n<=i},n.integer=function(n){return"[object Number]"===t.call(n)&&-2147483648<=n&&n<=2147483647},n.uinteger=function(n){return"[object Number]"===t.call(n)&&0<=n&&n<=2147483647},n.func=function(n){return"[object Function]"===t.call(n)},n.objectLiteral=function(n){return null!==n&&"object"===e(n)},n.typedArray=function(n,e){return Array.isArray(n)&&n.every(e)}}(Tn||(Tn={}))}));
7
+ define("vs/language/kusto/main-0cb1ed3d",["exports"],(function(n){"use strict";function e(n){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e(n)}function t(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,i(r.key),r)}}function i(n){var t=function(n,t){if("object"!=e(n)||!n)return n;var i=n[Symbol.toPrimitive];if(void 0!==i){var r=i.call(n,t||"default");if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}(n,"string");return"symbol"==e(t)?t:t+""}var r,o,a,u,c,s,d,f,g,l,v,m,p,b,y,h,x,I,A,L,k,E,R,T,w,j,C,_,S,M,N,U,D,P,O,V,K,F,X,z,W,q,B,H,Q,$,G,J,Y,Z,nn,en,tn,rn,on,an,un,cn,sn,dn,fn,gn,ln,vn,mn,pn,bn,yn,hn,xn,In,An,Ln,kn,En,Rn;!function(n){n.is=function(n){return"string"==typeof n}}(r||(r={})),function(n){n.is=function(n){return"string"==typeof n}}(o||(o={})),function(n){n.MIN_VALUE=-2147483648,n.MAX_VALUE=2147483647,n.is=function(e){return"number"==typeof e&&n.MIN_VALUE<=e&&e<=n.MAX_VALUE}}(a||(a={})),function(n){n.MIN_VALUE=0,n.MAX_VALUE=2147483647,n.is=function(e){return"number"==typeof e&&n.MIN_VALUE<=e&&e<=n.MAX_VALUE}}(u||(u={})),function(n){n.create=function(n,e){return n===Number.MAX_VALUE&&(n=u.MAX_VALUE),e===Number.MAX_VALUE&&(e=u.MAX_VALUE),{line:n,character:e}},n.is=function(n){var e=n;return Tn.objectLiteral(e)&&Tn.uinteger(e.line)&&Tn.uinteger(e.character)}}(c||(c={})),n.Range=void 0,(s=n.Range||(n.Range={})).create=function(n,e,t,i){if(Tn.uinteger(n)&&Tn.uinteger(e)&&Tn.uinteger(t)&&Tn.uinteger(i))return{start:c.create(n,e),end:c.create(t,i)};if(c.is(n)&&c.is(e))return{start:n,end:e};throw new Error("Range#create called with invalid arguments[".concat(n,", ").concat(e,", ").concat(t,", ").concat(i,"]"))},s.is=function(n){var e=n;return Tn.objectLiteral(e)&&c.is(e.start)&&c.is(e.end)},n.Location=void 0,(d=n.Location||(n.Location={})).create=function(n,e){return{uri:n,range:e}},d.is=function(e){var t=e;return Tn.objectLiteral(t)&&n.Range.is(t.range)&&(Tn.string(t.uri)||Tn.undefined(t.uri))},function(e){e.create=function(n,e,t,i){return{targetUri:n,targetRange:e,targetSelectionRange:t,originSelectionRange:i}},e.is=function(e){var t=e;return Tn.objectLiteral(t)&&n.Range.is(t.targetRange)&&Tn.string(t.targetUri)&&n.Range.is(t.targetSelectionRange)&&(n.Range.is(t.originSelectionRange)||Tn.undefined(t.originSelectionRange))}}(f||(f={})),function(n){n.create=function(n,e,t,i){return{red:n,green:e,blue:t,alpha:i}},n.is=function(n){var e=n;return Tn.objectLiteral(e)&&Tn.numberRange(e.red,0,1)&&Tn.numberRange(e.green,0,1)&&Tn.numberRange(e.blue,0,1)&&Tn.numberRange(e.alpha,0,1)}}(g||(g={})),function(e){e.create=function(n,e){return{range:n,color:e}},e.is=function(e){var t=e;return Tn.objectLiteral(t)&&n.Range.is(t.range)&&g.is(t.color)}}(l||(l={})),function(e){e.create=function(n,e,t){return{label:n,textEdit:e,additionalTextEdits:t}},e.is=function(e){var t=e;return Tn.objectLiteral(t)&&Tn.string(t.label)&&(Tn.undefined(t.textEdit)||n.TextEdit.is(t))&&(Tn.undefined(t.additionalTextEdits)||Tn.typedArray(t.additionalTextEdits,n.TextEdit.is))}}(v||(v={})),function(n){n.Comment="comment",n.Imports="imports",n.Region="region"}(m||(m={})),function(n){n.create=function(n,e,t,i,r,o){var a={startLine:n,endLine:e};return Tn.defined(t)&&(a.startCharacter=t),Tn.defined(i)&&(a.endCharacter=i),Tn.defined(r)&&(a.kind=r),Tn.defined(o)&&(a.collapsedText=o),a},n.is=function(n){var e=n;return Tn.objectLiteral(e)&&Tn.uinteger(e.startLine)&&Tn.uinteger(e.startLine)&&(Tn.undefined(e.startCharacter)||Tn.uinteger(e.startCharacter))&&(Tn.undefined(e.endCharacter)||Tn.uinteger(e.endCharacter))&&(Tn.undefined(e.kind)||Tn.string(e.kind))}}(p||(p={})),function(e){e.create=function(n,e){return{location:n,message:e}},e.is=function(e){var t=e;return Tn.defined(t)&&n.Location.is(t.location)&&Tn.string(t.message)}}(b||(b={})),n.DiagnosticSeverity=void 0,(y=n.DiagnosticSeverity||(n.DiagnosticSeverity={})).Error=1,y.Warning=2,y.Information=3,y.Hint=4,function(n){n.Unnecessary=1,n.Deprecated=2}(h||(h={})),function(n){n.is=function(n){var e=n;return Tn.objectLiteral(e)&&Tn.string(e.href)}}(x||(x={})),n.Diagnostic=void 0,(I=n.Diagnostic||(n.Diagnostic={})).create=function(n,e,t,i,r,o){var a={range:n,message:e};return Tn.defined(t)&&(a.severity=t),Tn.defined(i)&&(a.code=i),Tn.defined(r)&&(a.source=r),Tn.defined(o)&&(a.relatedInformation=o),a},I.is=function(e){var t,i=e;return Tn.defined(i)&&n.Range.is(i.range)&&Tn.string(i.message)&&(Tn.number(i.severity)||Tn.undefined(i.severity))&&(Tn.integer(i.code)||Tn.string(i.code)||Tn.undefined(i.code))&&(Tn.undefined(i.codeDescription)||Tn.string(null===(t=i.codeDescription)||void 0===t?void 0:t.href))&&(Tn.string(i.source)||Tn.undefined(i.source))&&(Tn.undefined(i.relatedInformation)||Tn.typedArray(i.relatedInformation,b.is))},function(n){n.create=function(n,e){for(var t={title:n,command:e},i=arguments.length,r=new Array(i>2?i-2:0),o=2;o<i;o++)r[o-2]=arguments[o];return Tn.defined(r)&&r.length>0&&(t.arguments=r),t},n.is=function(n){var e=n;return Tn.defined(e)&&Tn.string(e.title)&&Tn.string(e.command)}}(A||(A={})),n.TextEdit=void 0,(L=n.TextEdit||(n.TextEdit={})).replace=function(n,e){return{range:n,newText:e}},L.insert=function(n,e){return{range:{start:n,end:n},newText:e}},L.del=function(n){return{range:n,newText:""}},L.is=function(e){var t=e;return Tn.objectLiteral(t)&&Tn.string(t.newText)&&n.Range.is(t.range)},function(n){n.create=function(n,e,t){var i={label:n};return void 0!==e&&(i.needsConfirmation=e),void 0!==t&&(i.description=t),i},n.is=function(n){var e=n;return Tn.objectLiteral(e)&&Tn.string(e.label)&&(Tn.boolean(e.needsConfirmation)||void 0===e.needsConfirmation)&&(Tn.string(e.description)||void 0===e.description)}}(k||(k={})),function(n){n.is=function(n){var e=n;return Tn.string(e)}}(E||(E={})),function(e){e.replace=function(n,e,t){return{range:n,newText:e,annotationId:t}},e.insert=function(n,e,t){return{range:{start:n,end:n},newText:e,annotationId:t}},e.del=function(n,e){return{range:n,newText:"",annotationId:e}},e.is=function(e){var t=e;return n.TextEdit.is(t)&&(k.is(t.annotationId)||E.is(t.annotationId))}}(R||(R={})),function(n){n.create=function(n,e){return{textDocument:n,edits:e}},n.is=function(n){var e=n;return Tn.defined(e)&&N.is(e.textDocument)&&Array.isArray(e.edits)}}(T||(T={})),function(n){n.create=function(n,e,t){var i={kind:"create",uri:n};return void 0===e||void 0===e.overwrite&&void 0===e.ignoreIfExists||(i.options=e),void 0!==t&&(i.annotationId=t),i},n.is=function(n){var e=n;return e&&"create"===e.kind&&Tn.string(e.uri)&&(void 0===e.options||(void 0===e.options.overwrite||Tn.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||Tn.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||E.is(e.annotationId))}}(w||(w={})),function(n){n.create=function(n,e,t,i){var r={kind:"rename",oldUri:n,newUri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==i&&(r.annotationId=i),r},n.is=function(n){var e=n;return e&&"rename"===e.kind&&Tn.string(e.oldUri)&&Tn.string(e.newUri)&&(void 0===e.options||(void 0===e.options.overwrite||Tn.boolean(e.options.overwrite))&&(void 0===e.options.ignoreIfExists||Tn.boolean(e.options.ignoreIfExists)))&&(void 0===e.annotationId||E.is(e.annotationId))}}(j||(j={})),function(n){n.create=function(n,e,t){var i={kind:"delete",uri:n};return void 0===e||void 0===e.recursive&&void 0===e.ignoreIfNotExists||(i.options=e),void 0!==t&&(i.annotationId=t),i},n.is=function(n){var e=n;return e&&"delete"===e.kind&&Tn.string(e.uri)&&(void 0===e.options||(void 0===e.options.recursive||Tn.boolean(e.options.recursive))&&(void 0===e.options.ignoreIfNotExists||Tn.boolean(e.options.ignoreIfNotExists)))&&(void 0===e.annotationId||E.is(e.annotationId))}}(C||(C={})),function(n){n.is=function(n){var e=n;return e&&(void 0!==e.changes||void 0!==e.documentChanges)&&(void 0===e.documentChanges||e.documentChanges.every((function(n){return Tn.string(n.kind)?w.is(n)||j.is(n)||C.is(n):T.is(n)})))}}(_||(_={})),function(n){n.create=function(n){return{uri:n}},n.is=function(n){var e=n;return Tn.defined(e)&&Tn.string(e.uri)}}(S||(S={})),function(n){n.create=function(n,e){return{uri:n,version:e}},n.is=function(n){var e=n;return Tn.defined(e)&&Tn.string(e.uri)&&Tn.integer(e.version)}}(M||(M={})),function(n){n.create=function(n,e){return{uri:n,version:e}},n.is=function(n){var e=n;return Tn.defined(e)&&Tn.string(e.uri)&&(null===e.version||Tn.integer(e.version))}}(N||(N={})),function(n){n.create=function(n,e,t,i){return{uri:n,languageId:e,version:t,text:i}},n.is=function(n){var e=n;return Tn.defined(e)&&Tn.string(e.uri)&&Tn.string(e.languageId)&&Tn.integer(e.version)&&Tn.string(e.text)}}(U||(U={})),n.MarkupKind=void 0,(D=n.MarkupKind||(n.MarkupKind={})).PlainText="plaintext",D.Markdown="markdown",D.is=function(n){var e=n;return e===D.PlainText||e===D.Markdown},function(e){e.is=function(e){var t=e;return Tn.objectLiteral(e)&&n.MarkupKind.is(t.kind)&&Tn.string(t.value)}}(P||(P={})),n.CompletionItemKind=void 0,(O=n.CompletionItemKind||(n.CompletionItemKind={})).Text=1,O.Method=2,O.Function=3,O.Constructor=4,O.Field=5,O.Variable=6,O.Class=7,O.Interface=8,O.Module=9,O.Property=10,O.Unit=11,O.Value=12,O.Enum=13,O.Keyword=14,O.Snippet=15,O.Color=16,O.File=17,O.Reference=18,O.Folder=19,O.EnumMember=20,O.Constant=21,O.Struct=22,O.Event=23,O.Operator=24,O.TypeParameter=25,n.InsertTextFormat=void 0,(V=n.InsertTextFormat||(n.InsertTextFormat={})).PlainText=1,V.Snippet=2,function(n){n.Deprecated=1}(K||(K={})),function(e){e.create=function(n,e,t){return{newText:n,insert:e,replace:t}},e.is=function(e){var t=e;return t&&Tn.string(t.newText)&&n.Range.is(t.insert)&&n.Range.is(t.replace)}}(F||(F={})),function(n){n.asIs=1,n.adjustIndentation=2}(X||(X={})),function(n){n.is=function(n){var e=n;return e&&(Tn.string(e.detail)||void 0===e.detail)&&(Tn.string(e.description)||void 0===e.description)}}(z||(z={})),n.CompletionItem=void 0,(n.CompletionItem||(n.CompletionItem={})).create=function(n){return{label:n}},n.CompletionList=void 0,(n.CompletionList||(n.CompletionList={})).create=function(n,e){return{items:n||[],isIncomplete:!!e}},function(n){n.fromPlainText=function(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},n.is=function(n){var e=n;return Tn.string(e)||Tn.objectLiteral(e)&&Tn.string(e.language)&&Tn.string(e.value)}}(W||(W={})),function(e){e.is=function(e){var t=e;return!!t&&Tn.objectLiteral(t)&&(P.is(t.contents)||W.is(t.contents)||Tn.typedArray(t.contents,W.is))&&(void 0===e.range||n.Range.is(e.range))}}(q||(q={})),function(n){n.create=function(n,e){return e?{label:n,documentation:e}:{label:n}}}(B||(B={})),function(n){n.create=function(n,e){var t={label:n};Tn.defined(e)&&(t.documentation=e);for(var i=arguments.length,r=new Array(i>2?i-2:0),o=2;o<i;o++)r[o-2]=arguments[o];return Tn.defined(r)?t.parameters=r:t.parameters=[],t}}(H||(H={})),function(n){n.Text=1,n.Read=2,n.Write=3}(Q||(Q={})),function(n){n.create=function(n,e){var t={range:n};return Tn.number(e)&&(t.kind=e),t}}($||($={})),function(n){n.File=1,n.Module=2,n.Namespace=3,n.Package=4,n.Class=5,n.Method=6,n.Property=7,n.Field=8,n.Constructor=9,n.Enum=10,n.Interface=11,n.Function=12,n.Variable=13,n.Constant=14,n.String=15,n.Number=16,n.Boolean=17,n.Array=18,n.Object=19,n.Key=20,n.Null=21,n.EnumMember=22,n.Struct=23,n.Event=24,n.Operator=25,n.TypeParameter=26}(G||(G={})),function(n){n.Deprecated=1}(J||(J={})),function(n){n.create=function(n,e,t,i,r){var o={name:n,kind:e,location:{uri:i,range:t}};return r&&(o.containerName=r),o}}(Y||(Y={})),function(n){n.create=function(n,e,t,i){return void 0!==i?{name:n,kind:e,location:{uri:t,range:i}}:{name:n,kind:e,location:{uri:t}}}}(Z||(Z={})),function(e){e.create=function(n,e,t,i,r,o){var a={name:n,detail:e,kind:t,range:i,selectionRange:r};return void 0!==o&&(a.children=o),a},e.is=function(e){var t=e;return t&&Tn.string(t.name)&&Tn.number(t.kind)&&n.Range.is(t.range)&&n.Range.is(t.selectionRange)&&(void 0===t.detail||Tn.string(t.detail))&&(void 0===t.deprecated||Tn.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(nn||(nn={})),function(n){n.Empty="",n.QuickFix="quickfix",n.Refactor="refactor",n.RefactorExtract="refactor.extract",n.RefactorInline="refactor.inline",n.RefactorRewrite="refactor.rewrite",n.Source="source",n.SourceOrganizeImports="source.organizeImports",n.SourceFixAll="source.fixAll"}(en||(en={})),function(n){n.Invoked=1,n.Automatic=2}(tn||(tn={})),function(e){e.create=function(n,e,t){var i={diagnostics:n};return null!=e&&(i.only=e),null!=t&&(i.triggerKind=t),i},e.is=function(e){var t=e;return Tn.defined(t)&&Tn.typedArray(t.diagnostics,n.Diagnostic.is)&&(void 0===t.only||Tn.typedArray(t.only,Tn.string))&&(void 0===t.triggerKind||t.triggerKind===tn.Invoked||t.triggerKind===tn.Automatic)}}(rn||(rn={})),function(e){e.create=function(n,e,t){var i={title:n},r=!0;return"string"==typeof e?(r=!1,i.kind=e):A.is(e)?i.command=e:i.edit=e,r&&void 0!==t&&(i.kind=t),i},e.is=function(e){var t=e;return t&&Tn.string(t.title)&&(void 0===t.diagnostics||Tn.typedArray(t.diagnostics,n.Diagnostic.is))&&(void 0===t.kind||Tn.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||A.is(t.command))&&(void 0===t.isPreferred||Tn.boolean(t.isPreferred))&&(void 0===t.edit||_.is(t.edit))}}(on||(on={})),function(e){e.create=function(n,e){var t={range:n};return Tn.defined(e)&&(t.data=e),t},e.is=function(e){var t=e;return Tn.defined(t)&&n.Range.is(t.range)&&(Tn.undefined(t.command)||A.is(t.command))}}(an||(an={})),function(n){n.create=function(n,e){return{tabSize:n,insertSpaces:e}},n.is=function(n){var e=n;return Tn.defined(e)&&Tn.uinteger(e.tabSize)&&Tn.boolean(e.insertSpaces)}}(un||(un={})),function(e){e.create=function(n,e,t){return{range:n,target:e,data:t}},e.is=function(e){var t=e;return Tn.defined(t)&&n.Range.is(t.range)&&(Tn.undefined(t.target)||Tn.string(t.target))}}(cn||(cn={})),function(e){e.create=function(n,e){return{range:n,parent:e}},e.is=function(t){var i=t;return Tn.objectLiteral(i)&&n.Range.is(i.range)&&(void 0===i.parent||e.is(i.parent))}}(sn||(sn={})),function(n){n.namespace="namespace",n.type="type",n.class="class",n.enum="enum",n.interface="interface",n.struct="struct",n.typeParameter="typeParameter",n.parameter="parameter",n.variable="variable",n.property="property",n.enumMember="enumMember",n.event="event",n.function="function",n.method="method",n.macro="macro",n.keyword="keyword",n.modifier="modifier",n.comment="comment",n.string="string",n.number="number",n.regexp="regexp",n.operator="operator",n.decorator="decorator"}(dn||(dn={})),function(n){n.declaration="declaration",n.definition="definition",n.readonly="readonly",n.static="static",n.deprecated="deprecated",n.abstract="abstract",n.async="async",n.modification="modification",n.documentation="documentation",n.defaultLibrary="defaultLibrary"}(fn||(fn={})),function(n){n.is=function(n){var e=n;return Tn.objectLiteral(e)&&(void 0===e.resultId||"string"==typeof e.resultId)&&Array.isArray(e.data)&&(0===e.data.length||"number"==typeof e.data[0])}}(gn||(gn={})),function(e){e.create=function(n,e){return{range:n,text:e}},e.is=function(e){var t=e;return null!=t&&n.Range.is(t.range)&&Tn.string(t.text)}}(ln||(ln={})),function(e){e.create=function(n,e,t){return{range:n,variableName:e,caseSensitiveLookup:t}},e.is=function(e){var t=e;return null!=t&&n.Range.is(t.range)&&Tn.boolean(t.caseSensitiveLookup)&&(Tn.string(t.variableName)||void 0===t.variableName)}}(vn||(vn={})),function(e){e.create=function(n,e){return{range:n,expression:e}},e.is=function(e){var t=e;return null!=t&&n.Range.is(t.range)&&(Tn.string(t.expression)||void 0===t.expression)}}(mn||(mn={})),function(e){e.create=function(n,e){return{frameId:n,stoppedLocation:e}},e.is=function(e){var t=e;return Tn.defined(t)&&n.Range.is(e.stoppedLocation)}}(pn||(pn={})),function(n){n.Type=1,n.Parameter=2,n.is=function(n){return 1===n||2===n}}(bn||(bn={})),function(e){e.create=function(n){return{value:n}},e.is=function(e){var t=e;return Tn.objectLiteral(t)&&(void 0===t.tooltip||Tn.string(t.tooltip)||P.is(t.tooltip))&&(void 0===t.location||n.Location.is(t.location))&&(void 0===t.command||A.is(t.command))}}(yn||(yn={})),function(e){e.create=function(n,e,t){var i={position:n,label:e};return void 0!==t&&(i.kind=t),i},e.is=function(e){var t=e;return Tn.objectLiteral(t)&&c.is(t.position)&&(Tn.string(t.label)||Tn.typedArray(t.label,yn.is))&&(void 0===t.kind||bn.is(t.kind))&&void 0===t.textEdits||Tn.typedArray(t.textEdits,n.TextEdit.is)&&(void 0===t.tooltip||Tn.string(t.tooltip)||P.is(t.tooltip))&&(void 0===t.paddingLeft||Tn.boolean(t.paddingLeft))&&(void 0===t.paddingRight||Tn.boolean(t.paddingRight))}}(hn||(hn={})),function(n){n.createSnippet=function(n){return{kind:"snippet",value:n}}}(xn||(xn={})),function(n){n.create=function(n,e,t,i){return{insertText:n,filterText:e,range:t,command:i}}}(In||(In={})),function(n){n.create=function(n){return{items:n}}}(An||(An={})),function(n){n.Invoked=0,n.Automatic=1}(Ln||(Ln={})),function(n){n.create=function(n,e){return{range:n,text:e}}}(kn||(kn={})),function(n){n.create=function(n,e){return{triggerKind:n,selectedCompletionInfo:e}}}(En||(En={})),function(n){n.is=function(n){var e=n;return Tn.objectLiteral(e)&&o.is(e.uri)&&Tn.string(e.name)}}(Rn||(Rn={})),n.TextDocument=void 0,function(n){function e(n,t){if(n.length<=1)return n;var i=n.length/2|0,r=n.slice(0,i),o=n.slice(i);e(r,t),e(o,t);for(var a=0,u=0,c=0;a<r.length&&u<o.length;){var s=t(r[a],o[u]);n[c++]=s<=0?r[a++]:o[u++]}for(;a<r.length;)n[c++]=r[a++];for(;u<o.length;)n[c++]=o[u++];return n}n.create=function(n,e,t,i){return new wn(n,e,t,i)},n.is=function(n){var e=n;return!!(Tn.defined(e)&&Tn.string(e.uri)&&(Tn.undefined(e.languageId)||Tn.string(e.languageId))&&Tn.uinteger(e.lineCount)&&Tn.func(e.getText)&&Tn.func(e.positionAt)&&Tn.func(e.offsetAt))},n.applyEdits=function(n,t){for(var i=n.getText(),r=e(t,(function(n,e){var t=n.range.start.line-e.range.start.line;return 0===t?n.range.start.character-e.range.start.character:t})),o=i.length,a=r.length-1;a>=0;a--){var u=r[a],c=n.offsetAt(u.range.start),s=n.offsetAt(u.range.end);if(!(s<=o))throw new Error("Overlapping edit");i=i.substring(0,c)+u.newText+i.substring(s,i.length),o=c}return i}}(n.TextDocument||(n.TextDocument={}));var Tn,wn=function(){return n=function n(e,t,i,r){!function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),this._uri=e,this._languageId=t,this._version=i,this._content=r,this._lineOffsets=void 0},(e=[{key:"uri",get:function(){return this._uri}},{key:"languageId",get:function(){return this._languageId}},{key:"version",get:function(){return this._version}},{key:"getText",value:function(n){if(n){var e=this.offsetAt(n.start),t=this.offsetAt(n.end);return this._content.substring(e,t)}return this._content}},{key:"update",value:function(n,e){this._content=n.text,this._version=e,this._lineOffsets=void 0}},{key:"getLineOffsets",value:function(){if(void 0===this._lineOffsets){for(var n=[],e=this._content,t=!0,i=0;i<e.length;i++){t&&(n.push(i),t=!1);var r=e.charAt(i);t="\r"===r||"\n"===r,"\r"===r&&i+1<e.length&&"\n"===e.charAt(i+1)&&i++}t&&e.length>0&&n.push(e.length),this._lineOffsets=n}return this._lineOffsets}},{key:"positionAt",value:function(n){n=Math.max(Math.min(n,this._content.length),0);var e=this.getLineOffsets(),t=0,i=e.length;if(0===i)return c.create(0,n);for(;t<i;){var r=Math.floor((t+i)/2);e[r]>n?i=r:t=r+1}var o=t-1;return c.create(o,n-e[o])}},{key:"offsetAt",value:function(n){var e=this.getLineOffsets();if(n.line>=e.length)return this._content.length;if(n.line<0)return 0;var t=e[n.line],i=n.line+1<e.length?e[n.line+1]:this._content.length;return Math.max(Math.min(t+n.character,i),t)}},{key:"lineCount",get:function(){return this.getLineOffsets().length}}])&&t(n.prototype,e),i&&t(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,e,i}();!function(n){var t=Object.prototype.toString;n.defined=function(n){return void 0!==n},n.undefined=function(n){return void 0===n},n.boolean=function(n){return!0===n||!1===n},n.string=function(n){return"[object String]"===t.call(n)},n.number=function(n){return"[object Number]"===t.call(n)},n.numberRange=function(n,e,i){return"[object Number]"===t.call(n)&&e<=n&&n<=i},n.integer=function(n){return"[object Number]"===t.call(n)&&-2147483648<=n&&n<=2147483647},n.uinteger=function(n){return"[object Number]"===t.call(n)&&0<=n&&n<=2147483647},n.func=function(n){return"[object Function]"===t.call(n)},n.objectLiteral=function(n){return null!==n&&"object"===e(n)},n.typedArray=function(n,e){return Array.isArray(n)&&n.every(e)}}(Tn||(Tn={}))}));
@@ -1,7 +1,7 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 13.0.1(c583448ef85a6c5416f36c2d537eccb626b81aa8)
3
+ * monaco-kusto version: 13.0.2(e6cccc4de83964ccb5eb5b66e79d61333b0dc314)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
7
- define("vs/language/kusto/monaco.contribution",["require","exports","vs/editor/editor.main","./types-edb6ea80","./schema-7f7acd36"],(function(e,t,r,n,o){"use strict";function i(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var a=i(r);function u(e,t){for(var r=t.lineNumber-1,n=e.getModel().getLinesContent(),o=0,i=[],u=0;u<n.length;u++){if(""===n[u].trim()?i.push({commandOrdinal:o++,lineNumber:u}):i.push({commandOrdinal:o,lineNumber:u}),u>r&&o>i[r].commandOrdinal)break}var c=i[r].commandOrdinal,l=i.filter((function(e){return e.commandOrdinal===c})),s=l[0].lineNumber+1,f=l[l.length-1].lineNumber+1,d=n[f-1].length+1;return new a.Range(s,1,f,d)}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function s(e,t,r){return(t=f(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}var d=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"disposables",[]),s(this,"decorations",[]),this.editor=t,this.editor.onDidChangeCursorSelection((function(e){"kusto"===r.editor.getModel().getLanguageId()&&r.highlightCommandUnderCursor(e)}))}return t=e,(r=[{key:"getId",value:function(){return e.ID}},{key:"dispose",value:function(){this.disposables.forEach((function(e){return e.dispose()}))}},{key:"highlightCommandUnderCursor",value:function(t){if(t.selection.isEmpty()){var r=[{range:u(this.editor,t.selection.getStartPosition()),options:e.CURRENT_COMMAND_HIGHLIGHT}];this.decorations=this.editor.deltaDecorations(this.decorations,r)}else this.decorations=this.editor.deltaDecorations(this.decorations,[])}}])&&l(t.prototype,r),n&&l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function y(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,m(n.key),n)}}function h(e,t,r){return t&&y(e.prototype,t),r&&y(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function m(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g(t)?t:t+""}s(d,"ID","editor.contrib.kustoCommandHighlighter"),s(d,"CURRENT_COMMAND_HIGHLIGHT",{className:"selectionHighlight"});var p=h((function e(t){var r,n,o,i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=this,o=!1,(n=m(n="actionAdded"))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,this.editor=t,t.onDidChangeCursorSelection((function(e){"kusto"===i.editor.getModel().getLanguageId()&&(i.actionAdded||(t.addAction({id:"editor.action.kusto.formatCurrentCommand",label:"Format Command Under Cursor",keybindings:[a.KeyMod.chord(a.KeyMod.CtrlCmd|a.KeyCode.KeyK,a.KeyMod.CtrlCmd|a.KeyCode.KeyF)],run:function(e){t.trigger("KustoCommandFormatter","editor.action.formatSelection",null)},contextMenuGroupId:"1_modification"}),i.actionAdded=!0))}))}));function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,k(n.key),n)}}function k(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==v(t)?t:t+""}var w=function(){return e=function e(t){var r,n,o,i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=this,o=!1,(n=k(n="actionRegistered"))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,this.editor=t,this.editor.onDidChangeCursorSelection((function(){var e;"kusto"===(null===(e=i.editor.getModel())||void 0===e?void 0:e.getLanguageId())&&(i.actionRegistered||(i.registerAction(),i.actionRegistered=!0))}))},(t=[{key:"registerAction",value:function(){var e=this;this.editor.addAction({id:"kusto.closeIntelliSense",label:"Close IntelliSense",keybindings:[a.KeyMod.Shift|a.KeyCode.Enter],run:function(t){return function(e){var t=e.getContribution("editor.contrib.suggestController");null==t||t.cancelSuggestWidget()}(e.editor)}})}}])&&b(e.prototype,t),r&&b(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();var T=function(e){return e.light="kusto-light",e.dark="kusto-dark",e}({}),C="#DCDCDC",S="#FAFAD2",P="#D7BA7D",E="#D69D85",O="#DB7093",x="#B22222",L="#FF4500",D="#C71585",j="#9932CC",A="#9400D3",N="#191970",M="#0000FF",F="#004E8C",I="#2B91AF",_="#569CD6",K="#92CAF4",G="#4EC9B0",R="#608B4E",H="#008000",W="#1B1A19",B="#000000",Q={base:"vs",inherit:!0,rules:[{token:"",foreground:B},{token:n.Token.PlainText,foreground:B},{token:n.Token.Comment,foreground:H},{token:n.Token.Punctuation,foreground:B},{token:n.Token.Directive,foreground:A},{token:n.Token.Literal,foreground:B},{token:n.Token.StringLiteral,foreground:x},{token:n.Token.Type,foreground:M},{token:n.Token.Column,foreground:D},{token:n.Token.Table,foreground:j},{token:n.Token.Database,foreground:j},{token:n.Token.Function,foreground:M},{token:n.Token.Parameter,foreground:N},{token:n.Token.Variable,foreground:N},{token:n.Token.Identifier,foreground:B},{token:n.Token.ClientParameter,foreground:I},{token:n.Token.QueryParameter,foreground:I},{token:n.Token.ScalarParameter,foreground:M},{token:n.Token.MathOperator,foreground:B},{token:n.Token.QueryOperator,foreground:L},{token:n.Token.Command,foreground:M},{token:n.Token.Keyword,foreground:M},{token:n.Token.MaterializedView,foreground:j},{token:n.Token.SchemaMember,foreground:B},{token:n.Token.SignatureParameter,foreground:B},{token:n.Token.Option,foreground:B}],colors:{}},U={base:"vs-dark",inherit:!0,rules:[{token:"",foreground:C},{token:n.Token.PlainText,foreground:C},{token:n.Token.Comment,foreground:R},{token:n.Token.Punctuation,foreground:C},{token:n.Token.Directive,foreground:S},{token:n.Token.Literal,foreground:C},{token:n.Token.StringLiteral,foreground:E},{token:n.Token.Type,foreground:_},{token:n.Token.Column,foreground:O},{token:n.Token.Table,foreground:P},{token:n.Token.Database,foreground:P},{token:n.Token.Function,foreground:_},{token:n.Token.Parameter,foreground:K},{token:n.Token.Variable,foreground:K},{token:n.Token.Identifier,foreground:C},{token:n.Token.ClientParameter,foreground:I},{token:n.Token.QueryParameter,foreground:I},{token:n.Token.ScalarParameter,foreground:_},{token:n.Token.MathOperator,foreground:C},{token:n.Token.QueryOperator,foreground:G},{token:n.Token.Command,foreground:_},{token:n.Token.Keyword,foreground:_},{token:n.Token.MaterializedView,foreground:P},{token:n.Token.SchemaMember,foreground:C},{token:n.Token.SignatureParameter,foreground:C},{token:n.Token.Option,foreground:C}],colors:{"editor.background":W,"editorSuggestWidget.selectedBackground":F}},z=[{name:T.light,data:Q},{name:T.dark,data:U}];function V(e,t){var n=t.startLineNumber,o=t.endLineNumber,i=t.endColumn;return new Array((1===i?o-1:o)-n+1).fill(void 0).map((function(t,o){return r.editor.colorizeModelLine(e,n+o)})).join("<br/>")}function q(e){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(e)}function Y(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Y=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),u=new D(n||[]);return o(a,"_invoke",{value:E(e,r,u)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var d="suspendedStart",g="suspendedYield",y="executing",h="completed",m={};function p(){}function v(){}function b(){}var k={};l(k,a,(function(){return this}));var w=Object.getPrototypeOf,T=w&&w(w(j([])));T&&T!==r&&n.call(T,a)&&(k=T);var C=b.prototype=p.prototype=Object.create(k);function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function r(o,i,a,u){var c=f(e[o],e,i);if("throw"!==c.type){var l=c.arg,s=l.value;return s&&"object"==q(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function E(t,r,n){var o=d;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=O(u,n);if(c){if(c===m)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var l=f(t,r,n);if("normal"===l.type){if(o=n.done?h:g,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=h,n.method="throw",n.arg=l.arg)}}}function O(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,O(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(q(t)+" is not iterable")}return v.prototype=b,o(C,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:v,configurable:!0}),v.displayName=l(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},S(P.prototype),l(P.prototype,u,(function(){return this})),t.AsyncIterator=P,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new P(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(C),l(C,c,"Generator"),l(C,a,(function(){return this})),l(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),m}},t}function J(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function X(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){J(i,n,o,a,u,"next",e)}function u(e){J(i,n,o,a,u,"throw",e)}a(void 0)}))}}function Z(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$(n.key),n)}}function $(e){var t=function(e,t){if("object"!=q(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=q(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==q(t)?t:t+""}function ee(){return new Promise((function(e,t){te((function(r){r.getKustoWorker().then(e,t)}))}))}function te(t){return new Promise((function(t,r){e(["./kustoMode"],t,r)})).then(t)}var re=new(function(){return e=function e(t){var r,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=this,n="_onDidChange",o=new a.Emitter,(n=$(n))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,this.setLanguageSettings(t),this._workerMaxIdleTime=0},(t=[{key:"onDidChange",get:function(){return this._onDidChange.event}},{key:"languageSettings",get:function(){return this._languageSettings}},{key:"setLanguageSettings",value:function(e){this._languageSettings=e||Object.create(null),this._onDidChange.fire(this)}},{key:"setMaximumWorkerIdleTime",value:function(e){this._workerMaxIdleTime=e}},{key:"getWorkerMaxIdleTime",value:function(){return this._workerMaxIdleTime}}])&&Z(e.prototype,t),r&&Z(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}())({includeControlCommands:!0,newlineAfterPipe:!0,openSuggestionDialogAfterPreviousSuggestionAccepted:!0,enableHover:!0,formatter:{indentationSize:4,pipeOperatorStyle:"Smart"},syntaxErrorAsMarkDown:{enableSyntaxErrorAsMarkDown:!1},enableQueryWarnings:!1,enableQuerySuggestions:!1,disabledDiagnosticCodes:[],quickFixCodeActions:["Change to","FixAll"],enableQuickFixes:!1,completionOptions:{includeExtendedSyntax:!1}});a.languages.onLanguage("kusto",X(Y().mark((function e(){return Y().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,te((function(e){return e.setupMode(re,a)}));case 2:case"end":return e.stop()}}),e)})))),a.languages.register({id:n.LANGUAGE_ID,extensions:[".csl",".kql"]}),z.forEach((function(e){var t=e.name,r=e.data;return a.editor.defineTheme(t,r)})),a.editor.onDidCreateEditor((function(e){var t;null!==(t=window.MonacoEnvironment)&&void 0!==t&&t.globalAPI&&function(e){Object.getPrototypeOf(e).getCurrentCommandRange=function(e){u(this,e)}}(e),new d(e),function(e){return void 0!==e.addAction}(e)&&(new p(e),new w(e)),function(e){e.onDidChangeCursorSelection((function(t){if(re&&re.languageSettings&&re.languageSettings.openSuggestionDialogAfterPreviousSuggestionAccepted){if(!("snippet"===t.source&&t.reason===a.editor.CursorChangeReason.NotSet)||null!==e.getModel().getWordAtPosition(t.selection.getPosition()))return;t.selection,setTimeout((function(){return e.trigger("monaco-kusto","editor.action.triggerSuggest",{})}),10)}}))}(e)}));var ne={getCslTypeNameFromClrType:o.getCslTypeNameFromClrType,getCallName:o.getCallName,getExpression:o.getExpression,getInputParametersAsCslString:o.getInputParametersAsCslString,getEntityDataTypeFromCslType:o.getEntityDataTypeFromCslType,kustoDefaults:re,getKustoWorker:ee,getRangeHtml:V};a.languages.kusto=ne,t.getCallName=o.getCallName,t.getCslTypeNameFromClrType=o.getCslTypeNameFromClrType,t.getEntityDataTypeFromCslType=o.getEntityDataTypeFromCslType,t.getExpression=o.getExpression,t.getInputParametersAsCslString=o.getInputParametersAsCslString,t.showSchema=o.showSchema,t.getKustoWorker=ee,t.getRangeHtml=V,t.kustoDefaults=re}));
7
+ define("vs/language/kusto/monaco.contribution",["require","exports","vs/editor/editor.main","./types-48ca9ca8","./schema-ba14fa16"],(function(e,t,r,n,o){"use strict";function i(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var a=i(r);function u(e,t){for(var r=t.lineNumber-1,n=e.getModel().getLinesContent(),o=0,i=[],u=0;u<n.length;u++){if(""===n[u].trim()?i.push({commandOrdinal:o++,lineNumber:u}):i.push({commandOrdinal:o,lineNumber:u}),u>r&&o>i[r].commandOrdinal)break}var c=i[r].commandOrdinal,l=i.filter((function(e){return e.commandOrdinal===c})),s=l[0].lineNumber+1,f=l[l.length-1].lineNumber+1,d=n[f-1].length+1;return new a.Range(s,1,f,d)}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f(n.key),n)}}function s(e,t,r){return(t=f(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==c(t)?t:t+""}var d=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,"disposables",[]),s(this,"decorations",[]),this.editor=t,this.editor.onDidChangeCursorSelection((function(e){"kusto"===r.editor.getModel().getLanguageId()&&r.highlightCommandUnderCursor(e)}))}return t=e,(r=[{key:"getId",value:function(){return e.ID}},{key:"dispose",value:function(){this.disposables.forEach((function(e){return e.dispose()}))}},{key:"highlightCommandUnderCursor",value:function(t){if(t.selection.isEmpty()){var r=[{range:u(this.editor,t.selection.getStartPosition()),options:e.CURRENT_COMMAND_HIGHLIGHT}];this.decorations=this.editor.deltaDecorations(this.decorations,r)}else this.decorations=this.editor.deltaDecorations(this.decorations,[])}}])&&l(t.prototype,r),n&&l(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y(n.key),n)}}function m(e,t,r){return t&&h(e.prototype,t),r&&h(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function y(e){var t=function(e,t){if("object"!=g(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=g(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==g(t)?t:t+""}s(d,"ID","editor.contrib.kustoCommandHighlighter"),s(d,"CURRENT_COMMAND_HIGHLIGHT",{className:"selectionHighlight"});var p=m((function e(t){var r,n,o,i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=this,o=!1,(n=y(n="actionAdded"))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,this.editor=t,t.onDidChangeCursorSelection((function(e){"kusto"===i.editor.getModel().getLanguageId()&&(i.actionAdded||(t.addAction({id:"editor.action.kusto.formatCurrentCommand",label:"Format Command Under Cursor",keybindings:[a.KeyMod.chord(a.KeyMod.CtrlCmd|a.KeyCode.KeyK,a.KeyMod.CtrlCmd|a.KeyCode.KeyF)],run:function(e){t.trigger("KustoCommandFormatter","editor.action.formatSelection",null)},contextMenuGroupId:"1_modification"}),i.actionAdded=!0))}))})),k=function(e){return e.light="kusto-light",e.dark="kusto-dark",e}({}),v="#DCDCDC",b="#FAFAD2",T="#D7BA7D",w="#D69D85",C="#DB7093",S="#B22222",P="#FF4500",E="#C71585",x="#9932CC",O="#9400D3",L="#191970",D="#0000FF",j="#004E8C",A="#2B91AF",N="#569CD6",F="#92CAF4",M="#4EC9B0",_="#608B4E",I="#008000",G="#1B1A19",K="#000000",H={base:"vs",inherit:!0,rules:[{token:"",foreground:K},{token:n.Token.PlainText,foreground:K},{token:n.Token.Comment,foreground:I},{token:n.Token.Punctuation,foreground:K},{token:n.Token.Directive,foreground:O},{token:n.Token.Literal,foreground:K},{token:n.Token.StringLiteral,foreground:S},{token:n.Token.Type,foreground:D},{token:n.Token.Column,foreground:E},{token:n.Token.Table,foreground:x},{token:n.Token.Database,foreground:x},{token:n.Token.Function,foreground:D},{token:n.Token.Parameter,foreground:L},{token:n.Token.Variable,foreground:L},{token:n.Token.Identifier,foreground:K},{token:n.Token.ClientParameter,foreground:A},{token:n.Token.QueryParameter,foreground:A},{token:n.Token.ScalarParameter,foreground:D},{token:n.Token.MathOperator,foreground:K},{token:n.Token.QueryOperator,foreground:P},{token:n.Token.Command,foreground:D},{token:n.Token.Keyword,foreground:D},{token:n.Token.MaterializedView,foreground:x},{token:n.Token.SchemaMember,foreground:K},{token:n.Token.SignatureParameter,foreground:K},{token:n.Token.Option,foreground:K}],colors:{}},R={base:"vs-dark",inherit:!0,rules:[{token:"",foreground:v},{token:n.Token.PlainText,foreground:v},{token:n.Token.Comment,foreground:_},{token:n.Token.Punctuation,foreground:v},{token:n.Token.Directive,foreground:b},{token:n.Token.Literal,foreground:v},{token:n.Token.StringLiteral,foreground:w},{token:n.Token.Type,foreground:N},{token:n.Token.Column,foreground:C},{token:n.Token.Table,foreground:T},{token:n.Token.Database,foreground:T},{token:n.Token.Function,foreground:N},{token:n.Token.Parameter,foreground:F},{token:n.Token.Variable,foreground:F},{token:n.Token.Identifier,foreground:v},{token:n.Token.ClientParameter,foreground:A},{token:n.Token.QueryParameter,foreground:A},{token:n.Token.ScalarParameter,foreground:N},{token:n.Token.MathOperator,foreground:v},{token:n.Token.QueryOperator,foreground:M},{token:n.Token.Command,foreground:N},{token:n.Token.Keyword,foreground:N},{token:n.Token.MaterializedView,foreground:T},{token:n.Token.SchemaMember,foreground:v},{token:n.Token.SignatureParameter,foreground:v},{token:n.Token.Option,foreground:v}],colors:{"editor.background":G,"editorSuggestWidget.selectedBackground":j}},B=[{name:k.light,data:H},{name:k.dark,data:R}];function W(e,t){var n=t.startLineNumber,o=t.endLineNumber,i=t.endColumn;return new Array((1===i?o-1:o)-n+1).fill(void 0).map((function(t,o){return r.editor.colorizeModelLine(e,n+o)})).join("<br/>")}function Q(e){return Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Q(e)}function U(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */U=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),u=new D(n||[]);return o(a,"_invoke",{value:E(e,r,u)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var d="suspendedStart",g="suspendedYield",h="executing",m="completed",y={};function p(){}function k(){}function v(){}var b={};l(b,a,(function(){return this}));var T=Object.getPrototypeOf,w=T&&T(T(j([])));w&&w!==r&&n.call(w,a)&&(b=w);var C=v.prototype=p.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function r(o,i,a,u){var c=f(e[o],e,i);if("throw"!==c.type){var l=c.arg,s=l.value;return s&&"object"==Q(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(s).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function E(t,r,n){var o=d;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=x(u,n);if(c){if(c===y)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var l=f(t,r,n);if("normal"===l.type){if(o=n.done?m:g,l.arg===y)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function x(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(Q(t)+" is not iterable")}return k.prototype=v,o(C,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:k,configurable:!0}),k.displayName=l(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===k||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},S(P.prototype),l(P.prototype,u,(function(){return this})),t.AsyncIterator=P,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new P(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(C),l(C,c,"Generator"),l(C,a,(function(){return this})),l(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=j,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(L),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return u.type="throw",u.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),L(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;L(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:j(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function z(e,t,r,n,o,i,a){try{var u=e[i](a),c=u.value}catch(e){return void r(e)}u.done?t(c):Promise.resolve(c).then(n,o)}function V(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){z(i,n,o,a,u,"next",e)}function u(e){z(i,n,o,a,u,"throw",e)}a(void 0)}))}}function q(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Y(n.key),n)}}function Y(e){var t=function(e,t){if("object"!=Q(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Q(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Q(t)?t:t+""}function J(){return new Promise((function(e,t){X((function(r){r.getKustoWorker().then(e,t)}))}))}function X(t){return new Promise((function(t,r){e(["./kustoMode"],t,r)})).then(t)}var Z=new(function(){return e=function e(t){var r,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=this,n="_onDidChange",o=new a.Emitter,(n=Y(n))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,this.setLanguageSettings(t),this._workerMaxIdleTime=0},(t=[{key:"onDidChange",get:function(){return this._onDidChange.event}},{key:"languageSettings",get:function(){return this._languageSettings}},{key:"setLanguageSettings",value:function(e){this._languageSettings=e||Object.create(null),this._onDidChange.fire(this)}},{key:"setMaximumWorkerIdleTime",value:function(e){this._workerMaxIdleTime=e}},{key:"getWorkerMaxIdleTime",value:function(){return this._workerMaxIdleTime}}])&&q(e.prototype,t),r&&q(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}())({includeControlCommands:!0,newlineAfterPipe:!0,openSuggestionDialogAfterPreviousSuggestionAccepted:!0,enableHover:!0,formatter:{indentationSize:4,pipeOperatorStyle:"Smart"},syntaxErrorAsMarkDown:{enableSyntaxErrorAsMarkDown:!1},enableQueryWarnings:!1,enableQuerySuggestions:!1,disabledDiagnosticCodes:[],quickFixCodeActions:["Change to","FixAll"],enableQuickFixes:!1,completionOptions:{includeExtendedSyntax:!1}});a.languages.onLanguage("kusto",V(U().mark((function e(){return U().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,X((function(e){return e.setupMode(Z,a)}));case 2:case"end":return e.stop()}}),e)})))),a.languages.register({id:n.LANGUAGE_ID,extensions:[".csl",".kql"]}),B.forEach((function(e){var t=e.name,r=e.data;return a.editor.defineTheme(t,r)})),a.editor.onDidCreateEditor((function(e){var t;null!==(t=window.MonacoEnvironment)&&void 0!==t&&t.globalAPI&&function(e){Object.getPrototypeOf(e).getCurrentCommandRange=function(e){u(this,e)}}(e),new d(e),function(e){return void 0!==e.addAction}(e)&&new p(e),function(e){e.onDidChangeCursorSelection((function(t){if(Z&&Z.languageSettings&&Z.languageSettings.openSuggestionDialogAfterPreviousSuggestionAccepted){if(!("snippet"===t.source&&t.reason===a.editor.CursorChangeReason.NotSet)||null!==e.getModel().getWordAtPosition(t.selection.getPosition()))return;t.selection,setTimeout((function(){return e.trigger("monaco-kusto","editor.action.triggerSuggest",{})}),10)}}))}(e)}));var $={getCslTypeNameFromClrType:o.getCslTypeNameFromClrType,getCallName:o.getCallName,getExpression:o.getExpression,getInputParametersAsCslString:o.getInputParametersAsCslString,getEntityDataTypeFromCslType:o.getEntityDataTypeFromCslType,kustoDefaults:Z,getKustoWorker:J,getRangeHtml:W};a.languages.kusto=$,t.getCallName=o.getCallName,t.getCslTypeNameFromClrType=o.getCslTypeNameFromClrType,t.getEntityDataTypeFromCslType=o.getEntityDataTypeFromCslType,t.getExpression=o.getExpression,t.getInputParametersAsCslString=o.getInputParametersAsCslString,t.showSchema=o.showSchema,t.getKustoWorker=J,t.getRangeHtml=W,t.kustoDefaults=Z}));
@@ -1,7 +1,7 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 13.0.1(c583448ef85a6c5416f36c2d537eccb626b81aa8)
3
+ * monaco-kusto version: 13.0.2(e6cccc4de83964ccb5eb5b66e79d61333b0dc314)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
7
- define("vs/language/kusto/schema-7f7acd36",["exports"],(function(t){"use strict";var n={"System.SByte":"bool","System.Byte":"uint8","System.Int16":"int16","System.UInt16":"uint16","System.Int32":"int","System.UInt32":"uint","System.Int64":"long","System.UInt64":"ulong","System.String":"string","System.Single":"float","System.Double":"real","System.DateTime":"datetime","System.TimeSpan":"timespan","System.Guid":"guid","System.Boolean":"bool","Newtonsoft.Json.Linq.JArray":"dynamic","Newtonsoft.Json.Linq.JObject":"dynamic","Newtonsoft.Json.Linq.JToken":"dynamic","System.Object":"dynamic","System.Data.SqlTypes.SqlDecimal":"decimal"},e=function(t){return n[t]||t},a={object:"Object",bool:"Boolean",uint8:"Byte",int16:"Int16",uint16:"UInt16",int:"Int32",uint:"UInt32",long:"Int64",ulong:"UInt64",float:"Single",real:"Double",decimal:"Decimal",datetime:"DateTime",string:"String",dynamic:"Dynamic",timespan:"TimeSpan"},o=function(t){return"(".concat(t.map((function(t){return i(t)})).join(","),")")},i=function(t){if(t.columns&&t.columns.length>0){var n=t.columns.map((function(t){return"".concat(t.name,":").concat(t.cslType||e(t.type))})).join(",");return"".concat(t.name,":").concat(""===n?"*":n)}return"".concat(t.name,":").concat(t.cslType||e(t.type))};t.getCallName=function(t){return"".concat(t.name,"(").concat(t.inputParameters.map((function(t){return"{".concat(t.name,"}")})).join(","),")")},t.getCslTypeNameFromClrType=e,t.getEntityDataTypeFromCslType=function(t){return a[t]||t},t.getExpression=function(t){return"let ".concat(t.name," = ").concat(o(t.inputParameters)," ").concat(t.body)},t.getInputParametersAsCslString=o,t.showSchema=undefined}));
7
+ define("vs/language/kusto/schema-ba14fa16",["exports"],(function(t){"use strict";var n={"System.SByte":"bool","System.Byte":"uint8","System.Int16":"int16","System.UInt16":"uint16","System.Int32":"int","System.UInt32":"uint","System.Int64":"long","System.UInt64":"ulong","System.String":"string","System.Single":"float","System.Double":"real","System.DateTime":"datetime","System.TimeSpan":"timespan","System.Guid":"guid","System.Boolean":"bool","Newtonsoft.Json.Linq.JArray":"dynamic","Newtonsoft.Json.Linq.JObject":"dynamic","Newtonsoft.Json.Linq.JToken":"dynamic","System.Object":"dynamic","System.Data.SqlTypes.SqlDecimal":"decimal"},e=function(t){return n[t]||t},a={object:"Object",bool:"Boolean",uint8:"Byte",int16:"Int16",uint16:"UInt16",int:"Int32",uint:"UInt32",long:"Int64",ulong:"UInt64",float:"Single",real:"Double",decimal:"Decimal",datetime:"DateTime",string:"String",dynamic:"Dynamic",timespan:"TimeSpan"},o=function(t){return"(".concat(t.map((function(t){return i(t)})).join(","),")")},i=function(t){if(t.columns&&t.columns.length>0){var n=t.columns.map((function(t){return"".concat(t.name,":").concat(t.cslType||e(t.type))})).join(",");return"".concat(t.name,":").concat(""===n?"*":n)}return"".concat(t.name,":").concat(t.cslType||e(t.type))};t.getCallName=function(t){return"".concat(t.name,"(").concat(t.inputParameters.map((function(t){return"{".concat(t.name,"}")})).join(","),")")},t.getCslTypeNameFromClrType=e,t.getEntityDataTypeFromCslType=function(t){return a[t]||t},t.getExpression=function(t){return"let ".concat(t.name," = ").concat(o(t.inputParameters)," ").concat(t.body)},t.getInputParametersAsCslString=o,t.showSchema=undefined}));
@@ -1,7 +1,7 @@
1
1
  /*!-----------------------------------------------------------------------------
2
2
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * monaco-kusto version: 13.0.1(c583448ef85a6c5416f36c2d537eccb626b81aa8)
3
+ * monaco-kusto version: 13.0.2(e6cccc4de83964ccb5eb5b66e79d61333b0dc314)
4
4
  * Released under the MIT license
5
5
  * https://https://github.com/Azure/monaco-kusto/blob/master/README.md
6
6
  *-----------------------------------------------------------------------------*/
7
- define("vs/language/kusto/types-edb6ea80",["exports"],(function(e){"use strict";var a=function(e){return e.PlainText="plainText",e.Comment="comment",e.Punctuation="punctuation",e.Directive="directive",e.Literal="literal",e.StringLiteral="stringLiteral",e.Type="type",e.Column="column",e.Table="table",e.Database="database",e.Function="function",e.Parameter="parameter",e.Variable="variable",e.Identifier="identifier",e.ClientParameter="clientParameter",e.QueryParameter="queryParameter",e.ScalarParameter="scalarParameter",e.MathOperator="mathOperator",e.QueryOperator="queryOperator",e.Command="command",e.Keyword="keyword",e.MaterializedView="materializedView",e.SchemaMember="schemaMember",e.SignatureParameter="signatureParameter",e.Option="option",e}({}),r=[a.PlainText,a.Comment,a.Punctuation,a.Directive,a.Literal,a.StringLiteral,a.Type,a.Column,a.Table,a.Database,a.Function,a.Parameter,a.Variable,a.Identifier,a.ClientParameter,a.QueryParameter,a.ScalarParameter,a.MathOperator,a.QueryOperator,a.Command,a.Keyword,a.MaterializedView,a.SchemaMember,a.SignatureParameter,a.Option];e.LANGUAGE_ID="kusto",e.Token=a,e.tokenTypes=r}));
7
+ define("vs/language/kusto/types-48ca9ca8",["exports"],(function(e){"use strict";var a=function(e){return e.PlainText="plainText",e.Comment="comment",e.Punctuation="punctuation",e.Directive="directive",e.Literal="literal",e.StringLiteral="stringLiteral",e.Type="type",e.Column="column",e.Table="table",e.Database="database",e.Function="function",e.Parameter="parameter",e.Variable="variable",e.Identifier="identifier",e.ClientParameter="clientParameter",e.QueryParameter="queryParameter",e.ScalarParameter="scalarParameter",e.MathOperator="mathOperator",e.QueryOperator="queryOperator",e.Command="command",e.Keyword="keyword",e.MaterializedView="materializedView",e.SchemaMember="schemaMember",e.SignatureParameter="signatureParameter",e.Option="option",e}({}),r=[a.PlainText,a.Comment,a.Punctuation,a.Directive,a.Literal,a.StringLiteral,a.Type,a.Column,a.Table,a.Database,a.Function,a.Parameter,a.Variable,a.Identifier,a.ClientParameter,a.QueryParameter,a.ScalarParameter,a.MathOperator,a.QueryOperator,a.Command,a.Keyword,a.MaterializedView,a.SchemaMember,a.SignatureParameter,a.Option];e.LANGUAGE_ID="kusto",e.Token=a,e.tokenTypes=r}));
@@ -1,17 +0,0 @@
1
- import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
2
- /**
3
- * Registers a Kusto-specific action to close the IntelliSense suggestions popup.
4
- *
5
- * Note:
6
- * We register the action on the first cursor movement, not on editor creation,
7
- * because Monaco fires 'onDidCreateEditor' before the keybinding service is fully initialized.
8
- * Waiting for a cursor event guarantees that the editor is fully ready
9
- * and allows safe registration of actions with keybindings.
10
- */
11
- export default class KustoIntelliSenseCloser {
12
- private editor;
13
- private actionRegistered;
14
- constructor(editor: monaco.editor.IStandaloneCodeEditor);
15
- private registerAction;
16
- }
17
- export declare function closeIntelliSense(editor: monaco.editor.IStandaloneCodeEditor): void;
@@ -1,42 +0,0 @@
1
- import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
2
- /**
3
- * Registers a Kusto-specific action to close the IntelliSense suggestions popup.
4
- *
5
- * Note:
6
- * We register the action on the first cursor movement, not on editor creation,
7
- * because Monaco fires 'onDidCreateEditor' before the keybinding service is fully initialized.
8
- * Waiting for a cursor event guarantees that the editor is fully ready
9
- * and allows safe registration of actions with keybindings.
10
- */
11
- var KustoIntelliSenseCloser = /** @class */ (function () {
12
- function KustoIntelliSenseCloser(editor) {
13
- var _this = this;
14
- this.editor = editor;
15
- this.actionRegistered = false;
16
- this.editor.onDidChangeCursorSelection(function () {
17
- var _a;
18
- if (((_a = _this.editor.getModel()) === null || _a === void 0 ? void 0 : _a.getLanguageId()) !== 'kusto') {
19
- return;
20
- }
21
- if (!_this.actionRegistered) {
22
- _this.registerAction();
23
- _this.actionRegistered = true;
24
- }
25
- });
26
- }
27
- KustoIntelliSenseCloser.prototype.registerAction = function () {
28
- var _this = this;
29
- this.editor.addAction({
30
- id: 'kusto.closeIntelliSense',
31
- label: 'Close IntelliSense',
32
- keybindings: [monaco.KeyMod.Shift | monaco.KeyCode.Enter],
33
- run: function (editor) { return closeIntelliSense(_this.editor); },
34
- });
35
- };
36
- return KustoIntelliSenseCloser;
37
- }());
38
- export default KustoIntelliSenseCloser;
39
- export function closeIntelliSense(editor) {
40
- var controller = editor.getContribution('editor.contrib.suggestController');
41
- controller === null || controller === void 0 ? void 0 : controller.cancelSuggestWidget();
42
- }