@unyt/datex 0.0.1 → 0.0.3
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 +5 -1
- package/esm/_dnt.polyfills.d.ts +101 -0
- package/esm/_dnt.polyfills.d.ts.map +1 -0
- package/esm/_dnt.polyfills.js +127 -0
- package/esm/_dnt.shims.d.ts +1 -1
- package/esm/_dnt.test_polyfills.d.ts.map +1 -0
- package/esm/deno.json +29 -5
- package/esm/deps/jsr.io/@std/assert/1.0.13/almost_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/array_includes.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/assert.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/assertion_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/exists.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/fail.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/false.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/greater.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/greater_or_equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/instance_of.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/is_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/less.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/less_or_equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/not_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/not_instance_of.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/not_match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/not_strict_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/object_match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/rejects.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/strict_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/string_includes.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/throws.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/unimplemented.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.13/unreachable.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/crypto/1.0.5/_wasm/lib/deno_std_wasm_crypto.d.ts +2 -0
- package/esm/deps/jsr.io/@std/crypto/1.0.5/_wasm/lib/deno_std_wasm_crypto.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/crypto/1.0.5/_wasm/lib/deno_std_wasm_crypto.internal.d.ts +69 -0
- package/esm/deps/jsr.io/@std/crypto/1.0.5/_wasm/lib/deno_std_wasm_crypto.internal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/crypto/1.0.5/_wasm/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/crypto/1.0.5/crypto.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/{1.0.5 → 1.0.9}/build_message.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.5 → 1.0.9}/diff.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.5 → 1.0.9}/diff_str.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.5 → 1.0.9}/format.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.5 → 1.0.9}/styles.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.5 → 1.0.9}/types.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/uuid/1.0.9/_common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/uuid/1.0.9/common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/uuid/1.0.9/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/uuid/1.0.9/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/uuid/1.0.9/v1.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/uuid/1.0.9/v3.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/uuid/1.0.9/v4.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/uuid/1.0.9/v5.d.ts.map +1 -0
- package/esm/rs-lib/datex-core/Cargo.toml +149 -14
- package/esm/src/datex-core/datex_core_js.d.ts +2 -0
- package/esm/src/datex-core/datex_core_js.d.ts.map +1 -0
- package/esm/src/datex-core/datex_core_js.internal.d.ts +469 -0
- package/esm/src/datex-core/datex_core_js.internal.d.ts.map +1 -0
- package/esm/src/datex-core/datex_core_js.internal.js +1661 -0
- package/esm/src/datex-core/datex_core_js.js +15 -0
- package/esm/src/datex-core/datex_core_js.wasm +0 -0
- package/esm/src/datex-core.d.ts +1 -1
- package/esm/src/datex-core.d.ts.map +1 -1
- package/esm/src/datex-core.js +2 -3
- package/esm/src/mod.d.ts +1 -0
- package/esm/src/mod.d.ts.map +1 -1
- package/esm/src/mod.js +2 -1
- package/esm/src/runtime/runtime.d.ts +11 -2
- package/esm/src/runtime/runtime.d.ts.map +1 -1
- package/esm/src/runtime/runtime.js +35 -25
- package/esm/test/compiler/execute.test.d.ts.map +1 -0
- package/esm/test/crypto.test.d.ts.map +1 -0
- package/esm/test/init.test.d.ts.map +1 -1
- package/esm/test/is-node.d.ts.map +1 -0
- package/esm/test/network/BaseInterface.test.d.ts.map +1 -0
- package/esm/test/network/ComHub.test.d.ts.map +1 -0
- package/esm/test/network/WebsocketClientInterface.test.d.ts.map +1 -0
- package/esm/test/network/WebsocketMockupServer.d.ts.map +1 -0
- package/esm/test/network/WebsocketServerInterface.test.d.ts.map +1 -0
- package/esm/test/utils.d.ts.map +1 -0
- package/package.json +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/almost_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/array_includes.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/assert.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/exists.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/fail.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/false.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/greater.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/greater_or_equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/less.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/less_or_equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/mod.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/rejects.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/string_includes.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/throws.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/unimplemented.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/unreachable.d.ts.map +0 -1
- package/esm/src/datex-core/datex_core_js.generated.d.ts +0 -78
- package/esm/src/datex-core/datex_core_js.generated.d.ts.map +0 -1
- package/esm/src/datex-core/datex_core_js.generated.js +0 -611
- package/esm/src/datex-core/datex_core_js_bg.wasm +0 -0
- package/esm/src/utils/js-runtime-compat/js-runtime-interface.d.ts +0 -7
- package/esm/src/utils/js-runtime-compat/js-runtime-interface.d.ts.map +0 -1
- package/esm/src/utils/js-runtime-compat/js-runtime-interface.js +0 -1
- package/esm/src/utils/js-runtime-compat/runtime.d.ts +0 -3
- package/esm/src/utils/js-runtime-compat/runtime.d.ts.map +0 -1
- package/esm/src/utils/js-runtime-compat/runtime.js +0 -34
- package/esm/src/utils/js-runtime-compat/runtimes/browser.d.ts +0 -7
- package/esm/src/utils/js-runtime-compat/runtimes/browser.d.ts.map +0 -1
- package/esm/src/utils/js-runtime-compat/runtimes/browser.js +0 -20
- package/esm/src/utils/js-runtime-compat/runtimes/deno.d.ts +0 -7
- package/esm/src/utils/js-runtime-compat/runtimes/deno.d.ts.map +0 -1
- package/esm/src/utils/js-runtime-compat/runtimes/deno.js +0 -17
|
@@ -0,0 +1,1661 @@
|
|
|
1
|
+
// @generated file from wasmbuild -- do not edit
|
|
2
|
+
import * as dntShim from "../../_dnt.shims.js";
|
|
3
|
+
// @ts-nocheck: generated
|
|
4
|
+
// deno-lint-ignore-file
|
|
5
|
+
// deno-fmt-ignore-file
|
|
6
|
+
let wasm;
|
|
7
|
+
export function __wbg_set_wasm(val) {
|
|
8
|
+
wasm = val;
|
|
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
|
+
let cachedUint8ArrayMemory0 = null;
|
|
29
|
+
function getUint8ArrayMemory0() {
|
|
30
|
+
if (cachedUint8ArrayMemory0 === null ||
|
|
31
|
+
cachedUint8ArrayMemory0.byteLength === 0) {
|
|
32
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
33
|
+
}
|
|
34
|
+
return cachedUint8ArrayMemory0;
|
|
35
|
+
}
|
|
36
|
+
const lTextEncoder = typeof TextEncoder === "undefined"
|
|
37
|
+
? (0, module.require)("util").TextEncoder
|
|
38
|
+
: TextEncoder;
|
|
39
|
+
let cachedTextEncoder = new lTextEncoder("utf-8");
|
|
40
|
+
const encodeString = typeof cachedTextEncoder.encodeInto === "function"
|
|
41
|
+
? function (arg, view) {
|
|
42
|
+
return cachedTextEncoder.encodeInto(arg, view);
|
|
43
|
+
}
|
|
44
|
+
: function (arg, view) {
|
|
45
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
46
|
+
view.set(buf);
|
|
47
|
+
return {
|
|
48
|
+
read: arg.length,
|
|
49
|
+
written: buf.length,
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
53
|
+
if (realloc === undefined) {
|
|
54
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
55
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
56
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
57
|
+
WASM_VECTOR_LEN = buf.length;
|
|
58
|
+
return ptr;
|
|
59
|
+
}
|
|
60
|
+
let len = arg.length;
|
|
61
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
62
|
+
const mem = getUint8ArrayMemory0();
|
|
63
|
+
let offset = 0;
|
|
64
|
+
for (; offset < len; offset++) {
|
|
65
|
+
const code = arg.charCodeAt(offset);
|
|
66
|
+
if (code > 0x7F)
|
|
67
|
+
break;
|
|
68
|
+
mem[ptr + offset] = code;
|
|
69
|
+
}
|
|
70
|
+
if (offset !== len) {
|
|
71
|
+
if (offset !== 0) {
|
|
72
|
+
arg = arg.slice(offset);
|
|
73
|
+
}
|
|
74
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
75
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
76
|
+
const ret = encodeString(arg, view);
|
|
77
|
+
offset += ret.written;
|
|
78
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
79
|
+
}
|
|
80
|
+
WASM_VECTOR_LEN = offset;
|
|
81
|
+
return ptr;
|
|
82
|
+
}
|
|
83
|
+
let cachedDataViewMemory0 = null;
|
|
84
|
+
function getDataViewMemory0() {
|
|
85
|
+
if (cachedDataViewMemory0 === null ||
|
|
86
|
+
cachedDataViewMemory0.buffer.detached === true ||
|
|
87
|
+
(cachedDataViewMemory0.buffer.detached === undefined &&
|
|
88
|
+
cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
89
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
90
|
+
}
|
|
91
|
+
return cachedDataViewMemory0;
|
|
92
|
+
}
|
|
93
|
+
const lTextDecoder = typeof TextDecoder === "undefined"
|
|
94
|
+
? (0, module.require)("util").TextDecoder
|
|
95
|
+
: TextDecoder;
|
|
96
|
+
let cachedTextDecoder = new lTextDecoder("utf-8", {
|
|
97
|
+
ignoreBOM: true,
|
|
98
|
+
fatal: true,
|
|
99
|
+
});
|
|
100
|
+
cachedTextDecoder.decode();
|
|
101
|
+
function getStringFromWasm0(ptr, len) {
|
|
102
|
+
ptr = ptr >>> 0;
|
|
103
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
104
|
+
}
|
|
105
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
106
|
+
ptr = ptr >>> 0;
|
|
107
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
108
|
+
}
|
|
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
|
+
function debugString(val) {
|
|
141
|
+
// primitive types
|
|
142
|
+
const type = typeof val;
|
|
143
|
+
if (type == "number" || type == "boolean" || val == null) {
|
|
144
|
+
return `${val}`;
|
|
145
|
+
}
|
|
146
|
+
if (type == "string") {
|
|
147
|
+
return `"${val}"`;
|
|
148
|
+
}
|
|
149
|
+
if (type == "symbol") {
|
|
150
|
+
const description = val.description;
|
|
151
|
+
if (description == null) {
|
|
152
|
+
return "Symbol";
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
return `Symbol(${description})`;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
if (type == "function") {
|
|
159
|
+
const name = val.name;
|
|
160
|
+
if (typeof name == "string" && name.length > 0) {
|
|
161
|
+
return `Function(${name})`;
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
return "Function";
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
// objects
|
|
168
|
+
if (Array.isArray(val)) {
|
|
169
|
+
const length = val.length;
|
|
170
|
+
let debug = "[";
|
|
171
|
+
if (length > 0) {
|
|
172
|
+
debug += debugString(val[0]);
|
|
173
|
+
}
|
|
174
|
+
for (let i = 1; i < length; i++) {
|
|
175
|
+
debug += ", " + debugString(val[i]);
|
|
176
|
+
}
|
|
177
|
+
debug += "]";
|
|
178
|
+
return debug;
|
|
179
|
+
}
|
|
180
|
+
// Test for built-in
|
|
181
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
182
|
+
let className;
|
|
183
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
184
|
+
className = builtInMatches[1];
|
|
185
|
+
}
|
|
186
|
+
else {
|
|
187
|
+
// Failed to match the standard '[object ClassName]'
|
|
188
|
+
return toString.call(val);
|
|
189
|
+
}
|
|
190
|
+
if (className == "Object") {
|
|
191
|
+
// we're a user defined class or Object
|
|
192
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
193
|
+
// easier than looping through ownProperties of `val`.
|
|
194
|
+
try {
|
|
195
|
+
return "Object(" + JSON.stringify(val) + ")";
|
|
196
|
+
}
|
|
197
|
+
catch (_) {
|
|
198
|
+
return "Object";
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
// errors
|
|
202
|
+
if (val instanceof Error) {
|
|
203
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
204
|
+
}
|
|
205
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
206
|
+
return className;
|
|
207
|
+
}
|
|
208
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
209
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
210
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
211
|
+
WASM_VECTOR_LEN = arg.length;
|
|
212
|
+
return ptr;
|
|
213
|
+
}
|
|
214
|
+
function takeFromExternrefTable0(idx) {
|
|
215
|
+
const value = wasm.__wbindgen_export_2.get(idx);
|
|
216
|
+
wasm.__externref_table_dealloc(idx);
|
|
217
|
+
return value;
|
|
218
|
+
}
|
|
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 passArrayJsValueToWasm0(array, malloc) {
|
|
230
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
231
|
+
for (let i = 0; i < array.length; i++) {
|
|
232
|
+
const add = addToExternrefTable0(array[i]);
|
|
233
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
234
|
+
}
|
|
235
|
+
WASM_VECTOR_LEN = array.length;
|
|
236
|
+
return ptr;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* @param {string} endpoint
|
|
240
|
+
* @param {any} debug_flags
|
|
241
|
+
* @returns {JSRuntime}
|
|
242
|
+
*/
|
|
243
|
+
export function init_runtime(endpoint, debug_flags) {
|
|
244
|
+
const ptr0 = passStringToWasm0(endpoint, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
245
|
+
const len0 = WASM_VECTOR_LEN;
|
|
246
|
+
const ret = wasm.init_runtime(ptr0, len0, debug_flags);
|
|
247
|
+
return JSRuntime.__wrap(ret);
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* @param {string} datex_script
|
|
251
|
+
*/
|
|
252
|
+
export function compile(datex_script) {
|
|
253
|
+
const ptr0 = passStringToWasm0(datex_script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
254
|
+
const len0 = WASM_VECTOR_LEN;
|
|
255
|
+
wasm.compile(ptr0, len0);
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Executes a Datex script and returns the result as a string.
|
|
259
|
+
* @param {string} datex_script
|
|
260
|
+
* @param {boolean} formatted
|
|
261
|
+
* @returns {string}
|
|
262
|
+
*/
|
|
263
|
+
export function execute(datex_script, formatted) {
|
|
264
|
+
let deferred2_0;
|
|
265
|
+
let deferred2_1;
|
|
266
|
+
try {
|
|
267
|
+
const ptr0 = passStringToWasm0(datex_script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
268
|
+
const len0 = WASM_VECTOR_LEN;
|
|
269
|
+
const ret = wasm.execute(ptr0, len0, formatted);
|
|
270
|
+
deferred2_0 = ret[0];
|
|
271
|
+
deferred2_1 = ret[1];
|
|
272
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
273
|
+
}
|
|
274
|
+
finally {
|
|
275
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Executes a Datex script and returns true when execution was successful.
|
|
280
|
+
* Does not return the result of the script, but only indicates success or failure.
|
|
281
|
+
* @param {string} datex_script
|
|
282
|
+
* @returns {boolean}
|
|
283
|
+
*/
|
|
284
|
+
export function execute_internal(datex_script) {
|
|
285
|
+
const ptr0 = passStringToWasm0(datex_script, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
286
|
+
const len0 = WASM_VECTOR_LEN;
|
|
287
|
+
const ret = wasm.execute_internal(ptr0, len0);
|
|
288
|
+
return ret !== 0;
|
|
289
|
+
}
|
|
290
|
+
function _assertClass(instance, klass) {
|
|
291
|
+
if (!(instance instanceof klass)) {
|
|
292
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
function __wbg_adapter_52(arg0, arg1, arg2) {
|
|
296
|
+
wasm.closure490_externref_shim(arg0, arg1, arg2);
|
|
297
|
+
}
|
|
298
|
+
function __wbg_adapter_57(arg0, arg1) {
|
|
299
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hab851cbeb73a172f(arg0, arg1);
|
|
300
|
+
}
|
|
301
|
+
function __wbg_adapter_60(arg0, arg1, arg2) {
|
|
302
|
+
wasm.closure887_externref_shim(arg0, arg1, arg2);
|
|
303
|
+
}
|
|
304
|
+
function __wbg_adapter_63(arg0, arg1, arg2) {
|
|
305
|
+
wasm.closure891_externref_shim(arg0, arg1, arg2);
|
|
306
|
+
}
|
|
307
|
+
function __wbg_adapter_66(arg0, arg1, arg2) {
|
|
308
|
+
wasm.closure895_externref_shim(arg0, arg1, arg2);
|
|
309
|
+
}
|
|
310
|
+
function __wbg_adapter_310(arg0, arg1, arg2, arg3) {
|
|
311
|
+
wasm.closure1796_externref_shim(arg0, arg1, arg2, arg3);
|
|
312
|
+
}
|
|
313
|
+
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
314
|
+
const __wbindgen_enum_RtcIceConnectionState = [
|
|
315
|
+
"new",
|
|
316
|
+
"checking",
|
|
317
|
+
"connected",
|
|
318
|
+
"completed",
|
|
319
|
+
"failed",
|
|
320
|
+
"disconnected",
|
|
321
|
+
"closed",
|
|
322
|
+
];
|
|
323
|
+
const __wbindgen_enum_RtcSdpType = ["offer", "pranswer", "answer", "rollback"];
|
|
324
|
+
const __wbindgen_enum_RtcSignalingState = [
|
|
325
|
+
"stable",
|
|
326
|
+
"have-local-offer",
|
|
327
|
+
"have-remote-offer",
|
|
328
|
+
"have-local-pranswer",
|
|
329
|
+
"have-remote-pranswer",
|
|
330
|
+
"closed",
|
|
331
|
+
];
|
|
332
|
+
const BaseJSInterfaceFinalization = (typeof FinalizationRegistry === "undefined")
|
|
333
|
+
? { register: () => { }, unregister: () => { } }
|
|
334
|
+
: new FinalizationRegistry((ptr) => wasm.__wbg_basejsinterface_free(ptr >>> 0, 1));
|
|
335
|
+
export class BaseJSInterface {
|
|
336
|
+
__destroy_into_raw() {
|
|
337
|
+
const ptr = this.__wbg_ptr;
|
|
338
|
+
this.__wbg_ptr = 0;
|
|
339
|
+
BaseJSInterfaceFinalization.unregister(this);
|
|
340
|
+
return ptr;
|
|
341
|
+
}
|
|
342
|
+
free() {
|
|
343
|
+
const ptr = this.__destroy_into_raw();
|
|
344
|
+
wasm.__wbg_basejsinterface_free(ptr, 0);
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* @param {JSComHub} com_hub
|
|
348
|
+
* @param {InterfaceProperties | string} name_or_properties
|
|
349
|
+
*/
|
|
350
|
+
constructor(com_hub, name_or_properties) {
|
|
351
|
+
_assertClass(com_hub, JSComHub);
|
|
352
|
+
var ptr0 = com_hub.__destroy_into_raw();
|
|
353
|
+
const ret = wasm.basejsinterface_new(ptr0, name_or_properties);
|
|
354
|
+
this.__wbg_ptr = ret >>> 0;
|
|
355
|
+
BaseJSInterfaceFinalization.register(this, this.__wbg_ptr, this);
|
|
356
|
+
return this;
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* @returns {InterfaceProperties}
|
|
360
|
+
*/
|
|
361
|
+
get properties() {
|
|
362
|
+
const ret = wasm.basejsinterface_properties(this.__wbg_ptr);
|
|
363
|
+
return ret;
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* @returns {string}
|
|
367
|
+
*/
|
|
368
|
+
get uuid() {
|
|
369
|
+
let deferred1_0;
|
|
370
|
+
let deferred1_1;
|
|
371
|
+
try {
|
|
372
|
+
const ret = wasm.basejsinterface_uuid(this.__wbg_ptr);
|
|
373
|
+
deferred1_0 = ret[0];
|
|
374
|
+
deferred1_1 = ret[1];
|
|
375
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
376
|
+
}
|
|
377
|
+
finally {
|
|
378
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* @param {string} socket_uuid
|
|
383
|
+
* @param {Uint8Array} data
|
|
384
|
+
* @returns {Promise<boolean>}
|
|
385
|
+
*/
|
|
386
|
+
test_send_block(socket_uuid, data) {
|
|
387
|
+
const ptr0 = passStringToWasm0(socket_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
388
|
+
const len0 = WASM_VECTOR_LEN;
|
|
389
|
+
const ptr1 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
390
|
+
const len1 = WASM_VECTOR_LEN;
|
|
391
|
+
const ret = wasm.basejsinterface_test_send_block(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
392
|
+
return ret;
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* @param {Function} func
|
|
396
|
+
*/
|
|
397
|
+
on_send(func) {
|
|
398
|
+
wasm.basejsinterface_on_send(this.__wbg_ptr, func);
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* @param {string} direction
|
|
402
|
+
* @returns {string}
|
|
403
|
+
*/
|
|
404
|
+
register_socket(direction) {
|
|
405
|
+
let deferred3_0;
|
|
406
|
+
let deferred3_1;
|
|
407
|
+
try {
|
|
408
|
+
const ptr0 = passStringToWasm0(direction, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
409
|
+
const len0 = WASM_VECTOR_LEN;
|
|
410
|
+
const ret = wasm.basejsinterface_register_socket(this.__wbg_ptr, ptr0, len0);
|
|
411
|
+
var ptr2 = ret[0];
|
|
412
|
+
var len2 = ret[1];
|
|
413
|
+
if (ret[3]) {
|
|
414
|
+
ptr2 = 0;
|
|
415
|
+
len2 = 0;
|
|
416
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
417
|
+
}
|
|
418
|
+
deferred3_0 = ptr2;
|
|
419
|
+
deferred3_1 = len2;
|
|
420
|
+
return getStringFromWasm0(ptr2, len2);
|
|
421
|
+
}
|
|
422
|
+
finally {
|
|
423
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* @param {string} socket_uuid
|
|
428
|
+
*/
|
|
429
|
+
destroy_socket(socket_uuid) {
|
|
430
|
+
const ptr0 = passStringToWasm0(socket_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
431
|
+
const len0 = WASM_VECTOR_LEN;
|
|
432
|
+
const ret = wasm.basejsinterface_destroy_socket(this.__wbg_ptr, ptr0, len0);
|
|
433
|
+
if (ret[1]) {
|
|
434
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* @param {string} socket_uuid
|
|
439
|
+
* @param {Uint8Array} data
|
|
440
|
+
* @returns {Promise<void>}
|
|
441
|
+
*/
|
|
442
|
+
receive(socket_uuid, data) {
|
|
443
|
+
const ptr0 = passStringToWasm0(socket_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
444
|
+
const len0 = WASM_VECTOR_LEN;
|
|
445
|
+
const ptr1 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
|
|
446
|
+
const len1 = WASM_VECTOR_LEN;
|
|
447
|
+
const ret = wasm.basejsinterface_receive(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
448
|
+
return ret;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
const JSComHubFinalization = (typeof FinalizationRegistry === "undefined")
|
|
452
|
+
? { register: () => { }, unregister: () => { } }
|
|
453
|
+
: new FinalizationRegistry((ptr) => wasm.__wbg_jscomhub_free(ptr >>> 0, 1));
|
|
454
|
+
export class JSComHub {
|
|
455
|
+
static __wrap(ptr) {
|
|
456
|
+
ptr = ptr >>> 0;
|
|
457
|
+
const obj = Object.create(JSComHub.prototype);
|
|
458
|
+
obj.__wbg_ptr = ptr;
|
|
459
|
+
JSComHubFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
460
|
+
return obj;
|
|
461
|
+
}
|
|
462
|
+
__destroy_into_raw() {
|
|
463
|
+
const ptr = this.__wbg_ptr;
|
|
464
|
+
this.__wbg_ptr = 0;
|
|
465
|
+
JSComHubFinalization.unregister(this);
|
|
466
|
+
return ptr;
|
|
467
|
+
}
|
|
468
|
+
free() {
|
|
469
|
+
const ptr = this.__destroy_into_raw();
|
|
470
|
+
wasm.__wbg_jscomhub_free(ptr, 0);
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* @param {string} interface_uuid
|
|
474
|
+
* @returns {Promise<any>}
|
|
475
|
+
*/
|
|
476
|
+
close_interface(interface_uuid) {
|
|
477
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
478
|
+
const len0 = WASM_VECTOR_LEN;
|
|
479
|
+
const ret = wasm.jscomhub_close_interface(this.__wbg_ptr, ptr0, len0);
|
|
480
|
+
return ret;
|
|
481
|
+
}
|
|
482
|
+
start_update_loop() {
|
|
483
|
+
wasm.jscomhub_start_update_loop(this.__wbg_ptr);
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* @returns {Promise<void>}
|
|
487
|
+
*/
|
|
488
|
+
stop_update_loop() {
|
|
489
|
+
const ret = wasm.jscomhub_stop_update_loop(this.__wbg_ptr);
|
|
490
|
+
return ret;
|
|
491
|
+
}
|
|
492
|
+
/**
|
|
493
|
+
* @returns {Promise<void>}
|
|
494
|
+
*/
|
|
495
|
+
update() {
|
|
496
|
+
const ret = wasm.jscomhub_update(this.__wbg_ptr);
|
|
497
|
+
return ret;
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* @returns {WebSocketServerRegistry}
|
|
501
|
+
*/
|
|
502
|
+
get websocket_server() {
|
|
503
|
+
const ret = wasm.jscomhub_serial(this.__wbg_ptr);
|
|
504
|
+
return WebSocketServerRegistry.__wrap(ret);
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* @returns {WebSocketClientRegistry}
|
|
508
|
+
*/
|
|
509
|
+
get websocket_client() {
|
|
510
|
+
const ret = wasm.jscomhub_serial(this.__wbg_ptr);
|
|
511
|
+
return WebSocketClientRegistry.__wrap(ret);
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* @returns {SerialRegistry}
|
|
515
|
+
*/
|
|
516
|
+
get serial() {
|
|
517
|
+
const ret = wasm.jscomhub_serial(this.__wbg_ptr);
|
|
518
|
+
return SerialRegistry.__wrap(ret);
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* @returns {WebRTCRegistry}
|
|
522
|
+
*/
|
|
523
|
+
get webrtc() {
|
|
524
|
+
const ret = wasm.jscomhub_serial(this.__wbg_ptr);
|
|
525
|
+
return WebRTCRegistry.__wrap(ret);
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
528
|
+
* Send a block to the given interface and socket
|
|
529
|
+
* This does not involve the routing on the ComHub level.
|
|
530
|
+
* The socket UUID is used to identify the socket to send the block over
|
|
531
|
+
* The interface UUID is used to identify the interface to send the block over
|
|
532
|
+
* @param {Uint8Array} block
|
|
533
|
+
* @param {string} interface_uuid
|
|
534
|
+
* @param {string} socket_uuid
|
|
535
|
+
* @returns {Promise<boolean>}
|
|
536
|
+
*/
|
|
537
|
+
send_block(block, interface_uuid, socket_uuid) {
|
|
538
|
+
const ptr0 = passArray8ToWasm0(block, wasm.__wbindgen_malloc);
|
|
539
|
+
const len0 = WASM_VECTOR_LEN;
|
|
540
|
+
const ptr1 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
541
|
+
const len1 = WASM_VECTOR_LEN;
|
|
542
|
+
const ptr2 = passStringToWasm0(socket_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
543
|
+
const len2 = WASM_VECTOR_LEN;
|
|
544
|
+
const ret = wasm.jscomhub_send_block(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
545
|
+
return ret;
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* @returns {Uint8Array[]}
|
|
549
|
+
*/
|
|
550
|
+
_drain_incoming_blocks() {
|
|
551
|
+
const ret = wasm.jscomhub__drain_incoming_blocks(this.__wbg_ptr);
|
|
552
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
553
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
554
|
+
return v1;
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
const JSMemoryFinalization = (typeof FinalizationRegistry === "undefined")
|
|
558
|
+
? { register: () => { }, unregister: () => { } }
|
|
559
|
+
: new FinalizationRegistry((ptr) => wasm.__wbg_jsmemory_free(ptr >>> 0, 1));
|
|
560
|
+
export class JSMemory {
|
|
561
|
+
static __wrap(ptr) {
|
|
562
|
+
ptr = ptr >>> 0;
|
|
563
|
+
const obj = Object.create(JSMemory.prototype);
|
|
564
|
+
obj.__wbg_ptr = ptr;
|
|
565
|
+
JSMemoryFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
566
|
+
return obj;
|
|
567
|
+
}
|
|
568
|
+
__destroy_into_raw() {
|
|
569
|
+
const ptr = this.__wbg_ptr;
|
|
570
|
+
this.__wbg_ptr = 0;
|
|
571
|
+
JSMemoryFinalization.unregister(this);
|
|
572
|
+
return ptr;
|
|
573
|
+
}
|
|
574
|
+
free() {
|
|
575
|
+
const ptr = this.__destroy_into_raw();
|
|
576
|
+
wasm.__wbg_jsmemory_free(ptr, 0);
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* @param {Uint8Array} address
|
|
580
|
+
* @returns {JSPointer | undefined}
|
|
581
|
+
*/
|
|
582
|
+
get_pointer_by_id(address) {
|
|
583
|
+
const ret = wasm.jsmemory_get_pointer_by_id(this.__wbg_ptr, address);
|
|
584
|
+
return ret === 0 ? undefined : JSPointer.__wrap(ret);
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* @returns {Uint8Array[]}
|
|
588
|
+
*/
|
|
589
|
+
get_pointer_ids() {
|
|
590
|
+
const ret = wasm.jsmemory_get_pointer_ids(this.__wbg_ptr);
|
|
591
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]).slice();
|
|
592
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
593
|
+
return v1;
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
const JSPointerFinalization = (typeof FinalizationRegistry === "undefined")
|
|
597
|
+
? { register: () => { }, unregister: () => { } }
|
|
598
|
+
: new FinalizationRegistry((ptr) => wasm.__wbg_jspointer_free(ptr >>> 0, 1));
|
|
599
|
+
export class JSPointer {
|
|
600
|
+
static __wrap(ptr) {
|
|
601
|
+
ptr = ptr >>> 0;
|
|
602
|
+
const obj = Object.create(JSPointer.prototype);
|
|
603
|
+
obj.__wbg_ptr = ptr;
|
|
604
|
+
JSPointerFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
605
|
+
return obj;
|
|
606
|
+
}
|
|
607
|
+
__destroy_into_raw() {
|
|
608
|
+
const ptr = this.__wbg_ptr;
|
|
609
|
+
this.__wbg_ptr = 0;
|
|
610
|
+
JSPointerFinalization.unregister(this);
|
|
611
|
+
return ptr;
|
|
612
|
+
}
|
|
613
|
+
free() {
|
|
614
|
+
const ptr = this.__destroy_into_raw();
|
|
615
|
+
wasm.__wbg_jspointer_free(ptr, 0);
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
const JSRuntimeFinalization = (typeof FinalizationRegistry === "undefined")
|
|
619
|
+
? { register: () => { }, unregister: () => { } }
|
|
620
|
+
: new FinalizationRegistry((ptr) => wasm.__wbg_jsruntime_free(ptr >>> 0, 1));
|
|
621
|
+
export class JSRuntime {
|
|
622
|
+
static __wrap(ptr) {
|
|
623
|
+
ptr = ptr >>> 0;
|
|
624
|
+
const obj = Object.create(JSRuntime.prototype);
|
|
625
|
+
obj.__wbg_ptr = ptr;
|
|
626
|
+
JSRuntimeFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
627
|
+
return obj;
|
|
628
|
+
}
|
|
629
|
+
__destroy_into_raw() {
|
|
630
|
+
const ptr = this.__wbg_ptr;
|
|
631
|
+
this.__wbg_ptr = 0;
|
|
632
|
+
JSRuntimeFinalization.unregister(this);
|
|
633
|
+
return ptr;
|
|
634
|
+
}
|
|
635
|
+
free() {
|
|
636
|
+
const ptr = this.__destroy_into_raw();
|
|
637
|
+
wasm.__wbg_jsruntime_free(ptr, 0);
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* @returns {Promise<Promise<any>>}
|
|
641
|
+
*/
|
|
642
|
+
crypto_test_tmp() {
|
|
643
|
+
const ret = wasm.jsruntime_crypto_test_tmp(this.__wbg_ptr);
|
|
644
|
+
return ret;
|
|
645
|
+
}
|
|
646
|
+
/**
|
|
647
|
+
* @returns {string}
|
|
648
|
+
*/
|
|
649
|
+
get version() {
|
|
650
|
+
let deferred1_0;
|
|
651
|
+
let deferred1_1;
|
|
652
|
+
try {
|
|
653
|
+
const ret = wasm.jsruntime_version(this.__wbg_ptr);
|
|
654
|
+
deferred1_0 = ret[0];
|
|
655
|
+
deferred1_1 = ret[1];
|
|
656
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
657
|
+
}
|
|
658
|
+
finally {
|
|
659
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
/**
|
|
663
|
+
* @returns {JSMemory}
|
|
664
|
+
*/
|
|
665
|
+
get memory() {
|
|
666
|
+
const ret = wasm.jsruntime_memory(this.__wbg_ptr);
|
|
667
|
+
return JSMemory.__wrap(ret);
|
|
668
|
+
}
|
|
669
|
+
/**
|
|
670
|
+
* @returns {string}
|
|
671
|
+
*/
|
|
672
|
+
get endpoint() {
|
|
673
|
+
let deferred1_0;
|
|
674
|
+
let deferred1_1;
|
|
675
|
+
try {
|
|
676
|
+
const ret = wasm.jsruntime_endpoint(this.__wbg_ptr);
|
|
677
|
+
deferred1_0 = ret[0];
|
|
678
|
+
deferred1_1 = ret[1];
|
|
679
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
680
|
+
}
|
|
681
|
+
finally {
|
|
682
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
/**
|
|
686
|
+
* @returns {JSComHub}
|
|
687
|
+
*/
|
|
688
|
+
get com_hub() {
|
|
689
|
+
const ret = wasm.jsruntime_com_hub(this.__wbg_ptr);
|
|
690
|
+
return JSComHub.__wrap(ret);
|
|
691
|
+
}
|
|
692
|
+
/**
|
|
693
|
+
* @param {Uint8Array | null | undefined} body
|
|
694
|
+
* @param {string[]} receivers
|
|
695
|
+
* @returns {Uint8Array}
|
|
696
|
+
*/
|
|
697
|
+
_create_block(body, receivers) {
|
|
698
|
+
var ptr0 = isLikeNone(body)
|
|
699
|
+
? 0
|
|
700
|
+
: passArray8ToWasm0(body, wasm.__wbindgen_malloc);
|
|
701
|
+
var len0 = WASM_VECTOR_LEN;
|
|
702
|
+
const ptr1 = passArrayJsValueToWasm0(receivers, wasm.__wbindgen_malloc);
|
|
703
|
+
const len1 = WASM_VECTOR_LEN;
|
|
704
|
+
const ret = wasm.jsruntime__create_block(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
705
|
+
var v3 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
|
|
706
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
707
|
+
return v3;
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
const SerialRegistryFinalization = (typeof FinalizationRegistry === "undefined")
|
|
711
|
+
? { register: () => { }, unregister: () => { } }
|
|
712
|
+
: new FinalizationRegistry((ptr) => wasm.__wbg_serialregistry_free(ptr >>> 0, 1));
|
|
713
|
+
export class SerialRegistry {
|
|
714
|
+
static __wrap(ptr) {
|
|
715
|
+
ptr = ptr >>> 0;
|
|
716
|
+
const obj = Object.create(SerialRegistry.prototype);
|
|
717
|
+
obj.__wbg_ptr = ptr;
|
|
718
|
+
SerialRegistryFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
719
|
+
return obj;
|
|
720
|
+
}
|
|
721
|
+
__destroy_into_raw() {
|
|
722
|
+
const ptr = this.__wbg_ptr;
|
|
723
|
+
this.__wbg_ptr = 0;
|
|
724
|
+
SerialRegistryFinalization.unregister(this);
|
|
725
|
+
return ptr;
|
|
726
|
+
}
|
|
727
|
+
free() {
|
|
728
|
+
const ptr = this.__destroy_into_raw();
|
|
729
|
+
wasm.__wbg_serialregistry_free(ptr, 0);
|
|
730
|
+
}
|
|
731
|
+
/**
|
|
732
|
+
* @param {string} interface_uuid
|
|
733
|
+
* @returns {Promise<any>}
|
|
734
|
+
*/
|
|
735
|
+
close(interface_uuid) {
|
|
736
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
737
|
+
const len0 = WASM_VECTOR_LEN;
|
|
738
|
+
const ret = wasm.serialregistry_close(this.__wbg_ptr, ptr0, len0);
|
|
739
|
+
return ret;
|
|
740
|
+
}
|
|
741
|
+
/**
|
|
742
|
+
* @param {number} baud_rate
|
|
743
|
+
* @returns {Promise<string>}
|
|
744
|
+
*/
|
|
745
|
+
register(baud_rate) {
|
|
746
|
+
const ret = wasm.serialregistry_register(this.__wbg_ptr, baud_rate);
|
|
747
|
+
return ret;
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
const WebRTCRegistryFinalization = (typeof FinalizationRegistry === "undefined")
|
|
751
|
+
? { register: () => { }, unregister: () => { } }
|
|
752
|
+
: new FinalizationRegistry((ptr) => wasm.__wbg_webrtcregistry_free(ptr >>> 0, 1));
|
|
753
|
+
export class WebRTCRegistry {
|
|
754
|
+
static __wrap(ptr) {
|
|
755
|
+
ptr = ptr >>> 0;
|
|
756
|
+
const obj = Object.create(WebRTCRegistry.prototype);
|
|
757
|
+
obj.__wbg_ptr = ptr;
|
|
758
|
+
WebRTCRegistryFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
759
|
+
return obj;
|
|
760
|
+
}
|
|
761
|
+
__destroy_into_raw() {
|
|
762
|
+
const ptr = this.__wbg_ptr;
|
|
763
|
+
this.__wbg_ptr = 0;
|
|
764
|
+
WebRTCRegistryFinalization.unregister(this);
|
|
765
|
+
return ptr;
|
|
766
|
+
}
|
|
767
|
+
free() {
|
|
768
|
+
const ptr = this.__destroy_into_raw();
|
|
769
|
+
wasm.__wbg_webrtcregistry_free(ptr, 0);
|
|
770
|
+
}
|
|
771
|
+
/**
|
|
772
|
+
* @param {string} interface_uuid
|
|
773
|
+
* @returns {Promise<any>}
|
|
774
|
+
*/
|
|
775
|
+
close(interface_uuid) {
|
|
776
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
777
|
+
const len0 = WASM_VECTOR_LEN;
|
|
778
|
+
const ret = wasm.webrtcregistry_close(this.__wbg_ptr, ptr0, len0);
|
|
779
|
+
return ret;
|
|
780
|
+
}
|
|
781
|
+
/**
|
|
782
|
+
* @param {string} endpoint
|
|
783
|
+
* @returns {Promise<string>}
|
|
784
|
+
*/
|
|
785
|
+
register(endpoint) {
|
|
786
|
+
const ptr0 = passStringToWasm0(endpoint, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
787
|
+
const len0 = WASM_VECTOR_LEN;
|
|
788
|
+
const ret = wasm.webrtcregistry_register(this.__wbg_ptr, ptr0, len0);
|
|
789
|
+
return ret;
|
|
790
|
+
}
|
|
791
|
+
/**
|
|
792
|
+
* @param {string} interface_uuid
|
|
793
|
+
* @returns {Promise<Uint8Array>}
|
|
794
|
+
*/
|
|
795
|
+
create_offer(interface_uuid) {
|
|
796
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
797
|
+
const len0 = WASM_VECTOR_LEN;
|
|
798
|
+
const ret = wasm.webrtcregistry_create_offer(this.__wbg_ptr, ptr0, len0);
|
|
799
|
+
return ret;
|
|
800
|
+
}
|
|
801
|
+
/**
|
|
802
|
+
* @param {string} interface_uuid
|
|
803
|
+
* @param {Uint8Array} offer
|
|
804
|
+
* @returns {Promise<Uint8Array>}
|
|
805
|
+
*/
|
|
806
|
+
create_answer(interface_uuid, offer) {
|
|
807
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
808
|
+
const len0 = WASM_VECTOR_LEN;
|
|
809
|
+
const ptr1 = passArray8ToWasm0(offer, wasm.__wbindgen_malloc);
|
|
810
|
+
const len1 = WASM_VECTOR_LEN;
|
|
811
|
+
const ret = wasm.webrtcregistry_create_answer(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
812
|
+
return ret;
|
|
813
|
+
}
|
|
814
|
+
/**
|
|
815
|
+
* @param {string} interface_uuid
|
|
816
|
+
* @param {Uint8Array} answer
|
|
817
|
+
* @returns {Promise<void>}
|
|
818
|
+
*/
|
|
819
|
+
set_answer(interface_uuid, answer) {
|
|
820
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
821
|
+
const len0 = WASM_VECTOR_LEN;
|
|
822
|
+
const ptr1 = passArray8ToWasm0(answer, wasm.__wbindgen_malloc);
|
|
823
|
+
const len1 = WASM_VECTOR_LEN;
|
|
824
|
+
const ret = wasm.webrtcregistry_set_answer(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
825
|
+
return ret;
|
|
826
|
+
}
|
|
827
|
+
/**
|
|
828
|
+
* @param {string} interface_uuid
|
|
829
|
+
* @param {Function} on_ice_candidate
|
|
830
|
+
*/
|
|
831
|
+
set_on_ice_candidate(interface_uuid, on_ice_candidate) {
|
|
832
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
833
|
+
const len0 = WASM_VECTOR_LEN;
|
|
834
|
+
const ret = wasm.webrtcregistry_set_on_ice_candidate(this.__wbg_ptr, ptr0, len0, on_ice_candidate);
|
|
835
|
+
if (ret[1]) {
|
|
836
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
/**
|
|
840
|
+
* @param {string} interface_uuid
|
|
841
|
+
* @param {Uint8Array} candidate
|
|
842
|
+
* @returns {Promise<void>}
|
|
843
|
+
*/
|
|
844
|
+
add_ice_candidate(interface_uuid, candidate) {
|
|
845
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
846
|
+
const len0 = WASM_VECTOR_LEN;
|
|
847
|
+
const ptr1 = passArray8ToWasm0(candidate, wasm.__wbindgen_malloc);
|
|
848
|
+
const len1 = WASM_VECTOR_LEN;
|
|
849
|
+
const ret = wasm.webrtcregistry_add_ice_candidate(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
850
|
+
return ret;
|
|
851
|
+
}
|
|
852
|
+
/**
|
|
853
|
+
* @param {string} interface_uuid
|
|
854
|
+
* @returns {Promise<void>}
|
|
855
|
+
*/
|
|
856
|
+
wait_for_connection(interface_uuid) {
|
|
857
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
858
|
+
const len0 = WASM_VECTOR_LEN;
|
|
859
|
+
const ret = wasm.webrtcregistry_wait_for_connection(this.__wbg_ptr, ptr0, len0);
|
|
860
|
+
return ret;
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
const WebSocketClientRegistryFinalization = (typeof FinalizationRegistry === "undefined")
|
|
864
|
+
? { register: () => { }, unregister: () => { } }
|
|
865
|
+
: new FinalizationRegistry((ptr) => wasm.__wbg_websocketclientregistry_free(ptr >>> 0, 1));
|
|
866
|
+
export class WebSocketClientRegistry {
|
|
867
|
+
static __wrap(ptr) {
|
|
868
|
+
ptr = ptr >>> 0;
|
|
869
|
+
const obj = Object.create(WebSocketClientRegistry.prototype);
|
|
870
|
+
obj.__wbg_ptr = ptr;
|
|
871
|
+
WebSocketClientRegistryFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
872
|
+
return obj;
|
|
873
|
+
}
|
|
874
|
+
__destroy_into_raw() {
|
|
875
|
+
const ptr = this.__wbg_ptr;
|
|
876
|
+
this.__wbg_ptr = 0;
|
|
877
|
+
WebSocketClientRegistryFinalization.unregister(this);
|
|
878
|
+
return ptr;
|
|
879
|
+
}
|
|
880
|
+
free() {
|
|
881
|
+
const ptr = this.__destroy_into_raw();
|
|
882
|
+
wasm.__wbg_websocketclientregistry_free(ptr, 0);
|
|
883
|
+
}
|
|
884
|
+
/**
|
|
885
|
+
* @param {string} interface_uuid
|
|
886
|
+
* @returns {Promise<any>}
|
|
887
|
+
*/
|
|
888
|
+
close(interface_uuid) {
|
|
889
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
890
|
+
const len0 = WASM_VECTOR_LEN;
|
|
891
|
+
const ret = wasm.websocketclientregistry_close(this.__wbg_ptr, ptr0, len0);
|
|
892
|
+
return ret;
|
|
893
|
+
}
|
|
894
|
+
/**
|
|
895
|
+
* @param {string} address
|
|
896
|
+
* @returns {Promise<string>}
|
|
897
|
+
*/
|
|
898
|
+
register(address) {
|
|
899
|
+
const ptr0 = passStringToWasm0(address, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
900
|
+
const len0 = WASM_VECTOR_LEN;
|
|
901
|
+
const ret = wasm.websocketclientregistry_register(this.__wbg_ptr, ptr0, len0);
|
|
902
|
+
return ret;
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
const WebSocketServerRegistryFinalization = (typeof FinalizationRegistry === "undefined")
|
|
906
|
+
? { register: () => { }, unregister: () => { } }
|
|
907
|
+
: new FinalizationRegistry((ptr) => wasm.__wbg_websocketserverregistry_free(ptr >>> 0, 1));
|
|
908
|
+
export class WebSocketServerRegistry {
|
|
909
|
+
static __wrap(ptr) {
|
|
910
|
+
ptr = ptr >>> 0;
|
|
911
|
+
const obj = Object.create(WebSocketServerRegistry.prototype);
|
|
912
|
+
obj.__wbg_ptr = ptr;
|
|
913
|
+
WebSocketServerRegistryFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
914
|
+
return obj;
|
|
915
|
+
}
|
|
916
|
+
__destroy_into_raw() {
|
|
917
|
+
const ptr = this.__wbg_ptr;
|
|
918
|
+
this.__wbg_ptr = 0;
|
|
919
|
+
WebSocketServerRegistryFinalization.unregister(this);
|
|
920
|
+
return ptr;
|
|
921
|
+
}
|
|
922
|
+
free() {
|
|
923
|
+
const ptr = this.__destroy_into_raw();
|
|
924
|
+
wasm.__wbg_websocketserverregistry_free(ptr, 0);
|
|
925
|
+
}
|
|
926
|
+
/**
|
|
927
|
+
* @param {string} interface_uuid
|
|
928
|
+
* @returns {Promise<any>}
|
|
929
|
+
*/
|
|
930
|
+
close(interface_uuid) {
|
|
931
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
932
|
+
const len0 = WASM_VECTOR_LEN;
|
|
933
|
+
const ret = wasm.websocketserverregistry_close(this.__wbg_ptr, ptr0, len0);
|
|
934
|
+
return ret;
|
|
935
|
+
}
|
|
936
|
+
/**
|
|
937
|
+
* @returns {Promise<string>}
|
|
938
|
+
*/
|
|
939
|
+
register() {
|
|
940
|
+
const ret = wasm.websocketserverregistry_register(this.__wbg_ptr);
|
|
941
|
+
return ret;
|
|
942
|
+
}
|
|
943
|
+
/**
|
|
944
|
+
* @param {string} interface_uuid
|
|
945
|
+
* @param {WebSocket} websocket
|
|
946
|
+
* @returns {any}
|
|
947
|
+
*/
|
|
948
|
+
add_socket(interface_uuid, websocket) {
|
|
949
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
950
|
+
const len0 = WASM_VECTOR_LEN;
|
|
951
|
+
const ret = wasm.websocketserverregistry_add_socket(this.__wbg_ptr, ptr0, len0, websocket);
|
|
952
|
+
return ret;
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
export function __wbg_addIceCandidate_345f614980db6707(arg0, arg1) {
|
|
956
|
+
const ret = arg0.addIceCandidate(arg1);
|
|
957
|
+
return ret;
|
|
958
|
+
}
|
|
959
|
+
export function __wbg_buffer_609cc3eee51ed158(arg0) {
|
|
960
|
+
const ret = arg0.buffer;
|
|
961
|
+
return ret;
|
|
962
|
+
}
|
|
963
|
+
export function __wbg_call_672a4d21634d4a24() {
|
|
964
|
+
return handleError(function (arg0, arg1) {
|
|
965
|
+
const ret = arg0.call(arg1);
|
|
966
|
+
return ret;
|
|
967
|
+
}, arguments);
|
|
968
|
+
}
|
|
969
|
+
export function __wbg_call_7cccdd69e0791ae2() {
|
|
970
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
971
|
+
const ret = arg0.call(arg1, arg2);
|
|
972
|
+
return ret;
|
|
973
|
+
}, arguments);
|
|
974
|
+
}
|
|
975
|
+
export function __wbg_call_833bed5770ea2041() {
|
|
976
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
977
|
+
const ret = arg0.call(arg1, arg2, arg3);
|
|
978
|
+
return ret;
|
|
979
|
+
}, arguments);
|
|
980
|
+
}
|
|
981
|
+
export function __wbg_candidate_16483e17c3c24717(arg0) {
|
|
982
|
+
const ret = arg0.candidate;
|
|
983
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
984
|
+
}
|
|
985
|
+
export function __wbg_candidate_62789ee3462cce06(arg0, arg1) {
|
|
986
|
+
const ret = arg1.candidate;
|
|
987
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
988
|
+
const len1 = WASM_VECTOR_LEN;
|
|
989
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
990
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
991
|
+
}
|
|
992
|
+
export function __wbg_channel_41464286836ce76f(arg0) {
|
|
993
|
+
const ret = arg0.channel;
|
|
994
|
+
return ret;
|
|
995
|
+
}
|
|
996
|
+
export function __wbg_clearTimeout_5a54f8841c30079a(arg0) {
|
|
997
|
+
const ret = clearTimeout(arg0);
|
|
998
|
+
return ret;
|
|
999
|
+
}
|
|
1000
|
+
export function __wbg_close_1e543b19181c86f9(arg0) {
|
|
1001
|
+
const ret = arg0.close();
|
|
1002
|
+
return ret;
|
|
1003
|
+
}
|
|
1004
|
+
export function __wbg_close_2893b7d056a0627d() {
|
|
1005
|
+
return handleError(function (arg0) {
|
|
1006
|
+
arg0.close();
|
|
1007
|
+
}, arguments);
|
|
1008
|
+
}
|
|
1009
|
+
export function __wbg_close_314acc3eb034fb66(arg0) {
|
|
1010
|
+
arg0.close();
|
|
1011
|
+
}
|
|
1012
|
+
export function __wbg_createAnswer_ca95cac474498416(arg0) {
|
|
1013
|
+
const ret = arg0.createAnswer();
|
|
1014
|
+
return ret;
|
|
1015
|
+
}
|
|
1016
|
+
export function __wbg_createDataChannel_8cc608b38b33eba9(arg0, arg1, arg2) {
|
|
1017
|
+
const ret = arg0.createDataChannel(getStringFromWasm0(arg1, arg2));
|
|
1018
|
+
return ret;
|
|
1019
|
+
}
|
|
1020
|
+
export function __wbg_createOffer_088a2617590d462a(arg0) {
|
|
1021
|
+
const ret = arg0.createOffer();
|
|
1022
|
+
return ret;
|
|
1023
|
+
}
|
|
1024
|
+
export function __wbg_crypto_12576cd66246998b() {
|
|
1025
|
+
return handleError(function (arg0) {
|
|
1026
|
+
const ret = arg0.crypto;
|
|
1027
|
+
return ret;
|
|
1028
|
+
}, arguments);
|
|
1029
|
+
}
|
|
1030
|
+
export function __wbg_data_432d9c3df2630942(arg0) {
|
|
1031
|
+
const ret = arg0.data;
|
|
1032
|
+
return ret;
|
|
1033
|
+
}
|
|
1034
|
+
export function __wbg_debug_3cb59063b29f58c1(arg0) {
|
|
1035
|
+
console.debug(arg0);
|
|
1036
|
+
}
|
|
1037
|
+
export function __wbg_decrypt_f913c8ffec178afe() {
|
|
1038
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1039
|
+
const ret = arg0.decrypt(getStringFromWasm0(arg1, arg2), arg3, getArrayU8FromWasm0(arg4, arg5));
|
|
1040
|
+
return ret;
|
|
1041
|
+
}, arguments);
|
|
1042
|
+
}
|
|
1043
|
+
export function __wbg_deleteProperty_96363d4a1d977c97() {
|
|
1044
|
+
return handleError(function (arg0, arg1) {
|
|
1045
|
+
const ret = Reflect.deleteProperty(arg0, arg1);
|
|
1046
|
+
return ret;
|
|
1047
|
+
}, arguments);
|
|
1048
|
+
}
|
|
1049
|
+
export function __wbg_encrypt_4d890132dfd8a0a7() {
|
|
1050
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1051
|
+
const ret = arg0.encrypt(getStringFromWasm0(arg1, arg2), arg3, getArrayU8FromWasm0(arg4, arg5));
|
|
1052
|
+
return ret;
|
|
1053
|
+
}, arguments);
|
|
1054
|
+
}
|
|
1055
|
+
export function __wbg_entries_3265d4158b33e5dc(arg0) {
|
|
1056
|
+
const ret = Object.entries(arg0);
|
|
1057
|
+
return ret;
|
|
1058
|
+
}
|
|
1059
|
+
export function __wbg_error_524f506f44df1645(arg0) {
|
|
1060
|
+
console.error(arg0);
|
|
1061
|
+
}
|
|
1062
|
+
export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
|
|
1063
|
+
let deferred0_0;
|
|
1064
|
+
let deferred0_1;
|
|
1065
|
+
try {
|
|
1066
|
+
deferred0_0 = arg0;
|
|
1067
|
+
deferred0_1 = arg1;
|
|
1068
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
1069
|
+
}
|
|
1070
|
+
finally {
|
|
1071
|
+
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
export function __wbg_exportKey_d8fbe6e8de2fbb6a() {
|
|
1075
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1076
|
+
const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
|
|
1077
|
+
return ret;
|
|
1078
|
+
}, arguments);
|
|
1079
|
+
}
|
|
1080
|
+
export function __wbg_generateKey_24819cf5d2ade0ec() {
|
|
1081
|
+
return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1082
|
+
const ret = arg0.generateKey(arg1, arg2 !== 0, arg3);
|
|
1083
|
+
return ret;
|
|
1084
|
+
}, arguments);
|
|
1085
|
+
}
|
|
1086
|
+
export function __wbg_getRandomValues_5754b82ca6952f9b() {
|
|
1087
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
1088
|
+
const ret = arg0.getRandomValues(getArrayU8FromWasm0(arg1, arg2));
|
|
1089
|
+
return ret;
|
|
1090
|
+
}, arguments);
|
|
1091
|
+
}
|
|
1092
|
+
export function __wbg_getReader_be0d36e5873a525b(arg0) {
|
|
1093
|
+
const ret = arg0.getReader();
|
|
1094
|
+
return ret;
|
|
1095
|
+
}
|
|
1096
|
+
export function __wbg_getWriter_6ce182d0adc3f96b() {
|
|
1097
|
+
return handleError(function (arg0) {
|
|
1098
|
+
const ret = arg0.getWriter();
|
|
1099
|
+
return ret;
|
|
1100
|
+
}, arguments);
|
|
1101
|
+
}
|
|
1102
|
+
export function __wbg_get_67b2ba62fc30de12() {
|
|
1103
|
+
return handleError(function (arg0, arg1) {
|
|
1104
|
+
const ret = Reflect.get(arg0, arg1);
|
|
1105
|
+
return ret;
|
|
1106
|
+
}, arguments);
|
|
1107
|
+
}
|
|
1108
|
+
export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
|
|
1109
|
+
const ret = arg0[arg1 >>> 0];
|
|
1110
|
+
return ret;
|
|
1111
|
+
}
|
|
1112
|
+
export function __wbg_getprivatekey_c03ce2e8935f16db(arg0) {
|
|
1113
|
+
const ret = arg0.privateKey;
|
|
1114
|
+
return ret;
|
|
1115
|
+
}
|
|
1116
|
+
export function __wbg_getpublickey_66fc5575903e8954(arg0) {
|
|
1117
|
+
const ret = arg0.publicKey;
|
|
1118
|
+
return ret;
|
|
1119
|
+
}
|
|
1120
|
+
export function __wbg_getwithrefkey_1dc361bd10053bfe(arg0, arg1) {
|
|
1121
|
+
const ret = arg0[arg1];
|
|
1122
|
+
return ret;
|
|
1123
|
+
}
|
|
1124
|
+
export function __wbg_iceConnectionState_94e113a7ca5a4e10(arg0) {
|
|
1125
|
+
const ret = arg0.iceConnectionState;
|
|
1126
|
+
return (__wbindgen_enum_RtcIceConnectionState.indexOf(ret) + 1 || 8) - 1;
|
|
1127
|
+
}
|
|
1128
|
+
export function __wbg_importKey_5fb87ea4f3fa3b17() {
|
|
1129
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1130
|
+
const ret = arg0.importKey(getStringFromWasm0(arg1, arg2), arg3, arg4, arg5 !== 0, arg6);
|
|
1131
|
+
return ret;
|
|
1132
|
+
}, arguments);
|
|
1133
|
+
}
|
|
1134
|
+
export function __wbg_info_3daf2e093e091b66(arg0) {
|
|
1135
|
+
console.info(arg0);
|
|
1136
|
+
}
|
|
1137
|
+
export function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0) {
|
|
1138
|
+
let result;
|
|
1139
|
+
try {
|
|
1140
|
+
result = arg0 instanceof ArrayBuffer;
|
|
1141
|
+
}
|
|
1142
|
+
catch (_) {
|
|
1143
|
+
result = false;
|
|
1144
|
+
}
|
|
1145
|
+
const ret = result;
|
|
1146
|
+
return ret;
|
|
1147
|
+
}
|
|
1148
|
+
export function __wbg_instanceof_CryptoKey_63353526509ba4a2(arg0) {
|
|
1149
|
+
let result;
|
|
1150
|
+
try {
|
|
1151
|
+
result = arg0 instanceof dntShim.CryptoKey;
|
|
1152
|
+
}
|
|
1153
|
+
catch (_) {
|
|
1154
|
+
result = false;
|
|
1155
|
+
}
|
|
1156
|
+
const ret = result;
|
|
1157
|
+
return ret;
|
|
1158
|
+
}
|
|
1159
|
+
export function __wbg_instanceof_Object_7f2dcef8f78644a4(arg0) {
|
|
1160
|
+
let result;
|
|
1161
|
+
try {
|
|
1162
|
+
result = arg0 instanceof Object;
|
|
1163
|
+
}
|
|
1164
|
+
catch (_) {
|
|
1165
|
+
result = false;
|
|
1166
|
+
}
|
|
1167
|
+
const ret = result;
|
|
1168
|
+
return ret;
|
|
1169
|
+
}
|
|
1170
|
+
export function __wbg_instanceof_ReadableStreamDefaultReader_056dcea99b3557aa(arg0) {
|
|
1171
|
+
let result;
|
|
1172
|
+
try {
|
|
1173
|
+
result = arg0 instanceof ReadableStreamDefaultReader;
|
|
1174
|
+
}
|
|
1175
|
+
catch (_) {
|
|
1176
|
+
result = false;
|
|
1177
|
+
}
|
|
1178
|
+
const ret = result;
|
|
1179
|
+
return ret;
|
|
1180
|
+
}
|
|
1181
|
+
export function __wbg_instanceof_Uint8Array_17156bcf118086a9(arg0) {
|
|
1182
|
+
let result;
|
|
1183
|
+
try {
|
|
1184
|
+
result = arg0 instanceof Uint8Array;
|
|
1185
|
+
}
|
|
1186
|
+
catch (_) {
|
|
1187
|
+
result = false;
|
|
1188
|
+
}
|
|
1189
|
+
const ret = result;
|
|
1190
|
+
return ret;
|
|
1191
|
+
}
|
|
1192
|
+
export function __wbg_instanceof_Window_def73ea0955fc569(arg0) {
|
|
1193
|
+
let result;
|
|
1194
|
+
try {
|
|
1195
|
+
result = arg0 instanceof Window;
|
|
1196
|
+
}
|
|
1197
|
+
catch (_) {
|
|
1198
|
+
result = false;
|
|
1199
|
+
}
|
|
1200
|
+
const ret = result;
|
|
1201
|
+
return ret;
|
|
1202
|
+
}
|
|
1203
|
+
export function __wbg_isSafeInteger_343e2beeeece1bb0(arg0) {
|
|
1204
|
+
const ret = Number.isSafeInteger(arg0);
|
|
1205
|
+
return ret;
|
|
1206
|
+
}
|
|
1207
|
+
export function __wbg_label_674e88e28b0f69db(arg0, arg1) {
|
|
1208
|
+
const ret = arg1.label;
|
|
1209
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1210
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1211
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1212
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1213
|
+
}
|
|
1214
|
+
export function __wbg_length_a446193dc22c12f8(arg0) {
|
|
1215
|
+
const ret = arg0.length;
|
|
1216
|
+
return ret;
|
|
1217
|
+
}
|
|
1218
|
+
export function __wbg_length_e2d2a49132c1b256(arg0) {
|
|
1219
|
+
const ret = arg0.length;
|
|
1220
|
+
return ret;
|
|
1221
|
+
}
|
|
1222
|
+
export function __wbg_log_c222819a41e063d3(arg0) {
|
|
1223
|
+
console.log(arg0);
|
|
1224
|
+
}
|
|
1225
|
+
export function __wbg_message_d1685a448ba00178(arg0, arg1) {
|
|
1226
|
+
const ret = arg1.message;
|
|
1227
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1228
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1229
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1230
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1231
|
+
}
|
|
1232
|
+
export function __wbg_navigator_1577371c070c8947(arg0) {
|
|
1233
|
+
const ret = arg0.navigator;
|
|
1234
|
+
return ret;
|
|
1235
|
+
}
|
|
1236
|
+
export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
1237
|
+
try {
|
|
1238
|
+
var state0 = { a: arg0, b: arg1 };
|
|
1239
|
+
var cb0 = (arg0, arg1) => {
|
|
1240
|
+
const a = state0.a;
|
|
1241
|
+
state0.a = 0;
|
|
1242
|
+
try {
|
|
1243
|
+
return __wbg_adapter_310(a, state0.b, arg0, arg1);
|
|
1244
|
+
}
|
|
1245
|
+
finally {
|
|
1246
|
+
state0.a = a;
|
|
1247
|
+
}
|
|
1248
|
+
};
|
|
1249
|
+
const ret = new Promise(cb0);
|
|
1250
|
+
return ret;
|
|
1251
|
+
}
|
|
1252
|
+
finally {
|
|
1253
|
+
state0.a = state0.b = 0;
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
export function __wbg_new_405e22f390576ce2() {
|
|
1257
|
+
const ret = new Object();
|
|
1258
|
+
return ret;
|
|
1259
|
+
}
|
|
1260
|
+
export function __wbg_new_78feb108b6472713() {
|
|
1261
|
+
const ret = new Array();
|
|
1262
|
+
return ret;
|
|
1263
|
+
}
|
|
1264
|
+
export function __wbg_new_8a6f238a6ece86ea() {
|
|
1265
|
+
const ret = new Error();
|
|
1266
|
+
return ret;
|
|
1267
|
+
}
|
|
1268
|
+
export function __wbg_new_92c54fc74574ef55() {
|
|
1269
|
+
return handleError(function (arg0, arg1) {
|
|
1270
|
+
const ret = new dntShim.WebSocket(getStringFromWasm0(arg0, arg1));
|
|
1271
|
+
return ret;
|
|
1272
|
+
}, arguments);
|
|
1273
|
+
}
|
|
1274
|
+
export function __wbg_new_a12002a7f91c75be(arg0) {
|
|
1275
|
+
const ret = new Uint8Array(arg0);
|
|
1276
|
+
return ret;
|
|
1277
|
+
}
|
|
1278
|
+
export function __wbg_new_c68d7209be747379(arg0, arg1) {
|
|
1279
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1280
|
+
return ret;
|
|
1281
|
+
}
|
|
1282
|
+
export function __wbg_newnoargs_105ed471475aaf50(arg0, arg1) {
|
|
1283
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1284
|
+
return ret;
|
|
1285
|
+
}
|
|
1286
|
+
export function __wbg_newwithbyteoffsetandlength_d97e637ebe145a9a(arg0, arg1, arg2) {
|
|
1287
|
+
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
1288
|
+
return ret;
|
|
1289
|
+
}
|
|
1290
|
+
export function __wbg_newwithconfiguration_d716d1bf0ec3af80() {
|
|
1291
|
+
return handleError(function (arg0) {
|
|
1292
|
+
const ret = new RTCPeerConnection(arg0);
|
|
1293
|
+
return ret;
|
|
1294
|
+
}, arguments);
|
|
1295
|
+
}
|
|
1296
|
+
export function __wbg_newwithlength_a381634e90c276d4(arg0) {
|
|
1297
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
1298
|
+
return ret;
|
|
1299
|
+
}
|
|
1300
|
+
export function __wbg_now_807e54c39636c349() {
|
|
1301
|
+
const ret = Date.now();
|
|
1302
|
+
return ret;
|
|
1303
|
+
}
|
|
1304
|
+
export function __wbg_open_cdb62e879602b6c4(arg0, arg1) {
|
|
1305
|
+
const ret = arg0.open(arg1);
|
|
1306
|
+
return ret;
|
|
1307
|
+
}
|
|
1308
|
+
export function __wbg_push_737cfc8c1432c2c6(arg0, arg1) {
|
|
1309
|
+
const ret = arg0.push(arg1);
|
|
1310
|
+
return ret;
|
|
1311
|
+
}
|
|
1312
|
+
export function __wbg_queueMicrotask_97d92b4fcc8a61c5(arg0) {
|
|
1313
|
+
queueMicrotask(arg0);
|
|
1314
|
+
}
|
|
1315
|
+
export function __wbg_queueMicrotask_d3219def82552485(arg0) {
|
|
1316
|
+
const ret = arg0.queueMicrotask;
|
|
1317
|
+
return ret;
|
|
1318
|
+
}
|
|
1319
|
+
export function __wbg_randomUUID_3e5d526036ca18d4(arg0, arg1) {
|
|
1320
|
+
const ret = arg1.randomUUID();
|
|
1321
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1322
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1323
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1324
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1325
|
+
}
|
|
1326
|
+
export function __wbg_read_a2434af1186cb56c(arg0) {
|
|
1327
|
+
const ret = arg0.read();
|
|
1328
|
+
return ret;
|
|
1329
|
+
}
|
|
1330
|
+
export function __wbg_readable_dbb91ee91d979f24(arg0) {
|
|
1331
|
+
const ret = arg0.readable;
|
|
1332
|
+
return ret;
|
|
1333
|
+
}
|
|
1334
|
+
export function __wbg_releaseLock_091899af97991d2e(arg0) {
|
|
1335
|
+
arg0.releaseLock();
|
|
1336
|
+
}
|
|
1337
|
+
export function __wbg_requestPort_1f87c6573d65b9ff(arg0) {
|
|
1338
|
+
const ret = arg0.requestPort();
|
|
1339
|
+
return ret;
|
|
1340
|
+
}
|
|
1341
|
+
export function __wbg_resolve_4851785c9c5f573d(arg0) {
|
|
1342
|
+
const ret = Promise.resolve(arg0);
|
|
1343
|
+
return ret;
|
|
1344
|
+
}
|
|
1345
|
+
export function __wbg_sdpMLineIndex_0ace0d44bfe31600(arg0) {
|
|
1346
|
+
const ret = arg0.sdpMLineIndex;
|
|
1347
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret;
|
|
1348
|
+
}
|
|
1349
|
+
export function __wbg_sdpMid_b49f63c44ec872ab(arg0, arg1) {
|
|
1350
|
+
const ret = arg1.sdpMid;
|
|
1351
|
+
var ptr1 = isLikeNone(ret)
|
|
1352
|
+
? 0
|
|
1353
|
+
: passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1354
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1355
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1356
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1357
|
+
}
|
|
1358
|
+
export function __wbg_send_48418c7374637896() {
|
|
1359
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
1360
|
+
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
1361
|
+
}, arguments);
|
|
1362
|
+
}
|
|
1363
|
+
export function __wbg_send_fc0c204e8a1757f4() {
|
|
1364
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
1365
|
+
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
1366
|
+
}, arguments);
|
|
1367
|
+
}
|
|
1368
|
+
export function __wbg_serial_a5487140b2fdb38f(arg0) {
|
|
1369
|
+
const ret = arg0.serial;
|
|
1370
|
+
return ret;
|
|
1371
|
+
}
|
|
1372
|
+
export function __wbg_setLocalDescription_3b7809adf05c8170(arg0, arg1) {
|
|
1373
|
+
const ret = arg0.setLocalDescription(arg1);
|
|
1374
|
+
return ret;
|
|
1375
|
+
}
|
|
1376
|
+
export function __wbg_setRemoteDescription_2bd5c020ee5cf31f(arg0, arg1) {
|
|
1377
|
+
const ret = arg0.setRemoteDescription(arg1);
|
|
1378
|
+
return ret;
|
|
1379
|
+
}
|
|
1380
|
+
export function __wbg_setTimeout_db2dbaeefb6f39c7() {
|
|
1381
|
+
return handleError(function (arg0, arg1) {
|
|
1382
|
+
const ret = dntShim.setTimeout(arg0, arg1);
|
|
1383
|
+
return ret;
|
|
1384
|
+
}, arguments);
|
|
1385
|
+
}
|
|
1386
|
+
export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
|
|
1387
|
+
arg0[arg1] = arg2;
|
|
1388
|
+
}
|
|
1389
|
+
export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
|
|
1390
|
+
arg0.set(arg1, arg2 >>> 0);
|
|
1391
|
+
}
|
|
1392
|
+
export function __wbg_set_bb8cecf6a62b9f46() {
|
|
1393
|
+
return handleError(function (arg0, arg1, arg2) {
|
|
1394
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1395
|
+
return ret;
|
|
1396
|
+
}, arguments);
|
|
1397
|
+
}
|
|
1398
|
+
export function __wbg_setbaudrate_fe58f64af51588e8(arg0, arg1) {
|
|
1399
|
+
arg0.baudRate = arg1 >>> 0;
|
|
1400
|
+
}
|
|
1401
|
+
export function __wbg_setbinaryType_92fa1ffd873b327c(arg0, arg1) {
|
|
1402
|
+
arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
1403
|
+
}
|
|
1404
|
+
export function __wbg_setcandidate_3b55a6f9dbba82b9(arg0, arg1, arg2) {
|
|
1405
|
+
arg0.candidate = getStringFromWasm0(arg1, arg2);
|
|
1406
|
+
}
|
|
1407
|
+
export function __wbg_setcredential_c5b2b4eea93a2a96(arg0, arg1, arg2) {
|
|
1408
|
+
arg0.credential = getStringFromWasm0(arg1, arg2);
|
|
1409
|
+
}
|
|
1410
|
+
export function __wbg_seticeservers_c55a30bcf9201706(arg0, arg1) {
|
|
1411
|
+
arg0.iceServers = arg1;
|
|
1412
|
+
}
|
|
1413
|
+
export function __wbg_setonclose_14fc475a49d488fc(arg0, arg1) {
|
|
1414
|
+
arg0.onclose = arg1;
|
|
1415
|
+
}
|
|
1416
|
+
export function __wbg_setondatachannel_7d81fb6dd97cd4bb(arg0, arg1) {
|
|
1417
|
+
arg0.ondatachannel = arg1;
|
|
1418
|
+
}
|
|
1419
|
+
export function __wbg_setonerror_8639efe354b947cd(arg0, arg1) {
|
|
1420
|
+
arg0.onerror = arg1;
|
|
1421
|
+
}
|
|
1422
|
+
export function __wbg_setonicecandidate_4482190aeed37791(arg0, arg1) {
|
|
1423
|
+
arg0.onicecandidate = arg1;
|
|
1424
|
+
}
|
|
1425
|
+
export function __wbg_setoniceconnectionstatechange_e75fd8c01b8843bf(arg0, arg1) {
|
|
1426
|
+
arg0.oniceconnectionstatechange = arg1;
|
|
1427
|
+
}
|
|
1428
|
+
export function __wbg_setonmessage_6cfa79abe114a189(arg0, arg1) {
|
|
1429
|
+
arg0.onmessage = arg1;
|
|
1430
|
+
}
|
|
1431
|
+
export function __wbg_setonmessage_6eccab530a8fb4c7(arg0, arg1) {
|
|
1432
|
+
arg0.onmessage = arg1;
|
|
1433
|
+
}
|
|
1434
|
+
export function __wbg_setonopen_2da654e1f39745d5(arg0, arg1) {
|
|
1435
|
+
arg0.onopen = arg1;
|
|
1436
|
+
}
|
|
1437
|
+
export function __wbg_setonopen_64765262b192af8a(arg0, arg1) {
|
|
1438
|
+
arg0.onopen = arg1;
|
|
1439
|
+
}
|
|
1440
|
+
export function __wbg_setsdp_ac3f34abbbed4f34(arg0, arg1, arg2) {
|
|
1441
|
+
arg0.sdp = getStringFromWasm0(arg1, arg2);
|
|
1442
|
+
}
|
|
1443
|
+
export function __wbg_setsdpmid_e363183e33121d52(arg0, arg1, arg2) {
|
|
1444
|
+
arg0.sdpMid = arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2);
|
|
1445
|
+
}
|
|
1446
|
+
export function __wbg_setsdpmlineindex_473e1e69f4dcd106(arg0, arg1) {
|
|
1447
|
+
arg0.sdpMLineIndex = arg1 === 0xFFFFFF ? undefined : arg1;
|
|
1448
|
+
}
|
|
1449
|
+
export function __wbg_settype_0c7017dfd63b2ace(arg0, arg1) {
|
|
1450
|
+
arg0.type = __wbindgen_enum_RtcSdpType[arg1];
|
|
1451
|
+
}
|
|
1452
|
+
export function __wbg_seturls_fd5057234d71ec33(arg0, arg1) {
|
|
1453
|
+
arg0.urls = arg1;
|
|
1454
|
+
}
|
|
1455
|
+
export function __wbg_setusername_0520e8aa31931b9a(arg0, arg1, arg2) {
|
|
1456
|
+
arg0.username = getStringFromWasm0(arg1, arg2);
|
|
1457
|
+
}
|
|
1458
|
+
export function __wbg_sign_163254c0ca9f0994() {
|
|
1459
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1460
|
+
const ret = arg0.sign(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
|
|
1461
|
+
return ret;
|
|
1462
|
+
}, arguments);
|
|
1463
|
+
}
|
|
1464
|
+
export function __wbg_signalingState_9f13eafe0a5e0bfd(arg0) {
|
|
1465
|
+
const ret = arg0.signalingState;
|
|
1466
|
+
return (__wbindgen_enum_RtcSignalingState.indexOf(ret) + 1 || 7) - 1;
|
|
1467
|
+
}
|
|
1468
|
+
export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
|
|
1469
|
+
const ret = arg1.stack;
|
|
1470
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1471
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1472
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1473
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1474
|
+
}
|
|
1475
|
+
export function __wbg_static_accessor_GLOBAL_88a902d13a557d07() {
|
|
1476
|
+
const ret = typeof global === "undefined" ? null : global;
|
|
1477
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1478
|
+
}
|
|
1479
|
+
export function __wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0() {
|
|
1480
|
+
const ret = typeof dntShim.dntGlobalThis === "undefined" ? null : dntShim.dntGlobalThis;
|
|
1481
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1482
|
+
}
|
|
1483
|
+
export function __wbg_static_accessor_SELF_37c5d418e4bf5819() {
|
|
1484
|
+
const ret = typeof self === "undefined" ? null : self;
|
|
1485
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1486
|
+
}
|
|
1487
|
+
export function __wbg_static_accessor_WINDOW_5de37043a91a9c40() {
|
|
1488
|
+
const ret = typeof dntShim.dntGlobalThis === "undefined" ? null : dntShim.dntGlobalThis;
|
|
1489
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1490
|
+
}
|
|
1491
|
+
export function __wbg_subtle_d0614193a0b7a626(arg0) {
|
|
1492
|
+
const ret = arg0.subtle;
|
|
1493
|
+
return ret;
|
|
1494
|
+
}
|
|
1495
|
+
export function __wbg_then_44b73946d2fb3e7d(arg0, arg1) {
|
|
1496
|
+
const ret = arg0.then(arg1);
|
|
1497
|
+
return ret;
|
|
1498
|
+
}
|
|
1499
|
+
export function __wbg_then_48b406749878a531(arg0, arg1, arg2) {
|
|
1500
|
+
const ret = arg0.then(arg1, arg2);
|
|
1501
|
+
return ret;
|
|
1502
|
+
}
|
|
1503
|
+
export function __wbg_verify_51e2b45815701128() {
|
|
1504
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
|
|
1505
|
+
const ret = arg0.verify(arg1, arg2, getArrayU8FromWasm0(arg3, arg4), getArrayU8FromWasm0(arg5, arg6));
|
|
1506
|
+
return ret;
|
|
1507
|
+
}, arguments);
|
|
1508
|
+
}
|
|
1509
|
+
export function __wbg_warn_4ca3906c248c47c4(arg0) {
|
|
1510
|
+
console.warn(arg0);
|
|
1511
|
+
}
|
|
1512
|
+
export function __wbg_writable_169515f8aae06da5(arg0) {
|
|
1513
|
+
const ret = arg0.writable;
|
|
1514
|
+
return ret;
|
|
1515
|
+
}
|
|
1516
|
+
export function __wbg_write_311434e30ee214e5(arg0, arg1) {
|
|
1517
|
+
const ret = arg0.write(arg1);
|
|
1518
|
+
return ret;
|
|
1519
|
+
}
|
|
1520
|
+
export function __wbindgen_as_number(arg0) {
|
|
1521
|
+
const ret = +arg0;
|
|
1522
|
+
return ret;
|
|
1523
|
+
}
|
|
1524
|
+
export function __wbindgen_bigint_from_u64(arg0) {
|
|
1525
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1526
|
+
return ret;
|
|
1527
|
+
}
|
|
1528
|
+
export function __wbindgen_bigint_get_as_i64(arg0, arg1) {
|
|
1529
|
+
const v = arg1;
|
|
1530
|
+
const ret = typeof v === "bigint" ? v : undefined;
|
|
1531
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1532
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1533
|
+
}
|
|
1534
|
+
export function __wbindgen_boolean_get(arg0) {
|
|
1535
|
+
const v = arg0;
|
|
1536
|
+
const ret = typeof v === "boolean" ? (v ? 1 : 0) : 2;
|
|
1537
|
+
return ret;
|
|
1538
|
+
}
|
|
1539
|
+
export function __wbindgen_cb_drop(arg0) {
|
|
1540
|
+
const obj = arg0.original;
|
|
1541
|
+
if (obj.cnt-- == 1) {
|
|
1542
|
+
obj.a = 0;
|
|
1543
|
+
return true;
|
|
1544
|
+
}
|
|
1545
|
+
const ret = false;
|
|
1546
|
+
return ret;
|
|
1547
|
+
}
|
|
1548
|
+
export function __wbindgen_closure_wrapper3082(arg0, arg1, arg2) {
|
|
1549
|
+
const ret = makeMutClosure(arg0, arg1, 845, __wbg_adapter_57);
|
|
1550
|
+
return ret;
|
|
1551
|
+
}
|
|
1552
|
+
export function __wbindgen_closure_wrapper3321(arg0, arg1, arg2) {
|
|
1553
|
+
const ret = makeMutClosure(arg0, arg1, 888, __wbg_adapter_60);
|
|
1554
|
+
return ret;
|
|
1555
|
+
}
|
|
1556
|
+
export function __wbindgen_closure_wrapper3326(arg0, arg1, arg2) {
|
|
1557
|
+
const ret = makeMutClosure(arg0, arg1, 892, __wbg_adapter_63);
|
|
1558
|
+
return ret;
|
|
1559
|
+
}
|
|
1560
|
+
export function __wbindgen_closure_wrapper3826(arg0, arg1, arg2) {
|
|
1561
|
+
const ret = makeMutClosure(arg0, arg1, 896, __wbg_adapter_66);
|
|
1562
|
+
return ret;
|
|
1563
|
+
}
|
|
1564
|
+
export function __wbindgen_closure_wrapper887(arg0, arg1, arg2) {
|
|
1565
|
+
const ret = makeMutClosure(arg0, arg1, 491, __wbg_adapter_52);
|
|
1566
|
+
return ret;
|
|
1567
|
+
}
|
|
1568
|
+
export function __wbindgen_closure_wrapper888(arg0, arg1, arg2) {
|
|
1569
|
+
const ret = makeMutClosure(arg0, arg1, 491, __wbg_adapter_52);
|
|
1570
|
+
return ret;
|
|
1571
|
+
}
|
|
1572
|
+
export function __wbindgen_debug_string(arg0, arg1) {
|
|
1573
|
+
const ret = debugString(arg1);
|
|
1574
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1575
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1576
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1577
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1578
|
+
}
|
|
1579
|
+
export function __wbindgen_error_new(arg0, arg1) {
|
|
1580
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
1581
|
+
return ret;
|
|
1582
|
+
}
|
|
1583
|
+
export function __wbindgen_in(arg0, arg1) {
|
|
1584
|
+
const ret = arg0 in arg1;
|
|
1585
|
+
return ret;
|
|
1586
|
+
}
|
|
1587
|
+
export function __wbindgen_init_externref_table() {
|
|
1588
|
+
const table = wasm.__wbindgen_export_2;
|
|
1589
|
+
const offset = table.grow(4);
|
|
1590
|
+
table.set(0, undefined);
|
|
1591
|
+
table.set(offset + 0, undefined);
|
|
1592
|
+
table.set(offset + 1, null);
|
|
1593
|
+
table.set(offset + 2, true);
|
|
1594
|
+
table.set(offset + 3, false);
|
|
1595
|
+
}
|
|
1596
|
+
export function __wbindgen_is_bigint(arg0) {
|
|
1597
|
+
const ret = typeof arg0 === "bigint";
|
|
1598
|
+
return ret;
|
|
1599
|
+
}
|
|
1600
|
+
export function __wbindgen_is_function(arg0) {
|
|
1601
|
+
const ret = typeof arg0 === "function";
|
|
1602
|
+
return ret;
|
|
1603
|
+
}
|
|
1604
|
+
export function __wbindgen_is_object(arg0) {
|
|
1605
|
+
const val = arg0;
|
|
1606
|
+
const ret = typeof val === "object" && val !== null;
|
|
1607
|
+
return ret;
|
|
1608
|
+
}
|
|
1609
|
+
export function __wbindgen_is_string(arg0) {
|
|
1610
|
+
const ret = typeof arg0 === "string";
|
|
1611
|
+
return ret;
|
|
1612
|
+
}
|
|
1613
|
+
export function __wbindgen_is_undefined(arg0) {
|
|
1614
|
+
const ret = arg0 === undefined;
|
|
1615
|
+
return ret;
|
|
1616
|
+
}
|
|
1617
|
+
export function __wbindgen_jsval_eq(arg0, arg1) {
|
|
1618
|
+
const ret = arg0 === arg1;
|
|
1619
|
+
return ret;
|
|
1620
|
+
}
|
|
1621
|
+
export function __wbindgen_jsval_loose_eq(arg0, arg1) {
|
|
1622
|
+
const ret = arg0 == arg1;
|
|
1623
|
+
return ret;
|
|
1624
|
+
}
|
|
1625
|
+
export function __wbindgen_memory() {
|
|
1626
|
+
const ret = wasm.memory;
|
|
1627
|
+
return ret;
|
|
1628
|
+
}
|
|
1629
|
+
export function __wbindgen_number_get(arg0, arg1) {
|
|
1630
|
+
const obj = arg1;
|
|
1631
|
+
const ret = typeof obj === "number" ? obj : undefined;
|
|
1632
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1633
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1634
|
+
}
|
|
1635
|
+
export function __wbindgen_number_new(arg0) {
|
|
1636
|
+
const ret = arg0;
|
|
1637
|
+
return ret;
|
|
1638
|
+
}
|
|
1639
|
+
export function __wbindgen_string_get(arg0, arg1) {
|
|
1640
|
+
const obj = arg1;
|
|
1641
|
+
const ret = typeof obj === "string" ? obj : undefined;
|
|
1642
|
+
var ptr1 = isLikeNone(ret)
|
|
1643
|
+
? 0
|
|
1644
|
+
: passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1645
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1646
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1647
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1648
|
+
}
|
|
1649
|
+
export function __wbindgen_string_new(arg0, arg1) {
|
|
1650
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1651
|
+
return ret;
|
|
1652
|
+
}
|
|
1653
|
+
export function __wbindgen_throw(arg0, arg1) {
|
|
1654
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1655
|
+
}
|
|
1656
|
+
export function __wbindgen_uint8_array_new(arg0, arg1) {
|
|
1657
|
+
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
|
1658
|
+
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
|
1659
|
+
const ret = v0;
|
|
1660
|
+
return ret;
|
|
1661
|
+
}
|