@biomejs/wasm-nodejs 2.4.10 → 2.4.11
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/biome_wasm.d.ts +7067 -6948
- package/biome_wasm.js +675 -728
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.js
CHANGED
|
@@ -1,205 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
let imports = {};
|
|
3
|
-
imports['__wbindgen_placeholder__'] = module.exports;
|
|
4
|
-
|
|
5
|
-
function addToExternrefTable0(obj) {
|
|
6
|
-
const idx = wasm.__externref_table_alloc();
|
|
7
|
-
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
8
|
-
return idx;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
function _assertClass(instance, klass) {
|
|
12
|
-
if (!(instance instanceof klass)) {
|
|
13
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
function debugString(val) {
|
|
18
|
-
// primitive types
|
|
19
|
-
const type = typeof val;
|
|
20
|
-
if (type == 'number' || type == 'boolean' || val == null) {
|
|
21
|
-
return `${val}`;
|
|
22
|
-
}
|
|
23
|
-
if (type == 'string') {
|
|
24
|
-
return `"${val}"`;
|
|
25
|
-
}
|
|
26
|
-
if (type == 'symbol') {
|
|
27
|
-
const description = val.description;
|
|
28
|
-
if (description == null) {
|
|
29
|
-
return 'Symbol';
|
|
30
|
-
} else {
|
|
31
|
-
return `Symbol(${description})`;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
if (type == 'function') {
|
|
35
|
-
const name = val.name;
|
|
36
|
-
if (typeof name == 'string' && name.length > 0) {
|
|
37
|
-
return `Function(${name})`;
|
|
38
|
-
} else {
|
|
39
|
-
return 'Function';
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
// objects
|
|
43
|
-
if (Array.isArray(val)) {
|
|
44
|
-
const length = val.length;
|
|
45
|
-
let debug = '[';
|
|
46
|
-
if (length > 0) {
|
|
47
|
-
debug += debugString(val[0]);
|
|
48
|
-
}
|
|
49
|
-
for(let i = 1; i < length; i++) {
|
|
50
|
-
debug += ', ' + debugString(val[i]);
|
|
51
|
-
}
|
|
52
|
-
debug += ']';
|
|
53
|
-
return debug;
|
|
54
|
-
}
|
|
55
|
-
// Test for built-in
|
|
56
|
-
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
57
|
-
let className;
|
|
58
|
-
if (builtInMatches && builtInMatches.length > 1) {
|
|
59
|
-
className = builtInMatches[1];
|
|
60
|
-
} else {
|
|
61
|
-
// Failed to match the standard '[object ClassName]'
|
|
62
|
-
return toString.call(val);
|
|
63
|
-
}
|
|
64
|
-
if (className == 'Object') {
|
|
65
|
-
// we're a user defined class or Object
|
|
66
|
-
// JSON.stringify avoids problems with cycles, and is generally much
|
|
67
|
-
// easier than looping through ownProperties of `val`.
|
|
68
|
-
try {
|
|
69
|
-
return 'Object(' + JSON.stringify(val) + ')';
|
|
70
|
-
} catch (_) {
|
|
71
|
-
return 'Object';
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
// errors
|
|
75
|
-
if (val instanceof Error) {
|
|
76
|
-
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
77
|
-
}
|
|
78
|
-
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
79
|
-
return className;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
function getArrayU8FromWasm0(ptr, len) {
|
|
83
|
-
ptr = ptr >>> 0;
|
|
84
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
let cachedDataViewMemory0 = null;
|
|
88
|
-
function getDataViewMemory0() {
|
|
89
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
90
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
91
|
-
}
|
|
92
|
-
return cachedDataViewMemory0;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
function getStringFromWasm0(ptr, len) {
|
|
96
|
-
ptr = ptr >>> 0;
|
|
97
|
-
return decodeText(ptr, len);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
let cachedUint8ArrayMemory0 = null;
|
|
101
|
-
function getUint8ArrayMemory0() {
|
|
102
|
-
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
103
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
104
|
-
}
|
|
105
|
-
return cachedUint8ArrayMemory0;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
function handleError(f, args) {
|
|
109
|
-
try {
|
|
110
|
-
return f.apply(this, args);
|
|
111
|
-
} catch (e) {
|
|
112
|
-
const idx = addToExternrefTable0(e);
|
|
113
|
-
wasm.__wbindgen_exn_store(idx);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
function isLikeNone(x) {
|
|
118
|
-
return x === undefined || x === null;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
122
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
123
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
124
|
-
WASM_VECTOR_LEN = arg.length;
|
|
125
|
-
return ptr;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
129
|
-
if (realloc === undefined) {
|
|
130
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
131
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
132
|
-
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
133
|
-
WASM_VECTOR_LEN = buf.length;
|
|
134
|
-
return ptr;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
let len = arg.length;
|
|
138
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
139
|
-
|
|
140
|
-
const mem = getUint8ArrayMemory0();
|
|
141
|
-
|
|
142
|
-
let offset = 0;
|
|
143
|
-
|
|
144
|
-
for (; offset < len; offset++) {
|
|
145
|
-
const code = arg.charCodeAt(offset);
|
|
146
|
-
if (code > 0x7F) break;
|
|
147
|
-
mem[ptr + offset] = code;
|
|
148
|
-
}
|
|
149
|
-
if (offset !== len) {
|
|
150
|
-
if (offset !== 0) {
|
|
151
|
-
arg = arg.slice(offset);
|
|
152
|
-
}
|
|
153
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
154
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
155
|
-
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
156
|
-
|
|
157
|
-
offset += ret.written;
|
|
158
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
WASM_VECTOR_LEN = offset;
|
|
162
|
-
return ptr;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
function takeFromExternrefTable0(idx) {
|
|
166
|
-
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
167
|
-
wasm.__externref_table_dealloc(idx);
|
|
168
|
-
return value;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
172
|
-
cachedTextDecoder.decode();
|
|
173
|
-
function decodeText(ptr, len) {
|
|
174
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
const cachedTextEncoder = new TextEncoder();
|
|
178
|
-
|
|
179
|
-
if (!('encodeInto' in cachedTextEncoder)) {
|
|
180
|
-
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
181
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
182
|
-
view.set(buf);
|
|
183
|
-
return {
|
|
184
|
-
read: arg.length,
|
|
185
|
-
written: buf.length
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
let WASM_VECTOR_LEN = 0;
|
|
191
|
-
|
|
192
|
-
const DiagnosticPrinterFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
193
|
-
? { register: () => {}, unregister: () => {} }
|
|
194
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_diagnosticprinter_free(ptr >>> 0, 1));
|
|
195
|
-
|
|
196
|
-
const MemoryFileSystemFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
197
|
-
? { register: () => {}, unregister: () => {} }
|
|
198
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_memoryfilesystem_free(ptr >>> 0, 1));
|
|
199
|
-
|
|
200
|
-
const WorkspaceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
201
|
-
? { register: () => {}, unregister: () => {} }
|
|
202
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_workspace_free(ptr >>> 0, 1));
|
|
1
|
+
/* @ts-self-types="./biome_wasm.d.ts" */
|
|
203
2
|
|
|
204
3
|
class DiagnosticPrinter {
|
|
205
4
|
__destroy_into_raw() {
|
|
@@ -212,38 +11,6 @@ class DiagnosticPrinter {
|
|
|
212
11
|
const ptr = this.__destroy_into_raw();
|
|
213
12
|
wasm.__wbg_diagnosticprinter_free(ptr, 0);
|
|
214
13
|
}
|
|
215
|
-
/**
|
|
216
|
-
* @param {Diagnostic} diagnostic
|
|
217
|
-
*/
|
|
218
|
-
print_simple(diagnostic) {
|
|
219
|
-
const ret = wasm.diagnosticprinter_print_simple(this.__wbg_ptr, diagnostic);
|
|
220
|
-
if (ret[1]) {
|
|
221
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* @param {Diagnostic} diagnostic
|
|
226
|
-
*/
|
|
227
|
-
print_verbose(diagnostic) {
|
|
228
|
-
const ret = wasm.diagnosticprinter_print_verbose(this.__wbg_ptr, diagnostic);
|
|
229
|
-
if (ret[1]) {
|
|
230
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
/**
|
|
234
|
-
* @param {string} file_name
|
|
235
|
-
* @param {string} file_source
|
|
236
|
-
*/
|
|
237
|
-
constructor(file_name, file_source) {
|
|
238
|
-
const ptr0 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
239
|
-
const len0 = WASM_VECTOR_LEN;
|
|
240
|
-
const ptr1 = passStringToWasm0(file_source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
241
|
-
const len1 = WASM_VECTOR_LEN;
|
|
242
|
-
const ret = wasm.diagnosticprinter_new(ptr0, len0, ptr1, len1);
|
|
243
|
-
this.__wbg_ptr = ret >>> 0;
|
|
244
|
-
DiagnosticPrinterFinalization.register(this, this.__wbg_ptr, this);
|
|
245
|
-
return this;
|
|
246
|
-
}
|
|
247
14
|
/**
|
|
248
15
|
* @returns {string}
|
|
249
16
|
*/
|
|
@@ -266,6 +33,38 @@ class DiagnosticPrinter {
|
|
|
266
33
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
267
34
|
}
|
|
268
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* @param {string} file_name
|
|
38
|
+
* @param {string} file_source
|
|
39
|
+
*/
|
|
40
|
+
constructor(file_name, file_source) {
|
|
41
|
+
const ptr0 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
42
|
+
const len0 = WASM_VECTOR_LEN;
|
|
43
|
+
const ptr1 = passStringToWasm0(file_source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
44
|
+
const len1 = WASM_VECTOR_LEN;
|
|
45
|
+
const ret = wasm.diagnosticprinter_new(ptr0, len0, ptr1, len1);
|
|
46
|
+
this.__wbg_ptr = ret >>> 0;
|
|
47
|
+
DiagnosticPrinterFinalization.register(this, this.__wbg_ptr, this);
|
|
48
|
+
return this;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @param {Diagnostic} diagnostic
|
|
52
|
+
*/
|
|
53
|
+
print_simple(diagnostic) {
|
|
54
|
+
const ret = wasm.diagnosticprinter_print_simple(this.__wbg_ptr, diagnostic);
|
|
55
|
+
if (ret[1]) {
|
|
56
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* @param {Diagnostic} diagnostic
|
|
61
|
+
*/
|
|
62
|
+
print_verbose(diagnostic) {
|
|
63
|
+
const ret = wasm.diagnosticprinter_print_verbose(this.__wbg_ptr, diagnostic);
|
|
64
|
+
if (ret[1]) {
|
|
65
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
269
68
|
}
|
|
270
69
|
if (Symbol.dispose) DiagnosticPrinter.prototype[Symbol.dispose] = DiagnosticPrinter.prototype.free;
|
|
271
70
|
exports.DiagnosticPrinter = DiagnosticPrinter;
|
|
@@ -281,12 +80,6 @@ class MemoryFileSystem {
|
|
|
281
80
|
const ptr = this.__destroy_into_raw();
|
|
282
81
|
wasm.__wbg_memoryfilesystem_free(ptr, 0);
|
|
283
82
|
}
|
|
284
|
-
constructor() {
|
|
285
|
-
const ret = wasm.memoryfilesystem_new();
|
|
286
|
-
this.__wbg_ptr = ret >>> 0;
|
|
287
|
-
MemoryFileSystemFinalization.register(this, this.__wbg_ptr, this);
|
|
288
|
-
return this;
|
|
289
|
-
}
|
|
290
83
|
/**
|
|
291
84
|
* @param {string} path
|
|
292
85
|
* @param {Uint8Array} data
|
|
@@ -298,6 +91,12 @@ class MemoryFileSystem {
|
|
|
298
91
|
const len1 = WASM_VECTOR_LEN;
|
|
299
92
|
wasm.memoryfilesystem_insert(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
300
93
|
}
|
|
94
|
+
constructor() {
|
|
95
|
+
const ret = wasm.memoryfilesystem_new();
|
|
96
|
+
this.__wbg_ptr = ret >>> 0;
|
|
97
|
+
MemoryFileSystemFinalization.register(this, this.__wbg_ptr, this);
|
|
98
|
+
return this;
|
|
99
|
+
}
|
|
301
100
|
/**
|
|
302
101
|
* @param {string} path
|
|
303
102
|
*/
|
|
@@ -328,15 +127,6 @@ class Workspace {
|
|
|
328
127
|
const ptr = this.__destroy_into_raw();
|
|
329
128
|
wasm.__wbg_workspace_free(ptr, 0);
|
|
330
129
|
}
|
|
331
|
-
/**
|
|
332
|
-
* @param {CloseFileParams} params
|
|
333
|
-
*/
|
|
334
|
-
closeFile(params) {
|
|
335
|
-
const ret = wasm.workspace_closeFile(this.__wbg_ptr, params);
|
|
336
|
-
if (ret[1]) {
|
|
337
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
130
|
/**
|
|
341
131
|
* @param {ChangeFileParams} params
|
|
342
132
|
* @returns {ChangeFileResult}
|
|
@@ -349,79 +139,33 @@ class Workspace {
|
|
|
349
139
|
return takeFromExternrefTable0(ret[0]);
|
|
350
140
|
}
|
|
351
141
|
/**
|
|
352
|
-
* @param {
|
|
353
|
-
* @returns {boolean}
|
|
354
|
-
*/
|
|
355
|
-
fileExists(params) {
|
|
356
|
-
const ret = wasm.workspace_fileExists(this.__wbg_ptr, params);
|
|
357
|
-
if (ret[2]) {
|
|
358
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
359
|
-
}
|
|
360
|
-
return ret[0] !== 0;
|
|
361
|
-
}
|
|
362
|
-
/**
|
|
363
|
-
* @param {FormatFileParams} params
|
|
364
|
-
* @returns {any}
|
|
365
|
-
*/
|
|
366
|
-
formatFile(params) {
|
|
367
|
-
const ret = wasm.workspace_formatFile(this.__wbg_ptr, params);
|
|
368
|
-
if (ret[2]) {
|
|
369
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
370
|
-
}
|
|
371
|
-
return takeFromExternrefTable0(ret[0]);
|
|
372
|
-
}
|
|
373
|
-
/**
|
|
374
|
-
* @param {DropPatternParams} params
|
|
375
|
-
*/
|
|
376
|
-
dropPattern(params) {
|
|
377
|
-
const ret = wasm.workspace_dropPattern(this.__wbg_ptr, params);
|
|
378
|
-
if (ret[1]) {
|
|
379
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
/**
|
|
383
|
-
* @param {FormatRangeParams} params
|
|
384
|
-
* @returns {any}
|
|
385
|
-
*/
|
|
386
|
-
formatRange(params) {
|
|
387
|
-
const ret = wasm.workspace_formatRange(this.__wbg_ptr, params);
|
|
388
|
-
if (ret[2]) {
|
|
389
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
390
|
-
}
|
|
391
|
-
return takeFromExternrefTable0(ret[0]);
|
|
392
|
-
}
|
|
393
|
-
/**
|
|
394
|
-
* @param {OpenProjectParams} params
|
|
395
|
-
* @returns {OpenProjectResult}
|
|
142
|
+
* @param {CloseFileParams} params
|
|
396
143
|
*/
|
|
397
|
-
|
|
398
|
-
const ret = wasm.
|
|
399
|
-
if (ret[
|
|
400
|
-
throw takeFromExternrefTable0(ret[
|
|
144
|
+
closeFile(params) {
|
|
145
|
+
const ret = wasm.workspace_closeFile(this.__wbg_ptr, params);
|
|
146
|
+
if (ret[1]) {
|
|
147
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
401
148
|
}
|
|
402
|
-
return takeFromExternrefTable0(ret[0]);
|
|
403
149
|
}
|
|
404
150
|
/**
|
|
405
|
-
* @param {
|
|
406
|
-
* @returns {PullActionsResult}
|
|
151
|
+
* @param {DropPatternParams} params
|
|
407
152
|
*/
|
|
408
|
-
|
|
409
|
-
const ret = wasm.
|
|
410
|
-
if (ret[
|
|
411
|
-
throw takeFromExternrefTable0(ret[
|
|
153
|
+
dropPattern(params) {
|
|
154
|
+
const ret = wasm.workspace_dropPattern(this.__wbg_ptr, params);
|
|
155
|
+
if (ret[1]) {
|
|
156
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
412
157
|
}
|
|
413
|
-
return takeFromExternrefTable0(ret[0]);
|
|
414
158
|
}
|
|
415
159
|
/**
|
|
416
|
-
* @param {
|
|
417
|
-
* @returns {
|
|
160
|
+
* @param {FileExitsParams} params
|
|
161
|
+
* @returns {boolean}
|
|
418
162
|
*/
|
|
419
|
-
|
|
420
|
-
const ret = wasm.
|
|
163
|
+
fileExists(params) {
|
|
164
|
+
const ret = wasm.workspace_fileExists(this.__wbg_ptr, params);
|
|
421
165
|
if (ret[2]) {
|
|
422
166
|
throw takeFromExternrefTable0(ret[1]);
|
|
423
167
|
}
|
|
424
|
-
return
|
|
168
|
+
return ret[0] !== 0;
|
|
425
169
|
}
|
|
426
170
|
/**
|
|
427
171
|
* @param {SupportsFeatureParams} params
|
|
@@ -435,92 +179,70 @@ class Workspace {
|
|
|
435
179
|
return takeFromExternrefTable0(ret[0]);
|
|
436
180
|
}
|
|
437
181
|
/**
|
|
438
|
-
* @param {
|
|
439
|
-
* @returns {
|
|
440
|
-
*/
|
|
441
|
-
getTypeInfo(params) {
|
|
442
|
-
let deferred2_0;
|
|
443
|
-
let deferred2_1;
|
|
444
|
-
try {
|
|
445
|
-
const ret = wasm.workspace_getTypeInfo(this.__wbg_ptr, params);
|
|
446
|
-
var ptr1 = ret[0];
|
|
447
|
-
var len1 = ret[1];
|
|
448
|
-
if (ret[3]) {
|
|
449
|
-
ptr1 = 0; len1 = 0;
|
|
450
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
451
|
-
}
|
|
452
|
-
deferred2_0 = ptr1;
|
|
453
|
-
deferred2_1 = len1;
|
|
454
|
-
return getStringFromWasm0(ptr1, len1);
|
|
455
|
-
} finally {
|
|
456
|
-
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
/**
|
|
460
|
-
* @param {ParsePatternParams} params
|
|
461
|
-
* @returns {ParsePatternResult}
|
|
182
|
+
* @param {FixFileParams} params
|
|
183
|
+
* @returns {FixFileResult}
|
|
462
184
|
*/
|
|
463
|
-
|
|
464
|
-
const ret = wasm.
|
|
185
|
+
fixFile(params) {
|
|
186
|
+
const ret = wasm.workspace_fixFile(this.__wbg_ptr, params);
|
|
465
187
|
if (ret[2]) {
|
|
466
188
|
throw takeFromExternrefTable0(ret[1]);
|
|
467
189
|
}
|
|
468
190
|
return takeFromExternrefTable0(ret[0]);
|
|
469
191
|
}
|
|
470
192
|
/**
|
|
471
|
-
* @param {
|
|
193
|
+
* @param {FormatFileParams} params
|
|
472
194
|
* @returns {any}
|
|
473
195
|
*/
|
|
474
|
-
|
|
475
|
-
const ret = wasm.
|
|
196
|
+
formatFile(params) {
|
|
197
|
+
const ret = wasm.workspace_formatFile(this.__wbg_ptr, params);
|
|
476
198
|
if (ret[2]) {
|
|
477
199
|
throw takeFromExternrefTable0(ret[1]);
|
|
478
200
|
}
|
|
479
201
|
return takeFromExternrefTable0(ret[0]);
|
|
480
202
|
}
|
|
481
203
|
/**
|
|
482
|
-
* @param {
|
|
483
|
-
* @returns {
|
|
204
|
+
* @param {FormatOnTypeParams} params
|
|
205
|
+
* @returns {any}
|
|
484
206
|
*/
|
|
485
|
-
|
|
486
|
-
const ret = wasm.
|
|
207
|
+
formatOnType(params) {
|
|
208
|
+
const ret = wasm.workspace_formatOnType(this.__wbg_ptr, params);
|
|
487
209
|
if (ret[2]) {
|
|
488
210
|
throw takeFromExternrefTable0(ret[1]);
|
|
489
211
|
}
|
|
490
212
|
return takeFromExternrefTable0(ret[0]);
|
|
491
213
|
}
|
|
492
214
|
/**
|
|
493
|
-
* @param {
|
|
494
|
-
* @returns {
|
|
215
|
+
* @param {FormatRangeParams} params
|
|
216
|
+
* @returns {any}
|
|
495
217
|
*/
|
|
496
|
-
|
|
497
|
-
const ret = wasm.
|
|
218
|
+
formatRange(params) {
|
|
219
|
+
const ret = wasm.workspace_formatRange(this.__wbg_ptr, params);
|
|
498
220
|
if (ret[2]) {
|
|
499
221
|
throw takeFromExternrefTable0(ret[1]);
|
|
500
222
|
}
|
|
501
223
|
return takeFromExternrefTable0(ret[0]);
|
|
502
224
|
}
|
|
503
225
|
/**
|
|
504
|
-
* @param {
|
|
505
|
-
* @returns {
|
|
506
|
-
*/
|
|
507
|
-
isPathIgnored(params) {
|
|
508
|
-
const ret = wasm.workspace_isPathIgnored(this.__wbg_ptr, params);
|
|
509
|
-
if (ret[2]) {
|
|
510
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
511
|
-
}
|
|
512
|
-
return ret[0] !== 0;
|
|
513
|
-
}
|
|
514
|
-
/**
|
|
515
|
-
* @param {UpdateSettingsParams} params
|
|
516
|
-
* @returns {UpdateSettingsResult}
|
|
226
|
+
* @param {GetControlFlowGraphParams} params
|
|
227
|
+
* @returns {string}
|
|
517
228
|
*/
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
229
|
+
getControlFlowGraph(params) {
|
|
230
|
+
let deferred2_0;
|
|
231
|
+
let deferred2_1;
|
|
232
|
+
try {
|
|
233
|
+
const ret = wasm.workspace_getControlFlowGraph(this.__wbg_ptr, params);
|
|
234
|
+
var ptr1 = ret[0];
|
|
235
|
+
var len1 = ret[1];
|
|
236
|
+
if (ret[3]) {
|
|
237
|
+
ptr1 = 0; len1 = 0;
|
|
238
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
239
|
+
}
|
|
240
|
+
deferred2_0 = ptr1;
|
|
241
|
+
deferred2_1 = len1;
|
|
242
|
+
return getStringFromWasm0(ptr1, len1);
|
|
243
|
+
} finally {
|
|
244
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
522
245
|
}
|
|
523
|
-
return takeFromExternrefTable0(ret[0]);
|
|
524
246
|
}
|
|
525
247
|
/**
|
|
526
248
|
* @param {GetFileContentParams} params
|
|
@@ -578,25 +300,14 @@ class Workspace {
|
|
|
578
300
|
return takeFromExternrefTable0(ret[0]);
|
|
579
301
|
}
|
|
580
302
|
/**
|
|
581
|
-
* @param {
|
|
582
|
-
* @returns {PullDiagnosticsResult}
|
|
583
|
-
*/
|
|
584
|
-
pullDiagnostics(params) {
|
|
585
|
-
const ret = wasm.workspace_pullDiagnostics(this.__wbg_ptr, params);
|
|
586
|
-
if (ret[2]) {
|
|
587
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
588
|
-
}
|
|
589
|
-
return takeFromExternrefTable0(ret[0]);
|
|
590
|
-
}
|
|
591
|
-
/**
|
|
592
|
-
* @param {GetSemanticModelParams} params
|
|
303
|
+
* @param {GetRegisteredTypesParams} params
|
|
593
304
|
* @returns {string}
|
|
594
305
|
*/
|
|
595
|
-
|
|
306
|
+
getRegisteredTypes(params) {
|
|
596
307
|
let deferred2_0;
|
|
597
308
|
let deferred2_1;
|
|
598
309
|
try {
|
|
599
|
-
const ret = wasm.
|
|
310
|
+
const ret = wasm.workspace_getRegisteredTypes(this.__wbg_ptr, params);
|
|
600
311
|
var ptr1 = ret[0];
|
|
601
312
|
var len1 = ret[1];
|
|
602
313
|
if (ret[3]) {
|
|
@@ -611,32 +322,14 @@ class Workspace {
|
|
|
611
322
|
}
|
|
612
323
|
}
|
|
613
324
|
/**
|
|
614
|
-
* @param {
|
|
615
|
-
* @returns {Workspace}
|
|
616
|
-
*/
|
|
617
|
-
static withFileSystem(fs) {
|
|
618
|
-
_assertClass(fs, MemoryFileSystem);
|
|
619
|
-
const ret = wasm.workspace_withFileSystem(fs.__wbg_ptr);
|
|
620
|
-
return Workspace.__wrap(ret);
|
|
621
|
-
}
|
|
622
|
-
/**
|
|
623
|
-
* @param {UpdateModuleGraphParams} params
|
|
624
|
-
*/
|
|
625
|
-
updateModuleGraph(params) {
|
|
626
|
-
const ret = wasm.workspace_updateModuleGraph(this.__wbg_ptr, params);
|
|
627
|
-
if (ret[1]) {
|
|
628
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
/**
|
|
632
|
-
* @param {GetRegisteredTypesParams} params
|
|
325
|
+
* @param {GetSemanticModelParams} params
|
|
633
326
|
* @returns {string}
|
|
634
327
|
*/
|
|
635
|
-
|
|
328
|
+
getSemanticModel(params) {
|
|
636
329
|
let deferred2_0;
|
|
637
330
|
let deferred2_1;
|
|
638
331
|
try {
|
|
639
|
-
const ret = wasm.
|
|
332
|
+
const ret = wasm.workspace_getSemanticModel(this.__wbg_ptr, params);
|
|
640
333
|
var ptr1 = ret[0];
|
|
641
334
|
var len1 = ret[1];
|
|
642
335
|
if (ret[3]) {
|
|
@@ -651,14 +344,25 @@ class Workspace {
|
|
|
651
344
|
}
|
|
652
345
|
}
|
|
653
346
|
/**
|
|
654
|
-
* @param {
|
|
347
|
+
* @param {GetSyntaxTreeParams} params
|
|
348
|
+
* @returns {GetSyntaxTreeResult}
|
|
349
|
+
*/
|
|
350
|
+
getSyntaxTree(params) {
|
|
351
|
+
const ret = wasm.workspace_getSyntaxTree(this.__wbg_ptr, params);
|
|
352
|
+
if (ret[2]) {
|
|
353
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
354
|
+
}
|
|
355
|
+
return takeFromExternrefTable0(ret[0]);
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* @param {GetTypeInfoParams} params
|
|
655
359
|
* @returns {string}
|
|
656
360
|
*/
|
|
657
|
-
|
|
361
|
+
getTypeInfo(params) {
|
|
658
362
|
let deferred2_0;
|
|
659
363
|
let deferred2_1;
|
|
660
364
|
try {
|
|
661
|
-
const ret = wasm.
|
|
365
|
+
const ret = wasm.workspace_getTypeInfo(this.__wbg_ptr, params);
|
|
662
366
|
var ptr1 = ret[0];
|
|
663
367
|
var len1 = ret[1];
|
|
664
368
|
if (ret[3]) {
|
|
@@ -672,6 +376,17 @@ class Workspace {
|
|
|
672
376
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
673
377
|
}
|
|
674
378
|
}
|
|
379
|
+
/**
|
|
380
|
+
* @param {PathIsIgnoredParams} params
|
|
381
|
+
* @returns {boolean}
|
|
382
|
+
*/
|
|
383
|
+
isPathIgnored(params) {
|
|
384
|
+
const ret = wasm.workspace_isPathIgnored(this.__wbg_ptr, params);
|
|
385
|
+
if (ret[2]) {
|
|
386
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
387
|
+
}
|
|
388
|
+
return ret[0] !== 0;
|
|
389
|
+
}
|
|
675
390
|
constructor() {
|
|
676
391
|
const ret = wasm.workspace_new();
|
|
677
392
|
this.__wbg_ptr = ret >>> 0;
|
|
@@ -679,38 +394,122 @@ class Workspace {
|
|
|
679
394
|
return this;
|
|
680
395
|
}
|
|
681
396
|
/**
|
|
682
|
-
* @param {
|
|
683
|
-
* @returns {
|
|
397
|
+
* @param {OpenFileParams} params
|
|
398
|
+
* @returns {OpenFileResult}
|
|
399
|
+
*/
|
|
400
|
+
openFile(params) {
|
|
401
|
+
const ret = wasm.workspace_openFile(this.__wbg_ptr, params);
|
|
402
|
+
if (ret[2]) {
|
|
403
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
404
|
+
}
|
|
405
|
+
return takeFromExternrefTable0(ret[0]);
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* @param {OpenProjectParams} params
|
|
409
|
+
* @returns {OpenProjectResult}
|
|
410
|
+
*/
|
|
411
|
+
openProject(params) {
|
|
412
|
+
const ret = wasm.workspace_openProject(this.__wbg_ptr, params);
|
|
413
|
+
if (ret[2]) {
|
|
414
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
415
|
+
}
|
|
416
|
+
return takeFromExternrefTable0(ret[0]);
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* @param {ParsePatternParams} params
|
|
420
|
+
* @returns {ParsePatternResult}
|
|
421
|
+
*/
|
|
422
|
+
parsePattern(params) {
|
|
423
|
+
const ret = wasm.workspace_parsePattern(this.__wbg_ptr, params);
|
|
424
|
+
if (ret[2]) {
|
|
425
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
426
|
+
}
|
|
427
|
+
return takeFromExternrefTable0(ret[0]);
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* @param {PullActionsParams} params
|
|
431
|
+
* @returns {PullActionsResult}
|
|
432
|
+
*/
|
|
433
|
+
pullActions(params) {
|
|
434
|
+
const ret = wasm.workspace_pullActions(this.__wbg_ptr, params);
|
|
435
|
+
if (ret[2]) {
|
|
436
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
437
|
+
}
|
|
438
|
+
return takeFromExternrefTable0(ret[0]);
|
|
439
|
+
}
|
|
440
|
+
/**
|
|
441
|
+
* @param {PullDiagnosticsParams} params
|
|
442
|
+
* @returns {PullDiagnosticsResult}
|
|
443
|
+
*/
|
|
444
|
+
pullDiagnostics(params) {
|
|
445
|
+
const ret = wasm.workspace_pullDiagnostics(this.__wbg_ptr, params);
|
|
446
|
+
if (ret[2]) {
|
|
447
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
448
|
+
}
|
|
449
|
+
return takeFromExternrefTable0(ret[0]);
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* @param {RenameParams} params
|
|
453
|
+
* @returns {RenameResult}
|
|
454
|
+
*/
|
|
455
|
+
rename(params) {
|
|
456
|
+
const ret = wasm.workspace_rename(this.__wbg_ptr, params);
|
|
457
|
+
if (ret[2]) {
|
|
458
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
459
|
+
}
|
|
460
|
+
return takeFromExternrefTable0(ret[0]);
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* @param {ScanProjectParams} params
|
|
464
|
+
* @returns {ScanProjectResult}
|
|
684
465
|
*/
|
|
685
|
-
|
|
686
|
-
const ret = wasm.
|
|
466
|
+
scanProject(params) {
|
|
467
|
+
const ret = wasm.workspace_scanProject(this.__wbg_ptr, params);
|
|
687
468
|
if (ret[2]) {
|
|
688
469
|
throw takeFromExternrefTable0(ret[1]);
|
|
689
470
|
}
|
|
690
471
|
return takeFromExternrefTable0(ret[0]);
|
|
691
472
|
}
|
|
692
473
|
/**
|
|
693
|
-
* @param {
|
|
694
|
-
* @returns {
|
|
474
|
+
* @param {SearchPatternParams} params
|
|
475
|
+
* @returns {SearchResults}
|
|
695
476
|
*/
|
|
696
|
-
|
|
697
|
-
const ret = wasm.
|
|
477
|
+
searchPattern(params) {
|
|
478
|
+
const ret = wasm.workspace_searchPattern(this.__wbg_ptr, params);
|
|
698
479
|
if (ret[2]) {
|
|
699
480
|
throw takeFromExternrefTable0(ret[1]);
|
|
700
481
|
}
|
|
701
482
|
return takeFromExternrefTable0(ret[0]);
|
|
702
483
|
}
|
|
703
484
|
/**
|
|
704
|
-
* @param {
|
|
705
|
-
* @returns {OpenFileResult}
|
|
485
|
+
* @param {UpdateModuleGraphParams} params
|
|
706
486
|
*/
|
|
707
|
-
|
|
708
|
-
const ret = wasm.
|
|
487
|
+
updateModuleGraph(params) {
|
|
488
|
+
const ret = wasm.workspace_updateModuleGraph(this.__wbg_ptr, params);
|
|
489
|
+
if (ret[1]) {
|
|
490
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* @param {UpdateSettingsParams} params
|
|
495
|
+
* @returns {UpdateSettingsResult}
|
|
496
|
+
*/
|
|
497
|
+
updateSettings(params) {
|
|
498
|
+
const ret = wasm.workspace_updateSettings(this.__wbg_ptr, params);
|
|
709
499
|
if (ret[2]) {
|
|
710
500
|
throw takeFromExternrefTable0(ret[1]);
|
|
711
501
|
}
|
|
712
502
|
return takeFromExternrefTable0(ret[0]);
|
|
713
503
|
}
|
|
504
|
+
/**
|
|
505
|
+
* @param {MemoryFileSystem} fs
|
|
506
|
+
* @returns {Workspace}
|
|
507
|
+
*/
|
|
508
|
+
static withFileSystem(fs) {
|
|
509
|
+
_assertClass(fs, MemoryFileSystem);
|
|
510
|
+
const ret = wasm.workspace_withFileSystem(fs.__wbg_ptr);
|
|
511
|
+
return Workspace.__wrap(ret);
|
|
512
|
+
}
|
|
714
513
|
}
|
|
715
514
|
if (Symbol.dispose) Workspace.prototype[Symbol.dispose] = Workspace.prototype.free;
|
|
716
515
|
exports.Workspace = Workspace;
|
|
@@ -720,348 +519,496 @@ function main() {
|
|
|
720
519
|
}
|
|
721
520
|
exports.main = main;
|
|
722
521
|
|
|
723
|
-
|
|
724
|
-
const
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
}
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
}
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
522
|
+
function __wbg_get_imports() {
|
|
523
|
+
const import0 = {
|
|
524
|
+
__proto__: null,
|
|
525
|
+
__wbg_Error_2e59b1b37a9a34c3: function(arg0, arg1) {
|
|
526
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
527
|
+
return ret;
|
|
528
|
+
},
|
|
529
|
+
__wbg_Number_e6ffdb596c888833: function(arg0) {
|
|
530
|
+
const ret = Number(arg0);
|
|
531
|
+
return ret;
|
|
532
|
+
},
|
|
533
|
+
__wbg_String_8564e559799eccda: function(arg0, arg1) {
|
|
534
|
+
const ret = String(arg1);
|
|
535
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
536
|
+
const len1 = WASM_VECTOR_LEN;
|
|
537
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
538
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
539
|
+
},
|
|
540
|
+
__wbg___wbindgen_bigint_get_as_i64_2c5082002e4826e2: function(arg0, arg1) {
|
|
541
|
+
const v = arg1;
|
|
542
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
543
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
544
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
545
|
+
},
|
|
546
|
+
__wbg___wbindgen_boolean_get_a86c216575a75c30: function(arg0) {
|
|
547
|
+
const v = arg0;
|
|
548
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
549
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
550
|
+
},
|
|
551
|
+
__wbg___wbindgen_debug_string_dd5d2d07ce9e6c57: function(arg0, arg1) {
|
|
552
|
+
const ret = debugString(arg1);
|
|
553
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
554
|
+
const len1 = WASM_VECTOR_LEN;
|
|
555
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
556
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
557
|
+
},
|
|
558
|
+
__wbg___wbindgen_in_4bd7a57e54337366: function(arg0, arg1) {
|
|
559
|
+
const ret = arg0 in arg1;
|
|
560
|
+
return ret;
|
|
561
|
+
},
|
|
562
|
+
__wbg___wbindgen_is_bigint_6c98f7e945dacdde: function(arg0) {
|
|
563
|
+
const ret = typeof(arg0) === 'bigint';
|
|
564
|
+
return ret;
|
|
565
|
+
},
|
|
566
|
+
__wbg___wbindgen_is_function_49868bde5eb1e745: function(arg0) {
|
|
567
|
+
const ret = typeof(arg0) === 'function';
|
|
568
|
+
return ret;
|
|
569
|
+
},
|
|
570
|
+
__wbg___wbindgen_is_object_40c5a80572e8f9d3: function(arg0) {
|
|
571
|
+
const val = arg0;
|
|
572
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
573
|
+
return ret;
|
|
574
|
+
},
|
|
575
|
+
__wbg___wbindgen_is_string_b29b5c5a8065ba1a: function(arg0) {
|
|
576
|
+
const ret = typeof(arg0) === 'string';
|
|
577
|
+
return ret;
|
|
578
|
+
},
|
|
579
|
+
__wbg___wbindgen_is_undefined_c0cca72b82b86f4d: function(arg0) {
|
|
580
|
+
const ret = arg0 === undefined;
|
|
581
|
+
return ret;
|
|
582
|
+
},
|
|
583
|
+
__wbg___wbindgen_jsval_eq_7d430e744a913d26: function(arg0, arg1) {
|
|
584
|
+
const ret = arg0 === arg1;
|
|
585
|
+
return ret;
|
|
586
|
+
},
|
|
587
|
+
__wbg___wbindgen_jsval_loose_eq_3a72ae764d46d944: function(arg0, arg1) {
|
|
588
|
+
const ret = arg0 == arg1;
|
|
589
|
+
return ret;
|
|
590
|
+
},
|
|
591
|
+
__wbg___wbindgen_number_get_7579aab02a8a620c: function(arg0, arg1) {
|
|
592
|
+
const obj = arg1;
|
|
593
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
594
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
595
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
596
|
+
},
|
|
597
|
+
__wbg___wbindgen_string_get_914df97fcfa788f2: function(arg0, arg1) {
|
|
598
|
+
const obj = arg1;
|
|
599
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
600
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
601
|
+
var len1 = WASM_VECTOR_LEN;
|
|
602
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
603
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
604
|
+
},
|
|
605
|
+
__wbg___wbindgen_throw_81fc77679af83bc6: function(arg0, arg1) {
|
|
606
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
607
|
+
},
|
|
608
|
+
__wbg_call_7f2987183bb62793: function() { return handleError(function (arg0, arg1) {
|
|
609
|
+
const ret = arg0.call(arg1);
|
|
610
|
+
return ret;
|
|
611
|
+
}, arguments); },
|
|
612
|
+
__wbg_done_547d467e97529006: function(arg0) {
|
|
613
|
+
const ret = arg0.done;
|
|
614
|
+
return ret;
|
|
615
|
+
},
|
|
616
|
+
__wbg_entries_616b1a459b85be0b: function(arg0) {
|
|
617
|
+
const ret = Object.entries(arg0);
|
|
618
|
+
return ret;
|
|
619
|
+
},
|
|
620
|
+
__wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
|
|
621
|
+
let deferred0_0;
|
|
622
|
+
let deferred0_1;
|
|
623
|
+
try {
|
|
624
|
+
deferred0_0 = arg0;
|
|
625
|
+
deferred0_1 = arg1;
|
|
626
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
627
|
+
} finally {
|
|
628
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
__wbg_get_4848e350b40afc16: function(arg0, arg1) {
|
|
632
|
+
const ret = arg0[arg1 >>> 0];
|
|
633
|
+
return ret;
|
|
634
|
+
},
|
|
635
|
+
__wbg_get_ed0642c4b9d31ddf: function() { return handleError(function (arg0, arg1) {
|
|
636
|
+
const ret = Reflect.get(arg0, arg1);
|
|
637
|
+
return ret;
|
|
638
|
+
}, arguments); },
|
|
639
|
+
__wbg_get_unchecked_7d7babe32e9e6a54: function(arg0, arg1) {
|
|
640
|
+
const ret = arg0[arg1 >>> 0];
|
|
641
|
+
return ret;
|
|
642
|
+
},
|
|
643
|
+
__wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
|
|
644
|
+
const ret = arg0[arg1];
|
|
645
|
+
return ret;
|
|
646
|
+
},
|
|
647
|
+
__wbg_instanceof_ArrayBuffer_ff7c1337a5e3b33a: function(arg0) {
|
|
648
|
+
let result;
|
|
649
|
+
try {
|
|
650
|
+
result = arg0 instanceof ArrayBuffer;
|
|
651
|
+
} catch (_) {
|
|
652
|
+
result = false;
|
|
653
|
+
}
|
|
654
|
+
const ret = result;
|
|
655
|
+
return ret;
|
|
656
|
+
},
|
|
657
|
+
__wbg_instanceof_Map_a10a2795ef4bfe97: function(arg0) {
|
|
658
|
+
let result;
|
|
659
|
+
try {
|
|
660
|
+
result = arg0 instanceof Map;
|
|
661
|
+
} catch (_) {
|
|
662
|
+
result = false;
|
|
663
|
+
}
|
|
664
|
+
const ret = result;
|
|
665
|
+
return ret;
|
|
666
|
+
},
|
|
667
|
+
__wbg_instanceof_Uint8Array_4b8da683deb25d72: function(arg0) {
|
|
668
|
+
let result;
|
|
669
|
+
try {
|
|
670
|
+
result = arg0 instanceof Uint8Array;
|
|
671
|
+
} catch (_) {
|
|
672
|
+
result = false;
|
|
673
|
+
}
|
|
674
|
+
const ret = result;
|
|
675
|
+
return ret;
|
|
676
|
+
},
|
|
677
|
+
__wbg_isArray_db61795ad004c139: function(arg0) {
|
|
678
|
+
const ret = Array.isArray(arg0);
|
|
679
|
+
return ret;
|
|
680
|
+
},
|
|
681
|
+
__wbg_isSafeInteger_ea83862ba994770c: function(arg0) {
|
|
682
|
+
const ret = Number.isSafeInteger(arg0);
|
|
683
|
+
return ret;
|
|
684
|
+
},
|
|
685
|
+
__wbg_iterator_de403ef31815a3e6: function() {
|
|
686
|
+
const ret = Symbol.iterator;
|
|
687
|
+
return ret;
|
|
688
|
+
},
|
|
689
|
+
__wbg_length_0c32cb8543c8e4c8: function(arg0) {
|
|
690
|
+
const ret = arg0.length;
|
|
691
|
+
return ret;
|
|
692
|
+
},
|
|
693
|
+
__wbg_length_6e821edde497a532: function(arg0) {
|
|
694
|
+
const ret = arg0.length;
|
|
695
|
+
return ret;
|
|
696
|
+
},
|
|
697
|
+
__wbg_new_227d7c05414eb861: function() {
|
|
698
|
+
const ret = new Error();
|
|
699
|
+
return ret;
|
|
700
|
+
},
|
|
701
|
+
__wbg_new_4f9fafbb3909af72: function() {
|
|
702
|
+
const ret = new Object();
|
|
703
|
+
return ret;
|
|
704
|
+
},
|
|
705
|
+
__wbg_new_99cabae501c0a8a0: function() {
|
|
706
|
+
const ret = new Map();
|
|
707
|
+
return ret;
|
|
708
|
+
},
|
|
709
|
+
__wbg_new_a560378ea1240b14: function(arg0) {
|
|
710
|
+
const ret = new Uint8Array(arg0);
|
|
711
|
+
return ret;
|
|
712
|
+
},
|
|
713
|
+
__wbg_new_e3b04b4d53d1b593: function(arg0, arg1) {
|
|
714
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
715
|
+
return ret;
|
|
716
|
+
},
|
|
717
|
+
__wbg_new_f3c9df4f38f3f798: function() {
|
|
718
|
+
const ret = new Array();
|
|
719
|
+
return ret;
|
|
720
|
+
},
|
|
721
|
+
__wbg_next_01132ed6134b8ef5: function(arg0) {
|
|
722
|
+
const ret = arg0.next;
|
|
723
|
+
return ret;
|
|
724
|
+
},
|
|
725
|
+
__wbg_next_b3713ec761a9dbfd: function() { return handleError(function (arg0) {
|
|
726
|
+
const ret = arg0.next();
|
|
727
|
+
return ret;
|
|
728
|
+
}, arguments); },
|
|
729
|
+
__wbg_now_e7c6795a7f81e10f: function(arg0) {
|
|
730
|
+
const ret = arg0.now();
|
|
731
|
+
return ret;
|
|
732
|
+
},
|
|
733
|
+
__wbg_performance_3fcf6e32a7e1ed0a: function(arg0) {
|
|
734
|
+
const ret = arg0.performance;
|
|
735
|
+
return ret;
|
|
736
|
+
},
|
|
737
|
+
__wbg_prototypesetcall_3e05eb9545565046: function(arg0, arg1, arg2) {
|
|
738
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
739
|
+
},
|
|
740
|
+
__wbg_set_08463b1df38a7e29: function(arg0, arg1, arg2) {
|
|
741
|
+
const ret = arg0.set(arg1, arg2);
|
|
742
|
+
return ret;
|
|
743
|
+
},
|
|
744
|
+
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
745
|
+
arg0[arg1] = arg2;
|
|
746
|
+
},
|
|
747
|
+
__wbg_set_6c60b2e8ad0e9383: function(arg0, arg1, arg2) {
|
|
748
|
+
arg0[arg1 >>> 0] = arg2;
|
|
749
|
+
},
|
|
750
|
+
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
751
|
+
const ret = arg1.stack;
|
|
752
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
753
|
+
const len1 = WASM_VECTOR_LEN;
|
|
754
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
755
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
756
|
+
},
|
|
757
|
+
__wbg_static_accessor_GLOBAL_THIS_a1248013d790bf5f: function() {
|
|
758
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
759
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
760
|
+
},
|
|
761
|
+
__wbg_static_accessor_GLOBAL_f2e0f995a21329ff: function() {
|
|
762
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
763
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
764
|
+
},
|
|
765
|
+
__wbg_static_accessor_SELF_24f78b6d23f286ea: function() {
|
|
766
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
767
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
768
|
+
},
|
|
769
|
+
__wbg_static_accessor_WINDOW_59fd959c540fe405: function() {
|
|
770
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
771
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
772
|
+
},
|
|
773
|
+
__wbg_value_7f6052747ccf940f: function(arg0) {
|
|
774
|
+
const ret = arg0.value;
|
|
775
|
+
return ret;
|
|
776
|
+
},
|
|
777
|
+
__wbindgen_cast_0000000000000001: function(arg0) {
|
|
778
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
779
|
+
const ret = arg0;
|
|
780
|
+
return ret;
|
|
781
|
+
},
|
|
782
|
+
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
783
|
+
// Cast intrinsic for `I64 -> Externref`.
|
|
784
|
+
const ret = arg0;
|
|
785
|
+
return ret;
|
|
786
|
+
},
|
|
787
|
+
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
788
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
789
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
790
|
+
return ret;
|
|
791
|
+
},
|
|
792
|
+
__wbindgen_cast_0000000000000004: function(arg0) {
|
|
793
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
794
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
795
|
+
return ret;
|
|
796
|
+
},
|
|
797
|
+
__wbindgen_init_externref_table: function() {
|
|
798
|
+
const table = wasm.__wbindgen_externrefs;
|
|
799
|
+
const offset = table.grow(4);
|
|
800
|
+
table.set(0, undefined);
|
|
801
|
+
table.set(offset + 0, undefined);
|
|
802
|
+
table.set(offset + 1, null);
|
|
803
|
+
table.set(offset + 2, true);
|
|
804
|
+
table.set(offset + 3, false);
|
|
805
|
+
},
|
|
806
|
+
};
|
|
807
|
+
return {
|
|
808
|
+
__proto__: null,
|
|
809
|
+
"./biome_wasm_bg.js": import0,
|
|
810
|
+
};
|
|
811
|
+
}
|
|
827
812
|
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
813
|
+
const DiagnosticPrinterFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
814
|
+
? { register: () => {}, unregister: () => {} }
|
|
815
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_diagnosticprinter_free(ptr >>> 0, 1));
|
|
816
|
+
const MemoryFileSystemFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
817
|
+
? { register: () => {}, unregister: () => {} }
|
|
818
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_memoryfilesystem_free(ptr >>> 0, 1));
|
|
819
|
+
const WorkspaceFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
820
|
+
? { register: () => {}, unregister: () => {} }
|
|
821
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_workspace_free(ptr >>> 0, 1));
|
|
832
822
|
|
|
833
|
-
|
|
834
|
-
const
|
|
835
|
-
|
|
836
|
-
|
|
823
|
+
function addToExternrefTable0(obj) {
|
|
824
|
+
const idx = wasm.__externref_table_alloc();
|
|
825
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
826
|
+
return idx;
|
|
827
|
+
}
|
|
837
828
|
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
try {
|
|
842
|
-
deferred0_0 = arg0;
|
|
843
|
-
deferred0_1 = arg1;
|
|
844
|
-
console.error(getStringFromWasm0(arg0, arg1));
|
|
845
|
-
} finally {
|
|
846
|
-
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
829
|
+
function _assertClass(instance, klass) {
|
|
830
|
+
if (!(instance instanceof klass)) {
|
|
831
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
847
832
|
}
|
|
848
|
-
}
|
|
849
|
-
|
|
850
|
-
exports.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
|
|
851
|
-
const ret = arg0[arg1 >>> 0];
|
|
852
|
-
return ret;
|
|
853
|
-
};
|
|
854
|
-
|
|
855
|
-
exports.__wbg_get_af9dab7e9603ea93 = function() { return handleError(function (arg0, arg1) {
|
|
856
|
-
const ret = Reflect.get(arg0, arg1);
|
|
857
|
-
return ret;
|
|
858
|
-
}, arguments) };
|
|
859
|
-
|
|
860
|
-
exports.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
|
|
861
|
-
const ret = arg0[arg1];
|
|
862
|
-
return ret;
|
|
863
|
-
};
|
|
833
|
+
}
|
|
864
834
|
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
result = false;
|
|
835
|
+
function debugString(val) {
|
|
836
|
+
// primitive types
|
|
837
|
+
const type = typeof val;
|
|
838
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
839
|
+
return `${val}`;
|
|
871
840
|
}
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
};
|
|
875
|
-
|
|
876
|
-
exports.__wbg_instanceof_Map_084be8da74364158 = function(arg0) {
|
|
877
|
-
let result;
|
|
878
|
-
try {
|
|
879
|
-
result = arg0 instanceof Map;
|
|
880
|
-
} catch (_) {
|
|
881
|
-
result = false;
|
|
841
|
+
if (type == 'string') {
|
|
842
|
+
return `"${val}"`;
|
|
882
843
|
}
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
result = arg0 instanceof Uint8Array;
|
|
891
|
-
} catch (_) {
|
|
892
|
-
result = false;
|
|
844
|
+
if (type == 'symbol') {
|
|
845
|
+
const description = val.description;
|
|
846
|
+
if (description == null) {
|
|
847
|
+
return 'Symbol';
|
|
848
|
+
} else {
|
|
849
|
+
return `Symbol(${description})`;
|
|
850
|
+
}
|
|
893
851
|
}
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
};
|
|
942
|
-
|
|
943
|
-
exports.__wbg_new_b546ae120718850e = function() {
|
|
944
|
-
const ret = new Map();
|
|
945
|
-
return ret;
|
|
946
|
-
};
|
|
947
|
-
|
|
948
|
-
exports.__wbg_new_df1173567d5ff028 = function(arg0, arg1) {
|
|
949
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
950
|
-
return ret;
|
|
951
|
-
};
|
|
952
|
-
|
|
953
|
-
exports.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) {
|
|
954
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
955
|
-
return ret;
|
|
956
|
-
};
|
|
852
|
+
if (type == 'function') {
|
|
853
|
+
const name = val.name;
|
|
854
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
855
|
+
return `Function(${name})`;
|
|
856
|
+
} else {
|
|
857
|
+
return 'Function';
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
// objects
|
|
861
|
+
if (Array.isArray(val)) {
|
|
862
|
+
const length = val.length;
|
|
863
|
+
let debug = '[';
|
|
864
|
+
if (length > 0) {
|
|
865
|
+
debug += debugString(val[0]);
|
|
866
|
+
}
|
|
867
|
+
for(let i = 1; i < length; i++) {
|
|
868
|
+
debug += ', ' + debugString(val[i]);
|
|
869
|
+
}
|
|
870
|
+
debug += ']';
|
|
871
|
+
return debug;
|
|
872
|
+
}
|
|
873
|
+
// Test for built-in
|
|
874
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
875
|
+
let className;
|
|
876
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
877
|
+
className = builtInMatches[1];
|
|
878
|
+
} else {
|
|
879
|
+
// Failed to match the standard '[object ClassName]'
|
|
880
|
+
return toString.call(val);
|
|
881
|
+
}
|
|
882
|
+
if (className == 'Object') {
|
|
883
|
+
// we're a user defined class or Object
|
|
884
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
885
|
+
// easier than looping through ownProperties of `val`.
|
|
886
|
+
try {
|
|
887
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
888
|
+
} catch (_) {
|
|
889
|
+
return 'Object';
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
// errors
|
|
893
|
+
if (val instanceof Error) {
|
|
894
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
895
|
+
}
|
|
896
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
897
|
+
return className;
|
|
898
|
+
}
|
|
957
899
|
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
return
|
|
961
|
-
}
|
|
900
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
901
|
+
ptr = ptr >>> 0;
|
|
902
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
903
|
+
}
|
|
962
904
|
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
905
|
+
let cachedDataViewMemory0 = null;
|
|
906
|
+
function getDataViewMemory0() {
|
|
907
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
908
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
909
|
+
}
|
|
910
|
+
return cachedDataViewMemory0;
|
|
911
|
+
}
|
|
967
912
|
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
return
|
|
971
|
-
}
|
|
913
|
+
function getStringFromWasm0(ptr, len) {
|
|
914
|
+
ptr = ptr >>> 0;
|
|
915
|
+
return decodeText(ptr, len);
|
|
916
|
+
}
|
|
972
917
|
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
918
|
+
let cachedUint8ArrayMemory0 = null;
|
|
919
|
+
function getUint8ArrayMemory0() {
|
|
920
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
921
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
922
|
+
}
|
|
923
|
+
return cachedUint8ArrayMemory0;
|
|
924
|
+
}
|
|
977
925
|
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
926
|
+
function handleError(f, args) {
|
|
927
|
+
try {
|
|
928
|
+
return f.apply(this, args);
|
|
929
|
+
} catch (e) {
|
|
930
|
+
const idx = addToExternrefTable0(e);
|
|
931
|
+
wasm.__wbindgen_exn_store(idx);
|
|
932
|
+
}
|
|
933
|
+
}
|
|
981
934
|
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
}
|
|
935
|
+
function isLikeNone(x) {
|
|
936
|
+
return x === undefined || x === null;
|
|
937
|
+
}
|
|
985
938
|
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
939
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
940
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
941
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
942
|
+
WASM_VECTOR_LEN = arg.length;
|
|
943
|
+
return ptr;
|
|
944
|
+
}
|
|
989
945
|
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
946
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
947
|
+
if (realloc === undefined) {
|
|
948
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
949
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
950
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
951
|
+
WASM_VECTOR_LEN = buf.length;
|
|
952
|
+
return ptr;
|
|
953
|
+
}
|
|
994
954
|
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
998
|
-
const len1 = WASM_VECTOR_LEN;
|
|
999
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1000
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1001
|
-
};
|
|
955
|
+
let len = arg.length;
|
|
956
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
1002
957
|
|
|
1003
|
-
|
|
1004
|
-
const ret = typeof global === 'undefined' ? null : global;
|
|
1005
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1006
|
-
};
|
|
958
|
+
const mem = getUint8ArrayMemory0();
|
|
1007
959
|
|
|
1008
|
-
|
|
1009
|
-
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1010
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1011
|
-
};
|
|
960
|
+
let offset = 0;
|
|
1012
961
|
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
962
|
+
for (; offset < len; offset++) {
|
|
963
|
+
const code = arg.charCodeAt(offset);
|
|
964
|
+
if (code > 0x7F) break;
|
|
965
|
+
mem[ptr + offset] = code;
|
|
966
|
+
}
|
|
967
|
+
if (offset !== len) {
|
|
968
|
+
if (offset !== 0) {
|
|
969
|
+
arg = arg.slice(offset);
|
|
970
|
+
}
|
|
971
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
972
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
973
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
1017
974
|
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
};
|
|
975
|
+
offset += ret.written;
|
|
976
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
977
|
+
}
|
|
1022
978
|
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
};
|
|
979
|
+
WASM_VECTOR_LEN = offset;
|
|
980
|
+
return ptr;
|
|
981
|
+
}
|
|
1027
982
|
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
return
|
|
1032
|
-
}
|
|
983
|
+
function takeFromExternrefTable0(idx) {
|
|
984
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
985
|
+
wasm.__externref_table_dealloc(idx);
|
|
986
|
+
return value;
|
|
987
|
+
}
|
|
1033
988
|
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
return
|
|
1038
|
-
}
|
|
989
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
990
|
+
cachedTextDecoder.decode();
|
|
991
|
+
function decodeText(ptr, len) {
|
|
992
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
993
|
+
}
|
|
1039
994
|
|
|
1040
|
-
|
|
1041
|
-
// Cast intrinsic for `I64 -> Externref`.
|
|
1042
|
-
const ret = arg0;
|
|
1043
|
-
return ret;
|
|
1044
|
-
};
|
|
995
|
+
const cachedTextEncoder = new TextEncoder();
|
|
1045
996
|
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
997
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
998
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
999
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1000
|
+
view.set(buf);
|
|
1001
|
+
return {
|
|
1002
|
+
read: arg.length,
|
|
1003
|
+
written: buf.length
|
|
1004
|
+
};
|
|
1005
|
+
};
|
|
1006
|
+
}
|
|
1051
1007
|
|
|
1052
|
-
|
|
1053
|
-
const table = wasm.__wbindgen_externrefs;
|
|
1054
|
-
const offset = table.grow(4);
|
|
1055
|
-
table.set(0, undefined);
|
|
1056
|
-
table.set(offset + 0, undefined);
|
|
1057
|
-
table.set(offset + 1, null);
|
|
1058
|
-
table.set(offset + 2, true);
|
|
1059
|
-
table.set(offset + 3, false);
|
|
1060
|
-
};
|
|
1008
|
+
let WASM_VECTOR_LEN = 0;
|
|
1061
1009
|
|
|
1062
1010
|
const wasmPath = `${__dirname}/biome_wasm_bg.wasm`;
|
|
1063
1011
|
const wasmBytes = require('fs').readFileSync(wasmPath);
|
|
1064
1012
|
const wasmModule = new WebAssembly.Module(wasmBytes);
|
|
1065
|
-
|
|
1066
|
-
|
|
1013
|
+
let wasm = new WebAssembly.Instance(wasmModule, __wbg_get_imports()).exports;
|
|
1067
1014
|
wasm.__wbindgen_start();
|