@ws-ui/code-editor 0.3.12 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/demo/common.d.ts +6 -0
- package/dist/editor/index.d.ts +9 -1
- package/dist/editor/providers/CodeEditorProvider.d.ts +1 -1
- package/dist/index.cjs.js +19 -19
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +689 -682
- package/dist/index.es.js.map +1 -1
- package/dist/package.json +100 -0
- package/dist/style.css +1 -1
- package/package.json +11 -17
- package/README.md +0 -27
- package/dist/editor/loader/monaco-workers.d.ts +0 -1
- package/dist/main.d.ts +0 -1
- /package/dist/{studio/assets → assets}/css.worker.bundle.js +0 -0
- /package/dist/{studio/assets → assets}/editor.worker.bundle.js +0 -0
- /package/dist/{studio/assets → assets}/html.worker.bundle.js +0 -0
- /package/dist/{studio/assets → assets}/json.worker.bundle.js +0 -0
- /package/dist/{studio/assets → assets}/textmate.worker.bundle.js +0 -0
- /package/dist/{studio/assets → assets}/ts.worker.bundle.js +0 -0
package/dist/index.es.js
CHANGED
|
@@ -1,26 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import Ee, { initUserConfiguration as Ke } from "@codingame/monaco-vscode-configuration-service-override";
|
|
11
|
-
import Be from "@codingame/monaco-vscode-languages-service-override";
|
|
12
|
-
import Te from "@codingame/monaco-vscode-textmate-service-override";
|
|
1
|
+
import { jsxs as P, jsx as k, Fragment as Se } from "react/jsx-runtime";
|
|
2
|
+
import D, { useEffect as V, createContext as le, useState as _, useRef as oe, useContext as ae, memo as ye } from "react";
|
|
3
|
+
import { loader as Ne, useMonaco as Re, Editor as we } from "@monaco-editor/react";
|
|
4
|
+
import { lspSubject as xe, LspActions as E, hasAttributesString as ge, FileFolderType as ie, SourceCodeDescriptor as ke, HTTP_HANDLERS_PATH as Le } from "@ws-ui/shared";
|
|
5
|
+
import { MonacoLanguageClient as We } from "monaco-languageclient";
|
|
6
|
+
import { mergeServices as Fe, initServices as Ze } from "monaco-languageclient/vscode/services";
|
|
7
|
+
import je, { initUserConfiguration as Xe } from "@codingame/monaco-vscode-configuration-service-override";
|
|
8
|
+
import Ee from "@codingame/monaco-vscode-languages-service-override";
|
|
9
|
+
import Ke from "@codingame/monaco-vscode-textmate-service-override";
|
|
13
10
|
import "@codingame/monaco-vscode-theme-defaults-default-extension";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import * as
|
|
17
|
-
import { Selection as
|
|
18
|
-
import { Logger as
|
|
19
|
-
import {
|
|
20
|
-
import { WebSocketMessageReader as
|
|
21
|
-
import {
|
|
22
|
-
import { StandaloneServices as
|
|
23
|
-
import { KeybindingsRegistry as
|
|
11
|
+
import Be from "@codingame/monaco-vscode-editor-service-override";
|
|
12
|
+
import Te from "@codingame/monaco-vscode-theme-service-override";
|
|
13
|
+
import * as l from "monaco-editor";
|
|
14
|
+
import { Selection as Oe, KeyMod as J, KeyCode as M, editor as ce, Range as De, Uri as Ge, CancellationTokenSource as Je } from "monaco-editor";
|
|
15
|
+
import { Logger as Me } from "monaco-languageclient/tools";
|
|
16
|
+
import { CloseAction as Pe, ErrorAction as Ve } from "vscode-languageclient";
|
|
17
|
+
import { WebSocketMessageReader as Ye, WebSocketMessageWriter as He, toSocket as ze } from "vscode-ws-jsonrpc";
|
|
18
|
+
import { TextDocumentSaveReason as $e, DocumentDiagnosticRequest as _e, WillSaveTextDocumentNotification as Ue, DidSaveTextDocumentNotification as qe, WillCreateFilesRequest as Qe, WillRenameFilesRequest as et, WillDeleteFilesRequest as tt, DidCreateFilesNotification as nt, DidRenameFilesNotification as it, DidDeleteFilesNotification as ot, SemanticTokensRegistrationType as rt } from "vscode-languageserver-protocol";
|
|
19
|
+
import { StandaloneServices as st, ICodeEditorService as lt } from "vscode/services";
|
|
20
|
+
import { KeybindingsRegistry as te } from "vscode/monaco";
|
|
24
21
|
import "@codingame/monaco-vscode-standalone-languages";
|
|
25
22
|
import "@codingame/monaco-vscode-standalone-html-language-features";
|
|
26
23
|
import "@codingame/monaco-vscode-standalone-css-language-features";
|
|
@@ -30,14 +27,14 @@ import "@codingame/monaco-vscode-css-default-extension";
|
|
|
30
27
|
import "@codingame/monaco-vscode-json-default-extension";
|
|
31
28
|
import "@codingame/monaco-vscode-html-default-extension";
|
|
32
29
|
import "@codingame/monaco-vscode-javascript-default-extension";
|
|
33
|
-
import { registerExtension as
|
|
34
|
-
const
|
|
30
|
+
import { registerExtension as at } from "vscode/extensions";
|
|
31
|
+
const gt = () => je(), ct = () => Be(
|
|
35
32
|
() => Promise.resolve(void 0)
|
|
36
|
-
),
|
|
37
|
-
const
|
|
33
|
+
), ut = () => {
|
|
34
|
+
const t = Te(), e = t.themeService.ctor.prototype;
|
|
38
35
|
return e.defineTheme = () => {
|
|
39
|
-
},
|
|
40
|
-
},
|
|
36
|
+
}, t;
|
|
37
|
+
}, dt = `{
|
|
41
38
|
"workbench.colorTheme": "Default Dark+",
|
|
42
39
|
"workbench.iconTheme": "vs-seti",
|
|
43
40
|
"editor.autoClosingBrackets": "languageDefined",
|
|
@@ -122,31 +119,31 @@ const ut = () => Ee(), dt = () => Oe(
|
|
|
122
119
|
}
|
|
123
120
|
}
|
|
124
121
|
}
|
|
125
|
-
`,
|
|
122
|
+
`, It = () => Xe(dt), Ct = async (t) => {
|
|
126
123
|
var o;
|
|
127
|
-
const e =
|
|
128
|
-
e.debugLogging = ((o =
|
|
129
|
-
const
|
|
130
|
-
if (
|
|
124
|
+
const e = t.serviceConfig ?? {};
|
|
125
|
+
e.debugLogging = ((o = t.logger) == null ? void 0 : o.isEnabled()) === !0 && (e.debugLogging === !0 || t.logger.isDebugEnabled() === !0), await It(), e.userServices = e.userServices ?? {};
|
|
126
|
+
const n = e.userServices.configurationService ?? void 0, i = e.workspaceConfig ?? void 0;
|
|
127
|
+
if (n === void 0) {
|
|
131
128
|
if (i)
|
|
132
129
|
throw new Error(
|
|
133
130
|
"You provided a workspaceConfig without using the configurationServiceOverride"
|
|
134
131
|
);
|
|
135
|
-
const
|
|
132
|
+
const r = {
|
|
136
133
|
// @see https://github.com/CodinGame/monaco-vscode-api#monaco-standalone-services
|
|
134
|
+
...gt(),
|
|
137
135
|
...ut(),
|
|
138
|
-
...
|
|
139
|
-
...
|
|
140
|
-
...
|
|
141
|
-
...dt()
|
|
136
|
+
...Ke(),
|
|
137
|
+
...Ee(),
|
|
138
|
+
...ct()
|
|
142
139
|
};
|
|
143
|
-
|
|
140
|
+
Fe(r, e.userServices);
|
|
144
141
|
}
|
|
145
142
|
return i || (e.workspaceConfig = {
|
|
146
143
|
workspaceProvider: {
|
|
147
144
|
trusted: !0,
|
|
148
145
|
workspace: {
|
|
149
|
-
workspaceUri:
|
|
146
|
+
workspaceUri: l.Uri.file("/workspace")
|
|
150
147
|
},
|
|
151
148
|
async open() {
|
|
152
149
|
return !1;
|
|
@@ -154,101 +151,97 @@ const ut = () => Ee(), dt = () => Oe(
|
|
|
154
151
|
}
|
|
155
152
|
}), e;
|
|
156
153
|
};
|
|
157
|
-
class
|
|
158
|
-
constructor(
|
|
159
|
-
super(
|
|
160
|
-
F(this, "onMessage");
|
|
161
|
-
this.onMessage = i;
|
|
154
|
+
class mt extends Ye {
|
|
155
|
+
constructor(e, n) {
|
|
156
|
+
super(e), this.onMessage = n;
|
|
162
157
|
}
|
|
163
|
-
readMessage(
|
|
158
|
+
readMessage(e) {
|
|
164
159
|
this.onMessage && this.onMessage();
|
|
165
|
-
const [,
|
|
160
|
+
const [, n] = e.split(`\r
|
|
166
161
|
\r
|
|
167
162
|
`);
|
|
168
163
|
if (this.state === "initial")
|
|
169
|
-
this.events.splice(0, 0, { message:
|
|
164
|
+
this.events.splice(0, 0, { message: n });
|
|
170
165
|
else if (this.state === "listening") {
|
|
171
|
-
const
|
|
172
|
-
this.callback(
|
|
166
|
+
const i = JSON.parse(n);
|
|
167
|
+
this.callback(i);
|
|
173
168
|
}
|
|
174
169
|
}
|
|
175
170
|
}
|
|
176
|
-
class
|
|
177
|
-
constructor(
|
|
178
|
-
super(
|
|
179
|
-
F(this, "onSend");
|
|
180
|
-
this.onSend = i;
|
|
171
|
+
class ft extends He {
|
|
172
|
+
constructor(e, n) {
|
|
173
|
+
super(e), this.onSend = n;
|
|
181
174
|
}
|
|
182
|
-
async write(
|
|
175
|
+
async write(e) {
|
|
183
176
|
try {
|
|
184
|
-
const
|
|
185
|
-
this.socket.send(
|
|
186
|
-
} catch (
|
|
187
|
-
this.errorCount++, this.fireError(
|
|
177
|
+
const n = JSON.stringify(e);
|
|
178
|
+
this.socket.send(n), this.onSend && this.onSend();
|
|
179
|
+
} catch (n) {
|
|
180
|
+
this.errorCount++, this.fireError(n, e, this.errorCount);
|
|
188
181
|
}
|
|
189
182
|
}
|
|
190
183
|
}
|
|
191
|
-
function j(
|
|
192
|
-
const
|
|
193
|
-
return e ? `file://${
|
|
184
|
+
function j(t, e = !0) {
|
|
185
|
+
const n = `/PACKAGE/Project/Sources/${t}`;
|
|
186
|
+
return e ? `file://${n}` : n;
|
|
194
187
|
}
|
|
195
|
-
function
|
|
196
|
-
setTimeout(
|
|
188
|
+
function ue(t, e = 0) {
|
|
189
|
+
setTimeout(t, e);
|
|
197
190
|
}
|
|
198
|
-
function
|
|
199
|
-
const
|
|
191
|
+
function pt(t, e) {
|
|
192
|
+
const n = new Oe(
|
|
200
193
|
e.startLineNumber,
|
|
201
194
|
e.startColumn,
|
|
202
195
|
e.endLineNumber || e.startLineNumber,
|
|
203
196
|
e.endColumn || e.startColumn
|
|
204
197
|
);
|
|
205
|
-
|
|
206
|
-
|
|
198
|
+
ue(() => {
|
|
199
|
+
t.setSelection(n), t.revealRangeInCenter(n), t.focus();
|
|
207
200
|
});
|
|
208
201
|
}
|
|
209
|
-
function
|
|
210
|
-
|
|
211
|
-
|
|
202
|
+
function At(t, e, n = 0) {
|
|
203
|
+
n > 0 && (e = n + e), ue(() => {
|
|
204
|
+
t.setPosition({ lineNumber: e, column: 1 }), t.revealLineInCenter(e), t.focus();
|
|
212
205
|
});
|
|
213
206
|
}
|
|
214
|
-
function wn(
|
|
215
|
-
const o =
|
|
207
|
+
function wn(t, e, n) {
|
|
208
|
+
const o = t.getModel();
|
|
216
209
|
if (o && e) {
|
|
217
|
-
const
|
|
218
|
-
for (let
|
|
219
|
-
const
|
|
220
|
-
if (new RegExp(`(?:Function|function) ${
|
|
221
|
-
return
|
|
210
|
+
const r = o.getLineCount();
|
|
211
|
+
for (let s = 1; s <= r; s++) {
|
|
212
|
+
const m = o.getLineContent(s);
|
|
213
|
+
if (new RegExp(`(?:Function|function) ${n}`).test(m))
|
|
214
|
+
return s;
|
|
222
215
|
}
|
|
223
216
|
}
|
|
224
217
|
return 0;
|
|
225
218
|
}
|
|
226
|
-
const
|
|
227
|
-
provideCompletionItems: async (
|
|
228
|
-
const
|
|
219
|
+
const bt = {
|
|
220
|
+
provideCompletionItems: async (t, e) => {
|
|
221
|
+
const n = t.getWordUntilPosition(e);
|
|
229
222
|
return {
|
|
230
223
|
suggestions: [
|
|
231
224
|
{
|
|
232
225
|
label: "var",
|
|
233
|
-
kind:
|
|
234
|
-
range: new
|
|
226
|
+
kind: l.languages.CompletionItemKind.Snippet,
|
|
227
|
+
range: new l.Range(
|
|
235
228
|
e.lineNumber,
|
|
236
|
-
|
|
229
|
+
n.startColumn,
|
|
237
230
|
e.lineNumber,
|
|
238
|
-
|
|
231
|
+
n.endColumn
|
|
239
232
|
),
|
|
240
233
|
insertText: ["var ${1:var_name} : ${2:var_type}"].join(`
|
|
241
234
|
`),
|
|
242
|
-
insertTextRules:
|
|
235
|
+
insertTextRules: l.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
243
236
|
},
|
|
244
237
|
{
|
|
245
238
|
label: "While",
|
|
246
|
-
kind:
|
|
247
|
-
range: new
|
|
239
|
+
kind: l.languages.CompletionItemKind.Snippet,
|
|
240
|
+
range: new l.Range(
|
|
248
241
|
e.lineNumber,
|
|
249
|
-
|
|
242
|
+
n.startColumn,
|
|
250
243
|
e.lineNumber,
|
|
251
|
-
|
|
244
|
+
n.endColumn
|
|
252
245
|
),
|
|
253
246
|
insertText: [
|
|
254
247
|
"While(${1:expression})",
|
|
@@ -256,16 +249,16 @@ const vt = {
|
|
|
256
249
|
"End while"
|
|
257
250
|
].join(`
|
|
258
251
|
`),
|
|
259
|
-
insertTextRules:
|
|
252
|
+
insertTextRules: l.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
260
253
|
},
|
|
261
254
|
{
|
|
262
255
|
label: "Case of",
|
|
263
|
-
kind:
|
|
264
|
-
range: new
|
|
256
|
+
kind: l.languages.CompletionItemKind.Snippet,
|
|
257
|
+
range: new l.Range(
|
|
265
258
|
e.lineNumber,
|
|
266
|
-
|
|
259
|
+
n.startColumn,
|
|
267
260
|
e.lineNumber,
|
|
268
|
-
|
|
261
|
+
n.endColumn
|
|
269
262
|
),
|
|
270
263
|
insertText: [
|
|
271
264
|
"Case of",
|
|
@@ -274,44 +267,44 @@ const vt = {
|
|
|
274
267
|
"End case"
|
|
275
268
|
].join(`
|
|
276
269
|
`),
|
|
277
|
-
insertTextRules:
|
|
270
|
+
insertTextRules: l.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
278
271
|
},
|
|
279
272
|
{
|
|
280
273
|
label: "Else",
|
|
281
|
-
kind:
|
|
282
|
-
range: new
|
|
274
|
+
kind: l.languages.CompletionItemKind.Snippet,
|
|
275
|
+
range: new l.Range(
|
|
283
276
|
e.lineNumber,
|
|
284
|
-
|
|
277
|
+
n.startColumn,
|
|
285
278
|
e.lineNumber,
|
|
286
|
-
|
|
279
|
+
n.endColumn
|
|
287
280
|
),
|
|
288
281
|
insertText: ["Else", " "].join(`
|
|
289
282
|
`),
|
|
290
|
-
insertTextRules:
|
|
283
|
+
insertTextRules: l.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
291
284
|
},
|
|
292
285
|
{
|
|
293
286
|
label: "If",
|
|
294
|
-
kind:
|
|
295
|
-
range: new
|
|
287
|
+
kind: l.languages.CompletionItemKind.Snippet,
|
|
288
|
+
range: new l.Range(
|
|
296
289
|
e.lineNumber,
|
|
297
|
-
|
|
290
|
+
n.startColumn,
|
|
298
291
|
e.lineNumber,
|
|
299
|
-
|
|
292
|
+
n.endColumn
|
|
300
293
|
),
|
|
301
294
|
insertText: ["If (${1:expression})", " ${5:body}", "End if"].join(
|
|
302
295
|
`
|
|
303
296
|
`
|
|
304
297
|
),
|
|
305
|
-
insertTextRules:
|
|
298
|
+
insertTextRules: l.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
306
299
|
},
|
|
307
300
|
{
|
|
308
301
|
label: "For",
|
|
309
|
-
kind:
|
|
310
|
-
range: new
|
|
302
|
+
kind: l.languages.CompletionItemKind.Snippet,
|
|
303
|
+
range: new l.Range(
|
|
311
304
|
e.lineNumber,
|
|
312
|
-
|
|
305
|
+
n.startColumn,
|
|
313
306
|
e.lineNumber,
|
|
314
|
-
|
|
307
|
+
n.endColumn
|
|
315
308
|
),
|
|
316
309
|
insertText: [
|
|
317
310
|
"For(${1:counter};${2:start};${3:end}${4:;increment})",
|
|
@@ -319,68 +312,68 @@ const vt = {
|
|
|
319
312
|
"End for"
|
|
320
313
|
].join(`
|
|
321
314
|
`),
|
|
322
|
-
insertTextRules:
|
|
315
|
+
insertTextRules: l.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
323
316
|
},
|
|
324
317
|
{
|
|
325
318
|
label: "Function",
|
|
326
|
-
kind:
|
|
327
|
-
range: new
|
|
319
|
+
kind: l.languages.CompletionItemKind.Snippet,
|
|
320
|
+
range: new l.Range(
|
|
328
321
|
e.lineNumber,
|
|
329
|
-
|
|
322
|
+
n.startColumn,
|
|
330
323
|
e.lineNumber,
|
|
331
|
-
|
|
324
|
+
n.endColumn
|
|
332
325
|
),
|
|
333
326
|
insertText: [
|
|
334
327
|
"Function ${1:function_name}(${2:params}) -> ${3:var_name} : ${4:var_type}",
|
|
335
328
|
" ${5:body}"
|
|
336
329
|
].join(`
|
|
337
330
|
`),
|
|
338
|
-
insertTextRules:
|
|
331
|
+
insertTextRules: l.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
339
332
|
}
|
|
340
333
|
]
|
|
341
334
|
};
|
|
342
335
|
}
|
|
343
|
-
},
|
|
344
|
-
provideCompletionItems: async (
|
|
345
|
-
const
|
|
336
|
+
}, ht = {
|
|
337
|
+
provideCompletionItems: async (t, e) => {
|
|
338
|
+
const n = t.getWordUntilPosition(e);
|
|
346
339
|
return {
|
|
347
340
|
suggestions: [
|
|
348
341
|
{
|
|
349
342
|
label: "var",
|
|
350
|
-
kind:
|
|
351
|
-
range: new
|
|
343
|
+
kind: l.languages.CompletionItemKind.Snippet,
|
|
344
|
+
range: new l.Range(
|
|
352
345
|
e.lineNumber,
|
|
353
|
-
|
|
346
|
+
n.startColumn,
|
|
354
347
|
e.lineNumber,
|
|
355
|
-
|
|
348
|
+
n.endColumn
|
|
356
349
|
),
|
|
357
350
|
insertText: ["var ${1:var_name} : ${2:var_type}"].join(`
|
|
358
351
|
`),
|
|
359
|
-
insertTextRules:
|
|
352
|
+
insertTextRules: l.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
360
353
|
},
|
|
361
354
|
{
|
|
362
355
|
label: "while",
|
|
363
|
-
kind:
|
|
364
|
-
range: new
|
|
356
|
+
kind: l.languages.CompletionItemKind.Snippet,
|
|
357
|
+
range: new l.Range(
|
|
365
358
|
e.lineNumber,
|
|
366
|
-
|
|
359
|
+
n.startColumn,
|
|
367
360
|
e.lineNumber,
|
|
368
|
-
|
|
361
|
+
n.endColumn
|
|
369
362
|
),
|
|
370
363
|
insertText: ["while(${1:expression})", " ${2:body}", "end"].join(
|
|
371
364
|
`
|
|
372
365
|
`
|
|
373
366
|
),
|
|
374
|
-
insertTextRules:
|
|
367
|
+
insertTextRules: l.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
375
368
|
},
|
|
376
369
|
{
|
|
377
370
|
label: "switch",
|
|
378
|
-
kind:
|
|
379
|
-
range: new
|
|
371
|
+
kind: l.languages.CompletionItemKind.Snippet,
|
|
372
|
+
range: new l.Range(
|
|
380
373
|
e.lineNumber,
|
|
381
|
-
|
|
374
|
+
n.startColumn,
|
|
382
375
|
e.lineNumber,
|
|
383
|
-
|
|
376
|
+
n.endColumn
|
|
384
377
|
),
|
|
385
378
|
insertText: [
|
|
386
379
|
"switch",
|
|
@@ -389,44 +382,44 @@ const vt = {
|
|
|
389
382
|
"end"
|
|
390
383
|
].join(`
|
|
391
384
|
`),
|
|
392
|
-
insertTextRules:
|
|
385
|
+
insertTextRules: l.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
393
386
|
},
|
|
394
387
|
{
|
|
395
388
|
label: "else",
|
|
396
|
-
kind:
|
|
397
|
-
range: new
|
|
389
|
+
kind: l.languages.CompletionItemKind.Snippet,
|
|
390
|
+
range: new l.Range(
|
|
398
391
|
e.lineNumber,
|
|
399
|
-
|
|
392
|
+
n.startColumn,
|
|
400
393
|
e.lineNumber,
|
|
401
|
-
|
|
394
|
+
n.endColumn
|
|
402
395
|
),
|
|
403
396
|
insertText: ["else", " "].join(`
|
|
404
397
|
`),
|
|
405
|
-
insertTextRules:
|
|
398
|
+
insertTextRules: l.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
406
399
|
},
|
|
407
400
|
{
|
|
408
401
|
label: "if",
|
|
409
|
-
kind:
|
|
410
|
-
range: new
|
|
402
|
+
kind: l.languages.CompletionItemKind.Snippet,
|
|
403
|
+
range: new l.Range(
|
|
411
404
|
e.lineNumber,
|
|
412
|
-
|
|
405
|
+
n.startColumn,
|
|
413
406
|
e.lineNumber,
|
|
414
|
-
|
|
407
|
+
n.endColumn
|
|
415
408
|
),
|
|
416
409
|
insertText: ["if (${1:expression})", " ${5:body}", "end"].join(
|
|
417
410
|
`
|
|
418
411
|
`
|
|
419
412
|
),
|
|
420
|
-
insertTextRules:
|
|
413
|
+
insertTextRules: l.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
421
414
|
},
|
|
422
415
|
{
|
|
423
416
|
label: "for",
|
|
424
|
-
kind:
|
|
425
|
-
range: new
|
|
417
|
+
kind: l.languages.CompletionItemKind.Snippet,
|
|
418
|
+
range: new l.Range(
|
|
426
419
|
e.lineNumber,
|
|
427
|
-
|
|
420
|
+
n.startColumn,
|
|
428
421
|
e.lineNumber,
|
|
429
|
-
|
|
422
|
+
n.endColumn
|
|
430
423
|
),
|
|
431
424
|
insertText: [
|
|
432
425
|
"for(${1:counter},${2:start},${3:end}${4:,increment})",
|
|
@@ -434,66 +427,66 @@ const vt = {
|
|
|
434
427
|
"end"
|
|
435
428
|
].join(`
|
|
436
429
|
`),
|
|
437
|
-
insertTextRules:
|
|
430
|
+
insertTextRules: l.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
438
431
|
},
|
|
439
432
|
{
|
|
440
433
|
label: "function",
|
|
441
|
-
kind:
|
|
442
|
-
range: new
|
|
434
|
+
kind: l.languages.CompletionItemKind.Snippet,
|
|
435
|
+
range: new l.Range(
|
|
443
436
|
e.lineNumber,
|
|
444
|
-
|
|
437
|
+
n.startColumn,
|
|
445
438
|
e.lineNumber,
|
|
446
|
-
|
|
439
|
+
n.endColumn
|
|
447
440
|
),
|
|
448
441
|
insertText: [
|
|
449
442
|
"function ${1:function_name}(${2:params}) -> ${3:var_name} : ${4:var_type}",
|
|
450
443
|
" ${5:body}"
|
|
451
444
|
].join(`
|
|
452
445
|
`),
|
|
453
|
-
insertTextRules:
|
|
446
|
+
insertTextRules: l.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
454
447
|
}
|
|
455
448
|
]
|
|
456
449
|
};
|
|
457
450
|
}
|
|
458
|
-
},
|
|
451
|
+
}, vt = [
|
|
459
452
|
// zoom in
|
|
460
453
|
{
|
|
461
|
-
keybinding:
|
|
454
|
+
keybinding: J.CtrlCmd | M.NumpadAdd,
|
|
462
455
|
command: "editor.action.fontZoomIn"
|
|
463
456
|
},
|
|
464
457
|
{
|
|
465
|
-
keybinding:
|
|
458
|
+
keybinding: J.CtrlCmd | M.Equal,
|
|
466
459
|
command: "editor.action.fontZoomIn"
|
|
467
460
|
},
|
|
468
461
|
// zoom out
|
|
469
462
|
{
|
|
470
|
-
keybinding:
|
|
463
|
+
keybinding: J.CtrlCmd | M.NumpadSubtract,
|
|
471
464
|
command: "editor.action.fontZoomOut"
|
|
472
465
|
},
|
|
473
466
|
{
|
|
474
|
-
keybinding:
|
|
467
|
+
keybinding: J.CtrlCmd | M.Minus,
|
|
475
468
|
command: "editor.action.fontZoomOut"
|
|
476
469
|
},
|
|
477
470
|
// zoom reset
|
|
478
471
|
{
|
|
479
|
-
keybinding:
|
|
472
|
+
keybinding: J.CtrlCmd | M.Numpad0,
|
|
480
473
|
command: "editor.action.fontZoomReset"
|
|
481
474
|
},
|
|
482
475
|
{
|
|
483
|
-
keybinding:
|
|
476
|
+
keybinding: J.CtrlCmd | M.Digit0,
|
|
484
477
|
command: "editor.action.fontZoomReset"
|
|
485
478
|
}
|
|
486
|
-
],
|
|
487
|
-
|
|
479
|
+
], St = ({ defaultZoom: t }) => (V(() => {
|
|
480
|
+
t !== void 0 && ce.EditorZoom.setZoomLevel(t);
|
|
488
481
|
}, []), null);
|
|
489
|
-
|
|
490
|
-
monaco:
|
|
482
|
+
Ne.config({
|
|
483
|
+
monaco: l
|
|
491
484
|
// paths: {
|
|
492
|
-
// vs:
|
|
485
|
+
// vs: import.meta.env.VITE_MONACO_EDITOR_CDN,
|
|
493
486
|
// },
|
|
494
487
|
});
|
|
495
|
-
var
|
|
496
|
-
class
|
|
488
|
+
var $ = /* @__PURE__ */ ((t) => (t[t.NotSet = -1] = "NotSet", t[t.None = 0] = "None", t[t.Italic = 1] = "Italic", t[t.Bold = 2] = "Bold", t[t.Underline = 4] = "Underline", t[t.Strikethrough = 8] = "Strikethrough", t))($ || {}), de = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.DefaultForeground = 1] = "DefaultForeground", t[t.DefaultBackground = 2] = "DefaultBackground", t))(de || {}), Ie = /* @__PURE__ */ ((t) => (t[t.Other = 0] = "Other", t[t.Comment = 1] = "Comment", t[t.String = 2] = "String", t[t.RegEx = 3] = "RegEx", t))(Ie || {});
|
|
489
|
+
class H {
|
|
497
490
|
static getLanguageId(e) {
|
|
498
491
|
return (e & 255) >>> 0;
|
|
499
492
|
}
|
|
@@ -517,17 +510,17 @@ class Y {
|
|
|
517
510
|
const o = this.getFontStyle(e);
|
|
518
511
|
return o & 1 && (i += " mtki"), o & 2 && (i += " mtkb"), o & 4 && (i += " mtku"), o & 8 && (i += " mtks"), i;
|
|
519
512
|
}
|
|
520
|
-
static getInlineStyleFromMetadata(e,
|
|
513
|
+
static getInlineStyleFromMetadata(e, n) {
|
|
521
514
|
const i = this.getForeground(e), o = this.getFontStyle(e);
|
|
522
|
-
let
|
|
523
|
-
o & 1 && (
|
|
524
|
-
let
|
|
525
|
-
return o & 4 && (
|
|
515
|
+
let r = `color: ${n[i]};`;
|
|
516
|
+
o & 1 && (r += "font-style: italic;"), o & 2 && (r += "font-weight: bold;");
|
|
517
|
+
let s = "";
|
|
518
|
+
return o & 4 && (s += " underline"), o & 8 && (s += " line-through"), s && (r += `text-decoration:${s};`), r;
|
|
526
519
|
}
|
|
527
520
|
static getPresentationFromMetadata(e) {
|
|
528
|
-
const
|
|
521
|
+
const n = this.getForeground(e), i = this.getFontStyle(e);
|
|
529
522
|
return {
|
|
530
|
-
foreground:
|
|
523
|
+
foreground: n,
|
|
531
524
|
italic: !!(i & 1),
|
|
532
525
|
bold: !!(i & 2),
|
|
533
526
|
underline: !!(i & 4),
|
|
@@ -535,159 +528,180 @@ class Y {
|
|
|
535
528
|
};
|
|
536
529
|
}
|
|
537
530
|
}
|
|
538
|
-
function
|
|
539
|
-
const o =
|
|
540
|
-
let
|
|
541
|
-
const
|
|
542
|
-
for (let
|
|
543
|
-
const
|
|
544
|
-
if (
|
|
545
|
-
const
|
|
546
|
-
let a =
|
|
547
|
-
for (let
|
|
548
|
-
a & 1 &&
|
|
549
|
-
a > 0 &&
|
|
550
|
-
const u = new
|
|
531
|
+
function yt(t, e, n, i) {
|
|
532
|
+
const o = n.tokens.data, r = t.getLanguageId();
|
|
533
|
+
let s = 0, m = 0;
|
|
534
|
+
const I = i.lineNumber - 1, h = i.column - 1;
|
|
535
|
+
for (let C = 0; C < o.length; C += 5) {
|
|
536
|
+
const f = o[C], A = o[C + 1], N = o[C + 2], w = o[C + 3], S = o[C + 4], R = s + f, b = f === 0 ? m + A : A;
|
|
537
|
+
if (I === R && b <= h && h < b + N) {
|
|
538
|
+
const L = n.legend.tokenTypes[w] || "not in legend (ignored)", p = [];
|
|
539
|
+
let a = S;
|
|
540
|
+
for (let Y = 0; a > 0 && Y < n.legend.tokenModifiers.length; Y++)
|
|
541
|
+
a & 1 && p.push(n.legend.tokenModifiers[Y]), a = a >> 1;
|
|
542
|
+
a > 0 && p.push("not in legend (ignored)");
|
|
543
|
+
const u = new De(
|
|
551
544
|
R + 1,
|
|
552
|
-
|
|
545
|
+
b + 1,
|
|
553
546
|
R + 1,
|
|
554
|
-
|
|
555
|
-
),
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
547
|
+
b + 1 + N
|
|
548
|
+
), y = {}, F = e.getColorTheme().tokenColorMap, v = e.getColorTheme().getTokenStyleMetadata(
|
|
549
|
+
L,
|
|
550
|
+
p,
|
|
551
|
+
r,
|
|
559
552
|
!0,
|
|
560
|
-
|
|
553
|
+
y
|
|
561
554
|
);
|
|
562
|
-
let
|
|
563
|
-
return
|
|
555
|
+
let O;
|
|
556
|
+
return v && (O = {
|
|
564
557
|
languageId: void 0,
|
|
565
|
-
tokenType:
|
|
566
|
-
bold:
|
|
567
|
-
italic:
|
|
568
|
-
underline:
|
|
569
|
-
strikethrough:
|
|
570
|
-
foreground:
|
|
558
|
+
tokenType: Ie.Other,
|
|
559
|
+
bold: v == null ? void 0 : v.bold,
|
|
560
|
+
italic: v == null ? void 0 : v.italic,
|
|
561
|
+
underline: v == null ? void 0 : v.underline,
|
|
562
|
+
strikethrough: v == null ? void 0 : v.strikethrough,
|
|
563
|
+
foreground: F[(v == null ? void 0 : v.foreground) || de.None],
|
|
571
564
|
background: void 0
|
|
572
|
-
}), { type:
|
|
565
|
+
}), { type: L, modifiers: p, range: u, metadata: O, definitions: y };
|
|
573
566
|
}
|
|
574
|
-
|
|
567
|
+
s = R, m = b;
|
|
575
568
|
}
|
|
576
569
|
return null;
|
|
577
570
|
}
|
|
578
|
-
function
|
|
571
|
+
function Nt(t, e, n) {
|
|
579
572
|
let i = null;
|
|
580
|
-
for (let o = 1; o <
|
|
573
|
+
for (let o = 1; o < n; o++)
|
|
581
574
|
i = e.tokenizeLine(
|
|
582
|
-
|
|
575
|
+
t.getLineContent(o),
|
|
583
576
|
i
|
|
584
577
|
).ruleStack;
|
|
585
578
|
return i;
|
|
586
579
|
}
|
|
587
|
-
function
|
|
588
|
-
const i =
|
|
580
|
+
function Rt(t, e, n) {
|
|
581
|
+
const i = t.getColorTheme().tokenColorMap, o = H.getLanguageId(n), r = H.getTokenType(n), s = H.getFontStyle(n), m = H.getForeground(n), I = H.getBackground(n);
|
|
589
582
|
return {
|
|
590
583
|
languageId: e.languageIdCodec.decodeLanguageId(o),
|
|
591
|
-
tokenType:
|
|
592
|
-
bold:
|
|
593
|
-
italic:
|
|
594
|
-
underline:
|
|
595
|
-
strikethrough:
|
|
596
|
-
foreground: i[
|
|
597
|
-
background: i[
|
|
584
|
+
tokenType: r,
|
|
585
|
+
bold: s & $.Bold ? !0 : void 0,
|
|
586
|
+
italic: s & $.Italic ? !0 : void 0,
|
|
587
|
+
underline: s & $.Underline ? !0 : void 0,
|
|
588
|
+
strikethrough: s & $.Strikethrough ? !0 : void 0,
|
|
589
|
+
foreground: i[m],
|
|
590
|
+
background: i[I]
|
|
598
591
|
};
|
|
599
592
|
}
|
|
600
|
-
function
|
|
601
|
-
const i =
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
),
|
|
605
|
-
|
|
606
|
-
|
|
593
|
+
function wt(t, e, n) {
|
|
594
|
+
const i = n.lineNumber, o = t, r = o._tokenizationTextModelPart.grammarTokens._tokenizer.tokenizationSupport._actual._grammar, s = Nt(t, r, i), m = r.tokenizeLine(
|
|
595
|
+
t.getLineContent(i),
|
|
596
|
+
s
|
|
597
|
+
), I = r.tokenizeLine2(
|
|
598
|
+
t.getLineContent(i),
|
|
599
|
+
s
|
|
607
600
|
);
|
|
608
|
-
let
|
|
609
|
-
for (let
|
|
610
|
-
const
|
|
611
|
-
if (
|
|
612
|
-
|
|
601
|
+
let h = 0;
|
|
602
|
+
for (let f = m.tokens.length - 1; f >= 0; f--) {
|
|
603
|
+
const A = m.tokens[f];
|
|
604
|
+
if (n.column - 1 >= A.startIndex) {
|
|
605
|
+
h = f;
|
|
613
606
|
break;
|
|
614
607
|
}
|
|
615
608
|
}
|
|
616
|
-
let
|
|
617
|
-
for (let
|
|
618
|
-
if (
|
|
619
|
-
|
|
609
|
+
let C = 0;
|
|
610
|
+
for (let f = I.tokens.length >>> 1; f >= 0; f--)
|
|
611
|
+
if (n.column - 1 >= I.tokens[f << 1]) {
|
|
612
|
+
C = f;
|
|
620
613
|
break;
|
|
621
614
|
}
|
|
622
615
|
return {
|
|
623
|
-
token:
|
|
624
|
-
metadata:
|
|
616
|
+
token: m.tokens[h],
|
|
617
|
+
metadata: Rt(
|
|
625
618
|
e,
|
|
626
619
|
o._languageService,
|
|
627
|
-
|
|
620
|
+
I.tokens[(C << 1) + 1]
|
|
628
621
|
)
|
|
629
622
|
};
|
|
630
623
|
}
|
|
631
|
-
const
|
|
632
|
-
children:
|
|
624
|
+
const Ce = le(void 0), xn = ({
|
|
625
|
+
children: t,
|
|
633
626
|
url: e,
|
|
634
|
-
qodly:
|
|
627
|
+
qodly: n,
|
|
635
628
|
defaultZoom: i,
|
|
636
629
|
openHandler: o,
|
|
637
|
-
language:
|
|
638
|
-
defaultInited:
|
|
630
|
+
language: r = "4d",
|
|
631
|
+
defaultInited: s = !1
|
|
639
632
|
}) => {
|
|
640
|
-
const
|
|
641
|
-
|
|
642
|
-
e &&
|
|
643
|
-
}, [e,
|
|
644
|
-
const
|
|
645
|
-
if (!
|
|
646
|
-
|
|
647
|
-
const d = new Ve({
|
|
633
|
+
const m = Re(), [I, h] = _(s), [C, f] = _(null), A = oe(), N = oe(0);
|
|
634
|
+
V(() => {
|
|
635
|
+
e && m && w();
|
|
636
|
+
}, [e, m]);
|
|
637
|
+
const w = async () => {
|
|
638
|
+
if (!m) return;
|
|
639
|
+
const d = new Me({
|
|
648
640
|
enabled: process.env.NODE_ENV === "development",
|
|
649
641
|
debugEnabled: process.env.NODE_ENV === "development"
|
|
650
|
-
}), g = await
|
|
642
|
+
}), g = await Ct({
|
|
651
643
|
logger: d
|
|
652
644
|
});
|
|
653
|
-
await
|
|
645
|
+
await Ze({
|
|
654
646
|
caller: "Qodly Code Editor",
|
|
655
647
|
logger: d,
|
|
656
648
|
serviceConfig: g
|
|
657
|
-
}), o &&
|
|
658
|
-
|
|
659
|
-
|
|
649
|
+
}), o && st.get(lt).registerCodeEditorOpenHandler(o), m.languages.registerCompletionItemProvider(
|
|
650
|
+
r,
|
|
651
|
+
n ? ht : bt
|
|
660
652
|
);
|
|
661
|
-
const c =
|
|
662
|
-
|
|
663
|
-
(
|
|
653
|
+
const c = te.getDefaultKeybindings.bind(te);
|
|
654
|
+
te.getDefaultKeybindings = () => c().filter(
|
|
655
|
+
(W) => ![
|
|
664
656
|
"workbench.action.files.saveAs",
|
|
665
657
|
"workbench.action.files.save"
|
|
666
|
-
].includes(
|
|
667
|
-
),
|
|
668
|
-
|
|
669
|
-
|
|
658
|
+
].includes(W.command)
|
|
659
|
+
), ce.addKeybindingRules(vt), m.languages.registerFoldingRangeProvider(r, {
|
|
660
|
+
provideFoldingRanges: function(x) {
|
|
661
|
+
const W = [], X = /\\\s*$/;
|
|
662
|
+
for (let Z = 1, G = x.getLineCount(); Z <= G; Z++) {
|
|
663
|
+
const U = x.getLineContent(Z);
|
|
664
|
+
if (X.exec(U)) {
|
|
665
|
+
let K = Z + 1;
|
|
666
|
+
for (; K <= G; ) {
|
|
667
|
+
const ee = x.getLineContent(K);
|
|
668
|
+
if (X.exec(ee) == null)
|
|
669
|
+
break;
|
|
670
|
+
K++;
|
|
671
|
+
}
|
|
672
|
+
K > Z && (W.push({
|
|
673
|
+
start: Z,
|
|
674
|
+
end: K,
|
|
675
|
+
kind: m.languages.FoldingRangeKind.Region
|
|
676
|
+
}), Z = K);
|
|
677
|
+
}
|
|
678
|
+
}
|
|
679
|
+
return W;
|
|
680
|
+
}
|
|
681
|
+
}), S();
|
|
682
|
+
}, S = () => {
|
|
683
|
+
f(null);
|
|
670
684
|
let d;
|
|
671
685
|
try {
|
|
672
686
|
d = new WebSocket(localStorage.LSP_SERVER || e);
|
|
673
687
|
} catch {
|
|
674
|
-
|
|
688
|
+
f(new Event("INVALID_URL"));
|
|
675
689
|
return;
|
|
676
690
|
}
|
|
677
|
-
d.onopen = R, d.onclose =
|
|
691
|
+
d.onopen = R, d.onclose = b, d.onerror = L, N.current = 0;
|
|
678
692
|
}, R = async function() {
|
|
679
|
-
const d =
|
|
693
|
+
const d = ze(this), g = new mt(d), c = new ft(d), x = new We({
|
|
680
694
|
name: "4D Language Client",
|
|
681
695
|
clientOptions: {
|
|
682
696
|
workspaceFolder: {
|
|
683
|
-
uri:
|
|
697
|
+
uri: Ge.parse("file:///PACKAGE")
|
|
684
698
|
},
|
|
685
699
|
// use a language id as a document selector
|
|
686
|
-
documentSelector: [{ scheme: "file", language:
|
|
700
|
+
documentSelector: [{ scheme: "file", language: r }],
|
|
687
701
|
// disable the default error handler
|
|
688
702
|
errorHandler: {
|
|
689
|
-
error: () => ({ action:
|
|
690
|
-
closed: () => ({ action:
|
|
703
|
+
error: () => ({ action: Ve.Continue }),
|
|
704
|
+
closed: () => ({ action: Pe.DoNotRestart })
|
|
691
705
|
}
|
|
692
706
|
},
|
|
693
707
|
// create a language client connection from the JSON RPC connection on demand
|
|
@@ -698,135 +712,135 @@ const de = re(void 0), kn = ({
|
|
|
698
712
|
})
|
|
699
713
|
}
|
|
700
714
|
});
|
|
701
|
-
|
|
702
|
-
const
|
|
703
|
-
|
|
704
|
-
return typeof
|
|
705
|
-
|
|
706
|
-
) ? Promise.resolve() :
|
|
715
|
+
A.current = x;
|
|
716
|
+
const W = x.sendRequest.bind(x);
|
|
717
|
+
A.current.sendRequest = function(X, Z, G) {
|
|
718
|
+
return typeof X == "object" && X.method === "textDocument/diagnostic" && /file:\/\/\/PACKAGE\/Project\/Sources\/Methods\/__Debugger_.*/.test(
|
|
719
|
+
Z.textDocument.uri
|
|
720
|
+
) ? Promise.resolve() : W(X, Z, G);
|
|
707
721
|
}, g.onClose(() => {
|
|
708
|
-
|
|
709
|
-
N.current++,
|
|
710
|
-
}, 1e3) :
|
|
711
|
-
}),
|
|
712
|
-
},
|
|
713
|
-
},
|
|
714
|
-
|
|
722
|
+
x.stop(), N.current < 3 ? setTimeout(() => {
|
|
723
|
+
N.current++, S();
|
|
724
|
+
}, 1e3) : f(new Event("WEBSOCKET_CLOSED"));
|
|
725
|
+
}), x.needsStart() && await x.start(), h(!0);
|
|
726
|
+
}, b = () => {
|
|
727
|
+
}, L = (d) => {
|
|
728
|
+
f(d);
|
|
715
729
|
};
|
|
716
|
-
|
|
717
|
-
const d =
|
|
730
|
+
V(() => {
|
|
731
|
+
const d = xe.subscribe(({ action: g, payload: c }) => {
|
|
718
732
|
switch (g) {
|
|
719
|
-
case
|
|
720
|
-
|
|
733
|
+
case E.WILL_SAVE:
|
|
734
|
+
F(c.filePath);
|
|
721
735
|
break;
|
|
722
|
-
case
|
|
723
|
-
|
|
736
|
+
case E.DID_SAVE:
|
|
737
|
+
T(c.filePath, c.content);
|
|
724
738
|
break;
|
|
725
|
-
case
|
|
726
|
-
|
|
739
|
+
case E.WILL_CREATE:
|
|
740
|
+
v(c.filePath);
|
|
727
741
|
break;
|
|
728
|
-
case
|
|
729
|
-
|
|
742
|
+
case E.DID_CREATE:
|
|
743
|
+
be(c.filePath);
|
|
730
744
|
break;
|
|
731
|
-
case
|
|
732
|
-
|
|
745
|
+
case E.WILL_RENAME:
|
|
746
|
+
O(c.oldPath, c.newPath);
|
|
733
747
|
break;
|
|
734
|
-
case
|
|
735
|
-
|
|
748
|
+
case E.DID_RENAME:
|
|
749
|
+
he(c.oldPath, c.newPath);
|
|
736
750
|
break;
|
|
737
|
-
case
|
|
738
|
-
|
|
751
|
+
case E.WILL_DELETE:
|
|
752
|
+
Y(c.filePath);
|
|
739
753
|
break;
|
|
740
|
-
case
|
|
741
|
-
|
|
754
|
+
case E.DID_DELETE:
|
|
755
|
+
ve(c.filePath);
|
|
742
756
|
break;
|
|
743
|
-
case
|
|
744
|
-
|
|
757
|
+
case E.DIAGNOSTIC_REFRESH:
|
|
758
|
+
y(c.filePath);
|
|
745
759
|
break;
|
|
746
760
|
}
|
|
747
761
|
});
|
|
748
762
|
return () => d.unsubscribe();
|
|
749
763
|
}, []);
|
|
750
|
-
const
|
|
764
|
+
const p = (d) => {
|
|
751
765
|
var g, c;
|
|
752
|
-
return (c = (g =
|
|
753
|
-
(
|
|
754
|
-
var
|
|
755
|
-
return ((
|
|
766
|
+
return (c = (g = A.current) == null ? void 0 : g._features) == null ? void 0 : c.find(
|
|
767
|
+
(x) => {
|
|
768
|
+
var W;
|
|
769
|
+
return ((W = x._registrationType) == null ? void 0 : W.method) === d;
|
|
756
770
|
}
|
|
757
771
|
);
|
|
758
772
|
}, a = (d) => {
|
|
759
|
-
const g = [], c =
|
|
773
|
+
const g = [], c = p(d);
|
|
760
774
|
if (c)
|
|
761
|
-
for (const [
|
|
762
|
-
|
|
775
|
+
for (const [x, W] of c._registrations)
|
|
776
|
+
W.provider && g.push(W.provider);
|
|
763
777
|
return g;
|
|
764
778
|
}, u = async (d, g, c) => {
|
|
765
|
-
var
|
|
766
|
-
const
|
|
767
|
-
|
|
779
|
+
var W, X, Z;
|
|
780
|
+
const x = a(
|
|
781
|
+
rt.method
|
|
768
782
|
);
|
|
769
|
-
if (
|
|
770
|
-
const
|
|
771
|
-
|
|
783
|
+
if (x[0]) {
|
|
784
|
+
const G = new Je(), U = await Promise.resolve(
|
|
785
|
+
x[0].full.provideDocumentSemanticTokens(
|
|
772
786
|
g,
|
|
773
|
-
|
|
787
|
+
G.token
|
|
774
788
|
)
|
|
775
|
-
),
|
|
789
|
+
), Q = d, K = U ? yt(
|
|
776
790
|
g,
|
|
777
|
-
|
|
791
|
+
Q._themeService,
|
|
778
792
|
{
|
|
779
|
-
tokens:
|
|
780
|
-
legend: (
|
|
793
|
+
tokens: U,
|
|
794
|
+
legend: (Z = (X = (W = A.current) == null ? void 0 : W._capabilities) == null ? void 0 : X.semanticTokensProvider) == null ? void 0 : Z.legend
|
|
781
795
|
},
|
|
782
796
|
c
|
|
783
|
-
) : null,
|
|
797
|
+
) : null, ee = wt(
|
|
784
798
|
g,
|
|
785
|
-
|
|
799
|
+
Q._themeService,
|
|
786
800
|
c
|
|
787
801
|
);
|
|
788
802
|
return {
|
|
789
|
-
semanticTokenInfo:
|
|
790
|
-
textmateTokenInfo:
|
|
803
|
+
semanticTokenInfo: K,
|
|
804
|
+
textmateTokenInfo: ee
|
|
791
805
|
};
|
|
792
806
|
}
|
|
793
807
|
return null;
|
|
794
|
-
},
|
|
795
|
-
if (
|
|
808
|
+
}, y = (d) => {
|
|
809
|
+
if (A.current) {
|
|
796
810
|
const g = a(
|
|
797
|
-
|
|
811
|
+
_e.method
|
|
798
812
|
);
|
|
799
813
|
for (const c of g)
|
|
800
814
|
c.onDidChangeDiagnosticsEmitter.fire();
|
|
801
815
|
}
|
|
802
|
-
},
|
|
816
|
+
}, F = (d, g = $e.Manual) => {
|
|
803
817
|
var c;
|
|
804
|
-
(c =
|
|
818
|
+
(c = A.current) == null || c.sendNotification(Ue.type, {
|
|
805
819
|
textDocument: {
|
|
806
820
|
uri: j(d)
|
|
807
821
|
},
|
|
808
822
|
reason: g
|
|
809
823
|
});
|
|
810
|
-
},
|
|
824
|
+
}, T = (d, g) => {
|
|
811
825
|
var c;
|
|
812
|
-
(c =
|
|
826
|
+
(c = A.current) == null || c.sendNotification(qe.type, {
|
|
813
827
|
textDocument: {
|
|
814
828
|
uri: j(d)
|
|
815
829
|
},
|
|
816
830
|
text: g
|
|
817
831
|
});
|
|
818
|
-
},
|
|
832
|
+
}, v = (d) => {
|
|
819
833
|
var g;
|
|
820
|
-
(g =
|
|
834
|
+
(g = A.current) == null || g.sendRequest(Qe.type, {
|
|
821
835
|
files: [
|
|
822
836
|
{
|
|
823
837
|
uri: j(d)
|
|
824
838
|
}
|
|
825
839
|
]
|
|
826
840
|
});
|
|
827
|
-
},
|
|
841
|
+
}, O = (d, g) => {
|
|
828
842
|
var c;
|
|
829
|
-
(c =
|
|
843
|
+
(c = A.current) == null || c.sendRequest(et.type, {
|
|
830
844
|
files: [
|
|
831
845
|
{
|
|
832
846
|
oldUri: j(d),
|
|
@@ -834,27 +848,27 @@ const de = re(void 0), kn = ({
|
|
|
834
848
|
}
|
|
835
849
|
]
|
|
836
850
|
});
|
|
837
|
-
},
|
|
851
|
+
}, Y = (d) => {
|
|
838
852
|
var g;
|
|
839
|
-
(g =
|
|
853
|
+
(g = A.current) == null || g.sendRequest(tt.type, {
|
|
840
854
|
files: [
|
|
841
855
|
{
|
|
842
856
|
uri: j(d)
|
|
843
857
|
}
|
|
844
858
|
]
|
|
845
859
|
});
|
|
846
|
-
},
|
|
860
|
+
}, be = (d) => {
|
|
847
861
|
var g;
|
|
848
|
-
(g =
|
|
862
|
+
(g = A.current) == null || g.sendNotification(nt.type, {
|
|
849
863
|
files: [
|
|
850
864
|
{
|
|
851
865
|
uri: j(d)
|
|
852
866
|
}
|
|
853
867
|
]
|
|
854
868
|
});
|
|
855
|
-
},
|
|
869
|
+
}, he = (d, g) => {
|
|
856
870
|
var c;
|
|
857
|
-
(c =
|
|
871
|
+
(c = A.current) == null || c.sendNotification(it.type, {
|
|
858
872
|
files: [
|
|
859
873
|
{
|
|
860
874
|
oldUri: j(d),
|
|
@@ -862,9 +876,9 @@ const de = re(void 0), kn = ({
|
|
|
862
876
|
}
|
|
863
877
|
]
|
|
864
878
|
});
|
|
865
|
-
},
|
|
879
|
+
}, ve = (d) => {
|
|
866
880
|
var g;
|
|
867
|
-
(g =
|
|
881
|
+
(g = A.current) == null || g.sendNotification(ot.type, {
|
|
868
882
|
files: [
|
|
869
883
|
{
|
|
870
884
|
uri: j(d)
|
|
@@ -872,137 +886,134 @@ const de = re(void 0), kn = ({
|
|
|
872
886
|
]
|
|
873
887
|
});
|
|
874
888
|
};
|
|
875
|
-
return /* @__PURE__ */
|
|
876
|
-
|
|
889
|
+
return /* @__PURE__ */ P(
|
|
890
|
+
Ce.Provider,
|
|
877
891
|
{
|
|
878
892
|
value: {
|
|
879
|
-
inited:
|
|
880
|
-
clientRef:
|
|
881
|
-
lastError:
|
|
882
|
-
reload:
|
|
893
|
+
inited: I || !!C,
|
|
894
|
+
clientRef: A,
|
|
895
|
+
lastError: C,
|
|
896
|
+
reload: S,
|
|
883
897
|
getTokenAtPosition: u
|
|
884
898
|
},
|
|
885
899
|
children: [
|
|
886
|
-
|
|
887
|
-
/* @__PURE__ */
|
|
900
|
+
t,
|
|
901
|
+
/* @__PURE__ */ k(St, { defaultZoom: i })
|
|
888
902
|
]
|
|
889
903
|
}
|
|
890
904
|
);
|
|
891
905
|
};
|
|
892
|
-
function
|
|
893
|
-
const
|
|
894
|
-
if (
|
|
906
|
+
function kn() {
|
|
907
|
+
const t = ae(Ce);
|
|
908
|
+
if (t === void 0)
|
|
895
909
|
throw new Error("useLSP must be used within an LSPContext");
|
|
896
|
-
return
|
|
910
|
+
return t;
|
|
897
911
|
}
|
|
898
|
-
const
|
|
912
|
+
const me = le(
|
|
899
913
|
void 0
|
|
900
|
-
),
|
|
901
|
-
const [e,
|
|
902
|
-
return /* @__PURE__ */
|
|
903
|
-
|
|
914
|
+
), Ln = ye(({ children: t }) => {
|
|
915
|
+
const [e, n] = _(null);
|
|
916
|
+
return /* @__PURE__ */ k(
|
|
917
|
+
me.Provider,
|
|
904
918
|
{
|
|
905
919
|
value: {
|
|
906
920
|
editor: e,
|
|
907
|
-
setEditor:
|
|
921
|
+
setEditor: n
|
|
908
922
|
},
|
|
909
|
-
children:
|
|
923
|
+
children: t
|
|
910
924
|
}
|
|
911
925
|
);
|
|
912
926
|
});
|
|
913
|
-
function
|
|
914
|
-
const
|
|
915
|
-
if (
|
|
916
|
-
const [
|
|
927
|
+
function xt() {
|
|
928
|
+
const t = ae(me), e = _(null);
|
|
929
|
+
if (t === void 0) {
|
|
930
|
+
const [n, i] = e;
|
|
917
931
|
return {
|
|
918
|
-
editor:
|
|
932
|
+
editor: n,
|
|
919
933
|
setEditor: i
|
|
920
934
|
};
|
|
921
935
|
}
|
|
922
|
-
return
|
|
936
|
+
return t;
|
|
923
937
|
}
|
|
924
|
-
var
|
|
938
|
+
var fe = {
|
|
925
939
|
color: void 0,
|
|
926
940
|
size: void 0,
|
|
927
941
|
className: void 0,
|
|
928
942
|
style: void 0,
|
|
929
943
|
attr: void 0
|
|
930
|
-
},
|
|
931
|
-
return
|
|
932
|
-
for (var e,
|
|
933
|
-
e = arguments[
|
|
934
|
-
for (var o in e)
|
|
935
|
-
Object.prototype.hasOwnProperty.call(e, o) && (n[o] = e[o]);
|
|
944
|
+
}, re = D.createContext && D.createContext(fe), B = function() {
|
|
945
|
+
return B = Object.assign || function(t) {
|
|
946
|
+
for (var e, n = 1, i = arguments.length; n < i; n++) {
|
|
947
|
+
e = arguments[n];
|
|
948
|
+
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
|
|
936
949
|
}
|
|
937
|
-
return
|
|
938
|
-
},
|
|
939
|
-
},
|
|
940
|
-
var
|
|
941
|
-
for (var i in n)
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
e.indexOf(i[o]) < 0 && Object.prototype.propertyIsEnumerable.call(n, i[o]) && (t[i[o]] = n[i[o]]);
|
|
946
|
-
return t;
|
|
950
|
+
return t;
|
|
951
|
+
}, B.apply(this, arguments);
|
|
952
|
+
}, kt = function(t, e) {
|
|
953
|
+
var n = {};
|
|
954
|
+
for (var i in t) Object.prototype.hasOwnProperty.call(t, i) && e.indexOf(i) < 0 && (n[i] = t[i]);
|
|
955
|
+
if (t != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, i = Object.getOwnPropertySymbols(t); o < i.length; o++)
|
|
956
|
+
e.indexOf(i[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, i[o]) && (n[i[o]] = t[i[o]]);
|
|
957
|
+
return n;
|
|
947
958
|
};
|
|
948
|
-
function
|
|
949
|
-
return
|
|
950
|
-
return
|
|
951
|
-
key:
|
|
952
|
-
}, e.attr),
|
|
959
|
+
function pe(t) {
|
|
960
|
+
return t && t.map(function(e, n) {
|
|
961
|
+
return D.createElement(e.tag, B({
|
|
962
|
+
key: n
|
|
963
|
+
}, e.attr), pe(e.child));
|
|
953
964
|
});
|
|
954
965
|
}
|
|
955
|
-
function
|
|
966
|
+
function Ae(t) {
|
|
956
967
|
return function(e) {
|
|
957
|
-
return
|
|
958
|
-
attr:
|
|
959
|
-
}, e),
|
|
968
|
+
return D.createElement(Lt, B({
|
|
969
|
+
attr: B({}, t.attr)
|
|
970
|
+
}, e), pe(t.child));
|
|
960
971
|
};
|
|
961
972
|
}
|
|
962
|
-
function
|
|
963
|
-
var e = function(
|
|
964
|
-
var i =
|
|
965
|
-
return
|
|
973
|
+
function Lt(t) {
|
|
974
|
+
var e = function(n) {
|
|
975
|
+
var i = t.attr, o = t.size, r = t.title, s = kt(t, ["attr", "size", "title"]), m = o || n.size || "1em", I;
|
|
976
|
+
return n.className && (I = n.className), t.className && (I = (I ? I + " " : "") + t.className), D.createElement("svg", B({
|
|
966
977
|
stroke: "currentColor",
|
|
967
978
|
fill: "currentColor",
|
|
968
979
|
strokeWidth: "0"
|
|
969
|
-
},
|
|
970
|
-
className:
|
|
971
|
-
style:
|
|
972
|
-
color:
|
|
973
|
-
},
|
|
974
|
-
height:
|
|
975
|
-
width:
|
|
980
|
+
}, n.attr, i, s, {
|
|
981
|
+
className: I,
|
|
982
|
+
style: B(B({
|
|
983
|
+
color: t.color || n.color
|
|
984
|
+
}, n.style), t.style),
|
|
985
|
+
height: m,
|
|
986
|
+
width: m,
|
|
976
987
|
xmlns: "http://www.w3.org/2000/svg"
|
|
977
|
-
}),
|
|
988
|
+
}), r && D.createElement("title", null, r), t.children);
|
|
978
989
|
};
|
|
979
|
-
return
|
|
980
|
-
return e(
|
|
981
|
-
}) : e(
|
|
990
|
+
return re !== void 0 ? D.createElement(re.Consumer, null, function(n) {
|
|
991
|
+
return e(n);
|
|
992
|
+
}) : e(fe);
|
|
982
993
|
}
|
|
983
|
-
function
|
|
984
|
-
return
|
|
994
|
+
function Wt(t) {
|
|
995
|
+
return Ae({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 10.5858L9.17157 7.75736L7.75736 9.17157L10.5858 12L7.75736 14.8284L9.17157 16.2426L12 13.4142L14.8284 16.2426L16.2426 14.8284L13.4142 12L16.2426 9.17157L14.8284 7.75736L12 10.5858Z" } }] })(t);
|
|
985
996
|
}
|
|
986
|
-
function
|
|
987
|
-
return
|
|
997
|
+
function Ft(t) {
|
|
998
|
+
return Ae({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M449.07 399.08L278.64 82.58c-12.08-22.44-44.26-22.44-56.35 0L51.87 399.08A32 32 0 0080 446.25h340.89a32 32 0 0028.18-47.17zm-198.6-1.83a20 20 0 1120-20 20 20 0 01-20 20zm21.72-201.15l-5.74 122a16 16 0 01-32 0l-5.74-121.95a21.73 21.73 0 0121.5-22.69h.21a21.74 21.74 0 0121.73 22.7z" } }] })(t);
|
|
988
999
|
}
|
|
989
|
-
const
|
|
990
|
-
lspProps: { lastError:
|
|
1000
|
+
const Zt = ({
|
|
1001
|
+
lspProps: { lastError: t, reload: e }
|
|
991
1002
|
}) => {
|
|
992
|
-
const [
|
|
1003
|
+
const [n, i] = _(!1), o = () => {
|
|
993
1004
|
e();
|
|
994
|
-
},
|
|
1005
|
+
}, r = () => {
|
|
995
1006
|
i(!1);
|
|
996
1007
|
};
|
|
997
|
-
return
|
|
998
|
-
i(!!
|
|
999
|
-
}, [
|
|
1000
|
-
/* @__PURE__ */
|
|
1001
|
-
/* @__PURE__ */
|
|
1002
|
-
/* @__PURE__ */
|
|
1008
|
+
return V(() => {
|
|
1009
|
+
i(!!t);
|
|
1010
|
+
}, [t]), n ? /* @__PURE__ */ P("div", { className: "flex items-center border-b border-fd-gray-darker bg-grey-800 px-2 py-1.5 text-xs text-grey-50", children: [
|
|
1011
|
+
/* @__PURE__ */ P("span", { className: "flex flex-1 justify-center gap-1", children: [
|
|
1012
|
+
/* @__PURE__ */ k(Ft, { className: "h-4 w-4 text-yellow-600" }),
|
|
1013
|
+
/* @__PURE__ */ P("span", { children: [
|
|
1003
1014
|
"LSP not loaded.",
|
|
1004
1015
|
" ",
|
|
1005
|
-
/* @__PURE__ */
|
|
1016
|
+
/* @__PURE__ */ k(
|
|
1006
1017
|
"button",
|
|
1007
1018
|
{
|
|
1008
1019
|
className: "text-primary-dark underline",
|
|
@@ -1012,28 +1023,28 @@ const Xt = ({
|
|
|
1012
1023
|
)
|
|
1013
1024
|
] })
|
|
1014
1025
|
] }),
|
|
1015
|
-
/* @__PURE__ */
|
|
1016
|
-
|
|
1026
|
+
/* @__PURE__ */ k("button", { className: "focus:outline-none", children: /* @__PURE__ */ k(
|
|
1027
|
+
Wt,
|
|
1017
1028
|
{
|
|
1018
1029
|
className: "h-4 w-4 text-white",
|
|
1019
|
-
onClick:
|
|
1030
|
+
onClick: r
|
|
1020
1031
|
}
|
|
1021
1032
|
) })
|
|
1022
1033
|
] }) : null;
|
|
1023
|
-
},
|
|
1024
|
-
provideCompletionItems: (
|
|
1025
|
-
const
|
|
1034
|
+
}, jt = {
|
|
1035
|
+
provideCompletionItems: (t, e) => {
|
|
1036
|
+
const n = t.getWordUntilPosition(e);
|
|
1026
1037
|
return {
|
|
1027
1038
|
suggestions: [
|
|
1028
1039
|
{
|
|
1029
1040
|
label: "device:xs",
|
|
1030
|
-
kind:
|
|
1041
|
+
kind: l.languages.CompletionItemKind.Snippet,
|
|
1031
1042
|
documentation: "Media query for phone device",
|
|
1032
|
-
range: new
|
|
1043
|
+
range: new l.Range(
|
|
1033
1044
|
e.lineNumber,
|
|
1034
|
-
|
|
1045
|
+
n.startColumn,
|
|
1035
1046
|
e.lineNumber,
|
|
1036
|
-
|
|
1047
|
+
n.endColumn
|
|
1037
1048
|
),
|
|
1038
1049
|
insertText: [
|
|
1039
1050
|
"@media screen and (max-width: ${1:365px}) {",
|
|
@@ -1043,12 +1054,12 @@ const Xt = ({
|
|
|
1043
1054
|
"}"
|
|
1044
1055
|
].join(`
|
|
1045
1056
|
`),
|
|
1046
|
-
insertTextRules:
|
|
1057
|
+
insertTextRules: l.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
1047
1058
|
}
|
|
1048
1059
|
]
|
|
1049
1060
|
};
|
|
1050
1061
|
}
|
|
1051
|
-
},
|
|
1062
|
+
}, Xt = "#/definitions/Condition", Et = {
|
|
1052
1063
|
Base: {
|
|
1053
1064
|
type: "object",
|
|
1054
1065
|
properties: {
|
|
@@ -1316,10 +1327,10 @@ const Xt = ({
|
|
|
1316
1327
|
"ref"
|
|
1317
1328
|
]
|
|
1318
1329
|
}
|
|
1319
|
-
},
|
|
1320
|
-
$ref:
|
|
1321
|
-
definitions:
|
|
1322
|
-
},
|
|
1330
|
+
}, Kt = {
|
|
1331
|
+
$ref: Xt,
|
|
1332
|
+
definitions: Et
|
|
1333
|
+
}, Bt = "array", Tt = {
|
|
1323
1334
|
type: "object",
|
|
1324
1335
|
properties: {
|
|
1325
1336
|
class: {
|
|
@@ -1335,45 +1346,45 @@ const Xt = ({
|
|
|
1335
1346
|
type: "string"
|
|
1336
1347
|
}
|
|
1337
1348
|
}
|
|
1338
|
-
},
|
|
1339
|
-
type:
|
|
1340
|
-
items:
|
|
1349
|
+
}, Ot = {
|
|
1350
|
+
type: Bt,
|
|
1351
|
+
items: Tt
|
|
1341
1352
|
};
|
|
1342
|
-
function
|
|
1343
|
-
const
|
|
1344
|
-
|
|
1353
|
+
function Dt(t, e) {
|
|
1354
|
+
const n = document.createElement("style");
|
|
1355
|
+
n.dataset.id = e, n.textContent = t, document.head.append(n);
|
|
1345
1356
|
}
|
|
1346
|
-
function
|
|
1357
|
+
function Gt(t) {
|
|
1347
1358
|
return Array.from(document.styleSheets).find(
|
|
1348
|
-
(e) => e.ownerNode.getAttribute("data-id") ===
|
|
1359
|
+
(e) => e.ownerNode.getAttribute("data-id") === t
|
|
1349
1360
|
);
|
|
1350
1361
|
}
|
|
1351
|
-
function
|
|
1352
|
-
const
|
|
1362
|
+
function Jt(t, e) {
|
|
1363
|
+
const n = [];
|
|
1353
1364
|
let i = [];
|
|
1354
|
-
const o = [],
|
|
1355
|
-
|
|
1365
|
+
const o = [], r = (a, u, y, F) => {
|
|
1366
|
+
n.push({
|
|
1356
1367
|
startLineNumber: a,
|
|
1357
|
-
endLineNumber:
|
|
1368
|
+
endLineNumber: y,
|
|
1358
1369
|
startColumn: u,
|
|
1359
|
-
endColumn:
|
|
1360
|
-
}),
|
|
1361
|
-
},
|
|
1370
|
+
endColumn: F
|
|
1371
|
+
}), h(), I();
|
|
1372
|
+
}, s = (a) => {
|
|
1362
1373
|
o.indexOf(a) < 0 && o.push(a);
|
|
1363
|
-
},
|
|
1374
|
+
}, m = (a) => {
|
|
1364
1375
|
const u = o.indexOf(a);
|
|
1365
1376
|
u < 0 || o.splice(u, 1);
|
|
1366
|
-
},
|
|
1377
|
+
}, I = () => {
|
|
1367
1378
|
for (const a of o)
|
|
1368
1379
|
try {
|
|
1369
1380
|
a(i);
|
|
1370
1381
|
} catch (u) {
|
|
1371
1382
|
console.error(u);
|
|
1372
1383
|
}
|
|
1373
|
-
},
|
|
1374
|
-
const a =
|
|
1375
|
-
a && (i =
|
|
1376
|
-
|
|
1384
|
+
}, h = () => {
|
|
1385
|
+
const a = t.getModel();
|
|
1386
|
+
a && (i = Pt(
|
|
1387
|
+
n.map((u) => [
|
|
1377
1388
|
a.getOffsetAt({
|
|
1378
1389
|
lineNumber: u.startLineNumber,
|
|
1379
1390
|
column: u.startColumn
|
|
@@ -1386,63 +1397,63 @@ function Pt(n, e) {
|
|
|
1386
1397
|
/*mergeJoins*/
|
|
1387
1398
|
!0
|
|
1388
1399
|
), i.length > 0 && (i[0][0] <= 0 && (i[0][0] = Number.NEGATIVE_INFINITY), i[i.length - 1][1] >= a.getValueLength() && (i[i.length - 1][1] = Number.POSITIVE_INFINITY)));
|
|
1389
|
-
},
|
|
1400
|
+
}, C = (a) => {
|
|
1390
1401
|
const u = {
|
|
1391
1402
|
isDeletion: !1,
|
|
1392
1403
|
isAddition: !1,
|
|
1393
1404
|
isReplacement: !1
|
|
1394
1405
|
};
|
|
1395
1406
|
return a.text === "" ? u.isDeletion = !0 : a.range.startLineNumber === a.range.endLineNumber && a.range.startColumn === a.range.endColumn ? u.isAddition = !0 : u.isReplacement = !0, u;
|
|
1396
|
-
},
|
|
1397
|
-
|
|
1398
|
-
}),
|
|
1407
|
+
}, f = t.onDidChangeModel((a) => {
|
|
1408
|
+
h(), L();
|
|
1409
|
+
}), A = t.onDidChangeModelContent((a) => {
|
|
1399
1410
|
if (!a.isUndoing)
|
|
1400
1411
|
for (const u of a.changes) {
|
|
1401
|
-
const
|
|
1402
|
-
if (
|
|
1403
|
-
const
|
|
1404
|
-
(
|
|
1405
|
-
),
|
|
1406
|
-
if (
|
|
1407
|
-
const
|
|
1408
|
-
if (
|
|
1409
|
-
|
|
1412
|
+
const y = C(u);
|
|
1413
|
+
if (y.isReplacement || y.isDeletion || y.isAddition) {
|
|
1414
|
+
const F = n.some(
|
|
1415
|
+
(v) => u.range.startLineNumber >= v.startLineNumber && u.range.endLineNumber <= v.endLineNumber && u.range.startColumn >= v.startColumn && u.range.endColumn <= v.endColumn
|
|
1416
|
+
), T = !F && e && u.range.startLineNumber === 1 && u.range.startColumn === 1 && !ge(u.text);
|
|
1417
|
+
if (F || T) {
|
|
1418
|
+
const v = t.getModel();
|
|
1419
|
+
if (v) {
|
|
1420
|
+
v.undo();
|
|
1410
1421
|
return;
|
|
1411
1422
|
}
|
|
1412
1423
|
}
|
|
1413
1424
|
}
|
|
1414
1425
|
}
|
|
1415
1426
|
}), N = () => {
|
|
1416
|
-
|
|
1427
|
+
f.dispose(), A.dispose();
|
|
1417
1428
|
};
|
|
1418
|
-
let
|
|
1429
|
+
let w = [], S = `
|
|
1419
1430
|
.idoc-readonly-mark {
|
|
1420
1431
|
cursor: not-allowed;
|
|
1421
1432
|
z-index: 1;
|
|
1422
1433
|
}
|
|
1423
1434
|
`;
|
|
1424
|
-
if (
|
|
1435
|
+
if (S) {
|
|
1425
1436
|
const a = "monaco-read-only";
|
|
1426
|
-
|
|
1437
|
+
Gt(a) || Dt(S, a), S = null;
|
|
1427
1438
|
}
|
|
1428
1439
|
const R = () => {
|
|
1429
|
-
|
|
1430
|
-
},
|
|
1431
|
-
|
|
1432
|
-
},
|
|
1433
|
-
const a =
|
|
1434
|
-
a && (
|
|
1435
|
-
|
|
1436
|
-
i.map(
|
|
1440
|
+
s(L), L();
|
|
1441
|
+
}, b = () => {
|
|
1442
|
+
m(L), w = t.deltaDecorations(w, []);
|
|
1443
|
+
}, L = () => {
|
|
1444
|
+
const a = t.getModel();
|
|
1445
|
+
a && (w = t.deltaDecorations(
|
|
1446
|
+
w,
|
|
1447
|
+
i.map(p(a))
|
|
1437
1448
|
));
|
|
1438
|
-
},
|
|
1439
|
-
const
|
|
1449
|
+
}, p = (a) => (u) => {
|
|
1450
|
+
const y = a.getPositionAt(u[0]), F = a.getPositionAt(u[1]);
|
|
1440
1451
|
return {
|
|
1441
|
-
range: new
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1452
|
+
range: new l.Range(
|
|
1453
|
+
y.lineNumber,
|
|
1454
|
+
y.column,
|
|
1455
|
+
F.lineNumber,
|
|
1456
|
+
F.column
|
|
1446
1457
|
),
|
|
1447
1458
|
options: {
|
|
1448
1459
|
className: "idoc-readonly-mark"
|
|
@@ -1453,117 +1464,93 @@ function Pt(n, e) {
|
|
|
1453
1464
|
get buffer() {
|
|
1454
1465
|
return i;
|
|
1455
1466
|
},
|
|
1456
|
-
exclude:
|
|
1457
|
-
attach:
|
|
1458
|
-
detach:
|
|
1467
|
+
exclude: r,
|
|
1468
|
+
attach: s,
|
|
1469
|
+
detach: m,
|
|
1459
1470
|
dispose: N,
|
|
1460
1471
|
show: R,
|
|
1461
|
-
hide:
|
|
1472
|
+
hide: b
|
|
1462
1473
|
};
|
|
1463
1474
|
}
|
|
1464
|
-
function
|
|
1475
|
+
function Mt(t, e, n) {
|
|
1465
1476
|
let i = !1;
|
|
1466
|
-
const o = (
|
|
1467
|
-
let
|
|
1468
|
-
const
|
|
1469
|
-
let
|
|
1470
|
-
|
|
1471
|
-
for (
|
|
1472
|
-
for (
|
|
1473
|
-
if (
|
|
1474
|
-
|
|
1475
|
-
[N,
|
|
1476
|
-
[R + 1,
|
|
1477
|
+
const o = (b) => b[1] < b[0] ? (i = !0, [[b[1], b[0]]]) : [[...b]], r = (b) => i ? b.map((L) => L[1] > L[0] ? m(L) : L).reverse() : b;
|
|
1478
|
+
let s;
|
|
1479
|
+
const m = (b) => (s = b[1], b[1] = b[0], b[0] = s, b), I = o(t);
|
|
1480
|
+
let h, C, f, A, N, w, S, R;
|
|
1481
|
+
f = I[0];
|
|
1482
|
+
for (C of e)
|
|
1483
|
+
for (S = C[0], R = C[1], A = 0; A < I.length; A++) {
|
|
1484
|
+
if (f = I[A], N = f[0], w = f[1], N < S)
|
|
1485
|
+
w < S ? h = [f] : w <= R ? h = [[N, S - 1]] : h = [
|
|
1486
|
+
[N, S - 1],
|
|
1487
|
+
[R + 1, w]
|
|
1477
1488
|
];
|
|
1478
1489
|
else if (N <= R)
|
|
1479
|
-
if (
|
|
1480
|
-
const
|
|
1481
|
-
|
|
1482
|
-
} else
|
|
1483
|
-
R === Number.POSITIVE_INFINITY ? S = t === 0 ? [] : [[h - 1, h - 1]] : x <= R ? S = t < 0 ? [[h - 1, h - 1]] : t > 0 ? [[R + 1, R + 1]] : [] : S = [[R + 1, x]];
|
|
1490
|
+
if (S === Number.NEGATIVE_INFINITY) {
|
|
1491
|
+
const b = R + 1;
|
|
1492
|
+
h = n === 0 ? [] : [[b, w > b ? w : b]];
|
|
1493
|
+
} else R === Number.POSITIVE_INFINITY ? h = n === 0 ? [] : [[S - 1, S - 1]] : w <= R ? h = n < 0 ? [[S - 1, S - 1]] : n > 0 ? [[R + 1, R + 1]] : [] : h = [[R + 1, w]];
|
|
1484
1494
|
else
|
|
1485
|
-
|
|
1486
|
-
if (
|
|
1487
|
-
return l(C);
|
|
1495
|
+
h = [f];
|
|
1496
|
+
if (I.splice(A, 1, ...h), I.length === 1 && I[0][1] < S) return r(I);
|
|
1488
1497
|
}
|
|
1489
|
-
return
|
|
1498
|
+
return r(I);
|
|
1490
1499
|
}
|
|
1491
|
-
function
|
|
1492
|
-
if (
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
return t;
|
|
1500
|
+
function Pt(t, e) {
|
|
1501
|
+
if (t.length < 2) return t;
|
|
1502
|
+
const n = [];
|
|
1503
|
+
let i = null, o, r;
|
|
1504
|
+
t = t.map(
|
|
1505
|
+
(s) => (s[1] < s[0] && (o = s[1], s[1] = s[0], s[1] = o), s)
|
|
1506
|
+
).sort((s, m) => s[0] - m[0]), n.push(t[0]);
|
|
1507
|
+
for (let s = 1; s < t.length; s++)
|
|
1508
|
+
i = n[n.length - 1], r = t[s], i[1], r[0], i[1] === r[0] - 1 && e ? (i[1] = r[1], n.splice(n.length - 1, 1, i)) : i[1] < r[0] ? n.push(r) : i[1] < r[1] && (i[1] = r[1], n.splice(n.length - 1, 1, i));
|
|
1509
|
+
return n;
|
|
1502
1510
|
}
|
|
1503
|
-
function
|
|
1504
|
-
return e.bind(
|
|
1511
|
+
function z(t, e) {
|
|
1512
|
+
return e.bind(t);
|
|
1505
1513
|
}
|
|
1506
|
-
class
|
|
1507
|
-
constructor(e,
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
F(this, "disposables", []);
|
|
1511
|
-
/**
|
|
1512
|
-
* Flag for `excludeIntervals`
|
|
1513
|
-
*/
|
|
1514
|
-
F(this, "prefer", 1);
|
|
1515
|
-
F(this, "lastPrefer", 1);
|
|
1516
|
-
/**
|
|
1517
|
-
* Linked to ICodeEditor.onDidChangeCursorPosition event.
|
|
1518
|
-
*/
|
|
1519
|
-
F(this, "onCursor", H(
|
|
1514
|
+
class Vt {
|
|
1515
|
+
constructor(e, n) {
|
|
1516
|
+
var i;
|
|
1517
|
+
this.disposables = [], this.prefer = 1, this.lastPrefer = 1, this.onCursor = z(
|
|
1520
1518
|
this,
|
|
1521
|
-
function(
|
|
1522
|
-
if (
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
t.length !== 0 && this.editor.setSelections(t);
|
|
1519
|
+
function(o) {
|
|
1520
|
+
if (o.source === "api") return;
|
|
1521
|
+
const r = this.getApprovedSelections();
|
|
1522
|
+
r.length !== 0 && this.editor.setSelections(r);
|
|
1526
1523
|
}
|
|
1527
|
-
))
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
}));
|
|
1531
|
-
F(this, "onRectangleSelectionStop", H(this, function() {
|
|
1524
|
+
), this.onRectangleSelectionStart = z(this, function({ event: o }) {
|
|
1525
|
+
o.middleButton && (this.lastPrefer = this.prefer, this.prefer = 0, window.addEventListener("pointerup", this.onRectangleSelectionStop));
|
|
1526
|
+
}), this.onRectangleSelectionStop = z(this, function() {
|
|
1532
1527
|
this.prefer = this.lastPrefer, window.removeEventListener("pointerup", this.onRectangleSelectionStop);
|
|
1533
|
-
}))
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
F(this, "onKey", H(this, function(e) {
|
|
1538
|
-
const t = e.keyCode, i = s.KeyCode;
|
|
1539
|
-
if (e.altKey || i.F1 <= t && t <= i.F19 || e.ctrlKey && t !== i.Backspace)
|
|
1540
|
-
return;
|
|
1541
|
-
if (t === i.UpArrow || t === i.LeftArrow || t === i.Home || t === i.PageUp) {
|
|
1528
|
+
}), this.onKey = z(this, function(o) {
|
|
1529
|
+
const r = o.keyCode, s = l.KeyCode;
|
|
1530
|
+
if (o.altKey || s.F1 <= r && r <= s.F19 || o.ctrlKey && r !== s.Backspace) return;
|
|
1531
|
+
if (r === s.UpArrow || r === s.LeftArrow || r === s.Home || r === s.PageUp) {
|
|
1542
1532
|
this.prefer = -1;
|
|
1543
1533
|
return;
|
|
1544
1534
|
}
|
|
1545
|
-
if (
|
|
1535
|
+
if (r === s.DownArrow || r === s.RightArrow || r === s.End || r === s.PageDown) {
|
|
1546
1536
|
this.prefer = 1;
|
|
1547
1537
|
return;
|
|
1548
1538
|
}
|
|
1549
|
-
const
|
|
1550
|
-
let
|
|
1551
|
-
if (
|
|
1552
|
-
|
|
1553
|
-
else if (
|
|
1554
|
-
|
|
1539
|
+
const m = this.getSelections(), I = this.intervals.buffer;
|
|
1540
|
+
let h;
|
|
1541
|
+
if (r === s.Delete)
|
|
1542
|
+
h = (C) => C[0] === C[1] && I.find((f) => C[1] + 1 === f[0]) != null;
|
|
1543
|
+
else if (r === s.Backspace)
|
|
1544
|
+
h = (C) => C[0] === C[1] && I.find((f) => f[1] + 1 === C[0]) != null;
|
|
1555
1545
|
else
|
|
1556
1546
|
return;
|
|
1557
|
-
|
|
1558
|
-
}))
|
|
1559
|
-
|
|
1560
|
-
let
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
}));
|
|
1565
|
-
var i;
|
|
1566
|
-
this.editor = e, this.intervals = Pt(e, t), (i = this.editor.getModel()) == null || i.setEOL(s.editor.EndOfLineSequence.LF);
|
|
1547
|
+
m.findIndex(h) !== -1 && (o.stopPropagation(), o.preventDefault());
|
|
1548
|
+
}), this.getOffsetAt = z(this, function(o) {
|
|
1549
|
+
let r;
|
|
1550
|
+
for (let s = 0; s < this.intervals.buffer.length; s++)
|
|
1551
|
+
if (r = this.intervals.buffer[s], o <= r[1])
|
|
1552
|
+
return r[0] - o < o - r[1] ? r[0] : r[1];
|
|
1553
|
+
}), this.editor = e, this.intervals = Jt(e, n), (i = this.editor.getModel()) == null || i.setEOL(l.editor.EndOfLineSequence.LF);
|
|
1567
1554
|
}
|
|
1568
1555
|
enable() {
|
|
1569
1556
|
this.disposables.push(
|
|
@@ -1573,147 +1560,166 @@ class Ht {
|
|
|
1573
1560
|
), this.intervals.show();
|
|
1574
1561
|
}
|
|
1575
1562
|
dispose() {
|
|
1576
|
-
for (const e of this.disposables)
|
|
1577
|
-
e.dispose();
|
|
1563
|
+
for (const e of this.disposables) e.dispose();
|
|
1578
1564
|
this.disposables.splice(0);
|
|
1579
1565
|
}
|
|
1580
|
-
exclude(e,
|
|
1581
|
-
arguments.length === 1 ? this.intervals.exclude(e, 0, e, Number.MAX_SAFE_INTEGER) : this.intervals.exclude(e,
|
|
1566
|
+
exclude(e, n, i, o) {
|
|
1567
|
+
arguments.length === 1 ? this.intervals.exclude(e, 0, e, Number.MAX_SAFE_INTEGER) : this.intervals.exclude(e, n, i, o);
|
|
1582
1568
|
}
|
|
1583
1569
|
getApprovedSelections() {
|
|
1584
1570
|
const e = this.editor.getModel();
|
|
1585
1571
|
return this.getSelections().map(
|
|
1586
|
-
(i) =>
|
|
1572
|
+
(i) => Mt(
|
|
1587
1573
|
i,
|
|
1588
1574
|
this.intervals.buffer,
|
|
1589
1575
|
this.prefer
|
|
1590
1576
|
)
|
|
1591
1577
|
).flat().map((i) => {
|
|
1592
|
-
const o = e.getPositionAt(i[0]),
|
|
1593
|
-
return new
|
|
1578
|
+
const o = e.getPositionAt(i[0]), r = e.getPositionAt(i[1]);
|
|
1579
|
+
return new l.Selection(
|
|
1594
1580
|
o.lineNumber,
|
|
1595
1581
|
o.column,
|
|
1596
|
-
|
|
1597
|
-
|
|
1582
|
+
r.lineNumber,
|
|
1583
|
+
r.column
|
|
1598
1584
|
);
|
|
1599
1585
|
});
|
|
1600
1586
|
}
|
|
1601
1587
|
getSelections() {
|
|
1602
1588
|
const e = this.editor.getModel();
|
|
1603
|
-
return (this.editor.getSelections() || []).map((
|
|
1589
|
+
return (this.editor.getSelections() || []).map((n) => [
|
|
1604
1590
|
e.getOffsetAt({
|
|
1605
|
-
lineNumber:
|
|
1606
|
-
column:
|
|
1591
|
+
lineNumber: n.selectionStartLineNumber,
|
|
1592
|
+
column: n.selectionStartColumn
|
|
1607
1593
|
}),
|
|
1608
1594
|
e.getOffsetAt({
|
|
1609
|
-
lineNumber:
|
|
1610
|
-
column:
|
|
1595
|
+
lineNumber: n.positionLineNumber,
|
|
1596
|
+
column: n.positionColumn
|
|
1611
1597
|
})
|
|
1612
1598
|
]);
|
|
1613
1599
|
}
|
|
1614
1600
|
}
|
|
1615
|
-
const
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1601
|
+
const Yt = new RegExp("^[ s]+(exposed|Function)", "i"), Ht = ({
|
|
1602
|
+
lineNumber: t,
|
|
1603
|
+
editor: e,
|
|
1604
|
+
type: n,
|
|
1605
|
+
source: i
|
|
1606
|
+
}) => {
|
|
1607
|
+
var h;
|
|
1608
|
+
const o = n === ie.METHOD || n === ie.DEBUGGER && ((h = i == null ? void 0 : i.codeDescriptorInfo) == null ? void 0 : h.type) === ke.METHOD;
|
|
1609
|
+
if (t === 1)
|
|
1610
|
+
return o ? "" : "1";
|
|
1611
|
+
const r = e == null ? void 0 : e.getModel(), s = (r == null ? void 0 : r.getLinesContent()) || [], m = Array(s.length).fill("-");
|
|
1612
|
+
let I = o ? 0 : 1;
|
|
1613
|
+
for (let C = 1; C < s.length; C++)
|
|
1614
|
+
(C === 1 ? "" : s[C - 1]).endsWith("\\") || (I += 1, m[C] = I.toString());
|
|
1615
|
+
return m[t - 1];
|
|
1616
|
+
}, se = () => /* @__PURE__ */ k("div", { className: "absolute inset-0 animate-pulse", children: /* @__PURE__ */ k("div", { className: "w-full space-y-4 px-4 py-1", children: /* @__PURE__ */ P("div", { className: "space-y-2", children: [
|
|
1617
|
+
/* @__PURE__ */ k("div", { className: "h-3 w-3/4 rounded bg-grey-200" }),
|
|
1618
|
+
/* @__PURE__ */ k("div", { className: "h-3 rounded bg-grey-200" }),
|
|
1619
|
+
/* @__PURE__ */ k("div", { className: "h-3 w-5/6 rounded bg-grey-200" }),
|
|
1620
|
+
/* @__PURE__ */ k("div", { className: "h-3 rounded bg-grey-200" }),
|
|
1621
|
+
/* @__PURE__ */ k("div", { className: "h-3 rounded bg-grey-200" })
|
|
1622
|
+
] }) }) }), ne = ["fd-dark"], Wn = ({
|
|
1623
|
+
path: t,
|
|
1623
1624
|
initialValue: e,
|
|
1624
|
-
type:
|
|
1625
|
+
type: n,
|
|
1625
1626
|
language: i,
|
|
1626
1627
|
onChange: o,
|
|
1627
|
-
options:
|
|
1628
|
-
extra:
|
|
1629
|
-
showAlerts:
|
|
1630
|
-
lspProps:
|
|
1631
|
-
theme:
|
|
1632
|
-
...
|
|
1628
|
+
options: r = {},
|
|
1629
|
+
extra: s = {},
|
|
1630
|
+
showAlerts: m = !1,
|
|
1631
|
+
lspProps: I,
|
|
1632
|
+
theme: h = ne[0],
|
|
1633
|
+
...C
|
|
1633
1634
|
}) => {
|
|
1634
|
-
const { initialLineInfo:
|
|
1635
|
-
function R(
|
|
1636
|
-
i === "css" &&
|
|
1635
|
+
const { initialLineInfo: f, initialSelectionInfo: A } = s, { editor: N, setEditor: w } = xt(), { inited: S } = I;
|
|
1636
|
+
function R(p) {
|
|
1637
|
+
i === "css" && p.languages.registerCompletionItemProvider("css", jt), i === "json" && p.languages.json && p.languages.json.jsonDefaults.setDiagnosticsOptions({
|
|
1637
1638
|
validate: !0,
|
|
1638
1639
|
schemas: [
|
|
1639
1640
|
{
|
|
1640
1641
|
uri: "condition-schema.json",
|
|
1641
1642
|
fileMatch: ["*.condition.json"],
|
|
1642
|
-
schema:
|
|
1643
|
+
schema: Kt
|
|
1643
1644
|
},
|
|
1644
1645
|
{
|
|
1645
1646
|
uri: "handlers-schema.json",
|
|
1646
|
-
fileMatch: [
|
|
1647
|
-
schema:
|
|
1647
|
+
fileMatch: [Le],
|
|
1648
|
+
schema: Ot
|
|
1648
1649
|
}
|
|
1649
1650
|
]
|
|
1650
1651
|
});
|
|
1651
1652
|
}
|
|
1652
|
-
function
|
|
1653
|
-
|
|
1654
|
-
const u =
|
|
1655
|
-
if (u && (u.updateOptions({ insertSpaces: !1 }),
|
|
1656
|
-
var
|
|
1657
|
-
const
|
|
1658
|
-
if (
|
|
1659
|
-
const
|
|
1660
|
-
|
|
1653
|
+
function b(p, a) {
|
|
1654
|
+
w(p);
|
|
1655
|
+
const u = p.getModel();
|
|
1656
|
+
if (u && (u.updateOptions({ insertSpaces: !1 }), p.onKeyUp(() => {
|
|
1657
|
+
var F;
|
|
1658
|
+
const y = (F = p.getPosition()) == null ? void 0 : F.lineNumber;
|
|
1659
|
+
if (y) {
|
|
1660
|
+
const T = u.getLineFirstNonWhitespaceColumn(y), v = u.getLineLength(y), O = u.getLineContent(y);
|
|
1661
|
+
Yt.test(O) && p.executeEdits("edit-handler", [
|
|
1661
1662
|
{
|
|
1662
1663
|
range: new a.Range(
|
|
1663
|
-
|
|
1664
|
+
y,
|
|
1664
1665
|
0,
|
|
1665
|
-
|
|
1666
|
-
|
|
1666
|
+
y,
|
|
1667
|
+
v
|
|
1667
1668
|
),
|
|
1668
|
-
text:
|
|
1669
|
-
|
|
1670
|
-
|
|
1669
|
+
text: O.substr(
|
|
1670
|
+
T - 1,
|
|
1671
|
+
v - T
|
|
1671
1672
|
)
|
|
1672
1673
|
}
|
|
1673
1674
|
]);
|
|
1674
1675
|
}
|
|
1675
|
-
})),
|
|
1676
|
-
const
|
|
1677
|
-
|
|
1676
|
+
})), n === ie.METHOD && ge(e)) {
|
|
1677
|
+
const y = new Vt(p, !0);
|
|
1678
|
+
y.exclude(1, 1, 1, Number.POSITIVE_INFINITY), y.enable();
|
|
1678
1679
|
}
|
|
1679
1680
|
}
|
|
1680
|
-
|
|
1681
|
-
if (!N)
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
/* @__PURE__ */ w(
|
|
1695
|
-
ke,
|
|
1681
|
+
V(() => {
|
|
1682
|
+
if (!N) return;
|
|
1683
|
+
const { line: p, offset: a } = f || {};
|
|
1684
|
+
p && At(N, p, a);
|
|
1685
|
+
}, [f, N]), V(() => {
|
|
1686
|
+
if (!N) return;
|
|
1687
|
+
const { selection: p } = A || {};
|
|
1688
|
+
p && pt(N, p);
|
|
1689
|
+
}, [A, N]);
|
|
1690
|
+
const L = (p) => ne.includes(p) ? p : ne[0];
|
|
1691
|
+
return S ? /* @__PURE__ */ P(Se, { children: [
|
|
1692
|
+
m ? /* @__PURE__ */ k(Zt, { lspProps: I }) : null,
|
|
1693
|
+
/* @__PURE__ */ k(
|
|
1694
|
+
we,
|
|
1696
1695
|
{
|
|
1697
1696
|
options: {
|
|
1698
1697
|
readOnly: !0,
|
|
1699
1698
|
fontSize: 12,
|
|
1700
1699
|
"semanticHighlighting.enabled": !0,
|
|
1701
1700
|
padding: { top: 10 },
|
|
1702
|
-
|
|
1701
|
+
lineNumbers: i === "4d" ? (p) => Ht({
|
|
1702
|
+
lineNumber: p,
|
|
1703
|
+
editor: N,
|
|
1704
|
+
type: n,
|
|
1705
|
+
source: s == null ? void 0 : s.source
|
|
1706
|
+
}) : void 0,
|
|
1707
|
+
scrollBeyondLastLine: !1,
|
|
1708
|
+
...r
|
|
1703
1709
|
},
|
|
1704
|
-
path: j(
|
|
1710
|
+
path: j(t),
|
|
1705
1711
|
value: e,
|
|
1706
|
-
theme:
|
|
1707
|
-
onChange: (
|
|
1712
|
+
theme: L(h),
|
|
1713
|
+
onChange: (p) => o && o(p || ""),
|
|
1708
1714
|
language: i,
|
|
1709
1715
|
beforeMount: R,
|
|
1710
|
-
onMount:
|
|
1711
|
-
loading: /* @__PURE__ */
|
|
1712
|
-
...
|
|
1716
|
+
onMount: b,
|
|
1717
|
+
loading: /* @__PURE__ */ k(se, {}),
|
|
1718
|
+
...C
|
|
1713
1719
|
}
|
|
1714
1720
|
)
|
|
1715
|
-
] }) : /* @__PURE__ */
|
|
1716
|
-
},
|
|
1721
|
+
] }) : /* @__PURE__ */ k(se, {});
|
|
1722
|
+
}, zt = {
|
|
1717
1723
|
name: "4d",
|
|
1718
1724
|
displayName: "%displayName%",
|
|
1719
1725
|
description: "%description%",
|
|
@@ -1738,43 +1744,44 @@ const zt = new RegExp("^[ s]+(exposed|Function)", "i"), oe = () => /* @__PURE__
|
|
|
1738
1744
|
}
|
|
1739
1745
|
]
|
|
1740
1746
|
}
|
|
1741
|
-
}, { registerFileUrl:
|
|
1747
|
+
}, { registerFileUrl: q, whenReady: Fn } = at(zt, void 0, {
|
|
1742
1748
|
system: !0
|
|
1743
1749
|
});
|
|
1744
|
-
|
|
1750
|
+
q(
|
|
1745
1751
|
"./syntaxes/4d.tmLanguage.json",
|
|
1746
|
-
new URL("data:application/json;base64,ewogICJuYW1lIjogIjREIiwKICAic2NvcGVOYW1lIjogInNvdXJjZS40ZG0iLAogICJwYXR0ZXJucyI6IFsKICAgIHsKICAgICAgImluY2x1ZGUiOiAiI3N0YXRlbWVudHMiCiAgICB9CiAgXSwKICAicmVwb3NpdG9yeSI6IHsKICAgICJzdGF0ZW1lbnRzIjogewogICAgICAicGF0dGVybnMiOiBbCiAgICAgICAgewogICAgICAgICAgImluY2x1ZGUiOiAiI2NvbW1lbnQiCiAgICAgICAgfQogICAgICBdCiAgICB9LAogICAgImNvbW1lbnQiOiB7CiAgICAgICJwYXR0ZXJucyI6IFsKICAgICAgICB7CiAgICAgICAgICAibmFtZSI6ICJjb21tZW50LmJsb2NrLjRkIiwKICAgICAgICAgICJiZWdpbiI6ICIoL1xcKikoPzpcXHMqKChAKWludGVybmFsKSg/PVxcc3woXFwqLykpKT8iLAogICAgICAgICAgImJlZ2luQ2FwdHVyZXMiOiB7CiAgICAgICAgICAgICIxIjogewogICAgICAgICAgICAgICJuYW1lIjogInB1bmN0dWF0aW9uLmRlZmluaXRpb24uY29tbWVudC40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjIiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAic3RvcmFnZS50eXBlLmludGVybmFsZGVjbGFyYXRpb24uNGQiCiAgICAgICAgICAgIH0sCiAgICAgICAgICAgICIzIjogewogICAgICAgICAgICAgICJuYW1lIjogInB1bmN0dWF0aW9uLmRlY29yYXRvci5pbnRlcm5hbGRlY2xhcmF0aW9uLjRkIgogICAgICAgICAgICB9CiAgICAgICAgICB9LAogICAgICAgICAgImVuZCI6ICJcXCovIiwKICAgICAgICAgICJlbmRDYXB0dXJlcyI6IHsKICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVmaW5pdGlvbi5jb21tZW50LjRkIgogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICB7CiAgICAgICAgICAiYmVnaW4iOiAiKF5bIFxcdF0rKT8oKC8vKSg/OlxccyooKEApaW50ZXJuYWwpKD89XFxzfCQpKT8pIiwKICAgICAgICAgICJiZWdpbkNhcHR1cmVzIjogewogICAgICAgICAgICAiMSI6IHsKICAgICAgICAgICAgICAibmFtZSI6ICJwdW5jdHVhdGlvbi53aGl0ZXNwYWNlLmNvbW1lbnQubGVhZGluZy40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjIiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAiY29tbWVudC5saW5lLmRvdWJsZS1zbGFzaC40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjMiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVmaW5pdGlvbi5jb21tZW50LjRkIgogICAgICAgICAgICB9LAogICAgICAgICAgICAiNCI6IHsKICAgICAgICAgICAgICAibmFtZSI6ICJzdG9yYWdlLnR5cGUuaW50ZXJuYWxkZWNsYXJhdGlvbi40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjUiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVjb3JhdG9yLmludGVybmFsZGVjbGFyYXRpb24uNGQiCiAgICAgICAgICAgIH0KICAgICAgICAgIH0sCiAgICAgICAgICAiZW5kIjogIig/PSQpIiwKICAgICAgICAgICJjb250ZW50TmFtZSI6ICJjb21tZW50LmxpbmUuZG91YmxlLXNsYXNoLjRkIgogICAgICAgIH0KICAgICAgXQogICAgfQogIH0KfQo=",
|
|
1752
|
+
new URL("data:application/json;base64,ewogICJuYW1lIjogIjREIiwKICAic2NvcGVOYW1lIjogInNvdXJjZS40ZG0iLAogICJwYXR0ZXJucyI6IFsKICAgIHsKICAgICAgImluY2x1ZGUiOiAiI3N0YXRlbWVudHMiCiAgICB9CiAgXSwKICAicmVwb3NpdG9yeSI6IHsKICAgICJzdGF0ZW1lbnRzIjogewogICAgICAicGF0dGVybnMiOiBbCiAgICAgICAgewogICAgICAgICAgImluY2x1ZGUiOiAiI2NvbW1lbnQiCiAgICAgICAgfQogICAgICBdCiAgICB9LAogICAgImNvbW1lbnQiOiB7CiAgICAgICJwYXR0ZXJucyI6IFsKICAgICAgICB7CiAgICAgICAgICAibmFtZSI6ICJjb21tZW50LmJsb2NrLjRkIiwKICAgICAgICAgICJiZWdpbiI6ICIoL1xcKikoPzpcXHMqKChAKWludGVybmFsKSg/PVxcc3woXFwqLykpKT8iLAogICAgICAgICAgImJlZ2luQ2FwdHVyZXMiOiB7CiAgICAgICAgICAgICIxIjogewogICAgICAgICAgICAgICJuYW1lIjogInB1bmN0dWF0aW9uLmRlZmluaXRpb24uY29tbWVudC40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjIiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAic3RvcmFnZS50eXBlLmludGVybmFsZGVjbGFyYXRpb24uNGQiCiAgICAgICAgICAgIH0sCiAgICAgICAgICAgICIzIjogewogICAgICAgICAgICAgICJuYW1lIjogInB1bmN0dWF0aW9uLmRlY29yYXRvci5pbnRlcm5hbGRlY2xhcmF0aW9uLjRkIgogICAgICAgICAgICB9CiAgICAgICAgICB9LAogICAgICAgICAgImVuZCI6ICJcXCovIiwKICAgICAgICAgICJlbmRDYXB0dXJlcyI6IHsKICAgICAgICAgICAgIjAiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVmaW5pdGlvbi5jb21tZW50LjRkIgogICAgICAgICAgICB9CiAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICB7CiAgICAgICAgICAiYmVnaW4iOiAiKF5bIFxcdF0rKT8oKC8vKSg/OlxccyooKEApaW50ZXJuYWwpKD89XFxzfCQpKT8pIiwKICAgICAgICAgICJiZWdpbkNhcHR1cmVzIjogewogICAgICAgICAgICAiMSI6IHsKICAgICAgICAgICAgICAibmFtZSI6ICJwdW5jdHVhdGlvbi53aGl0ZXNwYWNlLmNvbW1lbnQubGVhZGluZy40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjIiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAiY29tbWVudC5saW5lLmRvdWJsZS1zbGFzaC40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjMiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVmaW5pdGlvbi5jb21tZW50LjRkIgogICAgICAgICAgICB9LAogICAgICAgICAgICAiNCI6IHsKICAgICAgICAgICAgICAibmFtZSI6ICJzdG9yYWdlLnR5cGUuaW50ZXJuYWxkZWNsYXJhdGlvbi40ZCIKICAgICAgICAgICAgfSwKICAgICAgICAgICAgIjUiOiB7CiAgICAgICAgICAgICAgIm5hbWUiOiAicHVuY3R1YXRpb24uZGVjb3JhdG9yLmludGVybmFsZGVjbGFyYXRpb24uNGQiCiAgICAgICAgICAgIH0KICAgICAgICAgIH0sCiAgICAgICAgICAiZW5kIjogIig/PSQpIiwKICAgICAgICAgICJjb250ZW50TmFtZSI6ICJjb21tZW50LmxpbmUuZG91YmxlLXNsYXNoLjRkIgogICAgICAgIH0KICAgICAgXQogICAgfQogIH0KfQo=", import.meta.url).toString(),
|
|
1747
1753
|
{ mimeType: "application/json", size: 1592 }
|
|
1748
1754
|
);
|
|
1749
|
-
|
|
1755
|
+
q(
|
|
1750
1756
|
"./language-configuration.json",
|
|
1751
|
-
new URL("data:application/json;base64,ewogICJjb21tZW50cyI6IHsKICAgICJsaW5lQ29tbWVudCI6ICIvLyIsCiAgICAiYmxvY2tDb21tZW50IjogWyIvKioiLCAiKiovIl0KICB9LAogIC8vIHN5bWJvbHMgdXNlZCBhcyBicmFja2V0cwogICJicmFja2V0cyI6IFsKICAgIFsieyIsICJ9Il0sCiAgICBbIigiLCAiKSJdLAogICAgWyJbIiwgIl0iXQogIF0sCiAgLy8gc3ltYm9scyB0aGF0IGFyZSBhdXRvIGNsb3NlZCB3aGVuIHR5cGluZwogIC8vIHN5bWJvbHMgdGhhdCB0aGF0IGNhbiBiZSB1c2VkIHRvIHN1cnJvdW5kIGEgc2VsZWN0aW9uCiAgInN1cnJvdW5kaW5nUGFpcnMiOiBbCiAgICBbInsiLCAifSJdLAogICAgWyJbIiwgIl0iXSwKICAgIFsiKCIsICIpIl0sCiAgICBbIlwiIiwgIlwiIl0sCiAgICBbIiciLCAiJyJdCiAgXSwKICAiYXV0b0Nsb3NpbmdQYWlycyI6IFsKICAgIHsKICAgICAgIm9wZW4iOiAiKCIsCiAgICAgICJjbG9zZSI6ICIpIgogICAgfSwKICAgIHsgIm9wZW4iOiAieyIsICJjbG9zZSI6ICJ9IiB9LAogICAgeyAib3BlbiI6ICJbIiwgImNsb3NlIjogIl0iIH0sCiAgICB7ICJvcGVuIjogIiciLCAiY2xvc2UiOiAiJyIsICJub3RJbiI6IFsic3RyaW5nIiwgImNvbW1lbnQiXSB9LAogICAgeyAib3BlbiI6ICJcIiIsICJjbG9zZSI6ICJcIiIsICJub3RJbiI6IFsic3RyaW5nIl0gfSwKICAgIHsgIm9wZW4iOiAiYCIsICJjbG9zZSI6ICJgIiwgIm5vdEluIjogWyJzdHJpbmciLCAiY29tbWVudCJdIH0sCiAgICB7ICJvcGVuIjogIi8qKiIsICJjbG9zZSI6ICIgKiovIiwgIm5vdEluIjogWyJzdHJpbmciXSB9CiAgXSwKICAiYXV0b0Nsb3NlQmVmb3JlIjogIjs6Liw9fV0pPmAgXG5cdCIsCiAgIndvcmRQYXR0ZXJuIjogIigtP1xcZCpcXC5cXGRcXHcqKXwoW15cXGBcXH5cXCFcXEBcXCNcXCVcXF5cXCZcXCpcXChcXClcXC1cXD1cXCtcXFtcXHtcXF1cXH1cXFxcXFx8XFw7XFw6XFwnXFxcIlxcLFxcLlxcPFxcPlxcL1xcP1xcclxcblxcdFxcZlxcdiBdKyl8KD88PVthLXpBLVpdKSA/KD89W2EtekEtWl0pIiwKICAiaW5kZW50YXRpb25SdWxlcyI6IHsKICAgICJpbmNyZWFzZUluZGVudFBhdHRlcm4iOiB7CiAgICAgICJwYXR0ZXJuIjogIiheKD8hW15cXHNdKSpcXHMqKGNsYXNzIGNvbnN0cnVjdG9yKSl8KF4oPyFbXlxcc10pKlxccyooZXhwb3NlZHxsb2NhbHxcXHMqKXsxfVxccypmdW5jdGlvbnsxfVxccypcXHcpfCheKD8hW15cXHNdKSpcXHMqKElmfEVsc2V8Rm9yfEZvciBlYWNofFdoaWxlfEJlZ2luIFNRTHxDYXNlIG9mfFVzZXxSZXBlYXR8OiAqXFwoLiopKS4qJCIsCiAgICAgICJmbGFncyI6ICJpIgogICAgfSwKICAgICJkZWNyZWFzZUluZGVudFBhdHRlcm4iOiB7CiAgICAgICJwYXR0ZXJuIjogIiheKD8hW15cXHNdKSpcXHMqKGV4cG9zZWR8bG9jYWx8XFxzKil7MX1cXHMqZnVuY3Rpb257MX1cXHMqXFx3KXwoRW5kIElmfEVuZCBGb3J8RWxzZXxFbmQgZm9yIGVhY2h8RW5kIFdoaWxlfEVuZCBTUUx8RW5kIGNhc2V8RW5kIHVzZXxVbnRpbHw6ICpcXCguKikuKiQiLAogICAgICAiZmxhZ3MiOiAiaSIKICAgIH0KICB9LAogICJvbkVudGVyUnVsZXMiOiBbCiAgICB7CiAgICAgICJiZWZvcmVUZXh0IjogewogICAgICAgICJwYXR0ZXJuIjogIl5leHBvc2VkIiwKICAgICAgICAiZmxhZ3MiOiAiaSIKICAgICAgfSwKICAgICAgImFjdGlvbiI6IHsgImluZGVudCI6ICJpbmRlbnQiLCAiaW5kZW50QWN0aW9uIjogMSB9CiAgICB9CiAgXQp9Cg==",
|
|
1757
|
+
new URL("data:application/json;base64,ewogICJjb21tZW50cyI6IHsKICAgICJsaW5lQ29tbWVudCI6ICIvLyIsCiAgICAiYmxvY2tDb21tZW50IjogWyIvKioiLCAiKiovIl0KICB9LAogIC8vIHN5bWJvbHMgdXNlZCBhcyBicmFja2V0cwogICJicmFja2V0cyI6IFsKICAgIFsieyIsICJ9Il0sCiAgICBbIigiLCAiKSJdLAogICAgWyJbIiwgIl0iXQogIF0sCiAgLy8gc3ltYm9scyB0aGF0IGFyZSBhdXRvIGNsb3NlZCB3aGVuIHR5cGluZwogIC8vIHN5bWJvbHMgdGhhdCB0aGF0IGNhbiBiZSB1c2VkIHRvIHN1cnJvdW5kIGEgc2VsZWN0aW9uCiAgInN1cnJvdW5kaW5nUGFpcnMiOiBbCiAgICBbInsiLCAifSJdLAogICAgWyJbIiwgIl0iXSwKICAgIFsiKCIsICIpIl0sCiAgICBbIlwiIiwgIlwiIl0sCiAgICBbIiciLCAiJyJdCiAgXSwKICAiYXV0b0Nsb3NpbmdQYWlycyI6IFsKICAgIHsKICAgICAgIm9wZW4iOiAiKCIsCiAgICAgICJjbG9zZSI6ICIpIgogICAgfSwKICAgIHsgIm9wZW4iOiAieyIsICJjbG9zZSI6ICJ9IiB9LAogICAgeyAib3BlbiI6ICJbIiwgImNsb3NlIjogIl0iIH0sCiAgICB7ICJvcGVuIjogIiciLCAiY2xvc2UiOiAiJyIsICJub3RJbiI6IFsic3RyaW5nIiwgImNvbW1lbnQiXSB9LAogICAgeyAib3BlbiI6ICJcIiIsICJjbG9zZSI6ICJcIiIsICJub3RJbiI6IFsic3RyaW5nIl0gfSwKICAgIHsgIm9wZW4iOiAiYCIsICJjbG9zZSI6ICJgIiwgIm5vdEluIjogWyJzdHJpbmciLCAiY29tbWVudCJdIH0sCiAgICB7ICJvcGVuIjogIi8qKiIsICJjbG9zZSI6ICIgKiovIiwgIm5vdEluIjogWyJzdHJpbmciXSB9CiAgXSwKICAiYXV0b0Nsb3NlQmVmb3JlIjogIjs6Liw9fV0pPmAgXG5cdCIsCiAgIndvcmRQYXR0ZXJuIjogIigtP1xcZCpcXC5cXGRcXHcqKXwoW15cXGBcXH5cXCFcXEBcXCNcXCVcXF5cXCZcXCpcXChcXClcXC1cXD1cXCtcXFtcXHtcXF1cXH1cXFxcXFx8XFw7XFw6XFwnXFxcIlxcLFxcLlxcPFxcPlxcL1xcP1xcclxcblxcdFxcZlxcdiBdKyl8KD88PVthLXpBLVpdKSA/KD89W2EtekEtWl0pIiwKICAiaW5kZW50YXRpb25SdWxlcyI6IHsKICAgICJpbmNyZWFzZUluZGVudFBhdHRlcm4iOiB7CiAgICAgICJwYXR0ZXJuIjogIiheKD8hW15cXHNdKSpcXHMqKGNsYXNzIGNvbnN0cnVjdG9yKSl8KF4oPyFbXlxcc10pKlxccyooZXhwb3NlZHxsb2NhbHxcXHMqKXsxfVxccypmdW5jdGlvbnsxfVxccypcXHcpfCheKD8hW15cXHNdKSpcXHMqKElmfEVsc2V8Rm9yfEZvciBlYWNofFdoaWxlfEJlZ2luIFNRTHxDYXNlIG9mfFVzZXxSZXBlYXR8OiAqXFwoLiopKS4qJCIsCiAgICAgICJmbGFncyI6ICJpIgogICAgfSwKICAgICJkZWNyZWFzZUluZGVudFBhdHRlcm4iOiB7CiAgICAgICJwYXR0ZXJuIjogIiheKD8hW15cXHNdKSpcXHMqKGV4cG9zZWR8bG9jYWx8XFxzKil7MX1cXHMqZnVuY3Rpb257MX1cXHMqXFx3KXwoRW5kIElmfEVuZCBGb3J8RWxzZXxFbmQgZm9yIGVhY2h8RW5kIFdoaWxlfEVuZCBTUUx8RW5kIGNhc2V8RW5kIHVzZXxVbnRpbHw6ICpcXCguKikuKiQiLAogICAgICAiZmxhZ3MiOiAiaSIKICAgIH0KICB9LAogICJvbkVudGVyUnVsZXMiOiBbCiAgICB7CiAgICAgICJiZWZvcmVUZXh0IjogewogICAgICAgICJwYXR0ZXJuIjogIl5leHBvc2VkIiwKICAgICAgICAiZmxhZ3MiOiAiaSIKICAgICAgfSwKICAgICAgImFjdGlvbiI6IHsgImluZGVudCI6ICJpbmRlbnQiLCAiaW5kZW50QWN0aW9uIjogMSB9CiAgICB9CiAgXQp9Cg==", import.meta.url).toString(),
|
|
1752
1758
|
{ mimeType: "application/json", size: 1723 }
|
|
1753
1759
|
);
|
|
1754
|
-
|
|
1760
|
+
q(
|
|
1755
1761
|
"package.json",
|
|
1756
|
-
new URL("data:application/json;base64,ewogICJuYW1lIjogIjRkIiwKICAiZGlzcGxheU5hbWUiOiAiJWRpc3BsYXlOYW1lJSIsCiAgImRlc2NyaXB0aW9uIjogIiVkZXNjcmlwdGlvbiUiLAogICJ2ZXJzaW9uIjogIjEuMC4wIiwKICAicHVibGlzaGVyIjogInZzY29kZSIsCiAgImxpY2Vuc2UiOiAiTUlUIiwKICAiZW5naW5lcyI6IHsKICAgICJ2c2NvZGUiOiAiMC4xMC54IgogIH0sCiAgInNjcmlwdHMiOiB7CiAgICAidXBkYXRlLWdyYW1tYXIiOiAibm9kZSAuLi9ub2RlX21vZHVsZXMvdnNjb2RlLWdyYW1tYXItdXBkYXRlci9iaW4gbWljcm9zb2Z0L3ZzY29kZS00ZCBncmFtbWFycy80ZC5jc29uIC4vc3ludGF4ZXMvNGQudG1MYW5ndWFnZS5qc29uIgogIH0sCiAgImNhdGVnb3JpZXMiOiBbCiAgICAiUHJvZ3JhbW1pbmcgTGFuZ3VhZ2VzIgogIF0sCiAgImNvbnRyaWJ1dGVzIjogewogICAgImxhbmd1YWdlcyI6IFsKICAgICAgewogICAgICAgICJpZCI6ICI0ZCIsCiAgICAgICAgImFsaWFzZXMiOiBbCiAgICAgICAgICAiNEQiLAogICAgICAgICAgIjRkIgogICAgICAgIF0sCiAgICAgICAgImV4dGVuc2lvbnMiOiBbCiAgICAgICAgICAiLjRkbSIsCiAgICAgICAgICAiLjRxcyIKICAgICAgICBdLAogICAgICAgICJjb25maWd1cmF0aW9uIjogIi4vbGFuZ3VhZ2UtY29uZmlndXJhdGlvbi5qc29uIgogICAgICB9CiAgICBdLAogICAgImdyYW1tYXJzIjogWwogICAgICB7CiAgICAgICAgImxhbmd1YWdlIjogIjRkIiwKICAgICAgICAic2NvcGVOYW1lIjogInNvdXJjZS40ZG0iLAogICAgICAgICJwYXRoIjogIi4vc3ludGF4ZXMvNGQudG1MYW5ndWFnZS5qc29uIgogICAgICB9CiAgICBdCiAgfSwKICAicmVwb3NpdG9yeSI6IHsKICAgICJ0eXBlIjogImdpdCIsCiAgICAidXJsIjogImh0dHBzOi8vZ2l0aHViLmNvbS9taWNyb3NvZnQvdnNjb2RlLmdpdCIKICB9Cn0K",
|
|
1762
|
+
new URL("data:application/json;base64,ewogICJuYW1lIjogIjRkIiwKICAiZGlzcGxheU5hbWUiOiAiJWRpc3BsYXlOYW1lJSIsCiAgImRlc2NyaXB0aW9uIjogIiVkZXNjcmlwdGlvbiUiLAogICJ2ZXJzaW9uIjogIjEuMC4wIiwKICAicHVibGlzaGVyIjogInZzY29kZSIsCiAgImxpY2Vuc2UiOiAiTUlUIiwKICAiZW5naW5lcyI6IHsKICAgICJ2c2NvZGUiOiAiMC4xMC54IgogIH0sCiAgInNjcmlwdHMiOiB7CiAgICAidXBkYXRlLWdyYW1tYXIiOiAibm9kZSAuLi9ub2RlX21vZHVsZXMvdnNjb2RlLWdyYW1tYXItdXBkYXRlci9iaW4gbWljcm9zb2Z0L3ZzY29kZS00ZCBncmFtbWFycy80ZC5jc29uIC4vc3ludGF4ZXMvNGQudG1MYW5ndWFnZS5qc29uIgogIH0sCiAgImNhdGVnb3JpZXMiOiBbCiAgICAiUHJvZ3JhbW1pbmcgTGFuZ3VhZ2VzIgogIF0sCiAgImNvbnRyaWJ1dGVzIjogewogICAgImxhbmd1YWdlcyI6IFsKICAgICAgewogICAgICAgICJpZCI6ICI0ZCIsCiAgICAgICAgImFsaWFzZXMiOiBbCiAgICAgICAgICAiNEQiLAogICAgICAgICAgIjRkIgogICAgICAgIF0sCiAgICAgICAgImV4dGVuc2lvbnMiOiBbCiAgICAgICAgICAiLjRkbSIsCiAgICAgICAgICAiLjRxcyIKICAgICAgICBdLAogICAgICAgICJjb25maWd1cmF0aW9uIjogIi4vbGFuZ3VhZ2UtY29uZmlndXJhdGlvbi5qc29uIgogICAgICB9CiAgICBdLAogICAgImdyYW1tYXJzIjogWwogICAgICB7CiAgICAgICAgImxhbmd1YWdlIjogIjRkIiwKICAgICAgICAic2NvcGVOYW1lIjogInNvdXJjZS40ZG0iLAogICAgICAgICJwYXRoIjogIi4vc3ludGF4ZXMvNGQudG1MYW5ndWFnZS5qc29uIgogICAgICB9CiAgICBdCiAgfSwKICAicmVwb3NpdG9yeSI6IHsKICAgICJ0eXBlIjogImdpdCIsCiAgICAidXJsIjogImh0dHBzOi8vZ2l0aHViLmNvbS9taWNyb3NvZnQvdnNjb2RlLmdpdCIKICB9Cn0K", import.meta.url).toString(),
|
|
1757
1763
|
{ mimeType: "application/json", size: 1006 }
|
|
1758
1764
|
);
|
|
1759
|
-
|
|
1765
|
+
q(
|
|
1760
1766
|
"package.nls.json",
|
|
1761
|
-
new URL("data:application/json;base64,ewogICJkaXNwbGF5TmFtZSI6ICI0RCBMYW5ndWFnZSBCYXNpY3MiLAogICJkZXNjcmlwdGlvbiI6ICJQcm92aWRlcyBzeW50YXggaGlnaGxpZ2h0aW5nIGFuZCBicmFja2V0IG1hdGNoaW5nIGZvciA0RE0gYW5kIDRRUyBmaWxlcy4iCn0K",
|
|
1767
|
+
new URL("data:application/json;base64,ewogICJkaXNwbGF5TmFtZSI6ICI0RCBMYW5ndWFnZSBCYXNpY3MiLAogICJkZXNjcmlwdGlvbiI6ICJQcm92aWRlcyBzeW50YXggaGlnaGxpZ2h0aW5nIGFuZCBicmFja2V0IG1hdGNoaW5nIGZvciA0RE0gYW5kIDRRUyBmaWxlcy4iCn0K", import.meta.url).toString(),
|
|
1762
1768
|
{ mimeType: "application/json", size: 135 }
|
|
1763
1769
|
);
|
|
1764
1770
|
export {
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1771
|
+
Zt as Alerts,
|
|
1772
|
+
Wn as CodeEditor,
|
|
1773
|
+
Ln as CodeEditorProvider,
|
|
1774
|
+
Ht as FdLineNumbers,
|
|
1775
|
+
xn as LSPProvider,
|
|
1776
|
+
ne as SUPPORTED_THEMES,
|
|
1777
|
+
ue as _await,
|
|
1778
|
+
Ct as configureServices,
|
|
1772
1779
|
j as getFileSystemPath,
|
|
1773
1780
|
wn as getFunctionOffset,
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1781
|
+
It as initMonacoUserConfiguration,
|
|
1782
|
+
At as jumpToLine,
|
|
1783
|
+
pt as jumpToSelection,
|
|
1784
|
+
xt as useCodeEditor,
|
|
1785
|
+
kn as useLSP
|
|
1779
1786
|
};
|
|
1780
1787
|
//# sourceMappingURL=index.es.js.map
|