@formata/stof 0.9.6

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,1074 @@
1
+ let wasm;
2
+
3
+ function addToExternrefTable0(obj) {
4
+ const idx = wasm.__externref_table_alloc();
5
+ wasm.__wbindgen_externrefs.set(idx, obj);
6
+ return idx;
7
+ }
8
+
9
+ function _assertClass(instance, klass) {
10
+ if (!(instance instanceof klass)) {
11
+ throw new Error(`expected instance of ${klass.name}`);
12
+ }
13
+ }
14
+
15
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
16
+ ? { register: () => {}, unregister: () => {} }
17
+ : new FinalizationRegistry(state => state.dtor(state.a, state.b));
18
+
19
+ function debugString(val) {
20
+ // primitive types
21
+ const type = typeof val;
22
+ if (type == 'number' || type == 'boolean' || val == null) {
23
+ return `${val}`;
24
+ }
25
+ if (type == 'string') {
26
+ return `"${val}"`;
27
+ }
28
+ if (type == 'symbol') {
29
+ const description = val.description;
30
+ if (description == null) {
31
+ return 'Symbol';
32
+ } else {
33
+ return `Symbol(${description})`;
34
+ }
35
+ }
36
+ if (type == 'function') {
37
+ const name = val.name;
38
+ if (typeof name == 'string' && name.length > 0) {
39
+ return `Function(${name})`;
40
+ } else {
41
+ return 'Function';
42
+ }
43
+ }
44
+ // objects
45
+ if (Array.isArray(val)) {
46
+ const length = val.length;
47
+ let debug = '[';
48
+ if (length > 0) {
49
+ debug += debugString(val[0]);
50
+ }
51
+ for(let i = 1; i < length; i++) {
52
+ debug += ', ' + debugString(val[i]);
53
+ }
54
+ debug += ']';
55
+ return debug;
56
+ }
57
+ // Test for built-in
58
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
59
+ let className;
60
+ if (builtInMatches && builtInMatches.length > 1) {
61
+ className = builtInMatches[1];
62
+ } else {
63
+ // Failed to match the standard '[object ClassName]'
64
+ return toString.call(val);
65
+ }
66
+ if (className == 'Object') {
67
+ // we're a user defined class or Object
68
+ // JSON.stringify avoids problems with cycles, and is generally much
69
+ // easier than looping through ownProperties of `val`.
70
+ try {
71
+ return 'Object(' + JSON.stringify(val) + ')';
72
+ } catch (_) {
73
+ return 'Object';
74
+ }
75
+ }
76
+ // errors
77
+ if (val instanceof Error) {
78
+ return `${val.name}: ${val.message}\n${val.stack}`;
79
+ }
80
+ // TODO we could test for more things here, like `Set`s and `Map`s.
81
+ return className;
82
+ }
83
+
84
+ function getArrayU8FromWasm0(ptr, len) {
85
+ ptr = ptr >>> 0;
86
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
87
+ }
88
+
89
+ let cachedDataViewMemory0 = null;
90
+ function getDataViewMemory0() {
91
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
92
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
93
+ }
94
+ return cachedDataViewMemory0;
95
+ }
96
+
97
+ function getStringFromWasm0(ptr, len) {
98
+ ptr = ptr >>> 0;
99
+ return decodeText(ptr, len);
100
+ }
101
+
102
+ let cachedUint8ArrayMemory0 = null;
103
+ function getUint8ArrayMemory0() {
104
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
105
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
106
+ }
107
+ return cachedUint8ArrayMemory0;
108
+ }
109
+
110
+ function handleError(f, args) {
111
+ try {
112
+ return f.apply(this, args);
113
+ } catch (e) {
114
+ const idx = addToExternrefTable0(e);
115
+ wasm.__wbindgen_exn_store(idx);
116
+ }
117
+ }
118
+
119
+ function isLikeNone(x) {
120
+ return x === undefined || x === null;
121
+ }
122
+
123
+ function makeMutClosure(arg0, arg1, dtor, f) {
124
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
125
+ const real = (...args) => {
126
+
127
+ // First up with a closure we increment the internal reference
128
+ // count. This ensures that the Rust closure environment won't
129
+ // be deallocated while we're invoking it.
130
+ state.cnt++;
131
+ const a = state.a;
132
+ state.a = 0;
133
+ try {
134
+ return f(a, state.b, ...args);
135
+ } finally {
136
+ state.a = a;
137
+ real._wbg_cb_unref();
138
+ }
139
+ };
140
+ real._wbg_cb_unref = () => {
141
+ if (--state.cnt === 0) {
142
+ state.dtor(state.a, state.b);
143
+ state.a = 0;
144
+ CLOSURE_DTORS.unregister(state);
145
+ }
146
+ };
147
+ CLOSURE_DTORS.register(real, state, state);
148
+ return real;
149
+ }
150
+
151
+ function passStringToWasm0(arg, malloc, realloc) {
152
+ if (realloc === undefined) {
153
+ const buf = cachedTextEncoder.encode(arg);
154
+ const ptr = malloc(buf.length, 1) >>> 0;
155
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
156
+ WASM_VECTOR_LEN = buf.length;
157
+ return ptr;
158
+ }
159
+
160
+ let len = arg.length;
161
+ let ptr = malloc(len, 1) >>> 0;
162
+
163
+ const mem = getUint8ArrayMemory0();
164
+
165
+ let offset = 0;
166
+
167
+ for (; offset < len; offset++) {
168
+ const code = arg.charCodeAt(offset);
169
+ if (code > 0x7F) break;
170
+ mem[ptr + offset] = code;
171
+ }
172
+ if (offset !== len) {
173
+ if (offset !== 0) {
174
+ arg = arg.slice(offset);
175
+ }
176
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
177
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
178
+ const ret = cachedTextEncoder.encodeInto(arg, view);
179
+
180
+ offset += ret.written;
181
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
182
+ }
183
+
184
+ WASM_VECTOR_LEN = offset;
185
+ return ptr;
186
+ }
187
+
188
+ function takeFromExternrefTable0(idx) {
189
+ const value = wasm.__wbindgen_externrefs.get(idx);
190
+ wasm.__externref_table_dealloc(idx);
191
+ return value;
192
+ }
193
+
194
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
195
+ cachedTextDecoder.decode();
196
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
197
+ let numBytesDecoded = 0;
198
+ function decodeText(ptr, len) {
199
+ numBytesDecoded += len;
200
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
201
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
202
+ cachedTextDecoder.decode();
203
+ numBytesDecoded = len;
204
+ }
205
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
206
+ }
207
+
208
+ const cachedTextEncoder = new TextEncoder();
209
+
210
+ if (!('encodeInto' in cachedTextEncoder)) {
211
+ cachedTextEncoder.encodeInto = function (arg, view) {
212
+ const buf = cachedTextEncoder.encode(arg);
213
+ view.set(buf);
214
+ return {
215
+ read: arg.length,
216
+ written: buf.length
217
+ };
218
+ }
219
+ }
220
+
221
+ let WASM_VECTOR_LEN = 0;
222
+
223
+ function wasm_bindgen__convert__closures_____invoke__h53d5cf04cab8438f(arg0, arg1, arg2) {
224
+ wasm.wasm_bindgen__convert__closures_____invoke__h53d5cf04cab8438f(arg0, arg1, arg2);
225
+ }
226
+
227
+ function wasm_bindgen__convert__closures_____invoke__ha84735728bfe97a9(arg0, arg1, arg2, arg3) {
228
+ wasm.wasm_bindgen__convert__closures_____invoke__ha84735728bfe97a9(arg0, arg1, arg2, arg3);
229
+ }
230
+
231
+ const StofFinalization = (typeof FinalizationRegistry === 'undefined')
232
+ ? { register: () => {}, unregister: () => {} }
233
+ : new FinalizationRegistry(ptr => wasm.__wbg_stof_free(ptr >>> 0, 1));
234
+
235
+ const StofFuncFinalization = (typeof FinalizationRegistry === 'undefined')
236
+ ? { register: () => {}, unregister: () => {} }
237
+ : new FinalizationRegistry(ptr => wasm.__wbg_stoffunc_free(ptr >>> 0, 1));
238
+
239
+ /**
240
+ * Stof Document.
241
+ * This is the entire interface for wasm/js (Runtime + Graph).
242
+ */
243
+ export class Stof {
244
+ __destroy_into_raw() {
245
+ const ptr = this.__wbg_ptr;
246
+ this.__wbg_ptr = 0;
247
+ StofFinalization.unregister(this);
248
+ return ptr;
249
+ }
250
+ free() {
251
+ const ptr = this.__destroy_into_raw();
252
+ wasm.__wbg_stof_free(ptr, 0);
253
+ }
254
+ /**
255
+ * Binary export (Uint8Array), using a format of choice.
256
+ * Format can also be a content type (for HTTP-like situations).
257
+ * @param {string} format
258
+ * @param {any} node
259
+ * @returns {any}
260
+ */
261
+ binaryExport(format, node) {
262
+ const ptr0 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
263
+ const len0 = WASM_VECTOR_LEN;
264
+ const ret = wasm.stof_binaryExport(this.__wbg_ptr, ptr0, len0, node);
265
+ if (ret[2]) {
266
+ throw takeFromExternrefTable0(ret[1]);
267
+ }
268
+ return takeFromExternrefTable0(ret[0]);
269
+ }
270
+ /**
271
+ * Binary import (Uint8Array), using a format of choice.
272
+ * Format can also be a content type (for HTTP-like situations).
273
+ * @param {any} bytes
274
+ * @param {string} format
275
+ * @param {any} node
276
+ * @param {string} profile
277
+ * @returns {boolean}
278
+ */
279
+ binaryImport(bytes, format, node, profile) {
280
+ const ptr0 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
281
+ const len0 = WASM_VECTOR_LEN;
282
+ const ptr1 = passStringToWasm0(profile, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
283
+ const len1 = WASM_VECTOR_LEN;
284
+ const ret = wasm.stof_binaryImport(this.__wbg_ptr, bytes, ptr0, len0, node, ptr1, len1);
285
+ if (ret[2]) {
286
+ throw takeFromExternrefTable0(ret[1]);
287
+ }
288
+ return ret[0] !== 0;
289
+ }
290
+ /**
291
+ * Import a JS object value.
292
+ * @param {any} js_obj
293
+ * @param {any} node
294
+ * @returns {boolean}
295
+ */
296
+ objImport(js_obj, node) {
297
+ const ret = wasm.stof_objImport(this.__wbg_ptr, js_obj, node);
298
+ if (ret[2]) {
299
+ throw takeFromExternrefTable0(ret[1]);
300
+ }
301
+ return ret[0] !== 0;
302
+ }
303
+ /**
304
+ * String export, using a format of choice.
305
+ * @param {string} format
306
+ * @param {any} node
307
+ * @returns {string}
308
+ */
309
+ stringExport(format, node) {
310
+ let deferred3_0;
311
+ let deferred3_1;
312
+ try {
313
+ const ptr0 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
314
+ const len0 = WASM_VECTOR_LEN;
315
+ const ret = wasm.stof_stringExport(this.__wbg_ptr, ptr0, len0, node);
316
+ var ptr2 = ret[0];
317
+ var len2 = ret[1];
318
+ if (ret[3]) {
319
+ ptr2 = 0; len2 = 0;
320
+ throw takeFromExternrefTable0(ret[2]);
321
+ }
322
+ deferred3_0 = ptr2;
323
+ deferred3_1 = len2;
324
+ return getStringFromWasm0(ptr2, len2);
325
+ } finally {
326
+ wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
327
+ }
328
+ }
329
+ /**
330
+ * String import, using a format of choice (including stof).
331
+ * @param {string} src
332
+ * @param {string} format
333
+ * @param {any} node
334
+ * @param {string} profile
335
+ * @returns {boolean}
336
+ */
337
+ stringImport(src, format, node, profile) {
338
+ const ptr0 = passStringToWasm0(src, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
339
+ const len0 = WASM_VECTOR_LEN;
340
+ const ptr1 = passStringToWasm0(format, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
341
+ const len1 = WASM_VECTOR_LEN;
342
+ const ptr2 = passStringToWasm0(profile, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
343
+ const len2 = WASM_VECTOR_LEN;
344
+ const ret = wasm.stof_stringImport(this.__wbg_ptr, ptr0, len0, ptr1, len1, node, ptr2, len2);
345
+ if (ret[2]) {
346
+ throw takeFromExternrefTable0(ret[1]);
347
+ }
348
+ return ret[0] !== 0;
349
+ }
350
+ /**
351
+ * Insert a JS function as a library function, available in Stof.
352
+ * @param {StofFunc} func
353
+ */
354
+ js_library_function(func) {
355
+ _assertClass(func, StofFunc);
356
+ var ptr0 = func.__destroy_into_raw();
357
+ wasm.stof_js_library_function(this.__wbg_ptr, ptr0);
358
+ }
359
+ /**
360
+ * Get a value from this graph using the Stof runtime (all language features supported).
361
+ * @param {string} path
362
+ * @param {any} start
363
+ * @returns {any}
364
+ */
365
+ get(path, start) {
366
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
367
+ const len0 = WASM_VECTOR_LEN;
368
+ const ret = wasm.stof_get(this.__wbg_ptr, ptr0, len0, start);
369
+ return ret;
370
+ }
371
+ /**
372
+ * Construct a new document.
373
+ */
374
+ constructor() {
375
+ const ret = wasm.stof_new();
376
+ this.__wbg_ptr = ret >>> 0;
377
+ StofFinalization.register(this, this.__wbg_ptr, this);
378
+ return this;
379
+ }
380
+ /**
381
+ * Run functions with the given attribute(s) in this document.
382
+ * Attributes defaults to #[main] functions if null or undefined.
383
+ * @param {any} attributes
384
+ * @returns {Promise<string>}
385
+ */
386
+ run(attributes) {
387
+ const ret = wasm.stof_run(this.__wbg_ptr, attributes);
388
+ return ret;
389
+ }
390
+ /**
391
+ * Set a value onto this graph using the Stof runtime.
392
+ * @param {string} path
393
+ * @param {any} value
394
+ * @param {any} start
395
+ * @returns {boolean}
396
+ */
397
+ set(path, value, start) {
398
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
399
+ const len0 = WASM_VECTOR_LEN;
400
+ const ret = wasm.stof_set(this.__wbg_ptr, ptr0, len0, value, start);
401
+ return ret !== 0;
402
+ }
403
+ /**
404
+ * Call a singular function in the document (by path).
405
+ * If no arguments, pass undefined as args.
406
+ * Otherwise, pass an array of arguments as args.
407
+ * @param {string} path
408
+ * @param {any} args
409
+ * @returns {Promise<any>}
410
+ */
411
+ call(path, args) {
412
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
413
+ const len0 = WASM_VECTOR_LEN;
414
+ const ret = wasm.stof_call(this.__wbg_ptr, ptr0, len0, args);
415
+ return ret;
416
+ }
417
+ /**
418
+ * Parse Stof into this document, optionally within the specified node (pass null for root node).
419
+ * @param {string} stof
420
+ * @param {any} node
421
+ * @param {string} profile
422
+ * @returns {boolean}
423
+ */
424
+ parse(stof, node, profile) {
425
+ const ptr0 = passStringToWasm0(stof, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
426
+ const len0 = WASM_VECTOR_LEN;
427
+ const ptr1 = passStringToWasm0(profile, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
428
+ const len1 = WASM_VECTOR_LEN;
429
+ const ret = wasm.stof_parse(this.__wbg_ptr, ptr0, len0, node, ptr1, len1);
430
+ if (ret[2]) {
431
+ throw takeFromExternrefTable0(ret[1]);
432
+ }
433
+ return ret[0] !== 0;
434
+ }
435
+ /**
436
+ * Synchronous run functions with the given attribute(s) in this document.
437
+ * Attributes defaults to #[main] functions if null or undefined.
438
+ * Async TS lib functions will not work with this, but it will be faster.
439
+ * @param {any} attributes
440
+ * @returns {string}
441
+ */
442
+ sync_run(attributes) {
443
+ let deferred2_0;
444
+ let deferred2_1;
445
+ try {
446
+ const ret = wasm.stof_sync_run(this.__wbg_ptr, attributes);
447
+ var ptr1 = ret[0];
448
+ var len1 = ret[1];
449
+ if (ret[3]) {
450
+ ptr1 = 0; len1 = 0;
451
+ throw takeFromExternrefTable0(ret[2]);
452
+ }
453
+ deferred2_0 = ptr1;
454
+ deferred2_1 = len1;
455
+ return getStringFromWasm0(ptr1, len1);
456
+ } finally {
457
+ wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
458
+ }
459
+ }
460
+ /**
461
+ * Synchronous call a singular function in the document (by path).
462
+ * If no arguments, pass undefined as args.
463
+ * Otherwise, pass an array of arguments as args.
464
+ * Async TS lib functions will not work with this, but it will be faster.
465
+ * @param {string} path
466
+ * @param {any} args
467
+ * @returns {any}
468
+ */
469
+ sync_call(path, args) {
470
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
471
+ const len0 = WASM_VECTOR_LEN;
472
+ const ret = wasm.stof_sync_call(this.__wbg_ptr, ptr0, len0, args);
473
+ if (ret[2]) {
474
+ throw takeFromExternrefTable0(ret[1]);
475
+ }
476
+ return takeFromExternrefTable0(ret[0]);
477
+ }
478
+ }
479
+ if (Symbol.dispose) Stof.prototype[Symbol.dispose] = Stof.prototype.free;
480
+
481
+ /**
482
+ * JS Library Function.
483
+ */
484
+ export class StofFunc {
485
+ __destroy_into_raw() {
486
+ const ptr = this.__wbg_ptr;
487
+ this.__wbg_ptr = 0;
488
+ StofFuncFinalization.unregister(this);
489
+ return ptr;
490
+ }
491
+ free() {
492
+ const ptr = this.__destroy_into_raw();
493
+ wasm.__wbg_stoffunc_free(ptr, 0);
494
+ }
495
+ /**
496
+ * Create a new Stof function from a JS function.
497
+ * @param {string} library
498
+ * @param {string} name
499
+ * @param {any} js_function
500
+ * @param {boolean} is_async
501
+ */
502
+ constructor(library, name, js_function, is_async) {
503
+ const ptr0 = passStringToWasm0(library, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
504
+ const len0 = WASM_VECTOR_LEN;
505
+ const ptr1 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
506
+ const len1 = WASM_VECTOR_LEN;
507
+ const ret = wasm.stoffunc_new(ptr0, len0, ptr1, len1, js_function, is_async);
508
+ this.__wbg_ptr = ret >>> 0;
509
+ StofFuncFinalization.register(this, this.__wbg_ptr, this);
510
+ return this;
511
+ }
512
+ }
513
+ if (Symbol.dispose) StofFunc.prototype[Symbol.dispose] = StofFunc.prototype.free;
514
+
515
+ export function start() {
516
+ wasm.start();
517
+ }
518
+
519
+ const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
520
+
521
+ async function __wbg_load(module, imports) {
522
+ if (typeof Response === 'function' && module instanceof Response) {
523
+ if (typeof WebAssembly.instantiateStreaming === 'function') {
524
+ try {
525
+ return await WebAssembly.instantiateStreaming(module, imports);
526
+ } catch (e) {
527
+ const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
528
+
529
+ if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
530
+ console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
531
+
532
+ } else {
533
+ throw e;
534
+ }
535
+ }
536
+ }
537
+
538
+ const bytes = await module.arrayBuffer();
539
+ return await WebAssembly.instantiate(bytes, imports);
540
+ } else {
541
+ const instance = await WebAssembly.instantiate(module, imports);
542
+
543
+ if (instance instanceof WebAssembly.Instance) {
544
+ return { instance, module };
545
+ } else {
546
+ return instance;
547
+ }
548
+ }
549
+ }
550
+
551
+ function __wbg_get_imports() {
552
+ const imports = {};
553
+ imports.wbg = {};
554
+ imports.wbg.__wbg_Error_52673b7de5a0ca89 = function(arg0, arg1) {
555
+ const ret = Error(getStringFromWasm0(arg0, arg1));
556
+ return ret;
557
+ };
558
+ imports.wbg.__wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d = function(arg0, arg1) {
559
+ const v = arg1;
560
+ const ret = typeof(v) === 'bigint' ? v : undefined;
561
+ getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
562
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
563
+ };
564
+ imports.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
565
+ const v = arg0;
566
+ const ret = typeof(v) === 'boolean' ? v : undefined;
567
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
568
+ };
569
+ imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
570
+ const ret = debugString(arg1);
571
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
572
+ const len1 = WASM_VECTOR_LEN;
573
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
574
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
575
+ };
576
+ imports.wbg.__wbg___wbindgen_in_0d3e1e8f0c669317 = function(arg0, arg1) {
577
+ const ret = arg0 in arg1;
578
+ return ret;
579
+ };
580
+ imports.wbg.__wbg___wbindgen_is_bigint_0e1a2e3f55cfae27 = function(arg0) {
581
+ const ret = typeof(arg0) === 'bigint';
582
+ return ret;
583
+ };
584
+ imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) {
585
+ const ret = typeof(arg0) === 'function';
586
+ return ret;
587
+ };
588
+ imports.wbg.__wbg___wbindgen_is_null_dfda7d66506c95b5 = function(arg0) {
589
+ const ret = arg0 === null;
590
+ return ret;
591
+ };
592
+ imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
593
+ const val = arg0;
594
+ const ret = typeof(val) === 'object' && val !== null;
595
+ return ret;
596
+ };
597
+ imports.wbg.__wbg___wbindgen_is_string_704ef9c8fc131030 = function(arg0) {
598
+ const ret = typeof(arg0) === 'string';
599
+ return ret;
600
+ };
601
+ imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
602
+ const ret = arg0 === undefined;
603
+ return ret;
604
+ };
605
+ imports.wbg.__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36 = function(arg0, arg1) {
606
+ const ret = arg0 === arg1;
607
+ return ret;
608
+ };
609
+ imports.wbg.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d = function(arg0, arg1) {
610
+ const ret = arg0 == arg1;
611
+ return ret;
612
+ };
613
+ imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
614
+ const obj = arg1;
615
+ const ret = typeof(obj) === 'number' ? obj : undefined;
616
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
617
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
618
+ };
619
+ imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
620
+ const obj = arg1;
621
+ const ret = typeof(obj) === 'string' ? obj : undefined;
622
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
623
+ var len1 = WASM_VECTOR_LEN;
624
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
625
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
626
+ };
627
+ imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
628
+ throw new Error(getStringFromWasm0(arg0, arg1));
629
+ };
630
+ imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) {
631
+ arg0._wbg_cb_unref();
632
+ };
633
+ imports.wbg.__wbg_add_f0bf6d9527665471 = function(arg0, arg1) {
634
+ const ret = arg0.add(arg1);
635
+ return ret;
636
+ };
637
+ imports.wbg.__wbg_call_3020136f7a2d6e44 = function() { return handleError(function (arg0, arg1, arg2) {
638
+ const ret = arg0.call(arg1, arg2);
639
+ return ret;
640
+ }, arguments) };
641
+ imports.wbg.__wbg_call_3cc1459bcdc6ba34 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) {
642
+ const ret = arg0.call(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
643
+ return ret;
644
+ }, arguments) };
645
+ imports.wbg.__wbg_call_760a3f0ff6ecdb31 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
646
+ const ret = arg0.call(arg1, arg2, arg3, arg4, arg5, arg6);
647
+ return ret;
648
+ }, arguments) };
649
+ imports.wbg.__wbg_call_78f94eb02ec7f9b2 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
650
+ const ret = arg0.call(arg1, arg2, arg3, arg4);
651
+ return ret;
652
+ }, arguments) };
653
+ imports.wbg.__wbg_call_919ffb35c4866267 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
654
+ const ret = arg0.call(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
655
+ return ret;
656
+ }, arguments) };
657
+ imports.wbg.__wbg_call_985cbf350d9ec0e5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
658
+ const ret = arg0.call(arg1, arg2, arg3, arg4, arg5);
659
+ return ret;
660
+ }, arguments) };
661
+ imports.wbg.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) {
662
+ const ret = arg0.call(arg1);
663
+ return ret;
664
+ }, arguments) };
665
+ imports.wbg.__wbg_call_c8baa5c5e72d274e = function() { return handleError(function (arg0, arg1, arg2, arg3) {
666
+ const ret = arg0.call(arg1, arg2, arg3);
667
+ return ret;
668
+ }, arguments) };
669
+ imports.wbg.__wbg_call_d0e988159bc34db5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) {
670
+ const ret = arg0.call(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
671
+ return ret;
672
+ }, arguments) };
673
+ imports.wbg.__wbg_call_d648a25feae57325 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
674
+ const ret = arg0.call(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
675
+ return ret;
676
+ }, arguments) };
677
+ imports.wbg.__wbg_crypto_ed58b8e10a292839 = function(arg0) {
678
+ const ret = arg0.crypto;
679
+ return ret;
680
+ };
681
+ imports.wbg.__wbg_done_62ea16af4ce34b24 = function(arg0) {
682
+ const ret = arg0.done;
683
+ return ret;
684
+ };
685
+ imports.wbg.__wbg_entries_83c79938054e065f = function(arg0) {
686
+ const ret = Object.entries(arg0);
687
+ return ret;
688
+ };
689
+ imports.wbg.__wbg_entries_9af46b7eaf7dfefa = function(arg0) {
690
+ const ret = arg0.entries();
691
+ return ret;
692
+ };
693
+ imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
694
+ let deferred0_0;
695
+ let deferred0_1;
696
+ try {
697
+ deferred0_0 = arg0;
698
+ deferred0_1 = arg1;
699
+ console.error(getStringFromWasm0(arg0, arg1));
700
+ } finally {
701
+ wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
702
+ }
703
+ };
704
+ imports.wbg.__wbg_from_29a8414a7a7cd19d = function(arg0) {
705
+ const ret = Array.from(arg0);
706
+ return ret;
707
+ };
708
+ imports.wbg.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return handleError(function (arg0, arg1) {
709
+ arg0.getRandomValues(arg1);
710
+ }, arguments) };
711
+ imports.wbg.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
712
+ const ret = arg0[arg1 >>> 0];
713
+ return ret;
714
+ };
715
+ imports.wbg.__wbg_get_af9dab7e9603ea93 = function() { return handleError(function (arg0, arg1) {
716
+ const ret = Reflect.get(arg0, arg1);
717
+ return ret;
718
+ }, arguments) };
719
+ imports.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355 = function(arg0) {
720
+ let result;
721
+ try {
722
+ result = arg0 instanceof ArrayBuffer;
723
+ } catch (_) {
724
+ result = false;
725
+ }
726
+ const ret = result;
727
+ return ret;
728
+ };
729
+ imports.wbg.__wbg_instanceof_Map_084be8da74364158 = function(arg0) {
730
+ let result;
731
+ try {
732
+ result = arg0 instanceof Map;
733
+ } catch (_) {
734
+ result = false;
735
+ }
736
+ const ret = result;
737
+ return ret;
738
+ };
739
+ imports.wbg.__wbg_instanceof_Promise_eca6c43a2610558d = function(arg0) {
740
+ let result;
741
+ try {
742
+ result = arg0 instanceof Promise;
743
+ } catch (_) {
744
+ result = false;
745
+ }
746
+ const ret = result;
747
+ return ret;
748
+ };
749
+ imports.wbg.__wbg_instanceof_Set_6e1b27892cbb9e75 = function(arg0) {
750
+ let result;
751
+ try {
752
+ result = arg0 instanceof Set;
753
+ } catch (_) {
754
+ result = false;
755
+ }
756
+ const ret = result;
757
+ return ret;
758
+ };
759
+ imports.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function(arg0) {
760
+ let result;
761
+ try {
762
+ result = arg0 instanceof Uint8Array;
763
+ } catch (_) {
764
+ result = false;
765
+ }
766
+ const ret = result;
767
+ return ret;
768
+ };
769
+ imports.wbg.__wbg_instanceof_Window_b5cf7783caa68180 = function(arg0) {
770
+ let result;
771
+ try {
772
+ result = arg0 instanceof Window;
773
+ } catch (_) {
774
+ result = false;
775
+ }
776
+ const ret = result;
777
+ return ret;
778
+ };
779
+ imports.wbg.__wbg_isArray_51fd9e6422c0a395 = function(arg0) {
780
+ const ret = Array.isArray(arg0);
781
+ return ret;
782
+ };
783
+ imports.wbg.__wbg_isArray_ca6bc609f742df3f = function(arg0) {
784
+ const ret = Array.isArray(arg0);
785
+ return ret;
786
+ };
787
+ imports.wbg.__wbg_isSafeInteger_ae7d3f054d55fa16 = function(arg0) {
788
+ const ret = Number.isSafeInteger(arg0);
789
+ return ret;
790
+ };
791
+ imports.wbg.__wbg_iterator_27b7c8b35ab3e86b = function() {
792
+ const ret = Symbol.iterator;
793
+ return ret;
794
+ };
795
+ imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
796
+ const ret = arg0.length;
797
+ return ret;
798
+ };
799
+ imports.wbg.__wbg_length_d45040a40c570362 = function(arg0) {
800
+ const ret = arg0.length;
801
+ return ret;
802
+ };
803
+ imports.wbg.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
804
+ const ret = arg0.msCrypto;
805
+ return ret;
806
+ };
807
+ imports.wbg.__wbg_new_25f239778d6112b9 = function() {
808
+ const ret = new Array();
809
+ return ret;
810
+ };
811
+ imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
812
+ const ret = new Uint8Array(arg0);
813
+ return ret;
814
+ };
815
+ imports.wbg.__wbg_new_746bb58304020083 = function(arg0) {
816
+ const ret = new Set(arg0);
817
+ return ret;
818
+ };
819
+ imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
820
+ const ret = new Error();
821
+ return ret;
822
+ };
823
+ imports.wbg.__wbg_new_b546ae120718850e = function() {
824
+ const ret = new Map();
825
+ return ret;
826
+ };
827
+ imports.wbg.__wbg_new_ff12d2b041fb48f1 = function(arg0, arg1) {
828
+ try {
829
+ var state0 = {a: arg0, b: arg1};
830
+ var cb0 = (arg0, arg1) => {
831
+ const a = state0.a;
832
+ state0.a = 0;
833
+ try {
834
+ return wasm_bindgen__convert__closures_____invoke__ha84735728bfe97a9(a, state0.b, arg0, arg1);
835
+ } finally {
836
+ state0.a = a;
837
+ }
838
+ };
839
+ const ret = new Promise(cb0);
840
+ return ret;
841
+ } finally {
842
+ state0.a = state0.b = 0;
843
+ }
844
+ };
845
+ imports.wbg.__wbg_new_from_slice_f9c22b9153b26992 = function(arg0, arg1) {
846
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
847
+ return ret;
848
+ };
849
+ imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) {
850
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
851
+ return ret;
852
+ };
853
+ imports.wbg.__wbg_new_with_length_aa5eaf41d35235e5 = function(arg0) {
854
+ const ret = new Uint8Array(arg0 >>> 0);
855
+ return ret;
856
+ };
857
+ imports.wbg.__wbg_next_138a17bbf04e926c = function(arg0) {
858
+ const ret = arg0.next;
859
+ return ret;
860
+ };
861
+ imports.wbg.__wbg_next_3cfe5c0fe2a4cc53 = function() { return handleError(function (arg0) {
862
+ const ret = arg0.next();
863
+ return ret;
864
+ }, arguments) };
865
+ imports.wbg.__wbg_node_02999533c4ea02e3 = function(arg0) {
866
+ const ret = arg0.node;
867
+ return ret;
868
+ };
869
+ imports.wbg.__wbg_now_2c95c9de01293173 = function(arg0) {
870
+ const ret = arg0.now();
871
+ return ret;
872
+ };
873
+ imports.wbg.__wbg_now_69d776cd24f5215b = function() {
874
+ const ret = Date.now();
875
+ return ret;
876
+ };
877
+ imports.wbg.__wbg_now_8cf15d6e317793e1 = function(arg0) {
878
+ const ret = arg0.now();
879
+ return ret;
880
+ };
881
+ imports.wbg.__wbg_performance_7a3ffd0b17f663ad = function(arg0) {
882
+ const ret = arg0.performance;
883
+ return ret;
884
+ };
885
+ imports.wbg.__wbg_performance_c77a440eff2efd9b = function(arg0) {
886
+ const ret = arg0.performance;
887
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
888
+ };
889
+ imports.wbg.__wbg_process_5c1d670bc53614b8 = function(arg0) {
890
+ const ret = arg0.process;
891
+ return ret;
892
+ };
893
+ imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
894
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
895
+ };
896
+ imports.wbg.__wbg_push_7d9be8f38fc13975 = function(arg0, arg1) {
897
+ const ret = arg0.push(arg1);
898
+ return ret;
899
+ };
900
+ imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) {
901
+ const ret = arg0.queueMicrotask;
902
+ return ret;
903
+ };
904
+ imports.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function(arg0) {
905
+ queueMicrotask(arg0);
906
+ };
907
+ imports.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() { return handleError(function (arg0, arg1) {
908
+ arg0.randomFillSync(arg1);
909
+ }, arguments) };
910
+ imports.wbg.__wbg_require_79b1e9274cde3c87 = function() { return handleError(function () {
911
+ const ret = module.require;
912
+ return ret;
913
+ }, arguments) };
914
+ imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function(arg0) {
915
+ const ret = Promise.resolve(arg0);
916
+ return ret;
917
+ };
918
+ imports.wbg.__wbg_setTimeout_06477c23d31efef1 = function() { return handleError(function (arg0, arg1, arg2) {
919
+ const ret = arg0.setTimeout(arg1, arg2);
920
+ return ret;
921
+ }, arguments) };
922
+ imports.wbg.__wbg_set_efaaf145b9377369 = function(arg0, arg1, arg2) {
923
+ const ret = arg0.set(arg1, arg2);
924
+ return ret;
925
+ };
926
+ imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
927
+ const ret = arg1.stack;
928
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
929
+ const len1 = WASM_VECTOR_LEN;
930
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
931
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
932
+ };
933
+ imports.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() {
934
+ const ret = typeof global === 'undefined' ? null : global;
935
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
936
+ };
937
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function() {
938
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
939
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
940
+ };
941
+ imports.wbg.__wbg_static_accessor_SELF_08f5a74c69739274 = function() {
942
+ const ret = typeof self === 'undefined' ? null : self;
943
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
944
+ };
945
+ imports.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function() {
946
+ const ret = typeof window === 'undefined' ? null : window;
947
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
948
+ };
949
+ imports.wbg.__wbg_subarray_845f2f5bce7d061a = function(arg0, arg1, arg2) {
950
+ const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
951
+ return ret;
952
+ };
953
+ imports.wbg.__wbg_then_429f7caf1026411d = function(arg0, arg1, arg2) {
954
+ const ret = arg0.then(arg1, arg2);
955
+ return ret;
956
+ };
957
+ imports.wbg.__wbg_then_4f95312d68691235 = function(arg0, arg1) {
958
+ const ret = arg0.then(arg1);
959
+ return ret;
960
+ };
961
+ imports.wbg.__wbg_value_57b7b035e117f7ee = function(arg0) {
962
+ const ret = arg0.value;
963
+ return ret;
964
+ };
965
+ imports.wbg.__wbg_values_9152c8c1ab032dfa = function(arg0) {
966
+ const ret = arg0.values();
967
+ return ret;
968
+ };
969
+ imports.wbg.__wbg_versions_c71aa1626a93e0a1 = function(arg0) {
970
+ const ret = arg0.versions;
971
+ return ret;
972
+ };
973
+ imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
974
+ // Cast intrinsic for `Ref(String) -> Externref`.
975
+ const ret = getStringFromWasm0(arg0, arg1);
976
+ return ret;
977
+ };
978
+ imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
979
+ // Cast intrinsic for `U64 -> Externref`.
980
+ const ret = BigInt.asUintN(64, arg0);
981
+ return ret;
982
+ };
983
+ imports.wbg.__wbindgen_cast_483b6e67f319559d = function(arg0, arg1) {
984
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7058, function: Function { arguments: [Externref], shim_idx: 7059, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
985
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h72b14ab7db8750ca, wasm_bindgen__convert__closures_____invoke__h53d5cf04cab8438f);
986
+ return ret;
987
+ };
988
+ imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
989
+ // Cast intrinsic for `I64 -> Externref`.
990
+ const ret = arg0;
991
+ return ret;
992
+ };
993
+ imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
994
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
995
+ const ret = getArrayU8FromWasm0(arg0, arg1);
996
+ return ret;
997
+ };
998
+ imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
999
+ // Cast intrinsic for `F64 -> Externref`.
1000
+ const ret = arg0;
1001
+ return ret;
1002
+ };
1003
+ imports.wbg.__wbindgen_init_externref_table = function() {
1004
+ const table = wasm.__wbindgen_externrefs;
1005
+ const offset = table.grow(4);
1006
+ table.set(0, undefined);
1007
+ table.set(offset + 0, undefined);
1008
+ table.set(offset + 1, null);
1009
+ table.set(offset + 2, true);
1010
+ table.set(offset + 3, false);
1011
+ };
1012
+
1013
+ return imports;
1014
+ }
1015
+
1016
+ function __wbg_finalize_init(instance, module) {
1017
+ wasm = instance.exports;
1018
+ __wbg_init.__wbindgen_wasm_module = module;
1019
+ cachedDataViewMemory0 = null;
1020
+ cachedUint8ArrayMemory0 = null;
1021
+
1022
+
1023
+ wasm.__wbindgen_start();
1024
+ return wasm;
1025
+ }
1026
+
1027
+ function initSync(module) {
1028
+ if (wasm !== undefined) return wasm;
1029
+
1030
+
1031
+ if (typeof module !== 'undefined') {
1032
+ if (Object.getPrototypeOf(module) === Object.prototype) {
1033
+ ({module} = module)
1034
+ } else {
1035
+ console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
1036
+ }
1037
+ }
1038
+
1039
+ const imports = __wbg_get_imports();
1040
+ if (!(module instanceof WebAssembly.Module)) {
1041
+ module = new WebAssembly.Module(module);
1042
+ }
1043
+ const instance = new WebAssembly.Instance(module, imports);
1044
+ return __wbg_finalize_init(instance, module);
1045
+ }
1046
+
1047
+ async function __wbg_init(module_or_path) {
1048
+ if (wasm !== undefined) return wasm;
1049
+
1050
+
1051
+ if (typeof module_or_path !== 'undefined') {
1052
+ if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
1053
+ ({module_or_path} = module_or_path)
1054
+ } else {
1055
+ console.warn('using deprecated parameters for the initialization function; pass a single object instead')
1056
+ }
1057
+ }
1058
+
1059
+ if (typeof module_or_path === 'undefined') {
1060
+ module_or_path = new URL('stof_bg.wasm', import.meta.url);
1061
+ }
1062
+ const imports = __wbg_get_imports();
1063
+
1064
+ if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
1065
+ module_or_path = fetch(module_or_path);
1066
+ }
1067
+
1068
+ const { instance, module } = await __wbg_load(await module_or_path, imports);
1069
+
1070
+ return __wbg_finalize_init(instance, module);
1071
+ }
1072
+
1073
+ export { initSync };
1074
+ export default __wbg_init;