@utoo/web 1.1.0 → 1.2.0-rc.2

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 (34) hide show
  1. package/esm/f4423b245e72d3fa009d.wasm +0 -0
  2. package/esm/internalProject.d.ts +1 -0
  3. package/esm/internalProject.js +10 -85
  4. package/esm/loaderWorker.js +2 -0
  5. package/esm/loaderWorker.js.LICENSE.txt +44 -0
  6. package/esm/loaderWorkerPool.d.ts +3 -0
  7. package/esm/loaderWorkerPool.js +125 -0
  8. package/esm/project.d.ts +1 -0
  9. package/esm/project.js +2 -0
  10. package/esm/sabcom.d.ts +31 -0
  11. package/esm/sabcom.js +71 -0
  12. package/esm/type.d.ts +1 -0
  13. package/esm/utoo/index.d.ts +72 -47
  14. package/esm/utoo/index.js +257 -165
  15. package/esm/utoo/index_bg.wasm +0 -0
  16. package/esm/webpackLoaders/worker/cjs.js +253 -58
  17. package/esm/webpackLoaders/worker/index.d.ts +2 -2
  18. package/esm/webpackLoaders/worker/index.js +36 -26
  19. package/esm/webpackLoaders/worker/polyfills/fastGlobPolyfill.d.ts +2 -0
  20. package/esm/webpackLoaders/worker/polyfills/fastGlobPolyfill.js +48 -0
  21. package/esm/webpackLoaders/worker/polyfills/fsPolyfill.d.ts +124 -0
  22. package/esm/webpackLoaders/worker/polyfills/fsPolyfill.js +316 -0
  23. package/esm/webpackLoaders/worker/polyfills/fsPromisesPolyfill.d.ts +9 -0
  24. package/esm/webpackLoaders/worker/polyfills/fsPromisesPolyfill.js +9 -0
  25. package/esm/webpackLoaders/worker/polyfills/nodePolyFills.d.ts +94 -0
  26. package/esm/webpackLoaders/worker/polyfills/nodePolyFills.js +229 -0
  27. package/esm/webpackLoaders/worker/polyfills/workerThreadsPolyfill.d.ts +7 -0
  28. package/esm/webpackLoaders/worker/polyfills/workerThreadsPolyfill.js +16 -0
  29. package/esm/webpackLoaders/worker/type.d.ts +1 -1
  30. package/package.json +11 -11
  31. package/esm/webpackLoaders/worker/nodePolyFills.d.ts +0 -14
  32. package/esm/webpackLoaders/worker/nodePolyFills.js +0 -24
  33. package/esm/webpackLoaders/workerContent.d.ts +0 -2
  34. package/esm/webpackLoaders/workerContent.js +0 -1
package/esm/utoo/index.js CHANGED
@@ -239,56 +239,25 @@ function makeClosure(arg0, arg1, dtor, f) {
239
239
  CLOSURE_DTORS.register(real, state, state);
240
240
  return real;
241
241
  }
242
- /**
243
- * @param {number} worker_id
244
- * @returns {Promise<string>}
245
- */
246
- export function recvMessageInWorker(worker_id) {
247
- const ret = wasm.recvMessageInWorker(worker_id);
248
- return takeObject(ret);
249
- }
250
- /**
251
- * @returns {Promise<WorkerTermination>}
252
- */
253
- export function recvWorkerTermination() {
254
- const ret = wasm.recvWorkerTermination();
255
- return takeObject(ret);
242
+ function _assertClass(instance, klass) {
243
+ if (!(instance instanceof klass)) {
244
+ throw new Error(`expected instance of ${klass.name}`);
245
+ }
256
246
  }
257
247
  /**
258
- * @param {number} task_id
259
- * @param {number} worker_id
248
+ * @param {any} message
260
249
  * @returns {Promise<void>}
261
250
  */
262
- export function notifyWorkerAck(task_id, worker_id) {
263
- const ret = wasm.notifyWorkerAck(task_id, worker_id);
251
+ export function sendTaskMessage(message) {
252
+ const ret = wasm.sendTaskMessage(addHeapObject(message));
264
253
  return takeObject(ret);
265
254
  }
266
255
  /**
267
- * @param {number} task_id
268
- * @param {string} message
269
- * @returns {Promise<void>}
270
- */
271
- export function sendTaskMessage(task_id, message) {
272
- const ptr0 = passStringToWasm0(message, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
273
- const len0 = WASM_VECTOR_LEN;
274
- const ret = wasm.sendTaskMessage(task_id, ptr0, len0);
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>}
256
+ * @param {number} worker_id
257
+ * @returns {Promise<WasmTaskMessage>}
289
258
  */
290
- export function recvPoolRequest() {
291
- const ret = wasm.recvPoolRequest();
259
+ export function recvTaskMessageInWorker(worker_id) {
260
+ const ret = wasm.recvTaskMessageInWorker(worker_id);
292
261
  return takeObject(ret);
293
262
  }
294
263
  export function init_pack() {
@@ -308,6 +277,19 @@ function passArray8ToWasm0(arg, malloc) {
308
277
  WASM_VECTOR_LEN = arg.length;
309
278
  return ptr;
310
279
  }
280
+ /**
281
+ * @param {number} worker_id
282
+ */
283
+ export function workerCreated(worker_id) {
284
+ wasm.workerCreated(worker_id);
285
+ }
286
+ /**
287
+ * @param {Function} creator
288
+ * @param {Function} terminator
289
+ */
290
+ export function registerWorkerScheduler(creator, terminator) {
291
+ wasm.registerWorkerScheduler(addHeapObject(creator), addHeapObject(terminator));
292
+ }
311
293
  /**
312
294
  * Entry point for web workers
313
295
  * @param {number} ptr
@@ -315,9 +297,6 @@ function passArray8ToWasm0(arg, malloc) {
315
297
  export function wasm_thread_entry_point(ptr) {
316
298
  wasm.wasm_thread_entry_point(ptr);
317
299
  }
318
- function __wbg_adapter_6(arg0, arg1, arg2) {
319
- wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2));
320
- }
321
300
  let stack_pointer = 128;
322
301
  function addBorrowedObject(obj) {
323
302
  if (stack_pointer == 1)
@@ -325,18 +304,21 @@ function addBorrowedObject(obj) {
325
304
  heap[--stack_pointer] = obj;
326
305
  return stack_pointer;
327
306
  }
328
- function __wbg_adapter_13(arg0, arg1, arg2) {
307
+ function __wbg_adapter_6(arg0, arg1, arg2) {
329
308
  try {
330
- wasm.__wbindgen_export_7(arg0, arg1, addBorrowedObject(arg2));
309
+ wasm.__wbindgen_export_6(arg0, arg1, addBorrowedObject(arg2));
331
310
  }
332
311
  finally {
333
312
  heap[stack_pointer++] = undefined;
334
313
  }
335
314
  }
336
- function __wbg_adapter_16(arg0, arg1) {
315
+ function __wbg_adapter_9(arg0, arg1, arg2) {
316
+ wasm.__wbindgen_export_7(arg0, arg1, addHeapObject(arg2));
317
+ }
318
+ function __wbg_adapter_14(arg0, arg1) {
337
319
  wasm.__wbindgen_export_8(arg0, arg1);
338
320
  }
339
- function __wbg_adapter_19(arg0, arg1, arg2) {
321
+ function __wbg_adapter_21(arg0, arg1, arg2) {
340
322
  wasm.__wbindgen_export_9(arg0, arg1, addHeapObject(arg2));
341
323
  }
342
324
  function __wbg_adapter_94(arg0, arg1, arg2, arg3) {
@@ -477,71 +459,6 @@ export class Metadata {
477
459
  }
478
460
  if (Symbol.dispose)
479
461
  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;
545
462
  const ProjectFinalization = (typeof FinalizationRegistry === 'undefined')
546
463
  ? { register: () => { }, unregister: () => { } }
547
464
  : new FinalizationRegistry(ptr => wasm.__wbg_project_free(ptr >>> 0, 1));
@@ -777,26 +694,130 @@ export class Project {
777
694
  }
778
695
  if (Symbol.dispose)
779
696
  Project.prototype[Symbol.dispose] = Project.prototype.free;
780
- const WorkerTerminationFinalization = (typeof FinalizationRegistry === 'undefined')
697
+ const WasmTaskMessageFinalization = (typeof FinalizationRegistry === 'undefined')
698
+ ? { register: () => { }, unregister: () => { } }
699
+ : new FinalizationRegistry(ptr => wasm.__wbg_wasmtaskmessage_free(ptr >>> 0, 1));
700
+ export class WasmTaskMessage {
701
+ static __wrap(ptr) {
702
+ ptr = ptr >>> 0;
703
+ const obj = Object.create(WasmTaskMessage.prototype);
704
+ obj.__wbg_ptr = ptr;
705
+ WasmTaskMessageFinalization.register(obj, obj.__wbg_ptr, obj);
706
+ return obj;
707
+ }
708
+ __destroy_into_raw() {
709
+ const ptr = this.__wbg_ptr;
710
+ this.__wbg_ptr = 0;
711
+ WasmTaskMessageFinalization.unregister(this);
712
+ return ptr;
713
+ }
714
+ free() {
715
+ const ptr = this.__destroy_into_raw();
716
+ wasm.__wbg_wasmtaskmessage_free(ptr, 0);
717
+ }
718
+ /**
719
+ * @returns {number}
720
+ */
721
+ get taskId() {
722
+ const ret = wasm.__wbg_get_wasmtaskmessage_taskId(this.__wbg_ptr);
723
+ return ret >>> 0;
724
+ }
725
+ /**
726
+ * @param {number} arg0
727
+ */
728
+ set taskId(arg0) {
729
+ wasm.__wbg_set_wasmtaskmessage_taskId(this.__wbg_ptr, arg0);
730
+ }
731
+ /**
732
+ * @returns {string}
733
+ */
734
+ get data() {
735
+ let deferred1_0;
736
+ let deferred1_1;
737
+ try {
738
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
739
+ wasm.__wbg_get_wasmtaskmessage_data(retptr, this.__wbg_ptr);
740
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
741
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
742
+ deferred1_0 = r0;
743
+ deferred1_1 = r1;
744
+ return getStringFromWasm0(r0, r1);
745
+ }
746
+ finally {
747
+ wasm.__wbindgen_add_to_stack_pointer(16);
748
+ wasm.__wbindgen_export_4(deferred1_0, deferred1_1, 1);
749
+ }
750
+ }
751
+ /**
752
+ * @param {string} arg0
753
+ */
754
+ set data(arg0) {
755
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
756
+ const len0 = WASM_VECTOR_LEN;
757
+ wasm.__wbg_set_wasmtaskmessage_data(this.__wbg_ptr, ptr0, len0);
758
+ }
759
+ }
760
+ if (Symbol.dispose)
761
+ WasmTaskMessage.prototype[Symbol.dispose] = WasmTaskMessage.prototype.free;
762
+ const WebWorkerCreationFinalization = (typeof FinalizationRegistry === 'undefined')
781
763
  ? { register: () => { }, unregister: () => { } }
782
- : new FinalizationRegistry(ptr => wasm.__wbg_workertermination_free(ptr >>> 0, 1));
783
- export class WorkerTermination {
764
+ : new FinalizationRegistry(ptr => wasm.__wbg_webworkercreation_free(ptr >>> 0, 1));
765
+ export class WebWorkerCreation {
784
766
  static __wrap(ptr) {
785
767
  ptr = ptr >>> 0;
786
- const obj = Object.create(WorkerTermination.prototype);
768
+ const obj = Object.create(WebWorkerCreation.prototype);
787
769
  obj.__wbg_ptr = ptr;
788
- WorkerTerminationFinalization.register(obj, obj.__wbg_ptr, obj);
770
+ WebWorkerCreationFinalization.register(obj, obj.__wbg_ptr, obj);
789
771
  return obj;
790
772
  }
791
773
  __destroy_into_raw() {
792
774
  const ptr = this.__wbg_ptr;
793
775
  this.__wbg_ptr = 0;
794
- WorkerTerminationFinalization.unregister(this);
776
+ WebWorkerCreationFinalization.unregister(this);
795
777
  return ptr;
796
778
  }
797
779
  free() {
798
780
  const ptr = this.__destroy_into_raw();
799
- wasm.__wbg_workertermination_free(ptr, 0);
781
+ wasm.__wbg_webworkercreation_free(ptr, 0);
782
+ }
783
+ /**
784
+ * @returns {WebWorkerOptions}
785
+ */
786
+ get options() {
787
+ const ret = wasm.__wbg_get_webworkercreation_options(this.__wbg_ptr);
788
+ return WebWorkerOptions.__wrap(ret);
789
+ }
790
+ /**
791
+ * @param {WebWorkerOptions} arg0
792
+ */
793
+ set options(arg0) {
794
+ _assertClass(arg0, WebWorkerOptions);
795
+ var ptr0 = arg0.__destroy_into_raw();
796
+ wasm.__wbg_set_webworkercreation_options(this.__wbg_ptr, ptr0);
797
+ }
798
+ }
799
+ if (Symbol.dispose)
800
+ WebWorkerCreation.prototype[Symbol.dispose] = WebWorkerCreation.prototype.free;
801
+ const WebWorkerOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
802
+ ? { register: () => { }, unregister: () => { } }
803
+ : new FinalizationRegistry(ptr => wasm.__wbg_webworkeroptions_free(ptr >>> 0, 1));
804
+ export class WebWorkerOptions {
805
+ static __wrap(ptr) {
806
+ ptr = ptr >>> 0;
807
+ const obj = Object.create(WebWorkerOptions.prototype);
808
+ obj.__wbg_ptr = ptr;
809
+ WebWorkerOptionsFinalization.register(obj, obj.__wbg_ptr, obj);
810
+ return obj;
811
+ }
812
+ __destroy_into_raw() {
813
+ const ptr = this.__wbg_ptr;
814
+ this.__wbg_ptr = 0;
815
+ WebWorkerOptionsFinalization.unregister(this);
816
+ return ptr;
817
+ }
818
+ free() {
819
+ const ptr = this.__destroy_into_raw();
820
+ wasm.__wbg_webworkeroptions_free(ptr, 0);
800
821
  }
801
822
  /**
802
823
  * @returns {string}
@@ -806,7 +827,7 @@ export class WorkerTermination {
806
827
  let deferred1_1;
807
828
  try {
808
829
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
809
- wasm.__wbg_get_pooloptions_filename(retptr, this.__wbg_ptr);
830
+ wasm.__wbg_get_wasmtaskmessage_data(retptr, this.__wbg_ptr);
810
831
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
811
832
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
812
833
  deferred1_0 = r0;
@@ -824,24 +845,91 @@ export class WorkerTermination {
824
845
  set filename(arg0) {
825
846
  const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
826
847
  const len0 = WASM_VECTOR_LEN;
827
- wasm.__wbg_set_pooloptions_filename(this.__wbg_ptr, ptr0, len0);
848
+ wasm.__wbg_set_wasmtaskmessage_data(this.__wbg_ptr, ptr0, len0);
849
+ }
850
+ /**
851
+ * @returns {string}
852
+ */
853
+ get cwd() {
854
+ let deferred1_0;
855
+ let deferred1_1;
856
+ try {
857
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
858
+ wasm.__wbg_get_webworkeroptions_cwd(retptr, this.__wbg_ptr);
859
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
860
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
861
+ deferred1_0 = r0;
862
+ deferred1_1 = r1;
863
+ return getStringFromWasm0(r0, r1);
864
+ }
865
+ finally {
866
+ wasm.__wbindgen_add_to_stack_pointer(16);
867
+ wasm.__wbindgen_export_4(deferred1_0, deferred1_1, 1);
868
+ }
869
+ }
870
+ /**
871
+ * @param {string} arg0
872
+ */
873
+ set cwd(arg0) {
874
+ const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_export_1, wasm.__wbindgen_export_2);
875
+ const len0 = WASM_VECTOR_LEN;
876
+ wasm.__wbg_set_webworkeroptions_cwd(this.__wbg_ptr, ptr0, len0);
877
+ }
878
+ }
879
+ if (Symbol.dispose)
880
+ WebWorkerOptions.prototype[Symbol.dispose] = WebWorkerOptions.prototype.free;
881
+ const WebWorkerTerminationFinalization = (typeof FinalizationRegistry === 'undefined')
882
+ ? { register: () => { }, unregister: () => { } }
883
+ : new FinalizationRegistry(ptr => wasm.__wbg_webworkertermination_free(ptr >>> 0, 1));
884
+ export class WebWorkerTermination {
885
+ static __wrap(ptr) {
886
+ ptr = ptr >>> 0;
887
+ const obj = Object.create(WebWorkerTermination.prototype);
888
+ obj.__wbg_ptr = ptr;
889
+ WebWorkerTerminationFinalization.register(obj, obj.__wbg_ptr, obj);
890
+ return obj;
891
+ }
892
+ __destroy_into_raw() {
893
+ const ptr = this.__wbg_ptr;
894
+ this.__wbg_ptr = 0;
895
+ WebWorkerTerminationFinalization.unregister(this);
896
+ return ptr;
897
+ }
898
+ free() {
899
+ const ptr = this.__destroy_into_raw();
900
+ wasm.__wbg_webworkertermination_free(ptr, 0);
901
+ }
902
+ /**
903
+ * @returns {WebWorkerOptions}
904
+ */
905
+ get options() {
906
+ const ret = wasm.__wbg_get_webworkertermination_options(this.__wbg_ptr);
907
+ return WebWorkerOptions.__wrap(ret);
908
+ }
909
+ /**
910
+ * @param {WebWorkerOptions} arg0
911
+ */
912
+ set options(arg0) {
913
+ _assertClass(arg0, WebWorkerOptions);
914
+ var ptr0 = arg0.__destroy_into_raw();
915
+ wasm.__wbg_set_webworkertermination_options(this.__wbg_ptr, ptr0);
828
916
  }
829
917
  /**
830
918
  * @returns {number}
831
919
  */
832
920
  get workerId() {
833
- const ret = wasm.__wbg_get_pooloptions_maxConcurrency(this.__wbg_ptr);
921
+ const ret = wasm.__wbg_get_webworkertermination_workerId(this.__wbg_ptr);
834
922
  return ret >>> 0;
835
923
  }
836
924
  /**
837
925
  * @param {number} arg0
838
926
  */
839
927
  set workerId(arg0) {
840
- wasm.__wbg_set_pooloptions_maxConcurrency(this.__wbg_ptr, arg0);
928
+ wasm.__wbg_set_webworkertermination_workerId(this.__wbg_ptr, arg0);
841
929
  }
842
930
  }
843
931
  if (Symbol.dispose)
844
- WorkerTermination.prototype[Symbol.dispose] = WorkerTermination.prototype.free;
932
+ WebWorkerTermination.prototype[Symbol.dispose] = WebWorkerTermination.prototype.free;
845
933
  const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
846
934
  async function __wbg_load(module, imports) {
847
935
  if (typeof Response === 'function' && module instanceof Response) {
@@ -927,7 +1015,7 @@ function __wbg_get_imports() {
927
1015
  return addHeapObject(ret);
928
1016
  }, arguments);
929
1017
  };
930
- imports.wbg.__wbg_changedHandle_51cdba7dd85fac27 = function (arg0) {
1018
+ imports.wbg.__wbg_changedHandle_9ac6171cf620f861 = function (arg0) {
931
1019
  const ret = getObject(arg0).changedHandle;
932
1020
  return addHeapObject(ret);
933
1021
  };
@@ -1208,6 +1296,10 @@ function __wbg_get_imports() {
1208
1296
  const ret = new Map();
1209
1297
  return addHeapObject(ret);
1210
1298
  };
1299
+ imports.wbg.__wbg_new_61e1f224687df92d = function (arg0) {
1300
+ const ret = new FileSystemObserver(getObject(arg0));
1301
+ return addHeapObject(ret);
1302
+ };
1211
1303
  imports.wbg.__wbg_new_638ebfaedbf32a5e = function (arg0) {
1212
1304
  const ret = new Uint8Array(getObject(arg0));
1213
1305
  return addHeapObject(ret);
@@ -1222,10 +1314,6 @@ function __wbg_get_imports() {
1222
1314
  const ret = new Error();
1223
1315
  return addHeapObject(ret);
1224
1316
  };
1225
- imports.wbg.__wbg_new_9b2344bc56f77a2b = function (arg0) {
1226
- const ret = new FileSystemObserver(getObject(arg0));
1227
- return addHeapObject(ret);
1228
- };
1229
1317
  imports.wbg.__wbg_new_9d476835fd376de6 = function () {
1230
1318
  return handleError(function (arg0, arg1) {
1231
1319
  const ret = new Worker(getStringFromWasm0(arg0, arg1));
@@ -1292,7 +1380,7 @@ function __wbg_get_imports() {
1292
1380
  const ret = Date.now();
1293
1381
  return ret;
1294
1382
  };
1295
- imports.wbg.__wbg_observe_a98641e2bc5e6a17 = function (arg0, arg1, arg2) {
1383
+ imports.wbg.__wbg_observe_4d40e63195da8748 = function (arg0, arg1, arg2) {
1296
1384
  const ret = getObject(arg0).observe(getObject(arg1), getObject(arg2));
1297
1385
  return addHeapObject(ret);
1298
1386
  };
@@ -1304,10 +1392,6 @@ function __wbg_get_imports() {
1304
1392
  const ret = getObject(arg0).performance;
1305
1393
  return addHeapObject(ret);
1306
1394
  };
1307
- imports.wbg.__wbg_pooloptions_new = function (arg0) {
1308
- const ret = PoolOptions.__wrap(arg0);
1309
- return addHeapObject(ret);
1310
- };
1311
1395
  imports.wbg.__wbg_postMessage_38909232d65f5870 = function () {
1312
1396
  return handleError(function (arg0, arg1) {
1313
1397
  getObject(arg0).postMessage(getObject(arg1));
@@ -1348,7 +1432,7 @@ function __wbg_get_imports() {
1348
1432
  return ret;
1349
1433
  }, arguments);
1350
1434
  };
1351
- imports.wbg.__wbg_relativePathComponents_71b7af6cc056eaa1 = function (arg0) {
1435
+ imports.wbg.__wbg_relativePathComponents_e11d94d1d3b8277c = function (arg0) {
1352
1436
  const ret = getObject(arg0).relativePathComponents;
1353
1437
  return addHeapObject(ret);
1354
1438
  };
@@ -1416,7 +1500,7 @@ function __wbg_get_imports() {
1416
1500
  imports.wbg.__wbg_setrecursive_072599988d5f7e8d = function (arg0, arg1) {
1417
1501
  getObject(arg0).recursive = arg1 !== 0;
1418
1502
  };
1419
- imports.wbg.__wbg_setrecursive_0b3e76f293311ab5 = function (arg0, arg1) {
1503
+ imports.wbg.__wbg_setrecursive_8266308232855fe7 = function (arg0, arg1) {
1420
1504
  getObject(arg0).recursive = arg1 !== 0;
1421
1505
  };
1422
1506
  imports.wbg.__wbg_setsignal_8c45ad1247a74809 = function (arg0, arg1) {
@@ -1497,7 +1581,7 @@ function __wbg_get_imports() {
1497
1581
  getObject(arg0).truncate(arg1 >>> 0);
1498
1582
  }, arguments);
1499
1583
  };
1500
- imports.wbg.__wbg_type_7ef9242007bd4c65 = function (arg0) {
1584
+ imports.wbg.__wbg_type_53ab342163438035 = function (arg0) {
1501
1585
  const ret = getObject(arg0).type;
1502
1586
  return (__wbindgen_enum_FileSystemChangeRecordType.indexOf(ret) + 1 || 7) - 1;
1503
1587
  };
@@ -1530,6 +1614,10 @@ function __wbg_get_imports() {
1530
1614
  imports.wbg.__wbg_warn_e2ada06313f92f09 = function (arg0) {
1531
1615
  console.warn(getObject(arg0));
1532
1616
  };
1617
+ imports.wbg.__wbg_wasmtaskmessage_new = function (arg0) {
1618
+ const ret = WasmTaskMessage.__wrap(arg0);
1619
+ return addHeapObject(ret);
1620
+ };
1533
1621
  imports.wbg.__wbg_wbindgenbooleanget_3fe6f642c7d97746 = function (arg0) {
1534
1622
  const v = getObject(arg0);
1535
1623
  const ret = typeof (v) === 'boolean' ? v : undefined;
@@ -1604,8 +1692,12 @@ function __wbg_get_imports() {
1604
1692
  imports.wbg.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function (arg0, arg1) {
1605
1693
  throw new Error(getStringFromWasm0(arg0, arg1));
1606
1694
  };
1607
- imports.wbg.__wbg_workertermination_new = function (arg0) {
1608
- const ret = WorkerTermination.__wrap(arg0);
1695
+ imports.wbg.__wbg_webworkercreation_new = function (arg0) {
1696
+ const ret = WebWorkerCreation.__wrap(arg0);
1697
+ return addHeapObject(ret);
1698
+ };
1699
+ imports.wbg.__wbg_webworkertermination_new = function (arg0) {
1700
+ const ret = WebWorkerTermination.__wrap(arg0);
1609
1701
  return addHeapObject(ret);
1610
1702
  };
1611
1703
  imports.wbg.__wbg_write_9ac6a5f58a8c835c = function () {
@@ -1620,9 +1712,9 @@ function __wbg_get_imports() {
1620
1712
  return ret;
1621
1713
  }, arguments);
1622
1714
  };
1623
- imports.wbg.__wbindgen_cast_12af9e1632226a2a = function (arg0, arg1) {
1624
- // Cast intrinsic for `Closure(Closure { dtor_idx: 8603, function: Function { arguments: [Ref(NamedExternref("MessageEvent"))], shim_idx: 8626, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1625
- const ret = makeMutClosure(arg0, arg1, 8603, __wbg_adapter_13);
1715
+ imports.wbg.__wbindgen_cast_1113a938f979d88a = function (arg0, arg1) {
1716
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 603, function: Function { arguments: [], shim_idx: 604, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1717
+ const ret = makeMutClosure(arg0, arg1, 603, __wbg_adapter_14);
1626
1718
  return addHeapObject(ret);
1627
1719
  };
1628
1720
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function (arg0, arg1) {
@@ -1630,29 +1722,14 @@ function __wbg_get_imports() {
1630
1722
  const ret = getStringFromWasm0(arg0, arg1);
1631
1723
  return addHeapObject(ret);
1632
1724
  };
1633
- imports.wbg.__wbindgen_cast_26f8fe7fb5e9a165 = function (arg0, arg1) {
1634
- // Cast intrinsic for `Closure(Closure { dtor_idx: 8621, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 8622, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1635
- const ret = makeMutClosure(arg0, arg1, 8621, __wbg_adapter_19);
1636
- return addHeapObject(ret);
1637
- };
1638
- imports.wbg.__wbindgen_cast_341c6edfb226ca8c = function (arg0, arg1) {
1639
- // Cast intrinsic for `Closure(Closure { dtor_idx: 8621, function: Function { arguments: [Externref], shim_idx: 8622, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1640
- const ret = makeMutClosure(arg0, arg1, 8621, __wbg_adapter_19);
1641
- return addHeapObject(ret);
1642
- };
1643
1725
  imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function (arg0) {
1644
1726
  // Cast intrinsic for `U64 -> Externref`.
1645
1727
  const ret = BigInt.asUintN(64, arg0);
1646
1728
  return addHeapObject(ret);
1647
1729
  };
1648
- imports.wbg.__wbindgen_cast_4c807b347a3d0cbf = function (arg0, arg1) {
1649
- // Cast intrinsic for `Closure(Closure { dtor_idx: 599, function: Function { arguments: [], shim_idx: 600, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1650
- const ret = makeMutClosure(arg0, arg1, 599, __wbg_adapter_16);
1651
- return addHeapObject(ret);
1652
- };
1653
- imports.wbg.__wbindgen_cast_60ddcd55e3b8f21d = function (arg0, arg1) {
1654
- // Cast intrinsic for `Closure(Closure { dtor_idx: 8621, function: Function { arguments: [], shim_idx: 600, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1655
- const ret = makeMutClosure(arg0, arg1, 8621, __wbg_adapter_16);
1730
+ imports.wbg.__wbindgen_cast_59550fe77af0bf03 = function (arg0, arg1) {
1731
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8609, function: Function { arguments: [Ref(NamedExternref("MessageEvent"))], shim_idx: 8630, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1732
+ const ret = makeMutClosure(arg0, arg1, 8609, __wbg_adapter_6);
1656
1733
  return addHeapObject(ret);
1657
1734
  };
1658
1735
  imports.wbg.__wbindgen_cast_76322aab70622876 = function (arg0, arg1) {
@@ -1662,6 +1739,11 @@ function __wbg_get_imports() {
1662
1739
  const ret = v0;
1663
1740
  return addHeapObject(ret);
1664
1741
  };
1742
+ imports.wbg.__wbindgen_cast_77984da3a91be2e9 = function (arg0, arg1) {
1743
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8625, function: Function { arguments: [Externref], shim_idx: 8626, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1744
+ const ret = makeMutClosure(arg0, arg1, 8625, __wbg_adapter_9);
1745
+ return addHeapObject(ret);
1746
+ };
1665
1747
  imports.wbg.__wbindgen_cast_77bc3e92745e9a35 = function (arg0, arg1) {
1666
1748
  var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
1667
1749
  wasm.__wbindgen_export_4(arg0, arg1 * 1, 1);
@@ -1669,9 +1751,9 @@ function __wbg_get_imports() {
1669
1751
  const ret = v0;
1670
1752
  return addHeapObject(ret);
1671
1753
  };
1672
- imports.wbg.__wbindgen_cast_7d864cd0d8fe5a0e = function (arg0, arg1) {
1673
- // Cast intrinsic for `Closure(Closure { dtor_idx: 8603, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 8604, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1674
- const ret = makeClosure(arg0, arg1, 8603, __wbg_adapter_6);
1754
+ imports.wbg.__wbindgen_cast_8ecade4ce8b126db = function (arg0, arg1) {
1755
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8625, function: Function { arguments: [], shim_idx: 604, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1756
+ const ret = makeMutClosure(arg0, arg1, 8625, __wbg_adapter_14);
1675
1757
  return addHeapObject(ret);
1676
1758
  };
1677
1759
  imports.wbg.__wbindgen_cast_9ae0607507abb057 = function (arg0) {
@@ -1679,6 +1761,16 @@ function __wbg_get_imports() {
1679
1761
  const ret = arg0;
1680
1762
  return addHeapObject(ret);
1681
1763
  };
1764
+ imports.wbg.__wbindgen_cast_bb0fb35a7180d55b = function (arg0, arg1) {
1765
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8625, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 8626, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1766
+ const ret = makeMutClosure(arg0, arg1, 8625, __wbg_adapter_9);
1767
+ return addHeapObject(ret);
1768
+ };
1769
+ imports.wbg.__wbindgen_cast_cdaa362fcf12456c = function (arg0, arg1) {
1770
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 8609, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 8610, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
1771
+ const ret = makeClosure(arg0, arg1, 8609, __wbg_adapter_21);
1772
+ return addHeapObject(ret);
1773
+ };
1682
1774
  imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function (arg0) {
1683
1775
  // Cast intrinsic for `F64 -> Externref`.
1684
1776
  const ret = arg0;
Binary file