@wireapp/core-crypto 8.0.3 → 9.0.1
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 -0
- package/package.json +10 -17
- package/src/autogenerated/core-crypto-ffi_bg.wasm +0 -0
- package/src/autogenerated/core-crypto-ffi_bg.wasm.d.ts +275 -0
- package/src/corecrypto.d.ts +160 -19
- package/src/corecrypto.js +332 -383
- package/src/CoreCrypto.ts +0 -116
package/src/corecrypto.js
CHANGED
@@ -77,7 +77,6 @@ class CoreCryptoError extends Error {
|
|
77
77
|
}
|
78
78
|
// src/autogenerated/core-crypto-ffi.js
|
79
79
|
var wasm;
|
80
|
-
var WASM_VECTOR_LEN = 0;
|
81
80
|
var cachedUint8ArrayMemory0 = null;
|
82
81
|
function getUint8ArrayMemory0() {
|
83
82
|
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
@@ -85,6 +84,30 @@ function getUint8ArrayMemory0() {
|
|
85
84
|
}
|
86
85
|
return cachedUint8ArrayMemory0;
|
87
86
|
}
|
87
|
+
var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
|
88
|
+
throw Error("TextDecoder not available");
|
89
|
+
} };
|
90
|
+
if (typeof TextDecoder !== "undefined") {
|
91
|
+
cachedTextDecoder.decode();
|
92
|
+
}
|
93
|
+
var MAX_SAFARI_DECODE_BYTES = 2146435072;
|
94
|
+
var numBytesDecoded = 0;
|
95
|
+
function decodeText(ptr, len) {
|
96
|
+
numBytesDecoded += len;
|
97
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
98
|
+
cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
|
99
|
+
throw Error("TextDecoder not available");
|
100
|
+
} };
|
101
|
+
cachedTextDecoder.decode();
|
102
|
+
numBytesDecoded = len;
|
103
|
+
}
|
104
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
105
|
+
}
|
106
|
+
function getStringFromWasm0(ptr, len) {
|
107
|
+
ptr = ptr >>> 0;
|
108
|
+
return decodeText(ptr, len);
|
109
|
+
}
|
110
|
+
var WASM_VECTOR_LEN = 0;
|
88
111
|
var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : { encode: () => {
|
89
112
|
throw Error("TextEncoder not available");
|
90
113
|
} };
|
@@ -149,16 +172,6 @@ function handleError(f, args) {
|
|
149
172
|
wasm.__wbindgen_exn_store(idx);
|
150
173
|
}
|
151
174
|
}
|
152
|
-
var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
|
153
|
-
throw Error("TextDecoder not available");
|
154
|
-
} };
|
155
|
-
if (typeof TextDecoder !== "undefined") {
|
156
|
-
cachedTextDecoder.decode();
|
157
|
-
}
|
158
|
-
function getStringFromWasm0(ptr, len) {
|
159
|
-
ptr = ptr >>> 0;
|
160
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
161
|
-
}
|
162
175
|
function isLikeNone(x) {
|
163
176
|
return x === undefined || x === null;
|
164
177
|
}
|
@@ -166,30 +179,6 @@ function getArrayU8FromWasm0(ptr, len) {
|
|
166
179
|
ptr = ptr >>> 0;
|
167
180
|
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
168
181
|
}
|
169
|
-
var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((state) => {
|
170
|
-
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b);
|
171
|
-
});
|
172
|
-
function makeMutClosure(arg0, arg1, dtor, f) {
|
173
|
-
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
174
|
-
const real = (...args) => {
|
175
|
-
state.cnt++;
|
176
|
-
const a = state.a;
|
177
|
-
state.a = 0;
|
178
|
-
try {
|
179
|
-
return f(a, state.b, ...args);
|
180
|
-
} finally {
|
181
|
-
if (--state.cnt === 0) {
|
182
|
-
wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
|
183
|
-
CLOSURE_DTORS.unregister(state);
|
184
|
-
} else {
|
185
|
-
state.a = a;
|
186
|
-
}
|
187
|
-
}
|
188
|
-
};
|
189
|
-
real.original = state;
|
190
|
-
CLOSURE_DTORS.register(real, state, state);
|
191
|
-
return real;
|
192
|
-
}
|
193
182
|
function debugString(val) {
|
194
183
|
const type = typeof val;
|
195
184
|
if (type == "number" || type == "boolean" || val == null) {
|
@@ -246,6 +235,40 @@ ${val.stack}`;
|
|
246
235
|
}
|
247
236
|
return className;
|
248
237
|
}
|
238
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
239
|
+
ptr = ptr >>> 0;
|
240
|
+
const mem = getDataViewMemory0();
|
241
|
+
const result = [];
|
242
|
+
for (let i = ptr;i < ptr + 4 * len; i += 4) {
|
243
|
+
result.push(wasm.__wbindgen_export_4.get(mem.getUint32(i, true)));
|
244
|
+
}
|
245
|
+
wasm.__externref_drop_slice(ptr, len);
|
246
|
+
return result;
|
247
|
+
}
|
248
|
+
var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((state) => {
|
249
|
+
wasm.__wbindgen_export_7.get(state.dtor)(state.a, state.b);
|
250
|
+
});
|
251
|
+
function makeMutClosure(arg0, arg1, dtor, f) {
|
252
|
+
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
253
|
+
const real = (...args) => {
|
254
|
+
state.cnt++;
|
255
|
+
const a = state.a;
|
256
|
+
state.a = 0;
|
257
|
+
try {
|
258
|
+
return f(a, state.b, ...args);
|
259
|
+
} finally {
|
260
|
+
if (--state.cnt === 0) {
|
261
|
+
wasm.__wbindgen_export_7.get(state.dtor)(a, state.b);
|
262
|
+
CLOSURE_DTORS.unregister(state);
|
263
|
+
} else {
|
264
|
+
state.a = a;
|
265
|
+
}
|
266
|
+
}
|
267
|
+
};
|
268
|
+
real.original = state;
|
269
|
+
CLOSURE_DTORS.register(real, state, state);
|
270
|
+
return real;
|
271
|
+
}
|
249
272
|
function _assertClass(instance, klass) {
|
250
273
|
if (!(instance instanceof klass)) {
|
251
274
|
throw new Error(`expected instance of ${klass.name}`);
|
@@ -257,16 +280,6 @@ function passArray8ToWasm0(arg, malloc) {
|
|
257
280
|
WASM_VECTOR_LEN = arg.length;
|
258
281
|
return ptr;
|
259
282
|
}
|
260
|
-
function getArrayJsValueFromWasm0(ptr, len) {
|
261
|
-
ptr = ptr >>> 0;
|
262
|
-
const mem = getDataViewMemory0();
|
263
|
-
const result = [];
|
264
|
-
for (let i = ptr;i < ptr + 4 * len; i += 4) {
|
265
|
-
result.push(wasm.__wbindgen_export_4.get(mem.getUint32(i, true)));
|
266
|
-
}
|
267
|
-
wasm.__externref_drop_slice(ptr, len);
|
268
|
-
return result;
|
269
|
-
}
|
270
283
|
function takeFromExternrefTable0(idx) {
|
271
284
|
const value = wasm.__wbindgen_export_4.get(idx);
|
272
285
|
wasm.__externref_table_dealloc(idx);
|
@@ -292,8 +305,8 @@ function passArrayJsValueToWasm0(array, malloc) {
|
|
292
305
|
WASM_VECTOR_LEN = array.length;
|
293
306
|
return ptr;
|
294
307
|
}
|
295
|
-
function migrateDatabaseKeyTypeToBytes(
|
296
|
-
const ptr0 = passStringToWasm0(
|
308
|
+
function migrateDatabaseKeyTypeToBytes(path, old_key, new_key) {
|
309
|
+
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
297
310
|
const len0 = WASM_VECTOR_LEN;
|
298
311
|
const ptr1 = passStringToWasm0(old_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
299
312
|
const len1 = WASM_VECTOR_LEN;
|
@@ -325,17 +338,17 @@ function build_metadata() {
|
|
325
338
|
const ret = wasm.build_metadata();
|
326
339
|
return BuildMetadata.__wrap(ret);
|
327
340
|
}
|
328
|
-
function
|
329
|
-
wasm.
|
341
|
+
function __wbg_adapter_16(arg0, arg1, arg2) {
|
342
|
+
wasm.closure2896_externref_shim(arg0, arg1, arg2);
|
330
343
|
}
|
331
|
-
function
|
332
|
-
wasm.
|
344
|
+
function __wbg_adapter_23(arg0, arg1, arg2) {
|
345
|
+
wasm.closure2586_externref_shim(arg0, arg1, arg2);
|
333
346
|
}
|
334
|
-
function
|
335
|
-
wasm.
|
347
|
+
function __wbg_adapter_30(arg0, arg1, arg2) {
|
348
|
+
wasm.closure1019_externref_shim(arg0, arg1, arg2);
|
336
349
|
}
|
337
|
-
function
|
338
|
-
wasm.
|
350
|
+
function __wbg_adapter_503(arg0, arg1, arg2, arg3) {
|
351
|
+
wasm.closure2998_externref_shim(arg0, arg1, arg2, arg3);
|
339
352
|
}
|
340
353
|
var Ciphersuite = Object.freeze({
|
341
354
|
MLS_128_DHKEMX25519_AES128GCM_SHA256_Ed25519: 1,
|
@@ -417,7 +430,6 @@ var WirePolicy = Object.freeze({
|
|
417
430
|
Ciphertext: 2,
|
418
431
|
"2": "Ciphertext"
|
419
432
|
});
|
420
|
-
var __wbindgen_enum_IdbCursorDirection = ["next", "nextunique", "prev", "prevunique"];
|
421
433
|
var __wbindgen_enum_IdbTransactionMode = ["readonly", "readwrite", "versionchange", "readwriteflush", "cleanup"];
|
422
434
|
var AcmeChallengeFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((ptr) => wasm.__wbg_acmechallenge_free(ptr >>> 0, 1));
|
423
435
|
|
@@ -1372,6 +1384,14 @@ class CoreCryptoContext {
|
|
1372
1384
|
const ret = wasm.corecryptocontext_proteus_decrypt(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
1373
1385
|
return ret;
|
1374
1386
|
}
|
1387
|
+
proteus_decrypt_safe(session_id, ciphertext) {
|
1388
|
+
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1389
|
+
const len0 = WASM_VECTOR_LEN;
|
1390
|
+
const ptr1 = passArray8ToWasm0(ciphertext, wasm.__wbindgen_malloc);
|
1391
|
+
const len1 = WASM_VECTOR_LEN;
|
1392
|
+
const ret = wasm.corecryptocontext_proteus_decrypt_safe(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
1393
|
+
return ret;
|
1394
|
+
}
|
1375
1395
|
proteus_encrypt(session_id, plaintext) {
|
1376
1396
|
const ptr0 = passStringToWasm0(session_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1377
1397
|
const len0 = WASM_VECTOR_LEN;
|
@@ -1416,12 +1436,6 @@ class CoreCryptoContext {
|
|
1416
1436
|
const ret = wasm.corecryptocontext_proteus_fingerprint_remote(this.__wbg_ptr, ptr0, len0);
|
1417
1437
|
return ret;
|
1418
1438
|
}
|
1419
|
-
proteus_cryptobox_migrate(path) {
|
1420
|
-
const ptr0 = passStringToWasm0(path, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1421
|
-
const len0 = WASM_VECTOR_LEN;
|
1422
|
-
const ret = wasm.corecryptocontext_proteus_cryptobox_migrate(this.__wbg_ptr, ptr0, len0);
|
1423
|
-
return ret;
|
1424
|
-
}
|
1425
1439
|
proteus_reload_sessions() {
|
1426
1440
|
const ret = wasm.corecryptocontext_proteus_reload_sessions(this.__wbg_ptr);
|
1427
1441
|
return ret;
|
@@ -2515,13 +2529,15 @@ class X509Identity {
|
|
2515
2529
|
return BigInt.asUintN(64, ret);
|
2516
2530
|
}
|
2517
2531
|
}
|
2532
|
+
var EXPECTED_RESPONSE_TYPES = new Set(["basic", "cors", "default"]);
|
2518
2533
|
async function __wbg_load(module, imports) {
|
2519
2534
|
if (typeof Response === "function" && module instanceof Response) {
|
2520
2535
|
if (typeof WebAssembly.instantiateStreaming === "function") {
|
2521
2536
|
try {
|
2522
2537
|
return await WebAssembly.instantiateStreaming(module, imports);
|
2523
2538
|
} catch (e) {
|
2524
|
-
|
2539
|
+
const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
|
2540
|
+
if (validResponse && module.headers.get("Content-Type") !== "application/wasm") {
|
2525
2541
|
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
2526
2542
|
} else {
|
2527
2543
|
throw e;
|
@@ -2542,6 +2558,14 @@ async function __wbg_load(module, imports) {
|
|
2542
2558
|
function __wbg_get_imports() {
|
2543
2559
|
const imports = {};
|
2544
2560
|
imports.wbg = {};
|
2561
|
+
imports.wbg.__wbg_Error_1f3748b298f99708 = function(arg0, arg1) {
|
2562
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
2563
|
+
return ret;
|
2564
|
+
};
|
2565
|
+
imports.wbg.__wbg_Number_577a493fc95ea223 = function(arg0) {
|
2566
|
+
const ret = Number(arg0);
|
2567
|
+
return ret;
|
2568
|
+
};
|
2545
2569
|
imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
2546
2570
|
const ret = String(arg1);
|
2547
2571
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
@@ -2553,40 +2577,31 @@ function __wbg_get_imports() {
|
|
2553
2577
|
const ret = AcmeDirectory.__wrap(arg0);
|
2554
2578
|
return ret;
|
2555
2579
|
};
|
2556
|
-
imports.wbg.__wbg_advance_b3ccc91b80962d79 = function() {
|
2557
|
-
return handleError(function(arg0, arg1) {
|
2558
|
-
arg0.advance(arg1 >>> 0);
|
2559
|
-
}, arguments);
|
2560
|
-
};
|
2561
|
-
imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
|
2562
|
-
const ret = arg0.buffer;
|
2563
|
-
return ret;
|
2564
|
-
};
|
2565
2580
|
imports.wbg.__wbg_buffereddecryptedmessage_new = function(arg0) {
|
2566
2581
|
const ret = BufferedDecryptedMessage.__wrap(arg0);
|
2567
2582
|
return ret;
|
2568
2583
|
};
|
2569
|
-
imports.wbg.
|
2570
|
-
return handleError(function(arg0, arg1) {
|
2571
|
-
const ret = arg0.call(arg1);
|
2584
|
+
imports.wbg.__wbg_call_103c29efd2d6641f = function() {
|
2585
|
+
return handleError(function(arg0, arg1, arg2, arg3, arg4) {
|
2586
|
+
const ret = arg0.call(arg1, arg2, arg3, arg4);
|
2572
2587
|
return ret;
|
2573
2588
|
}, arguments);
|
2574
2589
|
};
|
2575
|
-
imports.wbg.
|
2576
|
-
return handleError(function(arg0, arg1
|
2577
|
-
const ret = arg0.call(arg1
|
2590
|
+
imports.wbg.__wbg_call_2f8d426a20a307fe = function() {
|
2591
|
+
return handleError(function(arg0, arg1) {
|
2592
|
+
const ret = arg0.call(arg1);
|
2578
2593
|
return ret;
|
2579
2594
|
}, arguments);
|
2580
2595
|
};
|
2581
|
-
imports.wbg.
|
2596
|
+
imports.wbg.__wbg_call_d7c6e5dcdab87b72 = function() {
|
2582
2597
|
return handleError(function(arg0, arg1, arg2, arg3) {
|
2583
2598
|
const ret = arg0.call(arg1, arg2, arg3);
|
2584
2599
|
return ret;
|
2585
2600
|
}, arguments);
|
2586
2601
|
};
|
2587
|
-
imports.wbg.
|
2588
|
-
return handleError(function(arg0, arg1, arg2
|
2589
|
-
const ret = arg0.call(arg1, arg2
|
2602
|
+
imports.wbg.__wbg_call_f53f0647ceb9c567 = function() {
|
2603
|
+
return handleError(function(arg0, arg1, arg2) {
|
2604
|
+
const ret = arg0.call(arg1, arg2);
|
2590
2605
|
return ret;
|
2591
2606
|
}, arguments);
|
2592
2607
|
};
|
@@ -2598,23 +2613,13 @@ function __wbg_get_imports() {
|
|
2598
2613
|
const ret = ClientId.__unwrap(arg0);
|
2599
2614
|
return ret;
|
2600
2615
|
};
|
2601
|
-
imports.wbg.
|
2616
|
+
imports.wbg.__wbg_close_5c0c68ce107ac21e = function(arg0) {
|
2602
2617
|
arg0.close();
|
2603
2618
|
};
|
2604
2619
|
imports.wbg.__wbg_commitbundle_new = function(arg0) {
|
2605
2620
|
const ret = CommitBundle.__wrap(arg0);
|
2606
2621
|
return ret;
|
2607
2622
|
};
|
2608
|
-
imports.wbg.__wbg_continue_91e59787d3598bbb = function() {
|
2609
|
-
return handleError(function(arg0, arg1) {
|
2610
|
-
arg0.continue(arg1);
|
2611
|
-
}, arguments);
|
2612
|
-
};
|
2613
|
-
imports.wbg.__wbg_continue_c46c11d3dbe1b030 = function() {
|
2614
|
-
return handleError(function(arg0) {
|
2615
|
-
arg0.continue();
|
2616
|
-
}, arguments);
|
2617
|
-
};
|
2618
2623
|
imports.wbg.__wbg_conversationid_new = function(arg0) {
|
2619
2624
|
const ret = ConversationId.__wrap(arg0);
|
2620
2625
|
return ret;
|
@@ -2623,31 +2628,31 @@ function __wbg_get_imports() {
|
|
2623
2628
|
const ret = CoreCrypto.__wrap(arg0);
|
2624
2629
|
return ret;
|
2625
2630
|
};
|
2626
|
-
imports.wbg.
|
2631
|
+
imports.wbg.__wbg_count_9a21aa97cae2b4d6 = function() {
|
2627
2632
|
return handleError(function(arg0) {
|
2628
2633
|
const ret = arg0.count();
|
2629
2634
|
return ret;
|
2630
2635
|
}, arguments);
|
2631
2636
|
};
|
2632
|
-
imports.wbg.
|
2637
|
+
imports.wbg.__wbg_count_9d30285250b9065f = function() {
|
2633
2638
|
return handleError(function(arg0, arg1) {
|
2634
2639
|
const ret = arg0.count(arg1);
|
2635
2640
|
return ret;
|
2636
2641
|
}, arguments);
|
2637
2642
|
};
|
2638
|
-
imports.wbg.
|
2643
|
+
imports.wbg.__wbg_createIndex_35a1f70c8314a7de = function() {
|
2639
2644
|
return handleError(function(arg0, arg1, arg2, arg3, arg4) {
|
2640
2645
|
const ret = arg0.createIndex(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
2641
2646
|
return ret;
|
2642
2647
|
}, arguments);
|
2643
2648
|
};
|
2644
|
-
imports.wbg.
|
2649
|
+
imports.wbg.__wbg_createIndex_6ef667be4f40898c = function() {
|
2645
2650
|
return handleError(function(arg0, arg1, arg2, arg3) {
|
2646
2651
|
const ret = arg0.createIndex(getStringFromWasm0(arg1, arg2), arg3);
|
2647
2652
|
return ret;
|
2648
2653
|
}, arguments);
|
2649
2654
|
};
|
2650
|
-
imports.wbg.
|
2655
|
+
imports.wbg.__wbg_createObjectStore_7e79e7f6de6b5f4a = function() {
|
2651
2656
|
return handleError(function(arg0, arg1, arg2, arg3) {
|
2652
2657
|
const ret = arg0.createObjectStore(getStringFromWasm0(arg1, arg2), arg3);
|
2653
2658
|
return ret;
|
@@ -2665,32 +2670,31 @@ function __wbg_get_imports() {
|
|
2665
2670
|
const ret = DecryptedMessage.__wrap(arg0);
|
2666
2671
|
return ret;
|
2667
2672
|
};
|
2668
|
-
imports.wbg.
|
2673
|
+
imports.wbg.__wbg_deleteIndex_315fda5b473605cf = function() {
|
2669
2674
|
return handleError(function(arg0, arg1, arg2) {
|
2670
2675
|
arg0.deleteIndex(getStringFromWasm0(arg1, arg2));
|
2671
2676
|
}, arguments);
|
2672
2677
|
};
|
2673
|
-
imports.wbg.
|
2678
|
+
imports.wbg.__wbg_deleteObjectStore_8a252d9a253df02b = function() {
|
2674
2679
|
return handleError(function(arg0, arg1, arg2) {
|
2675
2680
|
arg0.deleteObjectStore(getStringFromWasm0(arg1, arg2));
|
2676
2681
|
}, arguments);
|
2677
2682
|
};
|
2678
|
-
imports.wbg.
|
2683
|
+
imports.wbg.__wbg_delete_570e5d01c731e067 = function() {
|
2679
2684
|
return handleError(function(arg0, arg1) {
|
2680
2685
|
const ret = arg0.delete(arg1);
|
2681
2686
|
return ret;
|
2682
2687
|
}, arguments);
|
2683
2688
|
};
|
2684
|
-
imports.wbg.
|
2689
|
+
imports.wbg.__wbg_done_4a7743b6f942c9f3 = function(arg0) {
|
2685
2690
|
const ret = arg0.done;
|
2686
2691
|
return ret;
|
2687
2692
|
};
|
2688
|
-
imports.wbg.
|
2689
|
-
|
2690
|
-
|
2691
|
-
|
2692
|
-
|
2693
|
-
console.error(arg0, arg1);
|
2693
|
+
imports.wbg.__wbg_error_443a583c581ba303 = function() {
|
2694
|
+
return handleError(function(arg0) {
|
2695
|
+
const ret = arg0.error;
|
2696
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
2697
|
+
}, arguments);
|
2694
2698
|
};
|
2695
2699
|
imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
|
2696
2700
|
let deferred0_0;
|
@@ -2703,17 +2707,14 @@ function __wbg_get_imports() {
|
|
2703
2707
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
2704
2708
|
}
|
2705
2709
|
};
|
2706
|
-
imports.wbg.
|
2710
|
+
imports.wbg.__wbg_error_93e9c80f4a42a374 = function(arg0, arg1) {
|
2711
|
+
console.error(arg0, arg1);
|
2712
|
+
};
|
2713
|
+
imports.wbg.__wbg_error_cbb036e477c7f898 = function(arg0) {
|
2707
2714
|
const ret = arg0.error;
|
2708
2715
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
2709
2716
|
};
|
2710
|
-
imports.wbg.
|
2711
|
-
return handleError(function(arg0) {
|
2712
|
-
const ret = arg0.error;
|
2713
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
2714
|
-
}, arguments);
|
2715
|
-
};
|
2716
|
-
imports.wbg.__wbg_execute_60eb9445d02a983b = function() {
|
2717
|
+
imports.wbg.__wbg_execute_35701d215506c919 = function() {
|
2717
2718
|
return handleError(function(arg0, arg1) {
|
2718
2719
|
const ret = arg0.execute(CoreCryptoContext.__wrap(arg1));
|
2719
2720
|
return ret;
|
@@ -2731,25 +2732,25 @@ function __wbg_get_imports() {
|
|
2731
2732
|
const ret = FfiWireE2EIdentity.__wrap(arg0);
|
2732
2733
|
return ret;
|
2733
2734
|
};
|
2734
|
-
imports.wbg.
|
2735
|
+
imports.wbg.__wbg_getAll_2a18c462536d7d5b = function() {
|
2735
2736
|
return handleError(function(arg0) {
|
2736
2737
|
const ret = arg0.getAll();
|
2737
2738
|
return ret;
|
2738
2739
|
}, arguments);
|
2739
2740
|
};
|
2740
|
-
imports.wbg.
|
2741
|
+
imports.wbg.__wbg_getAll_2e19a7bbbe1ec181 = function() {
|
2741
2742
|
return handleError(function(arg0, arg1, arg2) {
|
2742
2743
|
const ret = arg0.getAll(arg1, arg2 >>> 0);
|
2743
2744
|
return ret;
|
2744
2745
|
}, arguments);
|
2745
2746
|
};
|
2746
|
-
imports.wbg.
|
2747
|
+
imports.wbg.__wbg_getAll_7a5b8dd1d868e440 = function() {
|
2747
2748
|
return handleError(function(arg0, arg1) {
|
2748
2749
|
const ret = arg0.getAll(arg1);
|
2749
2750
|
return ret;
|
2750
2751
|
}, arguments);
|
2751
2752
|
};
|
2752
|
-
imports.wbg.
|
2753
|
+
imports.wbg.__wbg_getRandomValues_38a1ff1ea09f6cc7 = function() {
|
2753
2754
|
return handleError(function(arg0, arg1) {
|
2754
2755
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
2755
2756
|
}, arguments);
|
@@ -2759,38 +2760,38 @@ function __wbg_get_imports() {
|
|
2759
2760
|
arg0.getRandomValues(arg1);
|
2760
2761
|
}, arguments);
|
2761
2762
|
};
|
2762
|
-
imports.wbg.
|
2763
|
+
imports.wbg.__wbg_getTime_5b1dd03bb6d4b784 = function(arg0) {
|
2763
2764
|
const ret = arg0.getTime();
|
2764
2765
|
return ret;
|
2765
2766
|
};
|
2766
|
-
imports.wbg.
|
2767
|
-
const ret = arg1[arg2 >>> 0];
|
2768
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
2769
|
-
var len1 = WASM_VECTOR_LEN;
|
2770
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
2771
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
2772
|
-
};
|
2773
|
-
imports.wbg.__wbg_get_67b2ba62fc30de12 = function() {
|
2767
|
+
imports.wbg.__wbg_get_27b4bcbec57323ca = function() {
|
2774
2768
|
return handleError(function(arg0, arg1) {
|
2775
2769
|
const ret = Reflect.get(arg0, arg1);
|
2776
2770
|
return ret;
|
2777
2771
|
}, arguments);
|
2778
2772
|
};
|
2779
|
-
imports.wbg.
|
2773
|
+
imports.wbg.__wbg_get_59c6316d15f9f1d0 = function(arg0, arg1) {
|
2774
|
+
const ret = arg0[arg1 >>> 0];
|
2775
|
+
return ret;
|
2776
|
+
};
|
2777
|
+
imports.wbg.__wbg_get_5cb5417d5a49cef1 = function() {
|
2780
2778
|
return handleError(function(arg0, arg1) {
|
2781
2779
|
const ret = arg0.get(arg1);
|
2782
2780
|
return ret;
|
2783
2781
|
}, arguments);
|
2784
2782
|
};
|
2785
|
-
imports.wbg.
|
2783
|
+
imports.wbg.__wbg_get_a0f588b1e212306e = function() {
|
2786
2784
|
return handleError(function(arg0, arg1) {
|
2787
2785
|
const ret = arg0.get(arg1);
|
2788
2786
|
return ret;
|
2789
2787
|
}, arguments);
|
2790
2788
|
};
|
2791
|
-
imports.wbg.
|
2792
|
-
const ret =
|
2793
|
-
|
2789
|
+
imports.wbg.__wbg_get_ff3a515076fdddd7 = function(arg0, arg1, arg2) {
|
2790
|
+
const ret = arg1[arg2 >>> 0];
|
2791
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
2792
|
+
var len1 = WASM_VECTOR_LEN;
|
2793
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
2794
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
2794
2795
|
};
|
2795
2796
|
imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
|
2796
2797
|
const ret = arg0[arg1];
|
@@ -2800,17 +2801,17 @@ function __wbg_get_imports() {
|
|
2800
2801
|
const ret = HistorySecret.__wrap(arg0);
|
2801
2802
|
return ret;
|
2802
2803
|
};
|
2803
|
-
imports.wbg.
|
2804
|
+
imports.wbg.__wbg_indexNames_b7e419e1b5950062 = function(arg0) {
|
2804
2805
|
const ret = arg0.indexNames;
|
2805
2806
|
return ret;
|
2806
2807
|
};
|
2807
|
-
imports.wbg.
|
2808
|
+
imports.wbg.__wbg_index_7f799b7efa7c11c6 = function() {
|
2808
2809
|
return handleError(function(arg0, arg1, arg2) {
|
2809
2810
|
const ret = arg0.index(getStringFromWasm0(arg1, arg2));
|
2810
2811
|
return ret;
|
2811
2812
|
}, arguments);
|
2812
2813
|
};
|
2813
|
-
imports.wbg.
|
2814
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_59339a3a6f0c10ea = function(arg0) {
|
2814
2815
|
let result;
|
2815
2816
|
try {
|
2816
2817
|
result = arg0 instanceof ArrayBuffer;
|
@@ -2820,17 +2821,7 @@ function __wbg_get_imports() {
|
|
2820
2821
|
const ret = result;
|
2821
2822
|
return ret;
|
2822
2823
|
};
|
2823
|
-
imports.wbg.
|
2824
|
-
let result;
|
2825
|
-
try {
|
2826
|
-
result = arg0 instanceof IDBCursorWithValue;
|
2827
|
-
} catch (_) {
|
2828
|
-
result = false;
|
2829
|
-
}
|
2830
|
-
const ret = result;
|
2831
|
-
return ret;
|
2832
|
-
};
|
2833
|
-
imports.wbg.__wbg_instanceof_IdbDatabase_a3ef009ca00059f9 = function(arg0) {
|
2824
|
+
imports.wbg.__wbg_instanceof_IdbDatabase_48c551909b7652c5 = function(arg0) {
|
2834
2825
|
let result;
|
2835
2826
|
try {
|
2836
2827
|
result = arg0 instanceof IDBDatabase;
|
@@ -2840,7 +2831,7 @@ function __wbg_get_imports() {
|
|
2840
2831
|
const ret = result;
|
2841
2832
|
return ret;
|
2842
2833
|
};
|
2843
|
-
imports.wbg.
|
2834
|
+
imports.wbg.__wbg_instanceof_IdbFactory_e429f3e72d6a6d94 = function(arg0) {
|
2844
2835
|
let result;
|
2845
2836
|
try {
|
2846
2837
|
result = arg0 instanceof IDBFactory;
|
@@ -2850,7 +2841,7 @@ function __wbg_get_imports() {
|
|
2850
2841
|
const ret = result;
|
2851
2842
|
return ret;
|
2852
2843
|
};
|
2853
|
-
imports.wbg.
|
2844
|
+
imports.wbg.__wbg_instanceof_IdbOpenDbRequest_822b13f85bf6d91f = function(arg0) {
|
2854
2845
|
let result;
|
2855
2846
|
try {
|
2856
2847
|
result = arg0 instanceof IDBOpenDBRequest;
|
@@ -2860,7 +2851,7 @@ function __wbg_get_imports() {
|
|
2860
2851
|
const ret = result;
|
2861
2852
|
return ret;
|
2862
2853
|
};
|
2863
|
-
imports.wbg.
|
2854
|
+
imports.wbg.__wbg_instanceof_IdbRequest_591f189bf6c335cc = function(arg0) {
|
2864
2855
|
let result;
|
2865
2856
|
try {
|
2866
2857
|
result = arg0 instanceof IDBRequest;
|
@@ -2870,7 +2861,7 @@ function __wbg_get_imports() {
|
|
2870
2861
|
const ret = result;
|
2871
2862
|
return ret;
|
2872
2863
|
};
|
2873
|
-
imports.wbg.
|
2864
|
+
imports.wbg.__wbg_instanceof_IdbTransaction_7a1d07a52299c4f9 = function(arg0) {
|
2874
2865
|
let result;
|
2875
2866
|
try {
|
2876
2867
|
result = arg0 instanceof IDBTransaction;
|
@@ -2880,17 +2871,7 @@ function __wbg_get_imports() {
|
|
2880
2871
|
const ret = result;
|
2881
2872
|
return ret;
|
2882
2873
|
};
|
2883
|
-
imports.wbg.
|
2884
|
-
let result;
|
2885
|
-
try {
|
2886
|
-
result = arg0 instanceof Map;
|
2887
|
-
} catch (_) {
|
2888
|
-
result = false;
|
2889
|
-
}
|
2890
|
-
const ret = result;
|
2891
|
-
return ret;
|
2892
|
-
};
|
2893
|
-
imports.wbg.__wbg_instanceof_Promise_935168b8f4b49db3 = function(arg0) {
|
2874
|
+
imports.wbg.__wbg_instanceof_Promise_1147df2e75727145 = function(arg0) {
|
2894
2875
|
let result;
|
2895
2876
|
try {
|
2896
2877
|
result = arg0 instanceof Promise;
|
@@ -2900,7 +2881,7 @@ function __wbg_get_imports() {
|
|
2900
2881
|
const ret = result;
|
2901
2882
|
return ret;
|
2902
2883
|
};
|
2903
|
-
imports.wbg.
|
2884
|
+
imports.wbg.__wbg_instanceof_Uint8Array_91f3c5adee7e6672 = function(arg0) {
|
2904
2885
|
let result;
|
2905
2886
|
try {
|
2906
2887
|
result = arg0 instanceof Uint8Array;
|
@@ -2910,30 +2891,24 @@ function __wbg_get_imports() {
|
|
2910
2891
|
const ret = result;
|
2911
2892
|
return ret;
|
2912
2893
|
};
|
2913
|
-
imports.wbg.
|
2894
|
+
imports.wbg.__wbg_isArray_bc2498eba6fcb71f = function(arg0) {
|
2914
2895
|
const ret = Array.isArray(arg0);
|
2915
2896
|
return ret;
|
2916
2897
|
};
|
2917
|
-
imports.wbg.
|
2898
|
+
imports.wbg.__wbg_isSafeInteger_6091d6e3ee1b65fd = function(arg0) {
|
2918
2899
|
const ret = Number.isSafeInteger(arg0);
|
2919
2900
|
return ret;
|
2920
2901
|
};
|
2921
|
-
imports.wbg.
|
2902
|
+
imports.wbg.__wbg_iterator_96378c3c9a17347c = function() {
|
2922
2903
|
const ret = Symbol.iterator;
|
2923
2904
|
return ret;
|
2924
2905
|
};
|
2925
|
-
imports.wbg.
|
2906
|
+
imports.wbg.__wbg_keyPath_2635ad1da5c21128 = function() {
|
2926
2907
|
return handleError(function(arg0) {
|
2927
2908
|
const ret = arg0.keyPath;
|
2928
2909
|
return ret;
|
2929
2910
|
}, arguments);
|
2930
2911
|
};
|
2931
|
-
imports.wbg.__wbg_key_29fefecef430db96 = function() {
|
2932
|
-
return handleError(function(arg0) {
|
2933
|
-
const ret = arg0.key;
|
2934
|
-
return ret;
|
2935
|
-
}, arguments);
|
2936
|
-
};
|
2937
2912
|
imports.wbg.__wbg_keypackage_new = function(arg0) {
|
2938
2913
|
const ret = KeyPackage.__wrap(arg0);
|
2939
2914
|
return ret;
|
@@ -2942,19 +2917,19 @@ function __wbg_get_imports() {
|
|
2942
2917
|
const ret = KeyPackage.__unwrap(arg0);
|
2943
2918
|
return ret;
|
2944
2919
|
};
|
2945
|
-
imports.wbg.
|
2920
|
+
imports.wbg.__wbg_length_1161036d400ff5c6 = function(arg0) {
|
2946
2921
|
const ret = arg0.length;
|
2947
2922
|
return ret;
|
2948
2923
|
};
|
2949
|
-
imports.wbg.
|
2924
|
+
imports.wbg.__wbg_length_246fa1f85a0dea5b = function(arg0) {
|
2950
2925
|
const ret = arg0.length;
|
2951
2926
|
return ret;
|
2952
2927
|
};
|
2953
|
-
imports.wbg.
|
2928
|
+
imports.wbg.__wbg_length_509e85b65e81fb66 = function(arg0) {
|
2954
2929
|
const ret = arg0.length;
|
2955
2930
|
return ret;
|
2956
2931
|
};
|
2957
|
-
imports.wbg.
|
2932
|
+
imports.wbg.__wbg_length_904c0910ed998bf3 = function(arg0) {
|
2958
2933
|
const ret = arg0.length;
|
2959
2934
|
return ret;
|
2960
2935
|
};
|
@@ -2962,29 +2937,49 @@ function __wbg_get_imports() {
|
|
2962
2937
|
const ret = arg0.msCrypto;
|
2963
2938
|
return ret;
|
2964
2939
|
};
|
2965
|
-
imports.wbg.
|
2940
|
+
imports.wbg.__wbg_multiEntry_a88b8b7336fb09ab = function(arg0) {
|
2966
2941
|
const ret = arg0.multiEntry;
|
2967
2942
|
return ret;
|
2968
2943
|
};
|
2969
|
-
imports.wbg.
|
2944
|
+
imports.wbg.__wbg_name_7ae31e7083231d42 = function(arg0, arg1) {
|
2970
2945
|
const ret = arg1.name;
|
2971
2946
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
2972
2947
|
const len1 = WASM_VECTOR_LEN;
|
2973
2948
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
2974
2949
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
2975
2950
|
};
|
2976
|
-
imports.wbg.
|
2951
|
+
imports.wbg.__wbg_new0_85cc856927102294 = function() {
|
2977
2952
|
const ret = new Date;
|
2978
2953
|
return ret;
|
2979
2954
|
};
|
2980
|
-
imports.wbg.
|
2955
|
+
imports.wbg.__wbg_new_1930cbb8d9ffc31b = function() {
|
2956
|
+
const ret = new Object;
|
2957
|
+
return ret;
|
2958
|
+
};
|
2959
|
+
imports.wbg.__wbg_new_56407f99198feff7 = function() {
|
2960
|
+
const ret = new Map;
|
2961
|
+
return ret;
|
2962
|
+
};
|
2963
|
+
imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
|
2964
|
+
const ret = new Error;
|
2965
|
+
return ret;
|
2966
|
+
};
|
2967
|
+
imports.wbg.__wbg_new_9190433fb67ed635 = function(arg0) {
|
2968
|
+
const ret = new Uint8Array(arg0);
|
2969
|
+
return ret;
|
2970
|
+
};
|
2971
|
+
imports.wbg.__wbg_new_97ddeb994a38bb69 = function(arg0, arg1) {
|
2972
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
2973
|
+
return ret;
|
2974
|
+
};
|
2975
|
+
imports.wbg.__wbg_new_d5e3800b120e37e1 = function(arg0, arg1) {
|
2981
2976
|
try {
|
2982
2977
|
var state0 = { a: arg0, b: arg1 };
|
2983
2978
|
var cb0 = (arg02, arg12) => {
|
2984
2979
|
const a = state0.a;
|
2985
2980
|
state0.a = 0;
|
2986
2981
|
try {
|
2987
|
-
return
|
2982
|
+
return __wbg_adapter_503(a, state0.b, arg02, arg12);
|
2988
2983
|
} finally {
|
2989
2984
|
state0.a = a;
|
2990
2985
|
}
|
@@ -2995,30 +2990,10 @@ function __wbg_get_imports() {
|
|
2995
2990
|
state0.a = state0.b = 0;
|
2996
2991
|
}
|
2997
2992
|
};
|
2998
|
-
imports.wbg.
|
2999
|
-
const ret = new Object;
|
3000
|
-
return ret;
|
3001
|
-
};
|
3002
|
-
imports.wbg.__wbg_new_5e0be73521bc8c17 = function() {
|
3003
|
-
const ret = new Map;
|
3004
|
-
return ret;
|
3005
|
-
};
|
3006
|
-
imports.wbg.__wbg_new_78feb108b6472713 = function() {
|
2993
|
+
imports.wbg.__wbg_new_e969dc3f68d25093 = function() {
|
3007
2994
|
const ret = new Array;
|
3008
2995
|
return ret;
|
3009
2996
|
};
|
3010
|
-
imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
|
3011
|
-
const ret = new Error;
|
3012
|
-
return ret;
|
3013
|
-
};
|
3014
|
-
imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
|
3015
|
-
const ret = new Uint8Array(arg0);
|
3016
|
-
return ret;
|
3017
|
-
};
|
3018
|
-
imports.wbg.__wbg_new_c68d7209be747379 = function(arg0, arg1) {
|
3019
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
3020
|
-
return ret;
|
3021
|
-
};
|
3022
2997
|
imports.wbg.__wbg_newacmeauthz_new = function(arg0) {
|
3023
2998
|
const ret = NewAcmeAuthz.__wrap(arg0);
|
3024
2999
|
return ret;
|
@@ -3027,28 +3002,28 @@ function __wbg_get_imports() {
|
|
3027
3002
|
const ret = NewAcmeOrder.__wrap(arg0);
|
3028
3003
|
return ret;
|
3029
3004
|
};
|
3030
|
-
imports.wbg.
|
3031
|
-
const ret = new
|
3005
|
+
imports.wbg.__wbg_newfromslice_d0d56929c6d9c842 = function(arg0, arg1) {
|
3006
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
3032
3007
|
return ret;
|
3033
3008
|
};
|
3034
|
-
imports.wbg.
|
3035
|
-
const ret = new
|
3009
|
+
imports.wbg.__wbg_newnoargs_a81330f6e05d8aca = function(arg0, arg1) {
|
3010
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
3036
3011
|
return ret;
|
3037
3012
|
};
|
3038
|
-
imports.wbg.
|
3013
|
+
imports.wbg.__wbg_newwithlength_ed0ee6c1edca86fc = function(arg0) {
|
3039
3014
|
const ret = new Uint8Array(arg0 >>> 0);
|
3040
3015
|
return ret;
|
3041
3016
|
};
|
3042
|
-
imports.wbg.
|
3043
|
-
const ret = arg0.next;
|
3044
|
-
return ret;
|
3045
|
-
};
|
3046
|
-
imports.wbg.__wbg_next_6574e1a8a62d1055 = function() {
|
3017
|
+
imports.wbg.__wbg_next_2e6b37020ac5fe58 = function() {
|
3047
3018
|
return handleError(function(arg0) {
|
3048
3019
|
const ret = arg0.next();
|
3049
3020
|
return ret;
|
3050
3021
|
}, arguments);
|
3051
3022
|
};
|
3023
|
+
imports.wbg.__wbg_next_3de8f2669431a3ff = function(arg0) {
|
3024
|
+
const ret = arg0.next;
|
3025
|
+
return ret;
|
3026
|
+
};
|
3052
3027
|
imports.wbg.__wbg_node_02999533c4ea02e3 = function(arg0) {
|
3053
3028
|
const ret = arg0.node;
|
3054
3029
|
return ret;
|
@@ -3057,45 +3032,27 @@ function __wbg_get_imports() {
|
|
3057
3032
|
const ret = Date.now();
|
3058
3033
|
return ret;
|
3059
3034
|
};
|
3060
|
-
imports.wbg.
|
3035
|
+
imports.wbg.__wbg_now_e3057dd824ca0191 = function() {
|
3061
3036
|
const ret = Date.now();
|
3062
3037
|
return ret;
|
3063
3038
|
};
|
3064
|
-
imports.wbg.
|
3039
|
+
imports.wbg.__wbg_objectStoreNames_9f871922c78ae388 = function(arg0) {
|
3065
3040
|
const ret = arg0.objectStoreNames;
|
3066
3041
|
return ret;
|
3067
3042
|
};
|
3068
|
-
imports.wbg.
|
3043
|
+
imports.wbg.__wbg_objectStore_4f9dafdbff77fd83 = function() {
|
3069
3044
|
return handleError(function(arg0, arg1, arg2) {
|
3070
3045
|
const ret = arg0.objectStore(getStringFromWasm0(arg1, arg2));
|
3071
3046
|
return ret;
|
3072
3047
|
}, arguments);
|
3073
3048
|
};
|
3074
|
-
imports.wbg.
|
3075
|
-
return handleError(function(arg0) {
|
3076
|
-
const ret = arg0.openCursor();
|
3077
|
-
return ret;
|
3078
|
-
}, arguments);
|
3079
|
-
};
|
3080
|
-
imports.wbg.__wbg_openCursor_6fd4dab51810d238 = function() {
|
3081
|
-
return handleError(function(arg0, arg1, arg2) {
|
3082
|
-
const ret = arg0.openCursor(arg1, __wbindgen_enum_IdbCursorDirection[arg2]);
|
3083
|
-
return ret;
|
3084
|
-
}, arguments);
|
3085
|
-
};
|
3086
|
-
imports.wbg.__wbg_openCursor_f4b061aa6d804b93 = function() {
|
3087
|
-
return handleError(function(arg0, arg1) {
|
3088
|
-
const ret = arg0.openCursor(arg1);
|
3089
|
-
return ret;
|
3090
|
-
}, arguments);
|
3091
|
-
};
|
3092
|
-
imports.wbg.__wbg_open_88b1390d99a7c691 = function() {
|
3049
|
+
imports.wbg.__wbg_open_4ccfb9986e8733c9 = function() {
|
3093
3050
|
return handleError(function(arg0, arg1, arg2) {
|
3094
3051
|
const ret = arg0.open(getStringFromWasm0(arg1, arg2));
|
3095
3052
|
return ret;
|
3096
3053
|
}, arguments);
|
3097
3054
|
};
|
3098
|
-
imports.wbg.
|
3055
|
+
imports.wbg.__wbg_open_bf329a7c677f6eb3 = function() {
|
3099
3056
|
return handleError(function(arg0, arg1, arg2, arg3) {
|
3100
3057
|
const ret = arg0.open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
|
3101
3058
|
return ret;
|
@@ -3109,49 +3066,48 @@ function __wbg_get_imports() {
|
|
3109
3066
|
const ret = ProteusAutoPrekeyBundle.__wrap(arg0);
|
3110
3067
|
return ret;
|
3111
3068
|
};
|
3112
|
-
imports.wbg.
|
3069
|
+
imports.wbg.__wbg_prototypesetcall_c5f74efd31aea86b = function(arg0, arg1, arg2) {
|
3070
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
3071
|
+
};
|
3072
|
+
imports.wbg.__wbg_push_cd3ac7d5b094565d = function(arg0, arg1) {
|
3113
3073
|
const ret = arg0.push(arg1);
|
3114
3074
|
return ret;
|
3115
3075
|
};
|
3116
|
-
imports.wbg.
|
3076
|
+
imports.wbg.__wbg_put_26029bce45af287b = function() {
|
3117
3077
|
return handleError(function(arg0, arg1, arg2) {
|
3118
3078
|
const ret = arg0.put(arg1, arg2);
|
3119
3079
|
return ret;
|
3120
3080
|
}, arguments);
|
3121
3081
|
};
|
3122
|
-
imports.wbg.
|
3082
|
+
imports.wbg.__wbg_put_adbbd8f247db7544 = function() {
|
3123
3083
|
return handleError(function(arg0, arg1) {
|
3124
3084
|
const ret = arg0.put(arg1);
|
3125
3085
|
return ret;
|
3126
3086
|
}, arguments);
|
3127
3087
|
};
|
3128
|
-
imports.wbg.
|
3129
|
-
queueMicrotask(arg0);
|
3130
|
-
};
|
3131
|
-
imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
|
3088
|
+
imports.wbg.__wbg_queueMicrotask_bcc6e26d899696db = function(arg0) {
|
3132
3089
|
const ret = arg0.queueMicrotask;
|
3133
3090
|
return ret;
|
3134
3091
|
};
|
3092
|
+
imports.wbg.__wbg_queueMicrotask_f24a794d09c42640 = function(arg0) {
|
3093
|
+
queueMicrotask(arg0);
|
3094
|
+
};
|
3135
3095
|
imports.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() {
|
3136
3096
|
return handleError(function(arg0, arg1) {
|
3137
3097
|
arg0.randomFillSync(arg1);
|
3138
3098
|
}, arguments);
|
3139
3099
|
};
|
3140
|
-
imports.wbg.__wbg_request_695d684a1f4bb96e = function(arg0) {
|
3141
|
-
const ret = arg0.request;
|
3142
|
-
return ret;
|
3143
|
-
};
|
3144
3100
|
imports.wbg.__wbg_require_79b1e9274cde3c87 = function() {
|
3145
3101
|
return handleError(function() {
|
3146
3102
|
const ret = module_core_crypto_ffi.require;
|
3147
3103
|
return ret;
|
3148
3104
|
}, arguments);
|
3149
3105
|
};
|
3150
|
-
imports.wbg.
|
3106
|
+
imports.wbg.__wbg_resolve_5775c0ef9222f556 = function(arg0) {
|
3151
3107
|
const ret = Promise.resolve(arg0);
|
3152
3108
|
return ret;
|
3153
3109
|
};
|
3154
|
-
imports.wbg.
|
3110
|
+
imports.wbg.__wbg_result_b30a0a7bc6b6345f = function() {
|
3155
3111
|
return handleError(function(arg0) {
|
3156
3112
|
const ret = arg0.result;
|
3157
3113
|
return ret;
|
@@ -3161,56 +3117,53 @@ function __wbg_get_imports() {
|
|
3161
3117
|
const ret = SecretKey.__wrap(arg0);
|
3162
3118
|
return ret;
|
3163
3119
|
};
|
3164
|
-
imports.wbg.
|
3165
|
-
|
3120
|
+
imports.wbg.__wbg_set_31197016f65a6a19 = function(arg0, arg1, arg2) {
|
3121
|
+
const ret = arg0.set(arg1, arg2);
|
3122
|
+
return ret;
|
3166
3123
|
};
|
3167
3124
|
imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
3168
3125
|
arg0[arg1] = arg2;
|
3169
3126
|
};
|
3170
|
-
imports.wbg.
|
3171
|
-
arg0
|
3172
|
-
};
|
3173
|
-
imports.wbg.__wbg_set_8fc6bf8a5b1071d1 = function(arg0, arg1, arg2) {
|
3174
|
-
const ret = arg0.set(arg1, arg2);
|
3175
|
-
return ret;
|
3127
|
+
imports.wbg.__wbg_set_d636a0463acf1dbc = function(arg0, arg1, arg2) {
|
3128
|
+
arg0[arg1 >>> 0] = arg2;
|
3176
3129
|
};
|
3177
|
-
imports.wbg.
|
3130
|
+
imports.wbg.__wbg_setautoincrement_5ae17c87fe2d4f9b = function(arg0, arg1) {
|
3178
3131
|
arg0.autoIncrement = arg1 !== 0;
|
3179
3132
|
};
|
3180
|
-
imports.wbg.
|
3133
|
+
imports.wbg.__wbg_setcause_b0108db2f5bad08c = function(arg0, arg1) {
|
3181
3134
|
arg0.cause = arg1;
|
3182
3135
|
};
|
3183
|
-
imports.wbg.
|
3136
|
+
imports.wbg.__wbg_setkeypath_8d8c800a95646c4d = function(arg0, arg1) {
|
3184
3137
|
arg0.keyPath = arg1;
|
3185
3138
|
};
|
3186
|
-
imports.wbg.
|
3139
|
+
imports.wbg.__wbg_setmultientry_2d965bfbe831d349 = function(arg0, arg1) {
|
3187
3140
|
arg0.multiEntry = arg1 !== 0;
|
3188
3141
|
};
|
3189
|
-
imports.wbg.
|
3142
|
+
imports.wbg.__wbg_setname_b226a825d1533eb4 = function(arg0, arg1, arg2) {
|
3190
3143
|
arg0.name = getStringFromWasm0(arg1, arg2);
|
3191
3144
|
};
|
3192
|
-
imports.wbg.
|
3145
|
+
imports.wbg.__wbg_setonabort_2b64fe553e1f30a5 = function(arg0, arg1) {
|
3193
3146
|
arg0.onabort = arg1;
|
3194
3147
|
};
|
3195
|
-
imports.wbg.
|
3148
|
+
imports.wbg.__wbg_setoncomplete_2dee9e6e91eb390c = function(arg0, arg1) {
|
3196
3149
|
arg0.oncomplete = arg1;
|
3197
3150
|
};
|
3198
|
-
imports.wbg.
|
3151
|
+
imports.wbg.__wbg_setonerror_1c09126416a8732a = function(arg0, arg1) {
|
3199
3152
|
arg0.onerror = arg1;
|
3200
3153
|
};
|
3201
|
-
imports.wbg.
|
3154
|
+
imports.wbg.__wbg_setonerror_d12d470adff34fe2 = function(arg0, arg1) {
|
3202
3155
|
arg0.onerror = arg1;
|
3203
3156
|
};
|
3204
|
-
imports.wbg.
|
3157
|
+
imports.wbg.__wbg_setonsuccess_81a109828a9b7d7c = function(arg0, arg1) {
|
3205
3158
|
arg0.onsuccess = arg1;
|
3206
3159
|
};
|
3207
|
-
imports.wbg.
|
3160
|
+
imports.wbg.__wbg_setonupgradeneeded_41c59fde839b5142 = function(arg0, arg1) {
|
3208
3161
|
arg0.onupgradeneeded = arg1;
|
3209
3162
|
};
|
3210
|
-
imports.wbg.
|
3163
|
+
imports.wbg.__wbg_setonversionchange_6d4cf4b5eafafccc = function(arg0, arg1) {
|
3211
3164
|
arg0.onversionchange = arg1;
|
3212
3165
|
};
|
3213
|
-
imports.wbg.
|
3166
|
+
imports.wbg.__wbg_setunique_bccba0d1ccd21f16 = function(arg0, arg1) {
|
3214
3167
|
arg0.unique = arg1 !== 0;
|
3215
3168
|
};
|
3216
3169
|
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
|
@@ -3220,67 +3173,61 @@ function __wbg_get_imports() {
|
|
3220
3173
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
3221
3174
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
3222
3175
|
};
|
3223
|
-
imports.wbg.
|
3176
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_1f13249cc3acc96d = function() {
|
3224
3177
|
const ret = typeof global === "undefined" ? null : global;
|
3225
3178
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
3226
3179
|
};
|
3227
|
-
imports.wbg.
|
3180
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_df7ae94b1e0ed6a3 = function() {
|
3228
3181
|
const ret = typeof globalThis === "undefined" ? null : globalThis;
|
3229
3182
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
3230
3183
|
};
|
3231
|
-
imports.wbg.
|
3184
|
+
imports.wbg.__wbg_static_accessor_SELF_6265471db3b3c228 = function() {
|
3232
3185
|
const ret = typeof self === "undefined" ? null : self;
|
3233
3186
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
3234
3187
|
};
|
3235
|
-
imports.wbg.
|
3188
|
+
imports.wbg.__wbg_static_accessor_WINDOW_16fb482f8ec52863 = function() {
|
3236
3189
|
const ret = typeof window === "undefined" ? null : window;
|
3237
3190
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
3238
3191
|
};
|
3239
|
-
imports.wbg.
|
3192
|
+
imports.wbg.__wbg_subarray_a219824899e59712 = function(arg0, arg1, arg2) {
|
3240
3193
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
3241
3194
|
return ret;
|
3242
3195
|
};
|
3243
|
-
imports.wbg.
|
3196
|
+
imports.wbg.__wbg_target_bfb4281bfa013115 = function(arg0) {
|
3244
3197
|
const ret = arg0.target;
|
3245
3198
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
3246
3199
|
};
|
3247
|
-
imports.wbg.
|
3248
|
-
const ret = arg0.then(arg1);
|
3200
|
+
imports.wbg.__wbg_then_8d2fcccde5380a03 = function(arg0, arg1, arg2) {
|
3201
|
+
const ret = arg0.then(arg1, arg2);
|
3249
3202
|
return ret;
|
3250
3203
|
};
|
3251
|
-
imports.wbg.
|
3252
|
-
const ret = arg0.then(arg1
|
3204
|
+
imports.wbg.__wbg_then_9cc266be2bf537b6 = function(arg0, arg1) {
|
3205
|
+
const ret = arg0.then(arg1);
|
3253
3206
|
return ret;
|
3254
3207
|
};
|
3255
|
-
imports.wbg.
|
3208
|
+
imports.wbg.__wbg_toString_1144ec2f872e8cf3 = function(arg0) {
|
3256
3209
|
const ret = arg0.toString();
|
3257
3210
|
return ret;
|
3258
3211
|
};
|
3259
|
-
imports.wbg.
|
3212
|
+
imports.wbg.__wbg_transaction_8267254fd462a1bb = function(arg0) {
|
3213
|
+
const ret = arg0.transaction;
|
3214
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
3215
|
+
};
|
3216
|
+
imports.wbg.__wbg_transaction_fca796495943f7a5 = function() {
|
3260
3217
|
return handleError(function(arg0, arg1, arg2) {
|
3261
3218
|
const ret = arg0.transaction(arg1, __wbindgen_enum_IdbTransactionMode[arg2]);
|
3262
3219
|
return ret;
|
3263
3220
|
}, arguments);
|
3264
3221
|
};
|
3265
|
-
imports.wbg.
|
3266
|
-
const ret = arg0.transaction;
|
3267
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
3268
|
-
};
|
3269
|
-
imports.wbg.__wbg_unique_23ddfed89bddb31d = function(arg0) {
|
3222
|
+
imports.wbg.__wbg_unique_2ffe24c606d8bfd2 = function(arg0) {
|
3270
3223
|
const ret = arg0.unique;
|
3271
3224
|
return ret;
|
3272
3225
|
};
|
3273
|
-
imports.wbg.
|
3274
|
-
return handleError(function(arg0) {
|
3275
|
-
const ret = arg0.value;
|
3276
|
-
return ret;
|
3277
|
-
}, arguments);
|
3278
|
-
};
|
3279
|
-
imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
|
3226
|
+
imports.wbg.__wbg_value_09d0b4eaab48b91d = function(arg0) {
|
3280
3227
|
const ret = arg0.value;
|
3281
3228
|
return ret;
|
3282
3229
|
};
|
3283
|
-
imports.wbg.
|
3230
|
+
imports.wbg.__wbg_version_f122dce1918b76ee = function(arg0) {
|
3284
3231
|
const ret = arg0.version;
|
3285
3232
|
return ret;
|
3286
3233
|
};
|
@@ -3288,45 +3235,18 @@ function __wbg_get_imports() {
|
|
3288
3235
|
const ret = arg0.versions;
|
3289
3236
|
return ret;
|
3290
3237
|
};
|
3291
|
-
imports.wbg.
|
3292
|
-
const ret = WelcomeBundle.__wrap(arg0);
|
3293
|
-
return ret;
|
3294
|
-
};
|
3295
|
-
imports.wbg.__wbg_wireidentity_new = function(arg0) {
|
3296
|
-
const ret = WireIdentity.__wrap(arg0);
|
3297
|
-
return ret;
|
3298
|
-
};
|
3299
|
-
imports.wbg.__wbindgen_array_new = function() {
|
3300
|
-
const ret = [];
|
3301
|
-
return ret;
|
3302
|
-
};
|
3303
|
-
imports.wbg.__wbindgen_array_push = function(arg0, arg1) {
|
3304
|
-
arg0.push(arg1);
|
3305
|
-
};
|
3306
|
-
imports.wbg.__wbindgen_as_number = function(arg0) {
|
3307
|
-
const ret = +arg0;
|
3308
|
-
return ret;
|
3309
|
-
};
|
3310
|
-
imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
|
3311
|
-
const ret = arg0;
|
3312
|
-
return ret;
|
3313
|
-
};
|
3314
|
-
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
3315
|
-
const ret = BigInt.asUintN(64, arg0);
|
3316
|
-
return ret;
|
3317
|
-
};
|
3318
|
-
imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
|
3238
|
+
imports.wbg.__wbg_wbindgenbigintgetasi64_7637cb1a7fb9a81e = function(arg0, arg1) {
|
3319
3239
|
const v = arg1;
|
3320
3240
|
const ret = typeof v === "bigint" ? v : undefined;
|
3321
3241
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
3322
3242
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
3323
3243
|
};
|
3324
|
-
imports.wbg.
|
3244
|
+
imports.wbg.__wbg_wbindgenbooleanget_59f830b1a70d2530 = function(arg0) {
|
3325
3245
|
const v = arg0;
|
3326
|
-
const ret = typeof v === "boolean" ? v
|
3327
|
-
return ret;
|
3246
|
+
const ret = typeof v === "boolean" ? v : undefined;
|
3247
|
+
return isLikeNone(ret) ? 16777215 : ret ? 1 : 0;
|
3328
3248
|
};
|
3329
|
-
imports.wbg.
|
3249
|
+
imports.wbg.__wbg_wbindgencbdrop_a85ed476c6a370b9 = function(arg0) {
|
3330
3250
|
const obj = arg0.original;
|
3331
3251
|
if (obj.cnt-- == 1) {
|
3332
3252
|
obj.a = 0;
|
@@ -3335,90 +3255,57 @@ function __wbg_get_imports() {
|
|
3335
3255
|
const ret = false;
|
3336
3256
|
return ret;
|
3337
3257
|
};
|
3338
|
-
imports.wbg.
|
3339
|
-
const ret = makeMutClosure(arg0, arg1, 2638, __wbg_adapter_65);
|
3340
|
-
return ret;
|
3341
|
-
};
|
3342
|
-
imports.wbg.__wbindgen_closure_wrapper15901 = function(arg0, arg1, arg2) {
|
3343
|
-
const ret = makeMutClosure(arg0, arg1, 2839, __wbg_adapter_68);
|
3344
|
-
return ret;
|
3345
|
-
};
|
3346
|
-
imports.wbg.__wbindgen_closure_wrapper4580 = function(arg0, arg1, arg2) {
|
3347
|
-
const ret = makeMutClosure(arg0, arg1, 964, __wbg_adapter_62);
|
3348
|
-
return ret;
|
3349
|
-
};
|
3350
|
-
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
3258
|
+
imports.wbg.__wbg_wbindgendebugstring_bb652b1bc2061b6d = function(arg0, arg1) {
|
3351
3259
|
const ret = debugString(arg1);
|
3352
3260
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
3353
3261
|
const len1 = WASM_VECTOR_LEN;
|
3354
3262
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
3355
3263
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
3356
3264
|
};
|
3357
|
-
imports.wbg.
|
3358
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
3359
|
-
return ret;
|
3360
|
-
};
|
3361
|
-
imports.wbg.__wbindgen_in = function(arg0, arg1) {
|
3265
|
+
imports.wbg.__wbg_wbindgenin_192b210aa1c401e9 = function(arg0, arg1) {
|
3362
3266
|
const ret = arg0 in arg1;
|
3363
3267
|
return ret;
|
3364
3268
|
};
|
3365
|
-
imports.wbg.
|
3366
|
-
const table = wasm.__wbindgen_export_4;
|
3367
|
-
const offset = table.grow(4);
|
3368
|
-
table.set(0, undefined);
|
3369
|
-
table.set(offset + 0, undefined);
|
3370
|
-
table.set(offset + 1, null);
|
3371
|
-
table.set(offset + 2, true);
|
3372
|
-
table.set(offset + 3, false);
|
3373
|
-
};
|
3374
|
-
imports.wbg.__wbindgen_is_bigint = function(arg0) {
|
3269
|
+
imports.wbg.__wbg_wbindgenisbigint_7d76a1ca6454e439 = function(arg0) {
|
3375
3270
|
const ret = typeof arg0 === "bigint";
|
3376
3271
|
return ret;
|
3377
3272
|
};
|
3378
|
-
imports.wbg.
|
3273
|
+
imports.wbg.__wbg_wbindgenisfunction_ea72b9d66a0e1705 = function(arg0) {
|
3379
3274
|
const ret = typeof arg0 === "function";
|
3380
3275
|
return ret;
|
3381
3276
|
};
|
3382
|
-
imports.wbg.
|
3277
|
+
imports.wbg.__wbg_wbindgenisnull_e1388bbe88158c3f = function(arg0) {
|
3383
3278
|
const ret = arg0 === null;
|
3384
3279
|
return ret;
|
3385
3280
|
};
|
3386
|
-
imports.wbg.
|
3281
|
+
imports.wbg.__wbg_wbindgenisobject_dfe064a121d87553 = function(arg0) {
|
3387
3282
|
const val = arg0;
|
3388
3283
|
const ret = typeof val === "object" && val !== null;
|
3389
3284
|
return ret;
|
3390
3285
|
};
|
3391
|
-
imports.wbg.
|
3286
|
+
imports.wbg.__wbg_wbindgenisstring_4b74e4111ba029e6 = function(arg0) {
|
3392
3287
|
const ret = typeof arg0 === "string";
|
3393
3288
|
return ret;
|
3394
3289
|
};
|
3395
|
-
imports.wbg.
|
3290
|
+
imports.wbg.__wbg_wbindgenisundefined_71f08a6ade4354e7 = function(arg0) {
|
3396
3291
|
const ret = arg0 === undefined;
|
3397
3292
|
return ret;
|
3398
3293
|
};
|
3399
|
-
imports.wbg.
|
3294
|
+
imports.wbg.__wbg_wbindgenjsvaleq_f27272c0a890df7f = function(arg0, arg1) {
|
3400
3295
|
const ret = arg0 === arg1;
|
3401
3296
|
return ret;
|
3402
3297
|
};
|
3403
|
-
imports.wbg.
|
3298
|
+
imports.wbg.__wbg_wbindgenjsvallooseeq_9dd7bb4b95ac195c = function(arg0, arg1) {
|
3404
3299
|
const ret = arg0 == arg1;
|
3405
3300
|
return ret;
|
3406
3301
|
};
|
3407
|
-
imports.wbg.
|
3408
|
-
const ret = wasm.memory;
|
3409
|
-
return ret;
|
3410
|
-
};
|
3411
|
-
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
3302
|
+
imports.wbg.__wbg_wbindgennumberget_d855f947247a3fbc = function(arg0, arg1) {
|
3412
3303
|
const obj = arg1;
|
3413
3304
|
const ret = typeof obj === "number" ? obj : undefined;
|
3414
3305
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
3415
3306
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
3416
3307
|
};
|
3417
|
-
imports.wbg.
|
3418
|
-
const ret = arg0;
|
3419
|
-
return ret;
|
3420
|
-
};
|
3421
|
-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
3308
|
+
imports.wbg.__wbg_wbindgenstringget_43fe05afe34b0cb1 = function(arg0, arg1) {
|
3422
3309
|
const obj = arg1;
|
3423
3310
|
const ret = typeof obj === "string" ? obj : undefined;
|
3424
3311
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
@@ -3426,14 +3313,10 @@ function __wbg_get_imports() {
|
|
3426
3313
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
3427
3314
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
3428
3315
|
};
|
3429
|
-
imports.wbg.
|
3430
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
3431
|
-
return ret;
|
3432
|
-
};
|
3433
|
-
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
3316
|
+
imports.wbg.__wbg_wbindgenthrow_4c11a24fca429ccf = function(arg0, arg1) {
|
3434
3317
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
3435
3318
|
};
|
3436
|
-
imports.wbg.
|
3319
|
+
imports.wbg.__wbg_wbindgentryintonumber_c9e75d941453b6d7 = function(arg0) {
|
3437
3320
|
let result;
|
3438
3321
|
try {
|
3439
3322
|
result = +arg0;
|
@@ -3443,12 +3326,81 @@ function __wbg_get_imports() {
|
|
3443
3326
|
const ret = result;
|
3444
3327
|
return ret;
|
3445
3328
|
};
|
3446
|
-
imports.wbg.
|
3329
|
+
imports.wbg.__wbg_welcomebundle_new = function(arg0) {
|
3330
|
+
const ret = WelcomeBundle.__wrap(arg0);
|
3331
|
+
return ret;
|
3332
|
+
};
|
3333
|
+
imports.wbg.__wbg_wireidentity_new = function(arg0) {
|
3334
|
+
const ret = WireIdentity.__wrap(arg0);
|
3335
|
+
return ret;
|
3336
|
+
};
|
3337
|
+
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
3338
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
3339
|
+
return ret;
|
3340
|
+
};
|
3341
|
+
imports.wbg.__wbindgen_cast_25a0a844437d0e92 = function(arg0, arg1) {
|
3342
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
3343
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
3344
|
+
const ret = v0;
|
3345
|
+
return ret;
|
3346
|
+
};
|
3347
|
+
imports.wbg.__wbindgen_cast_2e1c22bbccdbf7b5 = function(arg0, arg1) {
|
3348
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
3349
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
3350
|
+
const ret = v0;
|
3351
|
+
return ret;
|
3352
|
+
};
|
3353
|
+
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
3354
|
+
const ret = BigInt.asUintN(64, arg0);
|
3355
|
+
return ret;
|
3356
|
+
};
|
3357
|
+
imports.wbg.__wbindgen_cast_48a7b66c2e868dde = function(arg0, arg1) {
|
3358
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
3359
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
3360
|
+
const ret = v0;
|
3361
|
+
return ret;
|
3362
|
+
};
|
3363
|
+
imports.wbg.__wbindgen_cast_48fe37b70e8c9887 = function(arg0, arg1) {
|
3364
|
+
const ret = makeMutClosure(arg0, arg1, 2895, __wbg_adapter_16);
|
3365
|
+
return ret;
|
3366
|
+
};
|
3367
|
+
imports.wbg.__wbindgen_cast_77bc3e92745e9a35 = function(arg0, arg1) {
|
3447
3368
|
var v0 = getArrayU8FromWasm0(arg0, arg1).slice();
|
3448
3369
|
wasm.__wbindgen_free(arg0, arg1 * 1, 1);
|
3449
3370
|
const ret = v0;
|
3450
3371
|
return ret;
|
3451
3372
|
};
|
3373
|
+
imports.wbg.__wbindgen_cast_94027e6796063b55 = function(arg0, arg1) {
|
3374
|
+
const ret = makeMutClosure(arg0, arg1, 2585, __wbg_adapter_23);
|
3375
|
+
return ret;
|
3376
|
+
};
|
3377
|
+
imports.wbg.__wbindgen_cast_9fc7a20c1c18f267 = function(arg0, arg1) {
|
3378
|
+
const ret = makeMutClosure(arg0, arg1, 1018, __wbg_adapter_30);
|
3379
|
+
return ret;
|
3380
|
+
};
|
3381
|
+
imports.wbg.__wbindgen_cast_b77aa29fa8fe8560 = function(arg0, arg1) {
|
3382
|
+
var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();
|
3383
|
+
wasm.__wbindgen_free(arg0, arg1 * 4, 4);
|
3384
|
+
const ret = v0;
|
3385
|
+
return ret;
|
3386
|
+
};
|
3387
|
+
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
3388
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
3389
|
+
return ret;
|
3390
|
+
};
|
3391
|
+
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
3392
|
+
const ret = arg0;
|
3393
|
+
return ret;
|
3394
|
+
};
|
3395
|
+
imports.wbg.__wbindgen_init_externref_table = function() {
|
3396
|
+
const table = wasm.__wbindgen_export_4;
|
3397
|
+
const offset = table.grow(4);
|
3398
|
+
table.set(0, undefined);
|
3399
|
+
table.set(offset + 0, undefined);
|
3400
|
+
table.set(offset + 1, null);
|
3401
|
+
table.set(offset + 2, true);
|
3402
|
+
table.set(offset + 3, false);
|
3403
|
+
};
|
3452
3404
|
return imports;
|
3453
3405
|
}
|
3454
3406
|
function __wbg_init_memory(imports, memory) {}
|
@@ -3804,9 +3756,6 @@ class CoreCryptoContext2 {
|
|
3804
3756
|
throw CoreCryptoError.fromStdError(e);
|
3805
3757
|
}
|
3806
3758
|
}
|
3807
|
-
async proteusCryptoboxMigrate(storeName) {
|
3808
|
-
return await CoreCryptoError.asyncMapErr(this.#ctx.proteus_cryptobox_migrate(storeName));
|
3809
|
-
}
|
3810
3759
|
async e2eiNewEnrollment(clientId, displayName, handle, expirySec, ciphersuite, team) {
|
3811
3760
|
const e2ei = await CoreCryptoError.asyncMapErr(this.#ctx.e2ei_new_enrollment(clientId, displayName, handle, team, expirySec, ciphersuite));
|
3812
3761
|
return new E2eiEnrollment(e2ei);
|