@dcl-regenesislabs/bevy-explorer-web 0.1.0-35932535123.commit-9883f71 → 0.1.0-36033403701.commit-19347eb
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/assets/{Showcase-C5rqjC5_.js → Showcase-BUhkfRgq.js} +1 -1
- package/assets/{design-tpXIcp9S.js → design-Fh4VSWdp.js} +1 -1
- package/assets/{index-D2KtSwXa.css → index-B_oaXFz0.css} +1 -1
- package/assets/{index-lFIF2gi0.js → index-DX1YuW5C.js} +3 -3
- package/assets/{menus-DAAES5v_.js → menus-CSgILZ7j.js} +1 -1
- package/assets/{vendor-C7oQlkoF.css → vendor-BtKTmWnJ.css} +1 -1
- package/assets/{vendor-BcGk5WfL.js → vendor-C2yMCOI1.js} +1 -1
- package/bridge-scene/static/BevyExplorerUI/about +1 -1
- package/bridge-scene/static/{bafkreiagin33u6tsytrf7mrhd42h3pezggv4xnhvujhviws2jmee72ul7u → bafkreibr7lbrs4iu6lr3z5thdguk6ze7vslm7f4irlihbi4aoxdhj532m4} +1 -1
- package/engine/boot.js +14 -5
- package/engine/engine.js +117 -48
- package/engine/gpu_cache.js +49 -28
- package/engine/pkg/manifest.json +1 -1
- package/engine/pkg/sandbox_worker.bundle.js +834 -289
- package/engine/pkg/snippets/bevy_internal-2d8ddab1173ada7c/src/web_worker.js +121 -0
- package/engine/pkg/snippets/comms-53217a45365bb5fa/livekit_web_bindings.js +47 -13
- package/engine/pkg/snippets/decentra-bevy-f9c23e535711925a/deploy/web/engine/gpu_cache.js +439 -0
- package/engine/pkg/webgpu_build.d.ts +97 -67
- package/engine/pkg/webgpu_build.js +413 -328
- package/engine/pkg/webgpu_build_bg.wasm +2 -2
- package/engine/pkg/webgpu_build_bg.wasm.d.ts +26 -25
- package/engine/sandbox_worker.js +3 -3
- package/index.html +17 -17
- package/package.json +3 -3
- package/engine/asset_loader.js +0 -30
- package/engine/asset_processor.js +0 -32
|
@@ -7,26 +7,37 @@ var __export = (target, all) => {
|
|
|
7
7
|
// deploy/web/engine/pkg/webgpu_build.js
|
|
8
8
|
var webgpu_build_exports = {};
|
|
9
9
|
__export(webgpu_build_exports, {
|
|
10
|
-
AudioCaptureOptions: () => AudioCaptureOptions,
|
|
11
|
-
DataPacketKind: () => DataPacketKind,
|
|
12
10
|
IntoUnderlyingByteSource: () => IntoUnderlyingByteSource,
|
|
13
11
|
IntoUnderlyingSink: () => IntoUnderlyingSink,
|
|
14
12
|
IntoUnderlyingSource: () => IntoUnderlyingSource,
|
|
15
|
-
ParticipantSid: () => ParticipantSid,
|
|
16
13
|
WorkerContext: () => WorkerContext,
|
|
14
|
+
__bevy_attach_engine_worker: () => __bevy_attach_engine_worker,
|
|
15
|
+
__bevy_compute_worker_main: () => __bevy_compute_worker_main,
|
|
16
|
+
__bevy_page_functions_dcl_wasm_9d742a65: () => __bevy_page_functions_dcl_wasm_9d742a65,
|
|
17
|
+
__bevy_page_functions_restricted_actions_e02a280f: () => __bevy_page_functions_restricted_actions_e02a280f,
|
|
18
|
+
__bevy_page_functions_webgpu_build_06313fae: () => __bevy_page_functions_webgpu_build_06313fae,
|
|
19
|
+
__bevy_render_worker_main: () => __bevy_render_worker_main,
|
|
20
|
+
audio_host_main: () => audio_host_main,
|
|
17
21
|
builtin_module: () => builtin_module,
|
|
18
22
|
default: () => __wbg_init,
|
|
19
23
|
drop_context: () => drop_context,
|
|
20
24
|
engine_console_command: () => engine_console_command,
|
|
21
25
|
engine_home_scene: () => engine_home_scene,
|
|
22
26
|
engine_init: () => engine_init,
|
|
27
|
+
engine_prepare_render: () => engine_prepare_render,
|
|
28
|
+
engine_render_setup: () => engine_render_setup,
|
|
23
29
|
engine_run: () => engine_run,
|
|
30
|
+
engine_spawn_worker: () => engine_spawn_worker,
|
|
31
|
+
engine_start: () => engine_start,
|
|
24
32
|
gpu_cache_hash: () => gpu_cache_hash,
|
|
25
33
|
image_processor_init: () => image_processor_init,
|
|
34
|
+
image_processor_main: () => image_processor_main,
|
|
26
35
|
image_processor_run: () => image_processor_run,
|
|
27
36
|
initSync: () => initSync,
|
|
28
37
|
init_asset_load_thread: () => init_asset_load_thread,
|
|
29
38
|
is_super: () => is_super,
|
|
39
|
+
livekit_host_main: () => livekit_host_main,
|
|
40
|
+
media_host_main: () => media_host_main,
|
|
30
41
|
op_accept_friend_request: () => op_accept_friend_request,
|
|
31
42
|
op_block_user: () => op_block_user,
|
|
32
43
|
op_camera_fov: () => op_camera_fov,
|
|
@@ -152,15 +163,110 @@ __export(webgpu_build_exports, {
|
|
|
152
163
|
op_webstorage_remove: () => op_webstorage_remove,
|
|
153
164
|
op_webstorage_set: () => op_webstorage_set,
|
|
154
165
|
op_world_time: () => op_world_time,
|
|
166
|
+
report_pointer_lock: () => report_pointer_lock,
|
|
155
167
|
wasm_init_scene: () => wasm_init_scene
|
|
156
168
|
});
|
|
157
169
|
|
|
170
|
+
// deploy/web/engine/pkg/snippets/bevy_internal-2d8ddab1173ada7c/src/web_worker.js
|
|
171
|
+
function spawnWorker(init) {
|
|
172
|
+
const worker = new Worker(new URL(import.meta.url), { type: "module" });
|
|
173
|
+
worker.addEventListener("message", async ({ data }) => {
|
|
174
|
+
if (!data) return;
|
|
175
|
+
if (data.__bevy_log) {
|
|
176
|
+
console[data.__bevy_log](...data.args);
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
if (data.__bevy_call !== void 0) {
|
|
180
|
+
const fn = globalThis[data.__bevy_call];
|
|
181
|
+
let value, error2;
|
|
182
|
+
try {
|
|
183
|
+
if (typeof fn !== "function") throw new Error(`${data.__bevy_call} is not defined on the page`);
|
|
184
|
+
value = await fn(...data.args);
|
|
185
|
+
} catch (err) {
|
|
186
|
+
error2 = err?.message ?? String(err);
|
|
187
|
+
console.error(`[bevy] ${data.tag} worker: ${data.__bevy_call} failed`, err);
|
|
188
|
+
}
|
|
189
|
+
worker.postMessage({ __bevy_result: data.__bevy_id, value, error: error2 });
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
const { transfer = [], ...message } = init;
|
|
193
|
+
worker.postMessage({ __bevy_init: message }, transfer);
|
|
194
|
+
return worker;
|
|
195
|
+
}
|
|
196
|
+
if (typeof WorkerGlobalScope !== "undefined" && self instanceof WorkerGlobalScope) {
|
|
197
|
+
const pending = /* @__PURE__ */ new Map();
|
|
198
|
+
let nextId = 1;
|
|
199
|
+
self.addEventListener("message", ({ data }) => {
|
|
200
|
+
if (!data || data.__bevy_result === void 0) return;
|
|
201
|
+
const call = pending.get(data.__bevy_result);
|
|
202
|
+
if (!call) return;
|
|
203
|
+
pending.delete(data.__bevy_result);
|
|
204
|
+
if (data.error !== void 0) call.reject(new Error(String(data.error)));
|
|
205
|
+
else call.resolve(data.value);
|
|
206
|
+
});
|
|
207
|
+
self.addEventListener("message", async ({ data }) => {
|
|
208
|
+
const init = data?.__bevy_init;
|
|
209
|
+
if (!init) return;
|
|
210
|
+
const { glueUrl, calls, tag, module: module2, memory: memory2, stackSize } = init;
|
|
211
|
+
forwardConsole(tag);
|
|
212
|
+
try {
|
|
213
|
+
const glue = await import(glueUrl);
|
|
214
|
+
await glue.default({ module_or_path: module2, memory: memory2, thread_stack_size: stackSize });
|
|
215
|
+
for (const key of Object.keys(glue)) {
|
|
216
|
+
if (!key.startsWith("__bevy_page_functions_")) continue;
|
|
217
|
+
for (const name of glue[key]()) {
|
|
218
|
+
self[name] = (...args) => new Promise((resolve, reject) => {
|
|
219
|
+
const id = nextId++;
|
|
220
|
+
pending.set(id, { resolve, reject });
|
|
221
|
+
postMessage({ __bevy_call: name, __bevy_id: id, args, tag });
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
for (const { entry, args = [] } of calls) {
|
|
226
|
+
const entryFn = glue[entry];
|
|
227
|
+
if (typeof entryFn !== "function") throw new Error(`${entry} is not exported by ${glueUrl}`);
|
|
228
|
+
await entryFn(...args);
|
|
229
|
+
}
|
|
230
|
+
postMessage({ __bevy_ready: tag });
|
|
231
|
+
} catch (e) {
|
|
232
|
+
console.error(`[bevy] ${tag} worker failed to start`, e);
|
|
233
|
+
postMessage({ __bevy_ready: tag, error: String(e?.stack ?? e) });
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
function forwardConsole(tag) {
|
|
238
|
+
for (const level of ["log", "info", "warn", "error", "debug"]) {
|
|
239
|
+
const original = console[level].bind(console);
|
|
240
|
+
console[level] = (...args) => {
|
|
241
|
+
try {
|
|
242
|
+
postMessage({ __bevy_log: level, tag, args: args.map(cloneable) });
|
|
243
|
+
} catch (_) {
|
|
244
|
+
original(...args);
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
self.addEventListener("error", (e) => console.error(`[${tag} worker] uncaught: ${e.message}`));
|
|
249
|
+
self.addEventListener(
|
|
250
|
+
"unhandledrejection",
|
|
251
|
+
(e) => console.error(`[${tag} worker] unhandled rejection: ${e.reason?.stack ?? e.reason}`)
|
|
252
|
+
);
|
|
253
|
+
}
|
|
254
|
+
function cloneable(value) {
|
|
255
|
+
if (value instanceof Error) return value.stack || value.message;
|
|
256
|
+
const t = typeof value;
|
|
257
|
+
if (t === "string" || t === "number" || t === "boolean" || t === "bigint" || value == null) return value;
|
|
258
|
+
try {
|
|
259
|
+
return JSON.stringify(value);
|
|
260
|
+
} catch (_) {
|
|
261
|
+
return String(value);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
158
265
|
// deploy/web/engine/pkg/snippets/comms-53217a45365bb5fa/livekit_web_bindings.js
|
|
159
266
|
var livekit_web_bindings_exports = {};
|
|
160
267
|
__export(livekit_web_bindings_exports, {
|
|
161
268
|
is_microphone_available: () => is_microphone_available,
|
|
162
269
|
local_audio_track_new: () => local_audio_track_new,
|
|
163
|
-
local_audio_track_sid: () => local_audio_track_sid,
|
|
164
270
|
local_participant_identity: () => local_participant_identity,
|
|
165
271
|
local_participant_is_local: () => local_participant_is_local,
|
|
166
272
|
local_participant_metadata: () => local_participant_metadata,
|
|
@@ -168,6 +274,9 @@ __export(livekit_web_bindings_exports, {
|
|
|
168
274
|
local_participant_publish_track: () => local_participant_publish_track,
|
|
169
275
|
local_participant_sid: () => local_participant_sid,
|
|
170
276
|
local_participant_unpublish_track: () => local_participant_unpublish_track,
|
|
277
|
+
local_track_publication_kind: () => local_track_publication_kind,
|
|
278
|
+
local_track_publication_sid: () => local_track_publication_sid,
|
|
279
|
+
local_track_publication_source: () => local_track_publication_source,
|
|
171
280
|
microphonePermissionState: () => microphonePermissionState,
|
|
172
281
|
participant_is_local: () => participant_is_local,
|
|
173
282
|
promptMicrophonePermission: () => promptMicrophonePermission,
|
|
@@ -184,6 +293,7 @@ __export(livekit_web_bindings_exports, {
|
|
|
184
293
|
remote_track_publication_track: () => remote_track_publication_track,
|
|
185
294
|
room_close: () => room_close,
|
|
186
295
|
room_connect: () => room_connect,
|
|
296
|
+
room_drop: () => room_drop,
|
|
187
297
|
room_local_participant: () => room_local_participant,
|
|
188
298
|
room_name: () => room_name,
|
|
189
299
|
setupMicrophonePermission: () => setupMicrophonePermission
|
|
@@ -196,11 +306,13 @@ function error(...args) {
|
|
|
196
306
|
}
|
|
197
307
|
var audioContext = null;
|
|
198
308
|
var microphonePermission = "denied";
|
|
199
|
-
function setupMicrophonePermission() {
|
|
309
|
+
function setupMicrophonePermission(on_change) {
|
|
200
310
|
navigator.permissions.query({ name: "microphone" }).then((permissionState) => {
|
|
201
311
|
microphonePermission = permissionState.state;
|
|
312
|
+
on_change(microphonePermission);
|
|
202
313
|
permissionState.onchange = () => {
|
|
203
314
|
microphonePermission = permissionState.state;
|
|
315
|
+
on_change(microphonePermission);
|
|
204
316
|
};
|
|
205
317
|
});
|
|
206
318
|
}
|
|
@@ -218,12 +330,20 @@ function promptMicrophonePermission() {
|
|
|
218
330
|
async function room_connect(url, token, room_options, room_connect_options, handler) {
|
|
219
331
|
const room = new LivekitClient.Room(room_options);
|
|
220
332
|
set_room_event_handler(room, handler);
|
|
221
|
-
|
|
333
|
+
try {
|
|
334
|
+
await room.connect(url, token, room_connect_options);
|
|
335
|
+
} catch (err) {
|
|
336
|
+
room.removeAllListeners();
|
|
337
|
+
throw err;
|
|
338
|
+
}
|
|
222
339
|
return room;
|
|
223
340
|
}
|
|
224
341
|
async function room_close(room) {
|
|
225
342
|
await room.disconnect();
|
|
226
343
|
}
|
|
344
|
+
function room_drop(room) {
|
|
345
|
+
room.removeAllListeners();
|
|
346
|
+
}
|
|
227
347
|
function room_name(room) {
|
|
228
348
|
return room.name;
|
|
229
349
|
}
|
|
@@ -454,6 +574,15 @@ function remote_track_publication_set_subscribed(remote_track_publication, subsc
|
|
|
454
574
|
function remote_track_publication_track(remote_track_publication) {
|
|
455
575
|
return remote_track_publication.track;
|
|
456
576
|
}
|
|
577
|
+
function local_track_publication_sid(local_track_publication) {
|
|
578
|
+
return local_track_publication.trackSid;
|
|
579
|
+
}
|
|
580
|
+
function local_track_publication_kind(local_track_publication) {
|
|
581
|
+
return local_track_publication.kind;
|
|
582
|
+
}
|
|
583
|
+
function local_track_publication_source(local_track_publication) {
|
|
584
|
+
return local_track_publication.source;
|
|
585
|
+
}
|
|
457
586
|
async function local_audio_track_new(options) {
|
|
458
587
|
try {
|
|
459
588
|
return await LivekitClient.createLocalAudioTrack(options);
|
|
@@ -461,9 +590,6 @@ async function local_audio_track_new(options) {
|
|
|
461
590
|
error(err);
|
|
462
591
|
}
|
|
463
592
|
}
|
|
464
|
-
function local_audio_track_sid(local_audio_track) {
|
|
465
|
-
return local_audio_track.sid;
|
|
466
|
-
}
|
|
467
593
|
function track_rig_new(remote_track) {
|
|
468
594
|
log(`Creating new track rig for ${remote_track.sid}.`);
|
|
469
595
|
const audioElement = remote_track.attach();
|
|
@@ -498,13 +624,407 @@ function track_rig_drop(remote_track) {
|
|
|
498
624
|
}
|
|
499
625
|
function remote_track_pan_and_volume(remote_track, pan, volume) {
|
|
500
626
|
const track_rig = remote_track.trackRig;
|
|
501
|
-
track_rig.pannerNode.pan.value = Math.max(-1, Math.min(1, pan));
|
|
627
|
+
track_rig.pannerNode.pan.value = Math.max(-1, Math.min(1, pan * 2 - 1));
|
|
502
628
|
track_rig.gainNode.gain.value = Math.max(0, volume);
|
|
503
629
|
}
|
|
504
630
|
function remote_audio_track_set_volume(remote_audio_track, volume) {
|
|
505
631
|
remote_audio_track.setVolume(volume);
|
|
506
632
|
}
|
|
507
633
|
|
|
634
|
+
// deploy/web/engine/pkg/snippets/decentra-bevy-f9c23e535711925a/deploy/web/engine/gpu_cache.js
|
|
635
|
+
function simpleHash(s) {
|
|
636
|
+
var h = 2166136261;
|
|
637
|
+
for (let i = 0; i < s.length; i++) {
|
|
638
|
+
h ^= s.charCodeAt(i);
|
|
639
|
+
h += (h << 1) + (h << 4) + (h << 7) + (h << 8) + (h << 24);
|
|
640
|
+
}
|
|
641
|
+
return h >>> 0;
|
|
642
|
+
}
|
|
643
|
+
var gpuSessionState = {};
|
|
644
|
+
var requiredItemTypes = /* @__PURE__ */ new Map();
|
|
645
|
+
var precaching = false;
|
|
646
|
+
var dbConfig = {
|
|
647
|
+
name: "GpuCacheDB",
|
|
648
|
+
version: 1,
|
|
649
|
+
onUpgrade: (db) => {
|
|
650
|
+
if (!db.objectStoreNames.contains("shader")) db.createObjectStore("shader");
|
|
651
|
+
if (!db.objectStoreNames.contains("bindgroup"))
|
|
652
|
+
db.createObjectStore("bindgroup");
|
|
653
|
+
if (!db.objectStoreNames.contains("layout")) db.createObjectStore("layout");
|
|
654
|
+
if (!db.objectStoreNames.contains("pipeline"))
|
|
655
|
+
db.createObjectStore("pipeline");
|
|
656
|
+
if (!db.objectStoreNames.contains("requiredItems"))
|
|
657
|
+
db.createObjectStore("requiredItems");
|
|
658
|
+
if (!db.objectStoreNames.contains("deviceConfig"))
|
|
659
|
+
db.createObjectStore("deviceConfig");
|
|
660
|
+
}
|
|
661
|
+
};
|
|
662
|
+
var dbPromise;
|
|
663
|
+
function openDB() {
|
|
664
|
+
if (dbPromise) {
|
|
665
|
+
return dbPromise;
|
|
666
|
+
}
|
|
667
|
+
dbPromise = new Promise((resolve, reject) => {
|
|
668
|
+
const request = indexedDB.open(dbConfig.name, dbConfig.version);
|
|
669
|
+
request.onupgradeneeded = (event) => {
|
|
670
|
+
dbConfig.onUpgrade(event.target.result);
|
|
671
|
+
};
|
|
672
|
+
request.onsuccess = (event) => resolve(event.target.result);
|
|
673
|
+
request.onerror = (event) => reject(event.target.error);
|
|
674
|
+
});
|
|
675
|
+
return dbPromise;
|
|
676
|
+
}
|
|
677
|
+
async function clearDatabase() {
|
|
678
|
+
const db = await openDB();
|
|
679
|
+
const tableNames = ["shader", "bindgroup", "layout", "pipeline", "requiredItems"];
|
|
680
|
+
const tx = db.transaction(tableNames, "readwrite");
|
|
681
|
+
const clearPromises = tableNames.map((name) => {
|
|
682
|
+
const store = tx.objectStore(name);
|
|
683
|
+
const request = store.clear();
|
|
684
|
+
return new Promise((resolve, reject) => {
|
|
685
|
+
request.onsuccess = () => resolve(request.result);
|
|
686
|
+
request.onerror = () => reject(request.error);
|
|
687
|
+
});
|
|
688
|
+
});
|
|
689
|
+
await Promise.all(clearPromises);
|
|
690
|
+
await new Promise((resolve, reject) => {
|
|
691
|
+
tx.oncomplete = resolve;
|
|
692
|
+
tx.onabort = reject;
|
|
693
|
+
tx.onerror = reject;
|
|
694
|
+
});
|
|
695
|
+
}
|
|
696
|
+
async function fetchRequiredItems() {
|
|
697
|
+
const db = await openDB();
|
|
698
|
+
return new Promise((resolve) => {
|
|
699
|
+
const tx = db.transaction("requiredItems", "readonly");
|
|
700
|
+
const request = tx.objectStore("requiredItems").get("it");
|
|
701
|
+
request.onsuccess = () => {
|
|
702
|
+
resolve(request.result ?? /* @__PURE__ */ new Map());
|
|
703
|
+
};
|
|
704
|
+
request.onerror = () => {
|
|
705
|
+
resolve(/* @__PURE__ */ new Map());
|
|
706
|
+
};
|
|
707
|
+
});
|
|
708
|
+
}
|
|
709
|
+
async function storeRequiredItems() {
|
|
710
|
+
const db = await openDB();
|
|
711
|
+
return new Promise((resolve, reject) => {
|
|
712
|
+
const tx = db.transaction("requiredItems", "readwrite");
|
|
713
|
+
tx.oncomplete = () => {
|
|
714
|
+
resolve();
|
|
715
|
+
};
|
|
716
|
+
tx.onerror = () => {
|
|
717
|
+
console.log("[GPU Cache] failed to store requiredItems");
|
|
718
|
+
reject(tx.error);
|
|
719
|
+
};
|
|
720
|
+
tx.objectStore("requiredItems").put(requiredItemTypes, "it");
|
|
721
|
+
});
|
|
722
|
+
}
|
|
723
|
+
async function getConfig(key) {
|
|
724
|
+
const db = await openDB();
|
|
725
|
+
return new Promise((resolve) => {
|
|
726
|
+
const request = db.transaction("deviceConfig", "readonly").objectStore("deviceConfig").get(key);
|
|
727
|
+
request.onsuccess = () => resolve(request.result);
|
|
728
|
+
request.onerror = () => resolve(void 0);
|
|
729
|
+
});
|
|
730
|
+
}
|
|
731
|
+
async function setConfig(key, value) {
|
|
732
|
+
const db = await openDB();
|
|
733
|
+
return new Promise((resolve, reject) => {
|
|
734
|
+
const tx = db.transaction("deviceConfig", "readwrite");
|
|
735
|
+
tx.oncomplete = () => resolve();
|
|
736
|
+
tx.onerror = () => reject(tx.error);
|
|
737
|
+
tx.objectStore("deviceConfig").put(value, key);
|
|
738
|
+
});
|
|
739
|
+
}
|
|
740
|
+
async function fetchInstance(type, hash) {
|
|
741
|
+
const db = await openDB();
|
|
742
|
+
return new Promise((resolve, reject) => {
|
|
743
|
+
const tx = db.transaction(type, "readonly");
|
|
744
|
+
const request = tx.objectStore(type).get(hash);
|
|
745
|
+
request.onsuccess = () => {
|
|
746
|
+
if (request.result) {
|
|
747
|
+
resolve(JSON.parse(request.result));
|
|
748
|
+
} else {
|
|
749
|
+
reject("undefined");
|
|
750
|
+
}
|
|
751
|
+
};
|
|
752
|
+
request.onerror = () => {
|
|
753
|
+
reject("error");
|
|
754
|
+
};
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
async function storeInstance(type, hash, value) {
|
|
758
|
+
const db = await openDB();
|
|
759
|
+
return new Promise((resolve, reject) => {
|
|
760
|
+
const tx = db.transaction(type, "readwrite");
|
|
761
|
+
tx.oncomplete = () => {
|
|
762
|
+
resolve();
|
|
763
|
+
};
|
|
764
|
+
tx.onerror = () => {
|
|
765
|
+
console.log("[GPU Cache] failed to store ${type} instance");
|
|
766
|
+
reject(tx.error);
|
|
767
|
+
};
|
|
768
|
+
tx.objectStore(type).put(JSON.stringify(value), hash);
|
|
769
|
+
});
|
|
770
|
+
}
|
|
771
|
+
async function initGpuCache(key, fakeAsync) {
|
|
772
|
+
console.log(`[GPU Cache] key: ${key}`);
|
|
773
|
+
patchWebgpuAdapter(fakeAsync);
|
|
774
|
+
await createGpuCache(key);
|
|
775
|
+
}
|
|
776
|
+
function patchWebgpuAdapter(fakeAsync) {
|
|
777
|
+
const originalRequestDevice = GPUAdapter.prototype.requestDevice;
|
|
778
|
+
GPUAdapter.prototype.requestDevice = async function(descriptor) {
|
|
779
|
+
const jsonDescriptor = JSON.stringify(descriptor || {});
|
|
780
|
+
if (gpuSessionState.deviceDescriptor === jsonDescriptor) {
|
|
781
|
+
console.log("[GPU Cache] using precached device");
|
|
782
|
+
return gpuSessionState.device;
|
|
783
|
+
}
|
|
784
|
+
if (!precaching) {
|
|
785
|
+
console.log(
|
|
786
|
+
"[GPU Cache] device params are different: creating device and clearing cache"
|
|
787
|
+
);
|
|
788
|
+
clearDatabase();
|
|
789
|
+
}
|
|
790
|
+
gpuSessionState = {
|
|
791
|
+
shader: /* @__PURE__ */ new Map(),
|
|
792
|
+
bindgroup: /* @__PURE__ */ new Map(),
|
|
793
|
+
layout: /* @__PURE__ */ new Map(),
|
|
794
|
+
pipeline: /* @__PURE__ */ new Map()
|
|
795
|
+
};
|
|
796
|
+
gpuSessionState.deviceDescriptor = jsonDescriptor;
|
|
797
|
+
var device = void 0;
|
|
798
|
+
try {
|
|
799
|
+
device = await originalRequestDevice.apply(this, [descriptor]);
|
|
800
|
+
} catch (err) {
|
|
801
|
+
console.warn("Failed to request a device with descriptor, requesting device with default parameters.");
|
|
802
|
+
device = await originalRequestDevice.apply(this, []);
|
|
803
|
+
}
|
|
804
|
+
gpuSessionState.device = device;
|
|
805
|
+
await setConfig("deviceDescriptor", jsonDescriptor);
|
|
806
|
+
function wrapDeviceFunction(itemType, originalFunction) {
|
|
807
|
+
return (...args) => {
|
|
808
|
+
const jsonArgs = JSON.stringify(args);
|
|
809
|
+
const hash = simpleHash(jsonArgs);
|
|
810
|
+
const cachedItem = gpuSessionState[itemType].get(hash);
|
|
811
|
+
if (cachedItem !== void 0) {
|
|
812
|
+
return cachedItem;
|
|
813
|
+
}
|
|
814
|
+
const item = originalFunction.apply(device, args);
|
|
815
|
+
item.__gpu_item_type = itemType;
|
|
816
|
+
item.__gpu_hash = hash;
|
|
817
|
+
gpuSessionState[itemType].set(hash, item);
|
|
818
|
+
if (!precaching) {
|
|
819
|
+
console.log(`[GPU Cache] no cached ${itemType} for ${hash}`);
|
|
820
|
+
if (!requiredItemTypes.has(itemType)) {
|
|
821
|
+
requiredItemTypes.set(itemType, /* @__PURE__ */ new Set());
|
|
822
|
+
}
|
|
823
|
+
const requiredItems = requiredItemTypes.get(itemType);
|
|
824
|
+
if (!requiredItems.has(hash)) {
|
|
825
|
+
requiredItems.add(hash);
|
|
826
|
+
storeRequiredItems();
|
|
827
|
+
storeInstance(itemType, hash, args);
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
return item;
|
|
831
|
+
};
|
|
832
|
+
}
|
|
833
|
+
device.createShaderModule = wrapDeviceFunction(
|
|
834
|
+
"shader",
|
|
835
|
+
device.createShaderModule
|
|
836
|
+
);
|
|
837
|
+
device.createBindGroupLayout = wrapDeviceFunction(
|
|
838
|
+
"bindgroup",
|
|
839
|
+
device.createBindGroupLayout
|
|
840
|
+
);
|
|
841
|
+
device.createPipelineLayout = wrapDeviceFunction(
|
|
842
|
+
"layout",
|
|
843
|
+
device.createPipelineLayout
|
|
844
|
+
);
|
|
845
|
+
if (fakeAsync) {
|
|
846
|
+
device.createRenderPipeline = wrapDeviceFunction(
|
|
847
|
+
"pipeline",
|
|
848
|
+
device.createRenderPipeline
|
|
849
|
+
);
|
|
850
|
+
} else {
|
|
851
|
+
let inline_function = wrapDeviceFunction("pipeline", device.createRenderPipeline);
|
|
852
|
+
globalThis.pendingAsyncPipelineCount = 0;
|
|
853
|
+
globalThis.lastPipelineWasValidFlag = false;
|
|
854
|
+
globalThis.wgpuResolveIdle = [];
|
|
855
|
+
const itemType = "pipeline";
|
|
856
|
+
const placeholderPipeline = getPlaceholder(device);
|
|
857
|
+
device.createRenderPipeline = (...args) => {
|
|
858
|
+
const jsonArgs = JSON.stringify(args);
|
|
859
|
+
const hash = simpleHash(jsonArgs);
|
|
860
|
+
const cachedItem = gpuSessionState[itemType].get(hash);
|
|
861
|
+
if (cachedItem !== void 0) {
|
|
862
|
+
globalThis.nextPipelineCanFail = false;
|
|
863
|
+
globalThis.lastPipelineWasValidFlag = true;
|
|
864
|
+
return cachedItem;
|
|
865
|
+
}
|
|
866
|
+
console.log(`[GPU Cache] (async) no cached ${itemType} for ${hash}`);
|
|
867
|
+
if (!globalThis.nextPipelineCanFail) {
|
|
868
|
+
return inline_function.apply(device, args);
|
|
869
|
+
}
|
|
870
|
+
globalThis.__setShaderCompiling?.(true);
|
|
871
|
+
globalThis.nextPipelineCanFail = false;
|
|
872
|
+
globalThis.lastPipelineWasValidFlag = false;
|
|
873
|
+
globalThis.pendingAsyncPipelineCount++;
|
|
874
|
+
const promise = device.createRenderPipelineAsync(args[0]).then(async (item) => {
|
|
875
|
+
item.__gpu_item_type = itemType;
|
|
876
|
+
item.__gpu_hash = hash;
|
|
877
|
+
gpuSessionState[itemType].set(hash, item);
|
|
878
|
+
globalThis.pendingAsyncPipelineCount--;
|
|
879
|
+
if (!requiredItemTypes.has(itemType)) {
|
|
880
|
+
requiredItemTypes.set(itemType, /* @__PURE__ */ new Set());
|
|
881
|
+
}
|
|
882
|
+
const requiredItems = requiredItemTypes.get(itemType);
|
|
883
|
+
if (!requiredItems.has(hash)) {
|
|
884
|
+
requiredItems.add(hash);
|
|
885
|
+
await storeRequiredItems();
|
|
886
|
+
await storeInstance(itemType, hash, args);
|
|
887
|
+
}
|
|
888
|
+
if (globalThis.pendingAsyncPipelineCount === 0) {
|
|
889
|
+
while (globalThis.wgpuResolveIdle.length > 0) {
|
|
890
|
+
globalThis.wgpuResolveIdle.pop()();
|
|
891
|
+
}
|
|
892
|
+
globalThis.__setShaderCompiling?.(false);
|
|
893
|
+
}
|
|
894
|
+
return item;
|
|
895
|
+
});
|
|
896
|
+
return placeholderPipeline;
|
|
897
|
+
};
|
|
898
|
+
}
|
|
899
|
+
return device;
|
|
900
|
+
};
|
|
901
|
+
}
|
|
902
|
+
async function createGpuCache(key) {
|
|
903
|
+
const cachedKey = await getConfig("gpuCacheKey");
|
|
904
|
+
if (cachedKey != key) {
|
|
905
|
+
console.log("shaders updated, clearing db");
|
|
906
|
+
await clearDatabase();
|
|
907
|
+
await setConfig("gpuCacheKey", key);
|
|
908
|
+
return;
|
|
909
|
+
}
|
|
910
|
+
const cachedDeviceDescriptor = await getConfig("deviceDescriptor");
|
|
911
|
+
if (cachedDeviceDescriptor === void 0) {
|
|
912
|
+
return;
|
|
913
|
+
}
|
|
914
|
+
precaching = true;
|
|
915
|
+
const started = performance.now();
|
|
916
|
+
const adapter = await navigator.gpu.requestAdapter();
|
|
917
|
+
const device = await adapter.requestDevice(
|
|
918
|
+
JSON.parse(cachedDeviceDescriptor)
|
|
919
|
+
);
|
|
920
|
+
requiredItemTypes = await fetchRequiredItems();
|
|
921
|
+
try {
|
|
922
|
+
await createItemType("shader", async (args) => {
|
|
923
|
+
return device.createShaderModule(args);
|
|
924
|
+
});
|
|
925
|
+
await createItemType("bindgroup", async (args) => {
|
|
926
|
+
return device.createBindGroupLayout(args);
|
|
927
|
+
});
|
|
928
|
+
await createItemType("layout", async (args) => {
|
|
929
|
+
return device.createPipelineLayout(args);
|
|
930
|
+
});
|
|
931
|
+
await createItemType("pipeline", async (args) => {
|
|
932
|
+
return await device.createRenderPipelineAsync(args);
|
|
933
|
+
});
|
|
934
|
+
} finally {
|
|
935
|
+
precaching = false;
|
|
936
|
+
}
|
|
937
|
+
storeRequiredItems();
|
|
938
|
+
const stats = Object.keys(gpuSessionState).map(
|
|
939
|
+
(k) => `
|
|
940
|
+
${k}: ${gpuSessionState[k].size ?? "ok"}`
|
|
941
|
+
);
|
|
942
|
+
console.log(`[GPU Cache]: preloaded in ${Math.round(performance.now() - started)} ms ${stats}`);
|
|
943
|
+
}
|
|
944
|
+
async function createItemType(itemType, asyncCreateFunction) {
|
|
945
|
+
const storedItems = requiredItemTypes.get(itemType) ?? /* @__PURE__ */ new Set();
|
|
946
|
+
await Promise.all(
|
|
947
|
+
[...storedItems].map(async (hash) => {
|
|
948
|
+
try {
|
|
949
|
+
const args = await fetchInstance(itemType, hash);
|
|
950
|
+
rehydrateItem(args);
|
|
951
|
+
const item = await asyncCreateFunction(args[0]);
|
|
952
|
+
gpuSessionState[itemType].set(hash, item);
|
|
953
|
+
} catch (e) {
|
|
954
|
+
console.warn(`[GPU Cache] failed to precreate ${itemType}: ${e}`);
|
|
955
|
+
storedItems.delete(hash);
|
|
956
|
+
}
|
|
957
|
+
})
|
|
958
|
+
);
|
|
959
|
+
}
|
|
960
|
+
function rehydrateItem(currentObject) {
|
|
961
|
+
if (typeof currentObject !== "object" || currentObject === null) {
|
|
962
|
+
return;
|
|
963
|
+
}
|
|
964
|
+
if (Array.isArray(currentObject)) {
|
|
965
|
+
for (let i = 0; i < currentObject.length; i++) {
|
|
966
|
+
const item = currentObject[i];
|
|
967
|
+
if (item && item.__gpu_hash) {
|
|
968
|
+
const type = item.__gpu_item_type;
|
|
969
|
+
const hash = item.__gpu_hash;
|
|
970
|
+
currentObject[i] = gpuSessionState[type].get(hash);
|
|
971
|
+
if (!currentObject[i]) {
|
|
972
|
+
throw `failed to rehydrate: missing ${type} with hash ${hash}`;
|
|
973
|
+
}
|
|
974
|
+
} else {
|
|
975
|
+
rehydrateItem(item);
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
} else {
|
|
979
|
+
for (const key in currentObject) {
|
|
980
|
+
if (Object.prototype.hasOwnProperty.call(currentObject, key)) {
|
|
981
|
+
const value = currentObject[key];
|
|
982
|
+
if (value && value.__gpu_hash) {
|
|
983
|
+
const type = value.__gpu_item_type;
|
|
984
|
+
const hash = value.__gpu_hash;
|
|
985
|
+
currentObject[key] = gpuSessionState[type].get(hash);
|
|
986
|
+
if (!currentObject[key]) {
|
|
987
|
+
throw `failed to rehydrate: missing ${type} with hash ${hash}`;
|
|
988
|
+
}
|
|
989
|
+
} else {
|
|
990
|
+
rehydrateItem(value);
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
function getPlaceholder(device) {
|
|
997
|
+
const module2 = device.createShaderModule({
|
|
998
|
+
code: `
|
|
999
|
+
@vertex fn vs_main() -> @builtin(position) vec4f { return vec4f(0.0, 0.0, 0.0, 1.0); }
|
|
1000
|
+
@fragment fn fs_main() -> @location(0) vec4f { return vec4f(0.0, 1.0, 0.0, 1.0); }
|
|
1001
|
+
`
|
|
1002
|
+
});
|
|
1003
|
+
return device.createRenderPipeline({
|
|
1004
|
+
layout: device.createPipelineLayout({
|
|
1005
|
+
bindGroupLayouts: []
|
|
1006
|
+
}),
|
|
1007
|
+
vertex: { module: module2, entryPoint: "vs_main" },
|
|
1008
|
+
fragment: { module: module2, entryPoint: "fs_main", targets: [{ format: "bgra8unorm" }] },
|
|
1009
|
+
// Adjust format if needed
|
|
1010
|
+
primitive: { topology: "triangle-list" }
|
|
1011
|
+
});
|
|
1012
|
+
}
|
|
1013
|
+
globalThis.allowADummyPipeline = function() {
|
|
1014
|
+
globalThis.nextPipelineCanFail = true;
|
|
1015
|
+
};
|
|
1016
|
+
globalThis.lastPipelineWasValid = function() {
|
|
1017
|
+
return globalThis.lastPipelineWasValidFlag;
|
|
1018
|
+
};
|
|
1019
|
+
globalThis.waitForPipelines = function() {
|
|
1020
|
+
if (globalThis.pendingAsyncPipelineCount === 0) {
|
|
1021
|
+
return Promise.resolve();
|
|
1022
|
+
}
|
|
1023
|
+
return new Promise((resolve) => {
|
|
1024
|
+
globalThis.wgpuResolveIdle.push(resolve);
|
|
1025
|
+
});
|
|
1026
|
+
};
|
|
1027
|
+
|
|
508
1028
|
// deploy/web/engine/pkg/snippets/platform-8c8a49e43042a652/src/web_save.js
|
|
509
1029
|
var DB_NAME = "dcl-editor";
|
|
510
1030
|
var DB_VERSION = 2;
|
|
@@ -628,136 +1148,6 @@ async function saveSceneFile(sceneTarget, relPath, bytes) {
|
|
|
628
1148
|
}
|
|
629
1149
|
|
|
630
1150
|
// deploy/web/engine/pkg/webgpu_build.js
|
|
631
|
-
var AudioCaptureOptions = class _AudioCaptureOptions {
|
|
632
|
-
static __wrap(ptr) {
|
|
633
|
-
ptr = ptr >>> 0;
|
|
634
|
-
const obj = Object.create(_AudioCaptureOptions.prototype);
|
|
635
|
-
obj.__wbg_ptr = ptr;
|
|
636
|
-
AudioCaptureOptionsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
637
|
-
return obj;
|
|
638
|
-
}
|
|
639
|
-
__destroy_into_raw() {
|
|
640
|
-
const ptr = this.__wbg_ptr;
|
|
641
|
-
this.__wbg_ptr = 0;
|
|
642
|
-
AudioCaptureOptionsFinalization.unregister(this);
|
|
643
|
-
return ptr;
|
|
644
|
-
}
|
|
645
|
-
free() {
|
|
646
|
-
const ptr = this.__destroy_into_raw();
|
|
647
|
-
wasm.__wbg_audiocaptureoptions_free(ptr, 0);
|
|
648
|
-
}
|
|
649
|
-
/**
|
|
650
|
-
* @returns {boolean | undefined}
|
|
651
|
-
*/
|
|
652
|
-
get autoGainControl() {
|
|
653
|
-
const ret2 = wasm.__wbg_get_audiocaptureoptions_autoGainControl(this.__wbg_ptr);
|
|
654
|
-
return ret2 === 16777215 ? void 0 : ret2 !== 0;
|
|
655
|
-
}
|
|
656
|
-
/**
|
|
657
|
-
* @returns {bigint | undefined}
|
|
658
|
-
*/
|
|
659
|
-
get channelCount() {
|
|
660
|
-
const ret2 = wasm.__wbg_get_audiocaptureoptions_channelCount(this.__wbg_ptr);
|
|
661
|
-
return ret2[0] === 0 ? void 0 : BigInt.asUintN(64, ret2[1]);
|
|
662
|
-
}
|
|
663
|
-
/**
|
|
664
|
-
* @returns {boolean | undefined}
|
|
665
|
-
*/
|
|
666
|
-
get echoCancellation() {
|
|
667
|
-
const ret2 = wasm.__wbg_get_audiocaptureoptions_echoCancellation(this.__wbg_ptr);
|
|
668
|
-
return ret2 === 16777215 ? void 0 : ret2 !== 0;
|
|
669
|
-
}
|
|
670
|
-
/**
|
|
671
|
-
* @returns {number | undefined}
|
|
672
|
-
*/
|
|
673
|
-
get latency() {
|
|
674
|
-
const ret2 = wasm.__wbg_get_audiocaptureoptions_latency(this.__wbg_ptr);
|
|
675
|
-
return ret2[0] === 0 ? void 0 : ret2[1];
|
|
676
|
-
}
|
|
677
|
-
/**
|
|
678
|
-
* @returns {boolean | undefined}
|
|
679
|
-
*/
|
|
680
|
-
get noiseSuppression() {
|
|
681
|
-
const ret2 = wasm.__wbg_get_audiocaptureoptions_noiseSuppression(this.__wbg_ptr);
|
|
682
|
-
return ret2 === 16777215 ? void 0 : ret2 !== 0;
|
|
683
|
-
}
|
|
684
|
-
/**
|
|
685
|
-
* @returns {bigint | undefined}
|
|
686
|
-
*/
|
|
687
|
-
get sampleRate() {
|
|
688
|
-
const ret2 = wasm.__wbg_get_audiocaptureoptions_sampleRate(this.__wbg_ptr);
|
|
689
|
-
return ret2[0] === 0 ? void 0 : BigInt.asUintN(64, ret2[1]);
|
|
690
|
-
}
|
|
691
|
-
/**
|
|
692
|
-
* @returns {bigint | undefined}
|
|
693
|
-
*/
|
|
694
|
-
get sampleSize() {
|
|
695
|
-
const ret2 = wasm.__wbg_get_audiocaptureoptions_sampleSize(this.__wbg_ptr);
|
|
696
|
-
return ret2[0] === 0 ? void 0 : BigInt.asUintN(64, ret2[1]);
|
|
697
|
-
}
|
|
698
|
-
/**
|
|
699
|
-
* @returns {boolean | undefined}
|
|
700
|
-
*/
|
|
701
|
-
get voiceIsolation() {
|
|
702
|
-
const ret2 = wasm.__wbg_get_audiocaptureoptions_voiceIsolation(this.__wbg_ptr);
|
|
703
|
-
return ret2 === 16777215 ? void 0 : ret2 !== 0;
|
|
704
|
-
}
|
|
705
|
-
/**
|
|
706
|
-
* @param {boolean | null} [arg0]
|
|
707
|
-
*/
|
|
708
|
-
set autoGainControl(arg02) {
|
|
709
|
-
wasm.__wbg_set_audiocaptureoptions_autoGainControl(this.__wbg_ptr, isLikeNone(arg02) ? 16777215 : arg02 ? 1 : 0);
|
|
710
|
-
}
|
|
711
|
-
/**
|
|
712
|
-
* @param {bigint | null} [arg0]
|
|
713
|
-
*/
|
|
714
|
-
set channelCount(arg02) {
|
|
715
|
-
wasm.__wbg_set_audiocaptureoptions_channelCount(this.__wbg_ptr, !isLikeNone(arg02), isLikeNone(arg02) ? BigInt(0) : arg02);
|
|
716
|
-
}
|
|
717
|
-
/**
|
|
718
|
-
* @param {boolean | null} [arg0]
|
|
719
|
-
*/
|
|
720
|
-
set echoCancellation(arg02) {
|
|
721
|
-
wasm.__wbg_set_audiocaptureoptions_echoCancellation(this.__wbg_ptr, isLikeNone(arg02) ? 16777215 : arg02 ? 1 : 0);
|
|
722
|
-
}
|
|
723
|
-
/**
|
|
724
|
-
* @param {number | null} [arg0]
|
|
725
|
-
*/
|
|
726
|
-
set latency(arg02) {
|
|
727
|
-
wasm.__wbg_set_audiocaptureoptions_latency(this.__wbg_ptr, !isLikeNone(arg02), isLikeNone(arg02) ? 0 : arg02);
|
|
728
|
-
}
|
|
729
|
-
/**
|
|
730
|
-
* @param {boolean | null} [arg0]
|
|
731
|
-
*/
|
|
732
|
-
set noiseSuppression(arg02) {
|
|
733
|
-
wasm.__wbg_set_audiocaptureoptions_noiseSuppression(this.__wbg_ptr, isLikeNone(arg02) ? 16777215 : arg02 ? 1 : 0);
|
|
734
|
-
}
|
|
735
|
-
/**
|
|
736
|
-
* @param {bigint | null} [arg0]
|
|
737
|
-
*/
|
|
738
|
-
set sampleRate(arg02) {
|
|
739
|
-
wasm.__wbg_set_audiocaptureoptions_sampleRate(this.__wbg_ptr, !isLikeNone(arg02), isLikeNone(arg02) ? BigInt(0) : arg02);
|
|
740
|
-
}
|
|
741
|
-
/**
|
|
742
|
-
* @param {bigint | null} [arg0]
|
|
743
|
-
*/
|
|
744
|
-
set sampleSize(arg02) {
|
|
745
|
-
wasm.__wbg_set_audiocaptureoptions_sampleSize(this.__wbg_ptr, !isLikeNone(arg02), isLikeNone(arg02) ? BigInt(0) : arg02);
|
|
746
|
-
}
|
|
747
|
-
/**
|
|
748
|
-
* @param {boolean | null} [arg0]
|
|
749
|
-
*/
|
|
750
|
-
set voiceIsolation(arg02) {
|
|
751
|
-
wasm.__wbg_set_audiocaptureoptions_voiceIsolation(this.__wbg_ptr, isLikeNone(arg02) ? 16777215 : arg02 ? 1 : 0);
|
|
752
|
-
}
|
|
753
|
-
};
|
|
754
|
-
if (Symbol.dispose) AudioCaptureOptions.prototype[Symbol.dispose] = AudioCaptureOptions.prototype.free;
|
|
755
|
-
var DataPacketKind = Object.freeze({
|
|
756
|
-
Reliable: 0,
|
|
757
|
-
"0": "Reliable",
|
|
758
|
-
Lossy: 1,
|
|
759
|
-
"1": "Lossy"
|
|
760
|
-
});
|
|
761
1151
|
var IntoUnderlyingByteSource = class {
|
|
762
1152
|
__destroy_into_raw() {
|
|
763
1153
|
const ptr = this.__wbg_ptr;
|
|
@@ -866,19 +1256,6 @@ var IntoUnderlyingSource = class {
|
|
|
866
1256
|
}
|
|
867
1257
|
};
|
|
868
1258
|
if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free;
|
|
869
|
-
var ParticipantSid = class {
|
|
870
|
-
__destroy_into_raw() {
|
|
871
|
-
const ptr = this.__wbg_ptr;
|
|
872
|
-
this.__wbg_ptr = 0;
|
|
873
|
-
ParticipantSidFinalization.unregister(this);
|
|
874
|
-
return ptr;
|
|
875
|
-
}
|
|
876
|
-
free() {
|
|
877
|
-
const ptr = this.__destroy_into_raw();
|
|
878
|
-
wasm.__wbg_participantsid_free(ptr, 0);
|
|
879
|
-
}
|
|
880
|
-
};
|
|
881
|
-
if (Symbol.dispose) ParticipantSid.prototype[Symbol.dispose] = ParticipantSid.prototype.free;
|
|
882
1259
|
var WorkerContext = class _WorkerContext {
|
|
883
1260
|
static __wrap(ptr) {
|
|
884
1261
|
ptr = ptr >>> 0;
|
|
@@ -938,6 +1315,40 @@ var WorkerContext = class _WorkerContext {
|
|
|
938
1315
|
}
|
|
939
1316
|
};
|
|
940
1317
|
if (Symbol.dispose) WorkerContext.prototype[Symbol.dispose] = WorkerContext.prototype.free;
|
|
1318
|
+
function __bevy_attach_engine_worker(worker_id, compute_threads) {
|
|
1319
|
+
const ret2 = wasm.__bevy_attach_engine_worker(worker_id, compute_threads);
|
|
1320
|
+
if (ret2[1]) {
|
|
1321
|
+
throw takeFromExternrefTable0(ret2[0]);
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
function __bevy_compute_worker_main() {
|
|
1325
|
+
wasm.__bevy_compute_worker_main();
|
|
1326
|
+
}
|
|
1327
|
+
function __bevy_page_functions_dcl_wasm_9d742a65() {
|
|
1328
|
+
const ret2 = wasm.__bevy_page_functions_dcl_wasm_9d742a65();
|
|
1329
|
+
var v1 = getArrayJsValueFromWasm0(ret2[0], ret2[1]).slice();
|
|
1330
|
+
wasm.__wbindgen_free(ret2[0], ret2[1] * 4, 4);
|
|
1331
|
+
return v1;
|
|
1332
|
+
}
|
|
1333
|
+
function __bevy_page_functions_restricted_actions_e02a280f() {
|
|
1334
|
+
const ret2 = wasm.__bevy_page_functions_restricted_actions_e02a280f();
|
|
1335
|
+
var v1 = getArrayJsValueFromWasm0(ret2[0], ret2[1]).slice();
|
|
1336
|
+
wasm.__wbindgen_free(ret2[0], ret2[1] * 4, 4);
|
|
1337
|
+
return v1;
|
|
1338
|
+
}
|
|
1339
|
+
function __bevy_page_functions_webgpu_build_06313fae() {
|
|
1340
|
+
const ret2 = wasm.__bevy_page_functions_webgpu_build_06313fae();
|
|
1341
|
+
var v1 = getArrayJsValueFromWasm0(ret2[0], ret2[1]).slice();
|
|
1342
|
+
wasm.__wbindgen_free(ret2[0], ret2[1] * 4, 4);
|
|
1343
|
+
return v1;
|
|
1344
|
+
}
|
|
1345
|
+
function __bevy_render_worker_main(canvas) {
|
|
1346
|
+
const ret2 = wasm.__bevy_render_worker_main(canvas);
|
|
1347
|
+
return ret2;
|
|
1348
|
+
}
|
|
1349
|
+
function audio_host_main() {
|
|
1350
|
+
wasm.audio_host_main();
|
|
1351
|
+
}
|
|
941
1352
|
function builtin_module(state, path) {
|
|
942
1353
|
let deferred3_0;
|
|
943
1354
|
let deferred3_1;
|
|
@@ -987,12 +1398,46 @@ function engine_init() {
|
|
|
987
1398
|
const ret2 = wasm.engine_init();
|
|
988
1399
|
return ret2;
|
|
989
1400
|
}
|
|
1401
|
+
function engine_prepare_render(canvas, glue_url) {
|
|
1402
|
+
const ptr0 = passStringToWasm0(glue_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1403
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1404
|
+
const ret2 = wasm.engine_prepare_render(canvas, ptr0, len0);
|
|
1405
|
+
if (ret2[1]) {
|
|
1406
|
+
throw takeFromExternrefTable0(ret2[0]);
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
function engine_render_setup(_canvas) {
|
|
1410
|
+
const ret2 = wasm.engine_render_setup(_canvas);
|
|
1411
|
+
return ret2;
|
|
1412
|
+
}
|
|
990
1413
|
function engine_run(options) {
|
|
991
1414
|
const ret2 = wasm.engine_run(options);
|
|
992
1415
|
if (ret2[1]) {
|
|
993
1416
|
throw takeFromExternrefTable0(ret2[0]);
|
|
994
1417
|
}
|
|
995
1418
|
}
|
|
1419
|
+
function engine_spawn_worker(glue_url, entry, tag) {
|
|
1420
|
+
const ptr0 = passStringToWasm0(glue_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1421
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1422
|
+
const ptr1 = passStringToWasm0(entry, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1423
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1424
|
+
const ptr2 = passStringToWasm0(tag, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1425
|
+
const len2 = WASM_VECTOR_LEN;
|
|
1426
|
+
const ret2 = wasm.engine_spawn_worker(ptr0, len0, ptr1, len1, ptr2, len2);
|
|
1427
|
+
if (ret2[2]) {
|
|
1428
|
+
throw takeFromExternrefTable0(ret2[1]);
|
|
1429
|
+
}
|
|
1430
|
+
return takeFromExternrefTable0(ret2[0]);
|
|
1431
|
+
}
|
|
1432
|
+
function engine_start(canvas, options, glue_url) {
|
|
1433
|
+
const ptr0 = passStringToWasm0(glue_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1434
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1435
|
+
const ret2 = wasm.engine_start(canvas, options, ptr0, len0);
|
|
1436
|
+
if (ret2[2]) {
|
|
1437
|
+
throw takeFromExternrefTable0(ret2[1]);
|
|
1438
|
+
}
|
|
1439
|
+
return takeFromExternrefTable0(ret2[0]);
|
|
1440
|
+
}
|
|
996
1441
|
function gpu_cache_hash() {
|
|
997
1442
|
let deferred1_0;
|
|
998
1443
|
let deferred1_1;
|
|
@@ -1008,6 +1453,12 @@ function gpu_cache_hash() {
|
|
|
1008
1453
|
function image_processor_init() {
|
|
1009
1454
|
wasm.image_processor_init();
|
|
1010
1455
|
}
|
|
1456
|
+
function image_processor_main() {
|
|
1457
|
+
const ret2 = wasm.image_processor_main();
|
|
1458
|
+
if (ret2[1]) {
|
|
1459
|
+
throw takeFromExternrefTable0(ret2[0]);
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1011
1462
|
function image_processor_run() {
|
|
1012
1463
|
const ret2 = wasm.image_processor_run();
|
|
1013
1464
|
return ret2;
|
|
@@ -1020,6 +1471,12 @@ function is_super(state) {
|
|
|
1020
1471
|
const ret2 = wasm.is_super(state.__wbg_ptr);
|
|
1021
1472
|
return ret2 !== 0;
|
|
1022
1473
|
}
|
|
1474
|
+
function livekit_host_main() {
|
|
1475
|
+
wasm.livekit_host_main();
|
|
1476
|
+
}
|
|
1477
|
+
function media_host_main(render_worker) {
|
|
1478
|
+
wasm.media_host_main(render_worker);
|
|
1479
|
+
}
|
|
1023
1480
|
function op_accept_friend_request(state, address) {
|
|
1024
1481
|
_assertClass(state, WorkerContext);
|
|
1025
1482
|
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1779,6 +2236,9 @@ function op_world_time(op_state) {
|
|
|
1779
2236
|
const ret2 = wasm.op_world_time(op_state.__wbg_ptr);
|
|
1780
2237
|
return ret2;
|
|
1781
2238
|
}
|
|
2239
|
+
function report_pointer_lock(locked) {
|
|
2240
|
+
wasm.report_pointer_lock(locked);
|
|
2241
|
+
}
|
|
1782
2242
|
function wasm_init_scene() {
|
|
1783
2243
|
const ret2 = wasm.wasm_init_scene();
|
|
1784
2244
|
return ret2;
|
|
@@ -1821,11 +2281,25 @@ function __wbg_get_imports(memory) {
|
|
|
1821
2281
|
const ret2 = arg02.WorkerGlobalScope;
|
|
1822
2282
|
return ret2;
|
|
1823
2283
|
},
|
|
2284
|
+
__wbg___copyToClipboard_87f4128e2f1f2743: function(arg02, arg12) {
|
|
2285
|
+
const ret2 = self.__copyToClipboard(getStringFromWasm0(arg02, arg12));
|
|
2286
|
+
return ret2;
|
|
2287
|
+
},
|
|
1824
2288
|
__wbg___engineHeartbeat_64b3c3e231f3208b: function() {
|
|
1825
|
-
|
|
2289
|
+
self.__engineHeartbeat();
|
|
2290
|
+
},
|
|
2291
|
+
__wbg___gpuCacheReady_ba406b6b0e5133ce: function() {
|
|
2292
|
+
self.__gpuCacheReady();
|
|
2293
|
+
},
|
|
2294
|
+
__wbg___openExternalUrl_e00d5241ac53e1e2: function(arg02, arg12) {
|
|
2295
|
+
self.__openExternalUrl(getStringFromWasm0(arg02, arg12));
|
|
2296
|
+
},
|
|
2297
|
+
__wbg___readClipboard_af9f611da4660b03: function() {
|
|
2298
|
+
const ret2 = self.__readClipboard();
|
|
2299
|
+
return ret2;
|
|
1826
2300
|
},
|
|
1827
2301
|
__wbg___setEngineTextFocus_3d191f406ae0ab3a: function(arg02) {
|
|
1828
|
-
|
|
2302
|
+
self.__setEngineTextFocus(arg02 !== 0);
|
|
1829
2303
|
},
|
|
1830
2304
|
__wbg___wbindgen_bigint_get_as_i64_447a76b5c6ef7bda: function(arg02, arg12) {
|
|
1831
2305
|
const v = arg12;
|
|
@@ -1886,6 +2360,10 @@ function __wbg_get_imports(memory) {
|
|
|
1886
2360
|
const ret2 = wasm.memory;
|
|
1887
2361
|
return ret2;
|
|
1888
2362
|
},
|
|
2363
|
+
__wbg___wbindgen_module_bf945c07123bafe2: function() {
|
|
2364
|
+
const ret2 = wasmModule;
|
|
2365
|
+
return ret2;
|
|
2366
|
+
},
|
|
1889
2367
|
__wbg___wbindgen_number_get_34bb9d9dcfa21373: function(arg02, arg12) {
|
|
1890
2368
|
const obj = arg12;
|
|
1891
2369
|
const ret2 = typeof obj === "number" ? obj : void 0;
|
|
@@ -1907,7 +2385,7 @@ function __wbg_get_imports(memory) {
|
|
|
1907
2385
|
throw new Error(getStringFromWasm0(arg02, arg12));
|
|
1908
2386
|
},
|
|
1909
2387
|
__wbg__buildEngineApi_65dc2303159e674f: function(arg02, arg12) {
|
|
1910
|
-
|
|
2388
|
+
self._buildEngineApi(getStringFromWasm0(arg02, arg12));
|
|
1911
2389
|
},
|
|
1912
2390
|
__wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg02) {
|
|
1913
2391
|
arg02._wbg_cb_unref();
|
|
@@ -1933,7 +2411,7 @@ function __wbg_get_imports(memory) {
|
|
|
1933
2411
|
}, arguments);
|
|
1934
2412
|
},
|
|
1935
2413
|
__wbg_allowADummyPipeline_672e0ff4c3d203ae: function() {
|
|
1936
|
-
|
|
2414
|
+
self.allowADummyPipeline();
|
|
1937
2415
|
},
|
|
1938
2416
|
__wbg_altKey_7f2c3a24bf5420ae: function(arg02) {
|
|
1939
2417
|
const ret2 = arg02.altKey;
|
|
@@ -1986,6 +2464,11 @@ function __wbg_get_imports(memory) {
|
|
|
1986
2464
|
const ret2 = arg02.blockSize;
|
|
1987
2465
|
return ret2;
|
|
1988
2466
|
},
|
|
2467
|
+
__wbg_blur_d2a9a0c579ce1c5f: function() {
|
|
2468
|
+
return handleError(function(arg02) {
|
|
2469
|
+
arg02.blur();
|
|
2470
|
+
}, arguments);
|
|
2471
|
+
},
|
|
1989
2472
|
__wbg_body_5eb99e7257e5ae34: function(arg02) {
|
|
1990
2473
|
const ret2 = arg02.body;
|
|
1991
2474
|
return isLikeNone(ret2) ? 0 : addToExternrefTable0(ret2);
|
|
@@ -2060,6 +2543,11 @@ function __wbg_get_imports(memory) {
|
|
|
2060
2543
|
arg02.cancelAnimationFrame(arg12);
|
|
2061
2544
|
}, arguments);
|
|
2062
2545
|
},
|
|
2546
|
+
__wbg_cancelAnimationFrame_e787cfdf768b3391: function() {
|
|
2547
|
+
return handleError(function(arg02, arg12) {
|
|
2548
|
+
arg02.cancelAnimationFrame(arg12);
|
|
2549
|
+
}, arguments);
|
|
2550
|
+
},
|
|
2063
2551
|
__wbg_cancelIdleCallback_d3eb47e732dd4bcd: function(arg02, arg12) {
|
|
2064
2552
|
arg02.cancelIdleCallback(arg12 >>> 0);
|
|
2065
2553
|
},
|
|
@@ -2092,6 +2580,9 @@ function __wbg_get_imports(memory) {
|
|
|
2092
2580
|
const ret2 = clearTimeout(arg02);
|
|
2093
2581
|
return ret2;
|
|
2094
2582
|
},
|
|
2583
|
+
__wbg_clearTimeout_b466c6c00742c823: function(arg02, arg12) {
|
|
2584
|
+
arg02.clearTimeout(arg12);
|
|
2585
|
+
},
|
|
2095
2586
|
__wbg_clearTimeout_fdfb5a1468af1a97: function(arg02, arg12) {
|
|
2096
2587
|
arg02.clearTimeout(arg12);
|
|
2097
2588
|
},
|
|
@@ -2402,16 +2893,16 @@ function __wbg_get_imports(memory) {
|
|
|
2402
2893
|
const ret2 = arg02.duration;
|
|
2403
2894
|
return ret2;
|
|
2404
2895
|
},
|
|
2405
|
-
__wbg_duration_d8deec647addb21e: function(arg02) {
|
|
2406
|
-
const ret2 = arg02.duration;
|
|
2407
|
-
return ret2;
|
|
2408
|
-
},
|
|
2409
2896
|
__wbg_end_1300dc816a60c7ab: function(arg02) {
|
|
2410
2897
|
arg02.end();
|
|
2411
2898
|
},
|
|
2412
2899
|
__wbg_end_fd65a01a19361ec7: function(arg02) {
|
|
2413
2900
|
arg02.end();
|
|
2414
2901
|
},
|
|
2902
|
+
__wbg_ended_0b2bc1b8991ea41a: function(arg02) {
|
|
2903
|
+
const ret2 = arg02.ended;
|
|
2904
|
+
return ret2;
|
|
2905
|
+
},
|
|
2415
2906
|
__wbg_enqueue_ec3552838b4b7fbf: function() {
|
|
2416
2907
|
return handleError(function(arg02, arg12) {
|
|
2417
2908
|
arg02.enqueue(arg12);
|
|
@@ -2492,18 +2983,10 @@ function __wbg_get_imports(memory) {
|
|
|
2492
2983
|
arg02.focus();
|
|
2493
2984
|
}, arguments);
|
|
2494
2985
|
},
|
|
2495
|
-
__wbg_from_4bdf88943703fd48: function(arg02) {
|
|
2496
|
-
const ret2 = Array.from(arg02);
|
|
2497
|
-
return ret2;
|
|
2498
|
-
},
|
|
2499
2986
|
__wbg_fullscreenElement_8068aa5be9c86543: function(arg02) {
|
|
2500
2987
|
const ret2 = arg02.fullscreenElement;
|
|
2501
2988
|
return isLikeNone(ret2) ? 0 : addToExternrefTable0(ret2);
|
|
2502
2989
|
},
|
|
2503
|
-
__wbg_fullscreenEnabled_4c74b31f7c60f8cd: function(arg02) {
|
|
2504
|
-
const ret2 = arg02.fullscreenEnabled;
|
|
2505
|
-
return ret2;
|
|
2506
|
-
},
|
|
2507
2990
|
__wbg_gain_c5b40ffb38909ac5: function(arg02) {
|
|
2508
2991
|
const ret2 = arg02.gain;
|
|
2509
2992
|
return ret2;
|
|
@@ -2552,10 +3035,6 @@ function __wbg_get_imports(memory) {
|
|
|
2552
3035
|
const ret2 = arg02.getDirectory();
|
|
2553
3036
|
return ret2;
|
|
2554
3037
|
},
|
|
2555
|
-
__wbg_getElementById_d1f25d287b19a833: function(arg02, arg12, arg2) {
|
|
2556
|
-
const ret2 = arg02.getElementById(getStringFromWasm0(arg12, arg2));
|
|
2557
|
-
return isLikeNone(ret2) ? 0 : addToExternrefTable0(ret2);
|
|
2558
|
-
},
|
|
2559
3038
|
__wbg_getFileHandle_b5a0491829360cdb: function(arg02, arg12, arg2) {
|
|
2560
3039
|
const ret2 = arg02.getFileHandle(getStringFromWasm0(arg12, arg2));
|
|
2561
3040
|
return ret2;
|
|
@@ -2678,6 +3157,10 @@ function __wbg_get_imports(memory) {
|
|
|
2678
3157
|
const ret2 = arg02.gpu;
|
|
2679
3158
|
return ret2;
|
|
2680
3159
|
},
|
|
3160
|
+
__wbg_hardwareConcurrency_a8e3f7c0d77df6d3: function(arg02) {
|
|
3161
|
+
const ret2 = arg02.hardwareConcurrency;
|
|
3162
|
+
return ret2;
|
|
3163
|
+
},
|
|
2681
3164
|
__wbg_has_926ef2ff40b308cf: function() {
|
|
2682
3165
|
return handleError(function(arg02, arg12) {
|
|
2683
3166
|
const ret2 = Reflect.has(arg02, arg12);
|
|
@@ -2707,6 +3190,10 @@ function __wbg_get_imports(memory) {
|
|
|
2707
3190
|
const ret2 = arg02.index;
|
|
2708
3191
|
return ret2;
|
|
2709
3192
|
},
|
|
3193
|
+
__wbg_initGpuCache_25799706f7d93e7e: function(arg02, arg12) {
|
|
3194
|
+
const ret2 = initGpuCache(getStringFromWasm0(arg02, arg12));
|
|
3195
|
+
return ret2;
|
|
3196
|
+
},
|
|
2710
3197
|
__wbg_inlineSize_bc956acca480b3d7: function(arg02) {
|
|
2711
3198
|
const ret2 = arg02.inlineSize;
|
|
2712
3199
|
return ret2;
|
|
@@ -2891,6 +3378,16 @@ function __wbg_get_imports(memory) {
|
|
|
2891
3378
|
const ret2 = result;
|
|
2892
3379
|
return ret2;
|
|
2893
3380
|
},
|
|
3381
|
+
__wbg_instanceof_VideoFrame_94bf646af0f6e9d8: function(arg02) {
|
|
3382
|
+
let result;
|
|
3383
|
+
try {
|
|
3384
|
+
result = arg02 instanceof VideoFrame;
|
|
3385
|
+
} catch (_) {
|
|
3386
|
+
result = false;
|
|
3387
|
+
}
|
|
3388
|
+
const ret2 = result;
|
|
3389
|
+
return ret2;
|
|
3390
|
+
},
|
|
2894
3391
|
__wbg_instanceof_Window_23e677d2c6843922: function(arg02) {
|
|
2895
3392
|
let result;
|
|
2896
3393
|
try {
|
|
@@ -2950,7 +3447,7 @@ function __wbg_get_imports(memory) {
|
|
|
2950
3447
|
getDataViewMemory0().setInt32(arg02 + 4 * 0, ptr1, true);
|
|
2951
3448
|
},
|
|
2952
3449
|
__wbg_lastPipelineWasValid_c9343f50d52a1fb6: function() {
|
|
2953
|
-
const ret2 =
|
|
3450
|
+
const ret2 = self.lastPipelineWasValid();
|
|
2954
3451
|
return ret2;
|
|
2955
3452
|
},
|
|
2956
3453
|
__wbg_length_259ee9d041e381ad: function(arg02) {
|
|
@@ -2979,25 +3476,21 @@ function __wbg_get_imports(memory) {
|
|
|
2979
3476
|
return ret2;
|
|
2980
3477
|
}, arguments);
|
|
2981
3478
|
},
|
|
2982
|
-
|
|
2983
|
-
const ret2 = local_audio_track_new(AudioCaptureOptions.__wrap(arg02));
|
|
2984
|
-
return ret2;
|
|
2985
|
-
},
|
|
2986
|
-
__wbg_local_participant_identity_542f424996f16f1c: function(arg02, arg12) {
|
|
3479
|
+
__wbg_local_participant_identity_033fb7a159b5c6ea: function(arg02, arg12) {
|
|
2987
3480
|
const ret2 = local_participant_identity(arg12);
|
|
2988
3481
|
const ptr1 = passStringToWasm0(ret2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2989
3482
|
const len1 = WASM_VECTOR_LEN;
|
|
2990
3483
|
getDataViewMemory0().setInt32(arg02 + 4 * 1, len1, true);
|
|
2991
3484
|
getDataViewMemory0().setInt32(arg02 + 4 * 0, ptr1, true);
|
|
2992
3485
|
},
|
|
2993
|
-
|
|
3486
|
+
__wbg_local_participant_metadata_527be27628539d55: function(arg02, arg12) {
|
|
2994
3487
|
const ret2 = local_participant_metadata(arg12);
|
|
2995
|
-
|
|
2996
|
-
|
|
3488
|
+
var ptr1 = isLikeNone(ret2) ? 0 : passStringToWasm0(ret2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3489
|
+
var len1 = WASM_VECTOR_LEN;
|
|
2997
3490
|
getDataViewMemory0().setInt32(arg02 + 4 * 1, len1, true);
|
|
2998
3491
|
getDataViewMemory0().setInt32(arg02 + 4 * 0, ptr1, true);
|
|
2999
3492
|
},
|
|
3000
|
-
|
|
3493
|
+
__wbg_local_participant_publish_data_cdbd1bfcbbf8ada3: function() {
|
|
3001
3494
|
return handleError(function(arg02, arg12, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
3002
3495
|
let v0;
|
|
3003
3496
|
if (arg4 !== 0) {
|
|
@@ -3010,25 +3503,46 @@ function __wbg_get_imports(memory) {
|
|
|
3010
3503
|
return ret2;
|
|
3011
3504
|
}, arguments);
|
|
3012
3505
|
},
|
|
3013
|
-
|
|
3506
|
+
__wbg_local_participant_publish_track_d776315f2afc6560: function() {
|
|
3014
3507
|
return handleError(function(arg02, arg12, arg2) {
|
|
3015
3508
|
const ret2 = local_participant_publish_track(arg02, arg12, arg2);
|
|
3016
3509
|
return ret2;
|
|
3017
3510
|
}, arguments);
|
|
3018
3511
|
},
|
|
3019
|
-
|
|
3512
|
+
__wbg_local_participant_sid_f3be2154e610c3e0: function(arg02, arg12) {
|
|
3020
3513
|
const ret2 = local_participant_sid(arg12);
|
|
3021
3514
|
const ptr1 = passStringToWasm0(ret2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3022
3515
|
const len1 = WASM_VECTOR_LEN;
|
|
3023
3516
|
getDataViewMemory0().setInt32(arg02 + 4 * 1, len1, true);
|
|
3024
3517
|
getDataViewMemory0().setInt32(arg02 + 4 * 0, ptr1, true);
|
|
3025
3518
|
},
|
|
3026
|
-
|
|
3519
|
+
__wbg_local_participant_unpublish_track_fa3453b06bcc251b: function() {
|
|
3027
3520
|
return handleError(function(arg02, arg12) {
|
|
3028
3521
|
const ret2 = local_participant_unpublish_track(arg02, arg12);
|
|
3029
3522
|
return ret2;
|
|
3030
3523
|
}, arguments);
|
|
3031
3524
|
},
|
|
3525
|
+
__wbg_local_track_publication_kind_d1d7afe661666c97: function(arg02, arg12) {
|
|
3526
|
+
const ret2 = local_track_publication_kind(arg12);
|
|
3527
|
+
const ptr1 = passStringToWasm0(ret2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3528
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3529
|
+
getDataViewMemory0().setInt32(arg02 + 4 * 1, len1, true);
|
|
3530
|
+
getDataViewMemory0().setInt32(arg02 + 4 * 0, ptr1, true);
|
|
3531
|
+
},
|
|
3532
|
+
__wbg_local_track_publication_sid_0eabc65cb7a0b5d3: function(arg02, arg12) {
|
|
3533
|
+
const ret2 = local_track_publication_sid(arg12);
|
|
3534
|
+
const ptr1 = passStringToWasm0(ret2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3535
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3536
|
+
getDataViewMemory0().setInt32(arg02 + 4 * 1, len1, true);
|
|
3537
|
+
getDataViewMemory0().setInt32(arg02 + 4 * 0, ptr1, true);
|
|
3538
|
+
},
|
|
3539
|
+
__wbg_local_track_publication_source_6c97a455b1b38bcd: function(arg02, arg12) {
|
|
3540
|
+
const ret2 = local_track_publication_source(arg12);
|
|
3541
|
+
const ptr1 = passStringToWasm0(ret2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3542
|
+
const len1 = WASM_VECTOR_LEN;
|
|
3543
|
+
getDataViewMemory0().setInt32(arg02 + 4 * 1, len1, true);
|
|
3544
|
+
getDataViewMemory0().setInt32(arg02 + 4 * 0, ptr1, true);
|
|
3545
|
+
},
|
|
3032
3546
|
__wbg_location_cb6f3af6ad563d81: function(arg02) {
|
|
3033
3547
|
const ret2 = arg02.location;
|
|
3034
3548
|
return ret2;
|
|
@@ -3239,13 +3753,6 @@ function __wbg_get_imports(memory) {
|
|
|
3239
3753
|
const ret2 = arg02.metaKey;
|
|
3240
3754
|
return ret2;
|
|
3241
3755
|
},
|
|
3242
|
-
__wbg_microphonePermissionState_2be29f3bea5c596c: function(arg02) {
|
|
3243
|
-
const ret2 = microphonePermissionState();
|
|
3244
|
-
const ptr1 = passStringToWasm0(ret2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3245
|
-
const len1 = WASM_VECTOR_LEN;
|
|
3246
|
-
getDataViewMemory0().setInt32(arg02 + 4 * 1, len1, true);
|
|
3247
|
-
getDataViewMemory0().setInt32(arg02 + 4 * 0, ptr1, true);
|
|
3248
|
-
},
|
|
3249
3756
|
__wbg_minStorageBufferOffsetAlignment_2039bfddd5b42bd9: function(arg02) {
|
|
3250
3757
|
const ret2 = arg02.minStorageBufferOffsetAlignment;
|
|
3251
3758
|
return ret2;
|
|
@@ -3347,6 +3854,12 @@ function __wbg_get_imports(memory) {
|
|
|
3347
3854
|
return ret2;
|
|
3348
3855
|
}, arguments);
|
|
3349
3856
|
},
|
|
3857
|
+
__wbg_new_bd6c634574cbafea: function() {
|
|
3858
|
+
return handleError(function(arg02, arg12) {
|
|
3859
|
+
const ret2 = new OffscreenCanvas(arg02 >>> 0, arg12 >>> 0);
|
|
3860
|
+
return ret2;
|
|
3861
|
+
}, arguments);
|
|
3862
|
+
},
|
|
3350
3863
|
__wbg_new_c518c60af666645b: function() {
|
|
3351
3864
|
return handleError(function() {
|
|
3352
3865
|
const ret2 = new AbortController();
|
|
@@ -3550,6 +4063,10 @@ function __wbg_get_imports(memory) {
|
|
|
3550
4063
|
arg02.pause();
|
|
3551
4064
|
}, arguments);
|
|
3552
4065
|
},
|
|
4066
|
+
__wbg_paused_04fa0630781138c8: function(arg02) {
|
|
4067
|
+
const ret2 = arg02.paused;
|
|
4068
|
+
return ret2;
|
|
4069
|
+
},
|
|
3553
4070
|
__wbg_performance_3fcf6e32a7e1ed0a: function(arg02) {
|
|
3554
4071
|
const ret2 = arg02.performance;
|
|
3555
4072
|
return ret2;
|
|
@@ -3575,10 +4092,6 @@ function __wbg_get_imports(memory) {
|
|
|
3575
4092
|
const ret2 = arg02.pointerId;
|
|
3576
4093
|
return ret2;
|
|
3577
4094
|
},
|
|
3578
|
-
__wbg_pointerLockElement_351ae3d599753f4f: function(arg02) {
|
|
3579
|
-
const ret2 = arg02.pointerLockElement;
|
|
3580
|
-
return isLikeNone(ret2) ? 0 : addToExternrefTable0(ret2);
|
|
3581
|
-
},
|
|
3582
4095
|
__wbg_pointerType_02525bef1df5f79c: function(arg02, arg12) {
|
|
3583
4096
|
const ret2 = arg12.pointerType;
|
|
3584
4097
|
const ptr1 = passStringToWasm0(ret2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -3715,40 +4228,55 @@ function __wbg_get_imports(memory) {
|
|
|
3715
4228
|
__wbg_releaseLock_ef7766a5da654ff8: function(arg02) {
|
|
3716
4229
|
arg02.releaseLock();
|
|
3717
4230
|
},
|
|
3718
|
-
|
|
4231
|
+
__wbg_remote_participant_identity_1b5f0c27495e746f: function(arg02, arg12) {
|
|
3719
4232
|
const ret2 = remote_participant_identity(arg12);
|
|
3720
4233
|
const ptr1 = passStringToWasm0(ret2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3721
4234
|
const len1 = WASM_VECTOR_LEN;
|
|
3722
4235
|
getDataViewMemory0().setInt32(arg02 + 4 * 1, len1, true);
|
|
3723
4236
|
getDataViewMemory0().setInt32(arg02 + 4 * 0, ptr1, true);
|
|
3724
4237
|
},
|
|
3725
|
-
|
|
4238
|
+
__wbg_remote_participant_metadata_3c6fdfba3e6c1c96: function(arg02, arg12) {
|
|
3726
4239
|
const ret2 = remote_participant_metadata(arg12);
|
|
4240
|
+
var ptr1 = isLikeNone(ret2) ? 0 : passStringToWasm0(ret2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4241
|
+
var len1 = WASM_VECTOR_LEN;
|
|
4242
|
+
getDataViewMemory0().setInt32(arg02 + 4 * 1, len1, true);
|
|
4243
|
+
getDataViewMemory0().setInt32(arg02 + 4 * 0, ptr1, true);
|
|
4244
|
+
},
|
|
4245
|
+
__wbg_remote_participant_sid_b3e5790d333f30f8: function(arg02, arg12) {
|
|
4246
|
+
const ret2 = remote_participant_sid(arg12);
|
|
3727
4247
|
const ptr1 = passStringToWasm0(ret2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3728
4248
|
const len1 = WASM_VECTOR_LEN;
|
|
3729
4249
|
getDataViewMemory0().setInt32(arg02 + 4 * 1, len1, true);
|
|
3730
4250
|
getDataViewMemory0().setInt32(arg02 + 4 * 0, ptr1, true);
|
|
3731
4251
|
},
|
|
3732
|
-
|
|
3733
|
-
const ret2 =
|
|
4252
|
+
__wbg_remote_track_publication_kind_463a7da48a634e80: function(arg02, arg12) {
|
|
4253
|
+
const ret2 = remote_track_publication_kind(arg12);
|
|
3734
4254
|
const ptr1 = passStringToWasm0(ret2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3735
4255
|
const len1 = WASM_VECTOR_LEN;
|
|
3736
4256
|
getDataViewMemory0().setInt32(arg02 + 4 * 1, len1, true);
|
|
3737
4257
|
getDataViewMemory0().setInt32(arg02 + 4 * 0, ptr1, true);
|
|
3738
4258
|
},
|
|
3739
|
-
|
|
4259
|
+
__wbg_remote_track_publication_set_subscribed_b0fe47333b341988: function(arg02, arg12) {
|
|
3740
4260
|
remote_track_publication_set_subscribed(arg02, arg12 !== 0);
|
|
3741
4261
|
},
|
|
3742
|
-
|
|
4262
|
+
__wbg_remote_track_publication_sid_73d7757c1c8f1b2b: function(arg02, arg12) {
|
|
3743
4263
|
const ret2 = remote_track_publication_sid(arg12);
|
|
3744
4264
|
const ptr1 = passStringToWasm0(ret2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3745
4265
|
const len1 = WASM_VECTOR_LEN;
|
|
3746
4266
|
getDataViewMemory0().setInt32(arg02 + 4 * 1, len1, true);
|
|
3747
4267
|
getDataViewMemory0().setInt32(arg02 + 4 * 0, ptr1, true);
|
|
3748
4268
|
},
|
|
3749
|
-
|
|
3750
|
-
const ret2 =
|
|
3751
|
-
|
|
4269
|
+
__wbg_remote_track_publication_source_1e2e847142503064: function(arg02, arg12) {
|
|
4270
|
+
const ret2 = remote_track_publication_source(arg12);
|
|
4271
|
+
const ptr1 = passStringToWasm0(ret2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
4272
|
+
const len1 = WASM_VECTOR_LEN;
|
|
4273
|
+
getDataViewMemory0().setInt32(arg02 + 4 * 1, len1, true);
|
|
4274
|
+
getDataViewMemory0().setInt32(arg02 + 4 * 0, ptr1, true);
|
|
4275
|
+
},
|
|
4276
|
+
__wbg_removeAttribute_c0738b49de4ead0b: function() {
|
|
4277
|
+
return handleError(function(arg02, arg12, arg2) {
|
|
4278
|
+
arg02.removeAttribute(getStringFromWasm0(arg12, arg2));
|
|
4279
|
+
}, arguments);
|
|
3752
4280
|
},
|
|
3753
4281
|
__wbg_removeEventListener_d27694700fc0df8b: function() {
|
|
3754
4282
|
return handleError(function(arg02, arg12, arg2, arg3) {
|
|
@@ -3786,6 +4314,12 @@ function __wbg_get_imports(memory) {
|
|
|
3786
4314
|
return ret2;
|
|
3787
4315
|
}, arguments);
|
|
3788
4316
|
},
|
|
4317
|
+
__wbg_requestAnimationFrame_562605c8f42a4714: function() {
|
|
4318
|
+
return handleError(function(arg02, arg12) {
|
|
4319
|
+
const ret2 = arg02.requestAnimationFrame(arg12);
|
|
4320
|
+
return ret2;
|
|
4321
|
+
}, arguments);
|
|
4322
|
+
},
|
|
3789
4323
|
__wbg_requestDevice_28434913a23418c4: function(arg02, arg12) {
|
|
3790
4324
|
const ret2 = arg02.requestDevice(arg12);
|
|
3791
4325
|
return ret2;
|
|
@@ -3840,19 +4374,19 @@ function __wbg_get_imports(memory) {
|
|
|
3840
4374
|
URL.revokeObjectURL(getStringFromWasm0(arg02, arg12));
|
|
3841
4375
|
}, arguments);
|
|
3842
4376
|
},
|
|
3843
|
-
|
|
4377
|
+
__wbg_room_close_a70d4081e77aa195: function() {
|
|
3844
4378
|
return handleError(function(arg02) {
|
|
3845
4379
|
const ret2 = room_close(arg02);
|
|
3846
4380
|
return ret2;
|
|
3847
4381
|
}, arguments);
|
|
3848
4382
|
},
|
|
3849
|
-
|
|
4383
|
+
__wbg_room_connect_e764dafe2de14fb2: function() {
|
|
3850
4384
|
return handleError(function(arg02, arg12, arg2, arg3, arg4, arg5, arg6) {
|
|
3851
4385
|
const ret2 = room_connect(getStringFromWasm0(arg02, arg12), getStringFromWasm0(arg2, arg3), arg4, arg5, arg6);
|
|
3852
4386
|
return ret2;
|
|
3853
4387
|
}, arguments);
|
|
3854
4388
|
},
|
|
3855
|
-
|
|
4389
|
+
__wbg_room_name_f51fa467b37806a5: function(arg02, arg12) {
|
|
3856
4390
|
const ret2 = room_name(arg12);
|
|
3857
4391
|
const ptr1 = passStringToWasm0(ret2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
3858
4392
|
const len1 = WASM_VECTOR_LEN;
|
|
@@ -3962,6 +4496,12 @@ function __wbg_get_imports(memory) {
|
|
|
3962
4496
|
return ret2;
|
|
3963
4497
|
}, arguments);
|
|
3964
4498
|
},
|
|
4499
|
+
__wbg_setTimeout_c8336cac3e6a81ea: function() {
|
|
4500
|
+
return handleError(function(arg02, arg12, arg2) {
|
|
4501
|
+
const ret2 = arg02.setTimeout(arg12, arg2);
|
|
4502
|
+
return ret2;
|
|
4503
|
+
}, arguments);
|
|
4504
|
+
},
|
|
3965
4505
|
__wbg_setTimeout_ef24d2fc3ad97385: function() {
|
|
3966
4506
|
return handleError(function(arg02, arg12) {
|
|
3967
4507
|
const ret2 = setTimeout(arg02, arg12);
|
|
@@ -4470,6 +5010,9 @@ function __wbg_get_imports(memory) {
|
|
|
4470
5010
|
__wbg_set_onplaying_c33312ffbaa3950a: function(arg02, arg12) {
|
|
4471
5011
|
arg02.onplaying = arg12;
|
|
4472
5012
|
},
|
|
5013
|
+
__wbg_set_onseeking_3b18955831919e17: function(arg02, arg12) {
|
|
5014
|
+
arg02.onseeking = arg12;
|
|
5015
|
+
},
|
|
4473
5016
|
__wbg_set_onuncapturederror_08dfd7cc581bbee3: function(arg02, arg12) {
|
|
4474
5017
|
arg02.onuncapturederror = arg12;
|
|
4475
5018
|
},
|
|
@@ -4557,9 +5100,6 @@ function __wbg_get_imports(memory) {
|
|
|
4557
5100
|
__wbg_set_source_8794557a59a4c226: function(arg02, arg12) {
|
|
4558
5101
|
arg02.source = arg12;
|
|
4559
5102
|
},
|
|
4560
|
-
__wbg_set_src_434d08000815f7cd: function(arg02, arg12, arg2) {
|
|
4561
|
-
arg02.src = getStringFromWasm0(arg12, arg2);
|
|
4562
|
-
},
|
|
4563
5103
|
__wbg_set_src_factor_f6d030d42c740795: function(arg02, arg12) {
|
|
4564
5104
|
arg02.srcFactor = __wbindgen_enum_GpuBlendFactor[arg12];
|
|
4565
5105
|
},
|
|
@@ -4639,7 +5179,7 @@ function __wbg_get_imports(memory) {
|
|
|
4639
5179
|
arg02.type = __wbindgen_enum_GpuQueryType[arg12];
|
|
4640
5180
|
},
|
|
4641
5181
|
__wbg_set_url_params_5c8097fa8a282019: function(arg02, arg12) {
|
|
4642
|
-
|
|
5182
|
+
self.set_url_params(getStringFromWasm0(arg02, arg12));
|
|
4643
5183
|
},
|
|
4644
5184
|
__wbg_set_usage_4810d9c6b8041aa6: function(arg02, arg12) {
|
|
4645
5185
|
arg02.usage = arg12 >>> 0;
|
|
@@ -4729,19 +5269,18 @@ function __wbg_get_imports(memory) {
|
|
|
4729
5269
|
const ret2 = arg02.size;
|
|
4730
5270
|
return ret2;
|
|
4731
5271
|
},
|
|
4732
|
-
__wbg_slice_6c91edc1cff27a67: function(arg02, arg12) {
|
|
4733
|
-
const ret2 = arg12.slice();
|
|
4734
|
-
const ptr1 = passArrayJsValueToWasm0(ret2, wasm.__wbindgen_malloc);
|
|
4735
|
-
const len1 = WASM_VECTOR_LEN;
|
|
4736
|
-
getDataViewMemory0().setInt32(arg02 + 4 * 1, len1, true);
|
|
4737
|
-
getDataViewMemory0().setInt32(arg02 + 4 * 0, ptr1, true);
|
|
4738
|
-
},
|
|
4739
5272
|
__wbg_slice_f3fd3c2bec9310f6: function(arg02, arg12, arg2) {
|
|
4740
5273
|
const ret2 = arg02.slice(arg12 >>> 0, arg2 >>> 0);
|
|
4741
5274
|
return ret2;
|
|
4742
5275
|
},
|
|
5276
|
+
__wbg_spawnWorker_61d5fabeb91b1046: function() {
|
|
5277
|
+
return handleError(function(arg02) {
|
|
5278
|
+
const ret2 = spawnWorker(arg02);
|
|
5279
|
+
return ret2;
|
|
5280
|
+
}, arguments);
|
|
5281
|
+
},
|
|
4743
5282
|
__wbg_spawn_and_init_sandbox_e19f37ad396f19e9: function() {
|
|
4744
|
-
const ret2 =
|
|
5283
|
+
const ret2 = self.spawn_and_init_sandbox();
|
|
4745
5284
|
return ret2;
|
|
4746
5285
|
},
|
|
4747
5286
|
__wbg_stack_3b0d974bbf31e44f: function(arg02, arg12) {
|
|
@@ -4875,7 +5414,7 @@ function __wbg_get_imports(memory) {
|
|
|
4875
5414
|
arg02.submit(arg12);
|
|
4876
5415
|
},
|
|
4877
5416
|
__wbg_terminate_sandbox_c60ae95b140abd17: function(arg02) {
|
|
4878
|
-
|
|
5417
|
+
self.terminate_sandbox(BigInt.asUintN(64, arg02));
|
|
4879
5418
|
},
|
|
4880
5419
|
__wbg_text_372f5b91442c50f9: function() {
|
|
4881
5420
|
return handleError(function(arg02) {
|
|
@@ -4911,6 +5450,12 @@ function __wbg_get_imports(memory) {
|
|
|
4911
5450
|
const ret2 = arg02.toString();
|
|
4912
5451
|
return ret2;
|
|
4913
5452
|
},
|
|
5453
|
+
__wbg_transferControlToOffscreen_2bfbcbaf4be2dc70: function() {
|
|
5454
|
+
return handleError(function(arg02) {
|
|
5455
|
+
const ret2 = arg02.transferControlToOffscreen();
|
|
5456
|
+
return ret2;
|
|
5457
|
+
}, arguments);
|
|
5458
|
+
},
|
|
4914
5459
|
__wbg_unmap_815a075fd850cb73: function(arg02) {
|
|
4915
5460
|
arg02.unmap();
|
|
4916
5461
|
},
|
|
@@ -4939,6 +5484,15 @@ function __wbg_get_imports(memory) {
|
|
|
4939
5484
|
const ret2 = arg02.userAgentData;
|
|
4940
5485
|
return isLikeNone(ret2) ? 0 : addToExternrefTable0(ret2);
|
|
4941
5486
|
},
|
|
5487
|
+
__wbg_userAgent_0de6384fff300b12: function() {
|
|
5488
|
+
return handleError(function(arg02, arg12) {
|
|
5489
|
+
const ret2 = arg12.userAgent;
|
|
5490
|
+
const ptr1 = passStringToWasm0(ret2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
5491
|
+
const len1 = WASM_VECTOR_LEN;
|
|
5492
|
+
getDataViewMemory0().setInt32(arg02 + 4 * 1, len1, true);
|
|
5493
|
+
getDataViewMemory0().setInt32(arg02 + 4 * 0, ptr1, true);
|
|
5494
|
+
}, arguments);
|
|
5495
|
+
},
|
|
4942
5496
|
__wbg_userAgent_161a5f2d2a8dee61: function() {
|
|
4943
5497
|
return handleError(function(arg02, arg12) {
|
|
4944
5498
|
const ret2 = arg12.userAgent;
|
|
@@ -4989,7 +5543,7 @@ function __wbg_get_imports(memory) {
|
|
|
4989
5543
|
return ret2;
|
|
4990
5544
|
},
|
|
4991
5545
|
__wbg_waitForPipelines_cdfc04c59cedd954: function() {
|
|
4992
|
-
const ret2 =
|
|
5546
|
+
const ret2 = self.waitForPipelines();
|
|
4993
5547
|
return ret2;
|
|
4994
5548
|
},
|
|
4995
5549
|
__wbg_wasClean_69f68dc4ed2d2cc7: function(arg02) {
|
|
@@ -5071,63 +5625,63 @@ function __wbg_get_imports(memory) {
|
|
|
5071
5625
|
return ret2;
|
|
5072
5626
|
},
|
|
5073
5627
|
__wbindgen_cast_0000000000000003: function(arg02, arg12) {
|
|
5074
|
-
const ret2 = makeMutClosure(arg02, arg12, wasm.
|
|
5628
|
+
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut_____Output________4_, wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke_______true__5_);
|
|
5075
5629
|
return ret2;
|
|
5076
5630
|
},
|
|
5077
5631
|
__wbindgen_cast_0000000000000004: function(arg02, arg12) {
|
|
5078
|
-
const ret2 = makeMutClosure(arg02, arg12, wasm.
|
|
5632
|
+
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut_____Output________5_, wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke_______true__6_);
|
|
5079
5633
|
return ret2;
|
|
5080
5634
|
},
|
|
5081
5635
|
__wbindgen_cast_0000000000000005: function(arg02, arg12) {
|
|
5082
|
-
const ret2 = makeMutClosure(arg02, arg12, wasm.
|
|
5636
|
+
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut__wasm_bindgen_37b2aef40228fbc7___JsValue____Output________3_, wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___JsValue______true__4_);
|
|
5083
5637
|
return ret2;
|
|
5084
5638
|
},
|
|
5085
5639
|
__wbindgen_cast_0000000000000006: function(arg02, arg12) {
|
|
5086
|
-
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut__wasm_bindgen_37b2aef40228fbc7___JsValue____Output___core_b1d35abfa360d765___result__Result_____wasm_bindgen_37b2aef40228fbc7___JsError___,
|
|
5640
|
+
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut__wasm_bindgen_37b2aef40228fbc7___JsValue____Output___core_b1d35abfa360d765___result__Result_____wasm_bindgen_37b2aef40228fbc7___JsError___, wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___JsValue__core_b1d35abfa360d765___result__Result_____wasm_bindgen_37b2aef40228fbc7___JsError___true_);
|
|
5087
5641
|
return ret2;
|
|
5088
5642
|
},
|
|
5089
5643
|
__wbindgen_cast_0000000000000007: function(arg02, arg12) {
|
|
5090
|
-
const ret2 = makeMutClosure(arg02, arg12, wasm.
|
|
5644
|
+
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut__wasm_bindgen_37b2aef40228fbc7___JsValue____Output___core_b1d35abfa360d765___result__Result_____wasm_bindgen_37b2aef40228fbc7___JsError___, wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___web_sys_1e52e782a8305a30___features__gen_MessageEvent__MessageEvent______true_);
|
|
5091
5645
|
return ret2;
|
|
5092
5646
|
},
|
|
5093
5647
|
__wbindgen_cast_0000000000000008: function(arg02, arg12) {
|
|
5094
|
-
const ret2 = makeMutClosure(arg02, arg12, wasm.
|
|
5648
|
+
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut__web_sys_1e52e782a8305a30___features__gen_CloseEvent__CloseEvent____Output_______, wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___web_sys_1e52e782a8305a30___features__gen_CloseEvent__CloseEvent______true_);
|
|
5095
5649
|
return ret2;
|
|
5096
5650
|
},
|
|
5097
5651
|
__wbindgen_cast_0000000000000009: function(arg02, arg12) {
|
|
5098
|
-
const ret2 = makeMutClosure(arg02, arg12, wasm.
|
|
5652
|
+
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut__web_sys_1e52e782a8305a30___features__gen_CloseEvent__CloseEvent____Output________1_, wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___web_sys_1e52e782a8305a30___features__gen_CloseEvent__CloseEvent______true__1_);
|
|
5099
5653
|
return ret2;
|
|
5100
5654
|
},
|
|
5101
5655
|
__wbindgen_cast_000000000000000a: function(arg02, arg12) {
|
|
5102
|
-
const ret2 =
|
|
5656
|
+
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut__wasm_bindgen_37b2aef40228fbc7___sys__Undefined____Output___core_b1d35abfa360d765___result__Result_____wasm_bindgen_37b2aef40228fbc7___JsError___, wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___sys__Undefined__core_b1d35abfa360d765___result__Result_____wasm_bindgen_37b2aef40228fbc7___JsError___true_);
|
|
5103
5657
|
return ret2;
|
|
5104
5658
|
},
|
|
5105
5659
|
__wbindgen_cast_000000000000000b: function(arg02, arg12) {
|
|
5106
|
-
const ret2 = makeMutClosure(arg02, arg12, wasm.
|
|
5660
|
+
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut__wasm_bindgen_37b2aef40228fbc7___sys__Undefined____Output___core_b1d35abfa360d765___result__Result_____wasm_bindgen_37b2aef40228fbc7___JsError___, wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___web_sys_1e52e782a8305a30___features__gen_CloseEvent__CloseEvent______true__2_);
|
|
5107
5661
|
return ret2;
|
|
5108
5662
|
},
|
|
5109
5663
|
__wbindgen_cast_000000000000000c: function(arg02, arg12) {
|
|
5110
|
-
const ret2 = makeMutClosure(arg02, arg12, wasm.
|
|
5664
|
+
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut__wasm_bindgen_37b2aef40228fbc7___sys__Undefined____Output___core_b1d35abfa360d765___result__Result_____wasm_bindgen_37b2aef40228fbc7___JsError___, wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___sys__Undefined__core_b1d35abfa360d765___result__Result_____wasm_bindgen_37b2aef40228fbc7___JsError___true__11);
|
|
5111
5665
|
return ret2;
|
|
5112
5666
|
},
|
|
5113
5667
|
__wbindgen_cast_000000000000000d: function(arg02, arg12) {
|
|
5114
|
-
const ret2 = makeMutClosure(arg02, arg12, wasm.
|
|
5668
|
+
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut__wasm_bindgen_37b2aef40228fbc7___sys__Undefined____Output___core_b1d35abfa360d765___result__Result_____wasm_bindgen_37b2aef40228fbc7___JsError___, wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___sys__Undefined__core_b1d35abfa360d765___result__Result_____wasm_bindgen_37b2aef40228fbc7___JsError___true__12);
|
|
5115
5669
|
return ret2;
|
|
5116
5670
|
},
|
|
5117
5671
|
__wbindgen_cast_000000000000000e: function(arg02, arg12) {
|
|
5118
|
-
const ret2 = makeMutClosure(arg02, arg12, wasm.
|
|
5672
|
+
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut__wasm_bindgen_37b2aef40228fbc7___sys__Undefined____Output___core_b1d35abfa360d765___result__Result_____wasm_bindgen_37b2aef40228fbc7___JsError___, wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___alloc_83a3323c1c17199e___string__String______true_);
|
|
5119
5673
|
return ret2;
|
|
5120
5674
|
},
|
|
5121
5675
|
__wbindgen_cast_000000000000000f: function(arg02, arg12) {
|
|
5122
|
-
const ret2 = makeMutClosure(arg02, arg12, wasm.
|
|
5676
|
+
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut__f64__wasm_bindgen_37b2aef40228fbc7___JsValue___Output_______, wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___f64__wasm_bindgen_37b2aef40228fbc7___JsValue______true_);
|
|
5123
5677
|
return ret2;
|
|
5124
5678
|
},
|
|
5125
5679
|
__wbindgen_cast_0000000000000010: function(arg02, arg12) {
|
|
5126
|
-
const ret2 = makeMutClosure(arg02, arg12, wasm.
|
|
5680
|
+
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut_____Output_______, wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke_______true_);
|
|
5127
5681
|
return ret2;
|
|
5128
5682
|
},
|
|
5129
5683
|
__wbindgen_cast_0000000000000011: function(arg02, arg12) {
|
|
5130
|
-
const ret2 = makeMutClosure(arg02, arg12, wasm.
|
|
5684
|
+
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut_____Output________1_, wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke_______true__1_);
|
|
5131
5685
|
return ret2;
|
|
5132
5686
|
},
|
|
5133
5687
|
__wbindgen_cast_0000000000000012: function(arg02, arg12) {
|
|
@@ -5135,23 +5689,23 @@ function __wbg_get_imports(memory) {
|
|
|
5135
5689
|
return ret2;
|
|
5136
5690
|
},
|
|
5137
5691
|
__wbindgen_cast_0000000000000013: function(arg02, arg12) {
|
|
5138
|
-
const ret2 = makeMutClosure(arg02, arg12, wasm.
|
|
5692
|
+
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut__wasm_bindgen_37b2aef40228fbc7___JsValue____Output_______, wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___JsValue______true_);
|
|
5139
5693
|
return ret2;
|
|
5140
5694
|
},
|
|
5141
5695
|
__wbindgen_cast_0000000000000014: function(arg02, arg12) {
|
|
5142
|
-
const ret2 = makeMutClosure(arg02, arg12, wasm.
|
|
5696
|
+
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut_____Output________3_, wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke_______true__3_);
|
|
5143
5697
|
return ret2;
|
|
5144
5698
|
},
|
|
5145
5699
|
__wbindgen_cast_0000000000000015: function(arg02, arg12) {
|
|
5146
|
-
const ret2 = makeMutClosure(arg02, arg12, wasm.
|
|
5700
|
+
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut__wasm_bindgen_37b2aef40228fbc7___JsValue____Output________1_, wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___JsValue______true__1_);
|
|
5147
5701
|
return ret2;
|
|
5148
5702
|
},
|
|
5149
5703
|
__wbindgen_cast_0000000000000016: function(arg02, arg12) {
|
|
5150
|
-
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut__core_b1d35abfa360d765___option__Option_web_sys_1e52e782a8305a30___features__gen_Blob__Blob_____Output_______,
|
|
5704
|
+
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut__core_b1d35abfa360d765___option__Option_web_sys_1e52e782a8305a30___features__gen_Blob__Blob_____Output_______, wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___JsValue______true__2_);
|
|
5151
5705
|
return ret2;
|
|
5152
5706
|
},
|
|
5153
5707
|
__wbindgen_cast_0000000000000017: function(arg02, arg12) {
|
|
5154
|
-
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut__core_b1d35abfa360d765___option__Option_web_sys_1e52e782a8305a30___features__gen_Blob__Blob_____Output_______,
|
|
5708
|
+
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut__core_b1d35abfa360d765___option__Option_web_sys_1e52e782a8305a30___features__gen_Blob__Blob_____Output_______, wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___js_sys_342d9548e43f4e8___Array__web_sys_1e52e782a8305a30___features__gen_ResizeObserver__ResizeObserver______true_);
|
|
5155
5709
|
return ret2;
|
|
5156
5710
|
},
|
|
5157
5711
|
__wbindgen_cast_0000000000000018: function(arg02, arg12) {
|
|
@@ -5175,42 +5729,50 @@ function __wbg_get_imports(memory) {
|
|
|
5175
5729
|
return ret2;
|
|
5176
5730
|
},
|
|
5177
5731
|
__wbindgen_cast_000000000000001d: function(arg02, arg12) {
|
|
5178
|
-
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut__core_b1d35abfa360d765___option__Option_web_sys_1e52e782a8305a30___features__gen_Blob__Blob_____Output_______,
|
|
5732
|
+
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut__core_b1d35abfa360d765___option__Option_web_sys_1e52e782a8305a30___features__gen_Blob__Blob_____Output_______, wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___JsValue______true__2__28);
|
|
5733
|
+
return ret2;
|
|
5734
|
+
},
|
|
5735
|
+
__wbindgen_cast_000000000000001e: function(arg02, arg12) {
|
|
5736
|
+
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut__core_b1d35abfa360d765___option__Option_web_sys_1e52e782a8305a30___features__gen_Blob__Blob_____Output_______, wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___JsValue______true__2__29);
|
|
5737
|
+
return ret2;
|
|
5738
|
+
},
|
|
5739
|
+
__wbindgen_cast_000000000000001f: function(arg02, arg12) {
|
|
5740
|
+
const ret2 = makeMutClosure(arg02, arg12, wasm.wasm_bindgen_37b2aef40228fbc7___closure__destroy___dyn_core_b1d35abfa360d765___ops__function__FnMut__core_b1d35abfa360d765___option__Option_web_sys_1e52e782a8305a30___features__gen_Blob__Blob_____Output_______, wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke_______true__4_);
|
|
5179
5741
|
return ret2;
|
|
5180
5742
|
},
|
|
5181
|
-
|
|
5743
|
+
__wbindgen_cast_0000000000000020: function(arg02) {
|
|
5182
5744
|
const ret2 = arg02;
|
|
5183
5745
|
return ret2;
|
|
5184
5746
|
},
|
|
5185
|
-
|
|
5747
|
+
__wbindgen_cast_0000000000000021: function(arg02) {
|
|
5186
5748
|
const ret2 = arg02;
|
|
5187
5749
|
return ret2;
|
|
5188
5750
|
},
|
|
5189
|
-
|
|
5751
|
+
__wbindgen_cast_0000000000000022: function(arg02, arg12) {
|
|
5190
5752
|
const ret2 = getArrayU8FromWasm0(arg02, arg12);
|
|
5191
5753
|
return ret2;
|
|
5192
5754
|
},
|
|
5193
|
-
|
|
5755
|
+
__wbindgen_cast_0000000000000023: function(arg02, arg12) {
|
|
5194
5756
|
const ret2 = getStringFromWasm0(arg02, arg12);
|
|
5195
5757
|
return ret2;
|
|
5196
5758
|
},
|
|
5197
|
-
|
|
5759
|
+
__wbindgen_cast_0000000000000024: function(arg02) {
|
|
5198
5760
|
const ret2 = BigInt.asUintN(64, arg02);
|
|
5199
5761
|
return ret2;
|
|
5200
5762
|
},
|
|
5201
|
-
|
|
5763
|
+
__wbindgen_cast_0000000000000025: function(arg02, arg12) {
|
|
5202
5764
|
var v0 = getArrayJsValueFromWasm0(arg02, arg12).slice();
|
|
5203
5765
|
wasm.__wbindgen_free(arg02, arg12 * 4, 4);
|
|
5204
5766
|
const ret2 = v0;
|
|
5205
5767
|
return ret2;
|
|
5206
5768
|
},
|
|
5207
|
-
|
|
5769
|
+
__wbindgen_cast_0000000000000026: function(arg02, arg12) {
|
|
5208
5770
|
var v0 = getArrayJsValueFromWasm0(arg02, arg12).slice();
|
|
5209
5771
|
wasm.__wbindgen_free(arg02, arg12 * 4, 4);
|
|
5210
5772
|
const ret2 = v0;
|
|
5211
5773
|
return ret2;
|
|
5212
5774
|
},
|
|
5213
|
-
|
|
5775
|
+
__wbindgen_cast_0000000000000027: function(arg02, arg12) {
|
|
5214
5776
|
var v0 = getArrayU8FromWasm0(arg02, arg12).slice();
|
|
5215
5777
|
wasm.__wbindgen_free(arg02, arg12 * 1, 1);
|
|
5216
5778
|
const ret2 = v0;
|
|
@@ -5533,12 +6095,16 @@ function __wbg_get_imports(memory) {
|
|
|
5533
6095
|
"./snippets/comms-53217a45365bb5fa/livekit_web_bindings.js": livekit_web_bindings_exports,
|
|
5534
6096
|
"./snippets/comms-53217a45365bb5fa/livekit_web_bindings.js": livekit_web_bindings_exports,
|
|
5535
6097
|
"./snippets/comms-53217a45365bb5fa/livekit_web_bindings.js": livekit_web_bindings_exports,
|
|
6098
|
+
"./snippets/comms-53217a45365bb5fa/livekit_web_bindings.js": livekit_web_bindings_exports,
|
|
5536
6099
|
"./snippets/comms-53217a45365bb5fa/livekit_web_bindings.js": livekit_web_bindings_exports
|
|
5537
6100
|
};
|
|
5538
6101
|
}
|
|
5539
6102
|
var lAudioContext = typeof AudioContext !== "undefined" ? AudioContext : typeof webkitAudioContext !== "undefined" ? webkitAudioContext : void 0;
|
|
5540
|
-
function
|
|
5541
|
-
wasm.
|
|
6103
|
+
function wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke_______true__5_(arg02, arg12) {
|
|
6104
|
+
wasm.wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke_______true__5_(arg02, arg12);
|
|
6105
|
+
}
|
|
6106
|
+
function wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke_______true__6_(arg02, arg12) {
|
|
6107
|
+
wasm.wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke_______true__6_(arg02, arg12);
|
|
5542
6108
|
}
|
|
5543
6109
|
function wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke_______true_(arg02, arg12) {
|
|
5544
6110
|
wasm.wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke_______true_(arg02, arg12);
|
|
@@ -5552,6 +6118,9 @@ function wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke_______true
|
|
|
5552
6118
|
function wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke_______true__3_(arg02, arg12) {
|
|
5553
6119
|
wasm.wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke_______true__3_(arg02, arg12);
|
|
5554
6120
|
}
|
|
6121
|
+
function wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke_______true__4_(arg02, arg12) {
|
|
6122
|
+
wasm.wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke_______true__4_(arg02, arg12);
|
|
6123
|
+
}
|
|
5555
6124
|
function wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___JsValue______true__3_(arg02, arg12, arg2) {
|
|
5556
6125
|
wasm.wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___JsValue______true__3_(arg02, arg12, arg2);
|
|
5557
6126
|
}
|
|
@@ -5570,9 +6139,6 @@ function wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___web_sys_
|
|
|
5570
6139
|
function wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___web_sys_1e52e782a8305a30___features__gen_CloseEvent__CloseEvent______true__1_(arg02, arg12, arg2) {
|
|
5571
6140
|
wasm.wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___web_sys_1e52e782a8305a30___features__gen_CloseEvent__CloseEvent______true__1_(arg02, arg12, arg2);
|
|
5572
6141
|
}
|
|
5573
|
-
function wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___comms_c8978531481d4b3a___livekit__web__room_event__RoomEvent______true_(arg02, arg12, arg2) {
|
|
5574
|
-
wasm.wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___comms_c8978531481d4b3a___livekit__web__room_event__RoomEvent______true_(arg02, arg12, arg2);
|
|
5575
|
-
}
|
|
5576
6142
|
function wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___web_sys_1e52e782a8305a30___features__gen_CloseEvent__CloseEvent______true__2_(arg02, arg12, arg2) {
|
|
5577
6143
|
wasm.wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___web_sys_1e52e782a8305a30___features__gen_CloseEvent__CloseEvent______true__2_(arg02, arg12, arg2);
|
|
5578
6144
|
}
|
|
@@ -5585,12 +6151,6 @@ function wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bin
|
|
|
5585
6151
|
function wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___JsValue______true__2_(arg02, arg12, arg2) {
|
|
5586
6152
|
wasm.wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___JsValue______true__2_(arg02, arg12, arg2);
|
|
5587
6153
|
}
|
|
5588
|
-
function wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___JsValue______true__2__21(arg02, arg12, arg2) {
|
|
5589
|
-
wasm.wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___JsValue______true__2__21(arg02, arg12, arg2);
|
|
5590
|
-
}
|
|
5591
|
-
function wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___JsValue______true__2__22(arg02, arg12, arg2) {
|
|
5592
|
-
wasm.wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___JsValue______true__2__22(arg02, arg12, arg2);
|
|
5593
|
-
}
|
|
5594
6154
|
function wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___JsValue______true__2__23(arg02, arg12, arg2) {
|
|
5595
6155
|
wasm.wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___JsValue______true__2__23(arg02, arg12, arg2);
|
|
5596
6156
|
}
|
|
@@ -5606,6 +6166,12 @@ function wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bin
|
|
|
5606
6166
|
function wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___JsValue______true__2__27(arg02, arg12, arg2) {
|
|
5607
6167
|
wasm.wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___JsValue______true__2__27(arg02, arg12, arg2);
|
|
5608
6168
|
}
|
|
6169
|
+
function wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___JsValue______true__2__28(arg02, arg12, arg2) {
|
|
6170
|
+
wasm.wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___JsValue______true__2__28(arg02, arg12, arg2);
|
|
6171
|
+
}
|
|
6172
|
+
function wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___JsValue______true__2__29(arg02, arg12, arg2) {
|
|
6173
|
+
wasm.wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___JsValue______true__2__29(arg02, arg12, arg2);
|
|
6174
|
+
}
|
|
5609
6175
|
function wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___JsValue__core_b1d35abfa360d765___result__Result_____wasm_bindgen_37b2aef40228fbc7___JsError___true_(arg02, arg12, arg2) {
|
|
5610
6176
|
const ret2 = wasm.wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___wasm_bindgen_37b2aef40228fbc7___JsValue__core_b1d35abfa360d765___result__Result_____wasm_bindgen_37b2aef40228fbc7___JsError___true_(arg02, arg12, arg2);
|
|
5611
6177
|
if (ret2[1]) {
|
|
@@ -5636,6 +6202,11 @@ function wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___js_sys_3
|
|
|
5636
6202
|
function wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___js_sys_342d9548e43f4e8___Function_fn_wasm_bindgen_37b2aef40228fbc7___JsValue_____wasm_bindgen_37b2aef40228fbc7___sys__Undefined___js_sys_342d9548e43f4e8___Function_fn_wasm_bindgen_37b2aef40228fbc7___JsValue_____wasm_bindgen_37b2aef40228fbc7___sys__Undefined_______true_(arg02, arg12, arg2, arg3) {
|
|
5637
6203
|
wasm.wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___js_sys_342d9548e43f4e8___Function_fn_wasm_bindgen_37b2aef40228fbc7___JsValue_____wasm_bindgen_37b2aef40228fbc7___sys__Undefined___js_sys_342d9548e43f4e8___Function_fn_wasm_bindgen_37b2aef40228fbc7___JsValue_____wasm_bindgen_37b2aef40228fbc7___sys__Undefined_______true_(arg02, arg12, arg2, arg3);
|
|
5638
6204
|
}
|
|
6205
|
+
function wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___alloc_83a3323c1c17199e___string__String______true_(arg02, arg12, arg2) {
|
|
6206
|
+
const ptr0 = passStringToWasm0(arg2, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
6207
|
+
const len0 = WASM_VECTOR_LEN;
|
|
6208
|
+
wasm.wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___alloc_83a3323c1c17199e___string__String______true_(arg02, arg12, ptr0, len0);
|
|
6209
|
+
}
|
|
5639
6210
|
function wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___f64__wasm_bindgen_37b2aef40228fbc7___JsValue______true_(arg02, arg12, arg2, arg3) {
|
|
5640
6211
|
wasm.wasm_bindgen_37b2aef40228fbc7___convert__closures_____invoke___f64__wasm_bindgen_37b2aef40228fbc7___JsValue______true_(arg02, arg12, arg2, arg3);
|
|
5641
6212
|
}
|
|
@@ -5674,9 +6245,6 @@ var __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
|
5674
6245
|
var __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
5675
6246
|
var __wbindgen_enum_ResizeObserverBoxOptions = ["border-box", "content-box", "device-pixel-content-box"];
|
|
5676
6247
|
var __wbindgen_enum_VisibilityState = ["hidden", "visible"];
|
|
5677
|
-
var AudioCaptureOptionsFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
5678
|
-
}, unregister: () => {
|
|
5679
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_audiocaptureoptions_free(ptr >>> 0, 1));
|
|
5680
6248
|
var IntoUnderlyingByteSourceFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
5681
6249
|
}, unregister: () => {
|
|
5682
6250
|
} } : new FinalizationRegistry((ptr) => wasm.__wbg_intounderlyingbytesource_free(ptr >>> 0, 1));
|
|
@@ -5686,9 +6254,6 @@ var IntoUnderlyingSinkFinalization = typeof FinalizationRegistry === "undefined"
|
|
|
5686
6254
|
var IntoUnderlyingSourceFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
5687
6255
|
}, unregister: () => {
|
|
5688
6256
|
} } : new FinalizationRegistry((ptr) => wasm.__wbg_intounderlyingsource_free(ptr >>> 0, 1));
|
|
5689
|
-
var ParticipantSidFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
5690
|
-
}, unregister: () => {
|
|
5691
|
-
} } : new FinalizationRegistry((ptr) => wasm.__wbg_participantsid_free(ptr >>> 0, 1));
|
|
5692
6257
|
var WorkerContextFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
5693
6258
|
}, unregister: () => {
|
|
5694
6259
|
} } : new FinalizationRegistry((ptr) => wasm.__wbg_workercontext_free(ptr >>> 0, 1));
|
|
@@ -5835,26 +6400,6 @@ function handleError(f, args) {
|
|
|
5835
6400
|
function isLikeNone(x) {
|
|
5836
6401
|
return x === void 0 || x === null;
|
|
5837
6402
|
}
|
|
5838
|
-
function makeClosure(arg02, arg12, dtor, f) {
|
|
5839
|
-
const state = { a: arg02, b: arg12, cnt: 1, dtor };
|
|
5840
|
-
const real = (...args) => {
|
|
5841
|
-
state.cnt++;
|
|
5842
|
-
try {
|
|
5843
|
-
return f(state.a, state.b, ...args);
|
|
5844
|
-
} finally {
|
|
5845
|
-
real._wbg_cb_unref();
|
|
5846
|
-
}
|
|
5847
|
-
};
|
|
5848
|
-
real._wbg_cb_unref = () => {
|
|
5849
|
-
if (--state.cnt === 0) {
|
|
5850
|
-
state.dtor(state.a, state.b);
|
|
5851
|
-
state.a = 0;
|
|
5852
|
-
CLOSURE_DTORS.unregister(state);
|
|
5853
|
-
}
|
|
5854
|
-
};
|
|
5855
|
-
CLOSURE_DTORS.register(real, state, state);
|
|
5856
|
-
return real;
|
|
5857
|
-
}
|
|
5858
6403
|
function makeMutClosure(arg02, arg12, dtor, f) {
|
|
5859
6404
|
const state = { a: arg02, b: arg12, cnt: 1, dtor };
|
|
5860
6405
|
const real = (...args) => {
|