proteus-sdk 0.0.0-stage → 0.1.1

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,3436 @@
1
+ /**
2
+ * A handle to a component.
3
+ */
4
+ export class Handle {
5
+ static __wrap(ptr) {
6
+ const obj = Object.create(Handle.prototype);
7
+ obj.__wbg_ptr = ptr;
8
+ HandleFinalization.register(obj, obj.__wbg_ptr, obj);
9
+ return obj;
10
+ }
11
+ __destroy_into_raw() {
12
+ const ptr = this.__wbg_ptr;
13
+ this.__wbg_ptr = 0;
14
+ HandleFinalization.unregister(this);
15
+ return ptr;
16
+ }
17
+ free() {
18
+ const ptr = this.__destroy_into_raw();
19
+ wasm.__wbg_handle_free(ptr, 0);
20
+ }
21
+ /**
22
+ * Returns a handle for an ID from [`Handle::id`] or
23
+ * `ComponentData.children`. The ID isn't checked: if its component has
24
+ * been destroyed, methods that change it throw and `get` returns
25
+ * `undefined`.
26
+ * @param {number} id
27
+ * @returns {Handle}
28
+ */
29
+ static fromId(id) {
30
+ const ret = wasm.handle_fromId(id);
31
+ return Handle.__wrap(ret);
32
+ }
33
+ /**
34
+ * The component's ID: its entity's bits as a number, which is exact for
35
+ * any realistic app (see the `dto` module). [`Handle::from_id`] turns it
36
+ * back into a handle.
37
+ * @returns {number}
38
+ */
39
+ id() {
40
+ const ret = wasm.handle_id(this.__wbg_ptr);
41
+ return ret;
42
+ }
43
+ }
44
+ if (Symbol.dispose) Handle.prototype[Symbol.dispose] = Handle.prototype.free;
45
+
46
+ /**
47
+ * A [`Proteus`](sdk::Proteus) app, as JavaScript sees it. Cloning shares the
48
+ * same app.
49
+ */
50
+ export class ProteusApp {
51
+ static __wrap(ptr) {
52
+ const obj = Object.create(ProteusApp.prototype);
53
+ obj.__wbg_ptr = ptr;
54
+ ProteusAppFinalization.register(obj, obj.__wbg_ptr, obj);
55
+ return obj;
56
+ }
57
+ __destroy_into_raw() {
58
+ const ptr = this.__wbg_ptr;
59
+ this.__wbg_ptr = 0;
60
+ ProteusAppFinalization.unregister(this);
61
+ return ptr;
62
+ }
63
+ free() {
64
+ const ptr = this.__destroy_into_raw();
65
+ wasm.__wbg_proteusapp_free(ptr, 0);
66
+ }
67
+ /**
68
+ * Calls [`Handle::add_child`](sdk::Handle::add_child).
69
+ * @param {Handle} parent
70
+ * @param {Handle} child
71
+ */
72
+ addChild(parent, child) {
73
+ _assertClass(parent, Handle);
74
+ _assertClass(child, Handle);
75
+ const ret = wasm.proteusapp_addChild(this.__wbg_ptr, parent.__wbg_ptr, child.__wbg_ptr);
76
+ if (ret[1]) {
77
+ throw takeFromExternrefTable0(ret[0]);
78
+ }
79
+ }
80
+ /**
81
+ * Calls [`Handle::animate_to`](sdk::Handle::animate_to).
82
+ * @param {Handle} handle
83
+ * @param {any} to
84
+ * @param {any} config
85
+ */
86
+ animateTo(handle, to, config) {
87
+ _assertClass(handle, Handle);
88
+ const ret = wasm.proteusapp_animateTo(this.__wbg_ptr, handle.__wbg_ptr, to, config);
89
+ if (ret[1]) {
90
+ throw takeFromExternrefTable0(ret[0]);
91
+ }
92
+ }
93
+ /**
94
+ * Calls [`Proteus::bake_texture`](sdk::Proteus::bake_texture).
95
+ * @param {number} width
96
+ * @param {number} height
97
+ * @param {Uint8Array} rgba
98
+ * @param {any} request
99
+ * @returns {TextureHandle}
100
+ */
101
+ bakeTexture(width, height, rgba, request) {
102
+ const ptr0 = passArray8ToWasm0(rgba, wasm.__wbindgen_malloc);
103
+ const len0 = WASM_VECTOR_LEN;
104
+ const ret = wasm.proteusapp_bakeTexture(this.__wbg_ptr, width, height, ptr0, len0, request);
105
+ return TextureHandle.__wrap(ret);
106
+ }
107
+ /**
108
+ * Calls [`Handle::baked_image_size`](sdk::Handle::baked_image_size).
109
+ * Returns `undefined` if there is no baked image.
110
+ * @param {Handle} handle
111
+ * @returns {any}
112
+ */
113
+ bakedImageSize(handle) {
114
+ _assertClass(handle, Handle);
115
+ const ret = wasm.proteusapp_bakedImageSize(this.__wbg_ptr, handle.__wbg_ptr);
116
+ return ret;
117
+ }
118
+ /**
119
+ * Calls [`Handle::baked_text_size`](sdk::Handle::baked_text_size).
120
+ * Returns `undefined` if there is no baked text.
121
+ * @param {Handle} handle
122
+ * @returns {any}
123
+ */
124
+ bakedTextSize(handle) {
125
+ _assertClass(handle, Handle);
126
+ const ret = wasm.proteusapp_bakedTextSize(this.__wbg_ptr, handle.__wbg_ptr);
127
+ return ret;
128
+ }
129
+ /**
130
+ * Calls [`TransitionChannel::destroy`](sdk::TransitionChannel::destroy). Consumes
131
+ * `channel`: the JavaScript object can't be used afterwards.
132
+ * @param {TransitionChannel} channel
133
+ */
134
+ channelDestroy(channel) {
135
+ _assertClass(channel, TransitionChannel);
136
+ var ptr0 = channel.__destroy_into_raw();
137
+ wasm.proteusapp_channelDestroy(this.__wbg_ptr, ptr0);
138
+ }
139
+ /**
140
+ * Calls [`TransitionChannel::set`](sdk::TransitionChannel::set).
141
+ * @param {TransitionChannel} channel
142
+ * @param {Handle} to
143
+ * @param {Handle} from
144
+ * @param {any} config
145
+ * @param {boolean} interruptible
146
+ */
147
+ channelSet(channel, to, from, config, interruptible) {
148
+ _assertClass(channel, TransitionChannel);
149
+ _assertClass(to, Handle);
150
+ _assertClass(from, Handle);
151
+ const ret = wasm.proteusapp_channelSet(this.__wbg_ptr, channel.__wbg_ptr, to.__wbg_ptr, from.__wbg_ptr, config, interruptible);
152
+ if (ret[1]) {
153
+ throw takeFromExternrefTable0(ret[0]);
154
+ }
155
+ }
156
+ /**
157
+ * Calls [`Proteus::component`](sdk::Proteus::component). `spec` is a
158
+ * `ComponentSpec` object; its `children` are handle IDs.
159
+ * @param {any} spec
160
+ * @returns {Handle}
161
+ */
162
+ component(spec) {
163
+ const ret = wasm.proteusapp_component(this.__wbg_ptr, spec);
164
+ if (ret[2]) {
165
+ throw takeFromExternrefTable0(ret[1]);
166
+ }
167
+ return Handle.__wrap(ret[0]);
168
+ }
169
+ /**
170
+ * Calls [`Handle::copy_baked_image_from`](sdk::Handle::copy_baked_image_from).
171
+ * @param {Handle} handle
172
+ * @param {Handle} source
173
+ * @returns {boolean}
174
+ */
175
+ copyBakedImageFrom(handle, source) {
176
+ _assertClass(handle, Handle);
177
+ _assertClass(source, Handle);
178
+ const ret = wasm.proteusapp_copyBakedImageFrom(this.__wbg_ptr, handle.__wbg_ptr, source.__wbg_ptr);
179
+ if (ret[2]) {
180
+ throw takeFromExternrefTable0(ret[1]);
181
+ }
182
+ return ret[0] !== 0;
183
+ }
184
+ /**
185
+ * Calls [`Proteus::create_video`](sdk::Proteus::create_video).
186
+ * @returns {VideoHandle}
187
+ */
188
+ createVideo() {
189
+ const ret = wasm.proteusapp_createVideo(this.__wbg_ptr);
190
+ return VideoHandle.__wrap(ret);
191
+ }
192
+ /**
193
+ * Calls [`Handle::crop_image`](sdk::Handle::crop_image). Throws if
194
+ * `crop` isn't a valid `ImageCrop`.
195
+ * @param {Handle} handle
196
+ * @param {any} crop
197
+ * @returns {boolean}
198
+ */
199
+ cropImage(handle, crop) {
200
+ _assertClass(handle, Handle);
201
+ const ret = wasm.proteusapp_cropImage(this.__wbg_ptr, handle.__wbg_ptr, crop);
202
+ if (ret[2]) {
203
+ throw takeFromExternrefTable0(ret[1]);
204
+ }
205
+ return ret[0] !== 0;
206
+ }
207
+ /**
208
+ * Calls [`Handle::destroy`](sdk::Handle::destroy). Consumes `handle`: the
209
+ * JavaScript object can't be used afterwards.
210
+ * @param {Handle} handle
211
+ */
212
+ destroy(handle) {
213
+ _assertClass(handle, Handle);
214
+ var ptr0 = handle.__destroy_into_raw();
215
+ const ret = wasm.proteusapp_destroy(this.__wbg_ptr, ptr0);
216
+ if (ret[1]) {
217
+ throw takeFromExternrefTable0(ret[0]);
218
+ }
219
+ }
220
+ /**
221
+ * Calls [`Handle::free_resources`](sdk::Handle::free_resources).
222
+ * @param {Handle} handle
223
+ */
224
+ freeResources(handle) {
225
+ _assertClass(handle, Handle);
226
+ const ret = wasm.proteusapp_freeResources(this.__wbg_ptr, handle.__wbg_ptr);
227
+ if (ret[1]) {
228
+ throw takeFromExternrefTable0(ret[0]);
229
+ }
230
+ }
231
+ /**
232
+ * Calls [`Proteus::get`](sdk::Proteus::get). Returns `undefined` if the
233
+ * component has been destroyed.
234
+ * @param {Handle} handle
235
+ * @returns {any}
236
+ */
237
+ get(handle) {
238
+ _assertClass(handle, Handle);
239
+ const ret = wasm.proteusapp_get(this.__wbg_ptr, handle.__wbg_ptr);
240
+ return ret;
241
+ }
242
+ /**
243
+ * Calls [`Handle::hide_video`](sdk::Handle::hide_video).
244
+ * @param {Handle} handle
245
+ */
246
+ hideVideo(handle) {
247
+ _assertClass(handle, Handle);
248
+ const ret = wasm.proteusapp_hideVideo(this.__wbg_ptr, handle.__wbg_ptr);
249
+ if (ret[1]) {
250
+ throw takeFromExternrefTable0(ret[0]);
251
+ }
252
+ }
253
+ /**
254
+ * Calls [`Proteus::load_texture`](sdk::Proteus::load_texture). Returns
255
+ * `undefined` if the bytes can't be decoded.
256
+ * @param {Uint8Array} bytes
257
+ * @param {any} request
258
+ * @returns {TextureHandle | undefined}
259
+ */
260
+ loadTexture(bytes, request) {
261
+ const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
262
+ const len0 = WASM_VECTOR_LEN;
263
+ const ret = wasm.proteusapp_loadTexture(this.__wbg_ptr, ptr0, len0, request);
264
+ return ret === 0 ? undefined : TextureHandle.__wrap(ret);
265
+ }
266
+ /**
267
+ * Calls [`Handle::merge_from`](sdk::Handle::merge_from). The sources
268
+ * cross as handle IDs.
269
+ * @param {Handle} handle
270
+ * @param {Float64Array} source_ids
271
+ * @param {any} config
272
+ * @param {any} layout
273
+ */
274
+ mergeFrom(handle, source_ids, config, layout) {
275
+ _assertClass(handle, Handle);
276
+ const ptr0 = passArrayF64ToWasm0(source_ids, wasm.__wbindgen_malloc);
277
+ const len0 = WASM_VECTOR_LEN;
278
+ const ret = wasm.proteusapp_mergeFrom(this.__wbg_ptr, handle.__wbg_ptr, ptr0, len0, config, layout);
279
+ if (ret[1]) {
280
+ throw takeFromExternrefTable0(ret[0]);
281
+ }
282
+ }
283
+ /**
284
+ * Calls [`Handle::merge_from_with_behavior`](sdk::Handle::merge_from_with_behavior).
285
+ * `child_behavior` is called once per source, before the merge starts.
286
+ * @param {Handle} handle
287
+ * @param {Float64Array} source_ids
288
+ * @param {any} config
289
+ * @param {any} layout
290
+ * @param {Function} child_behavior
291
+ */
292
+ mergeFromWithBehavior(handle, source_ids, config, layout, child_behavior) {
293
+ _assertClass(handle, Handle);
294
+ const ptr0 = passArrayF64ToWasm0(source_ids, wasm.__wbindgen_malloc);
295
+ const len0 = WASM_VECTOR_LEN;
296
+ const ret = wasm.proteusapp_mergeFromWithBehavior(this.__wbg_ptr, handle.__wbg_ptr, ptr0, len0, config, layout, child_behavior);
297
+ if (ret[1]) {
298
+ throw takeFromExternrefTable0(ret[0]);
299
+ }
300
+ }
301
+ /**
302
+ * Creates a standalone app, with no host, that draws nothing.
303
+ */
304
+ constructor() {
305
+ const ret = wasm.proteusapp_new();
306
+ this.__wbg_ptr = ret;
307
+ ProteusAppFinalization.register(this, this.__wbg_ptr, this);
308
+ return this;
309
+ }
310
+ /**
311
+ * Calls [`Handle::on_blur`](sdk::Handle::on_blur).
312
+ * @param {Handle} handle
313
+ * @param {Function} cb
314
+ */
315
+ onBlur(handle, cb) {
316
+ _assertClass(handle, Handle);
317
+ wasm.proteusapp_onBlur(this.__wbg_ptr, handle.__wbg_ptr, cb);
318
+ }
319
+ /**
320
+ * Calls [`Handle::on_click`](sdk::Handle::on_click).
321
+ * @param {Handle} handle
322
+ * @param {Function} cb
323
+ */
324
+ onClick(handle, cb) {
325
+ _assertClass(handle, Handle);
326
+ wasm.proteusapp_onClick(this.__wbg_ptr, handle.__wbg_ptr, cb);
327
+ }
328
+ /**
329
+ * Calls [`Handle::on_drag`](sdk::Handle::on_drag). `cb` receives the
330
+ * movement as two numbers, `x` and `y`.
331
+ * @param {Handle} handle
332
+ * @param {Function} cb
333
+ */
334
+ onDrag(handle, cb) {
335
+ _assertClass(handle, Handle);
336
+ wasm.proteusapp_onDrag(this.__wbg_ptr, handle.__wbg_ptr, cb);
337
+ }
338
+ /**
339
+ * Calls [`TransitionChannel::on_dropped`](sdk::TransitionChannel::on_dropped).
340
+ * @param {TransitionChannel} channel
341
+ * @param {Function} cb
342
+ */
343
+ onDropped(channel, cb) {
344
+ _assertClass(channel, TransitionChannel);
345
+ wasm.proteusapp_onDropped(this.__wbg_ptr, channel.__wbg_ptr, cb);
346
+ }
347
+ /**
348
+ * Calls [`Handle::on_focus`](sdk::Handle::on_focus).
349
+ * @param {Handle} handle
350
+ * @param {Function} cb
351
+ */
352
+ onFocus(handle, cb) {
353
+ _assertClass(handle, Handle);
354
+ wasm.proteusapp_onFocus(this.__wbg_ptr, handle.__wbg_ptr, cb);
355
+ }
356
+ /**
357
+ * Calls [`Handle::on_hover_enter`](sdk::Handle::on_hover_enter).
358
+ * @param {Handle} handle
359
+ * @param {Function} cb
360
+ */
361
+ onHoverEnter(handle, cb) {
362
+ _assertClass(handle, Handle);
363
+ wasm.proteusapp_onHoverEnter(this.__wbg_ptr, handle.__wbg_ptr, cb);
364
+ }
365
+ /**
366
+ * Calls [`Handle::on_hover_exit`](sdk::Handle::on_hover_exit).
367
+ * @param {Handle} handle
368
+ * @param {Function} cb
369
+ */
370
+ onHoverExit(handle, cb) {
371
+ _assertClass(handle, Handle);
372
+ wasm.proteusapp_onHoverExit(this.__wbg_ptr, handle.__wbg_ptr, cb);
373
+ }
374
+ /**
375
+ * Calls [`Handle::on_press`](sdk::Handle::on_press).
376
+ * @param {Handle} handle
377
+ * @param {Function} cb
378
+ */
379
+ onPress(handle, cb) {
380
+ _assertClass(handle, Handle);
381
+ wasm.proteusapp_onPress(this.__wbg_ptr, handle.__wbg_ptr, cb);
382
+ }
383
+ /**
384
+ * Calls [`Handle::on_release`](sdk::Handle::on_release).
385
+ * @param {Handle} handle
386
+ * @param {Function} cb
387
+ */
388
+ onRelease(handle, cb) {
389
+ _assertClass(handle, Handle);
390
+ wasm.proteusapp_onRelease(this.__wbg_ptr, handle.__wbg_ptr, cb);
391
+ }
392
+ /**
393
+ * Calls [`Handle::on_transition_complete`](sdk::Handle::on_transition_complete).
394
+ * @param {Handle} handle
395
+ * @param {Function} cb
396
+ */
397
+ onTransitionComplete(handle, cb) {
398
+ _assertClass(handle, Handle);
399
+ wasm.proteusapp_onTransitionComplete(this.__wbg_ptr, handle.__wbg_ptr, cb);
400
+ }
401
+ /**
402
+ * Records that the pointer left the viewport: `pointer_moved(None)`.
403
+ */
404
+ pointerLeft() {
405
+ wasm.proteusapp_pointerLeft(this.__wbg_ptr);
406
+ }
407
+ /**
408
+ * Calls [`Proteus::pointer_moved`](sdk::Proteus::pointer_moved). `x` and
409
+ * `y` are world units: origin at the viewport center, y up.
410
+ * @param {number} x
411
+ * @param {number} y
412
+ */
413
+ pointerMoved(x, y) {
414
+ wasm.proteusapp_pointerMoved(this.__wbg_ptr, x, y);
415
+ }
416
+ /**
417
+ * Calls [`Proteus::pointer_pressed`](sdk::Proteus::pointer_pressed).
418
+ */
419
+ pointerPressed() {
420
+ wasm.proteusapp_pointerPressed(this.__wbg_ptr);
421
+ }
422
+ /**
423
+ * Calls [`Proteus::pointer_released`](sdk::Proteus::pointer_released).
424
+ */
425
+ pointerReleased() {
426
+ wasm.proteusapp_pointerReleased(this.__wbg_ptr);
427
+ }
428
+ /**
429
+ * Calls [`VideoHandle::release`](sdk::VideoHandle::release).
430
+ * @param {VideoHandle} video
431
+ */
432
+ releaseVideo(video) {
433
+ _assertClass(video, VideoHandle);
434
+ wasm.proteusapp_releaseVideo(this.__wbg_ptr, video.__wbg_ptr);
435
+ }
436
+ /**
437
+ * Calls [`Handle::remove_child`](sdk::Handle::remove_child).
438
+ * @param {Handle} parent
439
+ * @param {Handle} child
440
+ */
441
+ removeChild(parent, child) {
442
+ _assertClass(parent, Handle);
443
+ _assertClass(child, Handle);
444
+ const ret = wasm.proteusapp_removeChild(this.__wbg_ptr, parent.__wbg_ptr, child.__wbg_ptr);
445
+ if (ret[1]) {
446
+ throw takeFromExternrefTable0(ret[0]);
447
+ }
448
+ }
449
+ /**
450
+ * Calls [`Handle::set_declared_geometry`](sdk::Handle::set_declared_geometry).
451
+ * @param {Handle} handle
452
+ * @param {any} state
453
+ */
454
+ setDeclaredGeometry(handle, state) {
455
+ _assertClass(handle, Handle);
456
+ const ret = wasm.proteusapp_setDeclaredGeometry(this.__wbg_ptr, handle.__wbg_ptr, state);
457
+ if (ret[1]) {
458
+ throw takeFromExternrefTable0(ret[0]);
459
+ }
460
+ }
461
+ /**
462
+ * Calls [`Handle::set_disabled`](sdk::Handle::set_disabled).
463
+ * @param {Handle} handle
464
+ * @param {boolean} disabled
465
+ */
466
+ setDisabled(handle, disabled) {
467
+ _assertClass(handle, Handle);
468
+ const ret = wasm.proteusapp_setDisabled(this.__wbg_ptr, handle.__wbg_ptr, disabled);
469
+ if (ret[1]) {
470
+ throw takeFromExternrefTable0(ret[0]);
471
+ }
472
+ }
473
+ /**
474
+ * Calls [`Handle::set_image`](sdk::Handle::set_image).
475
+ * @param {Handle} handle
476
+ * @param {any} image
477
+ */
478
+ setImage(handle, image) {
479
+ _assertClass(handle, Handle);
480
+ const ret = wasm.proteusapp_setImage(this.__wbg_ptr, handle.__wbg_ptr, image);
481
+ if (ret[1]) {
482
+ throw takeFromExternrefTable0(ret[0]);
483
+ }
484
+ }
485
+ /**
486
+ * Calls [`Handle::set_interactive`](sdk::Handle::set_interactive).
487
+ * @param {Handle} handle
488
+ * @param {boolean} interactive
489
+ */
490
+ setInteractive(handle, interactive) {
491
+ _assertClass(handle, Handle);
492
+ const ret = wasm.proteusapp_setInteractive(this.__wbg_ptr, handle.__wbg_ptr, interactive);
493
+ if (ret[1]) {
494
+ throw takeFromExternrefTable0(ret[0]);
495
+ }
496
+ }
497
+ /**
498
+ * Calls [`Handle::set_opacity`](sdk::Handle::set_opacity).
499
+ * @param {Handle} handle
500
+ * @param {number} opacity
501
+ */
502
+ setOpacity(handle, opacity) {
503
+ _assertClass(handle, Handle);
504
+ const ret = wasm.proteusapp_setOpacity(this.__wbg_ptr, handle.__wbg_ptr, opacity);
505
+ if (ret[1]) {
506
+ throw takeFromExternrefTable0(ret[0]);
507
+ }
508
+ }
509
+ /**
510
+ * Calls [`Handle::set_text`](sdk::Handle::set_text).
511
+ * @param {Handle} handle
512
+ * @param {any} text
513
+ */
514
+ setText(handle, text) {
515
+ _assertClass(handle, Handle);
516
+ const ret = wasm.proteusapp_setText(this.__wbg_ptr, handle.__wbg_ptr, text);
517
+ if (ret[1]) {
518
+ throw takeFromExternrefTable0(ret[0]);
519
+ }
520
+ }
521
+ /**
522
+ * Calls [`Handle::set_texture`](sdk::Handle::set_texture).
523
+ * @param {Handle} handle
524
+ * @param {TextureHandle} texture
525
+ * @returns {boolean}
526
+ */
527
+ setTexture(handle, texture) {
528
+ _assertClass(handle, Handle);
529
+ _assertClass(texture, TextureHandle);
530
+ const ret = wasm.proteusapp_setTexture(this.__wbg_ptr, handle.__wbg_ptr, texture.__wbg_ptr);
531
+ if (ret[2]) {
532
+ throw takeFromExternrefTable0(ret[1]);
533
+ }
534
+ return ret[0] !== 0;
535
+ }
536
+ /**
537
+ * Calls [`Handle::set_transition_interaction`](sdk::Handle::set_transition_interaction).
538
+ * `null` or `undefined` restores the default.
539
+ * @param {Handle} handle
540
+ * @param {any} config
541
+ */
542
+ setTransitionInteraction(handle, config) {
543
+ _assertClass(handle, Handle);
544
+ const ret = wasm.proteusapp_setTransitionInteraction(this.__wbg_ptr, handle.__wbg_ptr, config);
545
+ if (ret[1]) {
546
+ throw takeFromExternrefTable0(ret[0]);
547
+ }
548
+ }
549
+ /**
550
+ * Calls [`Handle::set_video_crossfade`](sdk::Handle::set_video_crossfade).
551
+ * @param {Handle} handle
552
+ * @param {number} video_t
553
+ * @returns {boolean}
554
+ */
555
+ setVideoCrossfade(handle, video_t) {
556
+ _assertClass(handle, Handle);
557
+ const ret = wasm.proteusapp_setVideoCrossfade(this.__wbg_ptr, handle.__wbg_ptr, video_t);
558
+ if (ret[2]) {
559
+ throw takeFromExternrefTable0(ret[1]);
560
+ }
561
+ return ret[0] !== 0;
562
+ }
563
+ /**
564
+ * Calls [`Handle::set_visible`](sdk::Handle::set_visible).
565
+ * @param {Handle} handle
566
+ * @param {boolean} visible
567
+ */
568
+ setVisible(handle, visible) {
569
+ _assertClass(handle, Handle);
570
+ const ret = wasm.proteusapp_setVisible(this.__wbg_ptr, handle.__wbg_ptr, visible);
571
+ if (ret[1]) {
572
+ throw takeFromExternrefTable0(ret[0]);
573
+ }
574
+ }
575
+ /**
576
+ * Calls [`Handle::show_video`](sdk::Handle::show_video).
577
+ * @param {Handle} handle
578
+ * @param {VideoHandle} video
579
+ * @returns {boolean}
580
+ */
581
+ showVideo(handle, video) {
582
+ _assertClass(handle, Handle);
583
+ _assertClass(video, VideoHandle);
584
+ const ret = wasm.proteusapp_showVideo(this.__wbg_ptr, handle.__wbg_ptr, video.__wbg_ptr);
585
+ if (ret[2]) {
586
+ throw takeFromExternrefTable0(ret[1]);
587
+ }
588
+ return ret[0] !== 0;
589
+ }
590
+ /**
591
+ * Calls [`Handle::split_to`](sdk::Handle::split_to). The targets cross
592
+ * as handle IDs.
593
+ * @param {Handle} handle
594
+ * @param {Float64Array} target_ids
595
+ * @param {any} config
596
+ * @param {any} strategy
597
+ */
598
+ splitTo(handle, target_ids, config, strategy) {
599
+ _assertClass(handle, Handle);
600
+ const ptr0 = passArrayF64ToWasm0(target_ids, wasm.__wbindgen_malloc);
601
+ const len0 = WASM_VECTOR_LEN;
602
+ const ret = wasm.proteusapp_splitTo(this.__wbg_ptr, handle.__wbg_ptr, ptr0, len0, config, strategy);
603
+ if (ret[1]) {
604
+ throw takeFromExternrefTable0(ret[0]);
605
+ }
606
+ }
607
+ /**
608
+ * Calls [`Handle::split_to_with_behavior`](sdk::Handle::split_to_with_behavior).
609
+ * `child_behavior` is called once per target, before the split starts.
610
+ * @param {Handle} handle
611
+ * @param {Float64Array} target_ids
612
+ * @param {any} config
613
+ * @param {any} strategy
614
+ * @param {Function} child_behavior
615
+ */
616
+ splitToWithBehavior(handle, target_ids, config, strategy, child_behavior) {
617
+ _assertClass(handle, Handle);
618
+ const ptr0 = passArrayF64ToWasm0(target_ids, wasm.__wbindgen_malloc);
619
+ const len0 = WASM_VECTOR_LEN;
620
+ const ret = wasm.proteusapp_splitToWithBehavior(this.__wbg_ptr, handle.__wbg_ptr, ptr0, len0, config, strategy, child_behavior);
621
+ if (ret[1]) {
622
+ throw takeFromExternrefTable0(ret[0]);
623
+ }
624
+ }
625
+ /**
626
+ * Calls [`Handle::split_to_with_states`](sdk::Handle::split_to_with_states).
627
+ * `targets` is an array of `{ id, state }` objects.
628
+ * @param {Handle} handle
629
+ * @param {any} targets
630
+ * @param {any} config
631
+ * @param {any} strategy
632
+ */
633
+ splitToWithStates(handle, targets, config, strategy) {
634
+ _assertClass(handle, Handle);
635
+ const ret = wasm.proteusapp_splitToWithStates(this.__wbg_ptr, handle.__wbg_ptr, targets, config, strategy);
636
+ if (ret[1]) {
637
+ throw takeFromExternrefTable0(ret[0]);
638
+ }
639
+ }
640
+ /**
641
+ * Returns a texture handle for a texture ID.
642
+ * @param {number} id
643
+ * @returns {TextureHandle}
644
+ */
645
+ texture(id) {
646
+ const ret = wasm.proteusapp_texture(this.__wbg_ptr, id);
647
+ return TextureHandle.__wrap(ret);
648
+ }
649
+ /**
650
+ * Calls [`TextureHandle::state`](sdk::TextureHandle::state). Returns
651
+ * `undefined` if the texture has been evicted or never existed.
652
+ * @param {TextureHandle} handle
653
+ * @returns {any}
654
+ */
655
+ textureState(handle) {
656
+ _assertClass(handle, TextureHandle);
657
+ const ret = wasm.proteusapp_textureState(this.__wbg_ptr, handle.__wbg_ptr);
658
+ return ret;
659
+ }
660
+ /**
661
+ * Calls [`Proteus::tick`](sdk::Proteus::tick). For a standalone app only:
662
+ * a host ticks the shared `Proteus` itself.
663
+ * @param {number} dt
664
+ */
665
+ tick(dt) {
666
+ wasm.proteusapp_tick(this.__wbg_ptr, dt);
667
+ }
668
+ /**
669
+ * Calls [`Proteus::transition_channel`](sdk::Proteus::transition_channel).
670
+ * `owner` is a handle ID, since `wasm-bindgen` can't take an optional
671
+ * reference.
672
+ * @param {number | null} [owner]
673
+ * @returns {TransitionChannel}
674
+ */
675
+ transitionChannel(owner) {
676
+ const ret = wasm.proteusapp_transitionChannel(this.__wbg_ptr, !isLikeNone(owner), isLikeNone(owner) ? 0 : owner);
677
+ return TransitionChannel.__wrap(ret);
678
+ }
679
+ /**
680
+ * Calls [`VideoHandle::upload_frame`](sdk::VideoHandle::upload_frame).
681
+ * @param {VideoHandle} video
682
+ * @param {number} width
683
+ * @param {number} height
684
+ * @param {Uint8Array} rgba
685
+ * @returns {boolean}
686
+ */
687
+ uploadVideoFrame(video, width, height, rgba) {
688
+ _assertClass(video, VideoHandle);
689
+ const ptr0 = passArray8ToWasm0(rgba, wasm.__wbindgen_malloc);
690
+ const len0 = WASM_VECTOR_LEN;
691
+ const ret = wasm.proteusapp_uploadVideoFrame(this.__wbg_ptr, video.__wbg_ptr, width, height, ptr0, len0);
692
+ return ret !== 0;
693
+ }
694
+ }
695
+ if (Symbol.dispose) ProteusApp.prototype[Symbol.dispose] = ProteusApp.prototype.free;
696
+
697
+ /**
698
+ * A handle to a texture in the atlas.
699
+ */
700
+ export class TextureHandle {
701
+ static __wrap(ptr) {
702
+ const obj = Object.create(TextureHandle.prototype);
703
+ obj.__wbg_ptr = ptr;
704
+ TextureHandleFinalization.register(obj, obj.__wbg_ptr, obj);
705
+ return obj;
706
+ }
707
+ __destroy_into_raw() {
708
+ const ptr = this.__wbg_ptr;
709
+ this.__wbg_ptr = 0;
710
+ TextureHandleFinalization.unregister(this);
711
+ return ptr;
712
+ }
713
+ free() {
714
+ const ptr = this.__destroy_into_raw();
715
+ wasm.__wbg_texturehandle_free(ptr, 0);
716
+ }
717
+ /**
718
+ * Returns a handle for an ID from [`JsTextureHandle::id`]. To add a
719
+ * texture, use `loadTexture` or `bakeTexture`.
720
+ * @param {number} id
721
+ * @returns {TextureHandle}
722
+ */
723
+ static fromId(id) {
724
+ const ret = wasm.texturehandle_fromId(id);
725
+ return TextureHandle.__wrap(ret);
726
+ }
727
+ /**
728
+ * The texture's ID, as a number. [`JsTextureHandle::from_id`] turns it
729
+ * back into a handle.
730
+ * @returns {number}
731
+ */
732
+ id() {
733
+ const ret = wasm.texturehandle_id(this.__wbg_ptr);
734
+ return ret;
735
+ }
736
+ }
737
+ if (Symbol.dispose) TextureHandle.prototype[Symbol.dispose] = TextureHandle.prototype.free;
738
+
739
+ /**
740
+ * A handle to a transition channel. It has no methods of its own; it is
741
+ * passed to `channelSet`, `channelDestroy` and `onDropped`.
742
+ */
743
+ export class TransitionChannel {
744
+ static __wrap(ptr) {
745
+ const obj = Object.create(TransitionChannel.prototype);
746
+ obj.__wbg_ptr = ptr;
747
+ TransitionChannelFinalization.register(obj, obj.__wbg_ptr, obj);
748
+ return obj;
749
+ }
750
+ __destroy_into_raw() {
751
+ const ptr = this.__wbg_ptr;
752
+ this.__wbg_ptr = 0;
753
+ TransitionChannelFinalization.unregister(this);
754
+ return ptr;
755
+ }
756
+ free() {
757
+ const ptr = this.__destroy_into_raw();
758
+ wasm.__wbg_transitionchannel_free(ptr, 0);
759
+ }
760
+ }
761
+ if (Symbol.dispose) TransitionChannel.prototype[Symbol.dispose] = TransitionChannel.prototype.free;
762
+
763
+ /**
764
+ * A handle to a video whose frames the app supplies. It has no methods of
765
+ * its own; it is passed to `uploadVideoFrame`, `releaseVideo` and
766
+ * `showVideo`.
767
+ */
768
+ export class VideoHandle {
769
+ static __wrap(ptr) {
770
+ const obj = Object.create(VideoHandle.prototype);
771
+ obj.__wbg_ptr = ptr;
772
+ VideoHandleFinalization.register(obj, obj.__wbg_ptr, obj);
773
+ return obj;
774
+ }
775
+ __destroy_into_raw() {
776
+ const ptr = this.__wbg_ptr;
777
+ this.__wbg_ptr = 0;
778
+ VideoHandleFinalization.unregister(this);
779
+ return ptr;
780
+ }
781
+ free() {
782
+ const ptr = this.__destroy_into_raw();
783
+ wasm.__wbg_videohandle_free(ptr, 0);
784
+ }
785
+ }
786
+ if (Symbol.dispose) VideoHandle.prototype[Symbol.dispose] = VideoHandle.prototype.free;
787
+
788
+ /**
789
+ * Runs a JavaScript app on the `<canvas>` element with the given `id`.
790
+ *
791
+ * Calls `setup(app)` once, before the first frame, then `update(dtSeconds)`
792
+ * every frame if it is given. To use the app in `update`, keep the one
793
+ * passed to `setup`. `config` is a `ProteusConfigDto` object, or `null`.
794
+ *
795
+ * # Errors
796
+ *
797
+ * Throws if the canvas isn't found, the GPU can't be set up, or `config`
798
+ * is invalid.
799
+ * @param {string} canvas_id
800
+ * @param {Function} setup
801
+ * @param {Function | null | undefined} update
802
+ * @param {any} config
803
+ * @returns {Promise<void>}
804
+ */
805
+ export function mount(canvas_id, setup, update, config) {
806
+ const ptr0 = passStringToWasm0(canvas_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
807
+ const len0 = WASM_VECTOR_LEN;
808
+ const ret = wasm.mount(ptr0, len0, setup, isLikeNone(update) ? 0 : addToExternrefTable0(update), config);
809
+ return ret;
810
+ }
811
+ export function __wbg_Error_fdd633d4bb5dd76a(arg0, arg1) {
812
+ const ret = Error(getStringFromWasm0(arg0, arg1));
813
+ return ret;
814
+ }
815
+ export function __wbg_Number_c4bdf66bb78f7977(arg0) {
816
+ const ret = Number(arg0);
817
+ return ret;
818
+ }
819
+ export function __wbg_String_8564e559799eccda(arg0, arg1) {
820
+ const ret = String(arg1);
821
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
822
+ const len1 = WASM_VECTOR_LEN;
823
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
824
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
825
+ }
826
+ export function __wbg_Window_a07901001eb4269f(arg0) {
827
+ const ret = arg0.Window;
828
+ return ret;
829
+ }
830
+ export function __wbg_WorkerGlobalScope_d1b9459d53a39f3d(arg0) {
831
+ const ret = arg0.WorkerGlobalScope;
832
+ return ret;
833
+ }
834
+ export function __wbg___wbindgen_bigint_get_as_i64_d9e915702856f831(arg0, arg1) {
835
+ const v = arg1;
836
+ const ret = typeof(v) === 'bigint' ? v : undefined;
837
+ getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
838
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
839
+ }
840
+ export function __wbg___wbindgen_boolean_get_edaed31a367ce1bd(arg0) {
841
+ const v = arg0;
842
+ const ret = typeof(v) === 'boolean' ? v : undefined;
843
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
844
+ }
845
+ export function __wbg___wbindgen_debug_string_8a447059637473e2(arg0, arg1) {
846
+ const ret = debugString(arg1);
847
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
848
+ const len1 = WASM_VECTOR_LEN;
849
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
850
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
851
+ }
852
+ export function __wbg___wbindgen_in_4990f46af709e33c(arg0, arg1) {
853
+ const ret = arg0 in arg1;
854
+ return ret;
855
+ }
856
+ export function __wbg___wbindgen_is_bigint_90b5ccfe67c78460(arg0) {
857
+ const ret = typeof(arg0) === 'bigint';
858
+ return ret;
859
+ }
860
+ export function __wbg___wbindgen_is_function_acc5528be2b923f2(arg0) {
861
+ const ret = typeof(arg0) === 'function';
862
+ return ret;
863
+ }
864
+ export function __wbg___wbindgen_is_null_6d937fbfb6478470(arg0) {
865
+ const ret = arg0 === null;
866
+ return ret;
867
+ }
868
+ export function __wbg___wbindgen_is_object_0beba4a1980d3eea(arg0) {
869
+ const val = arg0;
870
+ const ret = typeof(val) === 'object' && val !== null;
871
+ return ret;
872
+ }
873
+ export function __wbg___wbindgen_is_undefined_721f8decd50c87a3(arg0) {
874
+ const ret = arg0 === undefined;
875
+ return ret;
876
+ }
877
+ export function __wbg___wbindgen_jsval_eq_4e8c38722cb8ff51(arg0, arg1) {
878
+ const ret = arg0 === arg1;
879
+ return ret;
880
+ }
881
+ export function __wbg___wbindgen_jsval_loose_eq_4b9aba9e5b3c4582(arg0, arg1) {
882
+ const ret = arg0 == arg1;
883
+ return ret;
884
+ }
885
+ export function __wbg___wbindgen_number_get_1cc01dd708740256(arg0, arg1) {
886
+ const obj = arg1;
887
+ const ret = typeof(obj) === 'number' ? obj : undefined;
888
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
889
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
890
+ }
891
+ export function __wbg___wbindgen_string_get_71bb4348194e31f0(arg0, arg1) {
892
+ const obj = arg1;
893
+ const ret = typeof(obj) === 'string' ? obj : undefined;
894
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
895
+ var len1 = WASM_VECTOR_LEN;
896
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
897
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
898
+ }
899
+ export function __wbg___wbindgen_throw_ea4887a5f8f9a9db(arg0, arg1) {
900
+ throw new Error(getStringFromWasm0(arg0, arg1));
901
+ }
902
+ export function __wbg__wbg_cb_unref_33c39e13d73b25f6(arg0) {
903
+ arg0._wbg_cb_unref();
904
+ }
905
+ export function __wbg_activeTexture_1d5359b20df41710(arg0, arg1) {
906
+ arg0.activeTexture(arg1 >>> 0);
907
+ }
908
+ export function __wbg_activeTexture_525ee3068cb9e8d5(arg0, arg1) {
909
+ arg0.activeTexture(arg1 >>> 0);
910
+ }
911
+ export function __wbg_addEventListener_ea90bc131475777e() { return handleError(function (arg0, arg1, arg2, arg3) {
912
+ arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3);
913
+ }, arguments); }
914
+ export function __wbg_attachShader_3477e67517b09b6b(arg0, arg1, arg2) {
915
+ arg0.attachShader(arg1, arg2);
916
+ }
917
+ export function __wbg_attachShader_683d1070365e7066(arg0, arg1, arg2) {
918
+ arg0.attachShader(arg1, arg2);
919
+ }
920
+ export function __wbg_beginQuery_dad334d972fed3cc(arg0, arg1, arg2) {
921
+ arg0.beginQuery(arg1 >>> 0, arg2);
922
+ }
923
+ export function __wbg_beginRenderPass_10e1d8bb36f2f74e() { return handleError(function (arg0, arg1) {
924
+ const ret = arg0.beginRenderPass(arg1);
925
+ return ret;
926
+ }, arguments); }
927
+ export function __wbg_bindAttribLocation_79b5d26727094518(arg0, arg1, arg2, arg3, arg4) {
928
+ arg0.bindAttribLocation(arg1, arg2 >>> 0, getStringFromWasm0(arg3, arg4));
929
+ }
930
+ export function __wbg_bindAttribLocation_d56d3c40331af7ed(arg0, arg1, arg2, arg3, arg4) {
931
+ arg0.bindAttribLocation(arg1, arg2 >>> 0, getStringFromWasm0(arg3, arg4));
932
+ }
933
+ export function __wbg_bindBufferRange_16a9d90becc2a7d7(arg0, arg1, arg2, arg3, arg4, arg5) {
934
+ arg0.bindBufferRange(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5);
935
+ }
936
+ export function __wbg_bindBuffer_d3111de6861cb875(arg0, arg1, arg2) {
937
+ arg0.bindBuffer(arg1 >>> 0, arg2);
938
+ }
939
+ export function __wbg_bindBuffer_e95efaf0d4851845(arg0, arg1, arg2) {
940
+ arg0.bindBuffer(arg1 >>> 0, arg2);
941
+ }
942
+ export function __wbg_bindFramebuffer_217a1f4d28c6bc77(arg0, arg1, arg2) {
943
+ arg0.bindFramebuffer(arg1 >>> 0, arg2);
944
+ }
945
+ export function __wbg_bindFramebuffer_63e837a5dc0accfb(arg0, arg1, arg2) {
946
+ arg0.bindFramebuffer(arg1 >>> 0, arg2);
947
+ }
948
+ export function __wbg_bindRenderbuffer_7f84d28a1462a95a(arg0, arg1, arg2) {
949
+ arg0.bindRenderbuffer(arg1 >>> 0, arg2);
950
+ }
951
+ export function __wbg_bindRenderbuffer_d608b211c51ed147(arg0, arg1, arg2) {
952
+ arg0.bindRenderbuffer(arg1 >>> 0, arg2);
953
+ }
954
+ export function __wbg_bindSampler_3c7002cb6d56ae8f(arg0, arg1, arg2) {
955
+ arg0.bindSampler(arg1 >>> 0, arg2);
956
+ }
957
+ export function __wbg_bindTexture_7ab28ff4ff3dc506(arg0, arg1, arg2) {
958
+ arg0.bindTexture(arg1 >>> 0, arg2);
959
+ }
960
+ export function __wbg_bindTexture_ffc56f1e5c5526c6(arg0, arg1, arg2) {
961
+ arg0.bindTexture(arg1 >>> 0, arg2);
962
+ }
963
+ export function __wbg_bindVertexArrayOES_1cb63a86715ea7d5(arg0, arg1) {
964
+ arg0.bindVertexArrayOES(arg1);
965
+ }
966
+ export function __wbg_bindVertexArray_c391bd47303d75cd(arg0, arg1) {
967
+ arg0.bindVertexArray(arg1);
968
+ }
969
+ export function __wbg_blendColor_15f26633b646e542(arg0, arg1, arg2, arg3, arg4) {
970
+ arg0.blendColor(arg1, arg2, arg3, arg4);
971
+ }
972
+ export function __wbg_blendColor_a0ba1cdcecc3a34c(arg0, arg1, arg2, arg3, arg4) {
973
+ arg0.blendColor(arg1, arg2, arg3, arg4);
974
+ }
975
+ export function __wbg_blendEquationSeparate_8240ddfa32266109(arg0, arg1, arg2) {
976
+ arg0.blendEquationSeparate(arg1 >>> 0, arg2 >>> 0);
977
+ }
978
+ export function __wbg_blendEquationSeparate_aed0a34303d3e6ae(arg0, arg1, arg2) {
979
+ arg0.blendEquationSeparate(arg1 >>> 0, arg2 >>> 0);
980
+ }
981
+ export function __wbg_blendEquation_7dadb4db540a42da(arg0, arg1) {
982
+ arg0.blendEquation(arg1 >>> 0);
983
+ }
984
+ export function __wbg_blendEquation_8bfa69f639ae92da(arg0, arg1) {
985
+ arg0.blendEquation(arg1 >>> 0);
986
+ }
987
+ export function __wbg_blendFuncSeparate_3eef699c291dbc87(arg0, arg1, arg2, arg3, arg4) {
988
+ arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
989
+ }
990
+ export function __wbg_blendFuncSeparate_456410f9919bed39(arg0, arg1, arg2, arg3, arg4) {
991
+ arg0.blendFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
992
+ }
993
+ export function __wbg_blendFunc_713c504adab14f98(arg0, arg1, arg2) {
994
+ arg0.blendFunc(arg1 >>> 0, arg2 >>> 0);
995
+ }
996
+ export function __wbg_blendFunc_b15af02643e188f1(arg0, arg1, arg2) {
997
+ arg0.blendFunc(arg1 >>> 0, arg2 >>> 0);
998
+ }
999
+ export function __wbg_blitFramebuffer_ea96ada8bba07582(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
1000
+ arg0.blitFramebuffer(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0);
1001
+ }
1002
+ export function __wbg_bufferData_26132561617ce8fb(arg0, arg1, arg2, arg3) {
1003
+ arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
1004
+ }
1005
+ export function __wbg_bufferData_5df9bdb32e189eee(arg0, arg1, arg2, arg3) {
1006
+ arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
1007
+ }
1008
+ export function __wbg_bufferData_64e9905f2b3d3a6f(arg0, arg1, arg2, arg3) {
1009
+ arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
1010
+ }
1011
+ export function __wbg_bufferData_99bbbc63f02251c4(arg0, arg1, arg2, arg3) {
1012
+ arg0.bufferData(arg1 >>> 0, arg2, arg3 >>> 0);
1013
+ }
1014
+ export function __wbg_bufferSubData_2270f1b9db71e642(arg0, arg1, arg2, arg3) {
1015
+ arg0.bufferSubData(arg1 >>> 0, arg2, arg3);
1016
+ }
1017
+ export function __wbg_bufferSubData_44db8a3b4a70b57d(arg0, arg1, arg2, arg3) {
1018
+ arg0.bufferSubData(arg1 >>> 0, arg2, arg3);
1019
+ }
1020
+ export function __wbg_button_bb3285fcdf965178(arg0) {
1021
+ const ret = arg0.button;
1022
+ return ret;
1023
+ }
1024
+ export function __wbg_call_0e855b388e315e17() { return handleError(function (arg0, arg1, arg2, arg3) {
1025
+ const ret = arg0.call(arg1, arg2, arg3);
1026
+ return ret;
1027
+ }, arguments); }
1028
+ export function __wbg_call_5575218572ead796() { return handleError(function (arg0, arg1, arg2) {
1029
+ const ret = arg0.call(arg1, arg2);
1030
+ return ret;
1031
+ }, arguments); }
1032
+ export function __wbg_call_8e98ed2f3c86c4b5() { return handleError(function (arg0, arg1) {
1033
+ const ret = arg0.call(arg1);
1034
+ return ret;
1035
+ }, arguments); }
1036
+ export function __wbg_clearBufferfv_6b77b9402254a2bf(arg0, arg1, arg2, arg3, arg4) {
1037
+ arg0.clearBufferfv(arg1 >>> 0, arg2, getArrayF32FromWasm0(arg3, arg4));
1038
+ }
1039
+ export function __wbg_clearBufferiv_0f056544010eef3e(arg0, arg1, arg2, arg3, arg4) {
1040
+ arg0.clearBufferiv(arg1 >>> 0, arg2, getArrayI32FromWasm0(arg3, arg4));
1041
+ }
1042
+ export function __wbg_clearBufferuiv_1d2d93401c0904a3(arg0, arg1, arg2, arg3, arg4) {
1043
+ arg0.clearBufferuiv(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4));
1044
+ }
1045
+ export function __wbg_clearDepth_05c17028494ee4dd(arg0, arg1) {
1046
+ arg0.clearDepth(arg1);
1047
+ }
1048
+ export function __wbg_clearDepth_ac6b54f112feeaf7(arg0, arg1) {
1049
+ arg0.clearDepth(arg1);
1050
+ }
1051
+ export function __wbg_clearStencil_56d6a6308294a749(arg0, arg1) {
1052
+ arg0.clearStencil(arg1);
1053
+ }
1054
+ export function __wbg_clearStencil_917833d1e2ac56e4(arg0, arg1) {
1055
+ arg0.clearStencil(arg1);
1056
+ }
1057
+ export function __wbg_clear_dadcb3e2929388b0(arg0, arg1) {
1058
+ arg0.clear(arg1 >>> 0);
1059
+ }
1060
+ export function __wbg_clear_ff8cfdf420f7dde6(arg0, arg1) {
1061
+ arg0.clear(arg1 >>> 0);
1062
+ }
1063
+ export function __wbg_clientWaitSync_7580165bd2eff461(arg0, arg1, arg2, arg3) {
1064
+ const ret = arg0.clientWaitSync(arg1, arg2 >>> 0, arg3 >>> 0);
1065
+ return ret;
1066
+ }
1067
+ export function __wbg_colorMask_b0ab9d429a1efa0a(arg0, arg1, arg2, arg3, arg4) {
1068
+ arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
1069
+ }
1070
+ export function __wbg_colorMask_f111e3e5796458f4(arg0, arg1, arg2, arg3, arg4) {
1071
+ arg0.colorMask(arg1 !== 0, arg2 !== 0, arg3 !== 0, arg4 !== 0);
1072
+ }
1073
+ export function __wbg_compileShader_f5625b583b2c9fd6(arg0, arg1) {
1074
+ arg0.compileShader(arg1);
1075
+ }
1076
+ export function __wbg_compileShader_fcf3f3d2891f73f9(arg0, arg1) {
1077
+ arg0.compileShader(arg1);
1078
+ }
1079
+ export function __wbg_compressedTexSubImage2D_44c06107dab236a8(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
1080
+ arg0.compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8);
1081
+ }
1082
+ export function __wbg_compressedTexSubImage2D_7f963168c14c0082(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
1083
+ arg0.compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8);
1084
+ }
1085
+ export function __wbg_compressedTexSubImage2D_9d66d6214713bbfb(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1086
+ arg0.compressedTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8, arg9);
1087
+ }
1088
+ export function __wbg_compressedTexSubImage3D_73e1f9f3aa71a2da(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
1089
+ arg0.compressedTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10, arg11);
1090
+ }
1091
+ export function __wbg_compressedTexSubImage3D_e47c04fef5551d29(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
1092
+ arg0.compressedTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10);
1093
+ }
1094
+ export function __wbg_configure_3d64c677c7d68a15() { return handleError(function (arg0, arg1) {
1095
+ arg0.configure(arg1);
1096
+ }, arguments); }
1097
+ export function __wbg_contentRect_0fb8c8900d689a0c(arg0) {
1098
+ const ret = arg0.contentRect;
1099
+ return ret;
1100
+ }
1101
+ export function __wbg_copyBufferSubData_a944f33b601b822d(arg0, arg1, arg2, arg3, arg4, arg5) {
1102
+ arg0.copyBufferSubData(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5);
1103
+ }
1104
+ export function __wbg_copyTexSubImage2D_3c7de20db5e2b39f(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
1105
+ arg0.copyTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
1106
+ }
1107
+ export function __wbg_copyTexSubImage2D_4b1ba73bf053b4e6(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
1108
+ arg0.copyTexSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
1109
+ }
1110
+ export function __wbg_copyTexSubImage3D_8ba04135d122a27a(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
1111
+ arg0.copyTexSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
1112
+ }
1113
+ export function __wbg_copyTextureToTexture_1be188df1e535c0a() { return handleError(function (arg0, arg1, arg2, arg3) {
1114
+ arg0.copyTextureToTexture(arg1, arg2, arg3);
1115
+ }, arguments); }
1116
+ export function __wbg_createBindGroupLayout_9ea1a44942aaf13e() { return handleError(function (arg0, arg1) {
1117
+ const ret = arg0.createBindGroupLayout(arg1);
1118
+ return ret;
1119
+ }, arguments); }
1120
+ export function __wbg_createBindGroup_2320df4db188406c(arg0, arg1) {
1121
+ const ret = arg0.createBindGroup(arg1);
1122
+ return ret;
1123
+ }
1124
+ export function __wbg_createBuffer_0e42c2e1f7bbaeeb(arg0) {
1125
+ const ret = arg0.createBuffer();
1126
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1127
+ }
1128
+ export function __wbg_createBuffer_2f08c0205e04efca() { return handleError(function (arg0, arg1) {
1129
+ const ret = arg0.createBuffer(arg1);
1130
+ return ret;
1131
+ }, arguments); }
1132
+ export function __wbg_createBuffer_9f602b2dbcbf409c(arg0) {
1133
+ const ret = arg0.createBuffer();
1134
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1135
+ }
1136
+ export function __wbg_createCommandEncoder_cd88faca35d9ed68(arg0, arg1) {
1137
+ const ret = arg0.createCommandEncoder(arg1);
1138
+ return ret;
1139
+ }
1140
+ export function __wbg_createFramebuffer_4a250944a4542bbc(arg0) {
1141
+ const ret = arg0.createFramebuffer();
1142
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1143
+ }
1144
+ export function __wbg_createFramebuffer_ab73f30b5dc97415(arg0) {
1145
+ const ret = arg0.createFramebuffer();
1146
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1147
+ }
1148
+ export function __wbg_createPipelineLayout_7a186f2e9bf0d605(arg0, arg1) {
1149
+ const ret = arg0.createPipelineLayout(arg1);
1150
+ return ret;
1151
+ }
1152
+ export function __wbg_createProgram_4c8164d471c10346(arg0) {
1153
+ const ret = arg0.createProgram();
1154
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1155
+ }
1156
+ export function __wbg_createProgram_f11c63f59f41b82a(arg0) {
1157
+ const ret = arg0.createProgram();
1158
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1159
+ }
1160
+ export function __wbg_createQuery_f013132b870a71ef(arg0) {
1161
+ const ret = arg0.createQuery();
1162
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1163
+ }
1164
+ export function __wbg_createRenderPipeline_f48187ba9f7701e8() { return handleError(function (arg0, arg1) {
1165
+ const ret = arg0.createRenderPipeline(arg1);
1166
+ return ret;
1167
+ }, arguments); }
1168
+ export function __wbg_createRenderbuffer_556000dbb01f5026(arg0) {
1169
+ const ret = arg0.createRenderbuffer();
1170
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1171
+ }
1172
+ export function __wbg_createRenderbuffer_5ada3a0bc7cf3a43(arg0) {
1173
+ const ret = arg0.createRenderbuffer();
1174
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1175
+ }
1176
+ export function __wbg_createSampler_248bd67c920af37d(arg0, arg1) {
1177
+ const ret = arg0.createSampler(arg1);
1178
+ return ret;
1179
+ }
1180
+ export function __wbg_createSampler_9fe50152a2524319(arg0) {
1181
+ const ret = arg0.createSampler();
1182
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1183
+ }
1184
+ export function __wbg_createShaderModule_53701de4fb271c90(arg0, arg1) {
1185
+ const ret = arg0.createShaderModule(arg1);
1186
+ return ret;
1187
+ }
1188
+ export function __wbg_createShader_27d9388313f3b14e(arg0, arg1) {
1189
+ const ret = arg0.createShader(arg1 >>> 0);
1190
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1191
+ }
1192
+ export function __wbg_createShader_9c5cd42709d915ff(arg0, arg1) {
1193
+ const ret = arg0.createShader(arg1 >>> 0);
1194
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1195
+ }
1196
+ export function __wbg_createTexture_3eed23cb87dd35fc(arg0) {
1197
+ const ret = arg0.createTexture();
1198
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1199
+ }
1200
+ export function __wbg_createTexture_8455c703424c567b(arg0) {
1201
+ const ret = arg0.createTexture();
1202
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1203
+ }
1204
+ export function __wbg_createTexture_9e76b80a2dc0d12e() { return handleError(function (arg0, arg1) {
1205
+ const ret = arg0.createTexture(arg1);
1206
+ return ret;
1207
+ }, arguments); }
1208
+ export function __wbg_createVertexArrayOES_4bbd1b38563aab57(arg0) {
1209
+ const ret = arg0.createVertexArrayOES();
1210
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1211
+ }
1212
+ export function __wbg_createVertexArray_8685feb21901c932(arg0) {
1213
+ const ret = arg0.createVertexArray();
1214
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1215
+ }
1216
+ export function __wbg_createView_cc96b5bdd3d5bf5e() { return handleError(function (arg0, arg1) {
1217
+ const ret = arg0.createView(arg1);
1218
+ return ret;
1219
+ }, arguments); }
1220
+ export function __wbg_cullFace_774780fb4177aab8(arg0, arg1) {
1221
+ arg0.cullFace(arg1 >>> 0);
1222
+ }
1223
+ export function __wbg_cullFace_94f24b4fd5e9038b(arg0, arg1) {
1224
+ arg0.cullFace(arg1 >>> 0);
1225
+ }
1226
+ export function __wbg_debug_7271beced8b71cd4(arg0, arg1, arg2, arg3) {
1227
+ console.debug(arg0, arg1, arg2, arg3);
1228
+ }
1229
+ export function __wbg_deleteBuffer_d0fb5f1492ee8c6f(arg0, arg1) {
1230
+ arg0.deleteBuffer(arg1);
1231
+ }
1232
+ export function __wbg_deleteBuffer_d758283bea6e0ccf(arg0, arg1) {
1233
+ arg0.deleteBuffer(arg1);
1234
+ }
1235
+ export function __wbg_deleteFramebuffer_4c0996be4bc30a67(arg0, arg1) {
1236
+ arg0.deleteFramebuffer(arg1);
1237
+ }
1238
+ export function __wbg_deleteFramebuffer_8953b325144192fe(arg0, arg1) {
1239
+ arg0.deleteFramebuffer(arg1);
1240
+ }
1241
+ export function __wbg_deleteProgram_0135c6926e75af75(arg0, arg1) {
1242
+ arg0.deleteProgram(arg1);
1243
+ }
1244
+ export function __wbg_deleteProgram_eff668280dcb01ca(arg0, arg1) {
1245
+ arg0.deleteProgram(arg1);
1246
+ }
1247
+ export function __wbg_deleteQuery_ef51ea0a52420103(arg0, arg1) {
1248
+ arg0.deleteQuery(arg1);
1249
+ }
1250
+ export function __wbg_deleteRenderbuffer_ada86fd85d32984f(arg0, arg1) {
1251
+ arg0.deleteRenderbuffer(arg1);
1252
+ }
1253
+ export function __wbg_deleteRenderbuffer_c9320d711ddf649b(arg0, arg1) {
1254
+ arg0.deleteRenderbuffer(arg1);
1255
+ }
1256
+ export function __wbg_deleteSampler_5c045e0cc55813d4(arg0, arg1) {
1257
+ arg0.deleteSampler(arg1);
1258
+ }
1259
+ export function __wbg_deleteShader_3339454254c7147c(arg0, arg1) {
1260
+ arg0.deleteShader(arg1);
1261
+ }
1262
+ export function __wbg_deleteShader_79dbaaed69b7ca3b(arg0, arg1) {
1263
+ arg0.deleteShader(arg1);
1264
+ }
1265
+ export function __wbg_deleteSync_37ca83c429c43d8a(arg0, arg1) {
1266
+ arg0.deleteSync(arg1);
1267
+ }
1268
+ export function __wbg_deleteTexture_3acb672a45f9998a(arg0, arg1) {
1269
+ arg0.deleteTexture(arg1);
1270
+ }
1271
+ export function __wbg_deleteTexture_c1c58550dc55af5c(arg0, arg1) {
1272
+ arg0.deleteTexture(arg1);
1273
+ }
1274
+ export function __wbg_deleteVertexArrayOES_287cf2a2e8a27b13(arg0, arg1) {
1275
+ arg0.deleteVertexArrayOES(arg1);
1276
+ }
1277
+ export function __wbg_deleteVertexArray_8ee078fdb1fb1ffe(arg0, arg1) {
1278
+ arg0.deleteVertexArray(arg1);
1279
+ }
1280
+ export function __wbg_depthFunc_31b183b5b8ee478e(arg0, arg1) {
1281
+ arg0.depthFunc(arg1 >>> 0);
1282
+ }
1283
+ export function __wbg_depthFunc_eaca1bc79f7bf216(arg0, arg1) {
1284
+ arg0.depthFunc(arg1 >>> 0);
1285
+ }
1286
+ export function __wbg_depthMask_3a9074b08d1f68e5(arg0, arg1) {
1287
+ arg0.depthMask(arg1 !== 0);
1288
+ }
1289
+ export function __wbg_depthMask_cab7f2ae7f0e559c(arg0, arg1) {
1290
+ arg0.depthMask(arg1 !== 0);
1291
+ }
1292
+ export function __wbg_depthRange_797a71ba3b79267a(arg0, arg1, arg2) {
1293
+ arg0.depthRange(arg1, arg2);
1294
+ }
1295
+ export function __wbg_depthRange_c24a808b3496e0a9(arg0, arg1, arg2) {
1296
+ arg0.depthRange(arg1, arg2);
1297
+ }
1298
+ export function __wbg_description_18d0a6d4077fec8e(arg0, arg1) {
1299
+ const ret = arg1.description;
1300
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1301
+ const len1 = WASM_VECTOR_LEN;
1302
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1303
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1304
+ }
1305
+ export function __wbg_destroy_b5b39f25f0799295(arg0) {
1306
+ arg0.destroy();
1307
+ }
1308
+ export function __wbg_devicePixelRatio_8e5ca44720abafec(arg0) {
1309
+ const ret = arg0.devicePixelRatio;
1310
+ return ret;
1311
+ }
1312
+ export function __wbg_disableVertexAttribArray_25f8b2d699a4387a(arg0, arg1) {
1313
+ arg0.disableVertexAttribArray(arg1 >>> 0);
1314
+ }
1315
+ export function __wbg_disableVertexAttribArray_b395358ec5084c39(arg0, arg1) {
1316
+ arg0.disableVertexAttribArray(arg1 >>> 0);
1317
+ }
1318
+ export function __wbg_disable_4dca6ee0ccc91e4a(arg0, arg1) {
1319
+ arg0.disable(arg1 >>> 0);
1320
+ }
1321
+ export function __wbg_disable_cb1b3e6c1cee5202(arg0, arg1) {
1322
+ arg0.disable(arg1 >>> 0);
1323
+ }
1324
+ export function __wbg_document_2634180a4c694068(arg0) {
1325
+ const ret = arg0.document;
1326
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1327
+ }
1328
+ export function __wbg_done_b62d4a7d2286852a(arg0) {
1329
+ const ret = arg0.done;
1330
+ return ret;
1331
+ }
1332
+ export function __wbg_drawArraysInstancedANGLE_83c84d616f54261b(arg0, arg1, arg2, arg3, arg4) {
1333
+ arg0.drawArraysInstancedANGLE(arg1 >>> 0, arg2, arg3, arg4);
1334
+ }
1335
+ export function __wbg_drawArraysInstanced_999df3e7f5c8762b(arg0, arg1, arg2, arg3, arg4) {
1336
+ arg0.drawArraysInstanced(arg1 >>> 0, arg2, arg3, arg4);
1337
+ }
1338
+ export function __wbg_drawArrays_10e1254aa4524ae9(arg0, arg1, arg2, arg3) {
1339
+ arg0.drawArrays(arg1 >>> 0, arg2, arg3);
1340
+ }
1341
+ export function __wbg_drawArrays_42dbb4b0349c8f34(arg0, arg1, arg2, arg3) {
1342
+ arg0.drawArrays(arg1 >>> 0, arg2, arg3);
1343
+ }
1344
+ export function __wbg_drawBuffersWEBGL_3bfb30349766d902(arg0, arg1) {
1345
+ arg0.drawBuffersWEBGL(arg1);
1346
+ }
1347
+ export function __wbg_drawBuffers_558d96e52e754731(arg0, arg1) {
1348
+ arg0.drawBuffers(arg1);
1349
+ }
1350
+ export function __wbg_drawElementsInstancedANGLE_a73eba5955ee33fa(arg0, arg1, arg2, arg3, arg4, arg5) {
1351
+ arg0.drawElementsInstancedANGLE(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
1352
+ }
1353
+ export function __wbg_drawElementsInstanced_fdc96cf6adbebc12(arg0, arg1, arg2, arg3, arg4, arg5) {
1354
+ arg0.drawElementsInstanced(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
1355
+ }
1356
+ export function __wbg_drawIndexed_68637ebab6dd8d6e(arg0, arg1, arg2, arg3, arg4, arg5) {
1357
+ arg0.drawIndexed(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5 >>> 0);
1358
+ }
1359
+ export function __wbg_enableVertexAttribArray_4f0f3da1ae1fd116(arg0, arg1) {
1360
+ arg0.enableVertexAttribArray(arg1 >>> 0);
1361
+ }
1362
+ export function __wbg_enableVertexAttribArray_7fc50a6fdbc03eb3(arg0, arg1) {
1363
+ arg0.enableVertexAttribArray(arg1 >>> 0);
1364
+ }
1365
+ export function __wbg_enable_c6e523307311617a(arg0, arg1) {
1366
+ arg0.enable(arg1 >>> 0);
1367
+ }
1368
+ export function __wbg_enable_d1f42f78be33a553(arg0, arg1) {
1369
+ arg0.enable(arg1 >>> 0);
1370
+ }
1371
+ export function __wbg_endQuery_161170c5280a8293(arg0, arg1) {
1372
+ arg0.endQuery(arg1 >>> 0);
1373
+ }
1374
+ export function __wbg_end_414453a89205612c(arg0) {
1375
+ arg0.end();
1376
+ }
1377
+ export function __wbg_entries_c261c3fa1f281256(arg0) {
1378
+ const ret = Object.entries(arg0);
1379
+ return ret;
1380
+ }
1381
+ export function __wbg_error_50f60c611a3dcf64(arg0, arg1, arg2, arg3) {
1382
+ console.error(arg0, arg1, arg2, arg3);
1383
+ }
1384
+ export function __wbg_error_933f449d72fef598(arg0) {
1385
+ console.error(arg0);
1386
+ }
1387
+ export function __wbg_error_a6fa202b58aa1cd3(arg0, arg1) {
1388
+ let deferred0_0;
1389
+ let deferred0_1;
1390
+ try {
1391
+ deferred0_0 = arg0;
1392
+ deferred0_1 = arg1;
1393
+ console.error(getStringFromWasm0(arg0, arg1));
1394
+ } finally {
1395
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
1396
+ }
1397
+ }
1398
+ export function __wbg_fenceSync_56efc7cc79111e54(arg0, arg1, arg2) {
1399
+ const ret = arg0.fenceSync(arg1 >>> 0, arg2 >>> 0);
1400
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1401
+ }
1402
+ export function __wbg_finish_087cb89c65c06eb1(arg0) {
1403
+ const ret = arg0.finish();
1404
+ return ret;
1405
+ }
1406
+ export function __wbg_finish_cfaeede3baf55be1(arg0, arg1) {
1407
+ const ret = arg0.finish(arg1);
1408
+ return ret;
1409
+ }
1410
+ export function __wbg_flush_7ae42f071230db6b(arg0) {
1411
+ arg0.flush();
1412
+ }
1413
+ export function __wbg_flush_eb3fb8da2ec00d57(arg0) {
1414
+ arg0.flush();
1415
+ }
1416
+ export function __wbg_framebufferRenderbuffer_52ae9fcc29125a07(arg0, arg1, arg2, arg3, arg4) {
1417
+ arg0.framebufferRenderbuffer(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
1418
+ }
1419
+ export function __wbg_framebufferRenderbuffer_f9d75924fbe9024a(arg0, arg1, arg2, arg3, arg4) {
1420
+ arg0.framebufferRenderbuffer(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4);
1421
+ }
1422
+ export function __wbg_framebufferTexture2D_367ab597a005e8d9(arg0, arg1, arg2, arg3, arg4, arg5) {
1423
+ arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5);
1424
+ }
1425
+ export function __wbg_framebufferTexture2D_3a558e14f56720d2(arg0, arg1, arg2, arg3, arg4, arg5) {
1426
+ arg0.framebufferTexture2D(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4, arg5);
1427
+ }
1428
+ export function __wbg_framebufferTextureLayer_2312acdc74f97676(arg0, arg1, arg2, arg3, arg4, arg5) {
1429
+ arg0.framebufferTextureLayer(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5);
1430
+ }
1431
+ export function __wbg_framebufferTextureMultiviewOVR_bab62b45b7debf2c(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
1432
+ arg0.framebufferTextureMultiviewOVR(arg1 >>> 0, arg2 >>> 0, arg3, arg4, arg5, arg6);
1433
+ }
1434
+ export function __wbg_frontFace_9bdcf2a758e989e5(arg0, arg1) {
1435
+ arg0.frontFace(arg1 >>> 0);
1436
+ }
1437
+ export function __wbg_frontFace_c9bb1fa659ffd276(arg0, arg1) {
1438
+ arg0.frontFace(arg1 >>> 0);
1439
+ }
1440
+ export function __wbg_getBoundingClientRect_bf4a017da5494fc9(arg0) {
1441
+ const ret = arg0.getBoundingClientRect();
1442
+ return ret;
1443
+ }
1444
+ export function __wbg_getBufferSubData_92680d3a2f7be029(arg0, arg1, arg2, arg3) {
1445
+ arg0.getBufferSubData(arg1 >>> 0, arg2, arg3);
1446
+ }
1447
+ export function __wbg_getContext_422b32d0ee4b8076() { return handleError(function (arg0, arg1, arg2, arg3) {
1448
+ const ret = arg0.getContext(getStringFromWasm0(arg1, arg2), arg3);
1449
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1450
+ }, arguments); }
1451
+ export function __wbg_getContext_486aab500e1c34c9() { return handleError(function (arg0, arg1, arg2) {
1452
+ const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
1453
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1454
+ }, arguments); }
1455
+ export function __wbg_getContext_70c2d1bed75d4122() { return handleError(function (arg0, arg1, arg2) {
1456
+ const ret = arg0.getContext(getStringFromWasm0(arg1, arg2));
1457
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1458
+ }, arguments); }
1459
+ export function __wbg_getContext_9fd4db9b1cf155db() { return handleError(function (arg0, arg1, arg2, arg3) {
1460
+ const ret = arg0.getContext(getStringFromWasm0(arg1, arg2), arg3);
1461
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1462
+ }, arguments); }
1463
+ export function __wbg_getCurrentTexture_51975ae7185fd15f() { return handleError(function (arg0) {
1464
+ const ret = arg0.getCurrentTexture();
1465
+ return ret;
1466
+ }, arguments); }
1467
+ export function __wbg_getElementById_c7aba6b93b34bf01(arg0, arg1, arg2) {
1468
+ const ret = arg0.getElementById(getStringFromWasm0(arg1, arg2));
1469
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1470
+ }
1471
+ export function __wbg_getExtension_11824edd67a143d8() { return handleError(function (arg0, arg1, arg2) {
1472
+ const ret = arg0.getExtension(getStringFromWasm0(arg1, arg2));
1473
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1474
+ }, arguments); }
1475
+ export function __wbg_getIndexedParameter_2b18df6fca85f751() { return handleError(function (arg0, arg1, arg2) {
1476
+ const ret = arg0.getIndexedParameter(arg1 >>> 0, arg2 >>> 0);
1477
+ return ret;
1478
+ }, arguments); }
1479
+ export function __wbg_getMappedRange_5ed22727c9679168() { return handleError(function (arg0, arg1, arg2) {
1480
+ const ret = arg0.getMappedRange(arg1, arg2);
1481
+ return ret;
1482
+ }, arguments); }
1483
+ export function __wbg_getParameter_7f7f23cae98f2c81() { return handleError(function (arg0, arg1) {
1484
+ const ret = arg0.getParameter(arg1 >>> 0);
1485
+ return ret;
1486
+ }, arguments); }
1487
+ export function __wbg_getParameter_91a344e1a84a4669() { return handleError(function (arg0, arg1) {
1488
+ const ret = arg0.getParameter(arg1 >>> 0);
1489
+ return ret;
1490
+ }, arguments); }
1491
+ export function __wbg_getPreferredCanvasFormat_1b8495aeb1d11ab1(arg0) {
1492
+ const ret = arg0.getPreferredCanvasFormat();
1493
+ return (__wbindgen_enum_GpuTextureFormat.indexOf(ret) + 1 || 96) - 1;
1494
+ }
1495
+ export function __wbg_getProgramInfoLog_35410850de9ccefe(arg0, arg1, arg2) {
1496
+ const ret = arg1.getProgramInfoLog(arg2);
1497
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1498
+ var len1 = WASM_VECTOR_LEN;
1499
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1500
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1501
+ }
1502
+ export function __wbg_getProgramInfoLog_cd84be80942f345b(arg0, arg1, arg2) {
1503
+ const ret = arg1.getProgramInfoLog(arg2);
1504
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1505
+ var len1 = WASM_VECTOR_LEN;
1506
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1507
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1508
+ }
1509
+ export function __wbg_getProgramParameter_039391d5ba319f50(arg0, arg1, arg2) {
1510
+ const ret = arg0.getProgramParameter(arg1, arg2 >>> 0);
1511
+ return ret;
1512
+ }
1513
+ export function __wbg_getProgramParameter_bbc667347ac2e882(arg0, arg1, arg2) {
1514
+ const ret = arg0.getProgramParameter(arg1, arg2 >>> 0);
1515
+ return ret;
1516
+ }
1517
+ export function __wbg_getQueryParameter_0599e85ddb81220b(arg0, arg1, arg2) {
1518
+ const ret = arg0.getQueryParameter(arg1, arg2 >>> 0);
1519
+ return ret;
1520
+ }
1521
+ export function __wbg_getShaderInfoLog_495bddda98172699(arg0, arg1, arg2) {
1522
+ const ret = arg1.getShaderInfoLog(arg2);
1523
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1524
+ var len1 = WASM_VECTOR_LEN;
1525
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1526
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1527
+ }
1528
+ export function __wbg_getShaderInfoLog_f423ce6d280ccca0(arg0, arg1, arg2) {
1529
+ const ret = arg1.getShaderInfoLog(arg2);
1530
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1531
+ var len1 = WASM_VECTOR_LEN;
1532
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1533
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1534
+ }
1535
+ export function __wbg_getShaderParameter_4eb65cfb174ceb22(arg0, arg1, arg2) {
1536
+ const ret = arg0.getShaderParameter(arg1, arg2 >>> 0);
1537
+ return ret;
1538
+ }
1539
+ export function __wbg_getShaderParameter_93cc1f20f1dd0b1e(arg0, arg1, arg2) {
1540
+ const ret = arg0.getShaderParameter(arg1, arg2 >>> 0);
1541
+ return ret;
1542
+ }
1543
+ export function __wbg_getSupportedExtensions_fbc6e8f81b1f5dbd(arg0) {
1544
+ const ret = arg0.getSupportedExtensions();
1545
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1546
+ }
1547
+ export function __wbg_getSupportedProfiles_e24289cb9a71b3f0(arg0) {
1548
+ const ret = arg0.getSupportedProfiles();
1549
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1550
+ }
1551
+ export function __wbg_getSyncParameter_9a2bda340ebe166f(arg0, arg1, arg2) {
1552
+ const ret = arg0.getSyncParameter(arg1, arg2 >>> 0);
1553
+ return ret;
1554
+ }
1555
+ export function __wbg_getUniformBlockIndex_3bf387d80cee898d(arg0, arg1, arg2, arg3) {
1556
+ const ret = arg0.getUniformBlockIndex(arg1, getStringFromWasm0(arg2, arg3));
1557
+ return ret;
1558
+ }
1559
+ export function __wbg_getUniformLocation_340155dc706d3fea(arg0, arg1, arg2, arg3) {
1560
+ const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
1561
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1562
+ }
1563
+ export function __wbg_getUniformLocation_ab63f569a4e41744(arg0, arg1, arg2, arg3) {
1564
+ const ret = arg0.getUniformLocation(arg1, getStringFromWasm0(arg2, arg3));
1565
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1566
+ }
1567
+ export function __wbg_get_197a3fe98f169e38(arg0, arg1) {
1568
+ const ret = arg0[arg1 >>> 0];
1569
+ return ret;
1570
+ }
1571
+ export function __wbg_get_37b48b8fa52d1f2c(arg0, arg1) {
1572
+ const ret = arg0[arg1 >>> 0];
1573
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1574
+ }
1575
+ export function __wbg_get_9a29be2cb383ed9a() { return handleError(function (arg0, arg1) {
1576
+ const ret = Reflect.get(arg0, arg1);
1577
+ return ret;
1578
+ }, arguments); }
1579
+ export function __wbg_get_unchecked_54a4374c38e08460(arg0, arg1) {
1580
+ const ret = arg0[arg1 >>> 0];
1581
+ return ret;
1582
+ }
1583
+ export function __wbg_get_with_ref_key_6412cf3094599694(arg0, arg1) {
1584
+ const ret = arg0[arg1];
1585
+ return ret;
1586
+ }
1587
+ export function __wbg_gpu_a7c12045c25d009a(arg0) {
1588
+ const ret = arg0.gpu;
1589
+ return ret;
1590
+ }
1591
+ export function __wbg_height_cd732bbdc7b66e49(arg0) {
1592
+ const ret = arg0.height;
1593
+ return ret;
1594
+ }
1595
+ export function __wbg_height_e9afb506f31052a9(arg0) {
1596
+ const ret = arg0.height;
1597
+ return ret;
1598
+ }
1599
+ export function __wbg_hidden_cb32701ca3785fea(arg0) {
1600
+ const ret = arg0.hidden;
1601
+ return ret;
1602
+ }
1603
+ export function __wbg_includes_83dff8d05da243c5(arg0, arg1, arg2) {
1604
+ const ret = arg0.includes(arg1, arg2);
1605
+ return ret;
1606
+ }
1607
+ export function __wbg_info_22dcf1fd1b12bc7d(arg0) {
1608
+ const ret = arg0.info;
1609
+ return ret;
1610
+ }
1611
+ export function __wbg_info_a392cd5b7536cfb5(arg0, arg1, arg2, arg3) {
1612
+ console.info(arg0, arg1, arg2, arg3);
1613
+ }
1614
+ export function __wbg_instanceof_ArrayBuffer_2a7bb09fee70c2da(arg0) {
1615
+ let result;
1616
+ try {
1617
+ result = arg0 instanceof ArrayBuffer;
1618
+ } catch (_) {
1619
+ result = false;
1620
+ }
1621
+ const ret = result;
1622
+ return ret;
1623
+ }
1624
+ export function __wbg_instanceof_GpuAdapter_fc7b89fc546de0bc(arg0) {
1625
+ let result;
1626
+ try {
1627
+ result = arg0 instanceof GPUAdapter;
1628
+ } catch (_) {
1629
+ result = false;
1630
+ }
1631
+ const ret = result;
1632
+ return ret;
1633
+ }
1634
+ export function __wbg_instanceof_GpuCanvasContext_1a39fd0621603553(arg0) {
1635
+ let result;
1636
+ try {
1637
+ result = arg0 instanceof GPUCanvasContext;
1638
+ } catch (_) {
1639
+ result = false;
1640
+ }
1641
+ const ret = result;
1642
+ return ret;
1643
+ }
1644
+ export function __wbg_instanceof_HtmlCanvasElement_8ce29a370a2b10a4(arg0) {
1645
+ let result;
1646
+ try {
1647
+ result = arg0 instanceof HTMLCanvasElement;
1648
+ } catch (_) {
1649
+ result = false;
1650
+ }
1651
+ const ret = result;
1652
+ return ret;
1653
+ }
1654
+ export function __wbg_instanceof_Map_afa18d5840c04c15(arg0) {
1655
+ let result;
1656
+ try {
1657
+ result = arg0 instanceof Map;
1658
+ } catch (_) {
1659
+ result = false;
1660
+ }
1661
+ const ret = result;
1662
+ return ret;
1663
+ }
1664
+ export function __wbg_instanceof_ResizeObserverEntry_17829ecb039c09f2(arg0) {
1665
+ let result;
1666
+ try {
1667
+ result = arg0 instanceof ResizeObserverEntry;
1668
+ } catch (_) {
1669
+ result = false;
1670
+ }
1671
+ const ret = result;
1672
+ return ret;
1673
+ }
1674
+ export function __wbg_instanceof_Uint8Array_f080092dc70f5d58(arg0) {
1675
+ let result;
1676
+ try {
1677
+ result = arg0 instanceof Uint8Array;
1678
+ } catch (_) {
1679
+ result = false;
1680
+ }
1681
+ const ret = result;
1682
+ return ret;
1683
+ }
1684
+ export function __wbg_instanceof_WebGl2RenderingContext_b30fc72a0130431a(arg0) {
1685
+ let result;
1686
+ try {
1687
+ result = arg0 instanceof WebGL2RenderingContext;
1688
+ } catch (_) {
1689
+ result = false;
1690
+ }
1691
+ const ret = result;
1692
+ return ret;
1693
+ }
1694
+ export function __wbg_instanceof_Window_0d356b88a2f77c42(arg0) {
1695
+ let result;
1696
+ try {
1697
+ result = arg0 instanceof Window;
1698
+ } catch (_) {
1699
+ result = false;
1700
+ }
1701
+ const ret = result;
1702
+ return ret;
1703
+ }
1704
+ export function __wbg_invalidateFramebuffer_08fe15b00b070e47() { return handleError(function (arg0, arg1, arg2) {
1705
+ arg0.invalidateFramebuffer(arg1 >>> 0, arg2);
1706
+ }, arguments); }
1707
+ export function __wbg_isArray_145a34fd0a38d37b(arg0) {
1708
+ const ret = Array.isArray(arg0);
1709
+ return ret;
1710
+ }
1711
+ export function __wbg_isSafeInteger_a3389a198582f5f6(arg0) {
1712
+ const ret = Number.isSafeInteger(arg0);
1713
+ return ret;
1714
+ }
1715
+ export function __wbg_is_de5b366c746e004c(arg0, arg1) {
1716
+ const ret = Object.is(arg0, arg1);
1717
+ return ret;
1718
+ }
1719
+ export function __wbg_iterator_cc47ba25a2be735a() {
1720
+ const ret = Symbol.iterator;
1721
+ return ret;
1722
+ }
1723
+ export function __wbg_label_47480289cc2bce71(arg0, arg1) {
1724
+ const ret = arg1.label;
1725
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1726
+ const len1 = WASM_VECTOR_LEN;
1727
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1728
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1729
+ }
1730
+ export function __wbg_length_589238bdcf171f0e(arg0) {
1731
+ const ret = arg0.length;
1732
+ return ret;
1733
+ }
1734
+ export function __wbg_length_c6054974c0a6cdb9(arg0) {
1735
+ const ret = arg0.length;
1736
+ return ret;
1737
+ }
1738
+ export function __wbg_limits_1c25cb4f379a4418(arg0) {
1739
+ const ret = arg0.limits;
1740
+ return ret;
1741
+ }
1742
+ export function __wbg_limits_50a8c5e629dbfe40(arg0) {
1743
+ const ret = arg0.limits;
1744
+ return ret;
1745
+ }
1746
+ export function __wbg_linkProgram_6a2eee02a03b9b00(arg0, arg1) {
1747
+ arg0.linkProgram(arg1);
1748
+ }
1749
+ export function __wbg_linkProgram_e23a348b0f6e0c4f(arg0, arg1) {
1750
+ arg0.linkProgram(arg1);
1751
+ }
1752
+ export function __wbg_log_d282446d03691e72(arg0, arg1, arg2, arg3) {
1753
+ console.log(arg0, arg1, arg2, arg3);
1754
+ }
1755
+ export function __wbg_mapAsync_bb0029907dd91181(arg0, arg1, arg2, arg3) {
1756
+ const ret = arg0.mapAsync(arg1 >>> 0, arg2, arg3);
1757
+ return ret;
1758
+ }
1759
+ export function __wbg_maxBindGroups_14611ac9ed1c6b56(arg0) {
1760
+ const ret = arg0.maxBindGroups;
1761
+ return ret;
1762
+ }
1763
+ export function __wbg_maxBindingsPerBindGroup_dd3f66044d2a9bfb(arg0) {
1764
+ const ret = arg0.maxBindingsPerBindGroup;
1765
+ return ret;
1766
+ }
1767
+ export function __wbg_maxBufferSize_f7ce3e1856349d2f(arg0) {
1768
+ const ret = arg0.maxBufferSize;
1769
+ return ret;
1770
+ }
1771
+ export function __wbg_maxColorAttachmentBytesPerSample_55e64194645ea041(arg0) {
1772
+ const ret = arg0.maxColorAttachmentBytesPerSample;
1773
+ return ret;
1774
+ }
1775
+ export function __wbg_maxColorAttachments_fd9187f9f786da18(arg0) {
1776
+ const ret = arg0.maxColorAttachments;
1777
+ return ret;
1778
+ }
1779
+ export function __wbg_maxComputeInvocationsPerWorkgroup_9b3b1fc261129782(arg0) {
1780
+ const ret = arg0.maxComputeInvocationsPerWorkgroup;
1781
+ return ret;
1782
+ }
1783
+ export function __wbg_maxComputeWorkgroupSizeX_c55bbbcc02b75241(arg0) {
1784
+ const ret = arg0.maxComputeWorkgroupSizeX;
1785
+ return ret;
1786
+ }
1787
+ export function __wbg_maxComputeWorkgroupSizeY_96f40b1ec3102a3a(arg0) {
1788
+ const ret = arg0.maxComputeWorkgroupSizeY;
1789
+ return ret;
1790
+ }
1791
+ export function __wbg_maxComputeWorkgroupSizeZ_c2b1061d521561bb(arg0) {
1792
+ const ret = arg0.maxComputeWorkgroupSizeZ;
1793
+ return ret;
1794
+ }
1795
+ export function __wbg_maxComputeWorkgroupStorageSize_fac26e89d99e08f9(arg0) {
1796
+ const ret = arg0.maxComputeWorkgroupStorageSize;
1797
+ return ret;
1798
+ }
1799
+ export function __wbg_maxComputeWorkgroupsPerDimension_cd001f910e9b4d70(arg0) {
1800
+ const ret = arg0.maxComputeWorkgroupsPerDimension;
1801
+ return ret;
1802
+ }
1803
+ export function __wbg_maxDynamicStorageBuffersPerPipelineLayout_29399b82af020d86(arg0) {
1804
+ const ret = arg0.maxDynamicStorageBuffersPerPipelineLayout;
1805
+ return ret;
1806
+ }
1807
+ export function __wbg_maxDynamicUniformBuffersPerPipelineLayout_6d6cf80f3bd08e52(arg0) {
1808
+ const ret = arg0.maxDynamicUniformBuffersPerPipelineLayout;
1809
+ return ret;
1810
+ }
1811
+ export function __wbg_maxInterStageShaderVariables_8b000f47a166b1d5(arg0) {
1812
+ const ret = arg0.maxInterStageShaderVariables;
1813
+ return ret;
1814
+ }
1815
+ export function __wbg_maxSampledTexturesPerShaderStage_618a49f33217dde2(arg0) {
1816
+ const ret = arg0.maxSampledTexturesPerShaderStage;
1817
+ return ret;
1818
+ }
1819
+ export function __wbg_maxSamplersPerShaderStage_aa09fa0311712a1a(arg0) {
1820
+ const ret = arg0.maxSamplersPerShaderStage;
1821
+ return ret;
1822
+ }
1823
+ export function __wbg_maxStorageBufferBindingSize_0ec83ae10ad73180(arg0) {
1824
+ const ret = arg0.maxStorageBufferBindingSize;
1825
+ return ret;
1826
+ }
1827
+ export function __wbg_maxStorageBuffersPerShaderStage_0cca5b468fcf10b6(arg0) {
1828
+ const ret = arg0.maxStorageBuffersPerShaderStage;
1829
+ return ret;
1830
+ }
1831
+ export function __wbg_maxStorageTexturesPerShaderStage_9d6c35770f37866c(arg0) {
1832
+ const ret = arg0.maxStorageTexturesPerShaderStage;
1833
+ return ret;
1834
+ }
1835
+ export function __wbg_maxTextureArrayLayers_c2bf9c85285832d4(arg0) {
1836
+ const ret = arg0.maxTextureArrayLayers;
1837
+ return ret;
1838
+ }
1839
+ export function __wbg_maxTextureDimension1D_e09f86e22ea6bac9(arg0) {
1840
+ const ret = arg0.maxTextureDimension1D;
1841
+ return ret;
1842
+ }
1843
+ export function __wbg_maxTextureDimension2D_2631916ef9a3efa8(arg0) {
1844
+ const ret = arg0.maxTextureDimension2D;
1845
+ return ret;
1846
+ }
1847
+ export function __wbg_maxTextureDimension3D_06ee54121b37d431(arg0) {
1848
+ const ret = arg0.maxTextureDimension3D;
1849
+ return ret;
1850
+ }
1851
+ export function __wbg_maxUniformBufferBindingSize_af9e8a077907ed64(arg0) {
1852
+ const ret = arg0.maxUniformBufferBindingSize;
1853
+ return ret;
1854
+ }
1855
+ export function __wbg_maxUniformBuffersPerShaderStage_f871b70865df8c11(arg0) {
1856
+ const ret = arg0.maxUniformBuffersPerShaderStage;
1857
+ return ret;
1858
+ }
1859
+ export function __wbg_maxVertexAttributes_e72dabb2714f5cf5(arg0) {
1860
+ const ret = arg0.maxVertexAttributes;
1861
+ return ret;
1862
+ }
1863
+ export function __wbg_maxVertexBufferArrayStride_6a1cd814386082ce(arg0) {
1864
+ const ret = arg0.maxVertexBufferArrayStride;
1865
+ return ret;
1866
+ }
1867
+ export function __wbg_maxVertexBuffers_9c61c5fd286ebcc6(arg0) {
1868
+ const ret = arg0.maxVertexBuffers;
1869
+ return ret;
1870
+ }
1871
+ export function __wbg_minStorageBufferOffsetAlignment_e214f59628fb3558(arg0) {
1872
+ const ret = arg0.minStorageBufferOffsetAlignment;
1873
+ return ret;
1874
+ }
1875
+ export function __wbg_minUniformBufferOffsetAlignment_58b69e1c3924f6a4(arg0) {
1876
+ const ret = arg0.minUniformBufferOffsetAlignment;
1877
+ return ret;
1878
+ }
1879
+ export function __wbg_navigator_017bc45e84c473cc(arg0) {
1880
+ const ret = arg0.navigator;
1881
+ return ret;
1882
+ }
1883
+ export function __wbg_navigator_935098efd1dc7fe5(arg0) {
1884
+ const ret = arg0.navigator;
1885
+ return ret;
1886
+ }
1887
+ export function __wbg_new_1e52e3c919312525() { return handleError(function (arg0) {
1888
+ const ret = new ResizeObserver(arg0);
1889
+ return ret;
1890
+ }, arguments); }
1891
+ export function __wbg_new_227d7c05414eb861() {
1892
+ const ret = new Error();
1893
+ return ret;
1894
+ }
1895
+ export function __wbg_new_2e117a478906f062() {
1896
+ const ret = new Object();
1897
+ return ret;
1898
+ }
1899
+ export function __wbg_new_36e147a8ced3c6e0() {
1900
+ const ret = new Array();
1901
+ return ret;
1902
+ }
1903
+ export function __wbg_new_81880fb5002cb255(arg0) {
1904
+ const ret = new Uint8Array(arg0);
1905
+ return ret;
1906
+ }
1907
+ export function __wbg_new_e66a4b7758dd2e5c(arg0, arg1) {
1908
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
1909
+ return ret;
1910
+ }
1911
+ export function __wbg_new_typed_00a409eb4ec4f2d9(arg0, arg1) {
1912
+ try {
1913
+ var state0 = {a: arg0, b: arg1};
1914
+ var cb0 = (arg0, arg1) => {
1915
+ const a = state0.a;
1916
+ state0.a = 0;
1917
+ try {
1918
+ return wasm_bindgen_947dc3570e8b2613___convert__closures_____invoke___js_sys_13cd74663037d13c___Function_fn_wasm_bindgen_947dc3570e8b2613___JsValue_____wasm_bindgen_947dc3570e8b2613___sys__Undefined___js_sys_13cd74663037d13c___Function_fn_wasm_bindgen_947dc3570e8b2613___JsValue_____wasm_bindgen_947dc3570e8b2613___sys__Undefined_______true_(a, state0.b, arg0, arg1);
1919
+ } finally {
1920
+ state0.a = a;
1921
+ }
1922
+ };
1923
+ const ret = new Promise(cb0);
1924
+ return ret;
1925
+ } finally {
1926
+ state0.a = 0;
1927
+ }
1928
+ }
1929
+ export function __wbg_new_with_byte_offset_and_length_f2b65504a914f37a(arg0, arg1, arg2) {
1930
+ const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
1931
+ return ret;
1932
+ }
1933
+ export function __wbg_next_0c4066e251d2eff9() { return handleError(function (arg0) {
1934
+ const ret = arg0.next();
1935
+ return ret;
1936
+ }, arguments); }
1937
+ export function __wbg_next_402fa10b59ab20c3(arg0) {
1938
+ const ret = arg0.next;
1939
+ return ret;
1940
+ }
1941
+ export function __wbg_observe_592b94857eed8e27(arg0, arg1) {
1942
+ arg0.observe(arg1);
1943
+ }
1944
+ export function __wbg_of_62183ea089c00bfa(arg0) {
1945
+ const ret = Array.of(arg0);
1946
+ return ret;
1947
+ }
1948
+ export function __wbg_offsetX_0214819d43aaf6d5(arg0) {
1949
+ const ret = arg0.offsetX;
1950
+ return ret;
1951
+ }
1952
+ export function __wbg_offsetY_f18f571e33b385ab(arg0) {
1953
+ const ret = arg0.offsetY;
1954
+ return ret;
1955
+ }
1956
+ export function __wbg_onSubmittedWorkDone_1460145eecea40ef(arg0) {
1957
+ const ret = arg0.onSubmittedWorkDone();
1958
+ return ret;
1959
+ }
1960
+ export function __wbg_pixelStorei_55ad4c67b699537c(arg0, arg1, arg2) {
1961
+ arg0.pixelStorei(arg1 >>> 0, arg2);
1962
+ }
1963
+ export function __wbg_pixelStorei_a78a504be58d1d0a(arg0, arg1, arg2) {
1964
+ arg0.pixelStorei(arg1 >>> 0, arg2);
1965
+ }
1966
+ export function __wbg_polygonOffset_06dc6468c12a57e1(arg0, arg1, arg2) {
1967
+ arg0.polygonOffset(arg1, arg2);
1968
+ }
1969
+ export function __wbg_polygonOffset_a4f07d97b9b0dced(arg0, arg1, arg2) {
1970
+ arg0.polygonOffset(arg1, arg2);
1971
+ }
1972
+ export function __wbg_preventDefault_c047d3e292b08cc4(arg0) {
1973
+ arg0.preventDefault();
1974
+ }
1975
+ export function __wbg_proteusapp_new(arg0) {
1976
+ const ret = ProteusApp.__wrap(arg0);
1977
+ return ret;
1978
+ }
1979
+ export function __wbg_prototypesetcall_d721637c7ca66eb8(arg0, arg1, arg2) {
1980
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
1981
+ }
1982
+ export function __wbg_push_f724b5db8acf89d2(arg0, arg1) {
1983
+ const ret = arg0.push(arg1);
1984
+ return ret;
1985
+ }
1986
+ export function __wbg_queryCounterEXT_ebb00bcc96221671(arg0, arg1, arg2) {
1987
+ arg0.queryCounterEXT(arg1, arg2 >>> 0);
1988
+ }
1989
+ export function __wbg_querySelectorAll_ffda3c891a9eb29a() { return handleError(function (arg0, arg1, arg2) {
1990
+ const ret = arg0.querySelectorAll(getStringFromWasm0(arg1, arg2));
1991
+ return ret;
1992
+ }, arguments); }
1993
+ export function __wbg_querySelector_1f3658f4b48e268b() { return handleError(function (arg0, arg1, arg2) {
1994
+ const ret = arg0.querySelector(getStringFromWasm0(arg1, arg2));
1995
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1996
+ }, arguments); }
1997
+ export function __wbg_queueMicrotask_1c9b3800e321a967(arg0) {
1998
+ const ret = arg0.queueMicrotask;
1999
+ return ret;
2000
+ }
2001
+ export function __wbg_queueMicrotask_311744e534a929a3(arg0) {
2002
+ queueMicrotask(arg0);
2003
+ }
2004
+ export function __wbg_queue_65d985f3e6d786a6(arg0) {
2005
+ const ret = arg0.queue;
2006
+ return ret;
2007
+ }
2008
+ export function __wbg_readBuffer_361ec5474f3aae49(arg0, arg1) {
2009
+ arg0.readBuffer(arg1 >>> 0);
2010
+ }
2011
+ export function __wbg_readPixels_05377f8b6fa1d8eb() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
2012
+ arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
2013
+ }, arguments); }
2014
+ export function __wbg_readPixels_5840000f3e22f3ce() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
2015
+ arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
2016
+ }, arguments); }
2017
+ export function __wbg_readPixels_5bf204799ed2272f() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
2018
+ arg0.readPixels(arg1, arg2, arg3, arg4, arg5 >>> 0, arg6 >>> 0, arg7);
2019
+ }, arguments); }
2020
+ export function __wbg_renderbufferStorageMultisample_d64a8abb8689a968(arg0, arg1, arg2, arg3, arg4, arg5) {
2021
+ arg0.renderbufferStorageMultisample(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
2022
+ }
2023
+ export function __wbg_renderbufferStorage_2918fb696fd45663(arg0, arg1, arg2, arg3, arg4) {
2024
+ arg0.renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4);
2025
+ }
2026
+ export function __wbg_renderbufferStorage_3049e13db5c4e60e(arg0, arg1, arg2, arg3, arg4) {
2027
+ arg0.renderbufferStorage(arg1 >>> 0, arg2 >>> 0, arg3, arg4);
2028
+ }
2029
+ export function __wbg_requestAdapter_9ff5c9d1ff271165(arg0, arg1) {
2030
+ const ret = arg0.requestAdapter(arg1);
2031
+ return ret;
2032
+ }
2033
+ export function __wbg_requestAdapter_c46930b8bc33722d(arg0) {
2034
+ const ret = arg0.requestAdapter();
2035
+ return ret;
2036
+ }
2037
+ export function __wbg_requestAnimationFrame_b92ccfbc8ca777a8() { return handleError(function (arg0, arg1) {
2038
+ const ret = arg0.requestAnimationFrame(arg1);
2039
+ return ret;
2040
+ }, arguments); }
2041
+ export function __wbg_requestDevice_c1c34f88a477e509(arg0, arg1) {
2042
+ const ret = arg0.requestDevice(arg1);
2043
+ return ret;
2044
+ }
2045
+ export function __wbg_resolve_d82363d90af6928a(arg0) {
2046
+ const ret = Promise.resolve(arg0);
2047
+ return ret;
2048
+ }
2049
+ export function __wbg_samplerParameterf_3157ba41c0f4d97a(arg0, arg1, arg2, arg3) {
2050
+ arg0.samplerParameterf(arg1, arg2 >>> 0, arg3);
2051
+ }
2052
+ export function __wbg_samplerParameteri_f85a29156e790189(arg0, arg1, arg2, arg3) {
2053
+ arg0.samplerParameteri(arg1, arg2 >>> 0, arg3);
2054
+ }
2055
+ export function __wbg_scissor_6c024669fbf4fe72(arg0, arg1, arg2, arg3, arg4) {
2056
+ arg0.scissor(arg1, arg2, arg3, arg4);
2057
+ }
2058
+ export function __wbg_scissor_f9696c630e464977(arg0, arg1, arg2, arg3, arg4) {
2059
+ arg0.scissor(arg1, arg2, arg3, arg4);
2060
+ }
2061
+ export function __wbg_setBindGroup_4ba56e1e0d26f244() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
2062
+ arg0.setBindGroup(arg1 >>> 0, arg2, getArrayU32FromWasm0(arg3, arg4), arg5, arg6 >>> 0);
2063
+ }, arguments); }
2064
+ export function __wbg_setBindGroup_6124849cc8547086(arg0, arg1, arg2) {
2065
+ arg0.setBindGroup(arg1 >>> 0, arg2);
2066
+ }
2067
+ export function __wbg_setIndexBuffer_17431786d06c1b7c(arg0, arg1, arg2, arg3, arg4) {
2068
+ arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3, arg4);
2069
+ }
2070
+ export function __wbg_setIndexBuffer_a16ed5b869c87507(arg0, arg1, arg2, arg3) {
2071
+ arg0.setIndexBuffer(arg1, __wbindgen_enum_GpuIndexFormat[arg2], arg3);
2072
+ }
2073
+ export function __wbg_setPipeline_bab24dbce96903b9(arg0, arg1) {
2074
+ arg0.setPipeline(arg1);
2075
+ }
2076
+ export function __wbg_setVertexBuffer_91c4b602d0289943(arg0, arg1, arg2, arg3) {
2077
+ arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3);
2078
+ }
2079
+ export function __wbg_setVertexBuffer_b508baf8d0ffe331(arg0, arg1, arg2, arg3, arg4) {
2080
+ arg0.setVertexBuffer(arg1 >>> 0, arg2, arg3, arg4);
2081
+ }
2082
+ export function __wbg_setViewport_f9d423db4f4b4b58(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
2083
+ arg0.setViewport(arg1, arg2, arg3, arg4, arg5, arg6);
2084
+ }
2085
+ export function __wbg_set_272b80acaf9a75e8(arg0, arg1, arg2) {
2086
+ arg0.set(arg1, arg2 >>> 0);
2087
+ }
2088
+ export function __wbg_set_4564f7dc44fcb0c9() { return handleError(function (arg0, arg1, arg2) {
2089
+ const ret = Reflect.set(arg0, arg1, arg2);
2090
+ return ret;
2091
+ }, arguments); }
2092
+ export function __wbg_set_6be42768c690e380(arg0, arg1, arg2) {
2093
+ arg0[arg1] = arg2;
2094
+ }
2095
+ export function __wbg_set_a_5f6e488475272136(arg0, arg1) {
2096
+ arg0.a = arg1;
2097
+ }
2098
+ export function __wbg_set_access_091f317905cd76a5(arg0, arg1) {
2099
+ arg0.access = __wbindgen_enum_GpuStorageTextureAccess[arg1];
2100
+ }
2101
+ export function __wbg_set_address_mode_u_a37cf1035585c638(arg0, arg1) {
2102
+ arg0.addressModeU = __wbindgen_enum_GpuAddressMode[arg1];
2103
+ }
2104
+ export function __wbg_set_address_mode_v_8ac049e029caef76(arg0, arg1) {
2105
+ arg0.addressModeV = __wbindgen_enum_GpuAddressMode[arg1];
2106
+ }
2107
+ export function __wbg_set_address_mode_w_eb9260ee11729e92(arg0, arg1) {
2108
+ arg0.addressModeW = __wbindgen_enum_GpuAddressMode[arg1];
2109
+ }
2110
+ export function __wbg_set_alpha_aa2e606e9e647b21(arg0, arg1) {
2111
+ arg0.alpha = arg1;
2112
+ }
2113
+ export function __wbg_set_alpha_mode_92402195b3ae1ee7(arg0, arg1) {
2114
+ arg0.alphaMode = __wbindgen_enum_GpuCanvasAlphaMode[arg1];
2115
+ }
2116
+ export function __wbg_set_alpha_to_coverage_enabled_b4ce9c3f7f8b7ad7(arg0, arg1) {
2117
+ arg0.alphaToCoverageEnabled = arg1 !== 0;
2118
+ }
2119
+ export function __wbg_set_array_layer_count_daec613068108a9d(arg0, arg1) {
2120
+ arg0.arrayLayerCount = arg1 >>> 0;
2121
+ }
2122
+ export function __wbg_set_array_stride_c2c009eabc18b5f6(arg0, arg1) {
2123
+ arg0.arrayStride = arg1;
2124
+ }
2125
+ export function __wbg_set_aspect_77332ac136ee94eb(arg0, arg1) {
2126
+ arg0.aspect = __wbindgen_enum_GpuTextureAspect[arg1];
2127
+ }
2128
+ export function __wbg_set_aspect_a823a14d00d42d37(arg0, arg1) {
2129
+ arg0.aspect = __wbindgen_enum_GpuTextureAspect[arg1];
2130
+ }
2131
+ export function __wbg_set_attributes_05f9117fd32ca606(arg0, arg1) {
2132
+ arg0.attributes = arg1;
2133
+ }
2134
+ export function __wbg_set_b_688365d692bba214(arg0, arg1) {
2135
+ arg0.b = arg1;
2136
+ }
2137
+ export function __wbg_set_base_array_layer_cc6c68d233489c4b(arg0, arg1) {
2138
+ arg0.baseArrayLayer = arg1 >>> 0;
2139
+ }
2140
+ export function __wbg_set_base_mip_level_e07a3efe9006d5ea(arg0, arg1) {
2141
+ arg0.baseMipLevel = arg1 >>> 0;
2142
+ }
2143
+ export function __wbg_set_beginning_of_pass_write_index_27be5b0b35ec3de0(arg0, arg1) {
2144
+ arg0.beginningOfPassWriteIndex = arg1 >>> 0;
2145
+ }
2146
+ export function __wbg_set_bind_group_layouts_5325d038771af328(arg0, arg1) {
2147
+ arg0.bindGroupLayouts = arg1;
2148
+ }
2149
+ export function __wbg_set_binding_b6b0fe5c281b8c69(arg0, arg1) {
2150
+ arg0.binding = arg1 >>> 0;
2151
+ }
2152
+ export function __wbg_set_binding_f3c188a8cd21455b(arg0, arg1) {
2153
+ arg0.binding = arg1 >>> 0;
2154
+ }
2155
+ export function __wbg_set_blend_8d6e9c08b5702a09(arg0, arg1) {
2156
+ arg0.blend = arg1;
2157
+ }
2158
+ export function __wbg_set_buffer_55f096330c8912b4(arg0, arg1) {
2159
+ arg0.buffer = arg1;
2160
+ }
2161
+ export function __wbg_set_buffer_e89095a9f0cafad3(arg0, arg1) {
2162
+ arg0.buffer = arg1;
2163
+ }
2164
+ export function __wbg_set_buffers_85a7238f4ef28ab4(arg0, arg1) {
2165
+ arg0.buffers = arg1;
2166
+ }
2167
+ export function __wbg_set_bytes_per_row_91681ca78d744888(arg0, arg1) {
2168
+ arg0.bytesPerRow = arg1 >>> 0;
2169
+ }
2170
+ export function __wbg_set_clear_value_642701f928a5ccb3(arg0, arg1) {
2171
+ arg0.clearValue = arg1;
2172
+ }
2173
+ export function __wbg_set_code_56e2d45ec1ff6c2d(arg0, arg1, arg2) {
2174
+ arg0.code = getStringFromWasm0(arg1, arg2);
2175
+ }
2176
+ export function __wbg_set_color_attachments_abe67f6631926e28(arg0, arg1) {
2177
+ arg0.colorAttachments = arg1;
2178
+ }
2179
+ export function __wbg_set_color_bc393d7efc3c8594(arg0, arg1) {
2180
+ arg0.color = arg1;
2181
+ }
2182
+ export function __wbg_set_compare_1509dc1a5420943f(arg0, arg1) {
2183
+ arg0.compare = __wbindgen_enum_GpuCompareFunction[arg1];
2184
+ }
2185
+ export function __wbg_set_compare_42211fbf15e3b850(arg0, arg1) {
2186
+ arg0.compare = __wbindgen_enum_GpuCompareFunction[arg1];
2187
+ }
2188
+ export function __wbg_set_count_26a934d1cd07d080(arg0, arg1) {
2189
+ arg0.count = arg1 >>> 0;
2190
+ }
2191
+ export function __wbg_set_cull_mode_9d466c1ab414cac8(arg0, arg1) {
2192
+ arg0.cullMode = __wbindgen_enum_GpuCullMode[arg1];
2193
+ }
2194
+ export function __wbg_set_dc601f4a69da0bc2(arg0, arg1, arg2) {
2195
+ arg0[arg1 >>> 0] = arg2;
2196
+ }
2197
+ export function __wbg_set_depth_bias_428c9340b0fd937b(arg0, arg1) {
2198
+ arg0.depthBias = arg1;
2199
+ }
2200
+ export function __wbg_set_depth_bias_clamp_f009599ca67fa30c(arg0, arg1) {
2201
+ arg0.depthBiasClamp = arg1;
2202
+ }
2203
+ export function __wbg_set_depth_bias_slope_scale_7125880b4cb7a951(arg0, arg1) {
2204
+ arg0.depthBiasSlopeScale = arg1;
2205
+ }
2206
+ export function __wbg_set_depth_clear_value_442bf492734f63b6(arg0, arg1) {
2207
+ arg0.depthClearValue = arg1;
2208
+ }
2209
+ export function __wbg_set_depth_compare_30e9ea552da12fe2(arg0, arg1) {
2210
+ arg0.depthCompare = __wbindgen_enum_GpuCompareFunction[arg1];
2211
+ }
2212
+ export function __wbg_set_depth_fail_op_5e42dc3e4c382951(arg0, arg1) {
2213
+ arg0.depthFailOp = __wbindgen_enum_GpuStencilOperation[arg1];
2214
+ }
2215
+ export function __wbg_set_depth_load_op_34d430b74bb36d91(arg0, arg1) {
2216
+ arg0.depthLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
2217
+ }
2218
+ export function __wbg_set_depth_or_array_layers_4bbbeadacb393f02(arg0, arg1) {
2219
+ arg0.depthOrArrayLayers = arg1 >>> 0;
2220
+ }
2221
+ export function __wbg_set_depth_read_only_138a11b10c731094(arg0, arg1) {
2222
+ arg0.depthReadOnly = arg1 !== 0;
2223
+ }
2224
+ export function __wbg_set_depth_stencil_1bd50dbc450c8650(arg0, arg1) {
2225
+ arg0.depthStencil = arg1;
2226
+ }
2227
+ export function __wbg_set_depth_stencil_attachment_1ee0d93bc3273369(arg0, arg1) {
2228
+ arg0.depthStencilAttachment = arg1;
2229
+ }
2230
+ export function __wbg_set_depth_store_op_0ea0a215313dbda7(arg0, arg1) {
2231
+ arg0.depthStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
2232
+ }
2233
+ export function __wbg_set_depth_write_enabled_64c2e7f6fa4b6b7b(arg0, arg1) {
2234
+ arg0.depthWriteEnabled = arg1 !== 0;
2235
+ }
2236
+ export function __wbg_set_device_0d774b66e7288f72(arg0, arg1) {
2237
+ arg0.device = arg1;
2238
+ }
2239
+ export function __wbg_set_dimension_174ad7e2fb67fb4e(arg0, arg1) {
2240
+ arg0.dimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
2241
+ }
2242
+ export function __wbg_set_dimension_36e13ccecae5af4b(arg0, arg1) {
2243
+ arg0.dimension = __wbindgen_enum_GpuTextureDimension[arg1];
2244
+ }
2245
+ export function __wbg_set_dst_factor_1ed75271a89a711e(arg0, arg1) {
2246
+ arg0.dstFactor = __wbindgen_enum_GpuBlendFactor[arg1];
2247
+ }
2248
+ export function __wbg_set_end_of_pass_write_index_e8f52fc08bc0603e(arg0, arg1) {
2249
+ arg0.endOfPassWriteIndex = arg1 >>> 0;
2250
+ }
2251
+ export function __wbg_set_entries_3017e6132f938c6e(arg0, arg1) {
2252
+ arg0.entries = arg1;
2253
+ }
2254
+ export function __wbg_set_entries_fc76ca4d7da6a709(arg0, arg1) {
2255
+ arg0.entries = arg1;
2256
+ }
2257
+ export function __wbg_set_entry_point_6fec5723cc790927(arg0, arg1, arg2) {
2258
+ arg0.entryPoint = getStringFromWasm0(arg1, arg2);
2259
+ }
2260
+ export function __wbg_set_entry_point_8db3b6d103e3b865(arg0, arg1, arg2) {
2261
+ arg0.entryPoint = getStringFromWasm0(arg1, arg2);
2262
+ }
2263
+ export function __wbg_set_external_texture_825fe2bc7a0c0603(arg0, arg1) {
2264
+ arg0.externalTexture = arg1;
2265
+ }
2266
+ export function __wbg_set_fail_op_77ab26c98f847b65(arg0, arg1) {
2267
+ arg0.failOp = __wbindgen_enum_GpuStencilOperation[arg1];
2268
+ }
2269
+ export function __wbg_set_format_1786adb7bc74c7c9(arg0, arg1) {
2270
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
2271
+ }
2272
+ export function __wbg_set_format_6606f5c1fba6f459(arg0, arg1) {
2273
+ arg0.format = __wbindgen_enum_GpuVertexFormat[arg1];
2274
+ }
2275
+ export function __wbg_set_format_90860b0321868db4(arg0, arg1) {
2276
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
2277
+ }
2278
+ export function __wbg_set_format_abf7a1bc5425c56a(arg0, arg1) {
2279
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
2280
+ }
2281
+ export function __wbg_set_format_d347899cd860709c(arg0, arg1) {
2282
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
2283
+ }
2284
+ export function __wbg_set_format_e9d4b1475bb3bd3b(arg0, arg1) {
2285
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
2286
+ }
2287
+ export function __wbg_set_format_f9341112e43ea182(arg0, arg1) {
2288
+ arg0.format = __wbindgen_enum_GpuTextureFormat[arg1];
2289
+ }
2290
+ export function __wbg_set_fragment_1a595620425637e1(arg0, arg1) {
2291
+ arg0.fragment = arg1;
2292
+ }
2293
+ export function __wbg_set_front_face_50cdf4eb61504a46(arg0, arg1) {
2294
+ arg0.frontFace = __wbindgen_enum_GpuFrontFace[arg1];
2295
+ }
2296
+ export function __wbg_set_g_d4d1d77cf8fdd362(arg0, arg1) {
2297
+ arg0.g = arg1;
2298
+ }
2299
+ export function __wbg_set_has_dynamic_offset_7d30014fdbfe90c5(arg0, arg1) {
2300
+ arg0.hasDynamicOffset = arg1 !== 0;
2301
+ }
2302
+ export function __wbg_set_height_ad5056ea051acd78(arg0, arg1) {
2303
+ arg0.height = arg1 >>> 0;
2304
+ }
2305
+ export function __wbg_set_height_e8b5483b8c117d5e(arg0, arg1) {
2306
+ arg0.height = arg1 >>> 0;
2307
+ }
2308
+ export function __wbg_set_height_ef298446b359b0c5(arg0, arg1) {
2309
+ arg0.height = arg1 >>> 0;
2310
+ }
2311
+ export function __wbg_set_label_03d2396d4655a3e1(arg0, arg1, arg2) {
2312
+ arg0.label = getStringFromWasm0(arg1, arg2);
2313
+ }
2314
+ export function __wbg_set_label_0c1bd0e976cf0a9a(arg0, arg1, arg2) {
2315
+ arg0.label = getStringFromWasm0(arg1, arg2);
2316
+ }
2317
+ export function __wbg_set_label_1175a3329a06e52b(arg0, arg1, arg2) {
2318
+ arg0.label = getStringFromWasm0(arg1, arg2);
2319
+ }
2320
+ export function __wbg_set_label_2d2227f4d5991e50(arg0, arg1, arg2) {
2321
+ arg0.label = getStringFromWasm0(arg1, arg2);
2322
+ }
2323
+ export function __wbg_set_label_2f592bd1be3db6b3(arg0, arg1, arg2) {
2324
+ arg0.label = getStringFromWasm0(arg1, arg2);
2325
+ }
2326
+ export function __wbg_set_label_8fd860a36d2c7b74(arg0, arg1, arg2) {
2327
+ arg0.label = getStringFromWasm0(arg1, arg2);
2328
+ }
2329
+ export function __wbg_set_label_bae57fb9f24fde5c(arg0, arg1, arg2) {
2330
+ arg0.label = getStringFromWasm0(arg1, arg2);
2331
+ }
2332
+ export function __wbg_set_label_be45aed56e4b9fee(arg0, arg1, arg2) {
2333
+ arg0.label = getStringFromWasm0(arg1, arg2);
2334
+ }
2335
+ export function __wbg_set_label_c47c451211e2f6d2(arg0, arg1, arg2) {
2336
+ arg0.label = getStringFromWasm0(arg1, arg2);
2337
+ }
2338
+ export function __wbg_set_label_cd567b7b35838e4c(arg0, arg1, arg2) {
2339
+ arg0.label = getStringFromWasm0(arg1, arg2);
2340
+ }
2341
+ export function __wbg_set_label_d1c24b5a7a3ac31d(arg0, arg1, arg2) {
2342
+ arg0.label = getStringFromWasm0(arg1, arg2);
2343
+ }
2344
+ export function __wbg_set_label_dcd98efbb9370da8(arg0, arg1, arg2) {
2345
+ arg0.label = getStringFromWasm0(arg1, arg2);
2346
+ }
2347
+ export function __wbg_set_label_f92ae11c77d74198(arg0, arg1, arg2) {
2348
+ arg0.label = getStringFromWasm0(arg1, arg2);
2349
+ }
2350
+ export function __wbg_set_layout_7c5ba5bdcde8a0f0(arg0, arg1) {
2351
+ arg0.layout = arg1;
2352
+ }
2353
+ export function __wbg_set_layout_eeef59714f5bf48b(arg0, arg1) {
2354
+ arg0.layout = arg1;
2355
+ }
2356
+ export function __wbg_set_load_op_56844f51434037bf(arg0, arg1) {
2357
+ arg0.loadOp = __wbindgen_enum_GpuLoadOp[arg1];
2358
+ }
2359
+ export function __wbg_set_lod_max_clamp_3f157633f32c9f94(arg0, arg1) {
2360
+ arg0.lodMaxClamp = arg1;
2361
+ }
2362
+ export function __wbg_set_lod_min_clamp_7e246c739fb1a854(arg0, arg1) {
2363
+ arg0.lodMinClamp = arg1;
2364
+ }
2365
+ export function __wbg_set_mag_filter_69d846b974d4bcc0(arg0, arg1) {
2366
+ arg0.magFilter = __wbindgen_enum_GpuFilterMode[arg1];
2367
+ }
2368
+ export function __wbg_set_mapped_at_creation_48de4735fab51e78(arg0, arg1) {
2369
+ arg0.mappedAtCreation = arg1 !== 0;
2370
+ }
2371
+ export function __wbg_set_mask_0c49a66362fc0079(arg0, arg1) {
2372
+ arg0.mask = arg1 >>> 0;
2373
+ }
2374
+ export function __wbg_set_max_anisotropy_3ef0d5bca2336cc7(arg0, arg1) {
2375
+ arg0.maxAnisotropy = arg1;
2376
+ }
2377
+ export function __wbg_set_min_binding_size_689661b9ed25e083(arg0, arg1) {
2378
+ arg0.minBindingSize = arg1;
2379
+ }
2380
+ export function __wbg_set_min_filter_fbf2d8d9f503dcd7(arg0, arg1) {
2381
+ arg0.minFilter = __wbindgen_enum_GpuFilterMode[arg1];
2382
+ }
2383
+ export function __wbg_set_mip_level_246db61be15bdd69(arg0, arg1) {
2384
+ arg0.mipLevel = arg1 >>> 0;
2385
+ }
2386
+ export function __wbg_set_mip_level_count_72f8bc1f80f7539b(arg0, arg1) {
2387
+ arg0.mipLevelCount = arg1 >>> 0;
2388
+ }
2389
+ export function __wbg_set_mip_level_count_b19a0d9192e62d5d(arg0, arg1) {
2390
+ arg0.mipLevelCount = arg1 >>> 0;
2391
+ }
2392
+ export function __wbg_set_mipmap_filter_17fd50a3898fd5ff(arg0, arg1) {
2393
+ arg0.mipmapFilter = __wbindgen_enum_GpuMipmapFilterMode[arg1];
2394
+ }
2395
+ export function __wbg_set_module_08ad08e736d8edbf(arg0, arg1) {
2396
+ arg0.module = arg1;
2397
+ }
2398
+ export function __wbg_set_module_14e471fdd94c582d(arg0, arg1) {
2399
+ arg0.module = arg1;
2400
+ }
2401
+ export function __wbg_set_multisample_85f073947b782d07(arg0, arg1) {
2402
+ arg0.multisample = arg1;
2403
+ }
2404
+ export function __wbg_set_multisampled_40505c1381e1c32c(arg0, arg1) {
2405
+ arg0.multisampled = arg1 !== 0;
2406
+ }
2407
+ export function __wbg_set_offset_73156b0e0b41d79a(arg0, arg1) {
2408
+ arg0.offset = arg1;
2409
+ }
2410
+ export function __wbg_set_offset_8d9d9afffa18b591(arg0, arg1) {
2411
+ arg0.offset = arg1;
2412
+ }
2413
+ export function __wbg_set_offset_a097a8050a3a9a33(arg0, arg1) {
2414
+ arg0.offset = arg1;
2415
+ }
2416
+ export function __wbg_set_operation_b5862f5a1a143b30(arg0, arg1) {
2417
+ arg0.operation = __wbindgen_enum_GpuBlendOperation[arg1];
2418
+ }
2419
+ export function __wbg_set_origin_9b3b0fbe0a5dc469(arg0, arg1) {
2420
+ arg0.origin = arg1;
2421
+ }
2422
+ export function __wbg_set_pass_op_e9470d1262fb8a8b(arg0, arg1) {
2423
+ arg0.passOp = __wbindgen_enum_GpuStencilOperation[arg1];
2424
+ }
2425
+ export function __wbg_set_power_preference_c0d3fa7ce46b1a2e(arg0, arg1) {
2426
+ arg0.powerPreference = __wbindgen_enum_GpuPowerPreference[arg1];
2427
+ }
2428
+ export function __wbg_set_primitive_369241acd17871f1(arg0, arg1) {
2429
+ arg0.primitive = arg1;
2430
+ }
2431
+ export function __wbg_set_query_set_18679a8580267d5a(arg0, arg1) {
2432
+ arg0.querySet = arg1;
2433
+ }
2434
+ export function __wbg_set_r_527e5a41c4b1a846(arg0, arg1) {
2435
+ arg0.r = arg1;
2436
+ }
2437
+ export function __wbg_set_required_features_54918de8185c5fab(arg0, arg1) {
2438
+ arg0.requiredFeatures = arg1;
2439
+ }
2440
+ export function __wbg_set_required_limits_3b031f66f838f4e3(arg0, arg1) {
2441
+ arg0.requiredLimits = arg1;
2442
+ }
2443
+ export function __wbg_set_resolve_target_fe76b3f99cf72078(arg0, arg1) {
2444
+ arg0.resolveTarget = arg1;
2445
+ }
2446
+ export function __wbg_set_resource_fe385d2e3dadaf63(arg0, arg1) {
2447
+ arg0.resource = arg1;
2448
+ }
2449
+ export function __wbg_set_rows_per_image_d198b7e73a38978b(arg0, arg1) {
2450
+ arg0.rowsPerImage = arg1 >>> 0;
2451
+ }
2452
+ export function __wbg_set_sample_count_865e1d19b84e27e6(arg0, arg1) {
2453
+ arg0.sampleCount = arg1 >>> 0;
2454
+ }
2455
+ export function __wbg_set_sample_type_7088b1efddce6a69(arg0, arg1) {
2456
+ arg0.sampleType = __wbindgen_enum_GpuTextureSampleType[arg1];
2457
+ }
2458
+ export function __wbg_set_sampler_8c5d7fb1b02058c6(arg0, arg1) {
2459
+ arg0.sampler = arg1;
2460
+ }
2461
+ export function __wbg_set_shader_location_0ff30a733291a396(arg0, arg1) {
2462
+ arg0.shaderLocation = arg1 >>> 0;
2463
+ }
2464
+ export function __wbg_set_size_1e6281b07cd39177(arg0, arg1) {
2465
+ arg0.size = arg1;
2466
+ }
2467
+ export function __wbg_set_size_41cd9255ca1e4242(arg0, arg1) {
2468
+ arg0.size = arg1;
2469
+ }
2470
+ export function __wbg_set_size_a61ff22205255d61(arg0, arg1) {
2471
+ arg0.size = arg1;
2472
+ }
2473
+ export function __wbg_set_src_factor_1c4f755f8676df1b(arg0, arg1) {
2474
+ arg0.srcFactor = __wbindgen_enum_GpuBlendFactor[arg1];
2475
+ }
2476
+ export function __wbg_set_stencil_back_6ef4683123b19b25(arg0, arg1) {
2477
+ arg0.stencilBack = arg1;
2478
+ }
2479
+ export function __wbg_set_stencil_clear_value_10b58f674d0177c2(arg0, arg1) {
2480
+ arg0.stencilClearValue = arg1 >>> 0;
2481
+ }
2482
+ export function __wbg_set_stencil_front_aeb8580a97e5424b(arg0, arg1) {
2483
+ arg0.stencilFront = arg1;
2484
+ }
2485
+ export function __wbg_set_stencil_load_op_f20a90a66acd3d8c(arg0, arg1) {
2486
+ arg0.stencilLoadOp = __wbindgen_enum_GpuLoadOp[arg1];
2487
+ }
2488
+ export function __wbg_set_stencil_read_mask_2954f260d47349ea(arg0, arg1) {
2489
+ arg0.stencilReadMask = arg1 >>> 0;
2490
+ }
2491
+ export function __wbg_set_stencil_read_only_fb489d191b6d969b(arg0, arg1) {
2492
+ arg0.stencilReadOnly = arg1 !== 0;
2493
+ }
2494
+ export function __wbg_set_stencil_store_op_477c4cf6422dfa3f(arg0, arg1) {
2495
+ arg0.stencilStoreOp = __wbindgen_enum_GpuStoreOp[arg1];
2496
+ }
2497
+ export function __wbg_set_stencil_write_mask_3f8e9b3781814a95(arg0, arg1) {
2498
+ arg0.stencilWriteMask = arg1 >>> 0;
2499
+ }
2500
+ export function __wbg_set_step_mode_a35aef328761c452(arg0, arg1) {
2501
+ arg0.stepMode = __wbindgen_enum_GpuVertexStepMode[arg1];
2502
+ }
2503
+ export function __wbg_set_storage_texture_ab9eed9786337ef0(arg0, arg1) {
2504
+ arg0.storageTexture = arg1;
2505
+ }
2506
+ export function __wbg_set_store_op_caeede4654b3d847(arg0, arg1) {
2507
+ arg0.storeOp = __wbindgen_enum_GpuStoreOp[arg1];
2508
+ }
2509
+ export function __wbg_set_strip_index_format_0cd0510e166c4ec4(arg0, arg1) {
2510
+ arg0.stripIndexFormat = __wbindgen_enum_GpuIndexFormat[arg1];
2511
+ }
2512
+ export function __wbg_set_targets_6b0b3bdd87f35668(arg0, arg1) {
2513
+ arg0.targets = arg1;
2514
+ }
2515
+ export function __wbg_set_texture_16d2be474ce6ad0c(arg0, arg1) {
2516
+ arg0.texture = arg1;
2517
+ }
2518
+ export function __wbg_set_texture_e25a73da75cf5808(arg0, arg1) {
2519
+ arg0.texture = arg1;
2520
+ }
2521
+ export function __wbg_set_timestamp_writes_c552d52fbb417005(arg0, arg1) {
2522
+ arg0.timestampWrites = arg1;
2523
+ }
2524
+ export function __wbg_set_topology_beefb3aca0612b00(arg0, arg1) {
2525
+ arg0.topology = __wbindgen_enum_GpuPrimitiveTopology[arg1];
2526
+ }
2527
+ export function __wbg_set_type_38961e08504ca674(arg0, arg1) {
2528
+ arg0.type = __wbindgen_enum_GpuBufferBindingType[arg1];
2529
+ }
2530
+ export function __wbg_set_type_c1eebc19f8a6aeb9(arg0, arg1) {
2531
+ arg0.type = __wbindgen_enum_GpuSamplerBindingType[arg1];
2532
+ }
2533
+ export function __wbg_set_unclipped_depth_5a4f7eb57fe006b2(arg0, arg1) {
2534
+ arg0.unclippedDepth = arg1 !== 0;
2535
+ }
2536
+ export function __wbg_set_usage_7f0dda8309469b1c(arg0, arg1) {
2537
+ arg0.usage = arg1 >>> 0;
2538
+ }
2539
+ export function __wbg_set_usage_7fa9cd18d1104aca(arg0, arg1) {
2540
+ arg0.usage = arg1 >>> 0;
2541
+ }
2542
+ export function __wbg_set_usage_908213a4d4bb8bde(arg0, arg1) {
2543
+ arg0.usage = arg1 >>> 0;
2544
+ }
2545
+ export function __wbg_set_usage_ae014e77ff77ce06(arg0, arg1) {
2546
+ arg0.usage = arg1 >>> 0;
2547
+ }
2548
+ export function __wbg_set_vertex_a4951dd9a7a4ed54(arg0, arg1) {
2549
+ arg0.vertex = arg1;
2550
+ }
2551
+ export function __wbg_set_view_bdeab150b5f0768c(arg0, arg1) {
2552
+ arg0.view = arg1;
2553
+ }
2554
+ export function __wbg_set_view_dbd0294573f64d05(arg0, arg1) {
2555
+ arg0.view = arg1;
2556
+ }
2557
+ export function __wbg_set_view_dimension_263387976511ebc9(arg0, arg1) {
2558
+ arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
2559
+ }
2560
+ export function __wbg_set_view_dimension_3ed01b237e85826f(arg0, arg1) {
2561
+ arg0.viewDimension = __wbindgen_enum_GpuTextureViewDimension[arg1];
2562
+ }
2563
+ export function __wbg_set_view_formats_bab284fc81b40e70(arg0, arg1) {
2564
+ arg0.viewFormats = arg1;
2565
+ }
2566
+ export function __wbg_set_view_formats_fe531a043efb71fa(arg0, arg1) {
2567
+ arg0.viewFormats = arg1;
2568
+ }
2569
+ export function __wbg_set_visibility_1bca121a89accba5(arg0, arg1) {
2570
+ arg0.visibility = arg1 >>> 0;
2571
+ }
2572
+ export function __wbg_set_width_031bdecd763c5855(arg0, arg1) {
2573
+ arg0.width = arg1 >>> 0;
2574
+ }
2575
+ export function __wbg_set_width_1a5e2e86fa5bdcd8(arg0, arg1) {
2576
+ arg0.width = arg1 >>> 0;
2577
+ }
2578
+ export function __wbg_set_width_f9e631f4ee129e5c(arg0, arg1) {
2579
+ arg0.width = arg1 >>> 0;
2580
+ }
2581
+ export function __wbg_set_write_mask_144b25e2bd909124(arg0, arg1) {
2582
+ arg0.writeMask = arg1 >>> 0;
2583
+ }
2584
+ export function __wbg_set_x_56f0c2c08a62725c(arg0, arg1) {
2585
+ arg0.x = arg1 >>> 0;
2586
+ }
2587
+ export function __wbg_set_y_04fb8ce84735b4e1(arg0, arg1) {
2588
+ arg0.y = arg1 >>> 0;
2589
+ }
2590
+ export function __wbg_set_z_a51316db27a4941e(arg0, arg1) {
2591
+ arg0.z = arg1 >>> 0;
2592
+ }
2593
+ export function __wbg_shaderSource_628c37a476ae65f9(arg0, arg1, arg2, arg3) {
2594
+ arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3));
2595
+ }
2596
+ export function __wbg_shaderSource_66dce75b25a1a407(arg0, arg1, arg2, arg3) {
2597
+ arg0.shaderSource(arg1, getStringFromWasm0(arg2, arg3));
2598
+ }
2599
+ export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
2600
+ const ret = arg1.stack;
2601
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2602
+ const len1 = WASM_VECTOR_LEN;
2603
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
2604
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
2605
+ }
2606
+ export function __wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938() {
2607
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
2608
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2609
+ }
2610
+ export function __wbg_static_accessor_GLOBAL_ce44e66a4935da8c() {
2611
+ const ret = typeof global === 'undefined' ? null : global;
2612
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2613
+ }
2614
+ export function __wbg_static_accessor_SELF_44f6e0cb5e67cdad() {
2615
+ const ret = typeof self === 'undefined' ? null : self;
2616
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2617
+ }
2618
+ export function __wbg_static_accessor_WINDOW_168f178805d978fe() {
2619
+ const ret = typeof window === 'undefined' ? null : window;
2620
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
2621
+ }
2622
+ export function __wbg_stencilFuncSeparate_a17b2b1cc34fa948(arg0, arg1, arg2, arg3, arg4) {
2623
+ arg0.stencilFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3, arg4 >>> 0);
2624
+ }
2625
+ export function __wbg_stencilFuncSeparate_ec603976be9569a4(arg0, arg1, arg2, arg3, arg4) {
2626
+ arg0.stencilFuncSeparate(arg1 >>> 0, arg2 >>> 0, arg3, arg4 >>> 0);
2627
+ }
2628
+ export function __wbg_stencilMaskSeparate_3bf2cb54cc370b58(arg0, arg1, arg2) {
2629
+ arg0.stencilMaskSeparate(arg1 >>> 0, arg2 >>> 0);
2630
+ }
2631
+ export function __wbg_stencilMaskSeparate_cabcdf843acbf5f1(arg0, arg1, arg2) {
2632
+ arg0.stencilMaskSeparate(arg1 >>> 0, arg2 >>> 0);
2633
+ }
2634
+ export function __wbg_stencilMask_485dcb5965c79a71(arg0, arg1) {
2635
+ arg0.stencilMask(arg1 >>> 0);
2636
+ }
2637
+ export function __wbg_stencilMask_f9fe198f7fd6fc9c(arg0, arg1) {
2638
+ arg0.stencilMask(arg1 >>> 0);
2639
+ }
2640
+ export function __wbg_stencilOpSeparate_5c4dbe1cf597c5ed(arg0, arg1, arg2, arg3, arg4) {
2641
+ arg0.stencilOpSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
2642
+ }
2643
+ export function __wbg_stencilOpSeparate_6cf50803475d2640(arg0, arg1, arg2, arg3, arg4) {
2644
+ arg0.stencilOpSeparate(arg1 >>> 0, arg2 >>> 0, arg3 >>> 0, arg4 >>> 0);
2645
+ }
2646
+ export function __wbg_submit_1290d44bb76ecef4(arg0, arg1) {
2647
+ arg0.submit(arg1);
2648
+ }
2649
+ export function __wbg_texImage2D_0e0f37b9fb297d01() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2650
+ arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2651
+ }, arguments); }
2652
+ export function __wbg_texImage2D_0e537dc331652de3() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2653
+ arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2654
+ }, arguments); }
2655
+ export function __wbg_texImage2D_7bc3001cb8602ed2() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2656
+ arg0.texImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2657
+ }, arguments); }
2658
+ export function __wbg_texImage3D_30dbf7234481b8f5() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
2659
+ arg0.texImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8 >>> 0, arg9 >>> 0, arg10);
2660
+ }, arguments); }
2661
+ export function __wbg_texImage3D_8647ef58aef5b912() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
2662
+ arg0.texImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8 >>> 0, arg9 >>> 0, arg10);
2663
+ }, arguments); }
2664
+ export function __wbg_texParameteri_c6efffcecb474d2f(arg0, arg1, arg2, arg3) {
2665
+ arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
2666
+ }
2667
+ export function __wbg_texParameteri_fe6210a493d48a16(arg0, arg1, arg2, arg3) {
2668
+ arg0.texParameteri(arg1 >>> 0, arg2 >>> 0, arg3);
2669
+ }
2670
+ export function __wbg_texStorage2D_ed5df596c5f1e3af(arg0, arg1, arg2, arg3, arg4, arg5) {
2671
+ arg0.texStorage2D(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
2672
+ }
2673
+ export function __wbg_texStorage3D_160b0197bc190f04(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
2674
+ arg0.texStorage3D(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5, arg6);
2675
+ }
2676
+ export function __wbg_texSubImage2D_1b2ff28f994c325e() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2677
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2678
+ }, arguments); }
2679
+ export function __wbg_texSubImage2D_3884b5a5c27ca5c4() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2680
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2681
+ }, arguments); }
2682
+ export function __wbg_texSubImage2D_5c630043f1c56716() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2683
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2684
+ }, arguments); }
2685
+ export function __wbg_texSubImage2D_89866a04ecd0a76b() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2686
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2687
+ }, arguments); }
2688
+ export function __wbg_texSubImage2D_bbd523c9ebd9fa99() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2689
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2690
+ }, arguments); }
2691
+ export function __wbg_texSubImage2D_ce2585a1bf3d56d9() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2692
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2693
+ }, arguments); }
2694
+ export function __wbg_texSubImage2D_d14d9c0a1f627c31() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2695
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2696
+ }, arguments); }
2697
+ export function __wbg_texSubImage2D_f03448e182b0820d() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
2698
+ arg0.texSubImage2D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7 >>> 0, arg8 >>> 0, arg9);
2699
+ }, arguments); }
2700
+ export function __wbg_texSubImage3D_09a97a968b93253d() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
2701
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
2702
+ }, arguments); }
2703
+ export function __wbg_texSubImage3D_0fdbd843482bb916() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
2704
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
2705
+ }, arguments); }
2706
+ export function __wbg_texSubImage3D_355efde0dc047913() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
2707
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
2708
+ }, arguments); }
2709
+ export function __wbg_texSubImage3D_5a238709d114b609() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
2710
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
2711
+ }, arguments); }
2712
+ export function __wbg_texSubImage3D_933e4cd41cc5376d() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
2713
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
2714
+ }, arguments); }
2715
+ export function __wbg_texSubImage3D_bd32c8e29e470904() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
2716
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
2717
+ }, arguments); }
2718
+ export function __wbg_texSubImage3D_c3538b28040daac9() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) {
2719
+ arg0.texSubImage3D(arg1 >>> 0, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9 >>> 0, arg10 >>> 0, arg11);
2720
+ }, arguments); }
2721
+ export function __wbg_then_05edfc8a4fea5106(arg0, arg1, arg2) {
2722
+ const ret = arg0.then(arg1, arg2);
2723
+ return ret;
2724
+ }
2725
+ export function __wbg_then_2a84678a50976959(arg0, arg1, arg2) {
2726
+ const ret = arg0.then(arg1, arg2);
2727
+ return ret;
2728
+ }
2729
+ export function __wbg_then_591b6b3a75ee817a(arg0, arg1) {
2730
+ const ret = arg0.then(arg1);
2731
+ return ret;
2732
+ }
2733
+ export function __wbg_uniform1f_3acd3f3eb50b5e11(arg0, arg1, arg2) {
2734
+ arg0.uniform1f(arg1, arg2);
2735
+ }
2736
+ export function __wbg_uniform1f_d34e4b454f7c8e73(arg0, arg1, arg2) {
2737
+ arg0.uniform1f(arg1, arg2);
2738
+ }
2739
+ export function __wbg_uniform1i_cd9a7f990128ea48(arg0, arg1, arg2) {
2740
+ arg0.uniform1i(arg1, arg2);
2741
+ }
2742
+ export function __wbg_uniform1i_e4f13604354c28ae(arg0, arg1, arg2) {
2743
+ arg0.uniform1i(arg1, arg2);
2744
+ }
2745
+ export function __wbg_uniform1ui_36c94692177ebf76(arg0, arg1, arg2) {
2746
+ arg0.uniform1ui(arg1, arg2 >>> 0);
2747
+ }
2748
+ export function __wbg_uniform2fv_17592f4dad9798fb(arg0, arg1, arg2, arg3) {
2749
+ arg0.uniform2fv(arg1, getArrayF32FromWasm0(arg2, arg3));
2750
+ }
2751
+ export function __wbg_uniform2fv_39277cf2d3cb83c7(arg0, arg1, arg2, arg3) {
2752
+ arg0.uniform2fv(arg1, getArrayF32FromWasm0(arg2, arg3));
2753
+ }
2754
+ export function __wbg_uniform2iv_c5e863975dd780d8(arg0, arg1, arg2, arg3) {
2755
+ arg0.uniform2iv(arg1, getArrayI32FromWasm0(arg2, arg3));
2756
+ }
2757
+ export function __wbg_uniform2iv_d5d29ebbc466977d(arg0, arg1, arg2, arg3) {
2758
+ arg0.uniform2iv(arg1, getArrayI32FromWasm0(arg2, arg3));
2759
+ }
2760
+ export function __wbg_uniform2uiv_418ba3bf6a230dd5(arg0, arg1, arg2, arg3) {
2761
+ arg0.uniform2uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
2762
+ }
2763
+ export function __wbg_uniform3fv_7723e142be50856f(arg0, arg1, arg2, arg3) {
2764
+ arg0.uniform3fv(arg1, getArrayF32FromWasm0(arg2, arg3));
2765
+ }
2766
+ export function __wbg_uniform3fv_dbe44b778e6b89e8(arg0, arg1, arg2, arg3) {
2767
+ arg0.uniform3fv(arg1, getArrayF32FromWasm0(arg2, arg3));
2768
+ }
2769
+ export function __wbg_uniform3iv_bea3976522e15d48(arg0, arg1, arg2, arg3) {
2770
+ arg0.uniform3iv(arg1, getArrayI32FromWasm0(arg2, arg3));
2771
+ }
2772
+ export function __wbg_uniform3iv_d75d3a5f86d54be4(arg0, arg1, arg2, arg3) {
2773
+ arg0.uniform3iv(arg1, getArrayI32FromWasm0(arg2, arg3));
2774
+ }
2775
+ export function __wbg_uniform3uiv_71c1efc24a662de9(arg0, arg1, arg2, arg3) {
2776
+ arg0.uniform3uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
2777
+ }
2778
+ export function __wbg_uniform4f_4410d2faaa7e5dda(arg0, arg1, arg2, arg3, arg4, arg5) {
2779
+ arg0.uniform4f(arg1, arg2, arg3, arg4, arg5);
2780
+ }
2781
+ export function __wbg_uniform4f_a5008773cfb47d1a(arg0, arg1, arg2, arg3, arg4, arg5) {
2782
+ arg0.uniform4f(arg1, arg2, arg3, arg4, arg5);
2783
+ }
2784
+ export function __wbg_uniform4fv_85ad5d23234895d2(arg0, arg1, arg2, arg3) {
2785
+ arg0.uniform4fv(arg1, getArrayF32FromWasm0(arg2, arg3));
2786
+ }
2787
+ export function __wbg_uniform4fv_9e670a001c77dca0(arg0, arg1, arg2, arg3) {
2788
+ arg0.uniform4fv(arg1, getArrayF32FromWasm0(arg2, arg3));
2789
+ }
2790
+ export function __wbg_uniform4iv_1d57c6b8e5c0e447(arg0, arg1, arg2, arg3) {
2791
+ arg0.uniform4iv(arg1, getArrayI32FromWasm0(arg2, arg3));
2792
+ }
2793
+ export function __wbg_uniform4iv_a9aaa92f2f458ec2(arg0, arg1, arg2, arg3) {
2794
+ arg0.uniform4iv(arg1, getArrayI32FromWasm0(arg2, arg3));
2795
+ }
2796
+ export function __wbg_uniform4uiv_c5d45f5dbdae727a(arg0, arg1, arg2, arg3) {
2797
+ arg0.uniform4uiv(arg1, getArrayU32FromWasm0(arg2, arg3));
2798
+ }
2799
+ export function __wbg_uniformBlockBinding_829a71912ad79a04(arg0, arg1, arg2, arg3) {
2800
+ arg0.uniformBlockBinding(arg1, arg2 >>> 0, arg3 >>> 0);
2801
+ }
2802
+ export function __wbg_uniformMatrix2fv_b666dc80e084ddbc(arg0, arg1, arg2, arg3, arg4) {
2803
+ arg0.uniformMatrix2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2804
+ }
2805
+ export function __wbg_uniformMatrix2fv_cd6e1725152efce9(arg0, arg1, arg2, arg3, arg4) {
2806
+ arg0.uniformMatrix2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2807
+ }
2808
+ export function __wbg_uniformMatrix2x3fv_6a6221d5300ad184(arg0, arg1, arg2, arg3, arg4) {
2809
+ arg0.uniformMatrix2x3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2810
+ }
2811
+ export function __wbg_uniformMatrix2x4fv_68bc9cd1e2d67339(arg0, arg1, arg2, arg3, arg4) {
2812
+ arg0.uniformMatrix2x4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2813
+ }
2814
+ export function __wbg_uniformMatrix3fv_2ccfe6ff9f4f57ec(arg0, arg1, arg2, arg3, arg4) {
2815
+ arg0.uniformMatrix3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2816
+ }
2817
+ export function __wbg_uniformMatrix3fv_da8c388748c5739b(arg0, arg1, arg2, arg3, arg4) {
2818
+ arg0.uniformMatrix3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2819
+ }
2820
+ export function __wbg_uniformMatrix3x2fv_1083b1ecb80866a1(arg0, arg1, arg2, arg3, arg4) {
2821
+ arg0.uniformMatrix3x2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2822
+ }
2823
+ export function __wbg_uniformMatrix3x4fv_d4cc158d92dbd1ce(arg0, arg1, arg2, arg3, arg4) {
2824
+ arg0.uniformMatrix3x4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2825
+ }
2826
+ export function __wbg_uniformMatrix4fv_61b1a000cfdc35cc(arg0, arg1, arg2, arg3, arg4) {
2827
+ arg0.uniformMatrix4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2828
+ }
2829
+ export function __wbg_uniformMatrix4fv_c8ba105f2ce3edf8(arg0, arg1, arg2, arg3, arg4) {
2830
+ arg0.uniformMatrix4fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2831
+ }
2832
+ export function __wbg_uniformMatrix4x2fv_cb66ed882d29c550(arg0, arg1, arg2, arg3, arg4) {
2833
+ arg0.uniformMatrix4x2fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2834
+ }
2835
+ export function __wbg_uniformMatrix4x3fv_99e2e5fabf39e8b6(arg0, arg1, arg2, arg3, arg4) {
2836
+ arg0.uniformMatrix4x3fv(arg1, arg2 !== 0, getArrayF32FromWasm0(arg3, arg4));
2837
+ }
2838
+ export function __wbg_unmap_8f06698a75b8331a(arg0) {
2839
+ arg0.unmap();
2840
+ }
2841
+ export function __wbg_useProgram_0e1cd86765304939(arg0, arg1) {
2842
+ arg0.useProgram(arg1);
2843
+ }
2844
+ export function __wbg_useProgram_ab2ee2a13a1fd909(arg0, arg1) {
2845
+ arg0.useProgram(arg1);
2846
+ }
2847
+ export function __wbg_value_49f783bb59765962(arg0) {
2848
+ const ret = arg0.value;
2849
+ return ret;
2850
+ }
2851
+ export function __wbg_vertexAttribDivisorANGLE_ffd803d04b545670(arg0, arg1, arg2) {
2852
+ arg0.vertexAttribDivisorANGLE(arg1 >>> 0, arg2 >>> 0);
2853
+ }
2854
+ export function __wbg_vertexAttribDivisor_f17a8585267be92f(arg0, arg1, arg2) {
2855
+ arg0.vertexAttribDivisor(arg1 >>> 0, arg2 >>> 0);
2856
+ }
2857
+ export function __wbg_vertexAttribIPointer_23b6d6b8b8b79b4d(arg0, arg1, arg2, arg3, arg4, arg5) {
2858
+ arg0.vertexAttribIPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4, arg5);
2859
+ }
2860
+ export function __wbg_vertexAttribPointer_36c76a0c7e4f0239(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
2861
+ arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
2862
+ }
2863
+ export function __wbg_vertexAttribPointer_4e5d289c5d224210(arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
2864
+ arg0.vertexAttribPointer(arg1 >>> 0, arg2, arg3 >>> 0, arg4 !== 0, arg5, arg6);
2865
+ }
2866
+ export function __wbg_viewport_a0ca330f9b85397e(arg0, arg1, arg2, arg3, arg4) {
2867
+ arg0.viewport(arg1, arg2, arg3, arg4);
2868
+ }
2869
+ export function __wbg_viewport_b5bd46a0d111c83c(arg0, arg1, arg2, arg3, arg4) {
2870
+ arg0.viewport(arg1, arg2, arg3, arg4);
2871
+ }
2872
+ export function __wbg_warn_88c4a5bd9a322000(arg0, arg1, arg2, arg3) {
2873
+ console.warn(arg0, arg1, arg2, arg3);
2874
+ }
2875
+ export function __wbg_width_08e66520b99071f4(arg0) {
2876
+ const ret = arg0.width;
2877
+ return ret;
2878
+ }
2879
+ export function __wbg_width_a86bcd32bd998060(arg0) {
2880
+ const ret = arg0.width;
2881
+ return ret;
2882
+ }
2883
+ export function __wbg_writeBuffer_b4bdd36178348ca5() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
2884
+ arg0.writeBuffer(arg1, arg2, getArrayU8FromWasm0(arg3, arg4), arg5, arg6);
2885
+ }, arguments); }
2886
+ export function __wbg_writeTexture_b45b69132e46a227() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
2887
+ arg0.writeTexture(arg1, getArrayU8FromWasm0(arg2, arg3), arg4, arg5);
2888
+ }, arguments); }
2889
+ export function __wbindgen_cast_0000000000000001(arg0, arg1) {
2890
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1768, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2891
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_947dc3570e8b2613___convert__closures_____invoke___wasm_bindgen_947dc3570e8b2613___JsValue______true_);
2892
+ return ret;
2893
+ }
2894
+ export function __wbindgen_cast_0000000000000002(arg0, arg1) {
2895
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 3518, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
2896
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_947dc3570e8b2613___convert__closures_____invoke___wasm_bindgen_947dc3570e8b2613___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_947dc3570e8b2613___JsError___true_);
2897
+ return ret;
2898
+ }
2899
+ export function __wbindgen_cast_0000000000000003(arg0, arg1) {
2900
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [F64], shim_idx: 51, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2901
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_947dc3570e8b2613___convert__closures_____invoke___f64______true_);
2902
+ return ret;
2903
+ }
2904
+ export function __wbindgen_cast_0000000000000004(arg0, arg1) {
2905
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 47, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2906
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_947dc3570e8b2613___convert__closures_____invoke___js_sys_13cd74663037d13c___Array______true_);
2907
+ return ret;
2908
+ }
2909
+ export function __wbindgen_cast_0000000000000005(arg0, arg1) {
2910
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 47, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2911
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_947dc3570e8b2613___convert__closures_____invoke___js_sys_13cd74663037d13c___Array______true__4);
2912
+ return ret;
2913
+ }
2914
+ export function __wbindgen_cast_0000000000000006(arg0, arg1) {
2915
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("PointerEvent")], shim_idx: 47, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2916
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_947dc3570e8b2613___convert__closures_____invoke___js_sys_13cd74663037d13c___Array______true__5);
2917
+ return ret;
2918
+ }
2919
+ export function __wbindgen_cast_0000000000000007(arg0, arg1) {
2920
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 53, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2921
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen_947dc3570e8b2613___convert__closures_____invoke_______true_);
2922
+ return ret;
2923
+ }
2924
+ export function __wbindgen_cast_0000000000000008(arg0) {
2925
+ // Cast intrinsic for `F64 -> Externref`.
2926
+ const ret = arg0;
2927
+ return ret;
2928
+ }
2929
+ export function __wbindgen_cast_0000000000000009(arg0) {
2930
+ // Cast intrinsic for `I64 -> Externref`.
2931
+ const ret = arg0;
2932
+ return ret;
2933
+ }
2934
+ export function __wbindgen_cast_000000000000000a(arg0, arg1) {
2935
+ // Cast intrinsic for `Ref(Slice(F32)) -> NamedExternref("Float32Array")`.
2936
+ const ret = getArrayF32FromWasm0(arg0, arg1);
2937
+ return ret;
2938
+ }
2939
+ export function __wbindgen_cast_000000000000000b(arg0, arg1) {
2940
+ // Cast intrinsic for `Ref(Slice(I16)) -> NamedExternref("Int16Array")`.
2941
+ const ret = getArrayI16FromWasm0(arg0, arg1);
2942
+ return ret;
2943
+ }
2944
+ export function __wbindgen_cast_000000000000000c(arg0, arg1) {
2945
+ // Cast intrinsic for `Ref(Slice(I32)) -> NamedExternref("Int32Array")`.
2946
+ const ret = getArrayI32FromWasm0(arg0, arg1);
2947
+ return ret;
2948
+ }
2949
+ export function __wbindgen_cast_000000000000000d(arg0, arg1) {
2950
+ // Cast intrinsic for `Ref(Slice(I8)) -> NamedExternref("Int8Array")`.
2951
+ const ret = getArrayI8FromWasm0(arg0, arg1);
2952
+ return ret;
2953
+ }
2954
+ export function __wbindgen_cast_000000000000000e(arg0, arg1) {
2955
+ // Cast intrinsic for `Ref(Slice(U16)) -> NamedExternref("Uint16Array")`.
2956
+ const ret = getArrayU16FromWasm0(arg0, arg1);
2957
+ return ret;
2958
+ }
2959
+ export function __wbindgen_cast_000000000000000f(arg0, arg1) {
2960
+ // Cast intrinsic for `Ref(Slice(U32)) -> NamedExternref("Uint32Array")`.
2961
+ const ret = getArrayU32FromWasm0(arg0, arg1);
2962
+ return ret;
2963
+ }
2964
+ export function __wbindgen_cast_0000000000000010(arg0, arg1) {
2965
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
2966
+ const ret = getArrayU8FromWasm0(arg0, arg1);
2967
+ return ret;
2968
+ }
2969
+ export function __wbindgen_cast_0000000000000011(arg0, arg1) {
2970
+ // Cast intrinsic for `Ref(String) -> Externref`.
2971
+ const ret = getStringFromWasm0(arg0, arg1);
2972
+ return ret;
2973
+ }
2974
+ export function __wbindgen_cast_0000000000000012(arg0) {
2975
+ // Cast intrinsic for `U64 -> Externref`.
2976
+ const ret = BigInt.asUintN(64, arg0);
2977
+ return ret;
2978
+ }
2979
+ export function __wbindgen_init_externref_table() {
2980
+ const table = wasm.__wbindgen_externrefs;
2981
+ const offset = table.grow(4);
2982
+ table.set(0, undefined);
2983
+ table.set(offset + 0, undefined);
2984
+ table.set(offset + 1, null);
2985
+ table.set(offset + 2, true);
2986
+ table.set(offset + 3, false);
2987
+ }
2988
+ function wasm_bindgen_947dc3570e8b2613___convert__closures_____invoke_______true_(arg0, arg1) {
2989
+ wasm.wasm_bindgen_947dc3570e8b2613___convert__closures_____invoke_______true_(arg0, arg1);
2990
+ }
2991
+
2992
+ function wasm_bindgen_947dc3570e8b2613___convert__closures_____invoke___wasm_bindgen_947dc3570e8b2613___JsValue______true_(arg0, arg1, arg2) {
2993
+ wasm.wasm_bindgen_947dc3570e8b2613___convert__closures_____invoke___wasm_bindgen_947dc3570e8b2613___JsValue______true_(arg0, arg1, arg2);
2994
+ }
2995
+
2996
+ function wasm_bindgen_947dc3570e8b2613___convert__closures_____invoke___js_sys_13cd74663037d13c___Array______true_(arg0, arg1, arg2) {
2997
+ wasm.wasm_bindgen_947dc3570e8b2613___convert__closures_____invoke___js_sys_13cd74663037d13c___Array______true_(arg0, arg1, arg2);
2998
+ }
2999
+
3000
+ function wasm_bindgen_947dc3570e8b2613___convert__closures_____invoke___js_sys_13cd74663037d13c___Array______true__4(arg0, arg1, arg2) {
3001
+ wasm.wasm_bindgen_947dc3570e8b2613___convert__closures_____invoke___js_sys_13cd74663037d13c___Array______true__4(arg0, arg1, arg2);
3002
+ }
3003
+
3004
+ function wasm_bindgen_947dc3570e8b2613___convert__closures_____invoke___js_sys_13cd74663037d13c___Array______true__5(arg0, arg1, arg2) {
3005
+ wasm.wasm_bindgen_947dc3570e8b2613___convert__closures_____invoke___js_sys_13cd74663037d13c___Array______true__5(arg0, arg1, arg2);
3006
+ }
3007
+
3008
+ function wasm_bindgen_947dc3570e8b2613___convert__closures_____invoke___wasm_bindgen_947dc3570e8b2613___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_947dc3570e8b2613___JsError___true_(arg0, arg1, arg2) {
3009
+ const ret = wasm.wasm_bindgen_947dc3570e8b2613___convert__closures_____invoke___wasm_bindgen_947dc3570e8b2613___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_947dc3570e8b2613___JsError___true_(arg0, arg1, arg2);
3010
+ if (ret[1]) {
3011
+ throw takeFromExternrefTable0(ret[0]);
3012
+ }
3013
+ }
3014
+
3015
+ function wasm_bindgen_947dc3570e8b2613___convert__closures_____invoke___js_sys_13cd74663037d13c___Function_fn_wasm_bindgen_947dc3570e8b2613___JsValue_____wasm_bindgen_947dc3570e8b2613___sys__Undefined___js_sys_13cd74663037d13c___Function_fn_wasm_bindgen_947dc3570e8b2613___JsValue_____wasm_bindgen_947dc3570e8b2613___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
3016
+ wasm.wasm_bindgen_947dc3570e8b2613___convert__closures_____invoke___js_sys_13cd74663037d13c___Function_fn_wasm_bindgen_947dc3570e8b2613___JsValue_____wasm_bindgen_947dc3570e8b2613___sys__Undefined___js_sys_13cd74663037d13c___Function_fn_wasm_bindgen_947dc3570e8b2613___JsValue_____wasm_bindgen_947dc3570e8b2613___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
3017
+ }
3018
+
3019
+ function wasm_bindgen_947dc3570e8b2613___convert__closures_____invoke___f64______true_(arg0, arg1, arg2) {
3020
+ wasm.wasm_bindgen_947dc3570e8b2613___convert__closures_____invoke___f64______true_(arg0, arg1, arg2);
3021
+ }
3022
+
3023
+
3024
+ const __wbindgen_enum_GpuAddressMode = ["clamp-to-edge", "repeat", "mirror-repeat"];
3025
+
3026
+
3027
+ const __wbindgen_enum_GpuBlendFactor = ["zero", "one", "src", "one-minus-src", "src-alpha", "one-minus-src-alpha", "dst", "one-minus-dst", "dst-alpha", "one-minus-dst-alpha", "src-alpha-saturated", "constant", "one-minus-constant", "src1", "one-minus-src1", "src1-alpha", "one-minus-src1-alpha"];
3028
+
3029
+
3030
+ const __wbindgen_enum_GpuBlendOperation = ["add", "subtract", "reverse-subtract", "min", "max"];
3031
+
3032
+
3033
+ const __wbindgen_enum_GpuBufferBindingType = ["uniform", "storage", "read-only-storage"];
3034
+
3035
+
3036
+ const __wbindgen_enum_GpuCanvasAlphaMode = ["opaque", "premultiplied"];
3037
+
3038
+
3039
+ const __wbindgen_enum_GpuCompareFunction = ["never", "less", "equal", "less-equal", "greater", "not-equal", "greater-equal", "always"];
3040
+
3041
+
3042
+ const __wbindgen_enum_GpuCullMode = ["none", "front", "back"];
3043
+
3044
+
3045
+ const __wbindgen_enum_GpuFilterMode = ["nearest", "linear"];
3046
+
3047
+
3048
+ const __wbindgen_enum_GpuFrontFace = ["ccw", "cw"];
3049
+
3050
+
3051
+ const __wbindgen_enum_GpuIndexFormat = ["uint16", "uint32"];
3052
+
3053
+
3054
+ const __wbindgen_enum_GpuLoadOp = ["load", "clear"];
3055
+
3056
+
3057
+ const __wbindgen_enum_GpuMipmapFilterMode = ["nearest", "linear"];
3058
+
3059
+
3060
+ const __wbindgen_enum_GpuPowerPreference = ["low-power", "high-performance"];
3061
+
3062
+
3063
+ const __wbindgen_enum_GpuPrimitiveTopology = ["point-list", "line-list", "line-strip", "triangle-list", "triangle-strip"];
3064
+
3065
+
3066
+ const __wbindgen_enum_GpuSamplerBindingType = ["filtering", "non-filtering", "comparison"];
3067
+
3068
+
3069
+ const __wbindgen_enum_GpuStencilOperation = ["keep", "zero", "replace", "invert", "increment-clamp", "decrement-clamp", "increment-wrap", "decrement-wrap"];
3070
+
3071
+
3072
+ const __wbindgen_enum_GpuStorageTextureAccess = ["write-only", "read-only", "read-write"];
3073
+
3074
+
3075
+ const __wbindgen_enum_GpuStoreOp = ["store", "discard"];
3076
+
3077
+
3078
+ const __wbindgen_enum_GpuTextureAspect = ["all", "stencil-only", "depth-only"];
3079
+
3080
+
3081
+ const __wbindgen_enum_GpuTextureDimension = ["1d", "2d", "3d"];
3082
+
3083
+
3084
+ 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", "rgb10a2uint", "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"];
3085
+
3086
+
3087
+ const __wbindgen_enum_GpuTextureSampleType = ["float", "unfilterable-float", "depth", "sint", "uint"];
3088
+
3089
+
3090
+ const __wbindgen_enum_GpuTextureViewDimension = ["1d", "2d", "2d-array", "cube", "cube-array", "3d"];
3091
+
3092
+
3093
+ const __wbindgen_enum_GpuVertexFormat = ["uint8", "uint8x2", "uint8x4", "sint8", "sint8x2", "sint8x4", "unorm8", "unorm8x2", "unorm8x4", "snorm8", "snorm8x2", "snorm8x4", "uint16", "uint16x2", "uint16x4", "sint16", "sint16x2", "sint16x4", "unorm16", "unorm16x2", "unorm16x4", "snorm16", "snorm16x2", "snorm16x4", "float16", "float16x2", "float16x4", "float32", "float32x2", "float32x3", "float32x4", "uint32", "uint32x2", "uint32x3", "uint32x4", "sint32", "sint32x2", "sint32x3", "sint32x4", "unorm10-10-10-2", "unorm8x4-bgra"];
3094
+
3095
+
3096
+ const __wbindgen_enum_GpuVertexStepMode = ["vertex", "instance"];
3097
+ const HandleFinalization = (typeof FinalizationRegistry === 'undefined')
3098
+ ? { register: () => {}, unregister: () => {} }
3099
+ : new FinalizationRegistry(ptr => wasm.__wbg_handle_free(ptr, 1));
3100
+ const ProteusAppFinalization = (typeof FinalizationRegistry === 'undefined')
3101
+ ? { register: () => {}, unregister: () => {} }
3102
+ : new FinalizationRegistry(ptr => wasm.__wbg_proteusapp_free(ptr, 1));
3103
+ const TextureHandleFinalization = (typeof FinalizationRegistry === 'undefined')
3104
+ ? { register: () => {}, unregister: () => {} }
3105
+ : new FinalizationRegistry(ptr => wasm.__wbg_texturehandle_free(ptr, 1));
3106
+ const TransitionChannelFinalization = (typeof FinalizationRegistry === 'undefined')
3107
+ ? { register: () => {}, unregister: () => {} }
3108
+ : new FinalizationRegistry(ptr => wasm.__wbg_transitionchannel_free(ptr, 1));
3109
+ const VideoHandleFinalization = (typeof FinalizationRegistry === 'undefined')
3110
+ ? { register: () => {}, unregister: () => {} }
3111
+ : new FinalizationRegistry(ptr => wasm.__wbg_videohandle_free(ptr, 1));
3112
+
3113
+ function addToExternrefTable0(obj) {
3114
+ const idx = wasm.__externref_table_alloc();
3115
+ wasm.__wbindgen_externrefs.set(idx, obj);
3116
+ return idx;
3117
+ }
3118
+
3119
+ function _assertClass(instance, klass) {
3120
+ if (!(instance instanceof klass)) {
3121
+ throw new Error(`expected instance of ${klass.name}`);
3122
+ }
3123
+ }
3124
+
3125
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
3126
+ ? { register: () => {}, unregister: () => {} }
3127
+ : new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
3128
+
3129
+ function debugString(val) {
3130
+ // primitive types
3131
+ const type = typeof val;
3132
+ if (type == 'number' || type == 'boolean' || val == null) {
3133
+ return `${val}`;
3134
+ }
3135
+ if (type == 'string') {
3136
+ return `"${val}"`;
3137
+ }
3138
+ if (type == 'symbol') {
3139
+ const description = val.description;
3140
+ if (description == null) {
3141
+ return 'Symbol';
3142
+ } else {
3143
+ return `Symbol(${description})`;
3144
+ }
3145
+ }
3146
+ if (type == 'function') {
3147
+ const name = val.name;
3148
+ if (typeof name == 'string' && name.length > 0) {
3149
+ return `Function(${name})`;
3150
+ } else {
3151
+ return 'Function';
3152
+ }
3153
+ }
3154
+ // objects
3155
+ if (Array.isArray(val)) {
3156
+ const length = val.length;
3157
+ let debug = '[';
3158
+ if (length > 0) {
3159
+ debug += debugString(val[0]);
3160
+ }
3161
+ for(let i = 1; i < length; i++) {
3162
+ debug += ', ' + debugString(val[i]);
3163
+ }
3164
+ debug += ']';
3165
+ return debug;
3166
+ }
3167
+ // Test for built-in
3168
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
3169
+ let className;
3170
+ if (builtInMatches && builtInMatches.length > 1) {
3171
+ className = builtInMatches[1];
3172
+ } else {
3173
+ // Failed to match the standard '[object ClassName]'
3174
+ return toString.call(val);
3175
+ }
3176
+ if (className == 'Object') {
3177
+ // we're a user defined class or Object
3178
+ // JSON.stringify avoids problems with cycles, and is generally much
3179
+ // easier than looping through ownProperties of `val`.
3180
+ try {
3181
+ return 'Object(' + JSON.stringify(val) + ')';
3182
+ } catch (_) {
3183
+ return 'Object';
3184
+ }
3185
+ }
3186
+ // errors
3187
+ if (val instanceof Error) {
3188
+ return `${val.name}: ${val.message}\n${val.stack}`;
3189
+ }
3190
+ // TODO we could test for more things here, like `Set`s and `Map`s.
3191
+ return className;
3192
+ }
3193
+
3194
+ function getArrayF32FromWasm0(ptr, len) {
3195
+ ptr = ptr >>> 0;
3196
+ return getFloat32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
3197
+ }
3198
+
3199
+ function getArrayI16FromWasm0(ptr, len) {
3200
+ ptr = ptr >>> 0;
3201
+ return getInt16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
3202
+ }
3203
+
3204
+ function getArrayI32FromWasm0(ptr, len) {
3205
+ ptr = ptr >>> 0;
3206
+ return getInt32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
3207
+ }
3208
+
3209
+ function getArrayI8FromWasm0(ptr, len) {
3210
+ ptr = ptr >>> 0;
3211
+ return getInt8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
3212
+ }
3213
+
3214
+ function getArrayU16FromWasm0(ptr, len) {
3215
+ ptr = ptr >>> 0;
3216
+ return getUint16ArrayMemory0().subarray(ptr / 2, ptr / 2 + len);
3217
+ }
3218
+
3219
+ function getArrayU32FromWasm0(ptr, len) {
3220
+ ptr = ptr >>> 0;
3221
+ return getUint32ArrayMemory0().subarray(ptr / 4, ptr / 4 + len);
3222
+ }
3223
+
3224
+ function getArrayU8FromWasm0(ptr, len) {
3225
+ ptr = ptr >>> 0;
3226
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
3227
+ }
3228
+
3229
+ let cachedDataViewMemory0 = null;
3230
+ function getDataViewMemory0() {
3231
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
3232
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
3233
+ }
3234
+ return cachedDataViewMemory0;
3235
+ }
3236
+
3237
+ let cachedFloat32ArrayMemory0 = null;
3238
+ function getFloat32ArrayMemory0() {
3239
+ if (cachedFloat32ArrayMemory0 === null || cachedFloat32ArrayMemory0.byteLength === 0) {
3240
+ cachedFloat32ArrayMemory0 = new Float32Array(wasm.memory.buffer);
3241
+ }
3242
+ return cachedFloat32ArrayMemory0;
3243
+ }
3244
+
3245
+ let cachedFloat64ArrayMemory0 = null;
3246
+ function getFloat64ArrayMemory0() {
3247
+ if (cachedFloat64ArrayMemory0 === null || cachedFloat64ArrayMemory0.byteLength === 0) {
3248
+ cachedFloat64ArrayMemory0 = new Float64Array(wasm.memory.buffer);
3249
+ }
3250
+ return cachedFloat64ArrayMemory0;
3251
+ }
3252
+
3253
+ let cachedInt16ArrayMemory0 = null;
3254
+ function getInt16ArrayMemory0() {
3255
+ if (cachedInt16ArrayMemory0 === null || cachedInt16ArrayMemory0.byteLength === 0) {
3256
+ cachedInt16ArrayMemory0 = new Int16Array(wasm.memory.buffer);
3257
+ }
3258
+ return cachedInt16ArrayMemory0;
3259
+ }
3260
+
3261
+ let cachedInt32ArrayMemory0 = null;
3262
+ function getInt32ArrayMemory0() {
3263
+ if (cachedInt32ArrayMemory0 === null || cachedInt32ArrayMemory0.byteLength === 0) {
3264
+ cachedInt32ArrayMemory0 = new Int32Array(wasm.memory.buffer);
3265
+ }
3266
+ return cachedInt32ArrayMemory0;
3267
+ }
3268
+
3269
+ let cachedInt8ArrayMemory0 = null;
3270
+ function getInt8ArrayMemory0() {
3271
+ if (cachedInt8ArrayMemory0 === null || cachedInt8ArrayMemory0.byteLength === 0) {
3272
+ cachedInt8ArrayMemory0 = new Int8Array(wasm.memory.buffer);
3273
+ }
3274
+ return cachedInt8ArrayMemory0;
3275
+ }
3276
+
3277
+ function getStringFromWasm0(ptr, len) {
3278
+ return decodeText(ptr >>> 0, len);
3279
+ }
3280
+
3281
+ let cachedUint16ArrayMemory0 = null;
3282
+ function getUint16ArrayMemory0() {
3283
+ if (cachedUint16ArrayMemory0 === null || cachedUint16ArrayMemory0.byteLength === 0) {
3284
+ cachedUint16ArrayMemory0 = new Uint16Array(wasm.memory.buffer);
3285
+ }
3286
+ return cachedUint16ArrayMemory0;
3287
+ }
3288
+
3289
+ let cachedUint32ArrayMemory0 = null;
3290
+ function getUint32ArrayMemory0() {
3291
+ if (cachedUint32ArrayMemory0 === null || cachedUint32ArrayMemory0.byteLength === 0) {
3292
+ cachedUint32ArrayMemory0 = new Uint32Array(wasm.memory.buffer);
3293
+ }
3294
+ return cachedUint32ArrayMemory0;
3295
+ }
3296
+
3297
+ let cachedUint8ArrayMemory0 = null;
3298
+ function getUint8ArrayMemory0() {
3299
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
3300
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
3301
+ }
3302
+ return cachedUint8ArrayMemory0;
3303
+ }
3304
+
3305
+ function handleError(f, args) {
3306
+ try {
3307
+ return f.apply(this, args);
3308
+ } catch (e) {
3309
+ const idx = addToExternrefTable0(e);
3310
+ wasm.__wbindgen_exn_store(idx);
3311
+ }
3312
+ }
3313
+
3314
+ function isLikeNone(x) {
3315
+ return x === undefined || x === null;
3316
+ }
3317
+
3318
+ function makeMutClosure(arg0, arg1, f) {
3319
+ const state = { a: arg0, b: arg1, cnt: 1 };
3320
+ const real = (...args) => {
3321
+
3322
+ // First up with a closure we increment the internal reference
3323
+ // count. This ensures that the Rust closure environment won't
3324
+ // be deallocated while we're invoking it.
3325
+ state.cnt++;
3326
+ const a = state.a;
3327
+ state.a = 0;
3328
+ try {
3329
+ return f(a, state.b, ...args);
3330
+ } finally {
3331
+ state.a = a;
3332
+ real._wbg_cb_unref();
3333
+ }
3334
+ };
3335
+ real._wbg_cb_unref = () => {
3336
+ if (--state.cnt === 0) {
3337
+ wasm.__wbindgen_destroy_closure(state.a, state.b);
3338
+ state.a = 0;
3339
+ CLOSURE_DTORS.unregister(state);
3340
+ }
3341
+ };
3342
+ CLOSURE_DTORS.register(real, state, state);
3343
+ return real;
3344
+ }
3345
+
3346
+ function passArray8ToWasm0(arg, malloc) {
3347
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
3348
+ getUint8ArrayMemory0().set(arg, ptr / 1);
3349
+ WASM_VECTOR_LEN = arg.length;
3350
+ return ptr;
3351
+ }
3352
+
3353
+ function passArrayF64ToWasm0(arg, malloc) {
3354
+ const ptr = malloc(arg.length * 8, 8) >>> 0;
3355
+ getFloat64ArrayMemory0().set(arg, ptr / 8);
3356
+ WASM_VECTOR_LEN = arg.length;
3357
+ return ptr;
3358
+ }
3359
+
3360
+ function passStringToWasm0(arg, malloc, realloc) {
3361
+ if (realloc === undefined) {
3362
+ const buf = cachedTextEncoder.encode(arg);
3363
+ const ptr = malloc(buf.length, 1) >>> 0;
3364
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
3365
+ WASM_VECTOR_LEN = buf.length;
3366
+ return ptr;
3367
+ }
3368
+
3369
+ let len = arg.length;
3370
+ let ptr = malloc(len, 1) >>> 0;
3371
+
3372
+ const mem = getUint8ArrayMemory0();
3373
+
3374
+ let offset = 0;
3375
+
3376
+ for (; offset < len; offset++) {
3377
+ const code = arg.charCodeAt(offset);
3378
+ if (code > 0x7F) break;
3379
+ mem[ptr + offset] = code;
3380
+ }
3381
+ if (offset !== len) {
3382
+ if (offset !== 0) {
3383
+ arg = arg.slice(offset);
3384
+ }
3385
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
3386
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
3387
+ const ret = cachedTextEncoder.encodeInto(arg, view);
3388
+
3389
+ offset += ret.written;
3390
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
3391
+ }
3392
+
3393
+ WASM_VECTOR_LEN = offset;
3394
+ return ptr;
3395
+ }
3396
+
3397
+ function takeFromExternrefTable0(idx) {
3398
+ const value = wasm.__wbindgen_externrefs.get(idx);
3399
+ wasm.__externref_table_dealloc(idx);
3400
+ return value;
3401
+ }
3402
+
3403
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
3404
+ cachedTextDecoder.decode();
3405
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
3406
+ let numBytesDecoded = 0;
3407
+ function decodeText(ptr, len) {
3408
+ numBytesDecoded += len;
3409
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
3410
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
3411
+ cachedTextDecoder.decode();
3412
+ numBytesDecoded = len;
3413
+ }
3414
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
3415
+ }
3416
+
3417
+ const cachedTextEncoder = new TextEncoder();
3418
+
3419
+ if (!('encodeInto' in cachedTextEncoder)) {
3420
+ cachedTextEncoder.encodeInto = function (arg, view) {
3421
+ const buf = cachedTextEncoder.encode(arg);
3422
+ view.set(buf);
3423
+ return {
3424
+ read: arg.length,
3425
+ written: buf.length
3426
+ };
3427
+ };
3428
+ }
3429
+
3430
+ let WASM_VECTOR_LEN = 0;
3431
+
3432
+
3433
+ let wasm;
3434
+ export function __wbg_set_wasm(val) {
3435
+ wasm = val;
3436
+ }