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,2109 @@
1
+ let wasm;
2
+ export function __wbg_set_wasm(val) {
3
+ wasm = val;
4
+ }
5
+
6
+
7
+ let WASM_VECTOR_LEN = 0;
8
+
9
+ let cachedUint8ArrayMemory0 = null;
10
+
11
+ function getUint8ArrayMemory0() {
12
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
13
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
14
+ }
15
+ return cachedUint8ArrayMemory0;
16
+ }
17
+
18
+ const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
19
+
20
+ let cachedTextEncoder = new lTextEncoder('utf-8');
21
+
22
+ const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
23
+ ? function (arg, view) {
24
+ return cachedTextEncoder.encodeInto(arg, view);
25
+ }
26
+ : function (arg, view) {
27
+ const buf = cachedTextEncoder.encode(arg);
28
+ view.set(buf);
29
+ return {
30
+ read: arg.length,
31
+ written: buf.length
32
+ };
33
+ });
34
+
35
+ function passStringToWasm0(arg, malloc, realloc) {
36
+
37
+ if (realloc === undefined) {
38
+ const buf = cachedTextEncoder.encode(arg);
39
+ const ptr = malloc(buf.length, 1) >>> 0;
40
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
41
+ WASM_VECTOR_LEN = buf.length;
42
+ return ptr;
43
+ }
44
+
45
+ let len = arg.length;
46
+ let ptr = malloc(len, 1) >>> 0;
47
+
48
+ const mem = getUint8ArrayMemory0();
49
+
50
+ let offset = 0;
51
+
52
+ for (; offset < len; offset++) {
53
+ const code = arg.charCodeAt(offset);
54
+ if (code > 0x7F) break;
55
+ mem[ptr + offset] = code;
56
+ }
57
+
58
+ if (offset !== len) {
59
+ if (offset !== 0) {
60
+ arg = arg.slice(offset);
61
+ }
62
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
63
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
64
+ const ret = encodeString(arg, view);
65
+
66
+ offset += ret.written;
67
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
68
+ }
69
+
70
+ WASM_VECTOR_LEN = offset;
71
+ return ptr;
72
+ }
73
+
74
+ let cachedDataViewMemory0 = null;
75
+
76
+ function getDataViewMemory0() {
77
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
78
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
79
+ }
80
+ return cachedDataViewMemory0;
81
+ }
82
+
83
+ function addToExternrefTable0(obj) {
84
+ const idx = wasm.__externref_table_alloc();
85
+ wasm.__wbindgen_export_4.set(idx, obj);
86
+ return idx;
87
+ }
88
+
89
+ function handleError(f, args) {
90
+ try {
91
+ return f.apply(this, args);
92
+ } catch (e) {
93
+ const idx = addToExternrefTable0(e);
94
+ wasm.__wbindgen_exn_store(idx);
95
+ }
96
+ }
97
+
98
+ function isLikeNone(x) {
99
+ return x === undefined || x === null;
100
+ }
101
+
102
+ const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
103
+
104
+ let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
105
+
106
+ cachedTextDecoder.decode();
107
+
108
+ function getStringFromWasm0(ptr, len) {
109
+ ptr = ptr >>> 0;
110
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
111
+ }
112
+
113
+ function getArrayU8FromWasm0(ptr, len) {
114
+ ptr = ptr >>> 0;
115
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
116
+ }
117
+
118
+ let cachedUint32ArrayMemory0 = null;
119
+
120
+ function getUint32ArrayMemory0() {
121
+ if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
122
+ cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
123
+ }
124
+ return cachedUint32ArrayMemory0;
125
+ }
126
+
127
+ function getArrayU32FromWasm0(ptr, len) {
128
+ ptr = ptr >>> 0;
129
+ return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
130
+ }
131
+
132
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
133
+ ? { register: () => {}, unregister: () => {} }
134
+ : new FinalizationRegistry(state => {
135
+ wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b)
136
+ });
137
+
138
+ function makeMutClosure(arg0, arg1, dtor, f) {
139
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
140
+ const real = (...args) => {
141
+ // First up with a closure we increment the internal reference
142
+ // count. This ensures that the Rust closure environment won't
143
+ // be deallocated while we're invoking it.
144
+ state.cnt++;
145
+ const a = state.a;
146
+ state.a = 0;
147
+ try {
148
+ return f(a, state.b, ...args);
149
+ } finally {
150
+ if (--state.cnt === 0) {
151
+ wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
152
+ CLOSURE_DTORS.unregister(state);
153
+ } else {
154
+ state.a = a;
155
+ }
156
+ }
157
+ };
158
+ real.original = state;
159
+ CLOSURE_DTORS.register(real, state, state);
160
+ return real;
161
+ }
162
+
163
+ function debugString(val) {
164
+ // primitive types
165
+ const type = typeof val;
166
+ if (type == 'number' || type == 'boolean' || val == null) {
167
+ return `${val}`;
168
+ }
169
+ if (type == 'string') {
170
+ return `"${val}"`;
171
+ }
172
+ if (type == 'symbol') {
173
+ const description = val.description;
174
+ if (description == null) {
175
+ return 'Symbol';
176
+ } else {
177
+ return `Symbol(${description})`;
178
+ }
179
+ }
180
+ if (type == 'function') {
181
+ const name = val.name;
182
+ if (typeof name == 'string' && name.length > 0) {
183
+ return `Function(${name})`;
184
+ } else {
185
+ return 'Function';
186
+ }
187
+ }
188
+ // objects
189
+ if (Array.isArray(val)) {
190
+ const length = val.length;
191
+ let debug = '[';
192
+ if (length > 0) {
193
+ debug += debugString(val[0]);
194
+ }
195
+ for(let i = 1; i < length; i++) {
196
+ debug += ', ' + debugString(val[i]);
197
+ }
198
+ debug += ']';
199
+ return debug;
200
+ }
201
+ // Test for built-in
202
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
203
+ let className;
204
+ if (builtInMatches && builtInMatches.length > 1) {
205
+ className = builtInMatches[1];
206
+ } else {
207
+ // Failed to match the standard '[object ClassName]'
208
+ return toString.call(val);
209
+ }
210
+ if (className == 'Object') {
211
+ // we're a user defined class or Object
212
+ // JSON.stringify avoids problems with cycles, and is generally much
213
+ // easier than looping through ownProperties of `val`.
214
+ try {
215
+ return 'Object(' + JSON.stringify(val) + ')';
216
+ } catch (_) {
217
+ return 'Object';
218
+ }
219
+ }
220
+ // errors
221
+ if (val instanceof Error) {
222
+ return `${val.name}: ${val.message}\n${val.stack}`;
223
+ }
224
+ // TODO we could test for more things here, like `Set`s and `Map`s.
225
+ return className;
226
+ }
227
+
228
+ function takeFromExternrefTable0(idx) {
229
+ const value = wasm.__wbindgen_export_4.get(idx);
230
+ wasm.__externref_table_dealloc(idx);
231
+ return value;
232
+ }
233
+ /**
234
+ * @param {any} bindings
235
+ */
236
+ export function registerFsProvider(bindings) {
237
+ const ret = wasm.registerFsProvider(bindings);
238
+ if (ret[1]) {
239
+ throw takeFromExternrefTable0(ret[0]);
240
+ }
241
+ }
242
+
243
+ /**
244
+ * @param {HTMLCanvasElement} canvas
245
+ * @returns {Promise<void>}
246
+ */
247
+ export function registerPlotCanvas(canvas) {
248
+ const ret = wasm.registerPlotCanvas(canvas);
249
+ return ret;
250
+ }
251
+
252
+ /**
253
+ * @param {number} handle
254
+ * @param {HTMLCanvasElement} canvas
255
+ * @returns {Promise<void>}
256
+ */
257
+ export function registerFigureCanvas(handle, canvas) {
258
+ const ret = wasm.registerFigureCanvas(handle, canvas);
259
+ return ret;
260
+ }
261
+
262
+ export function deregisterPlotCanvas() {
263
+ wasm.deregisterPlotCanvas();
264
+ }
265
+
266
+ /**
267
+ * @param {number} handle
268
+ */
269
+ export function deregisterFigureCanvas(handle) {
270
+ wasm.deregisterFigureCanvas(handle);
271
+ }
272
+
273
+ /**
274
+ * @param {number} handle
275
+ * @param {number} width
276
+ * @param {number} height
277
+ */
278
+ export function resizeFigureCanvas(handle, width, height) {
279
+ const ret = wasm.resizeFigureCanvas(handle, width, height);
280
+ if (ret[1]) {
281
+ throw takeFromExternrefTable0(ret[0]);
282
+ }
283
+ }
284
+
285
+ /**
286
+ * @param {number} handle
287
+ */
288
+ export function renderCurrentFigureScene(handle) {
289
+ const ret = wasm.renderCurrentFigureScene(handle);
290
+ if (ret[1]) {
291
+ throw takeFromExternrefTable0(ret[0]);
292
+ }
293
+ }
294
+
295
+ /**
296
+ * @returns {number}
297
+ */
298
+ export function newFigureHandle() {
299
+ const ret = wasm.newFigureHandle();
300
+ return ret >>> 0;
301
+ }
302
+
303
+ /**
304
+ * @param {number} handle
305
+ */
306
+ export function selectFigure(handle) {
307
+ wasm.selectFigure(handle);
308
+ }
309
+
310
+ /**
311
+ * @returns {number}
312
+ */
313
+ export function currentFigureHandle() {
314
+ const ret = wasm.currentFigureHandle();
315
+ return ret >>> 0;
316
+ }
317
+
318
+ /**
319
+ * @param {number} rows
320
+ * @param {number} cols
321
+ * @param {number} index
322
+ */
323
+ export function configureSubplot(rows, cols, index) {
324
+ const ret = wasm.configureSubplot(rows, cols, index);
325
+ if (ret[1]) {
326
+ throw takeFromExternrefTable0(ret[0]);
327
+ }
328
+ }
329
+
330
+ /**
331
+ * @param {any} mode
332
+ * @returns {boolean}
333
+ */
334
+ export function setHoldMode(mode) {
335
+ const ret = wasm.setHoldMode(mode);
336
+ if (ret[2]) {
337
+ throw takeFromExternrefTable0(ret[1]);
338
+ }
339
+ return ret[0] !== 0;
340
+ }
341
+
342
+ /**
343
+ * @param {any} handle
344
+ * @returns {number}
345
+ */
346
+ export function clearFigure(handle) {
347
+ const ret = wasm.clearFigure(handle);
348
+ if (ret[2]) {
349
+ throw takeFromExternrefTable0(ret[1]);
350
+ }
351
+ return ret[0] >>> 0;
352
+ }
353
+
354
+ /**
355
+ * @param {any} handle
356
+ * @returns {number}
357
+ */
358
+ export function closeFigure(handle) {
359
+ const ret = wasm.closeFigure(handle);
360
+ if (ret[2]) {
361
+ throw takeFromExternrefTable0(ret[1]);
362
+ }
363
+ return ret[0] >>> 0;
364
+ }
365
+
366
+ /**
367
+ * @returns {any}
368
+ */
369
+ export function currentAxesInfo() {
370
+ const ret = wasm.currentAxesInfo();
371
+ return ret;
372
+ }
373
+
374
+ /**
375
+ * @param {any} handle
376
+ * @param {number | null} [width]
377
+ * @param {number | null} [height]
378
+ * @returns {Promise<Uint8Array>}
379
+ */
380
+ export function renderFigureImage(handle, width, height) {
381
+ const ret = wasm.renderFigureImage(handle, isLikeNone(width) ? 0x100000001 : (width) >>> 0, isLikeNone(height) ? 0x100000001 : (height) >>> 0);
382
+ return ret;
383
+ }
384
+
385
+ /**
386
+ * @returns {boolean}
387
+ */
388
+ export function plotRendererReady() {
389
+ const ret = wasm.plotRendererReady();
390
+ return ret !== 0;
391
+ }
392
+
393
+ /**
394
+ * @param {any} callback
395
+ */
396
+ export function onFigureEvent(callback) {
397
+ const ret = wasm.onFigureEvent(callback);
398
+ if (ret[1]) {
399
+ throw takeFromExternrefTable0(ret[0]);
400
+ }
401
+ }
402
+
403
+ /**
404
+ * @param {any} callback
405
+ * @returns {number}
406
+ */
407
+ export function subscribeStdout(callback) {
408
+ const ret = wasm.subscribeStdout(callback);
409
+ if (ret[2]) {
410
+ throw takeFromExternrefTable0(ret[1]);
411
+ }
412
+ return ret[0] >>> 0;
413
+ }
414
+
415
+ /**
416
+ * @param {number} id
417
+ */
418
+ export function unsubscribeStdout(id) {
419
+ wasm.unsubscribeStdout(id);
420
+ }
421
+
422
+ /**
423
+ * @param {any} callback
424
+ * @returns {number}
425
+ */
426
+ export function subscribeRuntimeLog(callback) {
427
+ const ret = wasm.subscribeRuntimeLog(callback);
428
+ if (ret[2]) {
429
+ throw takeFromExternrefTable0(ret[1]);
430
+ }
431
+ return ret[0] >>> 0;
432
+ }
433
+
434
+ /**
435
+ * @param {number} id
436
+ */
437
+ export function unsubscribeRuntimeLog(id) {
438
+ wasm.unsubscribeRuntimeLog(id);
439
+ }
440
+
441
+ /**
442
+ * @param {any} callback
443
+ * @returns {number}
444
+ */
445
+ export function subscribeTraceEvents(callback) {
446
+ const ret = wasm.subscribeTraceEvents(callback);
447
+ if (ret[2]) {
448
+ throw takeFromExternrefTable0(ret[1]);
449
+ }
450
+ return ret[0] >>> 0;
451
+ }
452
+
453
+ /**
454
+ * @param {number} id
455
+ */
456
+ export function unsubscribeTraceEvents(id) {
457
+ wasm.unsubscribeTraceEvents(id);
458
+ }
459
+
460
+ /**
461
+ * @param {any} options
462
+ * @returns {Promise<RunMatWasm>}
463
+ */
464
+ export function initRunMat(options) {
465
+ const ret = wasm.initRunMat(options);
466
+ return ret;
467
+ }
468
+
469
+ function __wbg_adapter_54(arg0, arg1, arg2) {
470
+ wasm.closure4250_externref_shim(arg0, arg1, arg2);
471
+ }
472
+
473
+ function __wbg_adapter_57(arg0, arg1, arg2) {
474
+ wasm.closure4257_externref_shim(arg0, arg1, arg2);
475
+ }
476
+
477
+ function __wbg_adapter_547(arg0, arg1, arg2, arg3) {
478
+ wasm.closure4301_externref_shim(arg0, arg1, arg2, arg3);
479
+ }
480
+
481
+ const __wbindgen_enum_GpuErrorFilter = ["validation", "out-of-memory", "internal"];
482
+
483
+ const __wbindgen_enum_GpuIndexFormat = ["uint16", "uint32"];
484
+
485
+ const __wbindgen_enum_GpuTextureFormat = ["r8unorm", "r8snorm", "r8uint", "r8sint", "r16uint", "r16sint", "r16float", "rg8unorm", "rg8snorm", "rg8uint", "rg8sint", "r32uint", "r32sint", "r32float", "rg16uint", "rg16sint", "rg16float", "rgba8unorm", "rgba8unorm-srgb", "rgba8snorm", "rgba8uint", "rgba8sint", "bgra8unorm", "bgra8unorm-srgb", "rgb9e5ufloat", "rgb10a2unorm", "rg11b10ufloat", "rg32uint", "rg32sint", "rg32float", "rgba16uint", "rgba16sint", "rgba16float", "rgba32uint", "rgba32sint", "rgba32float", "stencil8", "depth16unorm", "depth24plus", "depth24plus-stencil8", "depth32float", "depth32float-stencil8", "bc1-rgba-unorm", "bc1-rgba-unorm-srgb", "bc2-rgba-unorm", "bc2-rgba-unorm-srgb", "bc3-rgba-unorm", "bc3-rgba-unorm-srgb", "bc4-r-unorm", "bc4-r-snorm", "bc5-rg-unorm", "bc5-rg-snorm", "bc6h-rgb-ufloat", "bc6h-rgb-float", "bc7-rgba-unorm", "bc7-rgba-unorm-srgb", "etc2-rgb8unorm", "etc2-rgb8unorm-srgb", "etc2-rgb8a1unorm", "etc2-rgb8a1unorm-srgb", "etc2-rgba8unorm", "etc2-rgba8unorm-srgb", "eac-r11unorm", "eac-r11snorm", "eac-rg11unorm", "eac-rg11snorm", "astc-4x4-unorm", "astc-4x4-unorm-srgb", "astc-5x4-unorm", "astc-5x4-unorm-srgb", "astc-5x5-unorm", "astc-5x5-unorm-srgb", "astc-6x5-unorm", "astc-6x5-unorm-srgb", "astc-6x6-unorm", "astc-6x6-unorm-srgb", "astc-8x5-unorm", "astc-8x5-unorm-srgb", "astc-8x6-unorm", "astc-8x6-unorm-srgb", "astc-8x8-unorm", "astc-8x8-unorm-srgb", "astc-10x5-unorm", "astc-10x5-unorm-srgb", "astc-10x6-unorm", "astc-10x6-unorm-srgb", "astc-10x8-unorm", "astc-10x8-unorm-srgb", "astc-10x10-unorm", "astc-10x10-unorm-srgb", "astc-12x10-unorm", "astc-12x10-unorm-srgb", "astc-12x12-unorm", "astc-12x12-unorm-srgb"];
486
+
487
+ const __wbindgen_enum_XmlHttpRequestResponseType = ["", "arraybuffer", "blob", "document", "json", "text"];
488
+
489
+ const RunMatWasmFinalization = (typeof FinalizationRegistry === 'undefined')
490
+ ? { register: () => {}, unregister: () => {} }
491
+ : new FinalizationRegistry(ptr => wasm.__wbg_runmatwasm_free(ptr >>> 0, 1));
492
+
493
+ export class RunMatWasm {
494
+
495
+ static __wrap(ptr) {
496
+ ptr = ptr >>> 0;
497
+ const obj = Object.create(RunMatWasm.prototype);
498
+ obj.__wbg_ptr = ptr;
499
+ RunMatWasmFinalization.register(obj, obj.__wbg_ptr, obj);
500
+ return obj;
501
+ }
502
+
503
+ __destroy_into_raw() {
504
+ const ptr = this.__wbg_ptr;
505
+ this.__wbg_ptr = 0;
506
+ RunMatWasmFinalization.unregister(this);
507
+ return ptr;
508
+ }
509
+
510
+ free() {
511
+ const ptr = this.__destroy_into_raw();
512
+ wasm.__wbg_runmatwasm_free(ptr, 0);
513
+ }
514
+ /**
515
+ * @param {string} source
516
+ * @returns {any}
517
+ */
518
+ execute(source) {
519
+ const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
520
+ const len0 = WASM_VECTOR_LEN;
521
+ const ret = wasm.runmatwasm_execute(this.__wbg_ptr, ptr0, len0);
522
+ if (ret[2]) {
523
+ throw takeFromExternrefTable0(ret[1]);
524
+ }
525
+ return takeFromExternrefTable0(ret[0]);
526
+ }
527
+ resetSession() {
528
+ const ret = wasm.runmatwasm_resetSession(this.__wbg_ptr);
529
+ if (ret[1]) {
530
+ throw takeFromExternrefTable0(ret[0]);
531
+ }
532
+ }
533
+ cancelExecution() {
534
+ wasm.runmatwasm_cancelExecution(this.__wbg_ptr);
535
+ }
536
+ cancelPendingRequests() {
537
+ wasm.runmatwasm_cancelPendingRequests(this.__wbg_ptr);
538
+ }
539
+ /**
540
+ * @param {string} mode
541
+ */
542
+ setLanguageCompat(mode) {
543
+ const ptr0 = passStringToWasm0(mode, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
544
+ const len0 = WASM_VECTOR_LEN;
545
+ wasm.runmatwasm_setLanguageCompat(this.__wbg_ptr, ptr0, len0);
546
+ }
547
+ /**
548
+ * @param {any} handler
549
+ */
550
+ setInputHandler(handler) {
551
+ const ret = wasm.runmatwasm_setInputHandler(this.__wbg_ptr, handler);
552
+ if (ret[1]) {
553
+ throw takeFromExternrefTable0(ret[0]);
554
+ }
555
+ }
556
+ /**
557
+ * @param {string} request_id
558
+ * @param {any} value
559
+ * @returns {any}
560
+ */
561
+ resumeInput(request_id, value) {
562
+ const ptr0 = passStringToWasm0(request_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
563
+ const len0 = WASM_VECTOR_LEN;
564
+ const ret = wasm.runmatwasm_resumeInput(this.__wbg_ptr, ptr0, len0, value);
565
+ if (ret[2]) {
566
+ throw takeFromExternrefTable0(ret[1]);
567
+ }
568
+ return takeFromExternrefTable0(ret[0]);
569
+ }
570
+ /**
571
+ * @returns {any}
572
+ */
573
+ pendingStdinRequests() {
574
+ const ret = wasm.runmatwasm_pendingStdinRequests(this.__wbg_ptr);
575
+ if (ret[2]) {
576
+ throw takeFromExternrefTable0(ret[1]);
577
+ }
578
+ return takeFromExternrefTable0(ret[0]);
579
+ }
580
+ /**
581
+ * @param {boolean} enabled
582
+ */
583
+ setFusionPlanEnabled(enabled) {
584
+ wasm.runmatwasm_setFusionPlanEnabled(this.__wbg_ptr, enabled);
585
+ }
586
+ /**
587
+ * Compile-only fusion plan snapshot (no execution).
588
+ * @param {string} source
589
+ * @returns {any}
590
+ */
591
+ fusionPlanForSource(source) {
592
+ const ptr0 = passStringToWasm0(source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
593
+ const len0 = WASM_VECTOR_LEN;
594
+ const ret = wasm.runmatwasm_fusionPlanForSource(this.__wbg_ptr, ptr0, len0);
595
+ if (ret[2]) {
596
+ throw takeFromExternrefTable0(ret[1]);
597
+ }
598
+ return takeFromExternrefTable0(ret[0]);
599
+ }
600
+ /**
601
+ * @param {any} selector
602
+ * @param {any} options
603
+ * @returns {any}
604
+ */
605
+ materializeVariable(selector, options) {
606
+ const ret = wasm.runmatwasm_materializeVariable(this.__wbg_ptr, selector, options);
607
+ if (ret[2]) {
608
+ throw takeFromExternrefTable0(ret[1]);
609
+ }
610
+ return takeFromExternrefTable0(ret[0]);
611
+ }
612
+ /**
613
+ * @returns {any}
614
+ */
615
+ stats() {
616
+ const ret = wasm.runmatwasm_stats(this.__wbg_ptr);
617
+ if (ret[2]) {
618
+ throw takeFromExternrefTable0(ret[1]);
619
+ }
620
+ return takeFromExternrefTable0(ret[0]);
621
+ }
622
+ clearWorkspace() {
623
+ wasm.runmatwasm_clearWorkspace(this.__wbg_ptr);
624
+ }
625
+ /**
626
+ * @returns {boolean}
627
+ */
628
+ telemetryConsent() {
629
+ const ret = wasm.runmatwasm_telemetryConsent(this.__wbg_ptr);
630
+ return ret !== 0;
631
+ }
632
+ /**
633
+ * @returns {any}
634
+ */
635
+ gpuStatus() {
636
+ const ret = wasm.runmatwasm_gpuStatus(this.__wbg_ptr);
637
+ if (ret[2]) {
638
+ throw takeFromExternrefTable0(ret[1]);
639
+ }
640
+ return takeFromExternrefTable0(ret[0]);
641
+ }
642
+ /**
643
+ * @returns {string | undefined}
644
+ */
645
+ telemetryClientId() {
646
+ const ret = wasm.runmatwasm_telemetryClientId(this.__wbg_ptr);
647
+ let v1;
648
+ if (ret[0] !== 0) {
649
+ v1 = getStringFromWasm0(ret[0], ret[1]).slice();
650
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
651
+ }
652
+ return v1;
653
+ }
654
+ /**
655
+ * @returns {any}
656
+ */
657
+ memoryUsage() {
658
+ const ret = wasm.runmatwasm_memoryUsage(this.__wbg_ptr);
659
+ if (ret[2]) {
660
+ throw takeFromExternrefTable0(ret[1]);
661
+ }
662
+ return takeFromExternrefTable0(ret[0]);
663
+ }
664
+ dispose() {
665
+ wasm.runmatwasm_dispose(this.__wbg_ptr);
666
+ }
667
+ }
668
+
669
+ export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
670
+ const ret = String(arg1);
671
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
672
+ const len1 = WASM_VECTOR_LEN;
673
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
674
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
675
+ };
676
+
677
+ export function __wbg_Window_09685c5b35e4318e(arg0) {
678
+ const ret = arg0.Window;
679
+ return ret;
680
+ };
681
+
682
+ export function __wbg_WorkerGlobalScope_86dadc234326361b(arg0) {
683
+ const ret = arg0.WorkerGlobalScope;
684
+ return ret;
685
+ };
686
+
687
+ export function __wbg_arrayBuffer_d1b44c4390db422f() { return handleError(function (arg0) {
688
+ const ret = arg0.arrayBuffer();
689
+ return ret;
690
+ }, arguments) };
691
+
692
+ export function __wbg_beginComputePass_1887a662b16709f1(arg0, arg1) {
693
+ const ret = arg0.beginComputePass(arg1);
694
+ return ret;
695
+ };
696
+
697
+ export function __wbg_beginRenderPass_9179e8717d25fdb0(arg0, arg1) {
698
+ const ret = arg0.beginRenderPass(arg1);
699
+ return ret;
700
+ };
701
+
702
+ export function __wbg_body_0b8fd1fe671660df(arg0) {
703
+ const ret = arg0.body;
704
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
705
+ };
706
+
707
+ export function __wbg_buffer_09165b52af8c5237(arg0) {
708
+ const ret = arg0.buffer;
709
+ return ret;
710
+ };
711
+
712
+ export function __wbg_buffer_609cc3eee51ed158(arg0) {
713
+ const ret = arg0.buffer;
714
+ return ret;
715
+ };
716
+
717
+ export function __wbg_byteLength_ea52ac3de882b483(arg0) {
718
+ const ret = arg0.byteLength;
719
+ return ret;
720
+ };
721
+
722
+ export function __wbg_call_672a4d21634d4a24() { return handleError(function (arg0, arg1) {
723
+ const ret = arg0.call(arg1);
724
+ return ret;
725
+ }, arguments) };
726
+
727
+ export function __wbg_call_7cccdd69e0791ae2() { return handleError(function (arg0, arg1, arg2) {
728
+ const ret = arg0.call(arg1, arg2);
729
+ return ret;
730
+ }, arguments) };
731
+
732
+ export function __wbg_call_833bed5770ea2041() { return handleError(function (arg0, arg1, arg2, arg3) {
733
+ const ret = arg0.call(arg1, arg2, arg3);
734
+ return ret;
735
+ }, arguments) };
736
+
737
+ export function __wbg_clearBuffer_3cb299d33f9c17aa(arg0, arg1, arg2, arg3) {
738
+ arg0.clearBuffer(arg1, arg2, arg3);
739
+ };
740
+
741
+ export function __wbg_clearBuffer_d1bbfb575de500c2(arg0, arg1, arg2) {
742
+ arg0.clearBuffer(arg1, arg2);
743
+ };
744
+
745
+ export function __wbg_configure_3545afac230e1d5e(arg0, arg1) {
746
+ arg0.configure(arg1);
747
+ };
748
+
749
+ export function __wbg_copyBufferToBuffer_1339da3175db86a8(arg0, arg1, arg2, arg3, arg4, arg5) {
750
+ arg0.copyBufferToBuffer(arg1, arg2, arg3, arg4, arg5);
751
+ };
752
+
753
+ export function __wbg_copyBufferToTexture_7fa23729d3a09bc4(arg0, arg1, arg2, arg3) {
754
+ arg0.copyBufferToTexture(arg1, arg2, arg3);
755
+ };
756
+
757
+ export function __wbg_copyExternalImageToTexture_a7d15aeaa14817c3(arg0, arg1, arg2, arg3) {
758
+ arg0.copyExternalImageToTexture(arg1, arg2, arg3);
759
+ };
760
+
761
+ export function __wbg_copyTextureToBuffer_10eda2ea3e01a012(arg0, arg1, arg2, arg3) {
762
+ arg0.copyTextureToBuffer(arg1, arg2, arg3);
763
+ };
764
+
765
+ export function __wbg_copyTextureToTexture_0f32dca08a58f47f(arg0, arg1, arg2, arg3) {
766
+ arg0.copyTextureToTexture(arg1, arg2, arg3);
767
+ };
768
+
769
+ export function __wbg_createBindGroupLayout_274e16d30c603078(arg0, arg1) {
770
+ const ret = arg0.createBindGroupLayout(arg1);
771
+ return ret;
772
+ };
773
+
774
+ export function __wbg_createBindGroup_a36c90bdc3f5eb88(arg0, arg1) {
775
+ const ret = arg0.createBindGroup(arg1);
776
+ return ret;
777
+ };
778
+
779
+ export function __wbg_createBuffer_d1ac34725e5cf041(arg0, arg1) {
780
+ const ret = arg0.createBuffer(arg1);
781
+ return ret;
782
+ };
783
+
784
+ export function __wbg_createCommandEncoder_513a786f096a5637(arg0, arg1) {
785
+ const ret = arg0.createCommandEncoder(arg1);
786
+ return ret;
787
+ };
788
+
789
+ export function __wbg_createComputePipeline_4bf93ff2c10c2333(arg0, arg1) {
790
+ const ret = arg0.createComputePipeline(arg1);
791
+ return ret;
792
+ };
793
+
794
+ export function __wbg_createPipelineLayout_669f14789cde7273(arg0, arg1) {
795
+ const ret = arg0.createPipelineLayout(arg1);
796
+ return ret;
797
+ };
798
+
799
+ export function __wbg_createQuerySet_7a0251b6c175935a(arg0, arg1) {
800
+ const ret = arg0.createQuerySet(arg1);
801
+ return ret;
802
+ };
803
+
804
+ export function __wbg_createRenderBundleEncoder_2e2d7a61c14a077b(arg0, arg1) {
805
+ const ret = arg0.createRenderBundleEncoder(arg1);
806
+ return ret;
807
+ };
808
+
809
+ export function __wbg_createRenderPipeline_d206a6a989f60069(arg0, arg1) {
810
+ const ret = arg0.createRenderPipeline(arg1);
811
+ return ret;
812
+ };
813
+
814
+ export function __wbg_createSampler_21641deec0b72234(arg0, arg1) {
815
+ const ret = arg0.createSampler(arg1);
816
+ return ret;
817
+ };
818
+
819
+ export function __wbg_createShaderModule_6a4726ff8937a4fc(arg0, arg1) {
820
+ const ret = arg0.createShaderModule(arg1);
821
+ return ret;
822
+ };
823
+
824
+ export function __wbg_createTexture_b4736ca67c208a7d(arg0, arg1) {
825
+ const ret = arg0.createTexture(arg1);
826
+ return ret;
827
+ };
828
+
829
+ export function __wbg_createView_28f72f1fbf41c53a(arg0, arg1) {
830
+ const ret = arg0.createView(arg1);
831
+ return ret;
832
+ };
833
+
834
+ export function __wbg_crypto_574e78ad8b13b65f(arg0) {
835
+ const ret = arg0.crypto;
836
+ return ret;
837
+ };
838
+
839
+ export function __wbg_destroy_24dc0325ca73bcdd(arg0) {
840
+ arg0.destroy();
841
+ };
842
+
843
+ export function __wbg_destroy_35ef3fac72adebbd(arg0) {
844
+ arg0.destroy();
845
+ };
846
+
847
+ export function __wbg_destroy_6ca164ec39708c30(arg0) {
848
+ arg0.destroy();
849
+ };
850
+
851
+ export function __wbg_dispatchWorkgroupsIndirect_5b70aa0ec2dd76d4(arg0, arg1, arg2) {
852
+ arg0.dispatchWorkgroupsIndirect(arg1, arg2);
853
+ };
854
+
855
+ export function __wbg_dispatchWorkgroups_eec2b1c97a77f008(arg0, arg1, arg2, arg3) {
856
+ arg0.dispatchWorkgroups(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0);
857
+ };
858
+
859
+ export function __wbg_document_d249400bd7bd996d(arg0) {
860
+ const ret = arg0.document;
861
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
862
+ };
863
+
864
+ export function __wbg_done_769e5ede4b31c67b(arg0) {
865
+ const ret = arg0.done;
866
+ return ret;
867
+ };
868
+
869
+ export function __wbg_drawIndexedIndirect_7195bed12006fc7e(arg0, arg1, arg2) {
870
+ arg0.drawIndexedIndirect(arg1, arg2);
871
+ };
872
+
873
+ export function __wbg_drawIndexedIndirect_cb0d6da766bd5105(arg0, arg1, arg2) {
874
+ arg0.drawIndexedIndirect(arg1, arg2);
875
+ };
876
+
877
+ export function __wbg_drawIndexed_6d903b1382862f81(arg0, arg1, arg2, arg3, arg4, arg5) {
878
+ arg0.drawIndexed(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
879
+ };
880
+
881
+ export function __wbg_drawIndexed_c122c36f03fe07a5(arg0, arg1, arg2, arg3, arg4, arg5) {
882
+ arg0.drawIndexed(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
883
+ };
884
+
885
+ export function __wbg_drawIndirect_9aab8bee6f6f1c22(arg0, arg1, arg2) {
886
+ arg0.drawIndirect(arg1, arg2);
887
+ };
888
+
889
+ export function __wbg_drawIndirect_d531975704a856b7(arg0, arg1, arg2) {
890
+ arg0.drawIndirect(arg1, arg2);
891
+ };
892
+
893
+ export function __wbg_draw_19d537d9832d985d(arg0, arg1, arg2, arg3, arg4) {
894
+ arg0.draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
895
+ };
896
+
897
+ export function __wbg_draw_5beb2c11da5429ce(arg0, arg1, arg2, arg3, arg4) {
898
+ arg0.draw(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
899
+ };
900
+
901
+ export function __wbg_end_2dc6d7fdcbfc2a0c(arg0) {
902
+ arg0.end();
903
+ };
904
+
905
+ export function __wbg_end_9cc33f189e27f3fd(arg0) {
906
+ arg0.end();
907
+ };
908
+
909
+ export function __wbg_entries_3265d4158b33e5dc(arg0) {
910
+ const ret = Object.entries(arg0);
911
+ return ret;
912
+ };
913
+
914
+ export function __wbg_error_15b28e2be7953dc9(arg0) {
915
+ const ret = arg0.error;
916
+ return ret;
917
+ };
918
+
919
+ export function __wbg_error_524f506f44df1645(arg0) {
920
+ console.error(arg0);
921
+ };
922
+
923
+ export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
924
+ let deferred0_0;
925
+ let deferred0_1;
926
+ try {
927
+ deferred0_0 = arg0;
928
+ deferred0_1 = arg1;
929
+ console.error(getStringFromWasm0(arg0, arg1));
930
+ } finally {
931
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
932
+ }
933
+ };
934
+
935
+ export function __wbg_executeBundles_db3c31afbf86979f(arg0, arg1) {
936
+ arg0.executeBundles(arg1);
937
+ };
938
+
939
+ export function __wbg_features_89059e3112366930(arg0) {
940
+ const ret = arg0.features;
941
+ return ret;
942
+ };
943
+
944
+ export function __wbg_features_e8442c6e37f8191e(arg0) {
945
+ const ret = arg0.features;
946
+ return ret;
947
+ };
948
+
949
+ export function __wbg_fetch_1b7e793ab8320753(arg0, arg1, arg2) {
950
+ const ret = arg0.fetch(getStringFromWasm0(arg1, arg2));
951
+ return ret;
952
+ };
953
+
954
+ export function __wbg_finish_53e6ed746110a5e5(arg0) {
955
+ const ret = arg0.finish();
956
+ return ret;
957
+ };
958
+
959
+ export function __wbg_finish_566e5beaeaeefc34(arg0, arg1) {
960
+ const ret = arg0.finish(arg1);
961
+ return ret;
962
+ };
963
+
964
+ export function __wbg_finish_a9c9f3133e6e4514(arg0, arg1) {
965
+ const ret = arg0.finish(arg1);
966
+ return ret;
967
+ };
968
+
969
+ export function __wbg_finish_e2465079e2b30a5a(arg0) {
970
+ const ret = arg0.finish();
971
+ return ret;
972
+ };
973
+
974
+ export function __wbg_from_2a5d3e218e67aa85(arg0) {
975
+ const ret = Array.from(arg0);
976
+ return ret;
977
+ };
978
+
979
+ export function __wbg_getAllResponseHeaders_83159b168d73a355() { return handleError(function (arg0, arg1) {
980
+ const ret = arg1.getAllResponseHeaders();
981
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
982
+ const len1 = WASM_VECTOR_LEN;
983
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
984
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
985
+ }, arguments) };
986
+
987
+ export function __wbg_getBindGroupLayout_06526a0d3d5b4c6a(arg0, arg1) {
988
+ const ret = arg0.getBindGroupLayout(arg1 >>> 0);
989
+ return ret;
990
+ };
991
+
992
+ export function __wbg_getBindGroupLayout_0f99651172cbcabf(arg0, arg1) {
993
+ const ret = arg0.getBindGroupLayout(arg1 >>> 0);
994
+ return ret;
995
+ };
996
+
997
+ export function __wbg_getBoundingClientRect_9073b0ff7574d76b(arg0) {
998
+ const ret = arg0.getBoundingClientRect();
999
+ return ret;
1000
+ };
1001
+
1002
+ export function __wbg_getContext_e9cf379449413580() { return handleError(function (arg0, arg1, arg2) {
1003
+ const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
1004
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1005
+ }, arguments) };
1006
+
1007
+ export function __wbg_getContext_f65a0debd1e8f8e8() { return handleError(function (arg0, arg1, arg2) {
1008
+ const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
1009
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1010
+ }, arguments) };
1011
+
1012
+ export function __wbg_getCurrentTexture_f578d59f0860dcc9(arg0) {
1013
+ const ret = arg0.getCurrentTexture();
1014
+ return ret;
1015
+ };
1016
+
1017
+ export function __wbg_getMappedRange_1a67a729fca25c5c(arg0, arg1, arg2) {
1018
+ const ret = arg0.getMappedRange(arg1, arg2);
1019
+ return ret;
1020
+ };
1021
+
1022
+ export function __wbg_getPreferredCanvasFormat_b4306c1470f3a2be(arg0) {
1023
+ const ret = arg0.getPreferredCanvasFormat();
1024
+ return (__wbindgen_enum_GpuTextureFormat.indexOf(ret) + 1 || 95) - 1;
1025
+ };
1026
+
1027
+ export function __wbg_getRandomValues_38097e921c2494c3() { return handleError(function (arg0, arg1) {
1028
+ globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
1029
+ }, arguments) };
1030
+
1031
+ export function __wbg_getRandomValues_b8f5dbd5f3995a9e() { return handleError(function (arg0, arg1) {
1032
+ arg0.getRandomValues(arg1);
1033
+ }, arguments) };
1034
+
1035
+ export function __wbg_getReader_be0d36e5873a525b(arg0) {
1036
+ const ret = arg0.getReader();
1037
+ return ret;
1038
+ };
1039
+
1040
+ export function __wbg_getTimezoneOffset_6b5752021c499c47(arg0) {
1041
+ const ret = arg0.getTimezoneOffset();
1042
+ return ret;
1043
+ };
1044
+
1045
+ export function __wbg_get_67b2ba62fc30de12() { return handleError(function (arg0, arg1) {
1046
+ const ret = Reflect.get(arg0, arg1);
1047
+ return ret;
1048
+ }, arguments) };
1049
+
1050
+ export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
1051
+ const ret = arg0[arg1 >>> 0];
1052
+ return ret;
1053
+ };
1054
+
1055
+ export function __wbg_get_e27dfaeb6f46bd45(arg0, arg1) {
1056
+ const ret = arg0[arg1 >>> 0];
1057
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1058
+ };
1059
+
1060
+ export function __wbg_getwithrefkey_1dc361bd10053bfe(arg0, arg1) {
1061
+ const ret = arg0[arg1];
1062
+ return ret;
1063
+ };
1064
+
1065
+ export function __wbg_gpu_cd94e3ed1a24e829(arg0) {
1066
+ const ret = arg0.gpu;
1067
+ return ret;
1068
+ };
1069
+
1070
+ export function __wbg_has_8d7562409899ab08(arg0, arg1, arg2) {
1071
+ const ret = arg0.has(getStringFromWasm0(arg1, arg2));
1072
+ return ret;
1073
+ };
1074
+
1075
+ export function __wbg_height_592a89ec0fb63726(arg0) {
1076
+ const ret = arg0.height;
1077
+ return ret;
1078
+ };
1079
+
1080
+ export function __wbg_height_838cee19ba8597db(arg0) {
1081
+ const ret = arg0.height;
1082
+ return ret;
1083
+ };
1084
+
1085
+ export function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0) {
1086
+ let result;
1087
+ try {
1088
+ result = arg0 instanceof ArrayBuffer;
1089
+ } catch (_) {
1090
+ result = false;
1091
+ }
1092
+ const ret = result;
1093
+ return ret;
1094
+ };
1095
+
1096
+ export function __wbg_instanceof_DomException_ed1ccb7aaf39034c(arg0) {
1097
+ let result;
1098
+ try {
1099
+ result = arg0 instanceof DOMException;
1100
+ } catch (_) {
1101
+ result = false;
1102
+ }
1103
+ const ret = result;
1104
+ return ret;
1105
+ };
1106
+
1107
+ export function __wbg_instanceof_GpuAdapter_812393144f747a28(arg0) {
1108
+ let result;
1109
+ try {
1110
+ result = arg0 instanceof GPUAdapter;
1111
+ } catch (_) {
1112
+ result = false;
1113
+ }
1114
+ const ret = result;
1115
+ return ret;
1116
+ };
1117
+
1118
+ export function __wbg_instanceof_GpuCanvasContext_7d8c2aee896960ef(arg0) {
1119
+ let result;
1120
+ try {
1121
+ result = arg0 instanceof GPUCanvasContext;
1122
+ } catch (_) {
1123
+ result = false;
1124
+ }
1125
+ const ret = result;
1126
+ return ret;
1127
+ };
1128
+
1129
+ export function __wbg_instanceof_GpuOutOfMemoryError_5661073b28c982a3(arg0) {
1130
+ let result;
1131
+ try {
1132
+ result = arg0 instanceof GPUOutOfMemoryError;
1133
+ } catch (_) {
1134
+ result = false;
1135
+ }
1136
+ const ret = result;
1137
+ return ret;
1138
+ };
1139
+
1140
+ export function __wbg_instanceof_GpuValidationError_b2b2abc70da536b4(arg0) {
1141
+ let result;
1142
+ try {
1143
+ result = arg0 instanceof GPUValidationError;
1144
+ } catch (_) {
1145
+ result = false;
1146
+ }
1147
+ const ret = result;
1148
+ return ret;
1149
+ };
1150
+
1151
+ export function __wbg_instanceof_Map_f3469ce2244d2430(arg0) {
1152
+ let result;
1153
+ try {
1154
+ result = arg0 instanceof Map;
1155
+ } catch (_) {
1156
+ result = false;
1157
+ }
1158
+ const ret = result;
1159
+ return ret;
1160
+ };
1161
+
1162
+ export function __wbg_instanceof_Memory_111add5588accff2(arg0) {
1163
+ let result;
1164
+ try {
1165
+ result = arg0 instanceof WebAssembly.Memory;
1166
+ } catch (_) {
1167
+ result = false;
1168
+ }
1169
+ const ret = result;
1170
+ return ret;
1171
+ };
1172
+
1173
+ export function __wbg_instanceof_Object_7f2dcef8f78644a4(arg0) {
1174
+ let result;
1175
+ try {
1176
+ result = arg0 instanceof Object;
1177
+ } catch (_) {
1178
+ result = false;
1179
+ }
1180
+ const ret = result;
1181
+ return ret;
1182
+ };
1183
+
1184
+ export function __wbg_instanceof_Promise_935168b8f4b49db3(arg0) {
1185
+ let result;
1186
+ try {
1187
+ result = arg0 instanceof Promise;
1188
+ } catch (_) {
1189
+ result = false;
1190
+ }
1191
+ const ret = result;
1192
+ return ret;
1193
+ };
1194
+
1195
+ export function __wbg_instanceof_ReadableStreamDefaultReader_056dcea99b3557aa(arg0) {
1196
+ let result;
1197
+ try {
1198
+ result = arg0 instanceof ReadableStreamDefaultReader;
1199
+ } catch (_) {
1200
+ result = false;
1201
+ }
1202
+ const ret = result;
1203
+ return ret;
1204
+ };
1205
+
1206
+ export function __wbg_instanceof_ReadableStream_87eac785b90f3611(arg0) {
1207
+ let result;
1208
+ try {
1209
+ result = arg0 instanceof ReadableStream;
1210
+ } catch (_) {
1211
+ result = false;
1212
+ }
1213
+ const ret = result;
1214
+ return ret;
1215
+ };
1216
+
1217
+ export function __wbg_instanceof_Response_f2cc20d9f7dfd644(arg0) {
1218
+ let result;
1219
+ try {
1220
+ result = arg0 instanceof Response;
1221
+ } catch (_) {
1222
+ result = false;
1223
+ }
1224
+ const ret = result;
1225
+ return ret;
1226
+ };
1227
+
1228
+ export function __wbg_instanceof_Uint8Array_17156bcf118086a9(arg0) {
1229
+ let result;
1230
+ try {
1231
+ result = arg0 instanceof Uint8Array;
1232
+ } catch (_) {
1233
+ result = false;
1234
+ }
1235
+ const ret = result;
1236
+ return ret;
1237
+ };
1238
+
1239
+ export function __wbg_instanceof_Window_def73ea0955fc569(arg0) {
1240
+ let result;
1241
+ try {
1242
+ result = arg0 instanceof Window;
1243
+ } catch (_) {
1244
+ result = false;
1245
+ }
1246
+ const ret = result;
1247
+ return ret;
1248
+ };
1249
+
1250
+ export function __wbg_isArray_a1eab7e0d067391b(arg0) {
1251
+ const ret = Array.isArray(arg0);
1252
+ return ret;
1253
+ };
1254
+
1255
+ export function __wbg_isSafeInteger_343e2beeeece1bb0(arg0) {
1256
+ const ret = Number.isSafeInteger(arg0);
1257
+ return ret;
1258
+ };
1259
+
1260
+ export function __wbg_iterator_9a24c88df860dc65() {
1261
+ const ret = Symbol.iterator;
1262
+ return ret;
1263
+ };
1264
+
1265
+ export function __wbg_label_ddec9d5dff390794(arg0, arg1) {
1266
+ const ret = arg1.label;
1267
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1268
+ const len1 = WASM_VECTOR_LEN;
1269
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1270
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1271
+ };
1272
+
1273
+ export function __wbg_length_a446193dc22c12f8(arg0) {
1274
+ const ret = arg0.length;
1275
+ return ret;
1276
+ };
1277
+
1278
+ export function __wbg_length_e2d2a49132c1b256(arg0) {
1279
+ const ret = arg0.length;
1280
+ return ret;
1281
+ };
1282
+
1283
+ export function __wbg_limits_100c065725b263d3(arg0) {
1284
+ const ret = arg0.limits;
1285
+ return ret;
1286
+ };
1287
+
1288
+ export function __wbg_limits_adf0926aa155a224(arg0) {
1289
+ const ret = arg0.limits;
1290
+ return ret;
1291
+ };
1292
+
1293
+ export function __wbg_log_c222819a41e063d3(arg0) {
1294
+ console.log(arg0);
1295
+ };
1296
+
1297
+ export function __wbg_mapAsync_9cae92e6e45c9c69(arg0, arg1, arg2, arg3) {
1298
+ const ret = arg0.mapAsync(arg1 >>> 0, arg2, arg3);
1299
+ return ret;
1300
+ };
1301
+
1302
+ export function __wbg_maxBindGroups_6f2433803f32568b(arg0) {
1303
+ const ret = arg0.maxBindGroups;
1304
+ return ret;
1305
+ };
1306
+
1307
+ export function __wbg_maxBindingsPerBindGroup_7663f800ee6c1c4d(arg0) {
1308
+ const ret = arg0.maxBindingsPerBindGroup;
1309
+ return ret;
1310
+ };
1311
+
1312
+ export function __wbg_maxBufferSize_7c2e7941b31faeb3(arg0) {
1313
+ const ret = arg0.maxBufferSize;
1314
+ return ret;
1315
+ };
1316
+
1317
+ export function __wbg_maxComputeInvocationsPerWorkgroup_7706224e284389bb(arg0) {
1318
+ const ret = arg0.maxComputeInvocationsPerWorkgroup;
1319
+ return ret;
1320
+ };
1321
+
1322
+ export function __wbg_maxComputeWorkgroupSizeX_7c0caad69a9b0dd3(arg0) {
1323
+ const ret = arg0.maxComputeWorkgroupSizeX;
1324
+ return ret;
1325
+ };
1326
+
1327
+ export function __wbg_maxComputeWorkgroupSizeY_add60ae79eceba95(arg0) {
1328
+ const ret = arg0.maxComputeWorkgroupSizeY;
1329
+ return ret;
1330
+ };
1331
+
1332
+ export function __wbg_maxComputeWorkgroupSizeZ_b0d9e8bb90139e66(arg0) {
1333
+ const ret = arg0.maxComputeWorkgroupSizeZ;
1334
+ return ret;
1335
+ };
1336
+
1337
+ export function __wbg_maxComputeWorkgroupStorageSize_bcc6c568b706b004(arg0) {
1338
+ const ret = arg0.maxComputeWorkgroupStorageSize;
1339
+ return ret;
1340
+ };
1341
+
1342
+ export function __wbg_maxComputeWorkgroupsPerDimension_05c9e479d4805640(arg0) {
1343
+ const ret = arg0.maxComputeWorkgroupsPerDimension;
1344
+ return ret;
1345
+ };
1346
+
1347
+ export function __wbg_maxDynamicStorageBuffersPerPipelineLayout_4017c7b096806162(arg0) {
1348
+ const ret = arg0.maxDynamicStorageBuffersPerPipelineLayout;
1349
+ return ret;
1350
+ };
1351
+
1352
+ export function __wbg_maxDynamicUniformBuffersPerPipelineLayout_1d359f3196df8904(arg0) {
1353
+ const ret = arg0.maxDynamicUniformBuffersPerPipelineLayout;
1354
+ return ret;
1355
+ };
1356
+
1357
+ export function __wbg_maxInterStageShaderComponents_d0d88326cf30e5cc(arg0) {
1358
+ const ret = arg0.maxInterStageShaderComponents;
1359
+ return ret;
1360
+ };
1361
+
1362
+ export function __wbg_maxSampledTexturesPerShaderStage_5ad571f210127408(arg0) {
1363
+ const ret = arg0.maxSampledTexturesPerShaderStage;
1364
+ return ret;
1365
+ };
1366
+
1367
+ export function __wbg_maxSamplersPerShaderStage_c2ccff8d0f9ec6fd(arg0) {
1368
+ const ret = arg0.maxSamplersPerShaderStage;
1369
+ return ret;
1370
+ };
1371
+
1372
+ export function __wbg_maxStorageBufferBindingSize_7c16519c2edc067a(arg0) {
1373
+ const ret = arg0.maxStorageBufferBindingSize;
1374
+ return ret;
1375
+ };
1376
+
1377
+ export function __wbg_maxStorageBuffersPerShaderStage_e8eff366756ea9b4(arg0) {
1378
+ const ret = arg0.maxStorageBuffersPerShaderStage;
1379
+ return ret;
1380
+ };
1381
+
1382
+ export function __wbg_maxStorageTexturesPerShaderStage_4e1d793c1e5c72a2(arg0) {
1383
+ const ret = arg0.maxStorageTexturesPerShaderStage;
1384
+ return ret;
1385
+ };
1386
+
1387
+ export function __wbg_maxTextureArrayLayers_185872b43f6c8c34(arg0) {
1388
+ const ret = arg0.maxTextureArrayLayers;
1389
+ return ret;
1390
+ };
1391
+
1392
+ export function __wbg_maxTextureDimension1D_bfa55b0304281516(arg0) {
1393
+ const ret = arg0.maxTextureDimension1D;
1394
+ return ret;
1395
+ };
1396
+
1397
+ export function __wbg_maxTextureDimension2D_ffea95d029cf185b(arg0) {
1398
+ const ret = arg0.maxTextureDimension2D;
1399
+ return ret;
1400
+ };
1401
+
1402
+ export function __wbg_maxTextureDimension3D_bdfbc27d985f367d(arg0) {
1403
+ const ret = arg0.maxTextureDimension3D;
1404
+ return ret;
1405
+ };
1406
+
1407
+ export function __wbg_maxUniformBufferBindingSize_01703051a2b68aaa(arg0) {
1408
+ const ret = arg0.maxUniformBufferBindingSize;
1409
+ return ret;
1410
+ };
1411
+
1412
+ export function __wbg_maxUniformBuffersPerShaderStage_9f2d18a988fa37a0(arg0) {
1413
+ const ret = arg0.maxUniformBuffersPerShaderStage;
1414
+ return ret;
1415
+ };
1416
+
1417
+ export function __wbg_maxVertexAttributes_268db19855a9a8bf(arg0) {
1418
+ const ret = arg0.maxVertexAttributes;
1419
+ return ret;
1420
+ };
1421
+
1422
+ export function __wbg_maxVertexBufferArrayStride_cace98777fdc5a4c(arg0) {
1423
+ const ret = arg0.maxVertexBufferArrayStride;
1424
+ return ret;
1425
+ };
1426
+
1427
+ export function __wbg_maxVertexBuffers_a8169305364fd125(arg0) {
1428
+ const ret = arg0.maxVertexBuffers;
1429
+ return ret;
1430
+ };
1431
+
1432
+ export function __wbg_message_5c5d919204d42400(arg0, arg1) {
1433
+ const ret = arg1.message;
1434
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1435
+ const len1 = WASM_VECTOR_LEN;
1436
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1437
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1438
+ };
1439
+
1440
+ export function __wbg_message_d8f5eb4a85362e32(arg0, arg1) {
1441
+ const ret = arg1.message;
1442
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1443
+ const len1 = WASM_VECTOR_LEN;
1444
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1445
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1446
+ };
1447
+
1448
+ export function __wbg_minStorageBufferOffsetAlignment_b9763b1a342987b2(arg0) {
1449
+ const ret = arg0.minStorageBufferOffsetAlignment;
1450
+ return ret;
1451
+ };
1452
+
1453
+ export function __wbg_minUniformBufferOffsetAlignment_dc9a10adad690d13(arg0) {
1454
+ const ret = arg0.minUniformBufferOffsetAlignment;
1455
+ return ret;
1456
+ };
1457
+
1458
+ export function __wbg_msCrypto_a61aeb35a24c1329(arg0) {
1459
+ const ret = arg0.msCrypto;
1460
+ return ret;
1461
+ };
1462
+
1463
+ export function __wbg_name_f2d27098bfd843e7(arg0, arg1) {
1464
+ const ret = arg1.name;
1465
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1466
+ const len1 = WASM_VECTOR_LEN;
1467
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1468
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1469
+ };
1470
+
1471
+ export function __wbg_navigator_0a9bf1120e24fec2(arg0) {
1472
+ const ret = arg0.navigator;
1473
+ return ret;
1474
+ };
1475
+
1476
+ export function __wbg_navigator_1577371c070c8947(arg0) {
1477
+ const ret = arg0.navigator;
1478
+ return ret;
1479
+ };
1480
+
1481
+ export function __wbg_new0_f788a2397c7ca929() {
1482
+ const ret = new Date();
1483
+ return ret;
1484
+ };
1485
+
1486
+ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
1487
+ try {
1488
+ var state0 = {a: arg0, b: arg1};
1489
+ var cb0 = (arg0, arg1) => {
1490
+ const a = state0.a;
1491
+ state0.a = 0;
1492
+ try {
1493
+ return __wbg_adapter_547(a, state0.b, arg0, arg1);
1494
+ } finally {
1495
+ state0.a = a;
1496
+ }
1497
+ };
1498
+ const ret = new Promise(cb0);
1499
+ return ret;
1500
+ } finally {
1501
+ state0.a = state0.b = 0;
1502
+ }
1503
+ };
1504
+
1505
+ export function __wbg_new_31a97dac4f10fab7(arg0) {
1506
+ const ret = new Date(arg0);
1507
+ return ret;
1508
+ };
1509
+
1510
+ export function __wbg_new_405e22f390576ce2() {
1511
+ const ret = new Object();
1512
+ return ret;
1513
+ };
1514
+
1515
+ export function __wbg_new_5e0be73521bc8c17() {
1516
+ const ret = new Map();
1517
+ return ret;
1518
+ };
1519
+
1520
+ export function __wbg_new_78feb108b6472713() {
1521
+ const ret = new Array();
1522
+ return ret;
1523
+ };
1524
+
1525
+ export function __wbg_new_86231e225ca6b962() { return handleError(function () {
1526
+ const ret = new XMLHttpRequest();
1527
+ return ret;
1528
+ }, arguments) };
1529
+
1530
+ export function __wbg_new_8a6f238a6ece86ea() {
1531
+ const ret = new Error();
1532
+ return ret;
1533
+ };
1534
+
1535
+ export function __wbg_new_a12002a7f91c75be(arg0) {
1536
+ const ret = new Uint8Array(arg0);
1537
+ return ret;
1538
+ };
1539
+
1540
+ export function __wbg_new_c68d7209be747379(arg0, arg1) {
1541
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
1542
+ return ret;
1543
+ };
1544
+
1545
+ export function __wbg_newnoargs_105ed471475aaf50(arg0, arg1) {
1546
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
1547
+ return ret;
1548
+ };
1549
+
1550
+ export function __wbg_newwithbyteoffsetandlength_d97e637ebe145a9a(arg0, arg1, arg2) {
1551
+ const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
1552
+ return ret;
1553
+ };
1554
+
1555
+ export function __wbg_newwithlength_a381634e90c276d4(arg0) {
1556
+ const ret = new Uint8Array(arg0 >>> 0);
1557
+ return ret;
1558
+ };
1559
+
1560
+ export function __wbg_next_25feadfc0913fea9(arg0) {
1561
+ const ret = arg0.next;
1562
+ return ret;
1563
+ };
1564
+
1565
+ export function __wbg_next_6574e1a8a62d1055() { return handleError(function (arg0) {
1566
+ const ret = arg0.next();
1567
+ return ret;
1568
+ }, arguments) };
1569
+
1570
+ export function __wbg_node_905d3e251edff8a2(arg0) {
1571
+ const ret = arg0.node;
1572
+ return ret;
1573
+ };
1574
+
1575
+ export function __wbg_now_2c95c9de01293173(arg0) {
1576
+ const ret = arg0.now();
1577
+ return ret;
1578
+ };
1579
+
1580
+ export function __wbg_now_807e54c39636c349() {
1581
+ const ret = Date.now();
1582
+ return ret;
1583
+ };
1584
+
1585
+ export function __wbg_now_d18023d54d4e5500(arg0) {
1586
+ const ret = arg0.now();
1587
+ return ret;
1588
+ };
1589
+
1590
+ export function __wbg_ok_3aaf32d069979723(arg0) {
1591
+ const ret = arg0.ok;
1592
+ return ret;
1593
+ };
1594
+
1595
+ export function __wbg_open_13a598ea50d82926() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
1596
+ arg0.open(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4), arg5 !== 0);
1597
+ }, arguments) };
1598
+
1599
+ export function __wbg_performance_7a3ffd0b17f663ad(arg0) {
1600
+ const ret = arg0.performance;
1601
+ return ret;
1602
+ };
1603
+
1604
+ export function __wbg_popErrorScope_8a0d0d31c4ddc243(arg0) {
1605
+ const ret = arg0.popErrorScope();
1606
+ return ret;
1607
+ };
1608
+
1609
+ export function __wbg_process_dc0fbacc7c1c06f7(arg0) {
1610
+ const ret = arg0.process;
1611
+ return ret;
1612
+ };
1613
+
1614
+ export function __wbg_pushErrorScope_dc8386c8142593b6(arg0, arg1) {
1615
+ arg0.pushErrorScope(__wbindgen_enum_GpuErrorFilter[arg1]);
1616
+ };
1617
+
1618
+ export function __wbg_push_737cfc8c1432c2c6(arg0, arg1) {
1619
+ const ret = arg0.push(arg1);
1620
+ return ret;
1621
+ };
1622
+
1623
+ export function __wbg_querySelectorAll_40998fd748f057ef() { return handleError(function (arg0, arg1, arg2) {
1624
+ const ret = arg0.querySelectorAll(getStringFromWasm0(arg1, arg2));
1625
+ return ret;
1626
+ }, arguments) };
1627
+
1628
+ export function __wbg_queueMicrotask_97d92b4fcc8a61c5(arg0) {
1629
+ queueMicrotask(arg0);
1630
+ };
1631
+
1632
+ export function __wbg_queueMicrotask_d3219def82552485(arg0) {
1633
+ const ret = arg0.queueMicrotask;
1634
+ return ret;
1635
+ };
1636
+
1637
+ export function __wbg_queue_d083905208ed0dcd(arg0) {
1638
+ const ret = arg0.queue;
1639
+ return ret;
1640
+ };
1641
+
1642
+ export function __wbg_randomFillSync_ac0988aba3254290() { return handleError(function (arg0, arg1) {
1643
+ arg0.randomFillSync(arg1);
1644
+ }, arguments) };
1645
+
1646
+ export function __wbg_random_3ad904d98382defe() {
1647
+ const ret = Math.random();
1648
+ return ret;
1649
+ };
1650
+
1651
+ export function __wbg_read_a2434af1186cb56c(arg0) {
1652
+ const ret = arg0.read();
1653
+ return ret;
1654
+ };
1655
+
1656
+ export function __wbg_requestAdapter_629f003011778ce0(arg0, arg1) {
1657
+ const ret = arg0.requestAdapter(arg1);
1658
+ return ret;
1659
+ };
1660
+
1661
+ export function __wbg_requestDevice_a420ce594b90ac7c(arg0, arg1) {
1662
+ const ret = arg0.requestDevice(arg1);
1663
+ return ret;
1664
+ };
1665
+
1666
+ export function __wbg_require_60cc747a6bc5215a() { return handleError(function () {
1667
+ const ret = module.require;
1668
+ return ret;
1669
+ }, arguments) };
1670
+
1671
+ export function __wbg_resolveQuerySet_2fea0e7835fc7df1(arg0, arg1, arg2, arg3, arg4, arg5) {
1672
+ arg0.resolveQuerySet(arg1, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
1673
+ };
1674
+
1675
+ export function __wbg_resolve_4851785c9c5f573d(arg0) {
1676
+ const ret = Promise.resolve(arg0);
1677
+ return ret;
1678
+ };
1679
+
1680
+ export function __wbg_response_49e10f8ee7f418db() { return handleError(function (arg0) {
1681
+ const ret = arg0.response;
1682
+ return ret;
1683
+ }, arguments) };
1684
+
1685
+ export function __wbg_runmatwasm_new(arg0) {
1686
+ const ret = RunMatWasm.__wrap(arg0);
1687
+ return ret;
1688
+ };
1689
+
1690
+ export function __wbg_send_190b4155effb7466() { return handleError(function (arg0, arg1, arg2) {
1691
+ arg0.send(arg1 === 0 ? undefined : getArrayU8FromWasm0(arg1, arg2));
1692
+ }, arguments) };
1693
+
1694
+ export function __wbg_send_40a47636ff90f64d() { return handleError(function (arg0) {
1695
+ arg0.send();
1696
+ }, arguments) };
1697
+
1698
+ export function __wbg_setBindGroup_10139726fa3dd1ea(arg0, arg1, arg2) {
1699
+ arg0.setBindGroup(arg1 >>> 0, arg2);
1700
+ };
1701
+
1702
+ export function __wbg_setBindGroup_241675b4c4b8f5ee(arg0, arg1, arg2) {
1703
+ arg0.setBindGroup(arg1 >>> 0, arg2);
1704
+ };
1705
+
1706
+ export function __wbg_setBindGroup_9ae27be0638391c7(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1707
+ arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
1708
+ };
1709
+
1710
+ export function __wbg_setBindGroup_a539eeaa822b1981(arg0, arg1, arg2) {
1711
+ arg0.setBindGroup(arg1 >>> 0, arg2);
1712
+ };
1713
+
1714
+ export function __wbg_setBindGroup_db89ccc18c604dc2(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1715
+ arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
1716
+ };
1717
+
1718
+ export function __wbg_setBindGroup_eea1f72247b40846(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1719
+ arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
1720
+ };
1721
+
1722
+ export function __wbg_setBlendConstant_898c0ee36fd7f3d6(arg0, arg1) {
1723
+ arg0.setBlendConstant(arg1);
1724
+ };
1725
+
1726
+ export function __wbg_setIndexBuffer_02484628e4be6ccf(arg0, arg1, arg2, arg3) {
1727
+ arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3);
1728
+ };
1729
+
1730
+ export function __wbg_setIndexBuffer_4179c9df498ed24f(arg0, arg1, arg2, arg3, arg4) {
1731
+ arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3, arg4);
1732
+ };
1733
+
1734
+ export function __wbg_setIndexBuffer_6241c40136dfd59c(arg0, arg1, arg2, arg3) {
1735
+ arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3);
1736
+ };
1737
+
1738
+ export function __wbg_setIndexBuffer_cac1cc97b362a161(arg0, arg1, arg2, arg3, arg4) {
1739
+ arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3, arg4);
1740
+ };
1741
+
1742
+ export function __wbg_setPipeline_065423750bbc2601(arg0, arg1) {
1743
+ arg0.setPipeline(arg1);
1744
+ };
1745
+
1746
+ export function __wbg_setPipeline_73d2200820a1b6d7(arg0, arg1) {
1747
+ arg0.setPipeline(arg1);
1748
+ };
1749
+
1750
+ export function __wbg_setPipeline_c41eba60986fbffb(arg0, arg1) {
1751
+ arg0.setPipeline(arg1);
1752
+ };
1753
+
1754
+ export function __wbg_setRequestHeader_51d371ad5196f6ef() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1755
+ arg0.setRequestHeader(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
1756
+ }, arguments) };
1757
+
1758
+ export function __wbg_setScissorRect_7ad09034bda2ad64(arg0, arg1, arg2, arg3, arg4) {
1759
+ arg0.setScissorRect(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
1760
+ };
1761
+
1762
+ export function __wbg_setStencilReference_2d44258a2b1549df(arg0, arg1) {
1763
+ arg0.setStencilReference(arg1 >>> 0);
1764
+ };
1765
+
1766
+ export function __wbg_setVertexBuffer_086ad8f1d3a3528b(arg0, arg1, arg2, arg3) {
1767
+ arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3);
1768
+ };
1769
+
1770
+ export function __wbg_setVertexBuffer_130b7f747b752e5d(arg0, arg1, arg2, arg3, arg4) {
1771
+ arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3, arg4);
1772
+ };
1773
+
1774
+ export function __wbg_setVertexBuffer_1a126bb7aa133940(arg0, arg1, arg2, arg3, arg4) {
1775
+ arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3, arg4);
1776
+ };
1777
+
1778
+ export function __wbg_setVertexBuffer_56163ae020ef8343(arg0, arg1, arg2, arg3) {
1779
+ arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3);
1780
+ };
1781
+
1782
+ export function __wbg_setViewport_0c26f0a54b53d7e3(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1783
+ arg0.setViewport(arg1, arg2, arg3, arg4, arg5, arg6);
1784
+ };
1785
+
1786
+ export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
1787
+ arg0[arg1 >>> 0] = arg2;
1788
+ };
1789
+
1790
+ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
1791
+ arg0[arg1] = arg2;
1792
+ };
1793
+
1794
+ export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
1795
+ arg0.set(arg1, arg2 >>> 0);
1796
+ };
1797
+
1798
+ export function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
1799
+ const ret = arg0.set(arg1, arg2);
1800
+ return ret;
1801
+ };
1802
+
1803
+ export function __wbg_set_bb8cecf6a62b9f46() { return handleError(function (arg0, arg1, arg2) {
1804
+ const ret = Reflect.set(arg0, arg1, arg2);
1805
+ return ret;
1806
+ }, arguments) };
1807
+
1808
+ export function __wbg_setheight_433680330c9420c3(arg0, arg1) {
1809
+ arg0.height = arg1 >>> 0;
1810
+ };
1811
+
1812
+ export function __wbg_setheight_da683a33fa99843c(arg0, arg1) {
1813
+ arg0.height = arg1 >>> 0;
1814
+ };
1815
+
1816
+ export function __wbg_setonuncapturederror_daf12032b2ca712a(arg0, arg1) {
1817
+ arg0.onuncapturederror = arg1;
1818
+ };
1819
+
1820
+ export function __wbg_setresponseType_4267195f737262d5(arg0, arg1) {
1821
+ arg0.responseType = __wbindgen_enum_XmlHttpRequestResponseType[arg1];
1822
+ };
1823
+
1824
+ export function __wbg_settimeout_0354c6307cd5eae8(arg0, arg1) {
1825
+ arg0.timeout = arg1 >>> 0;
1826
+ };
1827
+
1828
+ export function __wbg_setwidth_660ca581e3fbe279(arg0, arg1) {
1829
+ arg0.width = arg1 >>> 0;
1830
+ };
1831
+
1832
+ export function __wbg_setwidth_c5fed9f5e7f0b406(arg0, arg1) {
1833
+ arg0.width = arg1 >>> 0;
1834
+ };
1835
+
1836
+ export function __wbg_size_45c769c019ee354e(arg0) {
1837
+ const ret = arg0.size;
1838
+ return ret;
1839
+ };
1840
+
1841
+ export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
1842
+ const ret = arg1.stack;
1843
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1844
+ const len1 = WASM_VECTOR_LEN;
1845
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1846
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1847
+ };
1848
+
1849
+ export function __wbg_static_accessor_GLOBAL_88a902d13a557d07() {
1850
+ const ret = typeof global === 'undefined' ? null : global;
1851
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1852
+ };
1853
+
1854
+ export function __wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0() {
1855
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
1856
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1857
+ };
1858
+
1859
+ export function __wbg_static_accessor_SELF_37c5d418e4bf5819() {
1860
+ const ret = typeof self === 'undefined' ? null : self;
1861
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1862
+ };
1863
+
1864
+ export function __wbg_static_accessor_WINDOW_5de37043a91a9c40() {
1865
+ const ret = typeof window === 'undefined' ? null : window;
1866
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1867
+ };
1868
+
1869
+ export function __wbg_statusText_6f96b7515fb97af8() { return handleError(function (arg0, arg1) {
1870
+ const ret = arg1.statusText;
1871
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1872
+ const len1 = WASM_VECTOR_LEN;
1873
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1874
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1875
+ }, arguments) };
1876
+
1877
+ export function __wbg_status_12bcf88a8ff51470() { return handleError(function (arg0) {
1878
+ const ret = arg0.status;
1879
+ return ret;
1880
+ }, arguments) };
1881
+
1882
+ export function __wbg_status_f6360336ca686bf0(arg0) {
1883
+ const ret = arg0.status;
1884
+ return ret;
1885
+ };
1886
+
1887
+ export function __wbg_subarray_aa9065fa9dc5df96(arg0, arg1, arg2) {
1888
+ const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
1889
+ return ret;
1890
+ };
1891
+
1892
+ export function __wbg_submit_75592557e0c2141c(arg0, arg1) {
1893
+ arg0.submit(arg1);
1894
+ };
1895
+
1896
+ export function __wbg_then_44b73946d2fb3e7d(arg0, arg1) {
1897
+ const ret = arg0.then(arg1);
1898
+ return ret;
1899
+ };
1900
+
1901
+ export function __wbg_then_48b406749878a531(arg0, arg1, arg2) {
1902
+ const ret = arg0.then(arg1, arg2);
1903
+ return ret;
1904
+ };
1905
+
1906
+ export function __wbg_toISOString_b015155a5a6fe219(arg0) {
1907
+ const ret = arg0.toISOString();
1908
+ return ret;
1909
+ };
1910
+
1911
+ export function __wbg_unmap_662f1210575affe8(arg0) {
1912
+ arg0.unmap();
1913
+ };
1914
+
1915
+ export function __wbg_usage_000523533bad5f06(arg0) {
1916
+ const ret = arg0.usage;
1917
+ return ret;
1918
+ };
1919
+
1920
+ export function __wbg_valueOf_39a18758c25e8b95(arg0) {
1921
+ const ret = arg0.valueOf();
1922
+ return ret;
1923
+ };
1924
+
1925
+ export function __wbg_value_cd1ffa7b1ab794f1(arg0) {
1926
+ const ret = arg0.value;
1927
+ return ret;
1928
+ };
1929
+
1930
+ export function __wbg_versions_c01dfd4722a88165(arg0) {
1931
+ const ret = arg0.versions;
1932
+ return ret;
1933
+ };
1934
+
1935
+ export function __wbg_width_5dde457d606ba683(arg0) {
1936
+ const ret = arg0.width;
1937
+ return ret;
1938
+ };
1939
+
1940
+ export function __wbg_width_f0759bd8bad335bd(arg0) {
1941
+ const ret = arg0.width;
1942
+ return ret;
1943
+ };
1944
+
1945
+ export function __wbg_writeBuffer_c78696d1629b48de(arg0, arg1, arg2, arg3, arg4, arg5) {
1946
+ arg0.writeBuffer(arg1, arg2, arg3, arg4, arg5);
1947
+ };
1948
+
1949
+ export function __wbg_writeTexture_91ff88a4044f669a(arg0, arg1, arg2, arg3, arg4) {
1950
+ arg0.writeTexture(arg1, arg2, arg3, arg4);
1951
+ };
1952
+
1953
+ export function __wbg_writeTimestamp_a8766c734d6aa8d6(arg0, arg1, arg2) {
1954
+ arg0.writeTimestamp(arg1, arg2 >>> 0);
1955
+ };
1956
+
1957
+ export function __wbindgen_as_number(arg0) {
1958
+ const ret = +arg0;
1959
+ return ret;
1960
+ };
1961
+
1962
+ export function __wbindgen_bigint_from_i64(arg0) {
1963
+ const ret = arg0;
1964
+ return ret;
1965
+ };
1966
+
1967
+ export function __wbindgen_bigint_from_u64(arg0) {
1968
+ const ret = BigInt.asUintN(64, arg0);
1969
+ return ret;
1970
+ };
1971
+
1972
+ export function __wbindgen_bigint_get_as_i64(arg0, arg1) {
1973
+ const v = arg1;
1974
+ const ret = typeof(v) === 'bigint' ? v : undefined;
1975
+ getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
1976
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1977
+ };
1978
+
1979
+ export function __wbindgen_boolean_get(arg0) {
1980
+ const v = arg0;
1981
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1982
+ return ret;
1983
+ };
1984
+
1985
+ export function __wbindgen_cb_drop(arg0) {
1986
+ const obj = arg0.original;
1987
+ if (obj.cnt-- == 1) {
1988
+ obj.a = 0;
1989
+ return true;
1990
+ }
1991
+ const ret = false;
1992
+ return ret;
1993
+ };
1994
+
1995
+ export function __wbindgen_closure_wrapper12886(arg0, arg1, arg2) {
1996
+ const ret = makeMutClosure(arg0, arg1, 4251, __wbg_adapter_54);
1997
+ return ret;
1998
+ };
1999
+
2000
+ export function __wbindgen_closure_wrapper13360(arg0, arg1, arg2) {
2001
+ const ret = makeMutClosure(arg0, arg1, 4258, __wbg_adapter_57);
2002
+ return ret;
2003
+ };
2004
+
2005
+ export function __wbindgen_debug_string(arg0, arg1) {
2006
+ const ret = debugString(arg1);
2007
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2008
+ const len1 = WASM_VECTOR_LEN;
2009
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2010
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2011
+ };
2012
+
2013
+ export function __wbindgen_error_new(arg0, arg1) {
2014
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
2015
+ return ret;
2016
+ };
2017
+
2018
+ export function __wbindgen_in(arg0, arg1) {
2019
+ const ret = arg0 in arg1;
2020
+ return ret;
2021
+ };
2022
+
2023
+ export function __wbindgen_init_externref_table() {
2024
+ const table = wasm.__wbindgen_export_4;
2025
+ const offset = table.grow(4);
2026
+ table.set(0, undefined);
2027
+ table.set(offset + 0, undefined);
2028
+ table.set(offset + 1, null);
2029
+ table.set(offset + 2, true);
2030
+ table.set(offset + 3, false);
2031
+ ;
2032
+ };
2033
+
2034
+ export function __wbindgen_is_bigint(arg0) {
2035
+ const ret = typeof(arg0) === 'bigint';
2036
+ return ret;
2037
+ };
2038
+
2039
+ export function __wbindgen_is_function(arg0) {
2040
+ const ret = typeof(arg0) === 'function';
2041
+ return ret;
2042
+ };
2043
+
2044
+ export function __wbindgen_is_null(arg0) {
2045
+ const ret = arg0 === null;
2046
+ return ret;
2047
+ };
2048
+
2049
+ export function __wbindgen_is_object(arg0) {
2050
+ const val = arg0;
2051
+ const ret = typeof(val) === 'object' && val !== null;
2052
+ return ret;
2053
+ };
2054
+
2055
+ export function __wbindgen_is_string(arg0) {
2056
+ const ret = typeof(arg0) === 'string';
2057
+ return ret;
2058
+ };
2059
+
2060
+ export function __wbindgen_is_undefined(arg0) {
2061
+ const ret = arg0 === undefined;
2062
+ return ret;
2063
+ };
2064
+
2065
+ export function __wbindgen_jsval_eq(arg0, arg1) {
2066
+ const ret = arg0 === arg1;
2067
+ return ret;
2068
+ };
2069
+
2070
+ export function __wbindgen_jsval_loose_eq(arg0, arg1) {
2071
+ const ret = arg0 == arg1;
2072
+ return ret;
2073
+ };
2074
+
2075
+ export function __wbindgen_memory() {
2076
+ const ret = wasm.memory;
2077
+ return ret;
2078
+ };
2079
+
2080
+ export function __wbindgen_number_get(arg0, arg1) {
2081
+ const obj = arg1;
2082
+ const ret = typeof(obj) === 'number' ? obj : undefined;
2083
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
2084
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
2085
+ };
2086
+
2087
+ export function __wbindgen_number_new(arg0) {
2088
+ const ret = arg0;
2089
+ return ret;
2090
+ };
2091
+
2092
+ export function __wbindgen_string_get(arg0, arg1) {
2093
+ const obj = arg1;
2094
+ const ret = typeof(obj) === 'string' ? obj : undefined;
2095
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2096
+ var len1 = WASM_VECTOR_LEN;
2097
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2098
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2099
+ };
2100
+
2101
+ export function __wbindgen_string_new(arg0, arg1) {
2102
+ const ret = getStringFromWasm0(arg0, arg1);
2103
+ return ret;
2104
+ };
2105
+
2106
+ export function __wbindgen_throw(arg0, arg1) {
2107
+ throw new Error(getStringFromWasm0(arg0, arg1));
2108
+ };
2109
+