runmat 0.2.7 → 0.2.9

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.
@@ -0,0 +1,723 @@
1
+ let wasm;
2
+
3
+ let WASM_VECTOR_LEN = 0;
4
+
5
+ let cachedUint8ArrayMemory0 = null;
6
+
7
+ function getUint8ArrayMemory0() {
8
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
9
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
10
+ }
11
+ return cachedUint8ArrayMemory0;
12
+ }
13
+
14
+ const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
15
+
16
+ const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
17
+ ? function (arg, view) {
18
+ return cachedTextEncoder.encodeInto(arg, view);
19
+ }
20
+ : function (arg, view) {
21
+ const buf = cachedTextEncoder.encode(arg);
22
+ view.set(buf);
23
+ return {
24
+ read: arg.length,
25
+ written: buf.length
26
+ };
27
+ });
28
+
29
+ function passStringToWasm0(arg, malloc, realloc) {
30
+
31
+ if (realloc === undefined) {
32
+ const buf = cachedTextEncoder.encode(arg);
33
+ const ptr = malloc(buf.length, 1) >>> 0;
34
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
35
+ WASM_VECTOR_LEN = buf.length;
36
+ return ptr;
37
+ }
38
+
39
+ let len = arg.length;
40
+ let ptr = malloc(len, 1) >>> 0;
41
+
42
+ const mem = getUint8ArrayMemory0();
43
+
44
+ let offset = 0;
45
+
46
+ for (; offset < len; offset++) {
47
+ const code = arg.charCodeAt(offset);
48
+ if (code > 0x7F) break;
49
+ mem[ptr + offset] = code;
50
+ }
51
+
52
+ if (offset !== len) {
53
+ if (offset !== 0) {
54
+ arg = arg.slice(offset);
55
+ }
56
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
57
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
58
+ const ret = encodeString(arg, view);
59
+
60
+ offset += ret.written;
61
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
62
+ }
63
+
64
+ WASM_VECTOR_LEN = offset;
65
+ return ptr;
66
+ }
67
+
68
+ let cachedDataViewMemory0 = null;
69
+
70
+ function getDataViewMemory0() {
71
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
72
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
73
+ }
74
+ return cachedDataViewMemory0;
75
+ }
76
+
77
+ function addToExternrefTable0(obj) {
78
+ const idx = wasm.__externref_table_alloc();
79
+ wasm.__wbindgen_export_4.set(idx, obj);
80
+ return idx;
81
+ }
82
+
83
+ function handleError(f, args) {
84
+ try {
85
+ return f.apply(this, args);
86
+ } catch (e) {
87
+ const idx = addToExternrefTable0(e);
88
+ wasm.__wbindgen_exn_store(idx);
89
+ }
90
+ }
91
+
92
+ const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
93
+
94
+ if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
95
+
96
+ function getStringFromWasm0(ptr, len) {
97
+ ptr = ptr >>> 0;
98
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
99
+ }
100
+
101
+ function getArrayU8FromWasm0(ptr, len) {
102
+ ptr = ptr >>> 0;
103
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
104
+ }
105
+
106
+ function isLikeNone(x) {
107
+ return x === undefined || x === null;
108
+ }
109
+
110
+ function debugString(val) {
111
+ // primitive types
112
+ const type = typeof val;
113
+ if (type == 'number' || type == 'boolean' || val == null) {
114
+ return `${val}`;
115
+ }
116
+ if (type == 'string') {
117
+ return `"${val}"`;
118
+ }
119
+ if (type == 'symbol') {
120
+ const description = val.description;
121
+ if (description == null) {
122
+ return 'Symbol';
123
+ } else {
124
+ return `Symbol(${description})`;
125
+ }
126
+ }
127
+ if (type == 'function') {
128
+ const name = val.name;
129
+ if (typeof name == 'string' && name.length > 0) {
130
+ return `Function(${name})`;
131
+ } else {
132
+ return 'Function';
133
+ }
134
+ }
135
+ // objects
136
+ if (Array.isArray(val)) {
137
+ const length = val.length;
138
+ let debug = '[';
139
+ if (length > 0) {
140
+ debug += debugString(val[0]);
141
+ }
142
+ for(let i = 1; i < length; i++) {
143
+ debug += ', ' + debugString(val[i]);
144
+ }
145
+ debug += ']';
146
+ return debug;
147
+ }
148
+ // Test for built-in
149
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
150
+ let className;
151
+ if (builtInMatches && builtInMatches.length > 1) {
152
+ className = builtInMatches[1];
153
+ } else {
154
+ // Failed to match the standard '[object ClassName]'
155
+ return toString.call(val);
156
+ }
157
+ if (className == 'Object') {
158
+ // we're a user defined class or Object
159
+ // JSON.stringify avoids problems with cycles, and is generally much
160
+ // easier than looping through ownProperties of `val`.
161
+ try {
162
+ return 'Object(' + JSON.stringify(val) + ')';
163
+ } catch (_) {
164
+ return 'Object';
165
+ }
166
+ }
167
+ // errors
168
+ if (val instanceof Error) {
169
+ return `${val.name}: ${val.message}\n${val.stack}`;
170
+ }
171
+ // TODO we could test for more things here, like `Set`s and `Map`s.
172
+ return className;
173
+ }
174
+ /**
175
+ * @returns {any}
176
+ */
177
+ export function builtin_inventory_counts() {
178
+ const ret = wasm.builtin_inventory_counts();
179
+ return ret;
180
+ }
181
+
182
+ /**
183
+ * @param {string} uri
184
+ * @param {string} text
185
+ */
186
+ export function open_document(uri, text) {
187
+ const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
188
+ const len0 = WASM_VECTOR_LEN;
189
+ const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
190
+ const len1 = WASM_VECTOR_LEN;
191
+ wasm.open_document(ptr0, len0, ptr1, len1);
192
+ }
193
+
194
+ /**
195
+ * @param {string} uri
196
+ * @param {string} text
197
+ */
198
+ export function change_document(uri, text) {
199
+ const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
200
+ const len0 = WASM_VECTOR_LEN;
201
+ const ptr1 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
202
+ const len1 = WASM_VECTOR_LEN;
203
+ wasm.change_document(ptr0, len0, ptr1, len1);
204
+ }
205
+
206
+ /**
207
+ * @param {string} uri
208
+ */
209
+ export function close_document(uri) {
210
+ const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
211
+ const len0 = WASM_VECTOR_LEN;
212
+ wasm.close_document(ptr0, len0);
213
+ }
214
+
215
+ function takeFromExternrefTable0(idx) {
216
+ const value = wasm.__wbindgen_export_4.get(idx);
217
+ wasm.__externref_table_dealloc(idx);
218
+ return value;
219
+ }
220
+ /**
221
+ * @param {string} _uri
222
+ * @param {number} _line
223
+ * @param {number} _character
224
+ * @returns {any}
225
+ */
226
+ export function completion(_uri, _line, _character) {
227
+ const ptr0 = passStringToWasm0(_uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
228
+ const len0 = WASM_VECTOR_LEN;
229
+ const ret = wasm.completion(ptr0, len0, _line, _character);
230
+ if (ret[2]) {
231
+ throw takeFromExternrefTable0(ret[1]);
232
+ }
233
+ return takeFromExternrefTable0(ret[0]);
234
+ }
235
+
236
+ /**
237
+ * @param {string} _uri
238
+ * @param {number} _line
239
+ * @param {number} _character
240
+ * @returns {any}
241
+ */
242
+ export function hover(_uri, _line, _character) {
243
+ const ptr0 = passStringToWasm0(_uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
244
+ const len0 = WASM_VECTOR_LEN;
245
+ const ret = wasm.hover(ptr0, len0, _line, _character);
246
+ if (ret[2]) {
247
+ throw takeFromExternrefTable0(ret[1]);
248
+ }
249
+ return takeFromExternrefTable0(ret[0]);
250
+ }
251
+
252
+ /**
253
+ * @param {string} _uri
254
+ * @param {number} _line
255
+ * @param {number} _character
256
+ * @returns {any}
257
+ */
258
+ export function definition(_uri, _line, _character) {
259
+ const ptr0 = passStringToWasm0(_uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
260
+ const len0 = WASM_VECTOR_LEN;
261
+ const ret = wasm.definition(ptr0, len0, _line, _character);
262
+ if (ret[2]) {
263
+ throw takeFromExternrefTable0(ret[1]);
264
+ }
265
+ return takeFromExternrefTable0(ret[0]);
266
+ }
267
+
268
+ /**
269
+ * @param {string} _uri
270
+ * @param {number} _line
271
+ * @param {number} _character
272
+ * @returns {any}
273
+ */
274
+ export function references(_uri, _line, _character) {
275
+ const ptr0 = passStringToWasm0(_uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
276
+ const len0 = WASM_VECTOR_LEN;
277
+ const ret = wasm.references(ptr0, len0, _line, _character);
278
+ if (ret[2]) {
279
+ throw takeFromExternrefTable0(ret[1]);
280
+ }
281
+ return takeFromExternrefTable0(ret[0]);
282
+ }
283
+
284
+ /**
285
+ * @param {string} _uri
286
+ * @param {number} _line
287
+ * @param {number} _character
288
+ * @returns {any}
289
+ */
290
+ export function signature_help(_uri, _line, _character) {
291
+ const ptr0 = passStringToWasm0(_uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
292
+ const len0 = WASM_VECTOR_LEN;
293
+ const ret = wasm.signature_help(ptr0, len0, _line, _character);
294
+ if (ret[2]) {
295
+ throw takeFromExternrefTable0(ret[1]);
296
+ }
297
+ return takeFromExternrefTable0(ret[0]);
298
+ }
299
+
300
+ /**
301
+ * @param {string} _uri
302
+ * @returns {any}
303
+ */
304
+ export function semantic_tokens(_uri) {
305
+ const ptr0 = passStringToWasm0(_uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
306
+ const len0 = WASM_VECTOR_LEN;
307
+ const ret = wasm.semantic_tokens(ptr0, len0);
308
+ if (ret[2]) {
309
+ throw takeFromExternrefTable0(ret[1]);
310
+ }
311
+ return takeFromExternrefTable0(ret[0]);
312
+ }
313
+
314
+ /**
315
+ * @param {string} _uri
316
+ * @returns {any}
317
+ */
318
+ export function document_symbols(_uri) {
319
+ const ptr0 = passStringToWasm0(_uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
320
+ const len0 = WASM_VECTOR_LEN;
321
+ const ret = wasm.document_symbols(ptr0, len0);
322
+ if (ret[2]) {
323
+ throw takeFromExternrefTable0(ret[1]);
324
+ }
325
+ return takeFromExternrefTable0(ret[0]);
326
+ }
327
+
328
+ /**
329
+ * @returns {any}
330
+ */
331
+ export function workspace_symbols_all() {
332
+ const ret = wasm.workspace_symbols_all();
333
+ if (ret[2]) {
334
+ throw takeFromExternrefTable0(ret[1]);
335
+ }
336
+ return takeFromExternrefTable0(ret[0]);
337
+ }
338
+
339
+ /**
340
+ * @param {string} _uri
341
+ * @returns {any}
342
+ */
343
+ export function formatting(_uri) {
344
+ const ptr0 = passStringToWasm0(_uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
345
+ const len0 = WASM_VECTOR_LEN;
346
+ const ret = wasm.formatting(ptr0, len0);
347
+ if (ret[2]) {
348
+ throw takeFromExternrefTable0(ret[1]);
349
+ }
350
+ return takeFromExternrefTable0(ret[0]);
351
+ }
352
+
353
+ /**
354
+ * @param {string} _uri
355
+ * @returns {any}
356
+ */
357
+ export function diagnostics(_uri) {
358
+ const ptr0 = passStringToWasm0(_uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
359
+ const len0 = WASM_VECTOR_LEN;
360
+ const ret = wasm.diagnostics(ptr0, len0);
361
+ if (ret[2]) {
362
+ throw takeFromExternrefTable0(ret[1]);
363
+ }
364
+ return takeFromExternrefTable0(ret[0]);
365
+ }
366
+
367
+ /**
368
+ * @param {string} mode
369
+ */
370
+ export function setCompatMode(mode) {
371
+ const ptr0 = passStringToWasm0(mode, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
372
+ const len0 = WASM_VECTOR_LEN;
373
+ wasm.setCompatMode(ptr0, len0);
374
+ }
375
+
376
+ const __wbindgen_enum_XmlHttpRequestResponseType = ["", "arraybuffer", "blob", "document", "json", "text"];
377
+
378
+ async function __wbg_load(module, imports) {
379
+ if (typeof Response === 'function' && module instanceof Response) {
380
+ if (typeof WebAssembly.instantiateStreaming === 'function') {
381
+ try {
382
+ return await WebAssembly.instantiateStreaming(module, imports);
383
+
384
+ } catch (e) {
385
+ if (module.headers.get('Content-Type') != 'application/wasm') {
386
+ 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);
387
+
388
+ } else {
389
+ throw e;
390
+ }
391
+ }
392
+ }
393
+
394
+ const bytes = await module.arrayBuffer();
395
+ return await WebAssembly.instantiate(bytes, imports);
396
+
397
+ } else {
398
+ const instance = await WebAssembly.instantiate(module, imports);
399
+
400
+ if (instance instanceof WebAssembly.Instance) {
401
+ return { instance, module };
402
+
403
+ } else {
404
+ return instance;
405
+ }
406
+ }
407
+ }
408
+
409
+ function __wbg_get_imports() {
410
+ const imports = {};
411
+ imports.wbg = {};
412
+ imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
413
+ const ret = String(arg1);
414
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
415
+ const len1 = WASM_VECTOR_LEN;
416
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
417
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
418
+ };
419
+ imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
420
+ const ret = arg0.buffer;
421
+ return ret;
422
+ };
423
+ imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
424
+ const ret = arg0.call(arg1);
425
+ return ret;
426
+ }, arguments) };
427
+ imports.wbg.__wbg_getAllResponseHeaders_83159b168d73a355 = function() { return handleError(function (arg0, arg1) {
428
+ const ret = arg1.getAllResponseHeaders();
429
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
430
+ const len1 = WASM_VECTOR_LEN;
431
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
432
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
433
+ }, arguments) };
434
+ imports.wbg.__wbg_getBoundingClientRect_9073b0ff7574d76b = function(arg0) {
435
+ const ret = arg0.getBoundingClientRect();
436
+ return ret;
437
+ };
438
+ imports.wbg.__wbg_getTimezoneOffset_6b5752021c499c47 = function(arg0) {
439
+ const ret = arg0.getTimezoneOffset();
440
+ return ret;
441
+ };
442
+ imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
443
+ const ret = Reflect.get(arg0, arg1);
444
+ return ret;
445
+ }, arguments) };
446
+ imports.wbg.__wbg_height_592a89ec0fb63726 = function(arg0) {
447
+ const ret = arg0.height;
448
+ return ret;
449
+ };
450
+ imports.wbg.__wbg_height_838cee19ba8597db = function(arg0) {
451
+ const ret = arg0.height;
452
+ return ret;
453
+ };
454
+ imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
455
+ let result;
456
+ try {
457
+ result = arg0 instanceof ArrayBuffer;
458
+ } catch (_) {
459
+ result = false;
460
+ }
461
+ const ret = result;
462
+ return ret;
463
+ };
464
+ imports.wbg.__wbg_instanceof_DomException_ed1ccb7aaf39034c = function(arg0) {
465
+ let result;
466
+ try {
467
+ result = arg0 instanceof DOMException;
468
+ } catch (_) {
469
+ result = false;
470
+ }
471
+ const ret = result;
472
+ return ret;
473
+ };
474
+ imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
475
+ const ret = arg0.length;
476
+ return ret;
477
+ };
478
+ imports.wbg.__wbg_message_5c5d919204d42400 = function(arg0, arg1) {
479
+ const ret = arg1.message;
480
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
481
+ const len1 = WASM_VECTOR_LEN;
482
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
483
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
484
+ };
485
+ imports.wbg.__wbg_name_f2d27098bfd843e7 = function(arg0, arg1) {
486
+ const ret = arg1.name;
487
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
488
+ const len1 = WASM_VECTOR_LEN;
489
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
490
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
491
+ };
492
+ imports.wbg.__wbg_new_31a97dac4f10fab7 = function(arg0) {
493
+ const ret = new Date(arg0);
494
+ return ret;
495
+ };
496
+ imports.wbg.__wbg_new_405e22f390576ce2 = function() {
497
+ const ret = new Object();
498
+ return ret;
499
+ };
500
+ imports.wbg.__wbg_new_5e0be73521bc8c17 = function() {
501
+ const ret = new Map();
502
+ return ret;
503
+ };
504
+ imports.wbg.__wbg_new_78feb108b6472713 = function() {
505
+ const ret = new Array();
506
+ return ret;
507
+ };
508
+ imports.wbg.__wbg_new_86231e225ca6b962 = function() { return handleError(function () {
509
+ const ret = new XMLHttpRequest();
510
+ return ret;
511
+ }, arguments) };
512
+ imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
513
+ const ret = new Uint8Array(arg0);
514
+ return ret;
515
+ };
516
+ imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
517
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
518
+ return ret;
519
+ };
520
+ imports.wbg.__wbg_now_807e54c39636c349 = function() {
521
+ const ret = Date.now();
522
+ return ret;
523
+ };
524
+ imports.wbg.__wbg_now_d18023d54d4e5500 = function(arg0) {
525
+ const ret = arg0.now();
526
+ return ret;
527
+ };
528
+ imports.wbg.__wbg_open_13a598ea50d82926 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
529
+ arg0.open(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), arg5 !== 0);
530
+ }, arguments) };
531
+ imports.wbg.__wbg_response_49e10f8ee7f418db = function() { return handleError(function (arg0) {
532
+ const ret = arg0.response;
533
+ return ret;
534
+ }, arguments) };
535
+ imports.wbg.__wbg_send_190b4155effb7466 = function() { return handleError(function (arg0, arg1, arg2) {
536
+ arg0.send(arg1 === 0 ? undefined : getArrayU8FromWasm0(arg1, arg2));
537
+ }, arguments) };
538
+ imports.wbg.__wbg_send_40a47636ff90f64d = function() { return handleError(function (arg0) {
539
+ arg0.send();
540
+ }, arguments) };
541
+ imports.wbg.__wbg_setRequestHeader_51d371ad5196f6ef = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
542
+ arg0.setRequestHeader(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
543
+ }, arguments) };
544
+ imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
545
+ arg0[arg1 >>> 0] = arg2;
546
+ };
547
+ imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
548
+ arg0[arg1] = arg2;
549
+ };
550
+ imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
551
+ arg0.set(arg1, arg2 >>> 0);
552
+ };
553
+ imports.wbg.__wbg_set_8fc6bf8a5b1071d1 = function(arg0, arg1, arg2) {
554
+ const ret = arg0.set(arg1, arg2);
555
+ return ret;
556
+ };
557
+ imports.wbg.__wbg_setresponseType_4267195f737262d5 = function(arg0, arg1) {
558
+ arg0.responseType = __wbindgen_enum_XmlHttpRequestResponseType[arg1];
559
+ };
560
+ imports.wbg.__wbg_settimeout_0354c6307cd5eae8 = function(arg0, arg1) {
561
+ arg0.timeout = arg1 >>> 0;
562
+ };
563
+ imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
564
+ const ret = typeof global === 'undefined' ? null : global;
565
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
566
+ };
567
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
568
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
569
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
570
+ };
571
+ imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
572
+ const ret = typeof self === 'undefined' ? null : self;
573
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
574
+ };
575
+ imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
576
+ const ret = typeof window === 'undefined' ? null : window;
577
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
578
+ };
579
+ imports.wbg.__wbg_statusText_6f96b7515fb97af8 = function() { return handleError(function (arg0, arg1) {
580
+ const ret = arg1.statusText;
581
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
582
+ const len1 = WASM_VECTOR_LEN;
583
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
584
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
585
+ }, arguments) };
586
+ imports.wbg.__wbg_status_12bcf88a8ff51470 = function() { return handleError(function (arg0) {
587
+ const ret = arg0.status;
588
+ return ret;
589
+ }, arguments) };
590
+ imports.wbg.__wbg_width_5dde457d606ba683 = function(arg0) {
591
+ const ret = arg0.width;
592
+ return ret;
593
+ };
594
+ imports.wbg.__wbg_width_f0759bd8bad335bd = function(arg0) {
595
+ const ret = arg0.width;
596
+ return ret;
597
+ };
598
+ imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
599
+ const ret = arg0;
600
+ return ret;
601
+ };
602
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
603
+ const ret = BigInt.asUintN(64, arg0);
604
+ return ret;
605
+ };
606
+ imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
607
+ const ret = debugString(arg1);
608
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
609
+ const len1 = WASM_VECTOR_LEN;
610
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
611
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
612
+ };
613
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
614
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
615
+ return ret;
616
+ };
617
+ imports.wbg.__wbindgen_init_externref_table = function() {
618
+ const table = wasm.__wbindgen_export_4;
619
+ const offset = table.grow(4);
620
+ table.set(0, undefined);
621
+ table.set(offset + 0, undefined);
622
+ table.set(offset + 1, null);
623
+ table.set(offset + 2, true);
624
+ table.set(offset + 3, false);
625
+ ;
626
+ };
627
+ imports.wbg.__wbindgen_is_string = function(arg0) {
628
+ const ret = typeof(arg0) === 'string';
629
+ return ret;
630
+ };
631
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
632
+ const ret = arg0 === undefined;
633
+ return ret;
634
+ };
635
+ imports.wbg.__wbindgen_memory = function() {
636
+ const ret = wasm.memory;
637
+ return ret;
638
+ };
639
+ imports.wbg.__wbindgen_number_new = function(arg0) {
640
+ const ret = arg0;
641
+ return ret;
642
+ };
643
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
644
+ const ret = getStringFromWasm0(arg0, arg1);
645
+ return ret;
646
+ };
647
+ imports.wbg.__wbindgen_throw = function(arg0, arg1) {
648
+ throw new Error(getStringFromWasm0(arg0, arg1));
649
+ };
650
+
651
+ return imports;
652
+ }
653
+
654
+ function __wbg_init_memory(imports, memory) {
655
+
656
+ }
657
+
658
+ function __wbg_finalize_init(instance, module) {
659
+ wasm = instance.exports;
660
+ __wbg_init.__wbindgen_wasm_module = module;
661
+ cachedDataViewMemory0 = null;
662
+ cachedUint8ArrayMemory0 = null;
663
+
664
+
665
+ wasm.__wbindgen_start();
666
+ return wasm;
667
+ }
668
+
669
+ function initSync(module) {
670
+ if (wasm !== undefined) return wasm;
671
+
672
+
673
+ if (typeof module !== 'undefined') {
674
+ if (Object.getPrototypeOf(module) === Object.prototype) {
675
+ ({module} = module)
676
+ } else {
677
+ console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
678
+ }
679
+ }
680
+
681
+ const imports = __wbg_get_imports();
682
+
683
+ __wbg_init_memory(imports);
684
+
685
+ if (!(module instanceof WebAssembly.Module)) {
686
+ module = new WebAssembly.Module(module);
687
+ }
688
+
689
+ const instance = new WebAssembly.Instance(module, imports);
690
+
691
+ return __wbg_finalize_init(instance, module);
692
+ }
693
+
694
+ async function __wbg_init(module_or_path) {
695
+ if (wasm !== undefined) return wasm;
696
+
697
+
698
+ if (typeof module_or_path !== 'undefined') {
699
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
700
+ ({module_or_path} = module_or_path)
701
+ } else {
702
+ console.warn('using deprecated parameters for the initialization function; pass a single object instead')
703
+ }
704
+ }
705
+
706
+ if (typeof module_or_path === 'undefined') {
707
+ module_or_path = new URL('runmat_lsp_bg.wasm', import.meta.url);
708
+ }
709
+ const imports = __wbg_get_imports();
710
+
711
+ if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
712
+ module_or_path = fetch(module_or_path);
713
+ }
714
+
715
+ __wbg_init_memory(imports);
716
+
717
+ const { instance, module } = await __wbg_load(await module_or_path, imports);
718
+
719
+ return __wbg_finalize_init(instance, module);
720
+ }
721
+
722
+ export { initSync };
723
+ export default __wbg_init;