@dcl-regenesislabs/bevy-explorer-web 0.1.0-23382194066.commit-d716341 → 0.1.0-23518073781.commit-c2a8f95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.env CHANGED
@@ -1 +1 @@
1
- PUBLIC_URL="https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-23382194066.commit-d716341"
1
+ PUBLIC_URL="https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-23518073781.commit-c2a8f95"
package/engine.js CHANGED
@@ -260,7 +260,55 @@ export function start() {
260
260
  return "unknown";
261
261
  })();
262
262
 
263
+ // Callback invoked by Rust once console command metadata is available.
264
+ window._buildEngineApi = (json) => {
265
+ try {
266
+ const api = JSON.parse(json);
267
+ window.engine = {};
268
+ for (const cmd of api) {
269
+ const jsName = cmd.cmd
270
+ .replace(/^\//, '')
271
+ .replace(/_([a-z])/g, (_, c) => c.toUpperCase());
272
+ const paramNames = cmd.args.map(a => a.name);
273
+ const body = [
274
+ `var parts = [${JSON.stringify(cmd.cmd)}];`,
275
+ `var defs = ${JSON.stringify(cmd.args)};`,
276
+ `for (var i = 0; i < defs.length; i++) {`,
277
+ ` var val = arguments[i];`,
278
+ ` if (val === undefined) { if (!defs[i].optional) throw new Error(${JSON.stringify(jsName)} + ": missing arg '" + defs[i].name + "'"); break; }`,
279
+ ` parts.push(defs[i].kind === 'json' ? JSON.stringify(val) : String(val));`,
280
+ `}`,
281
+ `return window.engine_console_command(parts.join(' ')).then(function(r) { try { return JSON.parse(r); } catch(e) { return r; } });`,
282
+ ].join('\n');
283
+ const fn = new Function(...paramNames, body);
284
+ const sig = cmd.args.map(a => {
285
+ const name = a.kind === 'json' ? `${a.name}: object` : a.name;
286
+ return a.optional ? `[${name}]` : `<${name}>`;
287
+ }).join(', ');
288
+ fn._sig = `(${sig})`;
289
+ fn._help = cmd.help || '';
290
+ fn.toString = () => `${jsName}${fn._sig}${fn._help ? ' — ' + fn._help : ''}`;
291
+ window.engine[jsName] = fn;
292
+ }
293
+ window.engine.help = (name) => {
294
+ if (!name) {
295
+ const lines = ['Available commands:'];
296
+ for (const [k, v] of Object.entries(window.engine)) {
297
+ if (typeof v === 'function' && v._help) lines.push(` ${k} - ${v._help}`);
298
+ }
299
+ return lines.join('\n');
300
+ }
301
+ const fn = window.engine[name];
302
+ if (!fn?._sig) return `Unknown command: ${name}`;
303
+ return `${name}${fn._sig}\n${fn._help || ''}`;
304
+ };
305
+ } catch (e) {
306
+ console.warn('Failed to build engine API:', e);
307
+ }
308
+ delete window._buildEngineApi;
309
+ };
310
+
263
311
  engine_run(platform, realmValue, positionValue, systemScene, true, preview, 1e7);
264
312
  window.engine_console_command = engine_console_command;
265
- setTimeout(showCanvas,200)
313
+ setTimeout(showCanvas, 200);
266
314
  }
package/index.html CHANGED
@@ -411,7 +411,7 @@
411
411
  }
412
412
  </style>
413
413
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
414
- <script>window.PUBLIC_URL = "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-23382194066.commit-d716341";</script>
414
+ <script>window.PUBLIC_URL = "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-23518073781.commit-c2a8f95";</script>
415
415
  </head>
416
416
  <body>
417
417
  <div id="header" class="container">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl-regenesislabs/bevy-explorer-web",
3
- "version": "0.1.0-23382194066.commit-d716341",
3
+ "version": "0.1.0-23518073781.commit-c2a8f95",
4
4
  "scripts": {
5
5
  "postinstall": "node ./scripts/prebuild.js"
6
6
  },
@@ -8,6 +8,6 @@
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/decentraland/bevy-explorer.git"
10
10
  },
11
- "homepage": "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-23382194066.commit-d716341",
12
- "commit": "d716341e06e1de67db890e44e995b1ca14f5fee0"
11
+ "homepage": "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-23518073781.commit-c2a8f95",
12
+ "commit": "c2a8f95a05cb79a8b935ace4adc6530a9bf9a8cd"
13
13
  }
package/pkg/manifest.json CHANGED
@@ -1 +1 @@
1
- {"wasmSize":117137260}
1
+ {"wasmSize":118229966}
@@ -72,6 +72,7 @@ export class WorkerContext {
72
72
  private constructor();
73
73
  free(): void;
74
74
  [Symbol.dispose](): void;
75
+ get_scene_title(): string;
75
76
  get_source(): any;
76
77
  }
77
78
 
@@ -127,6 +128,8 @@ export function op_crdt_send_to_renderer(op_state: WorkerContext, messages: Arra
127
128
 
128
129
  export function op_emote(op_state: WorkerContext, emote: string): void;
129
130
 
131
+ export function op_error(state: WorkerContext, message: string): void;
132
+
130
133
  export function op_external_url(state: WorkerContext, url: string): Promise<boolean>;
131
134
 
132
135
  export function op_get_avatar_modifiers(state: WorkerContext): Promise<Array<any>>;
@@ -175,6 +178,8 @@ export function op_kernel_fetch_headers(state: WorkerContext, uri: string, metho
175
178
 
176
179
  export function op_live_scene_info(state: WorkerContext): Promise<Array<any>>;
177
180
 
181
+ export function op_log(state: WorkerContext, message: string): void;
182
+
178
183
  export function op_log_test_plan(state: WorkerContext, body: any): void;
179
184
 
180
185
  export function op_log_test_result(state: WorkerContext, body: any): void;
@@ -335,6 +340,7 @@ export interface InitOutput {
335
340
  readonly op_crdt_recv_from_renderer: (a: number) => any;
336
341
  readonly op_crdt_send_to_renderer: (a: number, b: any) => void;
337
342
  readonly op_emote: (a: number, b: number, c: number) => void;
343
+ readonly op_error: (a: number, b: number, c: number) => void;
338
344
  readonly op_external_url: (a: number, b: number, c: number) => any;
339
345
  readonly op_get_avatar_modifiers: (a: number) => any;
340
346
  readonly op_get_bindings: (a: number) => any;
@@ -359,6 +365,7 @@ export interface InitOutput {
359
365
  readonly op_get_voice_stream: (a: number) => any;
360
366
  readonly op_kernel_fetch_headers: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
361
367
  readonly op_live_scene_info: (a: number) => any;
368
+ readonly op_log: (a: number, b: number, c: number) => void;
362
369
  readonly op_log_test_plan: (a: number, b: any) => void;
363
370
  readonly op_log_test_result: (a: number, b: any) => void;
364
371
  readonly op_login_cancel: (a: number) => void;
@@ -417,13 +424,14 @@ export interface InitOutput {
417
424
  readonly op_webstorage_set: (a: number, b: number, c: number, d: number, e: number) => void;
418
425
  readonly op_world_time: (a: number) => any;
419
426
  readonly wasm_init_scene: () => any;
427
+ readonly workercontext_get_scene_title: (a: number) => [number, number];
420
428
  readonly workercontext_get_source: (a: number) => any;
421
429
  readonly gpu_cache_hash: () => [number, number];
422
430
  readonly wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__wasm_bindgen_6c0c3bb491d8811b___JsValue____Output________2_: (a: number, b: number) => void;
423
431
  readonly wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__wasm_bindgen_6c0c3bb491d8811b___JsValue____Output________3_: (a: number, b: number) => void;
424
432
  readonly wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__wasm_bindgen_6c0c3bb491d8811b___JsValue____Output___core_f2710c7f87f75ba1___result__Result_____wasm_bindgen_6c0c3bb491d8811b___JsError___: (a: number, b: number) => void;
425
433
  readonly wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__f64__wasm_bindgen_6c0c3bb491d8811b___JsValue___Output_______: (a: number, b: number) => void;
426
- readonly wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__Fn__comms_d0dbb1e69f98a4c8___livekit__web__room_event__RoomEvent____Output_______: (a: number, b: number) => void;
434
+ readonly wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__Fn__comms_473a2fbc44efbcc6___livekit__web__room_event__RoomEvent____Output_______: (a: number, b: number) => void;
427
435
  readonly wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__web_sys_72aa5c11aad59394___features__gen_CloseEvent__CloseEvent____Output_______: (a: number, b: number) => void;
428
436
  readonly wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut_____Output_______: (a: number, b: number) => void;
429
437
  readonly wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__wasm_bindgen_6c0c3bb491d8811b___JsValue____Output_______: (a: number, b: number) => void;
@@ -435,14 +443,14 @@ export interface InitOutput {
435
443
  readonly wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__core_f2710c7f87f75ba1___option__Option_web_sys_72aa5c11aad59394___features__gen_Blob__Blob_____Output_______: (a: number, b: number) => void;
436
444
  readonly wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___f64__wasm_bindgen_6c0c3bb491d8811b___JsValue______true_: (a: number, b: number, c: number, d: any) => void;
437
445
  readonly wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___wasm_bindgen_6c0c3bb491d8811b___JsValue__core_f2710c7f87f75ba1___result__Result_____wasm_bindgen_6c0c3bb491d8811b___JsError___true_: (a: number, b: number, c: any) => [number, number];
438
- readonly wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___comms_d0dbb1e69f98a4c8___livekit__web__local_audio_track__LocalAudioTrack__core_f2710c7f87f75ba1___result__Result_____wasm_bindgen_6c0c3bb491d8811b___JsError___true_: (a: number, b: number, c: any) => [number, number];
446
+ readonly wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___comms_473a2fbc44efbcc6___livekit__web__local_audio_track__LocalAudioTrack__core_f2710c7f87f75ba1___result__Result_____wasm_bindgen_6c0c3bb491d8811b___JsError___true_: (a: number, b: number, c: any) => [number, number];
439
447
  readonly wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___js_sys_67c12748f230903f___Array__web_sys_72aa5c11aad59394___features__gen_ResizeObserver__ResizeObserver______true_: (a: number, b: number, c: any, d: any) => void;
440
448
  readonly wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___js_sys_67c12748f230903f___Function_fn_wasm_bindgen_6c0c3bb491d8811b___JsValue_____wasm_bindgen_6c0c3bb491d8811b___sys__Undefined___js_sys_67c12748f230903f___Function_fn_wasm_bindgen_6c0c3bb491d8811b___JsValue_____wasm_bindgen_6c0c3bb491d8811b___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
441
449
  readonly wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___wasm_bindgen_6c0c3bb491d8811b___JsValue______true__3_: (a: number, b: number, c: any) => void;
442
450
  readonly wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___wasm_bindgen_6c0c3bb491d8811b___JsValue______true__3__1: (a: number, b: number, c: any) => void;
443
451
  readonly wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___wasm_bindgen_6c0c3bb491d8811b___JsValue______true__4_: (a: number, b: number, c: any) => void;
444
452
  readonly wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___web_sys_72aa5c11aad59394___features__gen_MessageEvent__MessageEvent______true_: (a: number, b: number, c: any) => void;
445
- readonly wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___comms_d0dbb1e69f98a4c8___livekit__web__room_event__RoomEvent______true_: (a: number, b: number, c: any) => void;
453
+ readonly wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___comms_473a2fbc44efbcc6___livekit__web__room_event__RoomEvent______true_: (a: number, b: number, c: any) => void;
446
454
  readonly wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___web_sys_72aa5c11aad59394___features__gen_CloseEvent__CloseEvent______true_: (a: number, b: number, c: any) => void;
447
455
  readonly wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___wasm_bindgen_6c0c3bb491d8811b___JsValue______true_: (a: number, b: number, c: any) => void;
448
456
  readonly wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___web_sys_72aa5c11aad59394___features__gen_InputEvent__InputEvent______true_: (a: number, b: number, c: any) => void;
@@ -214,6 +214,21 @@ export class WorkerContext {
214
214
  const ptr = this.__destroy_into_raw();
215
215
  wasm.__wbg_workercontext_free(ptr, 0);
216
216
  }
217
+ /**
218
+ * @returns {string}
219
+ */
220
+ get_scene_title() {
221
+ let deferred1_0;
222
+ let deferred1_1;
223
+ try {
224
+ const ret = wasm.workercontext_get_scene_title(this.__wbg_ptr);
225
+ deferred1_0 = ret[0];
226
+ deferred1_1 = ret[1];
227
+ return getStringFromWasm0(ret[0], ret[1]);
228
+ } finally {
229
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
230
+ }
231
+ }
217
232
  /**
218
233
  * @returns {any}
219
234
  */
@@ -490,6 +505,17 @@ export function op_emote(op_state, emote) {
490
505
  wasm.op_emote(op_state.__wbg_ptr, ptr0, len0);
491
506
  }
492
507
 
508
+ /**
509
+ * @param {WorkerContext} state
510
+ * @param {string} message
511
+ */
512
+ export function op_error(state, message) {
513
+ _assertClass(state, WorkerContext);
514
+ const ptr0 = passStringToWasm0(message, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
515
+ const len0 = WASM_VECTOR_LEN;
516
+ wasm.op_error(state.__wbg_ptr, ptr0, len0);
517
+ }
518
+
493
519
  /**
494
520
  * @param {WorkerContext} state
495
521
  * @param {string} url
@@ -759,6 +785,17 @@ export function op_live_scene_info(state) {
759
785
  return ret;
760
786
  }
761
787
 
788
+ /**
789
+ * @param {WorkerContext} state
790
+ * @param {string} message
791
+ */
792
+ export function op_log(state, message) {
793
+ _assertClass(state, WorkerContext);
794
+ const ptr0 = passStringToWasm0(message, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
795
+ const len0 = WASM_VECTOR_LEN;
796
+ wasm.op_log(state.__wbg_ptr, ptr0, len0);
797
+ }
798
+
762
799
  /**
763
800
  * @param {WorkerContext} state
764
801
  * @param {any} body
@@ -1557,6 +1594,9 @@ function __wbg_get_imports(memory) {
1557
1594
  __wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
1558
1595
  throw new Error(getStringFromWasm0(arg0, arg1));
1559
1596
  },
1597
+ __wbg__buildEngineApi_65dc2303159e674f: function(arg0, arg1) {
1598
+ window._buildEngineApi(getStringFromWasm0(arg0, arg1));
1599
+ },
1560
1600
  __wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg0) {
1561
1601
  arg0._wbg_cb_unref();
1562
1602
  },
@@ -4366,142 +4406,142 @@ function __wbg_get_imports(memory) {
4366
4406
  return ret;
4367
4407
  },
4368
4408
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
4369
- // Cast intrinsic for `Closure(Closure { dtor_idx: 123118, function: Function { arguments: [Externref], shim_idx: 123119, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4409
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 124547, function: Function { arguments: [Externref], shim_idx: 124548, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4370
4410
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__wasm_bindgen_6c0c3bb491d8811b___JsValue____Output________2_, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___wasm_bindgen_6c0c3bb491d8811b___JsValue______true__3_);
4371
4411
  return ret;
4372
4412
  },
4373
4413
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
4374
- // Cast intrinsic for `Closure(Closure { dtor_idx: 123118, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 123119, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4414
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 124547, function: Function { arguments: [NamedExternref("GPUUncapturedErrorEvent")], shim_idx: 124548, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4375
4415
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__wasm_bindgen_6c0c3bb491d8811b___JsValue____Output________2_, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___wasm_bindgen_6c0c3bb491d8811b___JsValue______true__3__1);
4376
4416
  return ret;
4377
4417
  },
4378
4418
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
4379
- // Cast intrinsic for `Closure(Closure { dtor_idx: 130389, function: Function { arguments: [Externref], shim_idx: 130390, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4419
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 131818, function: Function { arguments: [Externref], shim_idx: 131819, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4380
4420
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__wasm_bindgen_6c0c3bb491d8811b___JsValue____Output________3_, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___wasm_bindgen_6c0c3bb491d8811b___JsValue______true__4_);
4381
4421
  return ret;
4382
4422
  },
4383
4423
  __wbindgen_cast_0000000000000004: function(arg0, arg1) {
4384
- // Cast intrinsic for `Closure(Closure { dtor_idx: 138443, function: Function { arguments: [Externref], shim_idx: 138444, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
4424
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 139872, function: Function { arguments: [Externref], shim_idx: 139873, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
4385
4425
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__wasm_bindgen_6c0c3bb491d8811b___JsValue____Output___core_f2710c7f87f75ba1___result__Result_____wasm_bindgen_6c0c3bb491d8811b___JsError___, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___wasm_bindgen_6c0c3bb491d8811b___JsValue__core_f2710c7f87f75ba1___result__Result_____wasm_bindgen_6c0c3bb491d8811b___JsError___true_);
4386
4426
  return ret;
4387
4427
  },
4388
4428
  __wbindgen_cast_0000000000000005: function(arg0, arg1) {
4389
- // Cast intrinsic for `Closure(Closure { dtor_idx: 138443, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 138446, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4429
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 139872, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 139875, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4390
4430
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__wasm_bindgen_6c0c3bb491d8811b___JsValue____Output___core_f2710c7f87f75ba1___result__Result_____wasm_bindgen_6c0c3bb491d8811b___JsError___, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___web_sys_72aa5c11aad59394___features__gen_MessageEvent__MessageEvent______true_);
4391
4431
  return ret;
4392
4432
  },
4393
4433
  __wbindgen_cast_0000000000000006: function(arg0, arg1) {
4394
- // Cast intrinsic for `Closure(Closure { dtor_idx: 17058, function: Function { arguments: [F64, Externref], shim_idx: 17059, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4434
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 18007, function: Function { arguments: [F64, Externref], shim_idx: 18008, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4395
4435
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__f64__wasm_bindgen_6c0c3bb491d8811b___JsValue___Output_______, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___f64__wasm_bindgen_6c0c3bb491d8811b___JsValue______true_);
4396
4436
  return ret;
4397
4437
  },
4398
4438
  __wbindgen_cast_0000000000000007: function(arg0, arg1) {
4399
- // Cast intrinsic for `Closure(Closure { dtor_idx: 44343, function: Function { arguments: [Externref], shim_idx: 44344, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
4400
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__Fn__comms_d0dbb1e69f98a4c8___livekit__web__room_event__RoomEvent____Output_______, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___comms_d0dbb1e69f98a4c8___livekit__web__local_audio_track__LocalAudioTrack__core_f2710c7f87f75ba1___result__Result_____wasm_bindgen_6c0c3bb491d8811b___JsError___true_);
4439
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 45772, function: Function { arguments: [Externref], shim_idx: 45773, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
4440
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__Fn__comms_473a2fbc44efbcc6___livekit__web__room_event__RoomEvent____Output_______, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___comms_473a2fbc44efbcc6___livekit__web__local_audio_track__LocalAudioTrack__core_f2710c7f87f75ba1___result__Result_____wasm_bindgen_6c0c3bb491d8811b___JsError___true_);
4401
4441
  return ret;
4402
4442
  },
4403
4443
  __wbindgen_cast_0000000000000008: function(arg0, arg1) {
4404
- // Cast intrinsic for `Closure(Closure { dtor_idx: 44343, function: Function { arguments: [Externref], shim_idx: 44346, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
4405
- const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__Fn__comms_d0dbb1e69f98a4c8___livekit__web__room_event__RoomEvent____Output_______, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___comms_d0dbb1e69f98a4c8___livekit__web__room_event__RoomEvent______true_);
4444
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 45772, function: Function { arguments: [Externref], shim_idx: 45775, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
4445
+ const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__Fn__comms_473a2fbc44efbcc6___livekit__web__room_event__RoomEvent____Output_______, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___comms_473a2fbc44efbcc6___livekit__web__room_event__RoomEvent______true_);
4406
4446
  return ret;
4407
4447
  },
4408
4448
  __wbindgen_cast_0000000000000009: function(arg0, arg1) {
4409
- // Cast intrinsic for `Closure(Closure { dtor_idx: 54014, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 54015, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4449
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 55441, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 55442, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4410
4450
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__web_sys_72aa5c11aad59394___features__gen_CloseEvent__CloseEvent____Output_______, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___web_sys_72aa5c11aad59394___features__gen_CloseEvent__CloseEvent______true_);
4411
4451
  return ret;
4412
4452
  },
4413
4453
  __wbindgen_cast_000000000000000a: function(arg0, arg1) {
4414
- // Cast intrinsic for `Closure(Closure { dtor_idx: 54119, function: Function { arguments: [], shim_idx: 54120, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4454
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 55546, function: Function { arguments: [], shim_idx: 55547, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4415
4455
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut_____Output_______, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke_______true_);
4416
4456
  return ret;
4417
4457
  },
4418
4458
  __wbindgen_cast_000000000000000b: function(arg0, arg1) {
4419
- // Cast intrinsic for `Closure(Closure { dtor_idx: 54122, function: Function { arguments: [Externref], shim_idx: 54123, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4459
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 55549, function: Function { arguments: [Externref], shim_idx: 55550, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4420
4460
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__wasm_bindgen_6c0c3bb491d8811b___JsValue____Output_______, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___wasm_bindgen_6c0c3bb491d8811b___JsValue______true_);
4421
4461
  return ret;
4422
4462
  },
4423
4463
  __wbindgen_cast_000000000000000c: function(arg0, arg1) {
4424
- // Cast intrinsic for `Closure(Closure { dtor_idx: 57382, function: Function { arguments: [], shim_idx: 57383, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4464
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 58809, function: Function { arguments: [], shim_idx: 58810, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4425
4465
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut_____Output________1_, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke_______true__1_);
4426
4466
  return ret;
4427
4467
  },
4428
4468
  __wbindgen_cast_000000000000000d: function(arg0, arg1) {
4429
- // Cast intrinsic for `Closure(Closure { dtor_idx: 57990, function: Function { arguments: [NamedExternref("CompositionEvent")], shim_idx: 57991, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4469
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 59417, function: Function { arguments: [NamedExternref("CompositionEvent")], shim_idx: 59418, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4430
4470
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__web_sys_72aa5c11aad59394___features__gen_InputEvent__InputEvent____Output_______, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___web_sys_72aa5c11aad59394___features__gen_InputEvent__InputEvent______true_);
4431
4471
  return ret;
4432
4472
  },
4433
4473
  __wbindgen_cast_000000000000000e: function(arg0, arg1) {
4434
- // Cast intrinsic for `Closure(Closure { dtor_idx: 57990, function: Function { arguments: [NamedExternref("InputEvent")], shim_idx: 57991, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4474
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 59417, function: Function { arguments: [NamedExternref("InputEvent")], shim_idx: 59418, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4435
4475
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__web_sys_72aa5c11aad59394___features__gen_InputEvent__InputEvent____Output_______, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___web_sys_72aa5c11aad59394___features__gen_InputEvent__InputEvent______true__13);
4436
4476
  return ret;
4437
4477
  },
4438
4478
  __wbindgen_cast_000000000000000f: function(arg0, arg1) {
4439
- // Cast intrinsic for `Closure(Closure { dtor_idx: 57990, function: Function { arguments: [NamedExternref("TouchEvent")], shim_idx: 57991, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4479
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 59417, function: Function { arguments: [NamedExternref("TouchEvent")], shim_idx: 59418, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4440
4480
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__web_sys_72aa5c11aad59394___features__gen_InputEvent__InputEvent____Output_______, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___web_sys_72aa5c11aad59394___features__gen_InputEvent__InputEvent______true__14);
4441
4481
  return ret;
4442
4482
  },
4443
4483
  __wbindgen_cast_0000000000000010: function(arg0, arg1) {
4444
- // Cast intrinsic for `Closure(Closure { dtor_idx: 61242, function: Function { arguments: [], shim_idx: 61243, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4484
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 62669, function: Function { arguments: [], shim_idx: 62670, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4445
4485
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut_____Output________2_, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke_______true__2_);
4446
4486
  return ret;
4447
4487
  },
4448
4488
  __wbindgen_cast_0000000000000011: function(arg0, arg1) {
4449
- // Cast intrinsic for `Closure(Closure { dtor_idx: 61616, function: Function { arguments: [], shim_idx: 61617, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4489
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 63043, function: Function { arguments: [], shim_idx: 63044, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4450
4490
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut_____Output________3_, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke_______true__3_);
4451
4491
  return ret;
4452
4492
  },
4453
4493
  __wbindgen_cast_0000000000000012: function(arg0, arg1) {
4454
- // Cast intrinsic for `Closure(Closure { dtor_idx: 61652, function: Function { arguments: [Externref], shim_idx: 61653, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4494
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 63079, function: Function { arguments: [Externref], shim_idx: 63080, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4455
4495
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__wasm_bindgen_6c0c3bb491d8811b___JsValue____Output________1_, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___wasm_bindgen_6c0c3bb491d8811b___JsValue______true__1_);
4456
4496
  return ret;
4457
4497
  },
4458
4498
  __wbindgen_cast_0000000000000013: function(arg0, arg1) {
4459
- // Cast intrinsic for `Closure(Closure { dtor_idx: 63086, function: Function { arguments: [Externref], shim_idx: 63087, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4499
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 64515, function: Function { arguments: [Externref], shim_idx: 64516, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4460
4500
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__core_f2710c7f87f75ba1___option__Option_web_sys_72aa5c11aad59394___features__gen_Blob__Blob_____Output_______, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___wasm_bindgen_6c0c3bb491d8811b___JsValue______true__2_);
4461
4501
  return ret;
4462
4502
  },
4463
4503
  __wbindgen_cast_0000000000000014: function(arg0, arg1) {
4464
- // Cast intrinsic for `Closure(Closure { dtor_idx: 63086, function: Function { arguments: [NamedExternref("Array<any>"), NamedExternref("ResizeObserver")], shim_idx: 63094, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4504
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 64515, function: Function { arguments: [NamedExternref("Array<any>"), NamedExternref("ResizeObserver")], shim_idx: 64523, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4465
4505
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__core_f2710c7f87f75ba1___option__Option_web_sys_72aa5c11aad59394___features__gen_Blob__Blob_____Output_______, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___js_sys_67c12748f230903f___Array__web_sys_72aa5c11aad59394___features__gen_ResizeObserver__ResizeObserver______true_);
4466
4506
  return ret;
4467
4507
  },
4468
4508
  __wbindgen_cast_0000000000000015: function(arg0, arg1) {
4469
- // Cast intrinsic for `Closure(Closure { dtor_idx: 63086, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 63087, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4509
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 64515, function: Function { arguments: [NamedExternref("Array<any>")], shim_idx: 64516, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4470
4510
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__core_f2710c7f87f75ba1___option__Option_web_sys_72aa5c11aad59394___features__gen_Blob__Blob_____Output_______, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___wasm_bindgen_6c0c3bb491d8811b___JsValue______true__2__20);
4471
4511
  return ret;
4472
4512
  },
4473
4513
  __wbindgen_cast_0000000000000016: function(arg0, arg1) {
4474
- // Cast intrinsic for `Closure(Closure { dtor_idx: 63086, function: Function { arguments: [NamedExternref("Event")], shim_idx: 63087, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4514
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 64515, function: Function { arguments: [NamedExternref("Event")], shim_idx: 64516, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4475
4515
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__core_f2710c7f87f75ba1___option__Option_web_sys_72aa5c11aad59394___features__gen_Blob__Blob_____Output_______, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___wasm_bindgen_6c0c3bb491d8811b___JsValue______true__2__21);
4476
4516
  return ret;
4477
4517
  },
4478
4518
  __wbindgen_cast_0000000000000017: function(arg0, arg1) {
4479
- // Cast intrinsic for `Closure(Closure { dtor_idx: 63086, function: Function { arguments: [NamedExternref("FocusEvent")], shim_idx: 63087, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4519
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 64515, function: Function { arguments: [NamedExternref("FocusEvent")], shim_idx: 64516, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4480
4520
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__core_f2710c7f87f75ba1___option__Option_web_sys_72aa5c11aad59394___features__gen_Blob__Blob_____Output_______, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___wasm_bindgen_6c0c3bb491d8811b___JsValue______true__2__22);
4481
4521
  return ret;
4482
4522
  },
4483
4523
  __wbindgen_cast_0000000000000018: function(arg0, arg1) {
4484
- // Cast intrinsic for `Closure(Closure { dtor_idx: 63086, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 63087, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4524
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 64515, function: Function { arguments: [NamedExternref("KeyboardEvent")], shim_idx: 64516, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4485
4525
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__core_f2710c7f87f75ba1___option__Option_web_sys_72aa5c11aad59394___features__gen_Blob__Blob_____Output_______, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___wasm_bindgen_6c0c3bb491d8811b___JsValue______true__2__23);
4486
4526
  return ret;
4487
4527
  },
4488
4528
  __wbindgen_cast_0000000000000019: function(arg0, arg1) {
4489
- // Cast intrinsic for `Closure(Closure { dtor_idx: 63086, function: Function { arguments: [NamedExternref("PageTransitionEvent")], shim_idx: 63087, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4529
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 64515, function: Function { arguments: [NamedExternref("PageTransitionEvent")], shim_idx: 64516, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4490
4530
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__core_f2710c7f87f75ba1___option__Option_web_sys_72aa5c11aad59394___features__gen_Blob__Blob_____Output_______, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___wasm_bindgen_6c0c3bb491d8811b___JsValue______true__2__24);
4491
4531
  return ret;
4492
4532
  },
4493
4533
  __wbindgen_cast_000000000000001a: function(arg0, arg1) {
4494
- // Cast intrinsic for `Closure(Closure { dtor_idx: 63086, function: Function { arguments: [NamedExternref("PointerEvent")], shim_idx: 63087, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4534
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 64515, function: Function { arguments: [NamedExternref("PointerEvent")], shim_idx: 64516, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4495
4535
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__core_f2710c7f87f75ba1___option__Option_web_sys_72aa5c11aad59394___features__gen_Blob__Blob_____Output_______, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___wasm_bindgen_6c0c3bb491d8811b___JsValue______true__2__25);
4496
4536
  return ret;
4497
4537
  },
4498
4538
  __wbindgen_cast_000000000000001b: function(arg0, arg1) {
4499
- // Cast intrinsic for `Closure(Closure { dtor_idx: 63086, function: Function { arguments: [NamedExternref("WheelEvent")], shim_idx: 63087, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4539
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 64515, function: Function { arguments: [NamedExternref("WheelEvent")], shim_idx: 64516, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4500
4540
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__core_f2710c7f87f75ba1___option__Option_web_sys_72aa5c11aad59394___features__gen_Blob__Blob_____Output_______, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___wasm_bindgen_6c0c3bb491d8811b___JsValue______true__2__26);
4501
4541
  return ret;
4502
4542
  },
4503
4543
  __wbindgen_cast_000000000000001c: function(arg0, arg1) {
4504
- // Cast intrinsic for `Closure(Closure { dtor_idx: 63086, function: Function { arguments: [], shim_idx: 63102, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4544
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 64515, function: Function { arguments: [], shim_idx: 64531, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
4505
4545
  const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__core_f2710c7f87f75ba1___option__Option_web_sys_72aa5c11aad59394___features__gen_Blob__Blob_____Output_______, wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke_______true__4_);
4506
4546
  return ret;
4507
4547
  },
@@ -4855,7 +4895,7 @@ function __wbg_get_imports(memory) {
4855
4895
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
4856
4896
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
4857
4897
  },
4858
- memory: memory || new WebAssembly.Memory({initial:1015,maximum:65536,shared:true}),
4898
+ memory: memory || new WebAssembly.Memory({initial:1016,maximum:65536,shared:true}),
4859
4899
  };
4860
4900
  return {
4861
4901
  __proto__: null,
@@ -4909,8 +4949,8 @@ function wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___web_sys_
4909
4949
  wasm.wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___web_sys_72aa5c11aad59394___features__gen_MessageEvent__MessageEvent______true_(arg0, arg1, arg2);
4910
4950
  }
4911
4951
 
4912
- function wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___comms_d0dbb1e69f98a4c8___livekit__web__room_event__RoomEvent______true_(arg0, arg1, arg2) {
4913
- wasm.wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___comms_d0dbb1e69f98a4c8___livekit__web__room_event__RoomEvent______true_(arg0, arg1, arg2);
4952
+ function wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___comms_473a2fbc44efbcc6___livekit__web__room_event__RoomEvent______true_(arg0, arg1, arg2) {
4953
+ wasm.wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___comms_473a2fbc44efbcc6___livekit__web__room_event__RoomEvent______true_(arg0, arg1, arg2);
4914
4954
  }
4915
4955
 
4916
4956
  function wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___web_sys_72aa5c11aad59394___features__gen_CloseEvent__CloseEvent______true_(arg0, arg1, arg2) {
@@ -4976,8 +5016,8 @@ function wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___wasm_bin
4976
5016
  }
4977
5017
  }
4978
5018
 
4979
- function wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___comms_d0dbb1e69f98a4c8___livekit__web__local_audio_track__LocalAudioTrack__core_f2710c7f87f75ba1___result__Result_____wasm_bindgen_6c0c3bb491d8811b___JsError___true_(arg0, arg1, arg2) {
4980
- const ret = wasm.wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___comms_d0dbb1e69f98a4c8___livekit__web__local_audio_track__LocalAudioTrack__core_f2710c7f87f75ba1___result__Result_____wasm_bindgen_6c0c3bb491d8811b___JsError___true_(arg0, arg1, arg2);
5019
+ function wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___comms_473a2fbc44efbcc6___livekit__web__local_audio_track__LocalAudioTrack__core_f2710c7f87f75ba1___result__Result_____wasm_bindgen_6c0c3bb491d8811b___JsError___true_(arg0, arg1, arg2) {
5020
+ const ret = wasm.wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___comms_473a2fbc44efbcc6___livekit__web__local_audio_track__LocalAudioTrack__core_f2710c7f87f75ba1___result__Result_____wasm_bindgen_6c0c3bb491d8811b___JsError___true_(arg0, arg1, arg2);
4981
5021
  if (ret[1]) {
4982
5022
  throw takeFromExternrefTable0(ret[0]);
4983
5023
  }
Binary file
@@ -41,6 +41,7 @@ export const op_copy_to_clipboard: (a: number, b: number, c: number) => any;
41
41
  export const op_crdt_recv_from_renderer: (a: number) => any;
42
42
  export const op_crdt_send_to_renderer: (a: number, b: any) => void;
43
43
  export const op_emote: (a: number, b: number, c: number) => void;
44
+ export const op_error: (a: number, b: number, c: number) => void;
44
45
  export const op_external_url: (a: number, b: number, c: number) => any;
45
46
  export const op_get_avatar_modifiers: (a: number) => any;
46
47
  export const op_get_bindings: (a: number) => any;
@@ -65,6 +66,7 @@ export const op_get_user_data: (a: number) => any;
65
66
  export const op_get_voice_stream: (a: number) => any;
66
67
  export const op_kernel_fetch_headers: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
67
68
  export const op_live_scene_info: (a: number) => any;
69
+ export const op_log: (a: number, b: number, c: number) => void;
68
70
  export const op_log_test_plan: (a: number, b: any) => void;
69
71
  export const op_log_test_result: (a: number, b: any) => void;
70
72
  export const op_login_cancel: (a: number) => void;
@@ -123,13 +125,14 @@ export const op_webstorage_remove: (a: number, b: number, c: number) => void;
123
125
  export const op_webstorage_set: (a: number, b: number, c: number, d: number, e: number) => void;
124
126
  export const op_world_time: (a: number) => any;
125
127
  export const wasm_init_scene: () => any;
128
+ export const workercontext_get_scene_title: (a: number) => [number, number];
126
129
  export const workercontext_get_source: (a: number) => any;
127
130
  export const gpu_cache_hash: () => [number, number];
128
131
  export const wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__wasm_bindgen_6c0c3bb491d8811b___JsValue____Output________2_: (a: number, b: number) => void;
129
132
  export const wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__wasm_bindgen_6c0c3bb491d8811b___JsValue____Output________3_: (a: number, b: number) => void;
130
133
  export const wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__wasm_bindgen_6c0c3bb491d8811b___JsValue____Output___core_f2710c7f87f75ba1___result__Result_____wasm_bindgen_6c0c3bb491d8811b___JsError___: (a: number, b: number) => void;
131
134
  export const wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__f64__wasm_bindgen_6c0c3bb491d8811b___JsValue___Output_______: (a: number, b: number) => void;
132
- export const wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__Fn__comms_d0dbb1e69f98a4c8___livekit__web__room_event__RoomEvent____Output_______: (a: number, b: number) => void;
135
+ export const wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__Fn__comms_473a2fbc44efbcc6___livekit__web__room_event__RoomEvent____Output_______: (a: number, b: number) => void;
133
136
  export const wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__web_sys_72aa5c11aad59394___features__gen_CloseEvent__CloseEvent____Output_______: (a: number, b: number) => void;
134
137
  export const wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut_____Output_______: (a: number, b: number) => void;
135
138
  export const wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__wasm_bindgen_6c0c3bb491d8811b___JsValue____Output_______: (a: number, b: number) => void;
@@ -141,14 +144,14 @@ export const wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7
141
144
  export const wasm_bindgen_6c0c3bb491d8811b___closure__destroy___dyn_core_f2710c7f87f75ba1___ops__function__FnMut__core_f2710c7f87f75ba1___option__Option_web_sys_72aa5c11aad59394___features__gen_Blob__Blob_____Output_______: (a: number, b: number) => void;
142
145
  export const wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___f64__wasm_bindgen_6c0c3bb491d8811b___JsValue______true_: (a: number, b: number, c: number, d: any) => void;
143
146
  export const wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___wasm_bindgen_6c0c3bb491d8811b___JsValue__core_f2710c7f87f75ba1___result__Result_____wasm_bindgen_6c0c3bb491d8811b___JsError___true_: (a: number, b: number, c: any) => [number, number];
144
- export const wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___comms_d0dbb1e69f98a4c8___livekit__web__local_audio_track__LocalAudioTrack__core_f2710c7f87f75ba1___result__Result_____wasm_bindgen_6c0c3bb491d8811b___JsError___true_: (a: number, b: number, c: any) => [number, number];
147
+ export const wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___comms_473a2fbc44efbcc6___livekit__web__local_audio_track__LocalAudioTrack__core_f2710c7f87f75ba1___result__Result_____wasm_bindgen_6c0c3bb491d8811b___JsError___true_: (a: number, b: number, c: any) => [number, number];
145
148
  export const wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___js_sys_67c12748f230903f___Array__web_sys_72aa5c11aad59394___features__gen_ResizeObserver__ResizeObserver______true_: (a: number, b: number, c: any, d: any) => void;
146
149
  export const wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___js_sys_67c12748f230903f___Function_fn_wasm_bindgen_6c0c3bb491d8811b___JsValue_____wasm_bindgen_6c0c3bb491d8811b___sys__Undefined___js_sys_67c12748f230903f___Function_fn_wasm_bindgen_6c0c3bb491d8811b___JsValue_____wasm_bindgen_6c0c3bb491d8811b___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
147
150
  export const wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___wasm_bindgen_6c0c3bb491d8811b___JsValue______true__3_: (a: number, b: number, c: any) => void;
148
151
  export const wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___wasm_bindgen_6c0c3bb491d8811b___JsValue______true__3__1: (a: number, b: number, c: any) => void;
149
152
  export const wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___wasm_bindgen_6c0c3bb491d8811b___JsValue______true__4_: (a: number, b: number, c: any) => void;
150
153
  export const wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___web_sys_72aa5c11aad59394___features__gen_MessageEvent__MessageEvent______true_: (a: number, b: number, c: any) => void;
151
- export const wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___comms_d0dbb1e69f98a4c8___livekit__web__room_event__RoomEvent______true_: (a: number, b: number, c: any) => void;
154
+ export const wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___comms_473a2fbc44efbcc6___livekit__web__room_event__RoomEvent______true_: (a: number, b: number, c: any) => void;
152
155
  export const wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___web_sys_72aa5c11aad59394___features__gen_CloseEvent__CloseEvent______true_: (a: number, b: number, c: any) => void;
153
156
  export const wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___wasm_bindgen_6c0c3bb491d8811b___JsValue______true_: (a: number, b: number, c: any) => void;
154
157
  export const wasm_bindgen_6c0c3bb491d8811b___convert__closures_____invoke___web_sys_72aa5c11aad59394___features__gen_InputEvent__InputEvent______true_: (a: number, b: number, c: any) => void;
package/sandbox_worker.js CHANGED
@@ -71,17 +71,12 @@ var jsProxy = undefined;
71
71
  var jsPreamble = undefined;
72
72
  function createJsContext(wasmApi, context) {
73
73
  const isSuper = wasmApi.is_super(context);
74
-
75
- Object.defineProperty(jsContext, "console", {
76
- value: {
77
- log: console.log.bind(console),
78
- info: console.info.bind(console),
79
- debug: console.debug.bind(console),
80
- trace: console.trace.bind(console),
81
- warning: console.error.bind(console),
82
- error: console.error.bind(console),
83
- },
84
- });
74
+ const sceneLabel = context.get_scene_title();
75
+ const sceneStartTime = performance.now();
76
+ function scenePrefix() {
77
+ const elapsed = (performance.now() - sceneStartTime) / 1000;
78
+ return `[${sceneLabel} ${elapsed.toFixed(2)}]`;
79
+ }
85
80
 
86
81
  const ops = Object.create(null);
87
82
  for (const exportName in wasmApi) {
@@ -97,6 +92,36 @@ function createJsContext(wasmApi, context) {
97
92
  });
98
93
  }
99
94
  }
95
+ function formatLog(...values) {
96
+ return values.map(v => {
97
+ if (v === null) return 'null';
98
+ if (v === undefined) return 'undefined';
99
+ if (typeof v === 'object') { try { return JSON.stringify(v); } catch(e) { return String(v); } }
100
+ return String(v);
101
+ }).join(' ');
102
+ }
103
+
104
+ // Save references to the real browser console before overriding
105
+ const browserConsole = {
106
+ log: console.log.bind(console),
107
+ warn: console.warn.bind(console),
108
+ error: console.error.bind(console),
109
+ debug: console.debug.bind(console),
110
+ trace: console.trace.bind(console),
111
+ };
112
+
113
+ Object.defineProperty(jsContext, "console", {
114
+ value: {
115
+ log: (...args) => { browserConsole.log(scenePrefix(), ...args); ops.op_log("LOG " + formatLog(...args)); },
116
+ info: (...args) => { browserConsole.log(scenePrefix(), ...args); ops.op_log("LOG " + formatLog(...args)); },
117
+ debug: (...args) => { browserConsole.debug(scenePrefix(), ...args); ops.op_log("LOG " + formatLog(...args)); },
118
+ trace: (...args) => { browserConsole.trace(scenePrefix(), ...args); ops.op_log("TRACE " + formatLog(...args)); },
119
+ warning: (...args) => { browserConsole.error(scenePrefix(), ...args); ops.op_error("ERROR " + formatLog(...args)); },
120
+ error: (...args) => { browserConsole.error(scenePrefix(), ...args); ops.op_error("ERROR " + formatLog(...args)); },
121
+ warn: (...args) => { browserConsole.warn(scenePrefix(), ...args); ops.op_log("WARN " + formatLog(...args)); },
122
+ },
123
+ });
124
+
100
125
  const core = Object.create(null);
101
126
  Object.defineProperty(core, "ops", {
102
127
  configurable: false,