@scalable-vector-audio/sva-wasm 0.7.15 → 0.7.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@scalable-vector-audio/sva-wasm",
3
3
  "type": "module",
4
4
  "description": "JS bindings: a composition a page fills node by node, rendered in the browser",
5
- "version": "0.7.15",
5
+ "version": "0.7.17",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
package/sva_wasm.d.ts CHANGED
@@ -4,7 +4,6 @@
4
4
  export class Composition {
5
5
  free(): void;
6
6
  [Symbol.dispose](): void;
7
- clear_cache(): void;
8
7
  /**
9
8
  * Memory's disk traffic since it opened.
10
9
  */
@@ -13,26 +12,21 @@ export class Composition {
13
12
  constructor(name?: string | null);
14
13
  /**
15
14
  * Memory over the store in `dir`, an origin-private file system directory; alone where
16
- * none opens.
15
+ * none opens. `options.store_max_bytes`: the store's budget, evicting the least recently
16
+ * used past it at each persist.
17
17
  */
18
- static open(name?: string | null, dir?: FileSystemDirectoryHandle | null): Promise<Composition>;
18
+ static open(name: string | null | undefined, dir: FileSystemDirectoryHandle | null | undefined, options: any): Promise<Composition>;
19
19
  /**
20
20
  * The only commit to the directory `open` was handed.
21
21
  */
22
22
  persist(): Promise<number>;
23
- /**
24
- * `"oldest"` evicts what the latest render neither stored nor read, `"forks"` every value
25
- * fewer than two nodes read.
26
- */
27
- prune(policy: string): void;
28
23
  /**
29
24
  * `target` as `sva-cli render` takes it, `@piano([0, 2b], f0=C4)`; `representations`
30
25
  * what `representations()` answers, each a call as `--representation` writes it.
31
- * `options`: `rate`, `bits`, `flop_budget`, `until`, `volatile`, and `out: null`, which
32
- * hands back no samples and reads only `representations`, `samples` otherwise.
26
+ * `options`: `rate`, `bits`, `flop_budget`, `until`, `volatile`, `out: null` (no samples),
27
+ * and `signal`: aborted, it throws an `AbortError` before its next block.
33
28
  */
34
29
  render(target: string, representations: string[] | null | undefined, options: any): Promise<Rendering>;
35
- set_cache_policy(policy: string): void;
36
30
  /**
37
31
  * `target` block by block. `options`: `rate`, `bits`, `until`, `live`, `channels`.
38
32
  */
@@ -41,7 +35,11 @@ export class Composition {
41
35
  readonly cache_entries: number;
42
36
  readonly cache_evictions: number;
43
37
  cache_max_bytes: number;
44
- readonly cache_policy: string;
38
+ /**
39
+ * What the store holds by its index; undefined without one.
40
+ */
41
+ readonly store_bytes: number | undefined;
42
+ readonly store_max_bytes: number | undefined;
45
43
  }
46
44
 
47
45
  export class Rendering {
@@ -62,8 +60,6 @@ export class Rendering {
62
60
  readonly channels: number;
63
61
  readonly duration_secs: number;
64
62
  readonly sample_rate: number;
65
- readonly start_secs: number;
66
- readonly target: string;
67
63
  }
68
64
 
69
65
  /**
@@ -125,13 +121,6 @@ export class Stream {
125
121
  readonly sample_rate: number;
126
122
  }
127
123
 
128
- export function builtins(): any;
129
-
130
- /**
131
- * `sva-cli outline`'s `data`.
132
- */
133
- export function outline(text: string): any;
134
-
135
124
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
136
125
 
137
126
  export interface InitOutput {
@@ -139,32 +128,26 @@ export interface InitOutput {
139
128
  readonly __wbg_composition_free: (a: number, b: number) => void;
140
129
  readonly __wbg_rendering_free: (a: number, b: number) => void;
141
130
  readonly __wbg_stream_free: (a: number, b: number) => void;
142
- readonly builtins: () => [number, number, number];
143
131
  readonly composition_cache_bytes: (a: number) => number;
144
132
  readonly composition_cache_entries: (a: number) => number;
145
133
  readonly composition_cache_evictions: (a: number) => number;
146
134
  readonly composition_cache_max_bytes: (a: number) => number;
147
- readonly composition_cache_policy: (a: number) => [number, number];
148
- readonly composition_clear_cache: (a: number) => void;
149
135
  readonly composition_counters: (a: number) => [number, number, number];
150
136
  readonly composition_insert: (a: number, b: number, c: number, d: number, e: number) => void;
151
137
  readonly composition_new: (a: number, b: number) => number;
152
- readonly composition_open: (a: number, b: number, c: number) => any;
138
+ readonly composition_open: (a: number, b: number, c: number, d: any) => any;
153
139
  readonly composition_persist: (a: number) => any;
154
- readonly composition_prune: (a: number, b: number, c: number) => [number, number];
155
140
  readonly composition_render: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
156
141
  readonly composition_set_cache_max_bytes: (a: number, b: number) => void;
157
- readonly composition_set_cache_policy: (a: number, b: number, c: number) => [number, number];
142
+ readonly composition_store_bytes: (a: number) => [number, number];
143
+ readonly composition_store_max_bytes: (a: number) => [number, number];
158
144
  readonly composition_stream: (a: number, b: number, c: number, d: number, e: any) => any;
159
- readonly outline: (a: number, b: number) => [number, number, number];
160
145
  readonly rendering_channels: (a: number) => number;
161
146
  readonly rendering_duration_secs: (a: number) => number;
162
147
  readonly rendering_representations: (a: number) => [number, number, number];
163
148
  readonly rendering_sample_rate: (a: number) => number;
164
149
  readonly rendering_samples: (a: number, b: number) => [number, number, number, number];
165
- readonly rendering_start_secs: (a: number) => number;
166
150
  readonly rendering_stats: (a: number) => [number, number, number];
167
- readonly rendering_target: (a: number) => [number, number];
168
151
  readonly rendering_work: (a: number) => [number, number, number];
169
152
  readonly stream_add: (a: number, b: number, c: number, d: number) => any;
170
153
  readonly stream_block: (a: number) => number;
@@ -184,7 +167,8 @@ export interface InitOutput {
184
167
  readonly stream_work: (a: number) => [number, number, number];
185
168
  readonly wasm_bindgen__convert__closures_____invoke__h76bd71bceeca2b95: (a: number, b: number, c: any, d: any) => void;
186
169
  readonly wasm_bindgen__convert__closures_____invoke__hd55bb211d6a08150: (a: number, b: number, c: any) => [number, number];
187
- readonly wasm_bindgen__convert__closures_____invoke__hae1c90f0165579bf: (a: number, b: number) => any;
170
+ readonly wasm_bindgen__convert__closures_____invoke__h1062795fe301d990: (a: number, b: number) => any;
171
+ readonly wasm_bindgen__convert__closures_____invoke__hbede0e398393d6b3: (a: number, b: number) => void;
188
172
  readonly __wbindgen_malloc: (a: number, b: number) => number;
189
173
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
190
174
  readonly __wbindgen_exn_store: (a: number) => void;
package/sva_wasm.js CHANGED
@@ -45,24 +45,6 @@ export class Composition {
45
45
  const ret = wasm.composition_cache_max_bytes(this.__wbg_ptr);
46
46
  return ret;
47
47
  }
48
- /**
49
- * @returns {string}
50
- */
51
- get cache_policy() {
52
- let deferred1_0;
53
- let deferred1_1;
54
- try {
55
- const ret = wasm.composition_cache_policy(this.__wbg_ptr);
56
- deferred1_0 = ret[0];
57
- deferred1_1 = ret[1];
58
- return getStringFromWasm0(ret[0], ret[1]);
59
- } finally {
60
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
61
- }
62
- }
63
- clear_cache() {
64
- wasm.composition_clear_cache(this.__wbg_ptr);
65
- }
66
48
  /**
67
49
  * Memory's disk traffic since it opened.
68
50
  * @returns {any}
@@ -98,15 +80,17 @@ export class Composition {
98
80
  }
99
81
  /**
100
82
  * Memory over the store in `dir`, an origin-private file system directory; alone where
101
- * none opens.
102
- * @param {string | null} [name]
103
- * @param {FileSystemDirectoryHandle | null} [dir]
83
+ * none opens. `options.store_max_bytes`: the store's budget, evicting the least recently
84
+ * used past it at each persist.
85
+ * @param {string | null | undefined} name
86
+ * @param {FileSystemDirectoryHandle | null | undefined} dir
87
+ * @param {any} options
104
88
  * @returns {Promise<Composition>}
105
89
  */
106
- static open(name, dir) {
90
+ static open(name, dir, options) {
107
91
  var ptr0 = isLikeNone(name) ? 0 : passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
108
92
  var len0 = WASM_VECTOR_LEN;
109
- const ret = wasm.composition_open(ptr0, len0, isLikeNone(dir) ? 0 : addToExternrefTable0(dir));
93
+ const ret = wasm.composition_open(ptr0, len0, isLikeNone(dir) ? 0 : addToExternrefTable0(dir), options);
110
94
  return ret;
111
95
  }
112
96
  /**
@@ -117,24 +101,11 @@ export class Composition {
117
101
  const ret = wasm.composition_persist(this.__wbg_ptr);
118
102
  return ret;
119
103
  }
120
- /**
121
- * `"oldest"` evicts what the latest render neither stored nor read, `"forks"` every value
122
- * fewer than two nodes read.
123
- * @param {string} policy
124
- */
125
- prune(policy) {
126
- const ptr0 = passStringToWasm0(policy, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
127
- const len0 = WASM_VECTOR_LEN;
128
- const ret = wasm.composition_prune(this.__wbg_ptr, ptr0, len0);
129
- if (ret[1]) {
130
- throw takeFromExternrefTable0(ret[0]);
131
- }
132
- }
133
104
  /**
134
105
  * `target` as `sva-cli render` takes it, `@piano([0, 2b], f0=C4)`; `representations`
135
106
  * what `representations()` answers, each a call as `--representation` writes it.
136
- * `options`: `rate`, `bits`, `flop_budget`, `until`, `volatile`, and `out: null`, which
137
- * hands back no samples and reads only `representations`, `samples` otherwise.
107
+ * `options`: `rate`, `bits`, `flop_budget`, `until`, `volatile`, `out: null` (no samples),
108
+ * and `signal`: aborted, it throws an `AbortError` before its next block.
138
109
  * @param {string} target
139
110
  * @param {string[] | null | undefined} representations
140
111
  * @param {any} options
@@ -155,15 +126,19 @@ export class Composition {
155
126
  wasm.composition_set_cache_max_bytes(this.__wbg_ptr, max_bytes);
156
127
  }
157
128
  /**
158
- * @param {string} policy
129
+ * What the store holds by its index; undefined without one.
130
+ * @returns {number | undefined}
159
131
  */
160
- set_cache_policy(policy) {
161
- const ptr0 = passStringToWasm0(policy, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
162
- const len0 = WASM_VECTOR_LEN;
163
- const ret = wasm.composition_set_cache_policy(this.__wbg_ptr, ptr0, len0);
164
- if (ret[1]) {
165
- throw takeFromExternrefTable0(ret[0]);
166
- }
132
+ get store_bytes() {
133
+ const ret = wasm.composition_store_bytes(this.__wbg_ptr);
134
+ return ret[0] === 0 ? undefined : ret[1];
135
+ }
136
+ /**
137
+ * @returns {number | undefined}
138
+ */
139
+ get store_max_bytes() {
140
+ const ret = wasm.composition_store_max_bytes(this.__wbg_ptr);
141
+ return ret[0] === 0 ? undefined : ret[1];
167
142
  }
168
143
  /**
169
144
  * `target` block by block. `options`: `rate`, `bits`, `until`, `live`, `channels`.
@@ -244,13 +219,6 @@ export class Rendering {
244
219
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
245
220
  return v1;
246
221
  }
247
- /**
248
- * @returns {number}
249
- */
250
- get start_secs() {
251
- const ret = wasm.rendering_start_secs(this.__wbg_ptr);
252
- return ret;
253
- }
254
222
  /**
255
223
  * Every lookup this render made of memory, and what each came to.
256
224
  * @returns {any}
@@ -262,21 +230,6 @@ export class Rendering {
262
230
  }
263
231
  return takeFromExternrefTable0(ret[0]);
264
232
  }
265
- /**
266
- * @returns {string}
267
- */
268
- get target() {
269
- let deferred1_0;
270
- let deferred1_1;
271
- try {
272
- const ret = wasm.rendering_target(this.__wbg_ptr);
273
- deferred1_0 = ret[0];
274
- deferred1_1 = ret[1];
275
- return getStringFromWasm0(ret[0], ret[1]);
276
- } finally {
277
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
278
- }
279
- }
280
233
  /**
281
234
  * @returns {any}
282
235
  */
@@ -470,32 +423,6 @@ export class Stream {
470
423
  }
471
424
  }
472
425
  if (Symbol.dispose) Stream.prototype[Symbol.dispose] = Stream.prototype.free;
473
-
474
- /**
475
- * @returns {any}
476
- */
477
- export function builtins() {
478
- const ret = wasm.builtins();
479
- if (ret[2]) {
480
- throw takeFromExternrefTable0(ret[1]);
481
- }
482
- return takeFromExternrefTable0(ret[0]);
483
- }
484
-
485
- /**
486
- * `sva-cli outline`'s `data`.
487
- * @param {string} text
488
- * @returns {any}
489
- */
490
- export function outline(text) {
491
- const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
492
- const len0 = WASM_VECTOR_LEN;
493
- const ret = wasm.outline(ptr0, len0);
494
- if (ret[2]) {
495
- throw takeFromExternrefTable0(ret[1]);
496
- }
497
- return takeFromExternrefTable0(ret[0]);
498
- }
499
426
  function __wbg_get_imports() {
500
427
  const import0 = {
501
428
  __proto__: null,
@@ -547,7 +474,7 @@ function __wbg_get_imports() {
547
474
  __wbg__wbg_cb_unref_997e73d32238e655: function(arg0) {
548
475
  arg0._wbg_cb_unref();
549
476
  },
550
- __wbg_arrayBuffer_dddd78d3f125636c: function(arg0) {
477
+ __wbg_arrayBuffer_aee79a7e4c083916: function(arg0) {
551
478
  const ret = arg0.arrayBuffer();
552
479
  return ret;
553
480
  },
@@ -559,7 +486,10 @@ function __wbg_get_imports() {
559
486
  const ret = arg0.call(arg1, arg2);
560
487
  return ret;
561
488
  }, arguments); },
562
- __wbg_close_c8cdf14135ecbe64: function(arg0) {
489
+ __wbg_close_0276e6736b8de9fc: function(arg0) {
490
+ arg0.close();
491
+ },
492
+ __wbg_close_b4e1d1eea836f6b3: function(arg0) {
563
493
  const ret = arg0.close();
564
494
  return ret;
565
495
  },
@@ -567,7 +497,7 @@ function __wbg_get_imports() {
567
497
  const ret = Composition.__wrap(arg0);
568
498
  return ret;
569
499
  },
570
- __wbg_createWritable_886c06fdcd86bba8: function(arg0) {
500
+ __wbg_createWritable_de23a6580cf0f161: function(arg0) {
571
501
  const ret = arg0.createWritable();
572
502
  return ret;
573
503
  },
@@ -579,15 +509,15 @@ function __wbg_get_imports() {
579
509
  const ret = Array.from(arg0);
580
510
  return ret;
581
511
  },
582
- __wbg_getDirectoryHandle_4ef581ef00dfe9b0: function(arg0, arg1, arg2, arg3) {
512
+ __wbg_getDirectoryHandle_7b7856156af7f412: function(arg0, arg1, arg2, arg3) {
583
513
  const ret = arg0.getDirectoryHandle(getStringFromWasm0(arg1, arg2), arg3);
584
514
  return ret;
585
515
  },
586
- __wbg_getFileHandle_ee2d0c3394c47309: function(arg0, arg1, arg2, arg3) {
516
+ __wbg_getFileHandle_913ab4c71e72b357: function(arg0, arg1, arg2, arg3) {
587
517
  const ret = arg0.getFileHandle(getStringFromWasm0(arg1, arg2), arg3);
588
518
  return ret;
589
519
  },
590
- __wbg_getFile_0e64311cc4eea97c: function(arg0) {
520
+ __wbg_getFile_47feca69a581859d: function(arg0) {
591
521
  const ret = arg0.getFile();
592
522
  return ret;
593
523
  },
@@ -603,6 +533,10 @@ function __wbg_get_imports() {
603
533
  const ret = arg0[arg1 >>> 0];
604
534
  return ret;
605
535
  },
536
+ __wbg_has_464f8b9416279d65: function() { return handleError(function (arg0, arg1) {
537
+ const ret = Reflect.has(arg0, arg1);
538
+ return ret;
539
+ }, arguments); },
606
540
  __wbg_instanceof_Object_87732cb922ac2e2c: function(arg0) {
607
541
  let result;
608
542
  try {
@@ -617,7 +551,7 @@ function __wbg_get_imports() {
617
551
  const ret = Array.isArray(arg0);
618
552
  return ret;
619
553
  },
620
- __wbg_keys_efed97ec9bd22abf: function(arg0) {
554
+ __wbg_keys_fa9702247bb94c8d: function(arg0) {
621
555
  const ret = arg0.keys();
622
556
  return ret;
623
557
  },
@@ -633,11 +567,11 @@ function __wbg_get_imports() {
633
567
  const ret = arg0.length;
634
568
  return ret;
635
569
  },
636
- __wbg_move_7056e5157c8167dd: function(arg0, arg1, arg2, arg3) {
570
+ __wbg_move_4368060dbbac8f79: function(arg0, arg1, arg2, arg3) {
637
571
  const ret = arg0.move(arg1, getStringFromWasm0(arg2, arg3));
638
572
  return ret;
639
573
  },
640
- __wbg_name_1779f66ba00d323c: function(arg0, arg1) {
574
+ __wbg_name_6e3b27c3164344b3: function(arg0, arg1) {
641
575
  const ret = arg1.name;
642
576
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
643
577
  const len1 = WASM_VECTOR_LEN;
@@ -666,11 +600,15 @@ function __wbg_get_imports() {
666
600
  state0.a = 0;
667
601
  }
668
602
  },
603
+ __wbg_new_b79fc0655b45592e: function() {
604
+ const ret = new MessageChannel();
605
+ return ret;
606
+ },
669
607
  __wbg_new_bebc3f4757acf305: function() {
670
608
  const ret = new Object();
671
609
  return ret;
672
610
  },
673
- __wbg_new_cae168624bd9863d: function(arg0, arg1) {
611
+ __wbg_new_c2eb977e53a29c48: function(arg0, arg1) {
674
612
  const ret = new Error(getStringFromWasm0(arg0, arg1));
675
613
  return ret;
676
614
  },
@@ -696,18 +634,29 @@ function __wbg_get_imports() {
696
634
  state0.a = 0;
697
635
  }
698
636
  },
699
- __wbg_next_0a30e1b8b7de73fe: function(arg0) {
637
+ __wbg_next_5a5f14990a7208e2: function(arg0) {
700
638
  const ret = arg0.next();
701
639
  return ret;
702
640
  },
703
- __wbg_parse_33fb6a2719d03d8c: function() { return handleError(function (arg0, arg1) {
641
+ __wbg_parse_4286f8cdb77cf060: function() { return handleError(function (arg0, arg1) {
704
642
  const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
705
643
  return ret;
706
644
  }, arguments); },
645
+ __wbg_port1_a117b59e412fbaa4: function(arg0) {
646
+ const ret = arg0.port1;
647
+ return ret;
648
+ },
649
+ __wbg_port2_9bba22be5e950b1d: function(arg0) {
650
+ const ret = arg0.port2;
651
+ return ret;
652
+ },
653
+ __wbg_postMessage_cafa3d00fd9e9fc1: function(arg0, arg1) {
654
+ arg0.postMessage(arg1);
655
+ },
707
656
  __wbg_prototypesetcall_ae9f5e7459250748: function(arg0, arg1, arg2) {
708
657
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
709
658
  },
710
- __wbg_query_6e56c4da766b00be: function(arg0) {
659
+ __wbg_query_849cea17323edec1: function(arg0) {
711
660
  const ret = arg0.query();
712
661
  return ret;
713
662
  },
@@ -722,11 +671,11 @@ function __wbg_get_imports() {
722
671
  const ret = Math.random();
723
672
  return ret;
724
673
  },
725
- __wbg_removeEntry_07615b2e3b9eb4a2: function(arg0, arg1, arg2, arg3) {
674
+ __wbg_removeEntry_44857394cb030fd3: function(arg0, arg1, arg2, arg3) {
726
675
  const ret = arg0.removeEntry(getStringFromWasm0(arg1, arg2), arg3);
727
676
  return ret;
728
677
  },
729
- __wbg_removeEntry_5cbb5ebc99342f15: function(arg0, arg1, arg2) {
678
+ __wbg_removeEntry_bb7f3ea699997afe: function(arg0, arg1, arg2) {
730
679
  const ret = arg0.removeEntry(getStringFromWasm0(arg1, arg2));
731
680
  return ret;
732
681
  },
@@ -734,7 +683,7 @@ function __wbg_get_imports() {
734
683
  const ret = Rendering.__wrap(arg0);
735
684
  return ret;
736
685
  },
737
- __wbg_request_409737bb63baedc3: function(arg0, arg1, arg2, arg3) {
686
+ __wbg_request_8d27e71f5495a909: function(arg0, arg1, arg2, arg3) {
738
687
  const ret = arg0.request(getStringFromWasm0(arg1, arg2), arg3);
739
688
  return ret;
740
689
  },
@@ -749,17 +698,20 @@ function __wbg_get_imports() {
749
698
  __wbg_set_c41f8dbc07a2190f: function(arg0, arg1, arg2) {
750
699
  arg0.set(getArrayF32FromWasm0(arg1, arg2));
751
700
  },
752
- __wbg_set_name_7443d8ccc62a9b4e: function(arg0, arg1, arg2) {
701
+ __wbg_set_name_998b1fcef43918ef: function(arg0, arg1, arg2) {
753
702
  arg0.name = getStringFromWasm0(arg1, arg2);
754
703
  },
755
- __wbg_set_refusal_93f6111b01c170fb: function(arg0, arg1) {
704
+ __wbg_set_onmessage_c46f76c2c7c34e14: function(arg0, arg1) {
705
+ arg0.onmessage = arg1;
706
+ },
707
+ __wbg_set_refusal_53c78c89a5b2699e: function(arg0, arg1) {
756
708
  arg0.refusal = arg1;
757
709
  },
758
- __wbg_size_9c4a8a94d2d167b4: function(arg0) {
710
+ __wbg_size_eafd0197fc63f502: function(arg0) {
759
711
  const ret = arg0.size;
760
712
  return ret;
761
713
  },
762
- __wbg_slice_9b131d4be34656eb: function(arg0, arg1, arg2) {
714
+ __wbg_slice_e60ed814756b8084: function(arg0, arg1, arg2) {
763
715
  const ret = arg0.slice(arg1, arg2);
764
716
  return ret;
765
717
  },
@@ -795,29 +747,34 @@ function __wbg_get_imports() {
795
747
  const ret = arg0.then(arg1);
796
748
  return ret;
797
749
  },
798
- __wbg_warn_41eafed86f74d24a: function(arg0, arg1) {
750
+ __wbg_warn_9dab3ba796960096: function(arg0, arg1) {
799
751
  console.warn(getStringFromWasm0(arg0, arg1));
800
752
  },
801
- __wbg_write_452f5e0cbe89aca1: function(arg0, arg1) {
753
+ __wbg_write_12bbc325c77b3fd2: function(arg0, arg1) {
802
754
  const ret = arg0.write(arg1);
803
755
  return ret;
804
756
  },
805
757
  __wbindgen_generic_0000000000000001: function(arg0, arg1) {
806
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 545, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
758
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 743, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
807
759
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hd55bb211d6a08150);
808
760
  return ret;
809
761
  },
810
762
  __wbindgen_generic_0000000000000002: function(arg0, arg1) {
811
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 92, ret: NamedExternref("Promise<any>"), inner_ret: Some(NamedExternref("Promise<any>")) }, mutable: true }) -> Externref`.
812
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hae1c90f0165579bf);
763
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 105, ret: NamedExternref("Promise<any>"), inner_ret: Some(NamedExternref("Promise<any>")) }, mutable: true }) -> Externref`.
764
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h1062795fe301d990);
813
765
  return ret;
814
766
  },
815
- __wbindgen_generic_0000000000000003: function(arg0) {
767
+ __wbindgen_generic_0000000000000003: function(arg0, arg1) {
768
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 107, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
769
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hbede0e398393d6b3);
770
+ return ret;
771
+ },
772
+ __wbindgen_generic_0000000000000004: function(arg0) {
816
773
  // Cast intrinsic for `F64 -> Externref`.
817
774
  const ret = arg0;
818
775
  return ret;
819
776
  },
820
- __wbindgen_generic_0000000000000004: function(arg0, arg1) {
777
+ __wbindgen_generic_0000000000000005: function(arg0, arg1) {
821
778
  // Cast intrinsic for `Ref(String) -> Externref`.
822
779
  const ret = getStringFromWasm0(arg0, arg1);
823
780
  return ret;
@@ -838,8 +795,12 @@ function __wbg_get_imports() {
838
795
  };
839
796
  }
840
797
 
841
- function wasm_bindgen__convert__closures_____invoke__hae1c90f0165579bf(arg0, arg1) {
842
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__hae1c90f0165579bf(arg0, arg1);
798
+ function wasm_bindgen__convert__closures_____invoke__hbede0e398393d6b3(arg0, arg1) {
799
+ wasm.wasm_bindgen__convert__closures_____invoke__hbede0e398393d6b3(arg0, arg1);
800
+ }
801
+
802
+ function wasm_bindgen__convert__closures_____invoke__h1062795fe301d990(arg0, arg1) {
803
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h1062795fe301d990(arg0, arg1);
843
804
  return ret;
844
805
  }
845
806
 
package/sva_wasm_bg.wasm CHANGED
Binary file