qlue-ls 0.5.6 → 0.5.8

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/qlue_ls.js CHANGED
@@ -1,5 +1,672 @@
1
- import * as wasm from "./qlue_ls_bg.wasm";
2
- export * from "./qlue_ls_bg.js";
3
- import { __wbg_set_wasm } from "./qlue_ls_bg.js";
4
- __wbg_set_wasm(wasm);
5
- wasm.__wbindgen_start();
1
+ let wasm;
2
+
3
+ function addToExternrefTable0(obj) {
4
+ const idx = wasm.__externref_table_alloc();
5
+ wasm.__wbindgen_export_2.set(idx, obj);
6
+ return idx;
7
+ }
8
+
9
+ function handleError(f, args) {
10
+ try {
11
+ return f.apply(this, args);
12
+ } catch (e) {
13
+ const idx = addToExternrefTable0(e);
14
+ wasm.__wbindgen_exn_store(idx);
15
+ }
16
+ }
17
+
18
+ const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
19
+
20
+ if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
21
+
22
+ let cachedUint8ArrayMemory0 = null;
23
+
24
+ function getUint8ArrayMemory0() {
25
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
26
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
27
+ }
28
+ return cachedUint8ArrayMemory0;
29
+ }
30
+
31
+ function getStringFromWasm0(ptr, len) {
32
+ ptr = ptr >>> 0;
33
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
34
+ }
35
+
36
+ let WASM_VECTOR_LEN = 0;
37
+
38
+ const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
39
+
40
+ const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
41
+ ? function (arg, view) {
42
+ return cachedTextEncoder.encodeInto(arg, view);
43
+ }
44
+ : function (arg, view) {
45
+ const buf = cachedTextEncoder.encode(arg);
46
+ view.set(buf);
47
+ return {
48
+ read: arg.length,
49
+ written: buf.length
50
+ };
51
+ });
52
+
53
+ function passStringToWasm0(arg, malloc, realloc) {
54
+
55
+ if (realloc === undefined) {
56
+ const buf = cachedTextEncoder.encode(arg);
57
+ const ptr = malloc(buf.length, 1) >>> 0;
58
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
59
+ WASM_VECTOR_LEN = buf.length;
60
+ return ptr;
61
+ }
62
+
63
+ let len = arg.length;
64
+ let ptr = malloc(len, 1) >>> 0;
65
+
66
+ const mem = getUint8ArrayMemory0();
67
+
68
+ let offset = 0;
69
+
70
+ for (; offset < len; offset++) {
71
+ const code = arg.charCodeAt(offset);
72
+ if (code > 0x7F) break;
73
+ mem[ptr + offset] = code;
74
+ }
75
+
76
+ if (offset !== len) {
77
+ if (offset !== 0) {
78
+ arg = arg.slice(offset);
79
+ }
80
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
81
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
82
+ const ret = encodeString(arg, view);
83
+
84
+ offset += ret.written;
85
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
86
+ }
87
+
88
+ WASM_VECTOR_LEN = offset;
89
+ return ptr;
90
+ }
91
+
92
+ let cachedDataViewMemory0 = null;
93
+
94
+ function getDataViewMemory0() {
95
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
96
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
97
+ }
98
+ return cachedDataViewMemory0;
99
+ }
100
+
101
+ function isLikeNone(x) {
102
+ return x === undefined || x === null;
103
+ }
104
+
105
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
106
+ ? { register: () => {}, unregister: () => {} }
107
+ : new FinalizationRegistry(state => {
108
+ wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b)
109
+ });
110
+
111
+ function makeMutClosure(arg0, arg1, dtor, f) {
112
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
113
+ const real = (...args) => {
114
+ // First up with a closure we increment the internal reference
115
+ // count. This ensures that the Rust closure environment won't
116
+ // be deallocated while we're invoking it.
117
+ state.cnt++;
118
+ const a = state.a;
119
+ state.a = 0;
120
+ try {
121
+ return f(a, state.b, ...args);
122
+ } finally {
123
+ if (--state.cnt === 0) {
124
+ wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
125
+ CLOSURE_DTORS.unregister(state);
126
+ } else {
127
+ state.a = a;
128
+ }
129
+ }
130
+ };
131
+ real.original = state;
132
+ CLOSURE_DTORS.register(real, state, state);
133
+ return real;
134
+ }
135
+
136
+ function debugString(val) {
137
+ // primitive types
138
+ const type = typeof val;
139
+ if (type == 'number' || type == 'boolean' || val == null) {
140
+ return `${val}`;
141
+ }
142
+ if (type == 'string') {
143
+ return `"${val}"`;
144
+ }
145
+ if (type == 'symbol') {
146
+ const description = val.description;
147
+ if (description == null) {
148
+ return 'Symbol';
149
+ } else {
150
+ return `Symbol(${description})`;
151
+ }
152
+ }
153
+ if (type == 'function') {
154
+ const name = val.name;
155
+ if (typeof name == 'string' && name.length > 0) {
156
+ return `Function(${name})`;
157
+ } else {
158
+ return 'Function';
159
+ }
160
+ }
161
+ // objects
162
+ if (Array.isArray(val)) {
163
+ const length = val.length;
164
+ let debug = '[';
165
+ if (length > 0) {
166
+ debug += debugString(val[0]);
167
+ }
168
+ for(let i = 1; i < length; i++) {
169
+ debug += ', ' + debugString(val[i]);
170
+ }
171
+ debug += ']';
172
+ return debug;
173
+ }
174
+ // Test for built-in
175
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
176
+ let className;
177
+ if (builtInMatches && builtInMatches.length > 1) {
178
+ className = builtInMatches[1];
179
+ } else {
180
+ // Failed to match the standard '[object ClassName]'
181
+ return toString.call(val);
182
+ }
183
+ if (className == 'Object') {
184
+ // we're a user defined class or Object
185
+ // JSON.stringify avoids problems with cycles, and is generally much
186
+ // easier than looping through ownProperties of `val`.
187
+ try {
188
+ return 'Object(' + JSON.stringify(val) + ')';
189
+ } catch (_) {
190
+ return 'Object';
191
+ }
192
+ }
193
+ // errors
194
+ if (val instanceof Error) {
195
+ return `${val.name}: ${val.message}\n${val.stack}`;
196
+ }
197
+ // TODO we could test for more things here, like `Set`s and `Map`s.
198
+ return className;
199
+ }
200
+ /**
201
+ * @param {WritableStreamDefaultWriter} writer
202
+ * @returns {Server}
203
+ */
204
+ export function init_language_server(writer) {
205
+ const ret = wasm.init_language_server(writer);
206
+ return Server.__wrap(ret);
207
+ }
208
+
209
+ function takeFromExternrefTable0(idx) {
210
+ const value = wasm.__wbindgen_export_2.get(idx);
211
+ wasm.__externref_table_dealloc(idx);
212
+ return value;
213
+ }
214
+ /**
215
+ * @param {string} text
216
+ * @returns {string}
217
+ */
218
+ export function format_raw(text) {
219
+ let deferred3_0;
220
+ let deferred3_1;
221
+ try {
222
+ const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
223
+ const len0 = WASM_VECTOR_LEN;
224
+ const ret = wasm.format_raw(ptr0, len0);
225
+ var ptr2 = ret[0];
226
+ var len2 = ret[1];
227
+ if (ret[3]) {
228
+ ptr2 = 0; len2 = 0;
229
+ throw takeFromExternrefTable0(ret[2]);
230
+ }
231
+ deferred3_0 = ptr2;
232
+ deferred3_1 = len2;
233
+ return getStringFromWasm0(ptr2, len2);
234
+ } finally {
235
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
236
+ }
237
+ }
238
+
239
+ /**
240
+ * @param {string} text
241
+ * @returns {string}
242
+ */
243
+ export function determine_operation_type(text) {
244
+ let deferred3_0;
245
+ let deferred3_1;
246
+ try {
247
+ const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
248
+ const len0 = WASM_VECTOR_LEN;
249
+ const ret = wasm.determine_operation_type(ptr0, len0);
250
+ var ptr2 = ret[0];
251
+ var len2 = ret[1];
252
+ if (ret[3]) {
253
+ ptr2 = 0; len2 = 0;
254
+ throw takeFromExternrefTable0(ret[2]);
255
+ }
256
+ deferred3_0 = ptr2;
257
+ deferred3_1 = len2;
258
+ return getStringFromWasm0(ptr2, len2);
259
+ } finally {
260
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
261
+ }
262
+ }
263
+
264
+ /**
265
+ * @param {string} input
266
+ * @param {number} offset
267
+ * @returns {any}
268
+ */
269
+ export function get_parse_tree(input, offset) {
270
+ const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
271
+ const len0 = WASM_VECTOR_LEN;
272
+ const ret = wasm.get_parse_tree(ptr0, len0, offset);
273
+ return ret;
274
+ }
275
+
276
+ function __wbg_adapter_24(arg0, arg1, arg2) {
277
+ wasm.closure568_externref_shim(arg0, arg1, arg2);
278
+ }
279
+
280
+ function __wbg_adapter_92(arg0, arg1, arg2, arg3) {
281
+ wasm.closure580_externref_shim(arg0, arg1, arg2, arg3);
282
+ }
283
+
284
+ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
285
+
286
+ const ServerFinalization = (typeof FinalizationRegistry === 'undefined')
287
+ ? { register: () => {}, unregister: () => {} }
288
+ : new FinalizationRegistry(ptr => wasm.__wbg_server_free(ptr >>> 0, 1));
289
+
290
+ export class Server {
291
+
292
+ static __wrap(ptr) {
293
+ ptr = ptr >>> 0;
294
+ const obj = Object.create(Server.prototype);
295
+ obj.__wbg_ptr = ptr;
296
+ ServerFinalization.register(obj, obj.__wbg_ptr, obj);
297
+ return obj;
298
+ }
299
+
300
+ __destroy_into_raw() {
301
+ const ptr = this.__wbg_ptr;
302
+ this.__wbg_ptr = 0;
303
+ ServerFinalization.unregister(this);
304
+ return ptr;
305
+ }
306
+
307
+ free() {
308
+ const ptr = this.__destroy_into_raw();
309
+ wasm.__wbg_server_free(ptr, 0);
310
+ }
311
+ /**
312
+ * @param {ReadableStreamDefaultReader} reader
313
+ * @returns {Promise<void>}
314
+ */
315
+ listen(reader) {
316
+ const ret = wasm.server_listen(this.__wbg_ptr, reader);
317
+ return ret;
318
+ }
319
+ }
320
+
321
+ async function __wbg_load(module, imports) {
322
+ if (typeof Response === 'function' && module instanceof Response) {
323
+ if (typeof WebAssembly.instantiateStreaming === 'function') {
324
+ try {
325
+ return await WebAssembly.instantiateStreaming(module, imports);
326
+
327
+ } catch (e) {
328
+ if (module.headers.get('Content-Type') != 'application/wasm') {
329
+ console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
330
+
331
+ } else {
332
+ throw e;
333
+ }
334
+ }
335
+ }
336
+
337
+ const bytes = await module.arrayBuffer();
338
+ return await WebAssembly.instantiate(bytes, imports);
339
+
340
+ } else {
341
+ const instance = await WebAssembly.instantiate(module, imports);
342
+
343
+ if (instance instanceof WebAssembly.Instance) {
344
+ return { instance, module };
345
+
346
+ } else {
347
+ return instance;
348
+ }
349
+ }
350
+ }
351
+
352
+ function __wbg_get_imports() {
353
+ const imports = {};
354
+ imports.wbg = {};
355
+ imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
356
+ const ret = arg0.call(arg1);
357
+ return ret;
358
+ }, arguments) };
359
+ imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
360
+ const ret = arg0.call(arg1, arg2);
361
+ return ret;
362
+ }, arguments) };
363
+ imports.wbg.__wbg_debug_e17b51583ca6a632 = function(arg0, arg1, arg2, arg3) {
364
+ console.debug(arg0, arg1, arg2, arg3);
365
+ };
366
+ imports.wbg.__wbg_error_524f506f44df1645 = function(arg0) {
367
+ console.error(arg0);
368
+ };
369
+ imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
370
+ let deferred0_0;
371
+ let deferred0_1;
372
+ try {
373
+ deferred0_0 = arg0;
374
+ deferred0_1 = arg1;
375
+ console.error(getStringFromWasm0(arg0, arg1));
376
+ } finally {
377
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
378
+ }
379
+ };
380
+ imports.wbg.__wbg_error_80de38b3f7cc3c3c = function(arg0, arg1, arg2, arg3) {
381
+ console.error(arg0, arg1, arg2, arg3);
382
+ };
383
+ imports.wbg.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
384
+ const ret = arg0.fetch(arg1);
385
+ return ret;
386
+ };
387
+ imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
388
+ const ret = Reflect.get(arg0, arg1);
389
+ return ret;
390
+ }, arguments) };
391
+ imports.wbg.__wbg_headers_7852a8ea641c1379 = function(arg0) {
392
+ const ret = arg0.headers;
393
+ return ret;
394
+ };
395
+ imports.wbg.__wbg_info_033d8b8a0838f1d3 = function(arg0, arg1, arg2, arg3) {
396
+ console.info(arg0, arg1, arg2, arg3);
397
+ };
398
+ imports.wbg.__wbg_instanceof_Response_f2cc20d9f7dfd644 = function(arg0) {
399
+ let result;
400
+ try {
401
+ result = arg0 instanceof Response;
402
+ } catch (_) {
403
+ result = false;
404
+ }
405
+ const ret = result;
406
+ return ret;
407
+ };
408
+ imports.wbg.__wbg_log_cad59bb680daec67 = function(arg0, arg1, arg2, arg3) {
409
+ console.log(arg0, arg1, arg2, arg3);
410
+ };
411
+ imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
412
+ try {
413
+ var state0 = {a: arg0, b: arg1};
414
+ var cb0 = (arg0, arg1) => {
415
+ const a = state0.a;
416
+ state0.a = 0;
417
+ try {
418
+ return __wbg_adapter_92(a, state0.b, arg0, arg1);
419
+ } finally {
420
+ state0.a = a;
421
+ }
422
+ };
423
+ const ret = new Promise(cb0);
424
+ return ret;
425
+ } finally {
426
+ state0.a = state0.b = 0;
427
+ }
428
+ };
429
+ imports.wbg.__wbg_new_405e22f390576ce2 = function() {
430
+ const ret = new Object();
431
+ return ret;
432
+ };
433
+ imports.wbg.__wbg_new_78feb108b6472713 = function() {
434
+ const ret = new Array();
435
+ return ret;
436
+ };
437
+ imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
438
+ const ret = new Error();
439
+ return ret;
440
+ };
441
+ imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
442
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
443
+ return ret;
444
+ };
445
+ imports.wbg.__wbg_newwithstrandinit_06c535e0a867c635 = function() { return handleError(function (arg0, arg1, arg2) {
446
+ const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
447
+ return ret;
448
+ }, arguments) };
449
+ imports.wbg.__wbg_ok_3aaf32d069979723 = function(arg0) {
450
+ const ret = arg0.ok;
451
+ return ret;
452
+ };
453
+ imports.wbg.__wbg_push_737cfc8c1432c2c6 = function(arg0, arg1) {
454
+ const ret = arg0.push(arg1);
455
+ return ret;
456
+ };
457
+ imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
458
+ queueMicrotask(arg0);
459
+ };
460
+ imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
461
+ const ret = arg0.queueMicrotask;
462
+ return ret;
463
+ };
464
+ imports.wbg.__wbg_read_a2434af1186cb56c = function(arg0) {
465
+ const ret = arg0.read();
466
+ return ret;
467
+ };
468
+ imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
469
+ const ret = Promise.resolve(arg0);
470
+ return ret;
471
+ };
472
+ imports.wbg.__wbg_set_11cd83f45504cedf = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
473
+ arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
474
+ }, arguments) };
475
+ imports.wbg.__wbg_set_bb8cecf6a62b9f46 = function() { return handleError(function (arg0, arg1, arg2) {
476
+ const ret = Reflect.set(arg0, arg1, arg2);
477
+ return ret;
478
+ }, arguments) };
479
+ imports.wbg.__wbg_setbody_5923b78a95eedf29 = function(arg0, arg1) {
480
+ arg0.body = arg1;
481
+ };
482
+ imports.wbg.__wbg_setmethod_3c5280fe5d890842 = function(arg0, arg1, arg2) {
483
+ arg0.method = getStringFromWasm0(arg1, arg2);
484
+ };
485
+ imports.wbg.__wbg_setmode_5dc300b865044b65 = function(arg0, arg1) {
486
+ arg0.mode = __wbindgen_enum_RequestMode[arg1];
487
+ };
488
+ imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
489
+ const ret = arg1.stack;
490
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
491
+ const len1 = WASM_VECTOR_LEN;
492
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
493
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
494
+ };
495
+ imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
496
+ const ret = typeof global === 'undefined' ? null : global;
497
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
498
+ };
499
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
500
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
501
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
502
+ };
503
+ imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
504
+ const ret = typeof self === 'undefined' ? null : self;
505
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
506
+ };
507
+ imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
508
+ const ret = typeof window === 'undefined' ? null : window;
509
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
510
+ };
511
+ imports.wbg.__wbg_statusText_207754230b39e67c = function(arg0, arg1) {
512
+ const ret = arg1.statusText;
513
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
514
+ const len1 = WASM_VECTOR_LEN;
515
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
516
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
517
+ };
518
+ imports.wbg.__wbg_status_f6360336ca686bf0 = function(arg0) {
519
+ const ret = arg0.status;
520
+ return ret;
521
+ };
522
+ imports.wbg.__wbg_text_7805bea50de2af49 = function() { return handleError(function (arg0) {
523
+ const ret = arg0.text();
524
+ return ret;
525
+ }, arguments) };
526
+ imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
527
+ const ret = arg0.then(arg1);
528
+ return ret;
529
+ };
530
+ imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
531
+ const ret = arg0.then(arg1, arg2);
532
+ return ret;
533
+ };
534
+ imports.wbg.__wbg_warn_aaf1f4664a035bd6 = function(arg0, arg1, arg2, arg3) {
535
+ console.warn(arg0, arg1, arg2, arg3);
536
+ };
537
+ imports.wbg.__wbg_write_311434e30ee214e5 = function(arg0, arg1) {
538
+ const ret = arg0.write(arg1);
539
+ return ret;
540
+ };
541
+ imports.wbg.__wbindgen_boolean_get = function(arg0) {
542
+ const v = arg0;
543
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
544
+ return ret;
545
+ };
546
+ imports.wbg.__wbindgen_cb_drop = function(arg0) {
547
+ const obj = arg0.original;
548
+ if (obj.cnt-- == 1) {
549
+ obj.a = 0;
550
+ return true;
551
+ }
552
+ const ret = false;
553
+ return ret;
554
+ };
555
+ imports.wbg.__wbindgen_closure_wrapper5400 = function(arg0, arg1, arg2) {
556
+ const ret = makeMutClosure(arg0, arg1, 569, __wbg_adapter_24);
557
+ return ret;
558
+ };
559
+ imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
560
+ const ret = debugString(arg1);
561
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
562
+ const len1 = WASM_VECTOR_LEN;
563
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
564
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
565
+ };
566
+ imports.wbg.__wbindgen_init_externref_table = function() {
567
+ const table = wasm.__wbindgen_export_2;
568
+ const offset = table.grow(4);
569
+ table.set(0, undefined);
570
+ table.set(offset + 0, undefined);
571
+ table.set(offset + 1, null);
572
+ table.set(offset + 2, true);
573
+ table.set(offset + 3, false);
574
+ ;
575
+ };
576
+ imports.wbg.__wbindgen_is_function = function(arg0) {
577
+ const ret = typeof(arg0) === 'function';
578
+ return ret;
579
+ };
580
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
581
+ const ret = arg0 === undefined;
582
+ return ret;
583
+ };
584
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
585
+ const obj = arg1;
586
+ const ret = typeof(obj) === 'string' ? obj : undefined;
587
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
588
+ var len1 = WASM_VECTOR_LEN;
589
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
590
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
591
+ };
592
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
593
+ const ret = getStringFromWasm0(arg0, arg1);
594
+ return ret;
595
+ };
596
+ imports.wbg.__wbindgen_throw = function(arg0, arg1) {
597
+ throw new Error(getStringFromWasm0(arg0, arg1));
598
+ };
599
+
600
+ return imports;
601
+ }
602
+
603
+ function __wbg_init_memory(imports, memory) {
604
+
605
+ }
606
+
607
+ function __wbg_finalize_init(instance, module) {
608
+ wasm = instance.exports;
609
+ __wbg_init.__wbindgen_wasm_module = module;
610
+ cachedDataViewMemory0 = null;
611
+ cachedUint8ArrayMemory0 = null;
612
+
613
+
614
+ wasm.__wbindgen_start();
615
+ return wasm;
616
+ }
617
+
618
+ function initSync(module) {
619
+ if (wasm !== undefined) return wasm;
620
+
621
+
622
+ if (typeof module !== 'undefined') {
623
+ if (Object.getPrototypeOf(module) === Object.prototype) {
624
+ ({module} = module)
625
+ } else {
626
+ console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
627
+ }
628
+ }
629
+
630
+ const imports = __wbg_get_imports();
631
+
632
+ __wbg_init_memory(imports);
633
+
634
+ if (!(module instanceof WebAssembly.Module)) {
635
+ module = new WebAssembly.Module(module);
636
+ }
637
+
638
+ const instance = new WebAssembly.Instance(module, imports);
639
+
640
+ return __wbg_finalize_init(instance, module);
641
+ }
642
+
643
+ async function __wbg_init(module_or_path) {
644
+ if (wasm !== undefined) return wasm;
645
+
646
+
647
+ if (typeof module_or_path !== 'undefined') {
648
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
649
+ ({module_or_path} = module_or_path)
650
+ } else {
651
+ console.warn('using deprecated parameters for the initialization function; pass a single object instead')
652
+ }
653
+ }
654
+
655
+ if (typeof module_or_path === 'undefined') {
656
+ module_or_path = new URL('qlue_ls_bg.wasm', import.meta.url);
657
+ }
658
+ const imports = __wbg_get_imports();
659
+
660
+ if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
661
+ module_or_path = fetch(module_or_path);
662
+ }
663
+
664
+ __wbg_init_memory(imports);
665
+
666
+ const { instance, module } = await __wbg_load(await module_or_path, imports);
667
+
668
+ return __wbg_finalize_init(instance, module);
669
+ }
670
+
671
+ export { initSync };
672
+ export default __wbg_init;
package/qlue_ls_bg.wasm CHANGED
Binary file