@unyt/datex 0.0.5 → 0.0.7
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/README.md +6 -4
- package/esm/_dnt.shims.d.ts +1 -1
- package/esm/datex-core/datex_core_js.internal.d.ts +290 -210
- package/esm/datex-core/datex_core_js.internal.d.ts.map +1 -1
- package/esm/datex-core/datex_core_js.internal.js +836 -524
- package/esm/datex-core/datex_core_js.wasm +0 -0
- package/esm/deno.json +11 -2
- package/esm/dif/builders.d.ts +11 -0
- package/esm/dif/builders.d.ts.map +1 -0
- package/esm/dif/builders.js +23 -0
- package/esm/dif/definitions.d.ts +116 -0
- package/esm/dif/definitions.d.ts.map +1 -0
- package/esm/dif/definitions.js +70 -0
- package/esm/dif/dif-handler.d.ts +217 -0
- package/esm/dif/dif-handler.d.ts.map +1 -0
- package/esm/dif/dif-handler.js +688 -0
- package/esm/dif/display.d.ts +8 -0
- package/esm/dif/display.d.ts.map +1 -0
- package/esm/dif/display.js +74 -0
- package/esm/mod.js +8 -6
- package/esm/network/com-hub.d.ts +1 -0
- package/esm/network/com-hub.d.ts.map +1 -1
- package/esm/network/com-hub.js +3 -0
- package/esm/network/interface-impls/base.d.ts +11 -0
- package/esm/network/interface-impls/base.d.ts.map +1 -0
- package/esm/network/interface-impls/base.js +21 -0
- package/esm/network/interface-impls/websocket-client.d.ts +6 -0
- package/esm/network/interface-impls/websocket-client.d.ts.map +1 -0
- package/esm/network/interface-impls/websocket-client.js +6 -0
- package/esm/network/interface-impls/websocket-server-deno.d.ts +9 -0
- package/esm/network/interface-impls/websocket-server-deno.d.ts.map +1 -0
- package/esm/network/interface-impls/websocket-server-deno.js +45 -0
- package/esm/refs/ref.d.ts +27 -0
- package/esm/refs/ref.d.ts.map +1 -0
- package/esm/refs/ref.js +58 -0
- package/esm/runtime/runtime.d.ts +97 -5
- package/esm/runtime/runtime.d.ts.map +1 -1
- package/esm/runtime/runtime.js +69 -13
- package/esm/runtime/special-core-types.d.ts +10 -0
- package/esm/runtime/special-core-types.d.ts.map +1 -0
- package/esm/runtime/special-core-types.js +51 -0
- package/package.json +10 -1
|
@@ -7,24 +7,6 @@ let wasm;
|
|
|
7
7
|
export function __wbg_set_wasm(val) {
|
|
8
8
|
wasm = val;
|
|
9
9
|
}
|
|
10
|
-
function addToExternrefTable0(obj) {
|
|
11
|
-
const idx = wasm.__externref_table_alloc();
|
|
12
|
-
wasm.__wbindgen_export_2.set(idx, obj);
|
|
13
|
-
return idx;
|
|
14
|
-
}
|
|
15
|
-
function handleError(f, args) {
|
|
16
|
-
try {
|
|
17
|
-
return f.apply(this, args);
|
|
18
|
-
}
|
|
19
|
-
catch (e) {
|
|
20
|
-
const idx = addToExternrefTable0(e);
|
|
21
|
-
wasm.__wbindgen_exn_store(idx);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
function isLikeNone(x) {
|
|
25
|
-
return x === undefined || x === null;
|
|
26
|
-
}
|
|
27
|
-
let WASM_VECTOR_LEN = 0;
|
|
28
10
|
let cachedUint8ArrayMemory0 = null;
|
|
29
11
|
function getUint8ArrayMemory0() {
|
|
30
12
|
if (cachedUint8ArrayMemory0 === null ||
|
|
@@ -33,10 +15,37 @@ function getUint8ArrayMemory0() {
|
|
|
33
15
|
}
|
|
34
16
|
return cachedUint8ArrayMemory0;
|
|
35
17
|
}
|
|
18
|
+
const lTextDecoder = typeof TextDecoder === "undefined"
|
|
19
|
+
? (0, module.require)("util").TextDecoder
|
|
20
|
+
: TextDecoder;
|
|
21
|
+
let cachedTextDecoder = new lTextDecoder("utf-8", {
|
|
22
|
+
ignoreBOM: true,
|
|
23
|
+
fatal: true,
|
|
24
|
+
});
|
|
25
|
+
cachedTextDecoder.decode();
|
|
26
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
27
|
+
let numBytesDecoded = 0;
|
|
28
|
+
function decodeText(ptr, len) {
|
|
29
|
+
numBytesDecoded += len;
|
|
30
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
31
|
+
cachedTextDecoder = new lTextDecoder("utf-8", {
|
|
32
|
+
ignoreBOM: true,
|
|
33
|
+
fatal: true,
|
|
34
|
+
});
|
|
35
|
+
cachedTextDecoder.decode();
|
|
36
|
+
numBytesDecoded = len;
|
|
37
|
+
}
|
|
38
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
39
|
+
}
|
|
40
|
+
function getStringFromWasm0(ptr, len) {
|
|
41
|
+
ptr = ptr >>> 0;
|
|
42
|
+
return decodeText(ptr, len);
|
|
43
|
+
}
|
|
44
|
+
let WASM_VECTOR_LEN = 0;
|
|
36
45
|
const lTextEncoder = typeof TextEncoder === "undefined"
|
|
37
46
|
? (0, module.require)("util").TextEncoder
|
|
38
47
|
: TextEncoder;
|
|
39
|
-
|
|
48
|
+
const cachedTextEncoder = new lTextEncoder("utf-8");
|
|
40
49
|
const encodeString = typeof cachedTextEncoder.encodeInto === "function"
|
|
41
50
|
? function (arg, view) {
|
|
42
51
|
return cachedTextEncoder.encodeInto(arg, view);
|
|
@@ -90,53 +99,27 @@ function getDataViewMemory0() {
|
|
|
90
99
|
}
|
|
91
100
|
return cachedDataViewMemory0;
|
|
92
101
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
function addToExternrefTable0(obj) {
|
|
103
|
+
const idx = wasm.__externref_table_alloc();
|
|
104
|
+
wasm.__wbindgen_export_4.set(idx, obj);
|
|
105
|
+
return idx;
|
|
106
|
+
}
|
|
107
|
+
function handleError(f, args) {
|
|
108
|
+
try {
|
|
109
|
+
return f.apply(this, args);
|
|
110
|
+
}
|
|
111
|
+
catch (e) {
|
|
112
|
+
const idx = addToExternrefTable0(e);
|
|
113
|
+
wasm.__wbindgen_exn_store(idx);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
function isLikeNone(x) {
|
|
117
|
+
return x === undefined || x === null;
|
|
104
118
|
}
|
|
105
119
|
function getArrayU8FromWasm0(ptr, len) {
|
|
106
120
|
ptr = ptr >>> 0;
|
|
107
121
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
108
122
|
}
|
|
109
|
-
const CLOSURE_DTORS = (typeof FinalizationRegistry === "undefined")
|
|
110
|
-
? { register: () => { }, unregister: () => { } }
|
|
111
|
-
: new FinalizationRegistry((state) => {
|
|
112
|
-
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b);
|
|
113
|
-
});
|
|
114
|
-
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
115
|
-
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
116
|
-
const real = (...args) => {
|
|
117
|
-
// First up with a closure we increment the internal reference
|
|
118
|
-
// count. This ensures that the Rust closure environment won't
|
|
119
|
-
// be deallocated while we're invoking it.
|
|
120
|
-
state.cnt++;
|
|
121
|
-
const a = state.a;
|
|
122
|
-
state.a = 0;
|
|
123
|
-
try {
|
|
124
|
-
return f(a, state.b, ...args);
|
|
125
|
-
}
|
|
126
|
-
finally {
|
|
127
|
-
if (--state.cnt === 0) {
|
|
128
|
-
wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
|
|
129
|
-
CLOSURE_DTORS.unregister(state);
|
|
130
|
-
}
|
|
131
|
-
else {
|
|
132
|
-
state.a = a;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
};
|
|
136
|
-
real.original = state;
|
|
137
|
-
CLOSURE_DTORS.register(real, state, state);
|
|
138
|
-
return real;
|
|
139
|
-
}
|
|
140
123
|
function debugString(val) {
|
|
141
124
|
// primitive types
|
|
142
125
|
const type = typeof val;
|
|
@@ -205,6 +188,37 @@ function debugString(val) {
|
|
|
205
188
|
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
206
189
|
return className;
|
|
207
190
|
}
|
|
191
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === "undefined")
|
|
192
|
+
? { register: () => { }, unregister: () => { } }
|
|
193
|
+
: new FinalizationRegistry((state) => {
|
|
194
|
+
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b);
|
|
195
|
+
});
|
|
196
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
197
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
198
|
+
const real = (...args) => {
|
|
199
|
+
// First up with a closure we increment the internal reference
|
|
200
|
+
// count. This ensures that the Rust closure environment won't
|
|
201
|
+
// be deallocated while we're invoking it.
|
|
202
|
+
state.cnt++;
|
|
203
|
+
const a = state.a;
|
|
204
|
+
state.a = 0;
|
|
205
|
+
try {
|
|
206
|
+
return f(a, state.b, ...args);
|
|
207
|
+
}
|
|
208
|
+
finally {
|
|
209
|
+
if (--state.cnt === 0) {
|
|
210
|
+
wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
|
|
211
|
+
CLOSURE_DTORS.unregister(state);
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
state.a = a;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
real.original = state;
|
|
219
|
+
CLOSURE_DTORS.register(real, state, state);
|
|
220
|
+
return real;
|
|
221
|
+
}
|
|
208
222
|
function passArray8ToWasm0(arg, malloc) {
|
|
209
223
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
210
224
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -212,34 +226,10 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
212
226
|
return ptr;
|
|
213
227
|
}
|
|
214
228
|
function takeFromExternrefTable0(idx) {
|
|
215
|
-
const value = wasm.
|
|
229
|
+
const value = wasm.__wbindgen_export_4.get(idx);
|
|
216
230
|
wasm.__externref_table_dealloc(idx);
|
|
217
231
|
return value;
|
|
218
232
|
}
|
|
219
|
-
function getArrayJsValueFromWasm0(ptr, len) {
|
|
220
|
-
ptr = ptr >>> 0;
|
|
221
|
-
const mem = getDataViewMemory0();
|
|
222
|
-
const result = [];
|
|
223
|
-
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
224
|
-
result.push(wasm.__wbindgen_export_2.get(mem.getUint32(i, true)));
|
|
225
|
-
}
|
|
226
|
-
wasm.__externref_drop_slice(ptr, len);
|
|
227
|
-
return result;
|
|
228
|
-
}
|
|
229
|
-
function _assertClass(instance, klass) {
|
|
230
|
-
if (!(instance instanceof klass)) {
|
|
231
|
-
throw new Error(`expected instance of ${klass.name}`);
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
function passArrayJsValueToWasm0(array, malloc) {
|
|
235
|
-
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
236
|
-
for (let i = 0; i < array.length; i++) {
|
|
237
|
-
const add = addToExternrefTable0(array[i]);
|
|
238
|
-
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
239
|
-
}
|
|
240
|
-
WASM_VECTOR_LEN = array.length;
|
|
241
|
-
return ptr;
|
|
242
|
-
}
|
|
243
233
|
/**
|
|
244
234
|
* @param {string} config
|
|
245
235
|
* @param {any} debug_flags
|
|
@@ -251,14 +241,6 @@ export function create_runtime(config, debug_flags) {
|
|
|
251
241
|
const ret = wasm.create_runtime(ptr0, len0, debug_flags);
|
|
252
242
|
return JSRuntime.__wrap(ret);
|
|
253
243
|
}
|
|
254
|
-
/**
|
|
255
|
-
* @param {string} datex_script
|
|
256
|
-
*/
|
|
257
|
-
export function compile(datex_script) {
|
|
258
|
-
const ptr0 = passStringToWasm0(datex_script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
259
|
-
const len0 = WASM_VECTOR_LEN;
|
|
260
|
-
wasm.compile(ptr0, len0);
|
|
261
|
-
}
|
|
262
244
|
/**
|
|
263
245
|
* Executes a Datex script and returns the result as a string.
|
|
264
246
|
* @param {string} datex_script
|
|
@@ -292,17 +274,41 @@ export function execute_internal(datex_script) {
|
|
|
292
274
|
const ret = wasm.execute_internal(ptr0, len0);
|
|
293
275
|
return ret !== 0;
|
|
294
276
|
}
|
|
295
|
-
function
|
|
296
|
-
|
|
277
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
278
|
+
ptr = ptr >>> 0;
|
|
279
|
+
const mem = getDataViewMemory0();
|
|
280
|
+
const result = [];
|
|
281
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
282
|
+
result.push(wasm.__wbindgen_export_4.get(mem.getUint32(i, true)));
|
|
283
|
+
}
|
|
284
|
+
wasm.__externref_drop_slice(ptr, len);
|
|
285
|
+
return result;
|
|
286
|
+
}
|
|
287
|
+
function _assertClass(instance, klass) {
|
|
288
|
+
if (!(instance instanceof klass)) {
|
|
289
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
293
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
294
|
+
for (let i = 0; i < array.length; i++) {
|
|
295
|
+
const add = addToExternrefTable0(array[i]);
|
|
296
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
297
|
+
}
|
|
298
|
+
WASM_VECTOR_LEN = array.length;
|
|
299
|
+
return ptr;
|
|
300
|
+
}
|
|
301
|
+
function __wbg_adapter_6(arg0, arg1, arg2) {
|
|
302
|
+
wasm.closure719_externref_shim(arg0, arg1, arg2);
|
|
297
303
|
}
|
|
298
|
-
function
|
|
299
|
-
wasm.
|
|
304
|
+
function __wbg_adapter_13(arg0, arg1, arg2) {
|
|
305
|
+
wasm.closure1412_externref_shim(arg0, arg1, arg2);
|
|
300
306
|
}
|
|
301
|
-
function
|
|
302
|
-
wasm.
|
|
307
|
+
function __wbg_adapter_22(arg0, arg1) {
|
|
308
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h0af2f0c81ec4e5c8(arg0, arg1);
|
|
303
309
|
}
|
|
304
|
-
function
|
|
305
|
-
wasm.
|
|
310
|
+
function __wbg_adapter_325(arg0, arg1, arg2, arg3) {
|
|
311
|
+
wasm.closure2331_externref_shim(arg0, arg1, arg2, arg3);
|
|
306
312
|
}
|
|
307
313
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
308
314
|
const __wbindgen_enum_RtcIceConnectionState = [
|
|
@@ -359,95 +365,87 @@ export class JSComHub {
|
|
|
359
365
|
const ptr = this.__destroy_into_raw();
|
|
360
366
|
wasm.__wbg_jscomhub_free(ptr, 0);
|
|
361
367
|
}
|
|
362
|
-
register_default_interface_factories() {
|
|
363
|
-
wasm.jscomhub_register_default_interface_factories(this.__wbg_ptr);
|
|
364
|
-
}
|
|
365
368
|
/**
|
|
366
|
-
* @param {string}
|
|
367
|
-
* @param {
|
|
368
|
-
* @returns {Promise<
|
|
369
|
+
* @param {string} interface_uuid
|
|
370
|
+
* @param {Uint8Array} answer
|
|
371
|
+
* @returns {Promise<void>}
|
|
369
372
|
*/
|
|
370
|
-
|
|
371
|
-
const ptr0 = passStringToWasm0(
|
|
373
|
+
webrtc_interface_set_answer(interface_uuid, answer) {
|
|
374
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
372
375
|
const len0 = WASM_VECTOR_LEN;
|
|
373
|
-
const ptr1 =
|
|
376
|
+
const ptr1 = passArray8ToWasm0(answer, wasm.__wbindgen_malloc);
|
|
374
377
|
const len1 = WASM_VECTOR_LEN;
|
|
375
|
-
const ret = wasm.
|
|
378
|
+
const ret = wasm.jscomhub_webrtc_interface_set_answer(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
376
379
|
return ret;
|
|
377
380
|
}
|
|
378
381
|
/**
|
|
379
382
|
* @param {string} interface_uuid
|
|
380
|
-
* @returns {Promise<
|
|
383
|
+
* @returns {Promise<Uint8Array>}
|
|
381
384
|
*/
|
|
382
|
-
|
|
385
|
+
webrtc_interface_create_offer(interface_uuid) {
|
|
383
386
|
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
384
387
|
const len0 = WASM_VECTOR_LEN;
|
|
385
|
-
const ret = wasm.
|
|
388
|
+
const ret = wasm.jscomhub_webrtc_interface_create_offer(this.__wbg_ptr, ptr0, len0);
|
|
386
389
|
return ret;
|
|
387
390
|
}
|
|
388
391
|
/**
|
|
389
|
-
* @
|
|
392
|
+
* @param {string} interface_uuid
|
|
393
|
+
* @param {Uint8Array} offer
|
|
394
|
+
* @returns {Promise<Uint8Array>}
|
|
390
395
|
*/
|
|
391
|
-
|
|
392
|
-
const
|
|
396
|
+
webrtc_interface_create_answer(interface_uuid, offer) {
|
|
397
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
398
|
+
const len0 = WASM_VECTOR_LEN;
|
|
399
|
+
const ptr1 = passArray8ToWasm0(offer, wasm.__wbindgen_malloc);
|
|
400
|
+
const len1 = WASM_VECTOR_LEN;
|
|
401
|
+
const ret = wasm.jscomhub_webrtc_interface_create_answer(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
393
402
|
return ret;
|
|
394
403
|
}
|
|
395
404
|
/**
|
|
396
|
-
* Send a block to the given interface and socket
|
|
397
|
-
* This does not involve the routing on the ComHub level.
|
|
398
|
-
* The socket UUID is used to identify the socket to send the block over
|
|
399
|
-
* The interface UUID is used to identify the interface to send the block over
|
|
400
|
-
* @param {Uint8Array} block
|
|
401
405
|
* @param {string} interface_uuid
|
|
402
|
-
* @param {
|
|
403
|
-
* @returns {Promise<
|
|
406
|
+
* @param {Uint8Array} candidate
|
|
407
|
+
* @returns {Promise<void>}
|
|
404
408
|
*/
|
|
405
|
-
|
|
406
|
-
const ptr0 =
|
|
409
|
+
webrtc_interface_add_ice_candidate(interface_uuid, candidate) {
|
|
410
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
407
411
|
const len0 = WASM_VECTOR_LEN;
|
|
408
|
-
const ptr1 =
|
|
412
|
+
const ptr1 = passArray8ToWasm0(candidate, wasm.__wbindgen_malloc);
|
|
409
413
|
const len1 = WASM_VECTOR_LEN;
|
|
410
|
-
const
|
|
411
|
-
const len2 = WASM_VECTOR_LEN;
|
|
412
|
-
const ret = wasm.jscomhub_send_block(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
414
|
+
const ret = wasm.jscomhub_webrtc_interface_add_ice_candidate(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
413
415
|
return ret;
|
|
414
416
|
}
|
|
415
417
|
/**
|
|
416
|
-
* @
|
|
418
|
+
* @param {string} interface_uuid
|
|
419
|
+
* @returns {Promise<void>}
|
|
417
420
|
*/
|
|
418
|
-
|
|
419
|
-
const
|
|
420
|
-
|
|
421
|
-
wasm.
|
|
422
|
-
return
|
|
421
|
+
webrtc_interface_wait_for_connection(interface_uuid) {
|
|
422
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
423
|
+
const len0 = WASM_VECTOR_LEN;
|
|
424
|
+
const ret = wasm.jscomhub_webrtc_interface_wait_for_connection(this.__wbg_ptr, ptr0, len0);
|
|
425
|
+
return ret;
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* @param {string} interface_uuid
|
|
429
|
+
* @param {Function} on_ice_candidate
|
|
430
|
+
*/
|
|
431
|
+
webrtc_interface_set_on_ice_candidate(interface_uuid, on_ice_candidate) {
|
|
432
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
433
|
+
const len0 = WASM_VECTOR_LEN;
|
|
434
|
+
const ret = wasm.jscomhub_webrtc_interface_set_on_ice_candidate(this.__wbg_ptr, ptr0, len0, on_ice_candidate);
|
|
435
|
+
if (ret[1]) {
|
|
436
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
437
|
+
}
|
|
423
438
|
}
|
|
424
439
|
/**
|
|
425
440
|
* @param {string} uuid
|
|
426
|
-
* @param {
|
|
427
|
-
* @returns {string}
|
|
441
|
+
* @param {Function} func
|
|
428
442
|
*/
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
const ptr1 = passStringToWasm0(direction, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
436
|
-
const len1 = WASM_VECTOR_LEN;
|
|
437
|
-
const ret = wasm.jscomhub_base_interface_register_socket(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
438
|
-
var ptr3 = ret[0];
|
|
439
|
-
var len3 = ret[1];
|
|
440
|
-
if (ret[3]) {
|
|
441
|
-
ptr3 = 0;
|
|
442
|
-
len3 = 0;
|
|
443
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
444
|
-
}
|
|
445
|
-
deferred4_0 = ptr3;
|
|
446
|
-
deferred4_1 = len3;
|
|
447
|
-
return getStringFromWasm0(ptr3, len3);
|
|
448
|
-
}
|
|
449
|
-
finally {
|
|
450
|
-
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
443
|
+
base_interface_on_send(uuid, func) {
|
|
444
|
+
const ptr0 = passStringToWasm0(uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
445
|
+
const len0 = WASM_VECTOR_LEN;
|
|
446
|
+
const ret = wasm.jscomhub_base_interface_on_send(this.__wbg_ptr, ptr0, len0, func);
|
|
447
|
+
if (ret[1]) {
|
|
448
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
451
449
|
}
|
|
452
450
|
}
|
|
453
451
|
/**
|
|
@@ -483,14 +481,31 @@ export class JSComHub {
|
|
|
483
481
|
}
|
|
484
482
|
/**
|
|
485
483
|
* @param {string} uuid
|
|
486
|
-
* @param {
|
|
484
|
+
* @param {string} direction
|
|
485
|
+
* @returns {string}
|
|
487
486
|
*/
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
487
|
+
base_interface_register_socket(uuid, direction) {
|
|
488
|
+
let deferred4_0;
|
|
489
|
+
let deferred4_1;
|
|
490
|
+
try {
|
|
491
|
+
const ptr0 = passStringToWasm0(uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
492
|
+
const len0 = WASM_VECTOR_LEN;
|
|
493
|
+
const ptr1 = passStringToWasm0(direction, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
494
|
+
const len1 = WASM_VECTOR_LEN;
|
|
495
|
+
const ret = wasm.jscomhub_base_interface_register_socket(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
496
|
+
var ptr3 = ret[0];
|
|
497
|
+
var len3 = ret[1];
|
|
498
|
+
if (ret[3]) {
|
|
499
|
+
ptr3 = 0;
|
|
500
|
+
len3 = 0;
|
|
501
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
502
|
+
}
|
|
503
|
+
deferred4_0 = ptr3;
|
|
504
|
+
deferred4_1 = len3;
|
|
505
|
+
return getStringFromWasm0(ptr3, len3);
|
|
506
|
+
}
|
|
507
|
+
finally {
|
|
508
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
494
509
|
}
|
|
495
510
|
}
|
|
496
511
|
/**
|
|
@@ -536,57 +551,99 @@ export class JSComHub {
|
|
|
536
551
|
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
537
552
|
}
|
|
538
553
|
}
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
554
|
+
/**
|
|
555
|
+
* Send a block to the given interface and socket
|
|
556
|
+
* This does not involve the routing on the ComHub level.
|
|
557
|
+
* The socket UUID is used to identify the socket to send the block over
|
|
558
|
+
* The interface UUID is used to identify the interface to send the block over
|
|
559
|
+
* @param {Uint8Array} block
|
|
560
|
+
* @param {string} interface_uuid
|
|
561
|
+
* @param {string} socket_uuid
|
|
562
|
+
* @returns {Promise<boolean>}
|
|
563
|
+
*/
|
|
564
|
+
send_block(block, interface_uuid, socket_uuid) {
|
|
565
|
+
const ptr0 = passArray8ToWasm0(block, wasm.__wbindgen_malloc);
|
|
566
|
+
const len0 = WASM_VECTOR_LEN;
|
|
567
|
+
const ptr1 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
568
|
+
const len1 = WASM_VECTOR_LEN;
|
|
569
|
+
const ptr2 = passStringToWasm0(socket_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
570
|
+
const len2 = WASM_VECTOR_LEN;
|
|
571
|
+
const ret = wasm.jscomhub_send_block(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
572
|
+
return ret;
|
|
550
573
|
}
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
574
|
+
/**
|
|
575
|
+
* @param {string} interface_uuid
|
|
576
|
+
* @returns {Promise<any>}
|
|
577
|
+
*/
|
|
578
|
+
close_interface(interface_uuid) {
|
|
579
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
580
|
+
const len0 = WASM_VECTOR_LEN;
|
|
581
|
+
const ret = wasm.jscomhub_close_interface(this.__wbg_ptr, ptr0, len0);
|
|
582
|
+
return ret;
|
|
556
583
|
}
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
584
|
+
/**
|
|
585
|
+
* @param {string} interface_type
|
|
586
|
+
* @param {string} properties
|
|
587
|
+
* @returns {Promise<any>}
|
|
588
|
+
*/
|
|
589
|
+
create_interface(interface_type, properties) {
|
|
590
|
+
const ptr0 = passStringToWasm0(interface_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
591
|
+
const len0 = WASM_VECTOR_LEN;
|
|
592
|
+
const ptr1 = passStringToWasm0(properties, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
593
|
+
const len1 = WASM_VECTOR_LEN;
|
|
594
|
+
const ret = wasm.jscomhub_create_interface(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
595
|
+
return ret;
|
|
560
596
|
}
|
|
561
597
|
/**
|
|
562
|
-
* @param {
|
|
563
|
-
* @returns {
|
|
598
|
+
* @param {string} endpoint
|
|
599
|
+
* @returns {Promise<string | undefined>}
|
|
564
600
|
*/
|
|
565
|
-
|
|
566
|
-
const
|
|
567
|
-
|
|
601
|
+
get_trace_string(endpoint) {
|
|
602
|
+
const ptr0 = passStringToWasm0(endpoint, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
603
|
+
const len0 = WASM_VECTOR_LEN;
|
|
604
|
+
const ret = wasm.jscomhub_get_trace_string(this.__wbg_ptr, ptr0, len0);
|
|
605
|
+
return ret;
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* @returns {string}
|
|
609
|
+
*/
|
|
610
|
+
get_metadata_string() {
|
|
611
|
+
let deferred1_0;
|
|
612
|
+
let deferred1_1;
|
|
613
|
+
try {
|
|
614
|
+
const ret = wasm.jscomhub_get_metadata_string(this.__wbg_ptr);
|
|
615
|
+
deferred1_0 = ret[0];
|
|
616
|
+
deferred1_1 = ret[1];
|
|
617
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
618
|
+
}
|
|
619
|
+
finally {
|
|
620
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
621
|
+
}
|
|
568
622
|
}
|
|
569
623
|
/**
|
|
570
624
|
* @returns {Uint8Array[]}
|
|
571
625
|
*/
|
|
572
|
-
|
|
573
|
-
const ret = wasm.
|
|
626
|
+
_drain_incoming_blocks() {
|
|
627
|
+
const ret = wasm.jscomhub__drain_incoming_blocks(this.__wbg_ptr);
|
|
574
628
|
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
575
629
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
576
630
|
return v1;
|
|
577
631
|
}
|
|
632
|
+
register_default_interface_factories() {
|
|
633
|
+
wasm.jscomhub_register_default_interface_factories(this.__wbg_ptr);
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* @returns {Promise<void>}
|
|
637
|
+
*/
|
|
638
|
+
update() {
|
|
639
|
+
const ret = wasm.jscomhub_update(this.__wbg_ptr);
|
|
640
|
+
return ret;
|
|
641
|
+
}
|
|
578
642
|
}
|
|
579
643
|
const JSPointerFinalization = (typeof FinalizationRegistry === "undefined")
|
|
580
644
|
? { register: () => { }, unregister: () => { } }
|
|
581
645
|
: new FinalizationRegistry((ptr) => wasm.__wbg_jspointer_free(ptr >>> 0, 1));
|
|
582
646
|
export class JSPointer {
|
|
583
|
-
static __wrap(ptr) {
|
|
584
|
-
ptr = ptr >>> 0;
|
|
585
|
-
const obj = Object.create(JSPointer.prototype);
|
|
586
|
-
obj.__wbg_ptr = ptr;
|
|
587
|
-
JSPointerFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
588
|
-
return obj;
|
|
589
|
-
}
|
|
590
647
|
__destroy_into_raw() {
|
|
591
648
|
const ptr = this.__wbg_ptr;
|
|
592
649
|
this.__wbg_ptr = 0;
|
|
@@ -635,19 +692,39 @@ export class JSRuntime {
|
|
|
635
692
|
wasm.__wbg_set_jsruntime_com_hub(this.__wbg_ptr, ptr0);
|
|
636
693
|
}
|
|
637
694
|
/**
|
|
638
|
-
* @
|
|
695
|
+
* @param {string} script
|
|
696
|
+
* @param {any[] | null} [dif_values]
|
|
697
|
+
* @returns {any}
|
|
639
698
|
*/
|
|
640
|
-
|
|
641
|
-
const
|
|
642
|
-
|
|
699
|
+
execute_sync(script, dif_values) {
|
|
700
|
+
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
701
|
+
const len0 = WASM_VECTOR_LEN;
|
|
702
|
+
var ptr1 = isLikeNone(dif_values)
|
|
703
|
+
? 0
|
|
704
|
+
: passArrayJsValueToWasm0(dif_values, wasm.__wbindgen_malloc);
|
|
705
|
+
var len1 = WASM_VECTOR_LEN;
|
|
706
|
+
const ret = wasm.jsruntime_execute_sync(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
707
|
+
if (ret[2]) {
|
|
708
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
709
|
+
}
|
|
710
|
+
return takeFromExternrefTable0(ret[0]);
|
|
643
711
|
}
|
|
644
712
|
/**
|
|
645
|
-
* @param {
|
|
713
|
+
* @param {Uint8Array | null | undefined} body
|
|
714
|
+
* @param {string[]} receivers
|
|
715
|
+
* @returns {Uint8Array}
|
|
646
716
|
*/
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
717
|
+
_create_block(body, receivers) {
|
|
718
|
+
var ptr0 = isLikeNone(body)
|
|
719
|
+
? 0
|
|
720
|
+
: passArray8ToWasm0(body, wasm.__wbindgen_malloc);
|
|
721
|
+
var len0 = WASM_VECTOR_LEN;
|
|
722
|
+
const ptr1 = passArrayJsValueToWasm0(receivers, wasm.__wbindgen_malloc);
|
|
723
|
+
const len1 = WASM_VECTOR_LEN;
|
|
724
|
+
const ret = wasm.jsruntime__create_block(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
725
|
+
var v3 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
726
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
727
|
+
return v3;
|
|
651
728
|
}
|
|
652
729
|
/**
|
|
653
730
|
* @returns {Promise<Promise<any>>}
|
|
@@ -657,204 +734,290 @@ export class JSRuntime {
|
|
|
657
734
|
return ret;
|
|
658
735
|
}
|
|
659
736
|
/**
|
|
737
|
+
* @param {any} dif_value
|
|
738
|
+
* @param {any} decompile_options
|
|
660
739
|
* @returns {string}
|
|
661
740
|
*/
|
|
662
|
-
|
|
663
|
-
let
|
|
664
|
-
let
|
|
741
|
+
value_to_string(dif_value, decompile_options) {
|
|
742
|
+
let deferred2_0;
|
|
743
|
+
let deferred2_1;
|
|
665
744
|
try {
|
|
666
|
-
const ret = wasm.
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
745
|
+
const ret = wasm.jsruntime_value_to_string(this.__wbg_ptr, dif_value, decompile_options);
|
|
746
|
+
var ptr1 = ret[0];
|
|
747
|
+
var len1 = ret[1];
|
|
748
|
+
if (ret[3]) {
|
|
749
|
+
ptr1 = 0;
|
|
750
|
+
len1 = 0;
|
|
751
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
752
|
+
}
|
|
753
|
+
deferred2_0 = ptr1;
|
|
754
|
+
deferred2_1 = len1;
|
|
755
|
+
return getStringFromWasm0(ptr1, len1);
|
|
670
756
|
}
|
|
671
757
|
finally {
|
|
672
|
-
wasm.__wbindgen_free(
|
|
758
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
673
759
|
}
|
|
674
760
|
}
|
|
675
761
|
/**
|
|
762
|
+
* @param {string} script
|
|
763
|
+
* @param {any[] | null | undefined} dif_values
|
|
764
|
+
* @param {any} decompile_options
|
|
765
|
+
* @returns {Promise<string>}
|
|
766
|
+
*/
|
|
767
|
+
execute_with_string_result(script, dif_values, decompile_options) {
|
|
768
|
+
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
769
|
+
const len0 = WASM_VECTOR_LEN;
|
|
770
|
+
var ptr1 = isLikeNone(dif_values)
|
|
771
|
+
? 0
|
|
772
|
+
: passArrayJsValueToWasm0(dif_values, wasm.__wbindgen_malloc);
|
|
773
|
+
var len1 = WASM_VECTOR_LEN;
|
|
774
|
+
const ret = wasm.jsruntime_execute_with_string_result(this.__wbg_ptr, ptr0, len0, ptr1, len1, decompile_options);
|
|
775
|
+
return ret;
|
|
776
|
+
}
|
|
777
|
+
/**
|
|
778
|
+
* @param {string} script
|
|
779
|
+
* @param {any[] | null | undefined} dif_values
|
|
780
|
+
* @param {any} decompile_options
|
|
676
781
|
* @returns {string}
|
|
677
782
|
*/
|
|
678
|
-
|
|
679
|
-
let
|
|
680
|
-
let
|
|
783
|
+
execute_sync_with_string_result(script, dif_values, decompile_options) {
|
|
784
|
+
let deferred4_0;
|
|
785
|
+
let deferred4_1;
|
|
681
786
|
try {
|
|
682
|
-
const
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
787
|
+
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
788
|
+
const len0 = WASM_VECTOR_LEN;
|
|
789
|
+
var ptr1 = isLikeNone(dif_values)
|
|
790
|
+
? 0
|
|
791
|
+
: passArrayJsValueToWasm0(dif_values, wasm.__wbindgen_malloc);
|
|
792
|
+
var len1 = WASM_VECTOR_LEN;
|
|
793
|
+
const ret = wasm.jsruntime_execute_sync_with_string_result(this.__wbg_ptr, ptr0, len0, ptr1, len1, decompile_options);
|
|
794
|
+
var ptr3 = ret[0];
|
|
795
|
+
var len3 = ret[1];
|
|
796
|
+
if (ret[3]) {
|
|
797
|
+
ptr3 = 0;
|
|
798
|
+
len3 = 0;
|
|
799
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
800
|
+
}
|
|
801
|
+
deferred4_0 = ptr3;
|
|
802
|
+
deferred4_1 = len3;
|
|
803
|
+
return getStringFromWasm0(ptr3, len3);
|
|
686
804
|
}
|
|
687
805
|
finally {
|
|
688
|
-
wasm.__wbindgen_free(
|
|
806
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
689
807
|
}
|
|
690
808
|
}
|
|
691
809
|
/**
|
|
692
|
-
*
|
|
693
|
-
* @
|
|
694
|
-
* @returns {Uint8Array}
|
|
810
|
+
* Get a handle to the DIF interface of the runtime
|
|
811
|
+
* @returns {RuntimeDIFHandle}
|
|
695
812
|
*/
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
: passArray8ToWasm0(body, wasm.__wbindgen_malloc);
|
|
700
|
-
var len0 = WASM_VECTOR_LEN;
|
|
701
|
-
const ptr1 = passArrayJsValueToWasm0(receivers, wasm.__wbindgen_malloc);
|
|
702
|
-
const len1 = WASM_VECTOR_LEN;
|
|
703
|
-
const ret = wasm.jsruntime__create_block(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
704
|
-
var v3 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
705
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
706
|
-
return v3;
|
|
813
|
+
dif() {
|
|
814
|
+
const ret = wasm.jsruntime_dif(this.__wbg_ptr);
|
|
815
|
+
return RuntimeDIFHandle.__wrap(ret);
|
|
707
816
|
}
|
|
708
817
|
/**
|
|
709
818
|
* @returns {Promise<void>}
|
|
710
819
|
*/
|
|
711
|
-
|
|
712
|
-
const ret = wasm.
|
|
820
|
+
_stop() {
|
|
821
|
+
const ret = wasm.jsruntime__stop(this.__wbg_ptr);
|
|
713
822
|
return ret;
|
|
714
823
|
}
|
|
715
824
|
/**
|
|
716
825
|
* @returns {Promise<void>}
|
|
717
826
|
*/
|
|
718
|
-
|
|
719
|
-
const ret = wasm.
|
|
827
|
+
start() {
|
|
828
|
+
const ret = wasm.jsruntime_start(this.__wbg_ptr);
|
|
720
829
|
return ret;
|
|
721
830
|
}
|
|
722
831
|
/**
|
|
723
832
|
* @param {string} script
|
|
724
|
-
* @param {
|
|
725
|
-
* @returns {Promise<
|
|
833
|
+
* @param {any[] | null} [dif_values]
|
|
834
|
+
* @returns {Promise<any>}
|
|
726
835
|
*/
|
|
727
|
-
execute(script,
|
|
836
|
+
execute(script, dif_values) {
|
|
728
837
|
const ptr0 = passStringToWasm0(script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
729
838
|
const len0 = WASM_VECTOR_LEN;
|
|
730
|
-
|
|
839
|
+
var ptr1 = isLikeNone(dif_values)
|
|
840
|
+
? 0
|
|
841
|
+
: passArrayJsValueToWasm0(dif_values, wasm.__wbindgen_malloc);
|
|
842
|
+
var len1 = WASM_VECTOR_LEN;
|
|
843
|
+
const ret = wasm.jsruntime_execute(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
731
844
|
return ret;
|
|
732
845
|
}
|
|
733
846
|
/**
|
|
734
|
-
* @param {string} script
|
|
735
|
-
* @param {boolean} formatted
|
|
736
847
|
* @returns {string}
|
|
737
848
|
*/
|
|
738
|
-
|
|
739
|
-
let
|
|
740
|
-
let
|
|
849
|
+
get version() {
|
|
850
|
+
let deferred1_0;
|
|
851
|
+
let deferred1_1;
|
|
741
852
|
try {
|
|
742
|
-
const
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
deferred2_0 = ret[0];
|
|
746
|
-
deferred2_1 = ret[1];
|
|
853
|
+
const ret = wasm.jsruntime_version(this.__wbg_ptr);
|
|
854
|
+
deferred1_0 = ret[0];
|
|
855
|
+
deferred1_1 = ret[1];
|
|
747
856
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
748
857
|
}
|
|
749
858
|
finally {
|
|
750
|
-
wasm.__wbindgen_free(
|
|
859
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
/**
|
|
863
|
+
* @returns {string}
|
|
864
|
+
*/
|
|
865
|
+
get endpoint() {
|
|
866
|
+
let deferred1_0;
|
|
867
|
+
let deferred1_1;
|
|
868
|
+
try {
|
|
869
|
+
const ret = wasm.jsruntime_endpoint(this.__wbg_ptr);
|
|
870
|
+
deferred1_0 = ret[0];
|
|
871
|
+
deferred1_1 = ret[1];
|
|
872
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
873
|
+
}
|
|
874
|
+
finally {
|
|
875
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
751
876
|
}
|
|
752
877
|
}
|
|
753
|
-
}
|
|
754
|
-
const
|
|
755
|
-
? { register: () => { }, unregister: () => { } }
|
|
756
|
-
: new FinalizationRegistry((ptr) => wasm.
|
|
757
|
-
export class
|
|
878
|
+
}
|
|
879
|
+
const RuntimeDIFHandleFinalization = (typeof FinalizationRegistry === "undefined")
|
|
880
|
+
? { register: () => { }, unregister: () => { } }
|
|
881
|
+
: new FinalizationRegistry((ptr) => wasm.__wbg_runtimedifhandle_free(ptr >>> 0, 1));
|
|
882
|
+
export class RuntimeDIFHandle {
|
|
883
|
+
static __wrap(ptr) {
|
|
884
|
+
ptr = ptr >>> 0;
|
|
885
|
+
const obj = Object.create(RuntimeDIFHandle.prototype);
|
|
886
|
+
obj.__wbg_ptr = ptr;
|
|
887
|
+
RuntimeDIFHandleFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
888
|
+
return obj;
|
|
889
|
+
}
|
|
758
890
|
__destroy_into_raw() {
|
|
759
891
|
const ptr = this.__wbg_ptr;
|
|
760
892
|
this.__wbg_ptr = 0;
|
|
761
|
-
|
|
893
|
+
RuntimeDIFHandleFinalization.unregister(this);
|
|
762
894
|
return ptr;
|
|
763
895
|
}
|
|
764
896
|
free() {
|
|
765
897
|
const ptr = this.__destroy_into_raw();
|
|
766
|
-
wasm.
|
|
898
|
+
wasm.__wbg_runtimedifhandle_free(ptr, 0);
|
|
767
899
|
}
|
|
768
900
|
/**
|
|
769
|
-
* @param {
|
|
770
|
-
* @
|
|
901
|
+
* @param {any} value
|
|
902
|
+
* @param {any} allowed_type
|
|
903
|
+
* @param {number} mutability
|
|
904
|
+
* @returns {string}
|
|
771
905
|
*/
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
906
|
+
create_pointer(value, allowed_type, mutability) {
|
|
907
|
+
let deferred2_0;
|
|
908
|
+
let deferred2_1;
|
|
909
|
+
try {
|
|
910
|
+
const ret = wasm.runtimedifhandle_create_pointer(this.__wbg_ptr, value, allowed_type, mutability);
|
|
911
|
+
var ptr1 = ret[0];
|
|
912
|
+
var len1 = ret[1];
|
|
913
|
+
if (ret[3]) {
|
|
914
|
+
ptr1 = 0;
|
|
915
|
+
len1 = 0;
|
|
916
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
917
|
+
}
|
|
918
|
+
deferred2_0 = ptr1;
|
|
919
|
+
deferred2_1 = len1;
|
|
920
|
+
return getStringFromWasm0(ptr1, len1);
|
|
921
|
+
}
|
|
922
|
+
finally {
|
|
923
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
924
|
+
}
|
|
777
925
|
}
|
|
778
926
|
/**
|
|
779
|
-
* @param {
|
|
780
|
-
* @
|
|
927
|
+
* @param {number} transceiver_id
|
|
928
|
+
* @param {string} address
|
|
929
|
+
* @param {any} observe_options
|
|
930
|
+
* @param {Function} callback
|
|
931
|
+
* @returns {number}
|
|
781
932
|
*/
|
|
782
|
-
|
|
783
|
-
const ptr0 = passStringToWasm0(
|
|
933
|
+
observe_pointer(transceiver_id, address, observe_options, callback) {
|
|
934
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
784
935
|
const len0 = WASM_VECTOR_LEN;
|
|
785
|
-
const ret = wasm.
|
|
786
|
-
|
|
936
|
+
const ret = wasm.runtimedifhandle_observe_pointer(this.__wbg_ptr, transceiver_id, ptr0, len0, observe_options, callback);
|
|
937
|
+
if (ret[2]) {
|
|
938
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
939
|
+
}
|
|
940
|
+
return ret[0] >>> 0;
|
|
787
941
|
}
|
|
788
942
|
/**
|
|
789
|
-
* @param {string}
|
|
790
|
-
* @
|
|
943
|
+
* @param {string} address
|
|
944
|
+
* @param {number} observer_id
|
|
791
945
|
*/
|
|
792
|
-
|
|
793
|
-
const ptr0 = passStringToWasm0(
|
|
946
|
+
unobserve_pointer(address, observer_id) {
|
|
947
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
794
948
|
const len0 = WASM_VECTOR_LEN;
|
|
795
|
-
const ret = wasm.
|
|
796
|
-
|
|
949
|
+
const ret = wasm.runtimedifhandle_unobserve_pointer(this.__wbg_ptr, ptr0, len0, observer_id);
|
|
950
|
+
if (ret[1]) {
|
|
951
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
952
|
+
}
|
|
797
953
|
}
|
|
798
954
|
/**
|
|
799
|
-
*
|
|
800
|
-
*
|
|
801
|
-
*
|
|
955
|
+
* Resolve a pointer address, returning a Promise
|
|
956
|
+
* If the pointer is in memory, the promise resolves immediately
|
|
957
|
+
* If the pointer is not in memory, it will be loaded first
|
|
958
|
+
* @param {string} address
|
|
959
|
+
* @returns {any}
|
|
802
960
|
*/
|
|
803
|
-
|
|
804
|
-
const ptr0 = passStringToWasm0(
|
|
961
|
+
resolve_pointer_address(address) {
|
|
962
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
805
963
|
const len0 = WASM_VECTOR_LEN;
|
|
806
|
-
const
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
964
|
+
const ret = wasm.runtimedifhandle_resolve_pointer_address(this.__wbg_ptr, ptr0, len0);
|
|
965
|
+
if (ret[2]) {
|
|
966
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
967
|
+
}
|
|
968
|
+
return takeFromExternrefTable0(ret[0]);
|
|
810
969
|
}
|
|
811
970
|
/**
|
|
812
|
-
* @param {string}
|
|
813
|
-
* @param {
|
|
814
|
-
* @
|
|
971
|
+
* @param {string} address
|
|
972
|
+
* @param {number} observer_id
|
|
973
|
+
* @param {any} observe_options
|
|
815
974
|
*/
|
|
816
|
-
|
|
817
|
-
const ptr0 = passStringToWasm0(
|
|
975
|
+
update_observer_options(address, observer_id, observe_options) {
|
|
976
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
818
977
|
const len0 = WASM_VECTOR_LEN;
|
|
819
|
-
const
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
978
|
+
const ret = wasm.runtimedifhandle_update_observer_options(this.__wbg_ptr, ptr0, len0, observer_id, observe_options);
|
|
979
|
+
if (ret[1]) {
|
|
980
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
981
|
+
}
|
|
823
982
|
}
|
|
824
983
|
/**
|
|
825
|
-
*
|
|
826
|
-
* @param {
|
|
984
|
+
* Resolve a pointer address synchronously if it's in memory, otherwise return an error
|
|
985
|
+
* @param {string} address
|
|
986
|
+
* @returns {any}
|
|
827
987
|
*/
|
|
828
|
-
|
|
829
|
-
const ptr0 = passStringToWasm0(
|
|
988
|
+
resolve_pointer_address_sync(address) {
|
|
989
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
830
990
|
const len0 = WASM_VECTOR_LEN;
|
|
831
|
-
const ret = wasm.
|
|
832
|
-
if (ret[
|
|
833
|
-
throw takeFromExternrefTable0(ret[
|
|
991
|
+
const ret = wasm.runtimedifhandle_resolve_pointer_address_sync(this.__wbg_ptr, ptr0, len0);
|
|
992
|
+
if (ret[2]) {
|
|
993
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
834
994
|
}
|
|
995
|
+
return takeFromExternrefTable0(ret[0]);
|
|
835
996
|
}
|
|
836
997
|
/**
|
|
837
|
-
* @param {
|
|
838
|
-
* @param {
|
|
839
|
-
* @returns {
|
|
998
|
+
* @param {any} callee
|
|
999
|
+
* @param {any} value
|
|
1000
|
+
* @returns {any}
|
|
840
1001
|
*/
|
|
841
|
-
|
|
842
|
-
const
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
return ret;
|
|
1002
|
+
apply(callee, value) {
|
|
1003
|
+
const ret = wasm.runtimedifhandle_apply(this.__wbg_ptr, callee, value);
|
|
1004
|
+
if (ret[2]) {
|
|
1005
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1006
|
+
}
|
|
1007
|
+
return takeFromExternrefTable0(ret[0]);
|
|
848
1008
|
}
|
|
849
1009
|
/**
|
|
850
|
-
* @param {
|
|
851
|
-
* @
|
|
1010
|
+
* @param {number} transceiver_id
|
|
1011
|
+
* @param {string} address
|
|
1012
|
+
* @param {any} update
|
|
852
1013
|
*/
|
|
853
|
-
|
|
854
|
-
const ptr0 = passStringToWasm0(
|
|
1014
|
+
update(transceiver_id, address, update) {
|
|
1015
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
855
1016
|
const len0 = WASM_VECTOR_LEN;
|
|
856
|
-
const ret = wasm.
|
|
857
|
-
|
|
1017
|
+
const ret = wasm.runtimedifhandle_update(this.__wbg_ptr, transceiver_id, ptr0, len0, update);
|
|
1018
|
+
if (ret[1]) {
|
|
1019
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1020
|
+
}
|
|
858
1021
|
}
|
|
859
1022
|
}
|
|
860
1023
|
const WebSocketServerRegistryFinalization = (typeof FinalizationRegistry === "undefined")
|
|
@@ -882,44 +1045,55 @@ export class WebSocketServerRegistry {
|
|
|
882
1045
|
return ret;
|
|
883
1046
|
}
|
|
884
1047
|
}
|
|
885
|
-
export function
|
|
1048
|
+
export function __wbg_Error_90f14b053b2af32f(arg0, arg1) {
|
|
1049
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
1050
|
+
return ret;
|
|
1051
|
+
}
|
|
1052
|
+
export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
|
|
1053
|
+
const ret = String(arg1);
|
|
1054
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1055
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1056
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1057
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1058
|
+
}
|
|
1059
|
+
export function __wbg_addIceCandidate_d30d0ef80c221bbc(arg0, arg1) {
|
|
886
1060
|
const ret = arg0.addIceCandidate(arg1);
|
|
887
1061
|
return ret;
|
|
888
1062
|
}
|
|
889
|
-
export function
|
|
1063
|
+
export function __wbg_buffer_4306305a9644b7a1(arg0) {
|
|
890
1064
|
const ret = arg0.buffer;
|
|
891
1065
|
return ret;
|
|
892
1066
|
}
|
|
893
|
-
export function
|
|
894
|
-
return handleError(function (arg0, arg1) {
|
|
895
|
-
const ret = arg0.call(arg1);
|
|
896
|
-
return ret;
|
|
897
|
-
}, arguments);
|
|
898
|
-
}
|
|
899
|
-
export function __wbg_call_7cccdd69e0791ae2() {
|
|
1067
|
+
export function __wbg_call_52af042a326d9b3a() {
|
|
900
1068
|
return handleError(function (arg0, arg1, arg2) {
|
|
901
1069
|
const ret = arg0.call(arg1, arg2);
|
|
902
1070
|
return ret;
|
|
903
1071
|
}, arguments);
|
|
904
1072
|
}
|
|
905
|
-
export function
|
|
1073
|
+
export function __wbg_call_53657fec28b4db96() {
|
|
906
1074
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
907
1075
|
const ret = arg0.call(arg1, arg2, arg3);
|
|
908
1076
|
return ret;
|
|
909
1077
|
}, arguments);
|
|
910
1078
|
}
|
|
911
|
-
export function
|
|
912
|
-
|
|
913
|
-
|
|
1079
|
+
export function __wbg_call_90bf4b9978d51034() {
|
|
1080
|
+
return handleError(function (arg0, arg1) {
|
|
1081
|
+
const ret = arg0.call(arg1);
|
|
1082
|
+
return ret;
|
|
1083
|
+
}, arguments);
|
|
914
1084
|
}
|
|
915
|
-
export function
|
|
1085
|
+
export function __wbg_candidate_5fae2324e7403dfa(arg0, arg1) {
|
|
916
1086
|
const ret = arg1.candidate;
|
|
917
1087
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
918
1088
|
const len1 = WASM_VECTOR_LEN;
|
|
919
1089
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
920
1090
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
921
1091
|
}
|
|
922
|
-
export function
|
|
1092
|
+
export function __wbg_candidate_ead596886b0fedfc(arg0) {
|
|
1093
|
+
const ret = arg0.candidate;
|
|
1094
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1095
|
+
}
|
|
1096
|
+
export function __wbg_channel_61e457f78c31043a(arg0) {
|
|
923
1097
|
const ret = arg0.channel;
|
|
924
1098
|
return ret;
|
|
925
1099
|
}
|
|
@@ -927,57 +1101,68 @@ export function __wbg_clearTimeout_5a54f8841c30079a(arg0) {
|
|
|
927
1101
|
const ret = clearTimeout(arg0);
|
|
928
1102
|
return ret;
|
|
929
1103
|
}
|
|
930
|
-
export function
|
|
931
|
-
const ret = arg0.close();
|
|
932
|
-
return ret;
|
|
933
|
-
}
|
|
934
|
-
export function __wbg_close_2893b7d056a0627d() {
|
|
1104
|
+
export function __wbg_close_638f149c7d475fe2() {
|
|
935
1105
|
return handleError(function (arg0) {
|
|
936
1106
|
arg0.close();
|
|
937
1107
|
}, arguments);
|
|
938
1108
|
}
|
|
939
|
-
export function
|
|
1109
|
+
export function __wbg_close_8549dc01dfea7b11(arg0) {
|
|
940
1110
|
arg0.close();
|
|
941
1111
|
}
|
|
942
|
-
export function
|
|
1112
|
+
export function __wbg_close_d6a549256eca132f(arg0) {
|
|
1113
|
+
const ret = arg0.close();
|
|
1114
|
+
return ret;
|
|
1115
|
+
}
|
|
1116
|
+
export function __wbg_createAnswer_e3e0054dec77805c(arg0) {
|
|
943
1117
|
const ret = arg0.createAnswer();
|
|
944
1118
|
return ret;
|
|
945
1119
|
}
|
|
946
|
-
export function
|
|
1120
|
+
export function __wbg_createDataChannel_056c757d04227abd(arg0, arg1, arg2) {
|
|
947
1121
|
const ret = arg0.createDataChannel(getStringFromWasm0(arg1, arg2));
|
|
948
1122
|
return ret;
|
|
949
1123
|
}
|
|
950
|
-
export function
|
|
1124
|
+
export function __wbg_createOffer_b38b38d4bfddded6(arg0) {
|
|
951
1125
|
const ret = arg0.createOffer();
|
|
952
1126
|
return ret;
|
|
953
1127
|
}
|
|
954
|
-
export function
|
|
1128
|
+
export function __wbg_crypto_2c3cb8e5d6218ee2() {
|
|
955
1129
|
return handleError(function (arg0) {
|
|
956
1130
|
const ret = arg0.crypto;
|
|
957
1131
|
return ret;
|
|
958
1132
|
}, arguments);
|
|
959
1133
|
}
|
|
960
|
-
export function
|
|
1134
|
+
export function __wbg_data_f0e9cb0e6e0623e9(arg0) {
|
|
961
1135
|
const ret = arg0.data;
|
|
962
1136
|
return ret;
|
|
963
1137
|
}
|
|
964
|
-
export function
|
|
1138
|
+
export function __wbg_debug_821a62abfb5c8abe(arg0) {
|
|
965
1139
|
console.debug(arg0);
|
|
966
1140
|
}
|
|
967
|
-
export function
|
|
968
|
-
return handleError(function (arg0, arg1, arg2, arg3
|
|
969
|
-
const ret = arg0.decrypt(
|
|
1141
|
+
export function __wbg_decrypt_e716369376a7f617() {
|
|
1142
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1143
|
+
const ret = arg0.decrypt(arg1, arg2, arg3);
|
|
970
1144
|
return ret;
|
|
971
1145
|
}, arguments);
|
|
972
1146
|
}
|
|
973
|
-
export function
|
|
974
|
-
return handleError(function (arg0, arg1, arg2, arg3
|
|
975
|
-
const ret = arg0.
|
|
1147
|
+
export function __wbg_deriveBits_1a9edc6089a95027() {
|
|
1148
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1149
|
+
const ret = arg0.deriveBits(arg1, arg2, arg3 >>> 0);
|
|
976
1150
|
return ret;
|
|
977
1151
|
}, arguments);
|
|
978
1152
|
}
|
|
979
|
-
export function
|
|
980
|
-
|
|
1153
|
+
export function __wbg_done_73bb10bcf6e0c339(arg0) {
|
|
1154
|
+
const ret = arg0.done;
|
|
1155
|
+
return ret;
|
|
1156
|
+
}
|
|
1157
|
+
export function __wbg_encrypt_fb74c4ff01001025() {
|
|
1158
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1159
|
+
const ret = arg0.encrypt(arg1, arg2, arg3);
|
|
1160
|
+
return ret;
|
|
1161
|
+
}, arguments);
|
|
1162
|
+
}
|
|
1163
|
+
export function __wbg_entries_4f3de4ccde51d587(arg0) {
|
|
1164
|
+
const ret = Object.entries(arg0);
|
|
1165
|
+
return ret;
|
|
981
1166
|
}
|
|
982
1167
|
export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
983
1168
|
let deferred0_0;
|
|
@@ -991,45 +1176,52 @@ export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
|
991
1176
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
992
1177
|
}
|
|
993
1178
|
}
|
|
994
|
-
export function
|
|
1179
|
+
export function __wbg_error_cddcc4ca22b41392(arg0) {
|
|
1180
|
+
console.error(arg0);
|
|
1181
|
+
}
|
|
1182
|
+
export function __wbg_exportKey_f3817c0e47a2214a() {
|
|
995
1183
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
996
1184
|
const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
|
|
997
1185
|
return ret;
|
|
998
1186
|
}, arguments);
|
|
999
1187
|
}
|
|
1000
|
-
export function
|
|
1188
|
+
export function __wbg_generateKey_7268fe0931b0d15b() {
|
|
1001
1189
|
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1002
1190
|
const ret = arg0.generateKey(arg1, arg2 !== 0, arg3);
|
|
1003
1191
|
return ret;
|
|
1004
1192
|
}, arguments);
|
|
1005
1193
|
}
|
|
1006
|
-
export function
|
|
1194
|
+
export function __wbg_getRandomValues_3619f455599fc471() {
|
|
1007
1195
|
return handleError(function (arg0, arg1, arg2) {
|
|
1008
1196
|
const ret = arg0.getRandomValues(getArrayU8FromWasm0(arg1, arg2));
|
|
1009
1197
|
return ret;
|
|
1010
1198
|
}, arguments);
|
|
1011
1199
|
}
|
|
1012
|
-
export function
|
|
1200
|
+
export function __wbg_getReader_7a22d9552d37d984(arg0) {
|
|
1013
1201
|
const ret = arg0.getReader();
|
|
1014
1202
|
return ret;
|
|
1015
1203
|
}
|
|
1016
|
-
export function
|
|
1204
|
+
export function __wbg_getWriter_b5f5e1e223a62f8b() {
|
|
1017
1205
|
return handleError(function (arg0) {
|
|
1018
1206
|
const ret = arg0.getWriter();
|
|
1019
1207
|
return ret;
|
|
1020
1208
|
}, arguments);
|
|
1021
1209
|
}
|
|
1022
|
-
export function
|
|
1210
|
+
export function __wbg_get_6e64f6b3af0c61a2(arg0, arg1) {
|
|
1211
|
+
const ret = arg0[arg1 >>> 0];
|
|
1212
|
+
return ret;
|
|
1213
|
+
}
|
|
1214
|
+
export function __wbg_get_bb21663672334172() {
|
|
1023
1215
|
return handleError(function (arg0, arg1) {
|
|
1024
1216
|
const ret = Reflect.get(arg0, arg1);
|
|
1025
1217
|
return ret;
|
|
1026
1218
|
}, arguments);
|
|
1027
1219
|
}
|
|
1028
|
-
export function
|
|
1220
|
+
export function __wbg_getprivatekey_170ff431c1a416c4(arg0) {
|
|
1029
1221
|
const ret = arg0.privateKey;
|
|
1030
1222
|
return ret;
|
|
1031
1223
|
}
|
|
1032
|
-
export function
|
|
1224
|
+
export function __wbg_getpublickey_01166b94c1b6c58f(arg0) {
|
|
1033
1225
|
const ret = arg0.publicKey;
|
|
1034
1226
|
return ret;
|
|
1035
1227
|
}
|
|
@@ -1037,20 +1229,20 @@ export function __wbg_getwithrefkey_1dc361bd10053bfe(arg0, arg1) {
|
|
|
1037
1229
|
const ret = arg0[arg1];
|
|
1038
1230
|
return ret;
|
|
1039
1231
|
}
|
|
1040
|
-
export function
|
|
1232
|
+
export function __wbg_iceConnectionState_0f6070a8df4a7d2a(arg0) {
|
|
1041
1233
|
const ret = arg0.iceConnectionState;
|
|
1042
1234
|
return (__wbindgen_enum_RtcIceConnectionState.indexOf(ret) + 1 || 8) - 1;
|
|
1043
1235
|
}
|
|
1044
|
-
export function
|
|
1236
|
+
export function __wbg_importKey_74124887ebd6465e() {
|
|
1045
1237
|
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1046
1238
|
const ret = arg0.importKey(getStringFromWasm0(arg1, arg2), arg3, arg4, arg5 !== 0, arg6);
|
|
1047
1239
|
return ret;
|
|
1048
1240
|
}, arguments);
|
|
1049
1241
|
}
|
|
1050
|
-
export function
|
|
1242
|
+
export function __wbg_info_3a3a4139acdeb4df(arg0) {
|
|
1051
1243
|
console.info(arg0);
|
|
1052
1244
|
}
|
|
1053
|
-
export function
|
|
1245
|
+
export function __wbg_instanceof_ArrayBuffer_625e762023eb35cf(arg0) {
|
|
1054
1246
|
let result;
|
|
1055
1247
|
try {
|
|
1056
1248
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -1061,7 +1253,7 @@ export function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0) {
|
|
|
1061
1253
|
const ret = result;
|
|
1062
1254
|
return ret;
|
|
1063
1255
|
}
|
|
1064
|
-
export function
|
|
1256
|
+
export function __wbg_instanceof_CryptoKey_d94aaf75de500efb(arg0) {
|
|
1065
1257
|
let result;
|
|
1066
1258
|
try {
|
|
1067
1259
|
result = arg0 instanceof dntShim.CryptoKey;
|
|
@@ -1072,7 +1264,18 @@ export function __wbg_instanceof_CryptoKey_63353526509ba4a2(arg0) {
|
|
|
1072
1264
|
const ret = result;
|
|
1073
1265
|
return ret;
|
|
1074
1266
|
}
|
|
1075
|
-
export function
|
|
1267
|
+
export function __wbg_instanceof_Map_7d3de120a6cca988(arg0) {
|
|
1268
|
+
let result;
|
|
1269
|
+
try {
|
|
1270
|
+
result = arg0 instanceof Map;
|
|
1271
|
+
}
|
|
1272
|
+
catch (_) {
|
|
1273
|
+
result = false;
|
|
1274
|
+
}
|
|
1275
|
+
const ret = result;
|
|
1276
|
+
return ret;
|
|
1277
|
+
}
|
|
1278
|
+
export function __wbg_instanceof_Object_a18b8a09eff6c66c(arg0) {
|
|
1076
1279
|
let result;
|
|
1077
1280
|
try {
|
|
1078
1281
|
result = arg0 instanceof Object;
|
|
@@ -1083,7 +1286,7 @@ export function __wbg_instanceof_Object_7f2dcef8f78644a4(arg0) {
|
|
|
1083
1286
|
const ret = result;
|
|
1084
1287
|
return ret;
|
|
1085
1288
|
}
|
|
1086
|
-
export function
|
|
1289
|
+
export function __wbg_instanceof_ReadableStreamDefaultReader_7ec8ae6c604d9f3d(arg0) {
|
|
1087
1290
|
let result;
|
|
1088
1291
|
try {
|
|
1089
1292
|
result = arg0 instanceof ReadableStreamDefaultReader;
|
|
@@ -1094,7 +1297,7 @@ export function __wbg_instanceof_ReadableStreamDefaultReader_056dcea99b3557aa(ar
|
|
|
1094
1297
|
const ret = result;
|
|
1095
1298
|
return ret;
|
|
1096
1299
|
}
|
|
1097
|
-
export function
|
|
1300
|
+
export function __wbg_instanceof_Uint8Array_6935b7b95ef40080(arg0) {
|
|
1098
1301
|
let result;
|
|
1099
1302
|
try {
|
|
1100
1303
|
result = arg0 instanceof Uint8Array;
|
|
@@ -1105,7 +1308,7 @@ export function __wbg_instanceof_Uint8Array_17156bcf118086a9(arg0) {
|
|
|
1105
1308
|
const ret = result;
|
|
1106
1309
|
return ret;
|
|
1107
1310
|
}
|
|
1108
|
-
export function
|
|
1311
|
+
export function __wbg_instanceof_Window_c876e2ca9d808fb0(arg0) {
|
|
1109
1312
|
let result;
|
|
1110
1313
|
try {
|
|
1111
1314
|
result = arg0 instanceof Window;
|
|
@@ -1116,39 +1319,73 @@ export function __wbg_instanceof_Window_def73ea0955fc569(arg0) {
|
|
|
1116
1319
|
const ret = result;
|
|
1117
1320
|
return ret;
|
|
1118
1321
|
}
|
|
1119
|
-
export function
|
|
1322
|
+
export function __wbg_isArray_fe31d4a8d77ae781(arg0) {
|
|
1323
|
+
const ret = Array.isArray(arg0);
|
|
1324
|
+
return ret;
|
|
1325
|
+
}
|
|
1326
|
+
export function __wbg_isSafeInteger_342db8cae87edb4e(arg0) {
|
|
1327
|
+
const ret = Number.isSafeInteger(arg0);
|
|
1328
|
+
return ret;
|
|
1329
|
+
}
|
|
1330
|
+
export function __wbg_iterator_fe047a6b04943f88() {
|
|
1331
|
+
const ret = Symbol.iterator;
|
|
1332
|
+
return ret;
|
|
1333
|
+
}
|
|
1334
|
+
export function __wbg_label_9af8b6c0978cb673(arg0, arg1) {
|
|
1120
1335
|
const ret = arg1.label;
|
|
1121
1336
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1122
1337
|
const len1 = WASM_VECTOR_LEN;
|
|
1123
1338
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1124
1339
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1125
1340
|
}
|
|
1126
|
-
export function
|
|
1341
|
+
export function __wbg_length_09646ad20ebb8534(arg0) {
|
|
1342
|
+
const ret = arg0.length;
|
|
1343
|
+
return ret;
|
|
1344
|
+
}
|
|
1345
|
+
export function __wbg_length_537fa63a6103cbdb(arg0) {
|
|
1127
1346
|
const ret = arg0.length;
|
|
1128
1347
|
return ret;
|
|
1129
1348
|
}
|
|
1130
|
-
export function
|
|
1349
|
+
export function __wbg_log_8316aef0a82fc256(arg0) {
|
|
1131
1350
|
console.log(arg0);
|
|
1132
1351
|
}
|
|
1133
|
-
export function
|
|
1352
|
+
export function __wbg_message_b5e786b918031475(arg0, arg1) {
|
|
1134
1353
|
const ret = arg1.message;
|
|
1135
1354
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1136
1355
|
const len1 = WASM_VECTOR_LEN;
|
|
1137
1356
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1138
1357
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1139
1358
|
}
|
|
1140
|
-
export function
|
|
1359
|
+
export function __wbg_navigator_bfcd7da4e07140bf(arg0) {
|
|
1141
1360
|
const ret = arg0.navigator;
|
|
1142
1361
|
return ret;
|
|
1143
1362
|
}
|
|
1144
|
-
export function
|
|
1363
|
+
export function __wbg_new_1b925e0c0e1d30ba() {
|
|
1364
|
+
const ret = new Object();
|
|
1365
|
+
return ret;
|
|
1366
|
+
}
|
|
1367
|
+
export function __wbg_new_3c48ee6a683248da() {
|
|
1368
|
+
const ret = new Map();
|
|
1369
|
+
return ret;
|
|
1370
|
+
}
|
|
1371
|
+
export function __wbg_new_8a6f238a6ece86ea() {
|
|
1372
|
+
const ret = new Error();
|
|
1373
|
+
return ret;
|
|
1374
|
+
}
|
|
1375
|
+
export function __wbg_new_b25e3e4428c04a92() {
|
|
1376
|
+
return handleError(function (arg0, arg1) {
|
|
1377
|
+
const ret = new dntShim.WebSocket(getStringFromWasm0(arg0, arg1));
|
|
1378
|
+
return ret;
|
|
1379
|
+
}, arguments);
|
|
1380
|
+
}
|
|
1381
|
+
export function __wbg_new_b38cbb8a106768cf(arg0, arg1) {
|
|
1145
1382
|
try {
|
|
1146
1383
|
var state0 = { a: arg0, b: arg1 };
|
|
1147
1384
|
var cb0 = (arg0, arg1) => {
|
|
1148
1385
|
const a = state0.a;
|
|
1149
1386
|
state0.a = 0;
|
|
1150
1387
|
try {
|
|
1151
|
-
return
|
|
1388
|
+
return __wbg_adapter_325(a, state0.b, arg0, arg1);
|
|
1152
1389
|
}
|
|
1153
1390
|
finally {
|
|
1154
1391
|
state0.a = a;
|
|
@@ -1161,96 +1398,103 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
|
1161
1398
|
state0.a = state0.b = 0;
|
|
1162
1399
|
}
|
|
1163
1400
|
}
|
|
1164
|
-
export function
|
|
1165
|
-
const ret = new
|
|
1401
|
+
export function __wbg_new_d6b08dae7359cebb(arg0) {
|
|
1402
|
+
const ret = new Uint8Array(arg0);
|
|
1166
1403
|
return ret;
|
|
1167
1404
|
}
|
|
1168
|
-
export function
|
|
1405
|
+
export function __wbg_new_d8a154d0939e6bb4() {
|
|
1169
1406
|
const ret = new Array();
|
|
1170
1407
|
return ret;
|
|
1171
1408
|
}
|
|
1172
|
-
export function
|
|
1173
|
-
const ret = new
|
|
1409
|
+
export function __wbg_newfromslice_87a363f6accf981c(arg0, arg1) {
|
|
1410
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1174
1411
|
return ret;
|
|
1175
1412
|
}
|
|
1176
|
-
export function
|
|
1177
|
-
|
|
1178
|
-
|
|
1413
|
+
export function __wbg_newnoargs_863941679b1933bb(arg0, arg1) {
|
|
1414
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1415
|
+
return ret;
|
|
1416
|
+
}
|
|
1417
|
+
export function __wbg_newwithconfiguration_e31d60b169b07345() {
|
|
1418
|
+
return handleError(function (arg0) {
|
|
1419
|
+
const ret = new RTCPeerConnection(arg0);
|
|
1179
1420
|
return ret;
|
|
1180
1421
|
}, arguments);
|
|
1181
1422
|
}
|
|
1182
|
-
export function
|
|
1183
|
-
const ret = new Uint8Array(arg0);
|
|
1184
|
-
return ret;
|
|
1185
|
-
}
|
|
1186
|
-
export function __wbg_newnoargs_105ed471475aaf50(arg0, arg1) {
|
|
1187
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1423
|
+
export function __wbg_newwithlength_79dd8226b146df94(arg0) {
|
|
1424
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
1188
1425
|
return ret;
|
|
1189
1426
|
}
|
|
1190
|
-
export function
|
|
1191
|
-
const ret =
|
|
1427
|
+
export function __wbg_next_59846e169128a0ea(arg0) {
|
|
1428
|
+
const ret = arg0.next;
|
|
1192
1429
|
return ret;
|
|
1193
1430
|
}
|
|
1194
|
-
export function
|
|
1431
|
+
export function __wbg_next_c782e76a0400870a() {
|
|
1195
1432
|
return handleError(function (arg0) {
|
|
1196
|
-
const ret =
|
|
1433
|
+
const ret = arg0.next();
|
|
1197
1434
|
return ret;
|
|
1198
1435
|
}, arguments);
|
|
1199
1436
|
}
|
|
1200
|
-
export function
|
|
1201
|
-
const ret =
|
|
1437
|
+
export function __wbg_now_5180ef7a3cc4af32() {
|
|
1438
|
+
const ret = Date.now();
|
|
1202
1439
|
return ret;
|
|
1203
1440
|
}
|
|
1204
|
-
export function
|
|
1205
|
-
const ret =
|
|
1441
|
+
export function __wbg_of_2859a6983dba31e5(arg0, arg1) {
|
|
1442
|
+
const ret = Array.of(arg0, arg1);
|
|
1443
|
+
return ret;
|
|
1444
|
+
}
|
|
1445
|
+
export function __wbg_of_289f191f9197ad69(arg0) {
|
|
1446
|
+
const ret = Array.of(arg0);
|
|
1206
1447
|
return ret;
|
|
1207
1448
|
}
|
|
1208
|
-
export function
|
|
1449
|
+
export function __wbg_open_0efe15f86bc721e6(arg0, arg1) {
|
|
1209
1450
|
const ret = arg0.open(arg1);
|
|
1210
1451
|
return ret;
|
|
1211
1452
|
}
|
|
1212
|
-
export function
|
|
1453
|
+
export function __wbg_prototypesetcall_a81ac58a5b6e988c(arg0, arg1, arg2) {
|
|
1454
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1455
|
+
}
|
|
1456
|
+
export function __wbg_push_a625ffb414ba40f2(arg0, arg1) {
|
|
1213
1457
|
const ret = arg0.push(arg1);
|
|
1214
1458
|
return ret;
|
|
1215
1459
|
}
|
|
1216
|
-
export function
|
|
1460
|
+
export function __wbg_queueMicrotask_1d75ffff194a09bc(arg0) {
|
|
1217
1461
|
queueMicrotask(arg0);
|
|
1218
1462
|
}
|
|
1219
|
-
export function
|
|
1463
|
+
export function __wbg_queueMicrotask_b9a8d325fc1ebe35(arg0) {
|
|
1220
1464
|
const ret = arg0.queueMicrotask;
|
|
1221
1465
|
return ret;
|
|
1222
1466
|
}
|
|
1223
|
-
export function
|
|
1467
|
+
export function __wbg_randomUUID_85051d14db410091(arg0, arg1) {
|
|
1224
1468
|
const ret = arg1.randomUUID();
|
|
1225
1469
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1226
1470
|
const len1 = WASM_VECTOR_LEN;
|
|
1227
1471
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1228
1472
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1229
1473
|
}
|
|
1230
|
-
export function
|
|
1474
|
+
export function __wbg_read_14bb033442221e81(arg0) {
|
|
1231
1475
|
const ret = arg0.read();
|
|
1232
1476
|
return ret;
|
|
1233
1477
|
}
|
|
1234
|
-
export function
|
|
1478
|
+
export function __wbg_readable_7ec80c1586d658e5(arg0) {
|
|
1235
1479
|
const ret = arg0.readable;
|
|
1236
1480
|
return ret;
|
|
1237
1481
|
}
|
|
1238
|
-
export function
|
|
1482
|
+
export function __wbg_releaseLock_838e4a60f0d078e3(arg0) {
|
|
1239
1483
|
arg0.releaseLock();
|
|
1240
1484
|
}
|
|
1241
|
-
export function
|
|
1485
|
+
export function __wbg_requestPort_a6ccb8604c419278(arg0) {
|
|
1242
1486
|
const ret = arg0.requestPort();
|
|
1243
1487
|
return ret;
|
|
1244
1488
|
}
|
|
1245
|
-
export function
|
|
1489
|
+
export function __wbg_resolve_f9faa06f9350ac82(arg0) {
|
|
1246
1490
|
const ret = Promise.resolve(arg0);
|
|
1247
1491
|
return ret;
|
|
1248
1492
|
}
|
|
1249
|
-
export function
|
|
1493
|
+
export function __wbg_sdpMLineIndex_98e1c9feb78bd935(arg0) {
|
|
1250
1494
|
const ret = arg0.sdpMLineIndex;
|
|
1251
1495
|
return isLikeNone(ret) ? 0xFFFFFF : ret;
|
|
1252
1496
|
}
|
|
1253
|
-
export function
|
|
1497
|
+
export function __wbg_sdpMid_8f79fa4a713266f3(arg0, arg1) {
|
|
1254
1498
|
const ret = arg1.sdpMid;
|
|
1255
1499
|
var ptr1 = isLikeNone(ret)
|
|
1256
1500
|
? 0
|
|
@@ -1259,25 +1503,25 @@ export function __wbg_sdpMid_b49f63c44ec872ab(arg0, arg1) {
|
|
|
1259
1503
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1260
1504
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1261
1505
|
}
|
|
1262
|
-
export function
|
|
1506
|
+
export function __wbg_send_1bcf47fc78631aa0() {
|
|
1263
1507
|
return handleError(function (arg0, arg1, arg2) {
|
|
1264
1508
|
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
1265
1509
|
}, arguments);
|
|
1266
1510
|
}
|
|
1267
|
-
export function
|
|
1511
|
+
export function __wbg_send_44e731d4290d5a73() {
|
|
1268
1512
|
return handleError(function (arg0, arg1, arg2) {
|
|
1269
1513
|
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
1270
1514
|
}, arguments);
|
|
1271
1515
|
}
|
|
1272
|
-
export function
|
|
1516
|
+
export function __wbg_serial_40f96691ceac10c3(arg0) {
|
|
1273
1517
|
const ret = arg0.serial;
|
|
1274
1518
|
return ret;
|
|
1275
1519
|
}
|
|
1276
|
-
export function
|
|
1520
|
+
export function __wbg_setLocalDescription_e4d3e96a7ea79f26(arg0, arg1) {
|
|
1277
1521
|
const ret = arg0.setLocalDescription(arg1);
|
|
1278
1522
|
return ret;
|
|
1279
1523
|
}
|
|
1280
|
-
export function
|
|
1524
|
+
export function __wbg_setRemoteDescription_11eaf6e756e370af(arg0, arg1) {
|
|
1281
1525
|
const ret = arg0.setRemoteDescription(arg1);
|
|
1282
1526
|
return ret;
|
|
1283
1527
|
}
|
|
@@ -1287,82 +1531,101 @@ export function __wbg_setTimeout_db2dbaeefb6f39c7() {
|
|
|
1287
1531
|
return ret;
|
|
1288
1532
|
}, arguments);
|
|
1289
1533
|
}
|
|
1290
|
-
export function
|
|
1291
|
-
arg0
|
|
1534
|
+
export function __wbg_set_038a8a067d895c6a(arg0, arg1, arg2) {
|
|
1535
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1536
|
+
}
|
|
1537
|
+
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
1538
|
+
arg0[arg1] = arg2;
|
|
1539
|
+
}
|
|
1540
|
+
export function __wbg_set_a15b7b524330d4f1(arg0, arg1, arg2) {
|
|
1541
|
+
const ret = arg0.set(arg1, arg2);
|
|
1542
|
+
return ret;
|
|
1292
1543
|
}
|
|
1293
|
-
export function
|
|
1544
|
+
export function __wbg_set_d66063c1f1a1157e() {
|
|
1294
1545
|
return handleError(function (arg0, arg1, arg2) {
|
|
1295
1546
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1296
1547
|
return ret;
|
|
1297
1548
|
}, arguments);
|
|
1298
1549
|
}
|
|
1299
|
-
export function
|
|
1550
|
+
export function __wbg_set_f59709bcbf07327f(arg0, arg1, arg2) {
|
|
1551
|
+
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
1552
|
+
}
|
|
1553
|
+
export function __wbg_setbaudrate_c1408a20012d2fea(arg0, arg1) {
|
|
1300
1554
|
arg0.baudRate = arg1 >>> 0;
|
|
1301
1555
|
}
|
|
1302
|
-
export function
|
|
1556
|
+
export function __wbg_setbinaryType_6091041926b40e35(arg0, arg1) {
|
|
1303
1557
|
arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
1304
1558
|
}
|
|
1305
|
-
export function
|
|
1559
|
+
export function __wbg_setcandidate_1e50b3faa4cb6898(arg0, arg1, arg2) {
|
|
1306
1560
|
arg0.candidate = getStringFromWasm0(arg1, arg2);
|
|
1307
1561
|
}
|
|
1308
|
-
export function
|
|
1562
|
+
export function __wbg_setcounter_18676403b6ecb17b(arg0, arg1) {
|
|
1563
|
+
arg0.counter = arg1;
|
|
1564
|
+
}
|
|
1565
|
+
export function __wbg_setcredential_db5f85a45e99080f(arg0, arg1, arg2) {
|
|
1309
1566
|
arg0.credential = getStringFromWasm0(arg1, arg2);
|
|
1310
1567
|
}
|
|
1311
|
-
export function
|
|
1568
|
+
export function __wbg_seticeservers_5d7af60fbe042a35(arg0, arg1) {
|
|
1312
1569
|
arg0.iceServers = arg1;
|
|
1313
1570
|
}
|
|
1314
|
-
export function
|
|
1571
|
+
export function __wbg_setlength_7f0aa2baf6d66fca(arg0, arg1) {
|
|
1572
|
+
arg0.length = arg1;
|
|
1573
|
+
}
|
|
1574
|
+
export function __wbg_setname_4a9a427f573e71fa(arg0, arg1, arg2) {
|
|
1575
|
+
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
1576
|
+
}
|
|
1577
|
+
export function __wbg_setonclose_ed36c5c56fb23784(arg0, arg1) {
|
|
1315
1578
|
arg0.onclose = arg1;
|
|
1316
1579
|
}
|
|
1317
|
-
export function
|
|
1580
|
+
export function __wbg_setondatachannel_b81d44bff7b6b543(arg0, arg1) {
|
|
1318
1581
|
arg0.ondatachannel = arg1;
|
|
1319
1582
|
}
|
|
1320
|
-
export function
|
|
1583
|
+
export function __wbg_setonerror_9368e4812d62d001(arg0, arg1) {
|
|
1321
1584
|
arg0.onerror = arg1;
|
|
1322
1585
|
}
|
|
1323
|
-
export function
|
|
1586
|
+
export function __wbg_setonicecandidate_0c6b4a18b7bfc77c(arg0, arg1) {
|
|
1324
1587
|
arg0.onicecandidate = arg1;
|
|
1325
1588
|
}
|
|
1326
|
-
export function
|
|
1589
|
+
export function __wbg_setoniceconnectionstatechange_f9c5b45d1c0c51f0(arg0, arg1) {
|
|
1327
1590
|
arg0.oniceconnectionstatechange = arg1;
|
|
1328
1591
|
}
|
|
1329
|
-
export function
|
|
1592
|
+
export function __wbg_setonmessage_030be9b28b78c8a3(arg0, arg1) {
|
|
1330
1593
|
arg0.onmessage = arg1;
|
|
1331
1594
|
}
|
|
1332
|
-
export function
|
|
1595
|
+
export function __wbg_setonmessage_ffc0f16e27e94b4f(arg0, arg1) {
|
|
1333
1596
|
arg0.onmessage = arg1;
|
|
1334
1597
|
}
|
|
1335
|
-
export function
|
|
1598
|
+
export function __wbg_setonopen_76f948be177d1574(arg0, arg1) {
|
|
1336
1599
|
arg0.onopen = arg1;
|
|
1337
1600
|
}
|
|
1338
|
-
export function
|
|
1601
|
+
export function __wbg_setonopen_efe76fab4b23b530(arg0, arg1) {
|
|
1339
1602
|
arg0.onopen = arg1;
|
|
1340
1603
|
}
|
|
1341
|
-
export function
|
|
1604
|
+
export function __wbg_setsdp_fb3173e0c6e78c7b(arg0, arg1, arg2) {
|
|
1342
1605
|
arg0.sdp = getStringFromWasm0(arg1, arg2);
|
|
1343
1606
|
}
|
|
1344
|
-
export function
|
|
1607
|
+
export function __wbg_setsdpmid_3c07633e6eebbe04(arg0, arg1, arg2) {
|
|
1345
1608
|
arg0.sdpMid = arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2);
|
|
1346
1609
|
}
|
|
1347
|
-
export function
|
|
1610
|
+
export function __wbg_setsdpmlineindex_d42db9413e5bf9a0(arg0, arg1) {
|
|
1348
1611
|
arg0.sdpMLineIndex = arg1 === 0xFFFFFF ? undefined : arg1;
|
|
1349
1612
|
}
|
|
1350
|
-
export function
|
|
1613
|
+
export function __wbg_settype_d383fc16fe2fde7c(arg0, arg1) {
|
|
1351
1614
|
arg0.type = __wbindgen_enum_RtcSdpType[arg1];
|
|
1352
1615
|
}
|
|
1353
|
-
export function
|
|
1616
|
+
export function __wbg_seturls_93ea5b2e75cf2b4a(arg0, arg1) {
|
|
1354
1617
|
arg0.urls = arg1;
|
|
1355
1618
|
}
|
|
1356
|
-
export function
|
|
1619
|
+
export function __wbg_setusername_42163d74b1e71463(arg0, arg1, arg2) {
|
|
1357
1620
|
arg0.username = getStringFromWasm0(arg1, arg2);
|
|
1358
1621
|
}
|
|
1359
|
-
export function
|
|
1622
|
+
export function __wbg_sign_19ea6b84becfe8db() {
|
|
1360
1623
|
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1361
1624
|
const ret = arg0.sign(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
|
|
1362
1625
|
return ret;
|
|
1363
1626
|
}, arguments);
|
|
1364
1627
|
}
|
|
1365
|
-
export function
|
|
1628
|
+
export function __wbg_signalingState_6034a1804910b307(arg0) {
|
|
1366
1629
|
const ret = arg0.signalingState;
|
|
1367
1630
|
return (__wbindgen_enum_RtcSignalingState.indexOf(ret) + 1 || 7) - 1;
|
|
1368
1631
|
}
|
|
@@ -1373,57 +1636,65 @@ export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
|
|
|
1373
1636
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1374
1637
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1375
1638
|
}
|
|
1376
|
-
export function
|
|
1639
|
+
export function __wbg_static_accessor_GLOBAL_656a564fb01c5b63() {
|
|
1377
1640
|
const ret = typeof global === "undefined" ? null : global;
|
|
1378
1641
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1379
1642
|
}
|
|
1380
|
-
export function
|
|
1643
|
+
export function __wbg_static_accessor_GLOBAL_THIS_09a6cc4b9571ef65() {
|
|
1381
1644
|
const ret = typeof dntShim.dntGlobalThis === "undefined" ? null : dntShim.dntGlobalThis;
|
|
1382
1645
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1383
1646
|
}
|
|
1384
|
-
export function
|
|
1647
|
+
export function __wbg_static_accessor_SELF_36742aea97854d74() {
|
|
1385
1648
|
const ret = typeof self === "undefined" ? null : self;
|
|
1386
1649
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1387
1650
|
}
|
|
1388
|
-
export function
|
|
1651
|
+
export function __wbg_static_accessor_WINDOW_0ce0d90b0830e7e6() {
|
|
1389
1652
|
const ret = typeof dntShim.dntGlobalThis === "undefined" ? null : dntShim.dntGlobalThis;
|
|
1390
1653
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1391
1654
|
}
|
|
1392
|
-
export function
|
|
1655
|
+
export function __wbg_subtle_72c6c8c71350ad31(arg0) {
|
|
1393
1656
|
const ret = arg0.subtle;
|
|
1394
1657
|
return ret;
|
|
1395
1658
|
}
|
|
1396
|
-
export function
|
|
1659
|
+
export function __wbg_then_66350f316a20107b(arg0, arg1) {
|
|
1397
1660
|
const ret = arg0.then(arg1);
|
|
1398
1661
|
return ret;
|
|
1399
1662
|
}
|
|
1400
|
-
export function
|
|
1663
|
+
export function __wbg_then_a8d64a36c84944e9(arg0, arg1, arg2) {
|
|
1401
1664
|
const ret = arg0.then(arg1, arg2);
|
|
1402
1665
|
return ret;
|
|
1403
1666
|
}
|
|
1404
|
-
export function
|
|
1667
|
+
export function __wbg_unwrapKey_76382cc7df3f3261() {
|
|
1668
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) {
|
|
1669
|
+
const ret = arg0.unwrapKey(getStringFromWasm0(arg1, arg2), arg3, arg4, getStringFromWasm0(arg5, arg6), arg7, arg8 !== 0, arg9);
|
|
1670
|
+
return ret;
|
|
1671
|
+
}, arguments);
|
|
1672
|
+
}
|
|
1673
|
+
export function __wbg_value_4ae21701b6f5c482(arg0) {
|
|
1674
|
+
const ret = arg0.value;
|
|
1675
|
+
return ret;
|
|
1676
|
+
}
|
|
1677
|
+
export function __wbg_verify_7f5ab750759e4bbf() {
|
|
1405
1678
|
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1406
1679
|
const ret = arg0.verify(arg1, arg2, getArrayU8FromWasm0(arg3, arg4), getArrayU8FromWasm0(arg5, arg6));
|
|
1407
1680
|
return ret;
|
|
1408
1681
|
}, arguments);
|
|
1409
1682
|
}
|
|
1410
|
-
export function
|
|
1683
|
+
export function __wbg_warn_c3f81464a835231a(arg0) {
|
|
1411
1684
|
console.warn(arg0);
|
|
1412
1685
|
}
|
|
1413
|
-
export function
|
|
1414
|
-
const
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
const ret = arg0.write(arg1);
|
|
1419
|
-
return ret;
|
|
1686
|
+
export function __wbg_wbindgenbigintgetasi64_d3d568a64e846827(arg0, arg1) {
|
|
1687
|
+
const v = arg1;
|
|
1688
|
+
const ret = typeof v === "bigint" ? v : undefined;
|
|
1689
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1690
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1420
1691
|
}
|
|
1421
|
-
export function
|
|
1692
|
+
export function __wbg_wbindgenbooleanget_527bfac1bf7c06df(arg0) {
|
|
1422
1693
|
const v = arg0;
|
|
1423
|
-
const ret = typeof v === "boolean" ?
|
|
1424
|
-
return ret;
|
|
1694
|
+
const ret = typeof v === "boolean" ? v : undefined;
|
|
1695
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1425
1696
|
}
|
|
1426
|
-
export function
|
|
1697
|
+
export function __wbg_wbindgencbdrop_470850fcb28f4519(arg0) {
|
|
1427
1698
|
const obj = arg0.original;
|
|
1428
1699
|
if (obj.cnt-- == 1) {
|
|
1429
1700
|
obj.a = 0;
|
|
@@ -1432,86 +1703,57 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
1432
1703
|
const ret = false;
|
|
1433
1704
|
return ret;
|
|
1434
1705
|
}
|
|
1435
|
-
export function
|
|
1436
|
-
const ret = makeMutClosure(arg0, arg1, 1034, __wbg_adapter_49);
|
|
1437
|
-
return ret;
|
|
1438
|
-
}
|
|
1439
|
-
export function __wbindgen_closure_wrapper3666(arg0, arg1, arg2) {
|
|
1440
|
-
const ret = makeMutClosure(arg0, arg1, 1051, __wbg_adapter_52);
|
|
1441
|
-
return ret;
|
|
1442
|
-
}
|
|
1443
|
-
export function __wbindgen_closure_wrapper745(arg0, arg1, arg2) {
|
|
1444
|
-
const ret = makeMutClosure(arg0, arg1, 404, __wbg_adapter_40);
|
|
1445
|
-
return ret;
|
|
1446
|
-
}
|
|
1447
|
-
export function __wbindgen_closure_wrapper746(arg0, arg1, arg2) {
|
|
1448
|
-
const ret = makeMutClosure(arg0, arg1, 404, __wbg_adapter_40);
|
|
1449
|
-
return ret;
|
|
1450
|
-
}
|
|
1451
|
-
export function __wbindgen_closure_wrapper747(arg0, arg1, arg2) {
|
|
1452
|
-
const ret = makeMutClosure(arg0, arg1, 404, __wbg_adapter_40);
|
|
1453
|
-
return ret;
|
|
1454
|
-
}
|
|
1455
|
-
export function __wbindgen_closure_wrapper748(arg0, arg1, arg2) {
|
|
1456
|
-
const ret = makeMutClosure(arg0, arg1, 404, __wbg_adapter_40);
|
|
1457
|
-
return ret;
|
|
1458
|
-
}
|
|
1459
|
-
export function __wbindgen_debug_string(arg0, arg1) {
|
|
1706
|
+
export function __wbg_wbindgendebugstring_0c28a61befa1f3ce(arg0, arg1) {
|
|
1460
1707
|
const ret = debugString(arg1);
|
|
1461
1708
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1462
1709
|
const len1 = WASM_VECTOR_LEN;
|
|
1463
1710
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1464
1711
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1465
1712
|
}
|
|
1466
|
-
export function
|
|
1467
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1468
|
-
return ret;
|
|
1469
|
-
}
|
|
1470
|
-
export function __wbindgen_in(arg0, arg1) {
|
|
1713
|
+
export function __wbg_wbindgenin_ed944d66e9a43ef2(arg0, arg1) {
|
|
1471
1714
|
const ret = arg0 in arg1;
|
|
1472
1715
|
return ret;
|
|
1473
1716
|
}
|
|
1474
|
-
export function
|
|
1475
|
-
const
|
|
1476
|
-
|
|
1477
|
-
table.set(0, undefined);
|
|
1478
|
-
table.set(offset + 0, undefined);
|
|
1479
|
-
table.set(offset + 1, null);
|
|
1480
|
-
table.set(offset + 2, true);
|
|
1481
|
-
table.set(offset + 3, false);
|
|
1717
|
+
export function __wbg_wbindgenisbigint_1a3fbe7ad37b3968(arg0) {
|
|
1718
|
+
const ret = typeof arg0 === "bigint";
|
|
1719
|
+
return ret;
|
|
1482
1720
|
}
|
|
1483
|
-
export function
|
|
1721
|
+
export function __wbg_wbindgenisfunction_27a5c72d80bbdf07(arg0) {
|
|
1484
1722
|
const ret = typeof arg0 === "function";
|
|
1485
1723
|
return ret;
|
|
1486
1724
|
}
|
|
1487
|
-
export function
|
|
1725
|
+
export function __wbg_wbindgenisnull_060b7d23e7f07622(arg0) {
|
|
1726
|
+
const ret = arg0 === null;
|
|
1727
|
+
return ret;
|
|
1728
|
+
}
|
|
1729
|
+
export function __wbg_wbindgenisobject_bdb9aa7f2dd707ef(arg0) {
|
|
1488
1730
|
const val = arg0;
|
|
1489
1731
|
const ret = typeof val === "object" && val !== null;
|
|
1490
1732
|
return ret;
|
|
1491
1733
|
}
|
|
1492
|
-
export function
|
|
1734
|
+
export function __wbg_wbindgenisstring_55b63daa584dc807(arg0) {
|
|
1735
|
+
const ret = typeof arg0 === "string";
|
|
1736
|
+
return ret;
|
|
1737
|
+
}
|
|
1738
|
+
export function __wbg_wbindgenisundefined_2e902cd900cf5927(arg0) {
|
|
1493
1739
|
const ret = arg0 === undefined;
|
|
1494
1740
|
return ret;
|
|
1495
1741
|
}
|
|
1496
|
-
export function
|
|
1497
|
-
const ret = arg0
|
|
1742
|
+
export function __wbg_wbindgenjsvaleq_af67af1ed6574f4f(arg0, arg1) {
|
|
1743
|
+
const ret = arg0 === arg1;
|
|
1498
1744
|
return ret;
|
|
1499
1745
|
}
|
|
1500
|
-
export function
|
|
1501
|
-
const ret =
|
|
1746
|
+
export function __wbg_wbindgenjsvallooseeq_4f1ced8136023b79(arg0, arg1) {
|
|
1747
|
+
const ret = arg0 == arg1;
|
|
1502
1748
|
return ret;
|
|
1503
1749
|
}
|
|
1504
|
-
export function
|
|
1750
|
+
export function __wbg_wbindgennumberget_41a5988c9fc46eeb(arg0, arg1) {
|
|
1505
1751
|
const obj = arg1;
|
|
1506
1752
|
const ret = typeof obj === "number" ? obj : undefined;
|
|
1507
1753
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1508
1754
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1509
1755
|
}
|
|
1510
|
-
export function
|
|
1511
|
-
const ret = arg0;
|
|
1512
|
-
return ret;
|
|
1513
|
-
}
|
|
1514
|
-
export function __wbindgen_string_get(arg0, arg1) {
|
|
1756
|
+
export function __wbg_wbindgenstringget_c45e0c672ada3c64(arg0, arg1) {
|
|
1515
1757
|
const obj = arg1;
|
|
1516
1758
|
const ret = typeof obj === "string" ? obj : undefined;
|
|
1517
1759
|
var ptr1 = isLikeNone(ret)
|
|
@@ -1521,16 +1763,86 @@ export function __wbindgen_string_get(arg0, arg1) {
|
|
|
1521
1763
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1522
1764
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1523
1765
|
}
|
|
1524
|
-
export function
|
|
1766
|
+
export function __wbg_wbindgenthrow_681185b504fabc8e(arg0, arg1) {
|
|
1767
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1768
|
+
}
|
|
1769
|
+
export function __wbg_wrapKey_5f8a7476203809ce() {
|
|
1770
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1771
|
+
const ret = arg0.wrapKey(getStringFromWasm0(arg1, arg2), arg3, arg4, getStringFromWasm0(arg5, arg6));
|
|
1772
|
+
return ret;
|
|
1773
|
+
}, arguments);
|
|
1774
|
+
}
|
|
1775
|
+
export function __wbg_writable_9cc2382cd543b064(arg0) {
|
|
1776
|
+
const ret = arg0.writable;
|
|
1777
|
+
return ret;
|
|
1778
|
+
}
|
|
1779
|
+
export function __wbg_write_e7fe7265c2fa5ddb(arg0, arg1) {
|
|
1780
|
+
const ret = arg0.write(arg1);
|
|
1781
|
+
return ret;
|
|
1782
|
+
}
|
|
1783
|
+
export function __wbindgen_cast_11ae636d1356838f(arg0, arg1) {
|
|
1784
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 718, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 719, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1785
|
+
const ret = makeMutClosure(arg0, arg1, 718, __wbg_adapter_6);
|
|
1786
|
+
return ret;
|
|
1787
|
+
}
|
|
1788
|
+
export function __wbindgen_cast_134a0c967b50073f(arg0, arg1) {
|
|
1789
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1411, function: Function { arguments: [Externref], shim_idx: 1412, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1790
|
+
const ret = makeMutClosure(arg0, arg1, 1411, __wbg_adapter_13);
|
|
1791
|
+
return ret;
|
|
1792
|
+
}
|
|
1793
|
+
export function __wbindgen_cast_1ff25b74e2fbd09e(arg0, arg1) {
|
|
1794
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 718, function: Function { arguments: [NamedExternref("RTCPeerConnectionIceEvent")], shim_idx: 719, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1795
|
+
const ret = makeMutClosure(arg0, arg1, 718, __wbg_adapter_6);
|
|
1796
|
+
return ret;
|
|
1797
|
+
}
|
|
1798
|
+
export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
|
|
1799
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1525
1800
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1526
1801
|
return ret;
|
|
1527
1802
|
}
|
|
1528
|
-
export function
|
|
1529
|
-
|
|
1803
|
+
export function __wbindgen_cast_4625c577ab2ec9ee(arg0) {
|
|
1804
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
1805
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1806
|
+
return ret;
|
|
1530
1807
|
}
|
|
1531
|
-
export function
|
|
1808
|
+
export function __wbindgen_cast_77bc3e92745e9a35(arg0, arg1) {
|
|
1532
1809
|
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
1533
1810
|
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
1811
|
+
// Cast intrinsic for `Vector(U8) -> Externref`.
|
|
1534
1812
|
const ret = v0;
|
|
1535
1813
|
return ret;
|
|
1536
1814
|
}
|
|
1815
|
+
export function __wbindgen_cast_95a4a0c87925efbc(arg0, arg1) {
|
|
1816
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 718, function: Function { arguments: [NamedExternref("RTCDataChannelEvent")], shim_idx: 719, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1817
|
+
const ret = makeMutClosure(arg0, arg1, 718, __wbg_adapter_6);
|
|
1818
|
+
return ret;
|
|
1819
|
+
}
|
|
1820
|
+
export function __wbindgen_cast_9ae0607507abb057(arg0) {
|
|
1821
|
+
// Cast intrinsic for `I64 -> Externref`.
|
|
1822
|
+
const ret = arg0;
|
|
1823
|
+
return ret;
|
|
1824
|
+
}
|
|
1825
|
+
export function __wbindgen_cast_a29edb90b685f3c8(arg0, arg1) {
|
|
1826
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 718, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 719, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1827
|
+
const ret = makeMutClosure(arg0, arg1, 718, __wbg_adapter_6);
|
|
1828
|
+
return ret;
|
|
1829
|
+
}
|
|
1830
|
+
export function __wbindgen_cast_a3a63b04e48bbf09(arg0, arg1) {
|
|
1831
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1421, function: Function { arguments: [], shim_idx: 1422, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1832
|
+
const ret = makeMutClosure(arg0, arg1, 1421, __wbg_adapter_22);
|
|
1833
|
+
return ret;
|
|
1834
|
+
}
|
|
1835
|
+
export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
|
|
1836
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
1837
|
+
const ret = arg0;
|
|
1838
|
+
return ret;
|
|
1839
|
+
}
|
|
1840
|
+
export function __wbindgen_init_externref_table() {
|
|
1841
|
+
const table = wasm.__wbindgen_export_4;
|
|
1842
|
+
const offset = table.grow(4);
|
|
1843
|
+
table.set(0, undefined);
|
|
1844
|
+
table.set(offset + 0, undefined);
|
|
1845
|
+
table.set(offset + 1, null);
|
|
1846
|
+
table.set(offset + 2, true);
|
|
1847
|
+
table.set(offset + 3, false);
|
|
1848
|
+
}
|