@utoo/web 0.0.1 → 1.0.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.
Files changed (38) hide show
  1. package/esm/forkedProject.d.ts +24 -0
  2. package/esm/forkedProject.js +40 -0
  3. package/esm/index.d.ts +1 -17
  4. package/esm/index.js +1 -104
  5. package/esm/installServiceWorker.d.ts +1 -0
  6. package/esm/installServiceWorker.js +36 -0
  7. package/esm/internalProject.d.ts +29 -0
  8. package/esm/internalProject.js +184 -0
  9. package/esm/message.d.ts +1 -0
  10. package/esm/message.js +1 -0
  11. package/esm/project.d.ts +31 -0
  12. package/esm/project.js +120 -0
  13. package/esm/serviceWorker.d.ts +1 -0
  14. package/esm/serviceWorker.js +62 -0
  15. package/esm/threadWorker.d.ts +1 -0
  16. package/esm/threadWorker.js +4 -0
  17. package/esm/type.d.ts +53 -8
  18. package/esm/type.js +12 -1
  19. package/esm/utoo/index.d.ts +156 -20
  20. package/esm/utoo/index.js +1079 -242
  21. package/esm/utoo/index_bg.wasm +0 -0
  22. package/esm/webpackLoaders/loaders/lessLoader/index.d.ts +3 -0
  23. package/esm/webpackLoaders/loaders/lessLoader/index.js +103 -0
  24. package/esm/webpackLoaders/loaders/lessLoader/options.json +67 -0
  25. package/esm/webpackLoaders/loaders/lessLoader/utils.d.ts +14 -0
  26. package/esm/webpackLoaders/loaders/lessLoader/utils.js +217 -0
  27. package/esm/webpackLoaders/worker/cjs.d.ts +2 -0
  28. package/esm/webpackLoaders/worker/cjs.js +77 -0
  29. package/esm/webpackLoaders/worker/index.d.ts +2 -0
  30. package/esm/webpackLoaders/worker/index.js +31 -0
  31. package/esm/webpackLoaders/worker/nodePolyFills.d.ts +14 -0
  32. package/esm/webpackLoaders/worker/nodePolyFills.js +24 -0
  33. package/esm/webpackLoaders/worker/type.d.ts +11 -0
  34. package/esm/webpackLoaders/worker/type.js +1 -0
  35. package/esm/webpackLoaders/workerContent.d.ts +2 -0
  36. package/esm/webpackLoaders/workerContent.js +1 -0
  37. package/esm/worker.js +2 -33
  38. package/package.json +29 -8
package/esm/utoo/index.js CHANGED
@@ -1,23 +1,30 @@
1
1
  let wasm;
2
- const heap = new Array(128).fill(undefined);
3
- heap.push(undefined, null, true, false);
4
- function getObject(idx) { return heap[idx]; }
5
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available'); } });
6
- if (typeof TextDecoder !== 'undefined') {
7
- cachedTextDecoder.decode();
8
- }
9
- ;
10
2
  let cachedUint8ArrayMemory0 = null;
11
3
  function getUint8ArrayMemory0() {
12
- if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
4
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.buffer !== wasm.memory.buffer) {
13
5
  cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
14
6
  }
15
7
  return cachedUint8ArrayMemory0;
16
8
  }
9
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
10
+ cachedTextDecoder.decode();
11
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
12
+ let numBytesDecoded = 0;
13
+ function decodeText(ptr, len) {
14
+ numBytesDecoded += len;
15
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
16
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
17
+ cachedTextDecoder.decode();
18
+ numBytesDecoded = len;
19
+ }
20
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().slice(ptr, ptr + len));
21
+ }
17
22
  function getStringFromWasm0(ptr, len) {
18
23
  ptr = ptr >>> 0;
19
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
24
+ return decodeText(ptr, len);
20
25
  }
26
+ let heap = new Array(128).fill(undefined);
27
+ heap.push(undefined, null, true, false);
21
28
  let heap_next = heap.length;
22
29
  function addHeapObject(obj) {
23
30
  if (heap_next === heap.length)
@@ -27,39 +34,17 @@ function addHeapObject(obj) {
27
34
  heap[idx] = obj;
28
35
  return idx;
29
36
  }
30
- function handleError(f, args) {
31
- try {
32
- return f.apply(this, args);
33
- }
34
- catch (e) {
35
- wasm.__wbindgen_export_0(addHeapObject(e));
36
- }
37
- }
38
- function dropObject(idx) {
39
- if (idx < 132)
40
- return;
41
- heap[idx] = heap_next;
42
- heap_next = idx;
43
- }
44
- function takeObject(idx) {
45
- const ret = getObject(idx);
46
- dropObject(idx);
47
- return ret;
48
- }
37
+ function getObject(idx) { return heap[idx]; }
49
38
  let WASM_VECTOR_LEN = 0;
50
- const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available'); } });
51
- const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
52
- ? function (arg, view) {
53
- return cachedTextEncoder.encodeInto(arg, view);
54
- }
55
- : function (arg, view) {
56
- const buf = cachedTextEncoder.encode(arg);
57
- view.set(buf);
58
- return {
59
- read: arg.length,
60
- written: buf.length
61
- };
62
- });
39
+ const cachedTextEncoder = new TextEncoder();
40
+ cachedTextEncoder.encodeInto = function (arg, view) {
41
+ const buf = cachedTextEncoder.encode(arg);
42
+ view.set(buf);
43
+ return {
44
+ read: arg.length,
45
+ written: buf.length
46
+ };
47
+ };
63
48
  function passStringToWasm0(arg, malloc, realloc) {
64
49
  if (realloc === undefined) {
65
50
  const buf = cachedTextEncoder.encode(arg);
@@ -84,7 +69,7 @@ function passStringToWasm0(arg, malloc, realloc) {
84
69
  }
85
70
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
86
71
  const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
87
- const ret = encodeString(arg, view);
72
+ const ret = cachedTextEncoder.encodeInto(arg, view);
88
73
  offset += ret.written;
89
74
  ptr = realloc(ptr, len, offset, 1) >>> 0;
90
75
  }
@@ -93,11 +78,30 @@ function passStringToWasm0(arg, malloc, realloc) {
93
78
  }
94
79
  let cachedDataViewMemory0 = null;
95
80
  function getDataViewMemory0() {
96
- if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
81
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
97
82
  cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
98
83
  }
99
84
  return cachedDataViewMemory0;
100
85
  }
86
+ function handleError(f, args) {
87
+ try {
88
+ return f.apply(this, args);
89
+ }
90
+ catch (e) {
91
+ wasm.__wbindgen_export_3(addHeapObject(e));
92
+ }
93
+ }
94
+ function dropObject(idx) {
95
+ if (idx < 132)
96
+ return;
97
+ heap[idx] = heap_next;
98
+ heap_next = idx;
99
+ }
100
+ function takeObject(idx) {
101
+ const ret = getObject(idx);
102
+ dropObject(idx);
103
+ return ret;
104
+ }
101
105
  function getArrayU8FromWasm0(ptr, len) {
102
106
  ptr = ptr >>> 0;
103
107
  return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
@@ -105,37 +109,6 @@ function getArrayU8FromWasm0(ptr, len) {
105
109
  function isLikeNone(x) {
106
110
  return x === undefined || x === null;
107
111
  }
108
- const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
109
- ? { register: () => { }, unregister: () => { } }
110
- : new FinalizationRegistry(state => {
111
- wasm.__wbindgen_export_3.get(state.dtor)(state.a, state.b);
112
- });
113
- function makeMutClosure(arg0, arg1, dtor, f) {
114
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
115
- const real = (...args) => {
116
- // First up with a closure we increment the internal reference
117
- // count. This ensures that the Rust closure environment won't
118
- // be deallocated while we're invoking it.
119
- state.cnt++;
120
- const a = state.a;
121
- state.a = 0;
122
- try {
123
- return f(a, state.b, ...args);
124
- }
125
- finally {
126
- if (--state.cnt === 0) {
127
- wasm.__wbindgen_export_3.get(state.dtor)(a, state.b);
128
- CLOSURE_DTORS.unregister(state);
129
- }
130
- else {
131
- state.a = a;
132
- }
133
- }
134
- };
135
- real.original = state;
136
- CLOSURE_DTORS.register(real, state, state);
137
- return real;
138
- }
139
112
  function debugString(val) {
140
113
  // primitive types
141
114
  const type = typeof val;
@@ -204,19 +177,178 @@ function debugString(val) {
204
177
  // TODO we could test for more things here, like `Set`s and `Map`s.
205
178
  return className;
206
179
  }
207
- function __wbg_adapter_28(arg0, arg1) {
208
- wasm.__wbindgen_export_5(arg0, arg1);
180
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
181
+ ? { register: () => { }, unregister: () => { } }
182
+ : new FinalizationRegistry(state => {
183
+ wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b);
184
+ });
185
+ function makeMutClosure(arg0, arg1, dtor, f) {
186
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
187
+ const real = (...args) => {
188
+ // First up with a closure we increment the internal reference
189
+ // count. This ensures that the Rust closure environment won't
190
+ // be deallocated while we're invoking it.
191
+ state.cnt++;
192
+ const a = state.a;
193
+ state.a = 0;
194
+ try {
195
+ return f(a, state.b, ...args);
196
+ }
197
+ finally {
198
+ if (--state.cnt === 0) {
199
+ wasm.__wbindgen_export_5.get(state.dtor)(a, state.b);
200
+ CLOSURE_DTORS.unregister(state);
201
+ }
202
+ else {
203
+ state.a = a;
204
+ }
205
+ }
206
+ };
207
+ real.original = state;
208
+ CLOSURE_DTORS.register(real, state, state);
209
+ return real;
210
+ }
211
+ function getArrayJsValueFromWasm0(ptr, len) {
212
+ ptr = ptr >>> 0;
213
+ const mem = getDataViewMemory0();
214
+ const result = [];
215
+ for (let i = ptr; i < ptr + 4 * len; i += 4) {
216
+ result.push(takeObject(mem.getUint32(i, true)));
217
+ }
218
+ return result;
219
+ }
220
+ function makeClosure(arg0, arg1, dtor, f) {
221
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
222
+ const real = (...args) => {
223
+ // First up with a closure we increment the internal reference
224
+ // count. This ensures that the Rust closure environment won't
225
+ // be deallocated while we're invoking it.
226
+ state.cnt++;
227
+ try {
228
+ return f(state.a, state.b, ...args);
229
+ }
230
+ finally {
231
+ if (--state.cnt === 0) {
232
+ wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b);
233
+ state.a = 0;
234
+ CLOSURE_DTORS.unregister(state);
235
+ }
236
+ }
237
+ };
238
+ real.original = state;
239
+ CLOSURE_DTORS.register(real, state, state);
240
+ return real;
241
+ }
242
+ /**
243
+ * @returns {Promise<WorkerTermination>}
244
+ */
245
+ export function recvWorkerTermination() {
246
+ const ret = wasm.recvWorkerTermination();
247
+ return takeObject(ret);
248
+ }
249
+ /**
250
+ * @param {number} task_id
251
+ * @param {number} worker_id
252
+ * @returns {Promise<void>}
253
+ */
254
+ export function notifyWorkerAck(task_id, worker_id) {
255
+ const ret = wasm.notifyWorkerAck(task_id, worker_id);
256
+ return takeObject(ret);
257
+ }
258
+ /**
259
+ * @param {number} task_id
260
+ * @param {string} message
261
+ * @returns {Promise<void>}
262
+ */
263
+ export function sendTaskMessage(task_id, message) {
264
+ const ptr0 = passStringToWasm0(message, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
265
+ const len0 = WASM_VECTOR_LEN;
266
+ const ret = wasm.sendTaskMessage(task_id, ptr0, len0);
267
+ return takeObject(ret);
268
+ }
269
+ /**
270
+ * @param {number} worker_id
271
+ * @returns {Promise<string>}
272
+ */
273
+ export function recvMessageInWorker(worker_id) {
274
+ const ret = wasm.recvMessageInWorker(worker_id);
275
+ return takeObject(ret);
276
+ }
277
+ /**
278
+ * @param {string} pool_id
279
+ * @returns {Promise<number>}
280
+ */
281
+ export function recvWorkerRequest(pool_id) {
282
+ const ptr0 = passStringToWasm0(pool_id, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
283
+ const len0 = WASM_VECTOR_LEN;
284
+ const ret = wasm.recvWorkerRequest(ptr0, len0);
285
+ return takeObject(ret);
286
+ }
287
+ /**
288
+ * @returns {Promise<PoolOptions>}
289
+ */
290
+ export function recvPoolRequest() {
291
+ const ret = wasm.recvPoolRequest();
292
+ return takeObject(ret);
293
+ }
294
+ /**
295
+ * @param {string} filter
296
+ */
297
+ export function init_log_filter(filter) {
298
+ const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
299
+ const len0 = WASM_VECTOR_LEN;
300
+ wasm.init_log_filter(ptr0, len0);
301
+ }
302
+ export function init_pack() {
303
+ wasm.init_pack();
304
+ }
305
+ function passArray8ToWasm0(arg, malloc) {
306
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
307
+ getUint8ArrayMemory0().set(arg, ptr / 1);
308
+ WASM_VECTOR_LEN = arg.length;
309
+ return ptr;
209
310
  }
210
- function __wbg_adapter_31(arg0, arg1, arg2) {
311
+ /**
312
+ * Entry point for web workers
313
+ * @param {number} ptr
314
+ */
315
+ export function wasm_thread_entry_point(ptr) {
316
+ wasm.wasm_thread_entry_point(ptr);
317
+ }
318
+ function __wbg_adapter_4(arg0, arg1, arg2) {
211
319
  wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2));
212
320
  }
213
- function __wbg_adapter_66(arg0, arg1, arg2, arg3) {
214
- wasm.__wbindgen_export_7(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
321
+ function __wbg_adapter_7(arg0, arg1, arg2) {
322
+ wasm.__wbindgen_export_7(arg0, arg1, addHeapObject(arg2));
323
+ }
324
+ function __wbg_adapter_12(arg0, arg1) {
325
+ wasm.__wbindgen_export_8(arg0, arg1);
326
+ }
327
+ let stack_pointer = 128;
328
+ function addBorrowedObject(obj) {
329
+ if (stack_pointer == 1)
330
+ throw new Error('out of js stack');
331
+ heap[--stack_pointer] = obj;
332
+ return stack_pointer;
333
+ }
334
+ function __wbg_adapter_15(arg0, arg1, arg2) {
335
+ try {
336
+ wasm.__wbindgen_export_9(arg0, arg1, addBorrowedObject(arg2));
337
+ }
338
+ finally {
339
+ heap[stack_pointer++] = undefined;
340
+ }
341
+ }
342
+ function __wbg_adapter_94(arg0, arg1, arg2, arg3) {
343
+ wasm.__wbindgen_export_10(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
215
344
  }
216
345
  const __wbindgen_enum_DirEntryType = ["file", "directory"];
346
+ const __wbindgen_enum_FileSystemChangeRecordType = ["appeared", "disappeared", "errored", "modified", "moved", "unknown"];
217
347
  const __wbindgen_enum_FileSystemHandleKind = ["file", "directory"];
348
+ const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
218
349
  const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
219
350
  const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
351
+ const __wbindgen_enum_WorkerType = ["classic", "module"];
220
352
  const CreateSyncAccessHandleOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
221
353
  ? { register: () => { }, unregister: () => { } }
222
354
  : new FinalizationRegistry(ptr => wasm.__wbg_createsyncaccesshandleoptions_free(ptr >>> 0, 1));
@@ -239,12 +371,11 @@ export class CreateSyncAccessHandleOptions {
239
371
  wasm.__wbg_createsyncaccesshandleoptions_free(ptr, 0);
240
372
  }
241
373
  }
374
+ if (Symbol.dispose)
375
+ CreateSyncAccessHandleOptions.prototype[Symbol.dispose] = CreateSyncAccessHandleOptions.prototype.free;
242
376
  const DirEntryFinalization = (typeof FinalizationRegistry === 'undefined')
243
377
  ? { register: () => { }, unregister: () => { } }
244
378
  : new FinalizationRegistry(ptr => wasm.__wbg_direntry_free(ptr >>> 0, 1));
245
- /**
246
- * Directory entry with name and type information
247
- */
248
379
  export class DirEntry {
249
380
  static __wrap(ptr) {
250
381
  ptr = ptr >>> 0;
@@ -253,6 +384,15 @@ export class DirEntry {
253
384
  DirEntryFinalization.register(obj, obj.__wbg_ptr, obj);
254
385
  return obj;
255
386
  }
387
+ toJSON() {
388
+ return {
389
+ name: this.name,
390
+ type: this.type,
391
+ };
392
+ }
393
+ toString() {
394
+ return JSON.stringify(this);
395
+ }
256
396
  __destroy_into_raw() {
257
397
  const ptr = this.__wbg_ptr;
258
398
  this.__wbg_ptr = 0;
@@ -305,6 +445,103 @@ export class DirEntry {
305
445
  wasm.__wbg_set_direntry_type(this.__wbg_ptr, (__wbindgen_enum_DirEntryType.indexOf(arg0) + 1 || 3) - 1);
306
446
  }
307
447
  }
448
+ if (Symbol.dispose)
449
+ DirEntry.prototype[Symbol.dispose] = DirEntry.prototype.free;
450
+ const MetadataFinalization = (typeof FinalizationRegistry === 'undefined')
451
+ ? { register: () => { }, unregister: () => { } }
452
+ : new FinalizationRegistry(ptr => wasm.__wbg_metadata_free(ptr >>> 0, 1));
453
+ export class Metadata {
454
+ static __wrap(ptr) {
455
+ ptr = ptr >>> 0;
456
+ const obj = Object.create(Metadata.prototype);
457
+ obj.__wbg_ptr = ptr;
458
+ MetadataFinalization.register(obj, obj.__wbg_ptr, obj);
459
+ return obj;
460
+ }
461
+ toJSON() {
462
+ return {};
463
+ }
464
+ toString() {
465
+ return JSON.stringify(this);
466
+ }
467
+ __destroy_into_raw() {
468
+ const ptr = this.__wbg_ptr;
469
+ this.__wbg_ptr = 0;
470
+ MetadataFinalization.unregister(this);
471
+ return ptr;
472
+ }
473
+ free() {
474
+ const ptr = this.__destroy_into_raw();
475
+ wasm.__wbg_metadata_free(ptr, 0);
476
+ }
477
+ }
478
+ if (Symbol.dispose)
479
+ Metadata.prototype[Symbol.dispose] = Metadata.prototype.free;
480
+ const PoolOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
481
+ ? { register: () => { }, unregister: () => { } }
482
+ : new FinalizationRegistry(ptr => wasm.__wbg_pooloptions_free(ptr >>> 0, 1));
483
+ export class PoolOptions {
484
+ static __wrap(ptr) {
485
+ ptr = ptr >>> 0;
486
+ const obj = Object.create(PoolOptions.prototype);
487
+ obj.__wbg_ptr = ptr;
488
+ PoolOptionsFinalization.register(obj, obj.__wbg_ptr, obj);
489
+ return obj;
490
+ }
491
+ __destroy_into_raw() {
492
+ const ptr = this.__wbg_ptr;
493
+ this.__wbg_ptr = 0;
494
+ PoolOptionsFinalization.unregister(this);
495
+ return ptr;
496
+ }
497
+ free() {
498
+ const ptr = this.__destroy_into_raw();
499
+ wasm.__wbg_pooloptions_free(ptr, 0);
500
+ }
501
+ /**
502
+ * @returns {string}
503
+ */
504
+ get filename() {
505
+ let deferred1_0;
506
+ let deferred1_1;
507
+ try {
508
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
509
+ wasm.__wbg_get_pooloptions_filename(retptr, this.__wbg_ptr);
510
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
511
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
512
+ deferred1_0 = r0;
513
+ deferred1_1 = r1;
514
+ return getStringFromWasm0(r0, r1);
515
+ }
516
+ finally {
517
+ wasm.__wbindgen_add_to_stack_pointer(16);
518
+ wasm.__wbindgen_export_4(deferred1_0, deferred1_1, 1);
519
+ }
520
+ }
521
+ /**
522
+ * @param {string} arg0
523
+ */
524
+ set filename(arg0) {
525
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
526
+ const len0 = WASM_VECTOR_LEN;
527
+ wasm.__wbg_set_pooloptions_filename(this.__wbg_ptr, ptr0, len0);
528
+ }
529
+ /**
530
+ * @returns {number}
531
+ */
532
+ get maxConcurrency() {
533
+ const ret = wasm.__wbg_get_pooloptions_maxConcurrency(this.__wbg_ptr);
534
+ return ret >>> 0;
535
+ }
536
+ /**
537
+ * @param {number} arg0
538
+ */
539
+ set maxConcurrency(arg0) {
540
+ wasm.__wbg_set_pooloptions_maxConcurrency(this.__wbg_ptr, arg0);
541
+ }
542
+ }
543
+ if (Symbol.dispose)
544
+ PoolOptions.prototype[Symbol.dispose] = PoolOptions.prototype.free;
308
545
  const ProjectFinalization = (typeof FinalizationRegistry === 'undefined')
309
546
  ? { register: () => { }, unregister: () => { } }
310
547
  : new FinalizationRegistry(ptr => wasm.__wbg_project_free(ptr >>> 0, 1));
@@ -320,15 +557,68 @@ export class Project {
320
557
  wasm.__wbg_project_free(ptr, 0);
321
558
  }
322
559
  /**
323
- * @param {string} cwd
560
+ * @param {string} path
561
+ * @returns {Promise<void>}
324
562
  */
325
- constructor(cwd) {
326
- const ptr0 = passStringToWasm0(cwd, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
563
+ createDir(path) {
564
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
327
565
  const len0 = WASM_VECTOR_LEN;
328
- const ret = wasm.project_new(ptr0, len0);
329
- this.__wbg_ptr = ret >>> 0;
330
- ProjectFinalization.register(this, this.__wbg_ptr, this);
331
- return this;
566
+ const ret = wasm.project_createDir(this.__wbg_ptr, ptr0, len0);
567
+ return takeObject(ret);
568
+ }
569
+ /**
570
+ * @param {string} path
571
+ * @param {boolean} recursive
572
+ * @returns {Promise<void>}
573
+ */
574
+ removeDir(path, recursive) {
575
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
576
+ const len0 = WASM_VECTOR_LEN;
577
+ const ret = wasm.project_removeDir(this.__wbg_ptr, ptr0, len0, recursive);
578
+ return takeObject(ret);
579
+ }
580
+ /**
581
+ * @param {string} path
582
+ * @returns {Promise<void>}
583
+ */
584
+ removeFile(path) {
585
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
586
+ const len0 = WASM_VECTOR_LEN;
587
+ const ret = wasm.project_removeFile(this.__wbg_ptr, ptr0, len0);
588
+ return takeObject(ret);
589
+ }
590
+ /**
591
+ * @param {string} path
592
+ * @param {string} content
593
+ * @returns {Promise<void>}
594
+ */
595
+ writeString(path, content) {
596
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
597
+ const len0 = WASM_VECTOR_LEN;
598
+ const ptr1 = passStringToWasm0(content, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
599
+ const len1 = WASM_VECTOR_LEN;
600
+ const ret = wasm.project_writeString(this.__wbg_ptr, ptr0, len0, ptr1, len1);
601
+ return takeObject(ret);
602
+ }
603
+ /**
604
+ * @param {string} path
605
+ * @returns {Promise<void>}
606
+ */
607
+ createDirAll(path) {
608
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
609
+ const len0 = WASM_VECTOR_LEN;
610
+ const ret = wasm.project_createDirAll(this.__wbg_ptr, ptr0, len0);
611
+ return takeObject(ret);
612
+ }
613
+ /**
614
+ * @param {string} path
615
+ * @returns {Promise<string>}
616
+ */
617
+ readToString(path) {
618
+ const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
619
+ const len0 = WASM_VECTOR_LEN;
620
+ const ret = wasm.project_readToString(this.__wbg_ptr, ptr0, len0);
621
+ return takeObject(ret);
332
622
  }
333
623
  /**
334
624
  * @returns {string}
@@ -351,73 +641,124 @@ export class Project {
351
641
  }
352
642
  }
353
643
  /**
354
- * @param {string} package_lock
355
- * @returns {Promise<void>}
644
+ * @param {string} cwd
645
+ * @param {string} thread_url
356
646
  */
357
- install(package_lock) {
358
- const ptr0 = passStringToWasm0(package_lock, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
647
+ constructor(cwd, thread_url) {
648
+ const ptr0 = passStringToWasm0(cwd, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
359
649
  const len0 = WASM_VECTOR_LEN;
360
- const ret = wasm.project_install(this.__wbg_ptr, ptr0, len0);
361
- return takeObject(ret);
650
+ const ptr1 = passStringToWasm0(thread_url, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
651
+ const len1 = WASM_VECTOR_LEN;
652
+ const ret = wasm.project_new(ptr0, len0, ptr1, len1);
653
+ this.__wbg_ptr = ret >>> 0;
654
+ ProjectFinalization.register(this, this.__wbg_ptr, this);
655
+ return this;
362
656
  }
363
657
  /**
364
- * @returns {Promise<void>}
658
+ * Create a tar.gz archive and return bytes (no file I/O)
659
+ * This is useful for main thread execution without OPFS access
660
+ * @param {any} files
661
+ * @returns {Uint8Array}
365
662
  */
366
- build() {
367
- const ret = wasm.project_build(this.__wbg_ptr);
368
- return takeObject(ret);
663
+ gzip(files) {
664
+ try {
665
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
666
+ wasm.project_gzip(retptr, this.__wbg_ptr, addHeapObject(files));
667
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
668
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
669
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
670
+ if (r2) {
671
+ throw takeObject(r1);
672
+ }
673
+ return takeObject(r0);
674
+ }
675
+ finally {
676
+ wasm.__wbindgen_add_to_stack_pointer(16);
677
+ }
369
678
  }
370
679
  /**
371
680
  * @param {string} path
372
- * @returns {Promise<string>}
681
+ * @returns {Promise<Uint8Array>}
373
682
  */
374
- readFile(path) {
683
+ read(path) {
375
684
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
376
685
  const len0 = WASM_VECTOR_LEN;
377
- const ret = wasm.project_readFile(this.__wbg_ptr, ptr0, len0);
686
+ const ret = wasm.project_read(this.__wbg_ptr, ptr0, len0);
687
+ return takeObject(ret);
688
+ }
689
+ /**
690
+ * @returns {Promise<any>}
691
+ */
692
+ build() {
693
+ const ret = wasm.project_build(this.__wbg_ptr);
378
694
  return takeObject(ret);
379
695
  }
380
696
  /**
381
697
  * @param {string} path
382
- * @param {string} content
698
+ * @param {Uint8Array} content
383
699
  * @returns {Promise<void>}
384
700
  */
385
- writeFile(path, content) {
701
+ write(path, content) {
386
702
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
387
703
  const len0 = WASM_VECTOR_LEN;
388
- const ptr1 = passStringToWasm0(content, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
704
+ const ptr1 = passArray8ToWasm0(content, wasm.__wbindgen_export_1);
389
705
  const len1 = WASM_VECTOR_LEN;
390
- const ret = wasm.project_writeFile(this.__wbg_ptr, ptr0, len0, ptr1, len1);
706
+ const ret = wasm.project_write(this.__wbg_ptr, ptr0, len0, ptr1, len1);
391
707
  return takeObject(ret);
392
708
  }
393
709
  /**
394
- * @param {string} path
395
- * @returns {Promise<DirEntry[]>}
710
+ * @param {string} package_lock
711
+ * @param {number | null} [max_concurrent_downloads]
712
+ * @returns {Promise<void>}
396
713
  */
397
- readDir(path) {
398
- const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
714
+ install(package_lock, max_concurrent_downloads) {
715
+ const ptr0 = passStringToWasm0(package_lock, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
399
716
  const len0 = WASM_VECTOR_LEN;
400
- const ret = wasm.project_readDir(this.__wbg_ptr, ptr0, len0);
717
+ const ret = wasm.project_install(this.__wbg_ptr, ptr0, len0, isLikeNone(max_concurrent_downloads) ? 0x100000001 : (max_concurrent_downloads) >>> 0);
401
718
  return takeObject(ret);
402
719
  }
720
+ /**
721
+ * Calculate MD5 hash of byte content
722
+ * @param {Uint8Array} content
723
+ * @returns {string}
724
+ */
725
+ sigMd5(content) {
726
+ let deferred2_0;
727
+ let deferred2_1;
728
+ try {
729
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
730
+ const ptr0 = passArray8ToWasm0(content, wasm.__wbindgen_export_1);
731
+ const len0 = WASM_VECTOR_LEN;
732
+ wasm.project_sigMd5(retptr, this.__wbg_ptr, ptr0, len0);
733
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
734
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
735
+ deferred2_0 = r0;
736
+ deferred2_1 = r1;
737
+ return getStringFromWasm0(r0, r1);
738
+ }
739
+ finally {
740
+ wasm.__wbindgen_add_to_stack_pointer(16);
741
+ wasm.__wbindgen_export_4(deferred2_0, deferred2_1, 1);
742
+ }
743
+ }
403
744
  /**
404
745
  * @param {string} path
405
- * @returns {Promise<void>}
746
+ * @returns {Promise<Metadata>}
406
747
  */
407
- createDir(path) {
748
+ metadata(path) {
408
749
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
409
750
  const len0 = WASM_VECTOR_LEN;
410
- const ret = wasm.project_createDir(this.__wbg_ptr, ptr0, len0);
751
+ const ret = wasm.project_metadata(this.__wbg_ptr, ptr0, len0);
411
752
  return takeObject(ret);
412
753
  }
413
754
  /**
414
755
  * @param {string} path
415
- * @returns {Promise<void>}
756
+ * @returns {Promise<DirEntry[]>}
416
757
  */
417
- createDirAll(path) {
758
+ readDir(path) {
418
759
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
419
760
  const len0 = WASM_VECTOR_LEN;
420
- const ret = wasm.project_createDirAll(this.__wbg_ptr, ptr0, len0);
761
+ const ret = wasm.project_readDir(this.__wbg_ptr, ptr0, len0);
421
762
  return takeObject(ret);
422
763
  }
423
764
  /**
@@ -434,6 +775,74 @@ export class Project {
434
775
  return takeObject(ret);
435
776
  }
436
777
  }
778
+ if (Symbol.dispose)
779
+ Project.prototype[Symbol.dispose] = Project.prototype.free;
780
+ const WorkerTerminationFinalization = (typeof FinalizationRegistry === 'undefined')
781
+ ? { register: () => { }, unregister: () => { } }
782
+ : new FinalizationRegistry(ptr => wasm.__wbg_workertermination_free(ptr >>> 0, 1));
783
+ export class WorkerTermination {
784
+ static __wrap(ptr) {
785
+ ptr = ptr >>> 0;
786
+ const obj = Object.create(WorkerTermination.prototype);
787
+ obj.__wbg_ptr = ptr;
788
+ WorkerTerminationFinalization.register(obj, obj.__wbg_ptr, obj);
789
+ return obj;
790
+ }
791
+ __destroy_into_raw() {
792
+ const ptr = this.__wbg_ptr;
793
+ this.__wbg_ptr = 0;
794
+ WorkerTerminationFinalization.unregister(this);
795
+ return ptr;
796
+ }
797
+ free() {
798
+ const ptr = this.__destroy_into_raw();
799
+ wasm.__wbg_workertermination_free(ptr, 0);
800
+ }
801
+ /**
802
+ * @returns {string}
803
+ */
804
+ get filename() {
805
+ let deferred1_0;
806
+ let deferred1_1;
807
+ try {
808
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
809
+ wasm.__wbg_get_pooloptions_filename(retptr, this.__wbg_ptr);
810
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
811
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
812
+ deferred1_0 = r0;
813
+ deferred1_1 = r1;
814
+ return getStringFromWasm0(r0, r1);
815
+ }
816
+ finally {
817
+ wasm.__wbindgen_add_to_stack_pointer(16);
818
+ wasm.__wbindgen_export_4(deferred1_0, deferred1_1, 1);
819
+ }
820
+ }
821
+ /**
822
+ * @param {string} arg0
823
+ */
824
+ set filename(arg0) {
825
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
826
+ const len0 = WASM_VECTOR_LEN;
827
+ wasm.__wbg_set_pooloptions_filename(this.__wbg_ptr, ptr0, len0);
828
+ }
829
+ /**
830
+ * @returns {number}
831
+ */
832
+ get workerId() {
833
+ const ret = wasm.__wbg_get_pooloptions_maxConcurrency(this.__wbg_ptr);
834
+ return ret >>> 0;
835
+ }
836
+ /**
837
+ * @param {number} arg0
838
+ */
839
+ set workerId(arg0) {
840
+ wasm.__wbg_set_pooloptions_maxConcurrency(this.__wbg_ptr, arg0);
841
+ }
842
+ }
843
+ if (Symbol.dispose)
844
+ WorkerTermination.prototype[Symbol.dispose] = WorkerTermination.prototype.free;
845
+ const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
437
846
  async function __wbg_load(module, imports) {
438
847
  if (typeof Response === 'function' && module instanceof Response) {
439
848
  if (typeof WebAssembly.instantiateStreaming === 'function') {
@@ -441,7 +850,8 @@ async function __wbg_load(module, imports) {
441
850
  return await WebAssembly.instantiateStreaming(module, imports);
442
851
  }
443
852
  catch (e) {
444
- if (module.headers.get('Content-Type') != 'application/wasm') {
853
+ const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
854
+ if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
445
855
  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);
446
856
  }
447
857
  else {
@@ -465,113 +875,221 @@ async function __wbg_load(module, imports) {
465
875
  function __wbg_get_imports() {
466
876
  const imports = {};
467
877
  imports.wbg = {};
468
- imports.wbg.__wbg_abort_410ec47a64ac6117 = function (arg0, arg1) {
469
- getObject(arg0).abort(getObject(arg1));
878
+ imports.wbg.__wbg_Error_e17e777aac105295 = function (arg0, arg1) {
879
+ const ret = Error(getStringFromWasm0(arg0, arg1));
880
+ return addHeapObject(ret);
881
+ };
882
+ imports.wbg.__wbg_Number_998bea33bd87c3e0 = function (arg0) {
883
+ const ret = Number(getObject(arg0));
884
+ return ret;
885
+ };
886
+ imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function (arg0, arg1) {
887
+ const ret = String(getObject(arg1));
888
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
889
+ const len1 = WASM_VECTOR_LEN;
890
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
891
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
470
892
  };
471
- imports.wbg.__wbg_abort_775ef1d17fc65868 = function (arg0) {
893
+ imports.wbg.__wbg_abort_67e1b49bf6614565 = function (arg0) {
472
894
  getObject(arg0).abort();
473
895
  };
474
- imports.wbg.__wbg_append_8c7dd8d641a5f01b = function () {
896
+ imports.wbg.__wbg_abort_d830bf2e9aa6ec5b = function (arg0, arg1) {
897
+ getObject(arg0).abort(getObject(arg1));
898
+ };
899
+ imports.wbg.__wbg_append_72a3c0addd2bce38 = function () {
475
900
  return handleError(function (arg0, arg1, arg2, arg3, arg4) {
476
901
  getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
477
902
  }, arguments);
478
903
  };
479
- imports.wbg.__wbg_arrayBuffer_d1b44c4390db422f = function () {
904
+ imports.wbg.__wbg_arrayBuffer_9c99b8e2809e8cbb = function () {
480
905
  return handleError(function (arg0) {
481
906
  const ret = getObject(arg0).arrayBuffer();
482
907
  return addHeapObject(ret);
483
908
  }, arguments);
484
909
  };
485
- imports.wbg.__wbg_buffer_609cc3eee51ed158 = function (arg0) {
910
+ imports.wbg.__wbg_async_d65ec5b7c88f9d4a = function (arg0) {
911
+ const ret = getObject(arg0).async;
912
+ return ret;
913
+ };
914
+ imports.wbg.__wbg_buffer_40c0928cc927f62a = function (arg0) {
486
915
  const ret = getObject(arg0).buffer;
487
916
  return addHeapObject(ret);
488
917
  };
489
- imports.wbg.__wbg_call_672a4d21634d4a24 = function () {
918
+ imports.wbg.__wbg_call_13410aac570ffff7 = function () {
490
919
  return handleError(function (arg0, arg1) {
491
920
  const ret = getObject(arg0).call(getObject(arg1));
492
921
  return addHeapObject(ret);
493
922
  }, arguments);
494
923
  };
495
- imports.wbg.__wbg_call_7cccdd69e0791ae2 = function () {
924
+ imports.wbg.__wbg_call_a5400b25a865cfd8 = function () {
496
925
  return handleError(function (arg0, arg1, arg2) {
497
926
  const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
498
927
  return addHeapObject(ret);
499
928
  }, arguments);
500
929
  };
501
- imports.wbg.__wbg_clearTimeout_0b53d391c1b94dda = function (arg0) {
930
+ imports.wbg.__wbg_changedHandle_51cdba7dd85fac27 = function (arg0) {
931
+ const ret = getObject(arg0).changedHandle;
932
+ return addHeapObject(ret);
933
+ };
934
+ imports.wbg.__wbg_clearTimeout_7a42b49784aea641 = function (arg0) {
502
935
  const ret = clearTimeout(takeObject(arg0));
503
936
  return addHeapObject(ret);
504
937
  };
505
- imports.wbg.__wbg_close_a17af48266bd9942 = function (arg0) {
938
+ imports.wbg.__wbg_close_9870d6f25f3c1f31 = function (arg0) {
506
939
  getObject(arg0).close();
507
940
  };
941
+ imports.wbg.__wbg_createObjectURL_c80225986d2b928b = function () {
942
+ return handleError(function (arg0, arg1) {
943
+ const ret = URL.createObjectURL(getObject(arg1));
944
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
945
+ const len1 = WASM_VECTOR_LEN;
946
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
947
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
948
+ }, arguments);
949
+ };
508
950
  imports.wbg.__wbg_createsyncaccesshandleoptions_new = function (arg0) {
509
951
  const ret = CreateSyncAccessHandleOptions.__wrap(arg0);
510
952
  return addHeapObject(ret);
511
953
  };
954
+ imports.wbg.__wbg_data_9ab529722bcc4e6c = function (arg0) {
955
+ const ret = getObject(arg0).data;
956
+ return addHeapObject(ret);
957
+ };
958
+ imports.wbg.__wbg_debug_7f3000e7358ea482 = function (arg0, arg1, arg2, arg3) {
959
+ console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
960
+ };
961
+ imports.wbg.__wbg_debug_c906769d2f88c17b = function (arg0) {
962
+ console.debug(getObject(arg0));
963
+ };
512
964
  imports.wbg.__wbg_direntry_new = function (arg0) {
513
965
  const ret = DirEntry.__wrap(arg0);
514
966
  return addHeapObject(ret);
515
967
  };
516
- imports.wbg.__wbg_done_769e5ede4b31c67b = function (arg0) {
968
+ imports.wbg.__wbg_done_75ed0ee6dd243d9d = function (arg0) {
517
969
  const ret = getObject(arg0).done;
518
970
  return ret;
519
971
  };
520
- imports.wbg.__wbg_entries_19efe296f7d36df9 = function (arg0) {
972
+ imports.wbg.__wbg_entries_1a3c3b9544532397 = function (arg0) {
521
973
  const ret = getObject(arg0).entries();
522
974
  return addHeapObject(ret);
523
975
  };
524
- imports.wbg.__wbg_fetch_11bff8299d0ecd2b = function (arg0) {
976
+ imports.wbg.__wbg_error_0889f151acea569e = function (arg0, arg1, arg2, arg3) {
977
+ console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
978
+ };
979
+ imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function (arg0, arg1) {
980
+ let deferred0_0;
981
+ let deferred0_1;
982
+ try {
983
+ deferred0_0 = arg0;
984
+ deferred0_1 = arg1;
985
+ console.error(getStringFromWasm0(arg0, arg1));
986
+ }
987
+ finally {
988
+ wasm.__wbindgen_export_4(deferred0_0, deferred0_1, 1);
989
+ }
990
+ };
991
+ imports.wbg.__wbg_error_99981e16d476aa5c = function (arg0) {
992
+ console.error(getObject(arg0));
993
+ };
994
+ imports.wbg.__wbg_eval_631dc78d65611b94 = function () {
995
+ return handleError(function (arg0, arg1) {
996
+ const ret = eval(getStringFromWasm0(arg0, arg1));
997
+ return addHeapObject(ret);
998
+ }, arguments);
999
+ };
1000
+ imports.wbg.__wbg_fetch_74a3e84ebd2c9a0e = function (arg0) {
525
1001
  const ret = fetch(getObject(arg0));
526
1002
  return addHeapObject(ret);
527
1003
  };
528
- imports.wbg.__wbg_fetch_509096533071c657 = function (arg0, arg1) {
1004
+ imports.wbg.__wbg_fetch_87aed7f306ec6d63 = function (arg0, arg1) {
529
1005
  const ret = getObject(arg0).fetch(getObject(arg1));
530
1006
  return addHeapObject(ret);
531
1007
  };
532
- imports.wbg.__wbg_from_2a5d3e218e67aa85 = function (arg0) {
1008
+ imports.wbg.__wbg_flush_d2487a24f3bc3cf4 = function () {
1009
+ return handleError(function (arg0) {
1010
+ getObject(arg0).flush();
1011
+ }, arguments);
1012
+ };
1013
+ imports.wbg.__wbg_from_88bc52ce20ba6318 = function (arg0) {
533
1014
  const ret = Array.from(getObject(arg0));
534
1015
  return addHeapObject(ret);
535
1016
  };
536
- imports.wbg.__wbg_getDirectoryHandle_c48a138373d79b3d = function (arg0, arg1, arg2, arg3) {
1017
+ imports.wbg.__wbg_getDirectoryHandle_0fb26677897f1e21 = function (arg0, arg1, arg2, arg3) {
537
1018
  const ret = getObject(arg0).getDirectoryHandle(getStringFromWasm0(arg1, arg2), getObject(arg3));
538
1019
  return addHeapObject(ret);
539
1020
  };
540
- imports.wbg.__wbg_getDirectory_c206b0540c9acc0f = function (arg0) {
1021
+ imports.wbg.__wbg_getDirectory_8564f4b4ae7ee35c = function (arg0) {
541
1022
  const ret = getObject(arg0).getDirectory();
542
1023
  return addHeapObject(ret);
543
1024
  };
544
- imports.wbg.__wbg_getFileHandle_5fb877d1ecc74d52 = function (arg0, arg1, arg2, arg3) {
1025
+ imports.wbg.__wbg_getFileHandle_9f23d09c2497fa5f = function (arg0, arg1, arg2, arg3) {
545
1026
  const ret = getObject(arg0).getFileHandle(getStringFromWasm0(arg1, arg2), getObject(arg3));
546
1027
  return addHeapObject(ret);
547
1028
  };
548
- imports.wbg.__wbg_getSize_e7dbd5ffa0b43df1 = function () {
1029
+ imports.wbg.__wbg_getRandomValues_80578b2ff2a093ba = function () {
1030
+ return handleError(function (arg0) {
1031
+ globalThis.crypto.getRandomValues(getObject(arg0));
1032
+ }, arguments);
1033
+ };
1034
+ imports.wbg.__wbg_getSize_56a06761973a6cd7 = function () {
549
1035
  return handleError(function (arg0) {
550
1036
  const ret = getObject(arg0).getSize();
551
1037
  return ret;
552
1038
  }, arguments);
553
1039
  };
554
- imports.wbg.__wbg_get_67b2ba62fc30de12 = function () {
1040
+ imports.wbg.__wbg_get_0da715ceaecea5c8 = function (arg0, arg1) {
1041
+ const ret = getObject(arg0)[arg1 >>> 0];
1042
+ return addHeapObject(ret);
1043
+ };
1044
+ imports.wbg.__wbg_get_458e874b43b18b25 = function () {
555
1045
  return handleError(function (arg0, arg1) {
556
1046
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
557
1047
  return addHeapObject(ret);
558
1048
  }, arguments);
559
1049
  };
560
- imports.wbg.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
561
- const ret = getObject(arg0)[arg1 >>> 0];
1050
+ imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function (arg0, arg1) {
1051
+ const ret = getObject(arg0)[getObject(arg1)];
562
1052
  return addHeapObject(ret);
563
1053
  };
564
- imports.wbg.__wbg_has_a5ea9117f258a0ec = function () {
1054
+ imports.wbg.__wbg_has_b89e451f638123e3 = function () {
565
1055
  return handleError(function (arg0, arg1) {
566
1056
  const ret = Reflect.has(getObject(arg0), getObject(arg1));
567
1057
  return ret;
568
1058
  }, arguments);
569
1059
  };
570
- imports.wbg.__wbg_headers_9cb51cfd2ac780a4 = function (arg0) {
1060
+ imports.wbg.__wbg_headers_29fec3c72865cd75 = function (arg0) {
571
1061
  const ret = getObject(arg0).headers;
572
1062
  return addHeapObject(ret);
573
1063
  };
574
- imports.wbg.__wbg_instanceof_DomException_ed1ccb7aaf39034c = function (arg0) {
1064
+ imports.wbg.__wbg_info_15c3631232fceddb = function (arg0, arg1, arg2, arg3) {
1065
+ console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1066
+ };
1067
+ imports.wbg.__wbg_info_6cf68c1a86a92f6a = function (arg0) {
1068
+ console.info(getObject(arg0));
1069
+ };
1070
+ imports.wbg.__wbg_instanceof_ArrayBuffer_67f3012529f6a2dd = function (arg0) {
1071
+ let result;
1072
+ try {
1073
+ result = getObject(arg0) instanceof ArrayBuffer;
1074
+ }
1075
+ catch (_) {
1076
+ result = false;
1077
+ }
1078
+ const ret = result;
1079
+ return ret;
1080
+ };
1081
+ imports.wbg.__wbg_instanceof_DedicatedWorkerGlobalScope_a054a9af652220ba = function (arg0) {
1082
+ let result;
1083
+ try {
1084
+ result = getObject(arg0) instanceof DedicatedWorkerGlobalScope;
1085
+ }
1086
+ catch (_) {
1087
+ result = false;
1088
+ }
1089
+ const ret = result;
1090
+ return ret;
1091
+ };
1092
+ imports.wbg.__wbg_instanceof_DomException_bd63c2a0e0b53ed5 = function (arg0) {
575
1093
  let result;
576
1094
  try {
577
1095
  result = getObject(arg0) instanceof DOMException;
@@ -582,7 +1100,18 @@ function __wbg_get_imports() {
582
1100
  const ret = result;
583
1101
  return ret;
584
1102
  };
585
- imports.wbg.__wbg_instanceof_Response_f2cc20d9f7dfd644 = function (arg0) {
1103
+ imports.wbg.__wbg_instanceof_FileSystemDirectoryHandle_ef2de8bfd438118c = function (arg0) {
1104
+ let result;
1105
+ try {
1106
+ result = getObject(arg0) instanceof FileSystemDirectoryHandle;
1107
+ }
1108
+ catch (_) {
1109
+ result = false;
1110
+ }
1111
+ const ret = result;
1112
+ return ret;
1113
+ };
1114
+ imports.wbg.__wbg_instanceof_Response_50fde2cd696850bf = function (arg0) {
586
1115
  let result;
587
1116
  try {
588
1117
  result = getObject(arg0) instanceof Response;
@@ -593,43 +1122,76 @@ function __wbg_get_imports() {
593
1122
  const ret = result;
594
1123
  return ret;
595
1124
  };
596
- imports.wbg.__wbg_iterator_9a24c88df860dc65 = function () {
1125
+ imports.wbg.__wbg_instanceof_Uint8Array_9a8378d955933db7 = function (arg0) {
1126
+ let result;
1127
+ try {
1128
+ result = getObject(arg0) instanceof Uint8Array;
1129
+ }
1130
+ catch (_) {
1131
+ result = false;
1132
+ }
1133
+ const ret = result;
1134
+ return ret;
1135
+ };
1136
+ imports.wbg.__wbg_isArray_030cce220591fb41 = function (arg0) {
1137
+ const ret = Array.isArray(getObject(arg0));
1138
+ return ret;
1139
+ };
1140
+ imports.wbg.__wbg_isSafeInteger_1c0d1af5542e102a = function (arg0) {
1141
+ const ret = Number.isSafeInteger(getObject(arg0));
1142
+ return ret;
1143
+ };
1144
+ imports.wbg.__wbg_iterator_f370b34483c71a1c = function () {
597
1145
  const ret = Symbol.iterator;
598
1146
  return addHeapObject(ret);
599
1147
  };
600
- imports.wbg.__wbg_kind_e326a1c6387aad5e = function (arg0) {
1148
+ imports.wbg.__wbg_kind_56b64eb6cc62543d = function (arg0) {
601
1149
  const ret = getObject(arg0).kind;
602
1150
  return (__wbindgen_enum_FileSystemHandleKind.indexOf(ret) + 1 || 3) - 1;
603
1151
  };
604
- imports.wbg.__wbg_length_a446193dc22c12f8 = function (arg0) {
1152
+ imports.wbg.__wbg_length_186546c51cd61acd = function (arg0) {
1153
+ const ret = getObject(arg0).length;
1154
+ return ret;
1155
+ };
1156
+ imports.wbg.__wbg_length_6bb7e81f9d7713e4 = function (arg0) {
605
1157
  const ret = getObject(arg0).length;
606
1158
  return ret;
607
1159
  };
608
- imports.wbg.__wbg_name_f2d27098bfd843e7 = function (arg0, arg1) {
1160
+ imports.wbg.__wbg_metadata_new = function (arg0) {
1161
+ const ret = Metadata.__wrap(arg0);
1162
+ return addHeapObject(ret);
1163
+ };
1164
+ imports.wbg.__wbg_name_f75f535832c8ea6b = function (arg0, arg1) {
609
1165
  const ret = getObject(arg1).name;
610
1166
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
611
1167
  const len1 = WASM_VECTOR_LEN;
612
1168
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
613
1169
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
614
1170
  };
615
- imports.wbg.__wbg_navigator_0a9bf1120e24fec2 = function (arg0) {
1171
+ imports.wbg.__wbg_navigator_bfaf1b0b0eb48da2 = function (arg0) {
616
1172
  const ret = getObject(arg0).navigator;
617
1173
  return addHeapObject(ret);
618
1174
  };
619
- imports.wbg.__wbg_new_018dcc2d6c8c2f6a = function () {
620
- return handleError(function () {
621
- const ret = new Headers();
622
- return addHeapObject(ret);
623
- }, arguments);
1175
+ imports.wbg.__wbg_new_19c25a3f2fa63a02 = function () {
1176
+ const ret = new Object();
1177
+ return addHeapObject(ret);
1178
+ };
1179
+ imports.wbg.__wbg_new_1f3a344cf3123716 = function () {
1180
+ const ret = new Array();
1181
+ return addHeapObject(ret);
1182
+ };
1183
+ imports.wbg.__wbg_new_2368e31ffa149431 = function (arg0) {
1184
+ const ret = new Int32Array(getObject(arg0));
1185
+ return addHeapObject(ret);
624
1186
  };
625
- imports.wbg.__wbg_new_23a2665fac83c611 = function (arg0, arg1) {
1187
+ imports.wbg.__wbg_new_2e3c58a15f39f5f9 = function (arg0, arg1) {
626
1188
  try {
627
1189
  var state0 = { a: arg0, b: arg1 };
628
1190
  var cb0 = (arg0, arg1) => {
629
1191
  const a = state0.a;
630
1192
  state0.a = 0;
631
1193
  try {
632
- return __wbg_adapter_66(a, state0.b, arg0, arg1);
1194
+ return __wbg_adapter_94(a, state0.b, arg0, arg1);
633
1195
  }
634
1196
  finally {
635
1197
  state0.a = a;
@@ -642,178 +1204,339 @@ function __wbg_get_imports() {
642
1204
  state0.a = state0.b = 0;
643
1205
  }
644
1206
  };
645
- imports.wbg.__wbg_new_405e22f390576ce2 = function () {
646
- const ret = new Object();
1207
+ imports.wbg.__wbg_new_2ff1f68f3676ea53 = function () {
1208
+ const ret = new Map();
647
1209
  return addHeapObject(ret);
648
1210
  };
649
- imports.wbg.__wbg_new_a12002a7f91c75be = function (arg0) {
1211
+ imports.wbg.__wbg_new_638ebfaedbf32a5e = function (arg0) {
650
1212
  const ret = new Uint8Array(getObject(arg0));
651
1213
  return addHeapObject(ret);
652
1214
  };
653
- imports.wbg.__wbg_new_e25e5aab09ff45db = function () {
1215
+ imports.wbg.__wbg_new_66b9434b4e59b63e = function () {
654
1216
  return handleError(function () {
655
1217
  const ret = new AbortController();
656
1218
  return addHeapObject(ret);
657
1219
  }, arguments);
658
1220
  };
659
- imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function (arg0, arg1) {
1221
+ imports.wbg.__wbg_new_8a6f238a6ece86ea = function () {
1222
+ const ret = new Error();
1223
+ return addHeapObject(ret);
1224
+ };
1225
+ imports.wbg.__wbg_new_9b2344bc56f77a2b = function (arg0) {
1226
+ const ret = new FileSystemObserver(getObject(arg0));
1227
+ return addHeapObject(ret);
1228
+ };
1229
+ imports.wbg.__wbg_new_9d476835fd376de6 = function () {
1230
+ return handleError(function (arg0, arg1) {
1231
+ const ret = new Worker(getStringFromWasm0(arg0, arg1));
1232
+ return addHeapObject(ret);
1233
+ }, arguments);
1234
+ };
1235
+ imports.wbg.__wbg_new_f6e53210afea8e45 = function () {
1236
+ return handleError(function () {
1237
+ const ret = new Headers();
1238
+ return addHeapObject(ret);
1239
+ }, arguments);
1240
+ };
1241
+ imports.wbg.__wbg_newfromslice_074c56947bd43469 = function (arg0, arg1) {
1242
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1243
+ return addHeapObject(ret);
1244
+ };
1245
+ imports.wbg.__wbg_newnoargs_254190557c45b4ec = function (arg0, arg1) {
660
1246
  const ret = new Function(getStringFromWasm0(arg0, arg1));
661
1247
  return addHeapObject(ret);
662
1248
  };
663
- imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function (arg0, arg1, arg2) {
664
- const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
1249
+ imports.wbg.__wbg_newwithlength_a167dcc7aaa3ba77 = function (arg0) {
1250
+ const ret = new Uint8Array(arg0 >>> 0);
665
1251
  return addHeapObject(ret);
666
1252
  };
667
- imports.wbg.__wbg_newwithstrandinit_06c535e0a867c635 = function () {
1253
+ imports.wbg.__wbg_newwithoptions_4fd7ce7655102e6f = function () {
1254
+ return handleError(function (arg0, arg1, arg2) {
1255
+ const ret = new Worker(getStringFromWasm0(arg0, arg1), getObject(arg2));
1256
+ return addHeapObject(ret);
1257
+ }, arguments);
1258
+ };
1259
+ imports.wbg.__wbg_newwithstrandinit_b5d168a29a3fd85f = function () {
668
1260
  return handleError(function (arg0, arg1, arg2) {
669
1261
  const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
670
1262
  return addHeapObject(ret);
671
1263
  }, arguments);
672
1264
  };
673
- imports.wbg.__wbg_next_25feadfc0913fea9 = function (arg0) {
674
- const ret = getObject(arg0).next;
675
- return addHeapObject(ret);
1265
+ imports.wbg.__wbg_newwithstrsequence_a1a92f1d042bca10 = function () {
1266
+ return handleError(function (arg0) {
1267
+ const ret = new Blob(getObject(arg0));
1268
+ return addHeapObject(ret);
1269
+ }, arguments);
676
1270
  };
677
- imports.wbg.__wbg_next_6574e1a8a62d1055 = function () {
1271
+ imports.wbg.__wbg_next_1142e1658f75ec63 = function () {
678
1272
  return handleError(function (arg0) {
679
1273
  const ret = getObject(arg0).next();
680
1274
  return addHeapObject(ret);
681
1275
  }, arguments);
682
1276
  };
683
- imports.wbg.__wbg_next_c3ab0d59847b3b5c = function () {
1277
+ imports.wbg.__wbg_next_5b3530e612fde77d = function (arg0) {
1278
+ const ret = getObject(arg0).next;
1279
+ return addHeapObject(ret);
1280
+ };
1281
+ imports.wbg.__wbg_next_692e82279131b03c = function () {
684
1282
  return handleError(function (arg0) {
685
1283
  const ret = getObject(arg0).next();
686
1284
  return addHeapObject(ret);
687
1285
  }, arguments);
688
1286
  };
689
- imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function (arg0) {
1287
+ imports.wbg.__wbg_now_0dc4920a47cf7280 = function (arg0) {
1288
+ const ret = getObject(arg0).now();
1289
+ return ret;
1290
+ };
1291
+ imports.wbg.__wbg_now_1e80617bcee43265 = function () {
1292
+ const ret = Date.now();
1293
+ return ret;
1294
+ };
1295
+ imports.wbg.__wbg_observe_a98641e2bc5e6a17 = function (arg0, arg1, arg2) {
1296
+ const ret = getObject(arg0).observe(getObject(arg1), getObject(arg2));
1297
+ return addHeapObject(ret);
1298
+ };
1299
+ imports.wbg.__wbg_of_26ef42cc9a4270a1 = function (arg0, arg1, arg2) {
1300
+ const ret = Array.of(getObject(arg0), getObject(arg1), getObject(arg2));
1301
+ return addHeapObject(ret);
1302
+ };
1303
+ imports.wbg.__wbg_performance_6adc3b899e448a23 = function (arg0) {
1304
+ const ret = getObject(arg0).performance;
1305
+ return addHeapObject(ret);
1306
+ };
1307
+ imports.wbg.__wbg_pooloptions_new = function (arg0) {
1308
+ const ret = PoolOptions.__wrap(arg0);
1309
+ return addHeapObject(ret);
1310
+ };
1311
+ imports.wbg.__wbg_postMessage_38909232d65f5870 = function () {
1312
+ return handleError(function (arg0, arg1) {
1313
+ getObject(arg0).postMessage(getObject(arg1));
1314
+ }, arguments);
1315
+ };
1316
+ imports.wbg.__wbg_postMessage_50e57097ede408b9 = function () {
1317
+ return handleError(function (arg0, arg1) {
1318
+ getObject(arg0).postMessage(getObject(arg1));
1319
+ }, arguments);
1320
+ };
1321
+ imports.wbg.__wbg_prototypesetcall_3d4a26c1ed734349 = function (arg0, arg1, arg2) {
1322
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
1323
+ };
1324
+ imports.wbg.__wbg_push_330b2eb93e4e1212 = function (arg0, arg1) {
1325
+ const ret = getObject(arg0).push(getObject(arg1));
1326
+ return ret;
1327
+ };
1328
+ imports.wbg.__wbg_queueMicrotask_25d0739ac89e8c88 = function (arg0) {
690
1329
  queueMicrotask(getObject(arg0));
691
1330
  };
692
- imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function (arg0) {
1331
+ imports.wbg.__wbg_queueMicrotask_4488407636f5bf24 = function (arg0) {
693
1332
  const ret = getObject(arg0).queueMicrotask;
694
1333
  return addHeapObject(ret);
695
1334
  };
696
- imports.wbg.__wbg_read_f8fdd4b410209222 = function () {
1335
+ imports.wbg.__wbg_random_7ed63a0b38ee3b75 = function () {
1336
+ const ret = Math.random();
1337
+ return ret;
1338
+ };
1339
+ imports.wbg.__wbg_read_a43bb46027f02ee9 = function () {
697
1340
  return handleError(function (arg0, arg1, arg2, arg3) {
698
1341
  const ret = getObject(arg0).read(getArrayU8FromWasm0(arg1, arg2), getObject(arg3));
699
1342
  return ret;
700
1343
  }, arguments);
701
1344
  };
702
- imports.wbg.__wbg_resolve_4851785c9c5f573d = function (arg0) {
1345
+ imports.wbg.__wbg_read_c8c5b5e1fd6b9760 = function () {
1346
+ return handleError(function (arg0, arg1, arg2) {
1347
+ const ret = getObject(arg0).read(getArrayU8FromWasm0(arg1, arg2));
1348
+ return ret;
1349
+ }, arguments);
1350
+ };
1351
+ imports.wbg.__wbg_relativePathComponents_71b7af6cc056eaa1 = function (arg0) {
1352
+ const ret = getObject(arg0).relativePathComponents;
1353
+ return addHeapObject(ret);
1354
+ };
1355
+ imports.wbg.__wbg_removeEntry_beea80e74f68ed5b = function (arg0, arg1, arg2, arg3) {
1356
+ const ret = getObject(arg0).removeEntry(getStringFromWasm0(arg1, arg2), getObject(arg3));
1357
+ return addHeapObject(ret);
1358
+ };
1359
+ imports.wbg.__wbg_resolve_4055c623acdd6a1b = function (arg0) {
703
1360
  const ret = Promise.resolve(getObject(arg0));
704
1361
  return addHeapObject(ret);
705
1362
  };
706
- imports.wbg.__wbg_setTimeout_73ce8df12de4f2f2 = function (arg0, arg1) {
1363
+ imports.wbg.__wbg_setTimeout_63008613644b07af = function () {
1364
+ return handleError(function (arg0, arg1, arg2) {
1365
+ const ret = getObject(arg0).setTimeout(getObject(arg1), arg2);
1366
+ return addHeapObject(ret);
1367
+ }, arguments);
1368
+ };
1369
+ imports.wbg.__wbg_setTimeout_7bb3429662ab1e70 = function (arg0, arg1) {
707
1370
  const ret = setTimeout(getObject(arg0), arg1);
708
1371
  return addHeapObject(ret);
709
1372
  };
710
- imports.wbg.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
711
- getObject(arg0).set(getObject(arg1), arg2 >>> 0);
1373
+ imports.wbg.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
1374
+ getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
712
1375
  };
713
- imports.wbg.__wbg_setat_2a071a392643c10e = function (arg0, arg1) {
1376
+ imports.wbg.__wbg_set_90f6c0f7bd8c0415 = function (arg0, arg1, arg2) {
1377
+ getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
1378
+ };
1379
+ imports.wbg.__wbg_set_b7f1cf4fae26fe2a = function (arg0, arg1, arg2) {
1380
+ const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
1381
+ return addHeapObject(ret);
1382
+ };
1383
+ imports.wbg.__wbg_setat_f8fc70f546036b10 = function (arg0, arg1) {
714
1384
  getObject(arg0).at = arg1;
715
1385
  };
716
- imports.wbg.__wbg_setbody_5923b78a95eedf29 = function (arg0, arg1) {
1386
+ imports.wbg.__wbg_setbody_c8460bdf44147df8 = function (arg0, arg1) {
717
1387
  getObject(arg0).body = getObject(arg1);
718
1388
  };
719
- imports.wbg.__wbg_setcreate_139bad94b2874fb5 = function (arg0, arg1) {
1389
+ imports.wbg.__wbg_setcache_90ca4ad8a8ad40d3 = function (arg0, arg1) {
1390
+ getObject(arg0).cache = __wbindgen_enum_RequestCache[arg1];
1391
+ };
1392
+ imports.wbg.__wbg_setcreate_1eb73f4ea713c1ad = function (arg0, arg1) {
720
1393
  getObject(arg0).create = arg1 !== 0;
721
1394
  };
722
- imports.wbg.__wbg_setcreate_4ca762e23d9f78da = function (arg0, arg1) {
1395
+ imports.wbg.__wbg_setcreate_2d32aa4bbcd1d7af = function (arg0, arg1) {
723
1396
  getObject(arg0).create = arg1 !== 0;
724
1397
  };
725
- imports.wbg.__wbg_setcredentials_c3a22f1cd105a2c6 = function (arg0, arg1) {
1398
+ imports.wbg.__wbg_setcredentials_9cd60d632c9d5dfc = function (arg0, arg1) {
726
1399
  getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
727
1400
  };
728
- imports.wbg.__wbg_setheaders_834c0bdb6a8949ad = function (arg0, arg1) {
1401
+ imports.wbg.__wbg_setheaders_0052283e2f3503d1 = function (arg0, arg1) {
729
1402
  getObject(arg0).headers = getObject(arg1);
730
1403
  };
731
- imports.wbg.__wbg_setmethod_3c5280fe5d890842 = function (arg0, arg1, arg2) {
1404
+ imports.wbg.__wbg_setmethod_9b504d5b855b329c = function (arg0, arg1, arg2) {
732
1405
  getObject(arg0).method = getStringFromWasm0(arg1, arg2);
733
1406
  };
734
- imports.wbg.__wbg_setmode_5dc300b865044b65 = function (arg0, arg1) {
1407
+ imports.wbg.__wbg_setmode_a23e1a2ad8b512f8 = function (arg0, arg1) {
735
1408
  getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];
736
1409
  };
737
- imports.wbg.__wbg_setsignal_75b21ef3a81de905 = function (arg0, arg1) {
1410
+ imports.wbg.__wbg_setname_6c6a9da905405176 = function (arg0, arg1, arg2) {
1411
+ getObject(arg0).name = getStringFromWasm0(arg1, arg2);
1412
+ };
1413
+ imports.wbg.__wbg_setonmessage_c943f7891405ab22 = function (arg0, arg1) {
1414
+ getObject(arg0).onmessage = getObject(arg1);
1415
+ };
1416
+ imports.wbg.__wbg_setrecursive_072599988d5f7e8d = function (arg0, arg1) {
1417
+ getObject(arg0).recursive = arg1 !== 0;
1418
+ };
1419
+ imports.wbg.__wbg_setrecursive_0b3e76f293311ab5 = function (arg0, arg1) {
1420
+ getObject(arg0).recursive = arg1 !== 0;
1421
+ };
1422
+ imports.wbg.__wbg_setsignal_8c45ad1247a74809 = function (arg0, arg1) {
738
1423
  getObject(arg0).signal = getObject(arg1);
739
1424
  };
740
- imports.wbg.__wbg_signal_aaf9ad74119f20a4 = function (arg0) {
1425
+ imports.wbg.__wbg_settype_3dc790721d11b6f5 = function (arg0, arg1) {
1426
+ getObject(arg0).type = __wbindgen_enum_WorkerType[arg1];
1427
+ };
1428
+ imports.wbg.__wbg_signal_da4d466ce86118b5 = function (arg0) {
741
1429
  const ret = getObject(arg0).signal;
742
1430
  return addHeapObject(ret);
743
1431
  };
744
- imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function () {
1432
+ imports.wbg.__wbg_size_8f84e7768fba0589 = function (arg0) {
1433
+ const ret = getObject(arg0).size;
1434
+ return ret;
1435
+ };
1436
+ imports.wbg.__wbg_slice_337130a0e2389850 = function () {
1437
+ return handleError(function (arg0, arg1, arg2, arg3, arg4) {
1438
+ const ret = getObject(arg0).slice(arg1, arg2, getStringFromWasm0(arg3, arg4));
1439
+ return addHeapObject(ret);
1440
+ }, arguments);
1441
+ };
1442
+ imports.wbg.__wbg_stack_0ed75d68575b0f3c = function (arg0, arg1) {
1443
+ const ret = getObject(arg1).stack;
1444
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
1445
+ const len1 = WASM_VECTOR_LEN;
1446
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1447
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1448
+ };
1449
+ imports.wbg.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12 = function () {
745
1450
  const ret = typeof global === 'undefined' ? null : global;
746
1451
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
747
1452
  };
748
- imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function () {
1453
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184 = function () {
749
1454
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
750
1455
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
751
1456
  };
752
- imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function () {
1457
+ imports.wbg.__wbg_static_accessor_SELF_995b214ae681ff99 = function () {
753
1458
  const ret = typeof self === 'undefined' ? null : self;
754
1459
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
755
1460
  };
756
- imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function () {
1461
+ imports.wbg.__wbg_static_accessor_WINDOW_cde3890479c675ea = function () {
757
1462
  const ret = typeof window === 'undefined' ? null : window;
758
1463
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
759
1464
  };
760
- imports.wbg.__wbg_status_f6360336ca686bf0 = function (arg0) {
1465
+ imports.wbg.__wbg_status_3fea3036088621d6 = function (arg0) {
761
1466
  const ret = getObject(arg0).status;
762
1467
  return ret;
763
1468
  };
764
- imports.wbg.__wbg_storage_07eb754b88898955 = function (arg0) {
1469
+ imports.wbg.__wbg_storage_32b4ac688c114c3d = function (arg0) {
765
1470
  const ret = getObject(arg0).storage;
766
1471
  return addHeapObject(ret);
767
1472
  };
768
- imports.wbg.__wbg_stringify_f7ed6987935b4a24 = function () {
1473
+ imports.wbg.__wbg_stringify_b98c93d0a190446a = function () {
769
1474
  return handleError(function (arg0) {
770
1475
  const ret = JSON.stringify(getObject(arg0));
771
1476
  return addHeapObject(ret);
772
1477
  }, arguments);
773
1478
  };
774
- imports.wbg.__wbg_then_44b73946d2fb3e7d = function (arg0, arg1) {
775
- const ret = getObject(arg0).then(getObject(arg1));
1479
+ imports.wbg.__wbg_subarray_70fd07feefe14294 = function (arg0, arg1, arg2) {
1480
+ const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
776
1481
  return addHeapObject(ret);
777
1482
  };
778
- imports.wbg.__wbg_then_48b406749878a531 = function (arg0, arg1, arg2) {
1483
+ imports.wbg.__wbg_then_b33a773d723afa3e = function (arg0, arg1, arg2) {
779
1484
  const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
780
1485
  return addHeapObject(ret);
781
1486
  };
782
- imports.wbg.__wbg_toString_5285597960676b7b = function (arg0) {
1487
+ imports.wbg.__wbg_then_e22500defe16819f = function (arg0, arg1) {
1488
+ const ret = getObject(arg0).then(getObject(arg1));
1489
+ return addHeapObject(ret);
1490
+ };
1491
+ imports.wbg.__wbg_toString_78df35411a4fd40c = function (arg0) {
783
1492
  const ret = getObject(arg0).toString();
784
1493
  return addHeapObject(ret);
785
1494
  };
786
- imports.wbg.__wbg_truncate_29261a6365c72b01 = function () {
1495
+ imports.wbg.__wbg_truncate_0fe935591188a14c = function () {
787
1496
  return handleError(function (arg0, arg1) {
788
1497
  getObject(arg0).truncate(arg1 >>> 0);
789
1498
  }, arguments);
790
1499
  };
791
- imports.wbg.__wbg_url_ae10c34ca209681d = function (arg0, arg1) {
1500
+ imports.wbg.__wbg_type_7ef9242007bd4c65 = function (arg0) {
1501
+ const ret = getObject(arg0).type;
1502
+ return (__wbindgen_enum_FileSystemChangeRecordType.indexOf(ret) + 1 || 7) - 1;
1503
+ };
1504
+ imports.wbg.__wbg_url_e5720dfacf77b05e = function (arg0, arg1) {
792
1505
  const ret = getObject(arg1).url;
793
1506
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
794
1507
  const len1 = WASM_VECTOR_LEN;
795
1508
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
796
1509
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
797
1510
  };
798
- imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function (arg0) {
1511
+ imports.wbg.__wbg_value_ade0f87d71d4aecc = function (arg0) {
799
1512
  const ret = getObject(arg0).value;
800
1513
  return addHeapObject(ret);
801
1514
  };
802
- imports.wbg.__wbg_write_530d3c84df874f53 = function () {
803
- return handleError(function (arg0, arg1, arg2, arg3) {
804
- const ret = getObject(arg0).write(getArrayU8FromWasm0(arg1, arg2), getObject(arg3));
805
- return ret;
806
- }, arguments);
1515
+ imports.wbg.__wbg_value_dd9372230531eade = function (arg0) {
1516
+ const ret = getObject(arg0).value;
1517
+ return addHeapObject(ret);
1518
+ };
1519
+ imports.wbg.__wbg_waitAsync_213e79486ffecd82 = function () {
1520
+ const ret = Atomics.waitAsync;
1521
+ return addHeapObject(ret);
807
1522
  };
808
- imports.wbg.__wbindgen_array_new = function () {
809
- const ret = [];
1523
+ imports.wbg.__wbg_waitAsync_402c2db0645a44e0 = function (arg0, arg1, arg2) {
1524
+ const ret = Atomics.waitAsync(getObject(arg0), arg1 >>> 0, arg2);
810
1525
  return addHeapObject(ret);
811
1526
  };
812
- imports.wbg.__wbindgen_array_push = function (arg0, arg1) {
813
- getObject(arg0).push(takeObject(arg1));
1527
+ imports.wbg.__wbg_warn_90eb15d986910fe9 = function (arg0, arg1, arg2, arg3) {
1528
+ console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
1529
+ };
1530
+ imports.wbg.__wbg_warn_e2ada06313f92f09 = function (arg0) {
1531
+ console.warn(getObject(arg0));
814
1532
  };
815
- imports.wbg.__wbindgen_cb_drop = function (arg0) {
816
- const obj = takeObject(arg0).original;
1533
+ imports.wbg.__wbg_wbindgenbooleanget_3fe6f642c7d97746 = function (arg0) {
1534
+ const v = getObject(arg0);
1535
+ const ret = typeof (v) === 'boolean' ? v : undefined;
1536
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
1537
+ };
1538
+ imports.wbg.__wbg_wbindgencbdrop_eb10308566512b88 = function (arg0) {
1539
+ const obj = getObject(arg0).original;
817
1540
  if (obj.cnt-- == 1) {
818
1541
  obj.a = 0;
819
1542
  return true;
@@ -821,46 +1544,56 @@ function __wbg_get_imports() {
821
1544
  const ret = false;
822
1545
  return ret;
823
1546
  };
824
- imports.wbg.__wbindgen_closure_wrapper1051 = function (arg0, arg1, arg2) {
825
- const ret = makeMutClosure(arg0, arg1, 172, __wbg_adapter_28);
826
- return addHeapObject(ret);
827
- };
828
- imports.wbg.__wbindgen_closure_wrapper1669 = function (arg0, arg1, arg2) {
829
- const ret = makeMutClosure(arg0, arg1, 443, __wbg_adapter_31);
830
- return addHeapObject(ret);
831
- };
832
- imports.wbg.__wbindgen_debug_string = function (arg0, arg1) {
1547
+ imports.wbg.__wbg_wbindgendebugstring_99ef257a3ddda34d = function (arg0, arg1) {
833
1548
  const ret = debugString(getObject(arg1));
834
1549
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
835
1550
  const len1 = WASM_VECTOR_LEN;
836
1551
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
837
1552
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
838
1553
  };
839
- imports.wbg.__wbindgen_is_function = function (arg0) {
1554
+ imports.wbg.__wbg_wbindgenin_d7a1ee10933d2d55 = function (arg0, arg1) {
1555
+ const ret = getObject(arg0) in getObject(arg1);
1556
+ return ret;
1557
+ };
1558
+ imports.wbg.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function (arg0) {
840
1559
  const ret = typeof (getObject(arg0)) === 'function';
841
1560
  return ret;
842
1561
  };
843
- imports.wbg.__wbindgen_is_object = function (arg0) {
1562
+ imports.wbg.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function (arg0) {
844
1563
  const val = getObject(arg0);
845
1564
  const ret = typeof (val) === 'object' && val !== null;
846
1565
  return ret;
847
1566
  };
848
- imports.wbg.__wbindgen_is_undefined = function (arg0) {
1567
+ imports.wbg.__wbg_wbindgenisstring_d4fa939789f003b0 = function (arg0) {
1568
+ const ret = typeof (getObject(arg0)) === 'string';
1569
+ return ret;
1570
+ };
1571
+ imports.wbg.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function (arg0) {
849
1572
  const ret = getObject(arg0) === undefined;
850
1573
  return ret;
851
1574
  };
852
- imports.wbg.__wbindgen_memory = function () {
1575
+ imports.wbg.__wbg_wbindgenjsvallooseeq_9bec8c9be826bed1 = function (arg0, arg1) {
1576
+ const ret = getObject(arg0) == getObject(arg1);
1577
+ return ret;
1578
+ };
1579
+ imports.wbg.__wbg_wbindgenmemory_d84da70f7c42d172 = function () {
853
1580
  const ret = wasm.memory;
854
1581
  return addHeapObject(ret);
855
1582
  };
856
- imports.wbg.__wbindgen_object_clone_ref = function (arg0) {
857
- const ret = getObject(arg0);
1583
+ imports.wbg.__wbg_wbindgenmodule_7e59019f6366ff9c = function () {
1584
+ const ret = __wbg_init.__wbindgen_wasm_module;
858
1585
  return addHeapObject(ret);
859
1586
  };
860
- imports.wbg.__wbindgen_object_drop_ref = function (arg0) {
861
- takeObject(arg0);
1587
+ imports.wbg.__wbg_wbindgennumberget_f74b4c7525ac05cb = function (arg0, arg1) {
1588
+ const obj = getObject(arg1);
1589
+ const ret = typeof (obj) === 'number' ? obj : undefined;
1590
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1591
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
862
1592
  };
863
- imports.wbg.__wbindgen_string_get = function (arg0, arg1) {
1593
+ imports.wbg.__wbg_wbindgenrethrow_01815c9239d70cc2 = function (arg0) {
1594
+ throw takeObject(arg0);
1595
+ };
1596
+ imports.wbg.__wbg_wbindgenstringget_0f16a6ddddef376f = function (arg0, arg1) {
864
1597
  const obj = getObject(arg1);
865
1598
  const ret = typeof (obj) === 'string' ? obj : undefined;
866
1599
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
@@ -868,49 +1601,153 @@ function __wbg_get_imports() {
868
1601
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
869
1602
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
870
1603
  };
871
- imports.wbg.__wbindgen_string_new = function (arg0, arg1) {
1604
+ imports.wbg.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function (arg0, arg1) {
1605
+ throw new Error(getStringFromWasm0(arg0, arg1));
1606
+ };
1607
+ imports.wbg.__wbg_workertermination_new = function (arg0) {
1608
+ const ret = WorkerTermination.__wrap(arg0);
1609
+ return addHeapObject(ret);
1610
+ };
1611
+ imports.wbg.__wbg_write_9ac6a5f58a8c835c = function () {
1612
+ return handleError(function (arg0, arg1, arg2, arg3) {
1613
+ const ret = getObject(arg0).write(getArrayU8FromWasm0(arg1, arg2), getObject(arg3));
1614
+ return ret;
1615
+ }, arguments);
1616
+ };
1617
+ imports.wbg.__wbg_write_b652d19332a4ce1e = function () {
1618
+ return handleError(function (arg0, arg1, arg2) {
1619
+ const ret = getObject(arg0).write(getArrayU8FromWasm0(arg1, arg2));
1620
+ return ret;
1621
+ }, arguments);
1622
+ };
1623
+ imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function (arg0, arg1) {
1624
+ // Cast intrinsic for `Ref(String) -> Externref`.
872
1625
  const ret = getStringFromWasm0(arg0, arg1);
873
1626
  return addHeapObject(ret);
874
1627
  };
875
- imports.wbg.__wbindgen_throw = function (arg0, arg1) {
876
- throw new Error(getStringFromWasm0(arg0, arg1));
1628
+ imports.wbg.__wbindgen_cast_2aafe3a70f74f3e0 = function (arg0, arg1) {
1629
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8681, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 8682, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1630
+ const ret = makeMutClosure(arg0, arg1, 8681, __wbg_adapter_7);
1631
+ return addHeapObject(ret);
1632
+ };
1633
+ imports.wbg.__wbindgen_cast_3bfef9a8628dc119 = function (arg0, arg1) {
1634
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8688, function: Function { arguments: [], shim_idx: 600, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1635
+ const ret = makeMutClosure(arg0, arg1, 8688, __wbg_adapter_12);
1636
+ return addHeapObject(ret);
1637
+ };
1638
+ imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function (arg0) {
1639
+ // Cast intrinsic for `U64 -> Externref`.
1640
+ const ret = BigInt.asUintN(64, arg0);
1641
+ return addHeapObject(ret);
1642
+ };
1643
+ imports.wbg.__wbindgen_cast_4c807b347a3d0cbf = function (arg0, arg1) {
1644
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 599, function: Function { arguments: [], shim_idx: 600, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1645
+ const ret = makeMutClosure(arg0, arg1, 599, __wbg_adapter_12);
1646
+ return addHeapObject(ret);
1647
+ };
1648
+ imports.wbg.__wbindgen_cast_5cc12922bca91779 = function (arg0, arg1) {
1649
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8681, function: Function { arguments: [Externref], shim_idx: 8682, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1650
+ const ret = makeMutClosure(arg0, arg1, 8681, __wbg_adapter_7);
1651
+ return addHeapObject(ret);
1652
+ };
1653
+ imports.wbg.__wbindgen_cast_76322aab70622876 = function (arg0, arg1) {
1654
+ var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
1655
+ wasm.__wbindgen_export_4(arg0, arg1 * 4, 4);
1656
+ // Cast intrinsic for `Vector(NamedExternref("DirEntry")) -> Externref`.
1657
+ const ret = v0;
1658
+ return addHeapObject(ret);
1659
+ };
1660
+ imports.wbg.__wbindgen_cast_77bc3e92745e9a35 = function (arg0, arg1) {
1661
+ var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
1662
+ wasm.__wbindgen_export_4(arg0, arg1 * 1, 1);
1663
+ // Cast intrinsic for `Vector(U8) -> Externref`.
1664
+ const ret = v0;
1665
+ return addHeapObject(ret);
1666
+ };
1667
+ imports.wbg.__wbindgen_cast_9ae0607507abb057 = function (arg0) {
1668
+ // Cast intrinsic for `I64 -> Externref`.
1669
+ const ret = arg0;
1670
+ return addHeapObject(ret);
1671
+ };
1672
+ imports.wbg.__wbindgen_cast_9b1d89ef740b288c = function (arg0, arg1) {
1673
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8662, function: Function { arguments: [Ref(NamedExternref("MessageEvent"))], shim_idx: 8686, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1674
+ const ret = makeMutClosure(arg0, arg1, 8662, __wbg_adapter_15);
1675
+ return addHeapObject(ret);
1676
+ };
1677
+ imports.wbg.__wbindgen_cast_9c5a3d861803a5de = function (arg0, arg1) {
1678
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8662, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 8663, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1679
+ const ret = makeClosure(arg0, arg1, 8662, __wbg_adapter_4);
1680
+ return addHeapObject(ret);
1681
+ };
1682
+ imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
1683
+ // Cast intrinsic for `F64 -> Externref`.
1684
+ const ret = arg0;
1685
+ return addHeapObject(ret);
1686
+ };
1687
+ imports.wbg.__wbindgen_link_dd5153a359f2e504 = function (arg0) {
1688
+ const val = `onmessage = function (ev) {
1689
+ let [ia, index, value] = ev.data;
1690
+ ia = new Int32Array(ia.buffer);
1691
+ let result = Atomics.wait(ia, index, value);
1692
+ postMessage(result);
1693
+ };
1694
+ `;
1695
+ const ret = typeof URL.createObjectURL === 'undefined' ? "data:application/javascript," + encodeURIComponent(val) : URL.createObjectURL(new Blob([val], { type: "text/javascript" }));
1696
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
1697
+ const len1 = WASM_VECTOR_LEN;
1698
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1699
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1700
+ };
1701
+ imports.wbg.__wbindgen_object_clone_ref = function (arg0) {
1702
+ const ret = getObject(arg0);
1703
+ return addHeapObject(ret);
1704
+ };
1705
+ imports.wbg.__wbindgen_object_drop_ref = function (arg0) {
1706
+ takeObject(arg0);
877
1707
  };
878
1708
  return imports;
879
1709
  }
880
1710
  function __wbg_init_memory(imports, memory) {
1711
+ imports.wbg.memory = memory || new WebAssembly.Memory({ initial: 129, maximum: 16384, shared: true });
881
1712
  }
882
- function __wbg_finalize_init(instance, module) {
1713
+ function __wbg_finalize_init(instance, module, thread_stack_size) {
883
1714
  wasm = instance.exports;
884
1715
  __wbg_init.__wbindgen_wasm_module = module;
885
1716
  cachedDataViewMemory0 = null;
886
1717
  cachedUint8ArrayMemory0 = null;
1718
+ if (typeof thread_stack_size !== 'undefined' && (typeof thread_stack_size !== 'number' || thread_stack_size === 0 || thread_stack_size % 65536 !== 0)) {
1719
+ throw 'invalid stack size';
1720
+ }
1721
+ wasm.__wbindgen_start(thread_stack_size);
887
1722
  return wasm;
888
1723
  }
889
- function initSync(module) {
1724
+ function initSync(module, memory) {
890
1725
  if (wasm !== undefined)
891
1726
  return wasm;
1727
+ let thread_stack_size;
892
1728
  if (typeof module !== 'undefined') {
893
1729
  if (Object.getPrototypeOf(module) === Object.prototype) {
894
- ({ module } = module);
1730
+ ({ module, memory, thread_stack_size } = module);
895
1731
  }
896
1732
  else {
897
1733
  console.warn('using deprecated parameters for `initSync()`; pass a single object instead');
898
1734
  }
899
1735
  }
900
1736
  const imports = __wbg_get_imports();
901
- __wbg_init_memory(imports);
1737
+ __wbg_init_memory(imports, memory);
902
1738
  if (!(module instanceof WebAssembly.Module)) {
903
1739
  module = new WebAssembly.Module(module);
904
1740
  }
905
1741
  const instance = new WebAssembly.Instance(module, imports);
906
- return __wbg_finalize_init(instance, module);
1742
+ return __wbg_finalize_init(instance, module, thread_stack_size);
907
1743
  }
908
- async function __wbg_init(module_or_path) {
1744
+ async function __wbg_init(module_or_path, memory) {
909
1745
  if (wasm !== undefined)
910
1746
  return wasm;
1747
+ let thread_stack_size;
911
1748
  if (typeof module_or_path !== 'undefined') {
912
1749
  if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
913
- ({ module_or_path } = module_or_path);
1750
+ ({ module_or_path, memory, thread_stack_size } = module_or_path);
914
1751
  }
915
1752
  else {
916
1753
  console.warn('using deprecated parameters for the initialization function; pass a single object instead');
@@ -923,9 +1760,9 @@ async function __wbg_init(module_or_path) {
923
1760
  if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
924
1761
  module_or_path = fetch(module_or_path);
925
1762
  }
926
- __wbg_init_memory(imports);
1763
+ __wbg_init_memory(imports, memory);
927
1764
  const { instance, module } = await __wbg_load(await module_or_path, imports);
928
- return __wbg_finalize_init(instance, module);
1765
+ return __wbg_finalize_init(instance, module, thread_stack_size);
929
1766
  }
930
1767
  export { initSync };
931
1768
  export default __wbg_init;