@codemod.com/codemod-sandbox 0.1.0
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/src/capabilities.d.ts +12 -0
- package/dist/src/capabilities.js +43 -0
- package/dist/src/factory.d.ts +134 -0
- package/dist/src/factory.js +1143 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +3 -0
- package/dist/src/module.d.ts +13 -0
- package/dist/src/module.js +46 -0
- package/dist/src/node-exports.d.ts +1 -0
- package/dist/src/node-exports.js +1 -0
- package/dist/src/node.d.ts +18 -0
- package/dist/src/node.js +69 -0
- package/dist/src/telemetry.d.ts +16 -0
- package/dist/src/telemetry.js +28 -0
- package/dist/src/type-declarations.d.ts +1 -0
- package/dist/src/type-declarations.js +26 -0
- package/dist/src/types.d.ts +26 -0
- package/dist/src/types.js +1 -0
- package/dist/src/web-exports.d.ts +1 -0
- package/dist/src/web-exports.js +1 -0
- package/dist/src/web.d.ts +18 -0
- package/dist/src/web.js +91 -0
- package/package.json +49 -0
- package/sandbox.wasm +0 -0
|
@@ -0,0 +1,1143 @@
|
|
|
1
|
+
import { fetch } from './capabilities.js';
|
|
2
|
+
import { Parser, Language } from 'web-tree-sitter';
|
|
3
|
+
export const RAW_WASM = Symbol();
|
|
4
|
+
export default function () {
|
|
5
|
+
let wasm;
|
|
6
|
+
function __wbg_set_wasm(val) {
|
|
7
|
+
wasm = val;
|
|
8
|
+
}
|
|
9
|
+
let WASM_VECTOR_LEN = 0;
|
|
10
|
+
let cachedUint8ArrayMemory0 = null;
|
|
11
|
+
function getUint8ArrayMemory0() {
|
|
12
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
13
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
14
|
+
}
|
|
15
|
+
return cachedUint8ArrayMemory0;
|
|
16
|
+
}
|
|
17
|
+
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
|
18
|
+
let cachedTextEncoder = new lTextEncoder('utf-8');
|
|
19
|
+
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
20
|
+
? function (arg, view) {
|
|
21
|
+
return cachedTextEncoder.encodeInto(arg, view);
|
|
22
|
+
}
|
|
23
|
+
: function (arg, view) {
|
|
24
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
25
|
+
view.set(buf);
|
|
26
|
+
return {
|
|
27
|
+
read: arg.length,
|
|
28
|
+
written: buf.length
|
|
29
|
+
};
|
|
30
|
+
});
|
|
31
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
32
|
+
if (realloc === undefined) {
|
|
33
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
34
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
35
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
36
|
+
WASM_VECTOR_LEN = buf.length;
|
|
37
|
+
return ptr;
|
|
38
|
+
}
|
|
39
|
+
let len = arg.length;
|
|
40
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
41
|
+
const mem = getUint8ArrayMemory0();
|
|
42
|
+
let offset = 0;
|
|
43
|
+
for (; offset < len; offset++) {
|
|
44
|
+
const code = arg.charCodeAt(offset);
|
|
45
|
+
if (code > 0x7F)
|
|
46
|
+
break;
|
|
47
|
+
mem[ptr + offset] = code;
|
|
48
|
+
}
|
|
49
|
+
if (offset !== len) {
|
|
50
|
+
if (offset !== 0) {
|
|
51
|
+
arg = arg.slice(offset);
|
|
52
|
+
}
|
|
53
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
54
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
55
|
+
const ret = encodeString(arg, view);
|
|
56
|
+
offset += ret.written;
|
|
57
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
58
|
+
}
|
|
59
|
+
WASM_VECTOR_LEN = offset;
|
|
60
|
+
return ptr;
|
|
61
|
+
}
|
|
62
|
+
let cachedDataViewMemory0 = null;
|
|
63
|
+
function getDataViewMemory0() {
|
|
64
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
65
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
66
|
+
}
|
|
67
|
+
return cachedDataViewMemory0;
|
|
68
|
+
}
|
|
69
|
+
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
|
70
|
+
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
71
|
+
cachedTextDecoder.decode();
|
|
72
|
+
function getStringFromWasm0(ptr, len) {
|
|
73
|
+
ptr = ptr >>> 0;
|
|
74
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
75
|
+
}
|
|
76
|
+
function addToExternrefTable0(obj) {
|
|
77
|
+
const idx = wasm.__externref_table_alloc();
|
|
78
|
+
wasm.__wbindgen_export_4.set(idx, obj);
|
|
79
|
+
return idx;
|
|
80
|
+
}
|
|
81
|
+
function handleError(f, args) {
|
|
82
|
+
try {
|
|
83
|
+
return f.apply(this, args);
|
|
84
|
+
}
|
|
85
|
+
catch (e) {
|
|
86
|
+
const idx = addToExternrefTable0(e);
|
|
87
|
+
wasm.__wbindgen_exn_store(idx);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
function isLikeNone(x) {
|
|
91
|
+
return x === undefined || x === null;
|
|
92
|
+
}
|
|
93
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
94
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
95
|
+
for (let i = 0; i < array.length; i++) {
|
|
96
|
+
const add = addToExternrefTable0(array[i]);
|
|
97
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
98
|
+
}
|
|
99
|
+
WASM_VECTOR_LEN = array.length;
|
|
100
|
+
return ptr;
|
|
101
|
+
}
|
|
102
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
103
|
+
ptr = ptr >>> 0;
|
|
104
|
+
const mem = getDataViewMemory0();
|
|
105
|
+
const result = [];
|
|
106
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
107
|
+
result.push(wasm.__wbindgen_export_4.get(mem.getUint32(i, true)));
|
|
108
|
+
}
|
|
109
|
+
wasm.__externref_drop_slice(ptr, len);
|
|
110
|
+
return result;
|
|
111
|
+
}
|
|
112
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
113
|
+
? { register: () => { }, unregister: () => { } }
|
|
114
|
+
: new FinalizationRegistry(state => {
|
|
115
|
+
wasm.__wbindgen_export_7.get(state.dtor)(state.a, state.b);
|
|
116
|
+
});
|
|
117
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
118
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
119
|
+
const real = (...args) => {
|
|
120
|
+
// First up with a closure we increment the internal reference
|
|
121
|
+
// count. This ensures that the Rust closure environment won't
|
|
122
|
+
// be deallocated while we're invoking it.
|
|
123
|
+
state.cnt++;
|
|
124
|
+
const a = state.a;
|
|
125
|
+
state.a = 0;
|
|
126
|
+
try {
|
|
127
|
+
return f(a, state.b, ...args);
|
|
128
|
+
}
|
|
129
|
+
finally {
|
|
130
|
+
if (--state.cnt === 0) {
|
|
131
|
+
wasm.__wbindgen_export_7.get(state.dtor)(a, state.b);
|
|
132
|
+
CLOSURE_DTORS.unregister(state);
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
state.a = a;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
real.original = state;
|
|
140
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
141
|
+
return real;
|
|
142
|
+
}
|
|
143
|
+
function debugString(val) {
|
|
144
|
+
// primitive types
|
|
145
|
+
const type = typeof val;
|
|
146
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
147
|
+
return `${val}`;
|
|
148
|
+
}
|
|
149
|
+
if (type == 'string') {
|
|
150
|
+
return `"${val}"`;
|
|
151
|
+
}
|
|
152
|
+
if (type == 'symbol') {
|
|
153
|
+
const description = val.description;
|
|
154
|
+
if (description == null) {
|
|
155
|
+
return 'Symbol';
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
return `Symbol(${description})`;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
if (type == 'function') {
|
|
162
|
+
const name = val.name;
|
|
163
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
164
|
+
return `Function(${name})`;
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
return 'Function';
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
// objects
|
|
171
|
+
if (Array.isArray(val)) {
|
|
172
|
+
const length = val.length;
|
|
173
|
+
let debug = '[';
|
|
174
|
+
if (length > 0) {
|
|
175
|
+
debug += debugString(val[0]);
|
|
176
|
+
}
|
|
177
|
+
for (let i = 1; i < length; i++) {
|
|
178
|
+
debug += ', ' + debugString(val[i]);
|
|
179
|
+
}
|
|
180
|
+
debug += ']';
|
|
181
|
+
return debug;
|
|
182
|
+
}
|
|
183
|
+
// Test for built-in
|
|
184
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
185
|
+
let className;
|
|
186
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
187
|
+
className = builtInMatches[1];
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
// Failed to match the standard '[object ClassName]'
|
|
191
|
+
return toString.call(val);
|
|
192
|
+
}
|
|
193
|
+
if (className == 'Object') {
|
|
194
|
+
// we're a user defined class or Object
|
|
195
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
196
|
+
// easier than looping through ownProperties of `val`.
|
|
197
|
+
try {
|
|
198
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
199
|
+
}
|
|
200
|
+
catch (_) {
|
|
201
|
+
return 'Object';
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
// errors
|
|
205
|
+
if (val instanceof Error) {
|
|
206
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
207
|
+
}
|
|
208
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
209
|
+
return className;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* @param {Function | null} [locate_file]
|
|
213
|
+
* @returns {Promise<void>}
|
|
214
|
+
*/
|
|
215
|
+
function initializeTreeSitter(locate_file) {
|
|
216
|
+
const ret = wasm.initializeTreeSitter(isLikeNone(locate_file) ? 0 : addToExternrefTable0(locate_file));
|
|
217
|
+
return ret;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* @param {string} lang_name
|
|
221
|
+
* @param {string} parser_path
|
|
222
|
+
* @returns {Promise<void>}
|
|
223
|
+
*/
|
|
224
|
+
function setupParser(lang_name, parser_path) {
|
|
225
|
+
const ptr0 = passStringToWasm0(lang_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
226
|
+
const len0 = WASM_VECTOR_LEN;
|
|
227
|
+
const ptr1 = passStringToWasm0(parser_path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
228
|
+
const len1 = WASM_VECTOR_LEN;
|
|
229
|
+
const ret = wasm.setupParser(ptr0, len0, ptr1, len1);
|
|
230
|
+
return ret;
|
|
231
|
+
}
|
|
232
|
+
function takeFromExternrefTable0(idx) {
|
|
233
|
+
const value = wasm.__wbindgen_export_4.get(idx);
|
|
234
|
+
wasm.__externref_table_dealloc(idx);
|
|
235
|
+
return value;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* @param {string} code
|
|
239
|
+
* @returns {string}
|
|
240
|
+
*/
|
|
241
|
+
function eval_code(code) {
|
|
242
|
+
let deferred3_0;
|
|
243
|
+
let deferred3_1;
|
|
244
|
+
try {
|
|
245
|
+
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
246
|
+
const len0 = WASM_VECTOR_LEN;
|
|
247
|
+
const ret = wasm.eval_code(ptr0, len0);
|
|
248
|
+
var ptr2 = ret[0];
|
|
249
|
+
var len2 = ret[1];
|
|
250
|
+
if (ret[3]) {
|
|
251
|
+
ptr2 = 0;
|
|
252
|
+
len2 = 0;
|
|
253
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
254
|
+
}
|
|
255
|
+
deferred3_0 = ptr2;
|
|
256
|
+
deferred3_1 = len2;
|
|
257
|
+
return getStringFromWasm0(ptr2, len2);
|
|
258
|
+
}
|
|
259
|
+
finally {
|
|
260
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* @param {string} invocation_id
|
|
265
|
+
* @param {string} method
|
|
266
|
+
* @param {string} name
|
|
267
|
+
* @param {any} modules
|
|
268
|
+
* @param {string} code
|
|
269
|
+
* @param {string} json
|
|
270
|
+
* @returns {Promise<string>}
|
|
271
|
+
*/
|
|
272
|
+
function run_module(invocation_id, method, name, modules, code, json) {
|
|
273
|
+
const ptr0 = passStringToWasm0(invocation_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
274
|
+
const len0 = WASM_VECTOR_LEN;
|
|
275
|
+
const ptr1 = passStringToWasm0(method, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
276
|
+
const len1 = WASM_VECTOR_LEN;
|
|
277
|
+
const ptr2 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
278
|
+
const len2 = WASM_VECTOR_LEN;
|
|
279
|
+
const ptr3 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
280
|
+
const len3 = WASM_VECTOR_LEN;
|
|
281
|
+
const ptr4 = passStringToWasm0(json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
282
|
+
const len4 = WASM_VECTOR_LEN;
|
|
283
|
+
const ret = wasm.run_module(ptr0, len0, ptr1, len1, ptr2, len2, modules, ptr3, len3, ptr4, len4);
|
|
284
|
+
return ret;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* @param {string} src
|
|
288
|
+
* @param {any[]} configs
|
|
289
|
+
* @returns {any}
|
|
290
|
+
*/
|
|
291
|
+
function scanFind(src, configs) {
|
|
292
|
+
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
293
|
+
const len0 = WASM_VECTOR_LEN;
|
|
294
|
+
const ptr1 = passArrayJsValueToWasm0(configs, wasm.__wbindgen_malloc);
|
|
295
|
+
const len1 = WASM_VECTOR_LEN;
|
|
296
|
+
const ret = wasm.scanFind(ptr0, len0, ptr1, len1);
|
|
297
|
+
if (ret[2]) {
|
|
298
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
299
|
+
}
|
|
300
|
+
return takeFromExternrefTable0(ret[0]);
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* @param {string} src
|
|
304
|
+
* @param {any[]} configs
|
|
305
|
+
* @returns {string}
|
|
306
|
+
*/
|
|
307
|
+
function scanFix(src, configs) {
|
|
308
|
+
let deferred4_0;
|
|
309
|
+
let deferred4_1;
|
|
310
|
+
try {
|
|
311
|
+
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
312
|
+
const len0 = WASM_VECTOR_LEN;
|
|
313
|
+
const ptr1 = passArrayJsValueToWasm0(configs, wasm.__wbindgen_malloc);
|
|
314
|
+
const len1 = WASM_VECTOR_LEN;
|
|
315
|
+
const ret = wasm.scanFix(ptr0, len0, ptr1, len1);
|
|
316
|
+
var ptr3 = ret[0];
|
|
317
|
+
var len3 = ret[1];
|
|
318
|
+
if (ret[3]) {
|
|
319
|
+
ptr3 = 0;
|
|
320
|
+
len3 = 0;
|
|
321
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
322
|
+
}
|
|
323
|
+
deferred4_0 = ptr3;
|
|
324
|
+
deferred4_1 = len3;
|
|
325
|
+
return getStringFromWasm0(ptr3, len3);
|
|
326
|
+
}
|
|
327
|
+
finally {
|
|
328
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* @param {string} src
|
|
333
|
+
* @returns {any}
|
|
334
|
+
*/
|
|
335
|
+
function dumpASTNodes(src) {
|
|
336
|
+
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
337
|
+
const len0 = WASM_VECTOR_LEN;
|
|
338
|
+
const ret = wasm.dumpASTNodes(ptr0, len0);
|
|
339
|
+
if (ret[2]) {
|
|
340
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
341
|
+
}
|
|
342
|
+
return takeFromExternrefTable0(ret[0]);
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* @param {string} src
|
|
346
|
+
* @param {string | null} [selector]
|
|
347
|
+
* @returns {any}
|
|
348
|
+
*/
|
|
349
|
+
function dumpPattern(src, selector) {
|
|
350
|
+
const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
351
|
+
const len0 = WASM_VECTOR_LEN;
|
|
352
|
+
var ptr1 = isLikeNone(selector) ? 0 : passStringToWasm0(selector, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
353
|
+
var len1 = WASM_VECTOR_LEN;
|
|
354
|
+
const ret = wasm.dumpPattern(ptr0, len0, ptr1, len1);
|
|
355
|
+
if (ret[2]) {
|
|
356
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
357
|
+
}
|
|
358
|
+
return takeFromExternrefTable0(ret[0]);
|
|
359
|
+
}
|
|
360
|
+
function __wbg_adapter_50(arg0, arg1, arg2) {
|
|
361
|
+
wasm.closure1704_externref_shim(arg0, arg1, arg2);
|
|
362
|
+
}
|
|
363
|
+
function __wbg_adapter_199(arg0, arg1, arg2, arg3) {
|
|
364
|
+
wasm.closure1726_externref_shim(arg0, arg1, arg2, arg3);
|
|
365
|
+
}
|
|
366
|
+
function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
367
|
+
const ret = String(arg1);
|
|
368
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
369
|
+
const len1 = WASM_VECTOR_LEN;
|
|
370
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
371
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
372
|
+
}
|
|
373
|
+
;
|
|
374
|
+
function __wbg_atob_b687cf564517d11e(arg0, arg1, arg2) {
|
|
375
|
+
const ret = atob(getStringFromWasm0(arg1, arg2));
|
|
376
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
377
|
+
const len1 = WASM_VECTOR_LEN;
|
|
378
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
379
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
380
|
+
}
|
|
381
|
+
;
|
|
382
|
+
function __wbg_btoa_f1cc8b23625c1733(arg0, arg1, arg2) {
|
|
383
|
+
const ret = btoa(getStringFromWasm0(arg1, arg2));
|
|
384
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
385
|
+
const len1 = WASM_VECTOR_LEN;
|
|
386
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
387
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
388
|
+
}
|
|
389
|
+
;
|
|
390
|
+
function __wbg_buffer_609cc3eee51ed158(arg0) {
|
|
391
|
+
const ret = arg0.buffer;
|
|
392
|
+
return ret;
|
|
393
|
+
}
|
|
394
|
+
;
|
|
395
|
+
function __wbg_call_672a4d21634d4a24() {
|
|
396
|
+
return handleError(function (arg0, arg1) {
|
|
397
|
+
const ret = arg0.call(arg1);
|
|
398
|
+
return ret;
|
|
399
|
+
}, arguments);
|
|
400
|
+
}
|
|
401
|
+
;
|
|
402
|
+
function __wbg_call_7cccdd69e0791ae2() {
|
|
403
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
404
|
+
const ret = arg0.call(arg1, arg2);
|
|
405
|
+
return ret;
|
|
406
|
+
}, arguments);
|
|
407
|
+
}
|
|
408
|
+
;
|
|
409
|
+
function __wbg_childCount_a6b8bf01a93e53da(arg0) {
|
|
410
|
+
const ret = arg0.childCount;
|
|
411
|
+
return ret;
|
|
412
|
+
}
|
|
413
|
+
;
|
|
414
|
+
function __wbg_childForFieldId_e1ff577760482763(arg0, arg1) {
|
|
415
|
+
const ret = arg0.childForFieldId(arg1);
|
|
416
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
417
|
+
}
|
|
418
|
+
;
|
|
419
|
+
function __wbg_childForFieldName_c30c3ad6e6d7b2d5(arg0, arg1, arg2) {
|
|
420
|
+
const ret = arg0.childForFieldName(getStringFromWasm0(arg1, arg2));
|
|
421
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
422
|
+
}
|
|
423
|
+
;
|
|
424
|
+
function __wbg_child_1ecd54afc9b93ff5(arg0, arg1) {
|
|
425
|
+
const ret = arg0.child(arg1 >>> 0);
|
|
426
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
427
|
+
}
|
|
428
|
+
;
|
|
429
|
+
function __wbg_children_9c7bca8276138d26(arg0, arg1) {
|
|
430
|
+
const ret = arg1.children;
|
|
431
|
+
const ptr1 = passArrayJsValueToWasm0(ret, wasm.__wbindgen_malloc);
|
|
432
|
+
const len1 = WASM_VECTOR_LEN;
|
|
433
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
434
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
435
|
+
}
|
|
436
|
+
;
|
|
437
|
+
function __wbg_column_e22f48f18c5be5af(arg0) {
|
|
438
|
+
const ret = arg0.column;
|
|
439
|
+
return ret;
|
|
440
|
+
}
|
|
441
|
+
;
|
|
442
|
+
function __wbg_currentFieldId_45a539bb96e00de6(arg0) {
|
|
443
|
+
const ret = arg0.currentFieldId;
|
|
444
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret;
|
|
445
|
+
}
|
|
446
|
+
;
|
|
447
|
+
function __wbg_currentFieldName_2bf460c2ff4cb55f(arg0) {
|
|
448
|
+
const ret = arg0.currentFieldName;
|
|
449
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
450
|
+
}
|
|
451
|
+
;
|
|
452
|
+
function __wbg_currentNode_71762eadafc49fc0(arg0) {
|
|
453
|
+
const ret = arg0.currentNode;
|
|
454
|
+
return ret;
|
|
455
|
+
}
|
|
456
|
+
;
|
|
457
|
+
function __wbg_done_769e5ede4b31c67b(arg0) {
|
|
458
|
+
const ret = arg0.done;
|
|
459
|
+
return ret;
|
|
460
|
+
}
|
|
461
|
+
;
|
|
462
|
+
function __wbg_endIndex_d3aa1552abc6599c(arg0) {
|
|
463
|
+
const ret = arg0.endIndex;
|
|
464
|
+
return ret;
|
|
465
|
+
}
|
|
466
|
+
;
|
|
467
|
+
function __wbg_endPosition_a4796193570eccbd(arg0) {
|
|
468
|
+
const ret = arg0.endPosition;
|
|
469
|
+
return ret;
|
|
470
|
+
}
|
|
471
|
+
;
|
|
472
|
+
function __wbg_entries_3265d4158b33e5dc(arg0) {
|
|
473
|
+
const ret = Object.entries(arg0);
|
|
474
|
+
return ret;
|
|
475
|
+
}
|
|
476
|
+
;
|
|
477
|
+
function __wbg_error_55b26df739c2fe8b(arg0, arg1) {
|
|
478
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
479
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
480
|
+
console.error(...v0);
|
|
481
|
+
}
|
|
482
|
+
;
|
|
483
|
+
function __wbg_fetch_71724d6f0f8d9962(arg0, arg1, arg2, arg3) {
|
|
484
|
+
let deferred0_0;
|
|
485
|
+
let deferred0_1;
|
|
486
|
+
let deferred1_0;
|
|
487
|
+
let deferred1_1;
|
|
488
|
+
try {
|
|
489
|
+
deferred0_0 = arg0;
|
|
490
|
+
deferred0_1 = arg1;
|
|
491
|
+
deferred1_0 = arg2;
|
|
492
|
+
deferred1_1 = arg3;
|
|
493
|
+
const ret = fetch(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
494
|
+
return ret;
|
|
495
|
+
}
|
|
496
|
+
finally {
|
|
497
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
498
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
;
|
|
502
|
+
function __wbg_fieldIdForName_ed243dd7e35f4861(arg0, arg1, arg2) {
|
|
503
|
+
const ret = arg0.fieldIdForName(getStringFromWasm0(arg1, arg2));
|
|
504
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret;
|
|
505
|
+
}
|
|
506
|
+
;
|
|
507
|
+
function __wbg_from_2a5d3e218e67aa85(arg0) {
|
|
508
|
+
const ret = Array.from(arg0);
|
|
509
|
+
return ret;
|
|
510
|
+
}
|
|
511
|
+
;
|
|
512
|
+
function __wbg_get_67b2ba62fc30de12() {
|
|
513
|
+
return handleError(function (arg0, arg1) {
|
|
514
|
+
const ret = Reflect.get(arg0, arg1);
|
|
515
|
+
return ret;
|
|
516
|
+
}, arguments);
|
|
517
|
+
}
|
|
518
|
+
;
|
|
519
|
+
function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
|
|
520
|
+
const ret = arg0[arg1 >>> 0];
|
|
521
|
+
return ret;
|
|
522
|
+
}
|
|
523
|
+
;
|
|
524
|
+
function __wbg_getwithrefkey_1dc361bd10053bfe(arg0, arg1) {
|
|
525
|
+
const ret = arg0[arg1];
|
|
526
|
+
return ret;
|
|
527
|
+
}
|
|
528
|
+
;
|
|
529
|
+
function __wbg_gotoFirstChild_252ce106a4886852(arg0) {
|
|
530
|
+
const ret = arg0.gotoFirstChild();
|
|
531
|
+
return ret;
|
|
532
|
+
}
|
|
533
|
+
;
|
|
534
|
+
function __wbg_gotoNextSibling_04b8655b389f7e62(arg0) {
|
|
535
|
+
const ret = arg0.gotoNextSibling();
|
|
536
|
+
return ret;
|
|
537
|
+
}
|
|
538
|
+
;
|
|
539
|
+
function __wbg_gotoParent_667cb6debc76112d(arg0) {
|
|
540
|
+
const ret = arg0.gotoParent();
|
|
541
|
+
return ret;
|
|
542
|
+
}
|
|
543
|
+
;
|
|
544
|
+
function __wbg_idForNodeType_f69d5a20ec58af31(arg0, arg1, arg2, arg3) {
|
|
545
|
+
const ret = arg0.idForNodeType(getStringFromWasm0(arg1, arg2), arg3 !== 0);
|
|
546
|
+
return ret;
|
|
547
|
+
}
|
|
548
|
+
;
|
|
549
|
+
function __wbg_id_46703548bec1f10b(arg0) {
|
|
550
|
+
const ret = arg0.id;
|
|
551
|
+
return ret;
|
|
552
|
+
}
|
|
553
|
+
;
|
|
554
|
+
function __wbg_init_89fd7d76d7bb0691(arg0) {
|
|
555
|
+
const ret = Parser.init(arg0);
|
|
556
|
+
return ret;
|
|
557
|
+
}
|
|
558
|
+
;
|
|
559
|
+
function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0) {
|
|
560
|
+
let result;
|
|
561
|
+
try {
|
|
562
|
+
result = arg0 instanceof ArrayBuffer;
|
|
563
|
+
}
|
|
564
|
+
catch (_) {
|
|
565
|
+
result = false;
|
|
566
|
+
}
|
|
567
|
+
const ret = result;
|
|
568
|
+
return ret;
|
|
569
|
+
}
|
|
570
|
+
;
|
|
571
|
+
function __wbg_instanceof_Error_4d54113b22d20306(arg0) {
|
|
572
|
+
let result;
|
|
573
|
+
try {
|
|
574
|
+
result = arg0 instanceof Error;
|
|
575
|
+
}
|
|
576
|
+
catch (_) {
|
|
577
|
+
result = false;
|
|
578
|
+
}
|
|
579
|
+
const ret = result;
|
|
580
|
+
return ret;
|
|
581
|
+
}
|
|
582
|
+
;
|
|
583
|
+
function __wbg_instanceof_Map_f3469ce2244d2430(arg0) {
|
|
584
|
+
let result;
|
|
585
|
+
try {
|
|
586
|
+
result = arg0 instanceof Map;
|
|
587
|
+
}
|
|
588
|
+
catch (_) {
|
|
589
|
+
result = false;
|
|
590
|
+
}
|
|
591
|
+
const ret = result;
|
|
592
|
+
return ret;
|
|
593
|
+
}
|
|
594
|
+
;
|
|
595
|
+
function __wbg_instanceof_Uint8Array_17156bcf118086a9(arg0) {
|
|
596
|
+
let result;
|
|
597
|
+
try {
|
|
598
|
+
result = arg0 instanceof Uint8Array;
|
|
599
|
+
}
|
|
600
|
+
catch (_) {
|
|
601
|
+
result = false;
|
|
602
|
+
}
|
|
603
|
+
const ret = result;
|
|
604
|
+
return ret;
|
|
605
|
+
}
|
|
606
|
+
;
|
|
607
|
+
function __wbg_isArray_a1eab7e0d067391b(arg0) {
|
|
608
|
+
const ret = Array.isArray(arg0);
|
|
609
|
+
return ret;
|
|
610
|
+
}
|
|
611
|
+
;
|
|
612
|
+
function __wbg_isMissing_fdcbb1d762ec3abf(arg0) {
|
|
613
|
+
const ret = arg0.isMissing;
|
|
614
|
+
return ret;
|
|
615
|
+
}
|
|
616
|
+
;
|
|
617
|
+
function __wbg_isNamed_e49e788404dd0c6b(arg0) {
|
|
618
|
+
const ret = arg0.isNamed;
|
|
619
|
+
return ret;
|
|
620
|
+
}
|
|
621
|
+
;
|
|
622
|
+
function __wbg_isSafeInteger_343e2beeeece1bb0(arg0) {
|
|
623
|
+
const ret = Number.isSafeInteger(arg0);
|
|
624
|
+
return ret;
|
|
625
|
+
}
|
|
626
|
+
;
|
|
627
|
+
function __wbg_iterator_9a24c88df860dc65() {
|
|
628
|
+
const ret = Symbol.iterator;
|
|
629
|
+
return ret;
|
|
630
|
+
}
|
|
631
|
+
;
|
|
632
|
+
function __wbg_length_a446193dc22c12f8(arg0) {
|
|
633
|
+
const ret = arg0.length;
|
|
634
|
+
return ret;
|
|
635
|
+
}
|
|
636
|
+
;
|
|
637
|
+
function __wbg_length_e2d2a49132c1b256(arg0) {
|
|
638
|
+
const ret = arg0.length;
|
|
639
|
+
return ret;
|
|
640
|
+
}
|
|
641
|
+
;
|
|
642
|
+
function __wbg_load_ac005a13bbebdb0b(arg0, arg1) {
|
|
643
|
+
const ret = Language.load(getStringFromWasm0(arg0, arg1));
|
|
644
|
+
return ret;
|
|
645
|
+
}
|
|
646
|
+
;
|
|
647
|
+
function __wbg_log_b79a24d377a91090(arg0, arg1) {
|
|
648
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
649
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
650
|
+
console.log(...v0);
|
|
651
|
+
}
|
|
652
|
+
;
|
|
653
|
+
function __wbg_message_97a2af9b89d693a3(arg0) {
|
|
654
|
+
const ret = arg0.message;
|
|
655
|
+
return ret;
|
|
656
|
+
}
|
|
657
|
+
;
|
|
658
|
+
function __wbg_namedChildCount_44a0f24db74f4d08(arg0) {
|
|
659
|
+
const ret = arg0.namedChildCount;
|
|
660
|
+
return ret;
|
|
661
|
+
}
|
|
662
|
+
;
|
|
663
|
+
function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
664
|
+
try {
|
|
665
|
+
var state0 = { a: arg0, b: arg1 };
|
|
666
|
+
var cb0 = (arg0, arg1) => {
|
|
667
|
+
const a = state0.a;
|
|
668
|
+
state0.a = 0;
|
|
669
|
+
try {
|
|
670
|
+
return __wbg_adapter_199(a, state0.b, arg0, arg1);
|
|
671
|
+
}
|
|
672
|
+
finally {
|
|
673
|
+
state0.a = a;
|
|
674
|
+
}
|
|
675
|
+
};
|
|
676
|
+
const ret = new Promise(cb0);
|
|
677
|
+
return ret;
|
|
678
|
+
}
|
|
679
|
+
finally {
|
|
680
|
+
state0.a = state0.b = 0;
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
;
|
|
684
|
+
function __wbg_new_405e22f390576ce2() {
|
|
685
|
+
const ret = new Object();
|
|
686
|
+
return ret;
|
|
687
|
+
}
|
|
688
|
+
;
|
|
689
|
+
function __wbg_new_5e0be73521bc8c17() {
|
|
690
|
+
const ret = new Map();
|
|
691
|
+
return ret;
|
|
692
|
+
}
|
|
693
|
+
;
|
|
694
|
+
function __wbg_new_617dbf964b61f53e() {
|
|
695
|
+
return handleError(function () {
|
|
696
|
+
const ret = new Parser();
|
|
697
|
+
return ret;
|
|
698
|
+
}, arguments);
|
|
699
|
+
}
|
|
700
|
+
;
|
|
701
|
+
function __wbg_new_78feb108b6472713() {
|
|
702
|
+
const ret = new Array();
|
|
703
|
+
return ret;
|
|
704
|
+
}
|
|
705
|
+
;
|
|
706
|
+
function __wbg_new_a12002a7f91c75be(arg0) {
|
|
707
|
+
const ret = new Uint8Array(arg0);
|
|
708
|
+
return ret;
|
|
709
|
+
}
|
|
710
|
+
;
|
|
711
|
+
function __wbg_newnoargs_105ed471475aaf50(arg0, arg1) {
|
|
712
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
713
|
+
return ret;
|
|
714
|
+
}
|
|
715
|
+
;
|
|
716
|
+
function __wbg_nextSibling_b371f151ed94a89b(arg0) {
|
|
717
|
+
const ret = arg0.nextSibling;
|
|
718
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
719
|
+
}
|
|
720
|
+
;
|
|
721
|
+
function __wbg_next_25feadfc0913fea9(arg0) {
|
|
722
|
+
const ret = arg0.next;
|
|
723
|
+
return ret;
|
|
724
|
+
}
|
|
725
|
+
;
|
|
726
|
+
function __wbg_next_6574e1a8a62d1055() {
|
|
727
|
+
return handleError(function (arg0) {
|
|
728
|
+
const ret = arg0.next();
|
|
729
|
+
return ret;
|
|
730
|
+
}, arguments);
|
|
731
|
+
}
|
|
732
|
+
;
|
|
733
|
+
function __wbg_parent_647e5f3765673032(arg0) {
|
|
734
|
+
const ret = arg0.parent;
|
|
735
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
736
|
+
}
|
|
737
|
+
;
|
|
738
|
+
function __wbg_parse_211b75b6b50e2da5() {
|
|
739
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
740
|
+
const ret = arg0.parse(arg1, arg2, arg3);
|
|
741
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
742
|
+
}, arguments);
|
|
743
|
+
}
|
|
744
|
+
;
|
|
745
|
+
function __wbg_parse_def2e24ef1252aff() {
|
|
746
|
+
return handleError(function (arg0, arg1) {
|
|
747
|
+
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
748
|
+
return ret;
|
|
749
|
+
}, arguments);
|
|
750
|
+
}
|
|
751
|
+
;
|
|
752
|
+
function __wbg_previousSibling_0d5cdd5a811cedb2(arg0) {
|
|
753
|
+
const ret = arg0.previousSibling;
|
|
754
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
755
|
+
}
|
|
756
|
+
;
|
|
757
|
+
function __wbg_queueMicrotask_97d92b4fcc8a61c5(arg0) {
|
|
758
|
+
queueMicrotask(arg0);
|
|
759
|
+
}
|
|
760
|
+
;
|
|
761
|
+
function __wbg_queueMicrotask_d3219def82552485(arg0) {
|
|
762
|
+
const ret = arg0.queueMicrotask;
|
|
763
|
+
return ret;
|
|
764
|
+
}
|
|
765
|
+
;
|
|
766
|
+
function __wbg_resolve_4851785c9c5f573d(arg0) {
|
|
767
|
+
const ret = Promise.resolve(arg0);
|
|
768
|
+
return ret;
|
|
769
|
+
}
|
|
770
|
+
;
|
|
771
|
+
function __wbg_rootNode_5b87afbf1cb30f6f(arg0) {
|
|
772
|
+
const ret = arg0.rootNode;
|
|
773
|
+
return ret;
|
|
774
|
+
}
|
|
775
|
+
;
|
|
776
|
+
function __wbg_row_3a241ac449e90b14(arg0) {
|
|
777
|
+
const ret = arg0.row;
|
|
778
|
+
return ret;
|
|
779
|
+
}
|
|
780
|
+
;
|
|
781
|
+
function __wbg_setLanguage_183086649e428443() {
|
|
782
|
+
return handleError(function (arg0, arg1) {
|
|
783
|
+
arg0.setLanguage(arg1);
|
|
784
|
+
}, arguments);
|
|
785
|
+
}
|
|
786
|
+
;
|
|
787
|
+
function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
|
|
788
|
+
arg0[arg1 >>> 0] = arg2;
|
|
789
|
+
}
|
|
790
|
+
;
|
|
791
|
+
function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
792
|
+
arg0[arg1] = arg2;
|
|
793
|
+
}
|
|
794
|
+
;
|
|
795
|
+
function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
|
|
796
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
797
|
+
}
|
|
798
|
+
;
|
|
799
|
+
function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
|
|
800
|
+
const ret = arg0.set(arg1, arg2);
|
|
801
|
+
return ret;
|
|
802
|
+
}
|
|
803
|
+
;
|
|
804
|
+
function __wbg_set_bb8cecf6a62b9f46() {
|
|
805
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
806
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
807
|
+
return ret;
|
|
808
|
+
}, arguments);
|
|
809
|
+
}
|
|
810
|
+
;
|
|
811
|
+
function __wbg_startIndex_466622c3156f49af(arg0) {
|
|
812
|
+
const ret = arg0.startIndex;
|
|
813
|
+
return ret;
|
|
814
|
+
}
|
|
815
|
+
;
|
|
816
|
+
function __wbg_startPosition_222a04896d7d160c(arg0) {
|
|
817
|
+
const ret = arg0.startPosition;
|
|
818
|
+
return ret;
|
|
819
|
+
}
|
|
820
|
+
;
|
|
821
|
+
function __wbg_static_accessor_GLOBAL_88a902d13a557d07() {
|
|
822
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
823
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
824
|
+
}
|
|
825
|
+
;
|
|
826
|
+
function __wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0() {
|
|
827
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
828
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
829
|
+
}
|
|
830
|
+
;
|
|
831
|
+
function __wbg_static_accessor_SELF_37c5d418e4bf5819() {
|
|
832
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
833
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
834
|
+
}
|
|
835
|
+
;
|
|
836
|
+
function __wbg_static_accessor_WINDOW_5de37043a91a9c40() {
|
|
837
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
838
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
839
|
+
}
|
|
840
|
+
;
|
|
841
|
+
function __wbg_text_8bf8fa91111a698f(arg0) {
|
|
842
|
+
const ret = arg0.text;
|
|
843
|
+
return ret;
|
|
844
|
+
}
|
|
845
|
+
;
|
|
846
|
+
function __wbg_then_44b73946d2fb3e7d(arg0, arg1) {
|
|
847
|
+
const ret = arg0.then(arg1);
|
|
848
|
+
return ret;
|
|
849
|
+
}
|
|
850
|
+
;
|
|
851
|
+
function __wbg_then_48b406749878a531(arg0, arg1, arg2) {
|
|
852
|
+
const ret = arg0.then(arg1, arg2);
|
|
853
|
+
return ret;
|
|
854
|
+
}
|
|
855
|
+
;
|
|
856
|
+
function __wbg_typeId_e158ac425466c562(arg0) {
|
|
857
|
+
const ret = arg0.typeId;
|
|
858
|
+
return ret;
|
|
859
|
+
}
|
|
860
|
+
;
|
|
861
|
+
function __wbg_type_8c03f5de5dcc70e8(arg0) {
|
|
862
|
+
const ret = arg0.type;
|
|
863
|
+
return ret;
|
|
864
|
+
}
|
|
865
|
+
;
|
|
866
|
+
function __wbg_value_cd1ffa7b1ab794f1(arg0) {
|
|
867
|
+
const ret = arg0.value;
|
|
868
|
+
return ret;
|
|
869
|
+
}
|
|
870
|
+
;
|
|
871
|
+
function __wbg_walk_5a10ef3cc747c1a7(arg0) {
|
|
872
|
+
const ret = arg0.walk();
|
|
873
|
+
return ret;
|
|
874
|
+
}
|
|
875
|
+
;
|
|
876
|
+
function __wbg_warn_dec08065228a61fc(arg0, arg1) {
|
|
877
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
|
878
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
|
879
|
+
console.warn(...v0);
|
|
880
|
+
}
|
|
881
|
+
;
|
|
882
|
+
function __wbindgen_bigint_from_i64(arg0) {
|
|
883
|
+
const ret = arg0;
|
|
884
|
+
return ret;
|
|
885
|
+
}
|
|
886
|
+
;
|
|
887
|
+
function __wbindgen_bigint_from_u64(arg0) {
|
|
888
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
889
|
+
return ret;
|
|
890
|
+
}
|
|
891
|
+
;
|
|
892
|
+
function __wbindgen_bigint_get_as_i64(arg0, arg1) {
|
|
893
|
+
const v = arg1;
|
|
894
|
+
const ret = typeof (v) === 'bigint' ? v : undefined;
|
|
895
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
896
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
897
|
+
}
|
|
898
|
+
;
|
|
899
|
+
function __wbindgen_boolean_get(arg0) {
|
|
900
|
+
const v = arg0;
|
|
901
|
+
const ret = typeof (v) === 'boolean' ? (v ? 1 : 0) : 2;
|
|
902
|
+
return ret;
|
|
903
|
+
}
|
|
904
|
+
;
|
|
905
|
+
function __wbindgen_cb_drop(arg0) {
|
|
906
|
+
const obj = arg0.original;
|
|
907
|
+
if (obj.cnt-- == 1) {
|
|
908
|
+
obj.a = 0;
|
|
909
|
+
return true;
|
|
910
|
+
}
|
|
911
|
+
const ret = false;
|
|
912
|
+
return ret;
|
|
913
|
+
}
|
|
914
|
+
;
|
|
915
|
+
function __wbindgen_closure_wrapper4812(arg0, arg1, arg2) {
|
|
916
|
+
const ret = makeMutClosure(arg0, arg1, 1705, __wbg_adapter_50);
|
|
917
|
+
return ret;
|
|
918
|
+
}
|
|
919
|
+
;
|
|
920
|
+
function __wbindgen_debug_string(arg0, arg1) {
|
|
921
|
+
const ret = debugString(arg1);
|
|
922
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
923
|
+
const len1 = WASM_VECTOR_LEN;
|
|
924
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
925
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
926
|
+
}
|
|
927
|
+
;
|
|
928
|
+
function __wbindgen_error_new(arg0, arg1) {
|
|
929
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
930
|
+
return ret;
|
|
931
|
+
}
|
|
932
|
+
;
|
|
933
|
+
function __wbindgen_in(arg0, arg1) {
|
|
934
|
+
const ret = arg0 in arg1;
|
|
935
|
+
return ret;
|
|
936
|
+
}
|
|
937
|
+
;
|
|
938
|
+
function __wbindgen_init_externref_table() {
|
|
939
|
+
const table = wasm.__wbindgen_export_4;
|
|
940
|
+
const offset = table.grow(4);
|
|
941
|
+
table.set(0, undefined);
|
|
942
|
+
table.set(offset + 0, undefined);
|
|
943
|
+
table.set(offset + 1, null);
|
|
944
|
+
table.set(offset + 2, true);
|
|
945
|
+
table.set(offset + 3, false);
|
|
946
|
+
;
|
|
947
|
+
}
|
|
948
|
+
;
|
|
949
|
+
function __wbindgen_is_bigint(arg0) {
|
|
950
|
+
const ret = typeof (arg0) === 'bigint';
|
|
951
|
+
return ret;
|
|
952
|
+
}
|
|
953
|
+
;
|
|
954
|
+
function __wbindgen_is_function(arg0) {
|
|
955
|
+
const ret = typeof (arg0) === 'function';
|
|
956
|
+
return ret;
|
|
957
|
+
}
|
|
958
|
+
;
|
|
959
|
+
function __wbindgen_is_object(arg0) {
|
|
960
|
+
const val = arg0;
|
|
961
|
+
const ret = typeof (val) === 'object' && val !== null;
|
|
962
|
+
return ret;
|
|
963
|
+
}
|
|
964
|
+
;
|
|
965
|
+
function __wbindgen_is_string(arg0) {
|
|
966
|
+
const ret = typeof (arg0) === 'string';
|
|
967
|
+
return ret;
|
|
968
|
+
}
|
|
969
|
+
;
|
|
970
|
+
function __wbindgen_is_undefined(arg0) {
|
|
971
|
+
const ret = arg0 === undefined;
|
|
972
|
+
return ret;
|
|
973
|
+
}
|
|
974
|
+
;
|
|
975
|
+
function __wbindgen_jsval_eq(arg0, arg1) {
|
|
976
|
+
const ret = arg0 === arg1;
|
|
977
|
+
return ret;
|
|
978
|
+
}
|
|
979
|
+
;
|
|
980
|
+
function __wbindgen_jsval_loose_eq(arg0, arg1) {
|
|
981
|
+
const ret = arg0 == arg1;
|
|
982
|
+
return ret;
|
|
983
|
+
}
|
|
984
|
+
;
|
|
985
|
+
function __wbindgen_memory() {
|
|
986
|
+
const ret = wasm.memory;
|
|
987
|
+
return ret;
|
|
988
|
+
}
|
|
989
|
+
;
|
|
990
|
+
function __wbindgen_number_get(arg0, arg1) {
|
|
991
|
+
const obj = arg1;
|
|
992
|
+
const ret = typeof (obj) === 'number' ? obj : undefined;
|
|
993
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
994
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
995
|
+
}
|
|
996
|
+
;
|
|
997
|
+
function __wbindgen_number_new(arg0) {
|
|
998
|
+
const ret = arg0;
|
|
999
|
+
return ret;
|
|
1000
|
+
}
|
|
1001
|
+
;
|
|
1002
|
+
function __wbindgen_string_get(arg0, arg1) {
|
|
1003
|
+
const obj = arg1;
|
|
1004
|
+
const ret = typeof (obj) === 'string' ? obj : undefined;
|
|
1005
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1006
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1007
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1008
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1009
|
+
}
|
|
1010
|
+
;
|
|
1011
|
+
function __wbindgen_string_new(arg0, arg1) {
|
|
1012
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1013
|
+
return ret;
|
|
1014
|
+
}
|
|
1015
|
+
;
|
|
1016
|
+
function __wbindgen_throw(arg0, arg1) {
|
|
1017
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1018
|
+
}
|
|
1019
|
+
;
|
|
1020
|
+
return {
|
|
1021
|
+
[RAW_WASM]: wasm,
|
|
1022
|
+
__wbg_set_wasm,
|
|
1023
|
+
initializeTreeSitter,
|
|
1024
|
+
setupParser,
|
|
1025
|
+
eval_code,
|
|
1026
|
+
run_module,
|
|
1027
|
+
scanFind,
|
|
1028
|
+
scanFix,
|
|
1029
|
+
dumpASTNodes,
|
|
1030
|
+
dumpPattern,
|
|
1031
|
+
__wbg_String_8f0eb39a4a4c2f66,
|
|
1032
|
+
__wbg_atob_b687cf564517d11e,
|
|
1033
|
+
__wbg_btoa_f1cc8b23625c1733,
|
|
1034
|
+
__wbg_buffer_609cc3eee51ed158,
|
|
1035
|
+
__wbg_call_672a4d21634d4a24,
|
|
1036
|
+
__wbg_call_7cccdd69e0791ae2,
|
|
1037
|
+
__wbg_childCount_a6b8bf01a93e53da,
|
|
1038
|
+
__wbg_childForFieldId_e1ff577760482763,
|
|
1039
|
+
__wbg_childForFieldName_c30c3ad6e6d7b2d5,
|
|
1040
|
+
__wbg_child_1ecd54afc9b93ff5,
|
|
1041
|
+
__wbg_children_9c7bca8276138d26,
|
|
1042
|
+
__wbg_column_e22f48f18c5be5af,
|
|
1043
|
+
__wbg_currentFieldId_45a539bb96e00de6,
|
|
1044
|
+
__wbg_currentFieldName_2bf460c2ff4cb55f,
|
|
1045
|
+
__wbg_currentNode_71762eadafc49fc0,
|
|
1046
|
+
__wbg_done_769e5ede4b31c67b,
|
|
1047
|
+
__wbg_endIndex_d3aa1552abc6599c,
|
|
1048
|
+
__wbg_endPosition_a4796193570eccbd,
|
|
1049
|
+
__wbg_entries_3265d4158b33e5dc,
|
|
1050
|
+
__wbg_error_55b26df739c2fe8b,
|
|
1051
|
+
__wbg_fetch_71724d6f0f8d9962,
|
|
1052
|
+
__wbg_fieldIdForName_ed243dd7e35f4861,
|
|
1053
|
+
__wbg_from_2a5d3e218e67aa85,
|
|
1054
|
+
__wbg_get_67b2ba62fc30de12,
|
|
1055
|
+
__wbg_get_b9b93047fe3cf45b,
|
|
1056
|
+
__wbg_getwithrefkey_1dc361bd10053bfe,
|
|
1057
|
+
__wbg_gotoFirstChild_252ce106a4886852,
|
|
1058
|
+
__wbg_gotoNextSibling_04b8655b389f7e62,
|
|
1059
|
+
__wbg_gotoParent_667cb6debc76112d,
|
|
1060
|
+
__wbg_idForNodeType_f69d5a20ec58af31,
|
|
1061
|
+
__wbg_id_46703548bec1f10b,
|
|
1062
|
+
__wbg_init_89fd7d76d7bb0691,
|
|
1063
|
+
__wbg_instanceof_ArrayBuffer_e14585432e3737fc,
|
|
1064
|
+
__wbg_instanceof_Error_4d54113b22d20306,
|
|
1065
|
+
__wbg_instanceof_Map_f3469ce2244d2430,
|
|
1066
|
+
__wbg_instanceof_Uint8Array_17156bcf118086a9,
|
|
1067
|
+
__wbg_isArray_a1eab7e0d067391b,
|
|
1068
|
+
__wbg_isMissing_fdcbb1d762ec3abf,
|
|
1069
|
+
__wbg_isNamed_e49e788404dd0c6b,
|
|
1070
|
+
__wbg_isSafeInteger_343e2beeeece1bb0,
|
|
1071
|
+
__wbg_iterator_9a24c88df860dc65,
|
|
1072
|
+
__wbg_length_a446193dc22c12f8,
|
|
1073
|
+
__wbg_length_e2d2a49132c1b256,
|
|
1074
|
+
__wbg_load_ac005a13bbebdb0b,
|
|
1075
|
+
__wbg_log_b79a24d377a91090,
|
|
1076
|
+
__wbg_message_97a2af9b89d693a3,
|
|
1077
|
+
__wbg_namedChildCount_44a0f24db74f4d08,
|
|
1078
|
+
__wbg_new_23a2665fac83c611,
|
|
1079
|
+
__wbg_new_405e22f390576ce2,
|
|
1080
|
+
__wbg_new_5e0be73521bc8c17,
|
|
1081
|
+
__wbg_new_617dbf964b61f53e,
|
|
1082
|
+
__wbg_new_78feb108b6472713,
|
|
1083
|
+
__wbg_new_a12002a7f91c75be,
|
|
1084
|
+
__wbg_newnoargs_105ed471475aaf50,
|
|
1085
|
+
__wbg_nextSibling_b371f151ed94a89b,
|
|
1086
|
+
__wbg_next_25feadfc0913fea9,
|
|
1087
|
+
__wbg_next_6574e1a8a62d1055,
|
|
1088
|
+
__wbg_parent_647e5f3765673032,
|
|
1089
|
+
__wbg_parse_211b75b6b50e2da5,
|
|
1090
|
+
__wbg_parse_def2e24ef1252aff,
|
|
1091
|
+
__wbg_previousSibling_0d5cdd5a811cedb2,
|
|
1092
|
+
__wbg_queueMicrotask_97d92b4fcc8a61c5,
|
|
1093
|
+
__wbg_queueMicrotask_d3219def82552485,
|
|
1094
|
+
__wbg_resolve_4851785c9c5f573d,
|
|
1095
|
+
__wbg_rootNode_5b87afbf1cb30f6f,
|
|
1096
|
+
__wbg_row_3a241ac449e90b14,
|
|
1097
|
+
__wbg_setLanguage_183086649e428443,
|
|
1098
|
+
__wbg_set_37837023f3d740e8,
|
|
1099
|
+
__wbg_set_3f1d0b984ed272ed,
|
|
1100
|
+
__wbg_set_65595bdd868b3009,
|
|
1101
|
+
__wbg_set_8fc6bf8a5b1071d1,
|
|
1102
|
+
__wbg_set_bb8cecf6a62b9f46,
|
|
1103
|
+
__wbg_startIndex_466622c3156f49af,
|
|
1104
|
+
__wbg_startPosition_222a04896d7d160c,
|
|
1105
|
+
__wbg_static_accessor_GLOBAL_88a902d13a557d07,
|
|
1106
|
+
__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0,
|
|
1107
|
+
__wbg_static_accessor_SELF_37c5d418e4bf5819,
|
|
1108
|
+
__wbg_static_accessor_WINDOW_5de37043a91a9c40,
|
|
1109
|
+
__wbg_text_8bf8fa91111a698f,
|
|
1110
|
+
__wbg_then_44b73946d2fb3e7d,
|
|
1111
|
+
__wbg_then_48b406749878a531,
|
|
1112
|
+
__wbg_typeId_e158ac425466c562,
|
|
1113
|
+
__wbg_type_8c03f5de5dcc70e8,
|
|
1114
|
+
__wbg_value_cd1ffa7b1ab794f1,
|
|
1115
|
+
__wbg_walk_5a10ef3cc747c1a7,
|
|
1116
|
+
__wbg_warn_dec08065228a61fc,
|
|
1117
|
+
__wbindgen_bigint_from_i64,
|
|
1118
|
+
__wbindgen_bigint_from_u64,
|
|
1119
|
+
__wbindgen_bigint_get_as_i64,
|
|
1120
|
+
__wbindgen_boolean_get,
|
|
1121
|
+
__wbindgen_cb_drop,
|
|
1122
|
+
__wbindgen_closure_wrapper4812,
|
|
1123
|
+
__wbindgen_debug_string,
|
|
1124
|
+
__wbindgen_error_new,
|
|
1125
|
+
__wbindgen_in,
|
|
1126
|
+
__wbindgen_init_externref_table,
|
|
1127
|
+
__wbindgen_is_bigint,
|
|
1128
|
+
__wbindgen_is_function,
|
|
1129
|
+
__wbindgen_is_object,
|
|
1130
|
+
__wbindgen_is_string,
|
|
1131
|
+
__wbindgen_is_undefined,
|
|
1132
|
+
__wbindgen_jsval_eq,
|
|
1133
|
+
__wbindgen_jsval_loose_eq,
|
|
1134
|
+
__wbindgen_memory,
|
|
1135
|
+
__wbindgen_number_get,
|
|
1136
|
+
__wbindgen_number_new,
|
|
1137
|
+
__wbindgen_string_get,
|
|
1138
|
+
__wbindgen_string_new,
|
|
1139
|
+
__wbindgen_throw,
|
|
1140
|
+
Parser: Parser,
|
|
1141
|
+
Language: Language,
|
|
1142
|
+
};
|
|
1143
|
+
}
|