@learncard/didkit-plugin 1.4.11 → 1.4.13
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/didkit/didkit_wasm.d.ts +135 -135
- package/dist/didkit/didkit_wasm.js +407 -393
- package/dist/didkit/didkit_wasm_bg.wasm +0 -0
- package/dist/didkit/didkit_wasm_bg.wasm.d.ts +2 -2
- package/dist/didkit-plugin.cjs.development.js +192 -152
- package/dist/didkit-plugin.cjs.development.js.map +2 -2
- package/dist/didkit-plugin.cjs.production.min.js +2 -2
- package/dist/didkit-plugin.cjs.production.min.js.map +3 -3
- package/dist/didkit-plugin.esm.js +191 -152
- package/dist/didkit-plugin.esm.js.map +2 -2
- package/dist/didkit_wasm.d.ts +135 -135
- package/dist/didkit_wasm.js +407 -393
- package/dist/didkit_wasm_bg.wasm +0 -0
- package/dist/didkit_wasm_bg.wasm.d.ts +2 -2
- package/package.json +3 -3
@@ -1,21 +1,21 @@
|
|
1
1
|
let wasm;
|
2
2
|
|
3
|
-
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } });
|
3
|
+
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
|
4
4
|
|
5
5
|
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
|
6
6
|
|
7
|
-
let
|
7
|
+
let cachedUint8ArrayMemory0 = null;
|
8
8
|
|
9
|
-
function
|
10
|
-
if (
|
11
|
-
|
9
|
+
function getUint8ArrayMemory0() {
|
10
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
11
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
12
12
|
}
|
13
|
-
return
|
13
|
+
return cachedUint8ArrayMemory0;
|
14
14
|
}
|
15
15
|
|
16
16
|
function getStringFromWasm0(ptr, len) {
|
17
17
|
ptr = ptr >>> 0;
|
18
|
-
return cachedTextDecoder.decode(
|
18
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
19
19
|
}
|
20
20
|
|
21
21
|
const heap = new Array(128).fill(undefined);
|
@@ -49,27 +49,27 @@ function takeObject(idx) {
|
|
49
49
|
|
50
50
|
let WASM_VECTOR_LEN = 0;
|
51
51
|
|
52
|
-
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } });
|
52
|
+
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
|
53
53
|
|
54
54
|
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
55
55
|
? function (arg, view) {
|
56
|
-
|
57
|
-
|
56
|
+
return cachedTextEncoder.encodeInto(arg, view);
|
57
|
+
}
|
58
58
|
: function (arg, view) {
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
59
|
+
const buf = cachedTextEncoder.encode(arg);
|
60
|
+
view.set(buf);
|
61
|
+
return {
|
62
|
+
read: arg.length,
|
63
|
+
written: buf.length
|
64
|
+
};
|
65
|
+
});
|
66
66
|
|
67
67
|
function passStringToWasm0(arg, malloc, realloc) {
|
68
68
|
|
69
69
|
if (realloc === undefined) {
|
70
70
|
const buf = cachedTextEncoder.encode(arg);
|
71
71
|
const ptr = malloc(buf.length, 1) >>> 0;
|
72
|
-
|
72
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
73
73
|
WASM_VECTOR_LEN = buf.length;
|
74
74
|
return ptr;
|
75
75
|
}
|
@@ -77,7 +77,7 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
77
77
|
let len = arg.length;
|
78
78
|
let ptr = malloc(len, 1) >>> 0;
|
79
79
|
|
80
|
-
const mem =
|
80
|
+
const mem = getUint8ArrayMemory0();
|
81
81
|
|
82
82
|
let offset = 0;
|
83
83
|
|
@@ -92,10 +92,11 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
92
92
|
arg = arg.slice(offset);
|
93
93
|
}
|
94
94
|
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
95
|
-
const view =
|
95
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
96
96
|
const ret = encodeString(arg, view);
|
97
97
|
|
98
98
|
offset += ret.written;
|
99
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
99
100
|
}
|
100
101
|
|
101
102
|
WASM_VECTOR_LEN = offset;
|
@@ -106,20 +107,20 @@ function isLikeNone(x) {
|
|
106
107
|
return x === undefined || x === null;
|
107
108
|
}
|
108
109
|
|
109
|
-
let
|
110
|
+
let cachedDataViewMemory0 = null;
|
110
111
|
|
111
|
-
function
|
112
|
-
if (
|
113
|
-
|
112
|
+
function getDataViewMemory0() {
|
113
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
114
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
114
115
|
}
|
115
|
-
return
|
116
|
+
return cachedDataViewMemory0;
|
116
117
|
}
|
117
118
|
|
118
119
|
function debugString(val) {
|
119
120
|
// primitive types
|
120
121
|
const type = typeof val;
|
121
122
|
if (type == 'number' || type == 'boolean' || val == null) {
|
122
|
-
return
|
123
|
+
return `${val}`;
|
123
124
|
}
|
124
125
|
if (type == 'string') {
|
125
126
|
return `"${val}"`;
|
@@ -147,7 +148,7 @@ function debugString(val) {
|
|
147
148
|
if (length > 0) {
|
148
149
|
debug += debugString(val[0]);
|
149
150
|
}
|
150
|
-
for
|
151
|
+
for(let i = 1; i < length; i++) {
|
151
152
|
debug += ', ' + debugString(val[i]);
|
152
153
|
}
|
153
154
|
debug += ']';
|
@@ -180,6 +181,12 @@ function debugString(val) {
|
|
180
181
|
return className;
|
181
182
|
}
|
182
183
|
|
184
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
185
|
+
? { register: () => {}, unregister: () => {} }
|
186
|
+
: new FinalizationRegistry(state => {
|
187
|
+
wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b)
|
188
|
+
});
|
189
|
+
|
183
190
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
184
191
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
185
192
|
const real = (...args) => {
|
@@ -194,31 +201,31 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
194
201
|
} finally {
|
195
202
|
if (--state.cnt === 0) {
|
196
203
|
wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
|
197
|
-
|
204
|
+
CLOSURE_DTORS.unregister(state);
|
198
205
|
} else {
|
199
206
|
state.a = a;
|
200
207
|
}
|
201
208
|
}
|
202
209
|
};
|
203
210
|
real.original = state;
|
204
|
-
|
211
|
+
CLOSURE_DTORS.register(real, state, state);
|
205
212
|
return real;
|
206
213
|
}
|
207
214
|
function __wbg_adapter_26(arg0, arg1, arg2) {
|
208
|
-
wasm.
|
215
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbfea49efa319d6a8(arg0, arg1, addHeapObject(arg2));
|
209
216
|
}
|
210
217
|
|
211
218
|
/**
|
212
|
-
* @returns {string}
|
213
|
-
*/
|
219
|
+
* @returns {string}
|
220
|
+
*/
|
214
221
|
export function getVersion() {
|
215
222
|
let deferred1_0;
|
216
223
|
let deferred1_1;
|
217
224
|
try {
|
218
225
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
219
226
|
wasm.getVersion(retptr);
|
220
|
-
var r0 =
|
221
|
-
var r1 =
|
227
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
228
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
222
229
|
deferred1_0 = r0;
|
223
230
|
deferred1_1 = r1;
|
224
231
|
return getStringFromWasm0(r0, r1);
|
@@ -229,10 +236,10 @@ export function getVersion() {
|
|
229
236
|
}
|
230
237
|
|
231
238
|
/**
|
232
|
-
* @param {string} did
|
233
|
-
* @param {string} input_metadata
|
234
|
-
* @returns {Promise<any>}
|
235
|
-
*/
|
239
|
+
* @param {string} did
|
240
|
+
* @param {string} input_metadata
|
241
|
+
* @returns {Promise<any>}
|
242
|
+
*/
|
236
243
|
export function didResolver(did, input_metadata) {
|
237
244
|
const ptr0 = passStringToWasm0(did, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
238
245
|
const len0 = WASM_VECTOR_LEN;
|
@@ -243,10 +250,10 @@ export function didResolver(did, input_metadata) {
|
|
243
250
|
}
|
244
251
|
|
245
252
|
/**
|
246
|
-
* @param {string} did
|
247
|
-
* @param {string} input_metadata
|
248
|
-
* @returns {Promise<any>}
|
249
|
-
*/
|
253
|
+
* @param {string} did
|
254
|
+
* @param {string} input_metadata
|
255
|
+
* @returns {Promise<any>}
|
256
|
+
*/
|
250
257
|
export function resolveDID(did, input_metadata) {
|
251
258
|
const ptr0 = passStringToWasm0(did, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
252
259
|
const len0 = WASM_VECTOR_LEN;
|
@@ -257,18 +264,18 @@ export function resolveDID(did, input_metadata) {
|
|
257
264
|
}
|
258
265
|
|
259
266
|
/**
|
260
|
-
* @returns {string}
|
261
|
-
*/
|
267
|
+
* @returns {string}
|
268
|
+
*/
|
262
269
|
export function generateEd25519Key() {
|
263
270
|
let deferred2_0;
|
264
271
|
let deferred2_1;
|
265
272
|
try {
|
266
273
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
267
274
|
wasm.generateEd25519Key(retptr);
|
268
|
-
var r0 =
|
269
|
-
var r1 =
|
270
|
-
var r2 =
|
271
|
-
var r3 =
|
275
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
276
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
277
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
278
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
272
279
|
var ptr1 = r0;
|
273
280
|
var len1 = r1;
|
274
281
|
if (r3) {
|
@@ -286,14 +293,14 @@ export function generateEd25519Key() {
|
|
286
293
|
|
287
294
|
function passArray8ToWasm0(arg, malloc) {
|
288
295
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
289
|
-
|
296
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
290
297
|
WASM_VECTOR_LEN = arg.length;
|
291
298
|
return ptr;
|
292
299
|
}
|
293
300
|
/**
|
294
|
-
* @param {Uint8Array} bytes
|
295
|
-
* @returns {string}
|
296
|
-
*/
|
301
|
+
* @param {Uint8Array} bytes
|
302
|
+
* @returns {string}
|
303
|
+
*/
|
297
304
|
export function generateEd25519KeyFromBytes(bytes) {
|
298
305
|
let deferred3_0;
|
299
306
|
let deferred3_1;
|
@@ -302,10 +309,10 @@ export function generateEd25519KeyFromBytes(bytes) {
|
|
302
309
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
303
310
|
const len0 = WASM_VECTOR_LEN;
|
304
311
|
wasm.generateEd25519KeyFromBytes(retptr, ptr0, len0);
|
305
|
-
var r0 =
|
306
|
-
var r1 =
|
307
|
-
var r2 =
|
308
|
-
var r3 =
|
312
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
313
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
314
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
315
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
309
316
|
var ptr2 = r0;
|
310
317
|
var len2 = r1;
|
311
318
|
if (r3) {
|
@@ -322,18 +329,18 @@ export function generateEd25519KeyFromBytes(bytes) {
|
|
322
329
|
}
|
323
330
|
|
324
331
|
/**
|
325
|
-
* @returns {string}
|
326
|
-
*/
|
332
|
+
* @returns {string}
|
333
|
+
*/
|
327
334
|
export function generateSecp256k1Key() {
|
328
335
|
let deferred2_0;
|
329
336
|
let deferred2_1;
|
330
337
|
try {
|
331
338
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
332
339
|
wasm.generateSecp256k1Key(retptr);
|
333
|
-
var r0 =
|
334
|
-
var r1 =
|
335
|
-
var r2 =
|
336
|
-
var r3 =
|
340
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
341
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
342
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
343
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
337
344
|
var ptr1 = r0;
|
338
345
|
var len1 = r1;
|
339
346
|
if (r3) {
|
@@ -350,9 +357,9 @@ export function generateSecp256k1Key() {
|
|
350
357
|
}
|
351
358
|
|
352
359
|
/**
|
353
|
-
* @param {Uint8Array} bytes
|
354
|
-
* @returns {string}
|
355
|
-
*/
|
360
|
+
* @param {Uint8Array} bytes
|
361
|
+
* @returns {string}
|
362
|
+
*/
|
356
363
|
export function generateSecp256k1KeyFromBytes(bytes) {
|
357
364
|
let deferred3_0;
|
358
365
|
let deferred3_1;
|
@@ -361,10 +368,10 @@ export function generateSecp256k1KeyFromBytes(bytes) {
|
|
361
368
|
const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_malloc);
|
362
369
|
const len0 = WASM_VECTOR_LEN;
|
363
370
|
wasm.generateSecp256k1KeyFromBytes(retptr, ptr0, len0);
|
364
|
-
var r0 =
|
365
|
-
var r1 =
|
366
|
-
var r2 =
|
367
|
-
var r3 =
|
371
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
372
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
373
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
374
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
368
375
|
var ptr2 = r0;
|
369
376
|
var len2 = r1;
|
370
377
|
if (r3) {
|
@@ -381,10 +388,10 @@ export function generateSecp256k1KeyFromBytes(bytes) {
|
|
381
388
|
}
|
382
389
|
|
383
390
|
/**
|
384
|
-
* @param {string} method_pattern
|
385
|
-
* @param {string} jwk
|
386
|
-
* @returns {string}
|
387
|
-
*/
|
391
|
+
* @param {string} method_pattern
|
392
|
+
* @param {string} jwk
|
393
|
+
* @returns {string}
|
394
|
+
*/
|
388
395
|
export function keyToDID(method_pattern, jwk) {
|
389
396
|
let deferred4_0;
|
390
397
|
let deferred4_1;
|
@@ -395,10 +402,10 @@ export function keyToDID(method_pattern, jwk) {
|
|
395
402
|
const ptr1 = passStringToWasm0(jwk, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
396
403
|
const len1 = WASM_VECTOR_LEN;
|
397
404
|
wasm.keyToDID(retptr, ptr0, len0, ptr1, len1);
|
398
|
-
var r0 =
|
399
|
-
var r1 =
|
400
|
-
var r2 =
|
401
|
-
var r3 =
|
405
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
406
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
407
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
408
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
402
409
|
var ptr3 = r0;
|
403
410
|
var len3 = r1;
|
404
411
|
if (r3) {
|
@@ -415,10 +422,10 @@ export function keyToDID(method_pattern, jwk) {
|
|
415
422
|
}
|
416
423
|
|
417
424
|
/**
|
418
|
-
* @param {string} method_pattern
|
419
|
-
* @param {string} jwk
|
420
|
-
* @returns {Promise<any>}
|
421
|
-
*/
|
425
|
+
* @param {string} method_pattern
|
426
|
+
* @param {string} jwk
|
427
|
+
* @returns {Promise<any>}
|
428
|
+
*/
|
422
429
|
export function keyToVerificationMethod(method_pattern, jwk) {
|
423
430
|
const ptr0 = passStringToWasm0(method_pattern, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
424
431
|
const len0 = WASM_VECTOR_LEN;
|
@@ -429,9 +436,9 @@ export function keyToVerificationMethod(method_pattern, jwk) {
|
|
429
436
|
}
|
430
437
|
|
431
438
|
/**
|
432
|
-
* @param {string} did
|
433
|
-
* @returns {Promise<any>}
|
434
|
-
*/
|
439
|
+
* @param {string} did
|
440
|
+
* @returns {Promise<any>}
|
441
|
+
*/
|
435
442
|
export function didToVerificationMethod(did) {
|
436
443
|
const ptr0 = passStringToWasm0(did, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
437
444
|
const len0 = WASM_VECTOR_LEN;
|
@@ -440,12 +447,12 @@ export function didToVerificationMethod(did) {
|
|
440
447
|
}
|
441
448
|
|
442
449
|
/**
|
443
|
-
* @param {string} credential
|
444
|
-
* @param {string} proof_options
|
445
|
-
* @param {string} key
|
446
|
-
* @param {string} context_map
|
447
|
-
* @returns {Promise<any>}
|
448
|
-
*/
|
450
|
+
* @param {string} credential
|
451
|
+
* @param {string} proof_options
|
452
|
+
* @param {string} key
|
453
|
+
* @param {string} context_map
|
454
|
+
* @returns {Promise<any>}
|
455
|
+
*/
|
449
456
|
export function issueCredential(credential, proof_options, key, context_map) {
|
450
457
|
const ptr0 = passStringToWasm0(credential, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
451
458
|
const len0 = WASM_VECTOR_LEN;
|
@@ -460,11 +467,11 @@ export function issueCredential(credential, proof_options, key, context_map) {
|
|
460
467
|
}
|
461
468
|
|
462
469
|
/**
|
463
|
-
* @param {string} credential
|
464
|
-
* @param {string} linked_data_proof_options
|
465
|
-
* @param {string} public_key
|
466
|
-
* @returns {Promise<any>}
|
467
|
-
*/
|
470
|
+
* @param {string} credential
|
471
|
+
* @param {string} linked_data_proof_options
|
472
|
+
* @param {string} public_key
|
473
|
+
* @returns {Promise<any>}
|
474
|
+
*/
|
468
475
|
export function prepareIssueCredential(credential, linked_data_proof_options, public_key) {
|
469
476
|
const ptr0 = passStringToWasm0(credential, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
470
477
|
const len0 = WASM_VECTOR_LEN;
|
@@ -477,11 +484,11 @@ export function prepareIssueCredential(credential, linked_data_proof_options, pu
|
|
477
484
|
}
|
478
485
|
|
479
486
|
/**
|
480
|
-
* @param {string} credential
|
481
|
-
* @param {string} preparation
|
482
|
-
* @param {string} signature
|
483
|
-
* @returns {Promise<any>}
|
484
|
-
*/
|
487
|
+
* @param {string} credential
|
488
|
+
* @param {string} preparation
|
489
|
+
* @param {string} signature
|
490
|
+
* @returns {Promise<any>}
|
491
|
+
*/
|
485
492
|
export function completeIssueCredential(credential, preparation, signature) {
|
486
493
|
const ptr0 = passStringToWasm0(credential, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
487
494
|
const len0 = WASM_VECTOR_LEN;
|
@@ -494,11 +501,11 @@ export function completeIssueCredential(credential, preparation, signature) {
|
|
494
501
|
}
|
495
502
|
|
496
503
|
/**
|
497
|
-
* @param {string} vc
|
498
|
-
* @param {string} proof_options
|
499
|
-
* @param {string} context_map
|
500
|
-
* @returns {Promise<any>}
|
501
|
-
*/
|
504
|
+
* @param {string} vc
|
505
|
+
* @param {string} proof_options
|
506
|
+
* @param {string} context_map
|
507
|
+
* @returns {Promise<any>}
|
508
|
+
*/
|
502
509
|
export function verifyCredential(vc, proof_options, context_map) {
|
503
510
|
const ptr0 = passStringToWasm0(vc, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
504
511
|
const len0 = WASM_VECTOR_LEN;
|
@@ -511,12 +518,12 @@ export function verifyCredential(vc, proof_options, context_map) {
|
|
511
518
|
}
|
512
519
|
|
513
520
|
/**
|
514
|
-
* @param {string} presentation
|
515
|
-
* @param {string} proof_options
|
516
|
-
* @param {string} key
|
517
|
-
* @param {string} context_map
|
518
|
-
* @returns {Promise<any>}
|
519
|
-
*/
|
521
|
+
* @param {string} presentation
|
522
|
+
* @param {string} proof_options
|
523
|
+
* @param {string} key
|
524
|
+
* @param {string} context_map
|
525
|
+
* @returns {Promise<any>}
|
526
|
+
*/
|
520
527
|
export function issuePresentation(presentation, proof_options, key, context_map) {
|
521
528
|
const ptr0 = passStringToWasm0(presentation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
522
529
|
const len0 = WASM_VECTOR_LEN;
|
@@ -531,11 +538,11 @@ export function issuePresentation(presentation, proof_options, key, context_map)
|
|
531
538
|
}
|
532
539
|
|
533
540
|
/**
|
534
|
-
* @param {string} presentation
|
535
|
-
* @param {string} linked_data_proof_options
|
536
|
-
* @param {string} public_key
|
537
|
-
* @returns {Promise<any>}
|
538
|
-
*/
|
541
|
+
* @param {string} presentation
|
542
|
+
* @param {string} linked_data_proof_options
|
543
|
+
* @param {string} public_key
|
544
|
+
* @returns {Promise<any>}
|
545
|
+
*/
|
539
546
|
export function prepareIssuePresentation(presentation, linked_data_proof_options, public_key) {
|
540
547
|
const ptr0 = passStringToWasm0(presentation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
541
548
|
const len0 = WASM_VECTOR_LEN;
|
@@ -548,11 +555,11 @@ export function prepareIssuePresentation(presentation, linked_data_proof_options
|
|
548
555
|
}
|
549
556
|
|
550
557
|
/**
|
551
|
-
* @param {string} presentation
|
552
|
-
* @param {string} preparation
|
553
|
-
* @param {string} signature
|
554
|
-
* @returns {Promise<any>}
|
555
|
-
*/
|
558
|
+
* @param {string} presentation
|
559
|
+
* @param {string} preparation
|
560
|
+
* @param {string} signature
|
561
|
+
* @returns {Promise<any>}
|
562
|
+
*/
|
556
563
|
export function completeIssuePresentation(presentation, preparation, signature) {
|
557
564
|
const ptr0 = passStringToWasm0(presentation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
558
565
|
const len0 = WASM_VECTOR_LEN;
|
@@ -565,11 +572,11 @@ export function completeIssuePresentation(presentation, preparation, signature)
|
|
565
572
|
}
|
566
573
|
|
567
574
|
/**
|
568
|
-
* @param {string} vp
|
569
|
-
* @param {string} proof_options
|
570
|
-
* @param {string} context_map
|
571
|
-
* @returns {Promise<any>}
|
572
|
-
*/
|
575
|
+
* @param {string} vp
|
576
|
+
* @param {string} proof_options
|
577
|
+
* @param {string} context_map
|
578
|
+
* @returns {Promise<any>}
|
579
|
+
*/
|
573
580
|
export function verifyPresentation(vp, proof_options, context_map) {
|
574
581
|
const ptr0 = passStringToWasm0(vp, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
575
582
|
const len0 = WASM_VECTOR_LEN;
|
@@ -582,12 +589,12 @@ export function verifyPresentation(vp, proof_options, context_map) {
|
|
582
589
|
}
|
583
590
|
|
584
591
|
/**
|
585
|
-
* @param {string} holder
|
586
|
-
* @param {string} linked_data_proof_options
|
587
|
-
* @param {string} key
|
588
|
-
* @param {string} context_map
|
589
|
-
* @returns {Promise<any>}
|
590
|
-
*/
|
592
|
+
* @param {string} holder
|
593
|
+
* @param {string} linked_data_proof_options
|
594
|
+
* @param {string} key
|
595
|
+
* @param {string} context_map
|
596
|
+
* @returns {Promise<any>}
|
597
|
+
*/
|
591
598
|
export function DIDAuth(holder, linked_data_proof_options, key, context_map) {
|
592
599
|
const ptr0 = passStringToWasm0(holder, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
593
600
|
const len0 = WASM_VECTOR_LEN;
|
@@ -602,9 +609,9 @@ export function DIDAuth(holder, linked_data_proof_options, key, context_map) {
|
|
602
609
|
}
|
603
610
|
|
604
611
|
/**
|
605
|
-
* @param {string} tz
|
606
|
-
* @returns {Promise<any>}
|
607
|
-
*/
|
612
|
+
* @param {string} tz
|
613
|
+
* @returns {Promise<any>}
|
614
|
+
*/
|
608
615
|
export function JWKFromTezos(tz) {
|
609
616
|
const ptr0 = passStringToWasm0(tz, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
610
617
|
const len0 = WASM_VECTOR_LEN;
|
@@ -613,12 +620,12 @@ export function JWKFromTezos(tz) {
|
|
613
620
|
}
|
614
621
|
|
615
622
|
/**
|
616
|
-
* @param {string} capability
|
617
|
-
* @param {string} linked_data_proof_options
|
618
|
-
* @param {string} parents
|
619
|
-
* @param {string} key
|
620
|
-
* @returns {Promise<any>}
|
621
|
-
*/
|
623
|
+
* @param {string} capability
|
624
|
+
* @param {string} linked_data_proof_options
|
625
|
+
* @param {string} parents
|
626
|
+
* @param {string} key
|
627
|
+
* @returns {Promise<any>}
|
628
|
+
*/
|
622
629
|
export function delegateCapability(capability, linked_data_proof_options, parents, key) {
|
623
630
|
const ptr0 = passStringToWasm0(capability, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
624
631
|
const len0 = WASM_VECTOR_LEN;
|
@@ -633,12 +640,12 @@ export function delegateCapability(capability, linked_data_proof_options, parent
|
|
633
640
|
}
|
634
641
|
|
635
642
|
/**
|
636
|
-
* @param {string} capability
|
637
|
-
* @param {string} linked_data_proof_options
|
638
|
-
* @param {string} parents
|
639
|
-
* @param {string} public_key
|
640
|
-
* @returns {Promise<any>}
|
641
|
-
*/
|
643
|
+
* @param {string} capability
|
644
|
+
* @param {string} linked_data_proof_options
|
645
|
+
* @param {string} parents
|
646
|
+
* @param {string} public_key
|
647
|
+
* @returns {Promise<any>}
|
648
|
+
*/
|
642
649
|
export function prepareDelegateCapability(capability, linked_data_proof_options, parents, public_key) {
|
643
650
|
const ptr0 = passStringToWasm0(capability, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
644
651
|
const len0 = WASM_VECTOR_LEN;
|
@@ -653,11 +660,11 @@ export function prepareDelegateCapability(capability, linked_data_proof_options,
|
|
653
660
|
}
|
654
661
|
|
655
662
|
/**
|
656
|
-
* @param {string} capability
|
657
|
-
* @param {string} preparation
|
658
|
-
* @param {string} signature
|
659
|
-
* @returns {Promise<any>}
|
660
|
-
*/
|
663
|
+
* @param {string} capability
|
664
|
+
* @param {string} preparation
|
665
|
+
* @param {string} signature
|
666
|
+
* @returns {Promise<any>}
|
667
|
+
*/
|
661
668
|
export function completeDelegateCapability(capability, preparation, signature) {
|
662
669
|
const ptr0 = passStringToWasm0(capability, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
663
670
|
const len0 = WASM_VECTOR_LEN;
|
@@ -670,9 +677,9 @@ export function completeDelegateCapability(capability, preparation, signature) {
|
|
670
677
|
}
|
671
678
|
|
672
679
|
/**
|
673
|
-
* @param {string} delegation
|
674
|
-
* @returns {Promise<any>}
|
675
|
-
*/
|
680
|
+
* @param {string} delegation
|
681
|
+
* @returns {Promise<any>}
|
682
|
+
*/
|
676
683
|
export function verifyDelegation(delegation) {
|
677
684
|
const ptr0 = passStringToWasm0(delegation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
678
685
|
const len0 = WASM_VECTOR_LEN;
|
@@ -681,12 +688,12 @@ export function verifyDelegation(delegation) {
|
|
681
688
|
}
|
682
689
|
|
683
690
|
/**
|
684
|
-
* @param {string} invocation
|
685
|
-
* @param {string} target_id
|
686
|
-
* @param {string} linked_data_proof_options
|
687
|
-
* @param {string} key
|
688
|
-
* @returns {Promise<any>}
|
689
|
-
*/
|
691
|
+
* @param {string} invocation
|
692
|
+
* @param {string} target_id
|
693
|
+
* @param {string} linked_data_proof_options
|
694
|
+
* @param {string} key
|
695
|
+
* @returns {Promise<any>}
|
696
|
+
*/
|
690
697
|
export function invokeCapability(invocation, target_id, linked_data_proof_options, key) {
|
691
698
|
const ptr0 = passStringToWasm0(invocation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
692
699
|
const len0 = WASM_VECTOR_LEN;
|
@@ -701,12 +708,12 @@ export function invokeCapability(invocation, target_id, linked_data_proof_option
|
|
701
708
|
}
|
702
709
|
|
703
710
|
/**
|
704
|
-
* @param {string} invocation
|
705
|
-
* @param {string} target_id
|
706
|
-
* @param {string} linked_data_proof_options
|
707
|
-
* @param {string} public_key
|
708
|
-
* @returns {Promise<any>}
|
709
|
-
*/
|
711
|
+
* @param {string} invocation
|
712
|
+
* @param {string} target_id
|
713
|
+
* @param {string} linked_data_proof_options
|
714
|
+
* @param {string} public_key
|
715
|
+
* @returns {Promise<any>}
|
716
|
+
*/
|
710
717
|
export function prepareInvokeCapability(invocation, target_id, linked_data_proof_options, public_key) {
|
711
718
|
const ptr0 = passStringToWasm0(invocation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
712
719
|
const len0 = WASM_VECTOR_LEN;
|
@@ -721,11 +728,11 @@ export function prepareInvokeCapability(invocation, target_id, linked_data_proof
|
|
721
728
|
}
|
722
729
|
|
723
730
|
/**
|
724
|
-
* @param {string} invocation
|
725
|
-
* @param {string} preparation
|
726
|
-
* @param {string} signature
|
727
|
-
* @returns {Promise<any>}
|
728
|
-
*/
|
731
|
+
* @param {string} invocation
|
732
|
+
* @param {string} preparation
|
733
|
+
* @param {string} signature
|
734
|
+
* @returns {Promise<any>}
|
735
|
+
*/
|
729
736
|
export function completeInvokeCapability(invocation, preparation, signature) {
|
730
737
|
const ptr0 = passStringToWasm0(invocation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
731
738
|
const len0 = WASM_VECTOR_LEN;
|
@@ -738,9 +745,9 @@ export function completeInvokeCapability(invocation, preparation, signature) {
|
|
738
745
|
}
|
739
746
|
|
740
747
|
/**
|
741
|
-
* @param {string} invocation
|
742
|
-
* @returns {Promise<any>}
|
743
|
-
*/
|
748
|
+
* @param {string} invocation
|
749
|
+
* @returns {Promise<any>}
|
750
|
+
*/
|
744
751
|
export function verifyInvocationSignature(invocation) {
|
745
752
|
const ptr0 = passStringToWasm0(invocation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
746
753
|
const len0 = WASM_VECTOR_LEN;
|
@@ -749,10 +756,10 @@ export function verifyInvocationSignature(invocation) {
|
|
749
756
|
}
|
750
757
|
|
751
758
|
/**
|
752
|
-
* @param {string} invocation
|
753
|
-
* @param {string} delegation
|
754
|
-
* @returns {Promise<any>}
|
755
|
-
*/
|
759
|
+
* @param {string} invocation
|
760
|
+
* @param {string} delegation
|
761
|
+
* @returns {Promise<any>}
|
762
|
+
*/
|
756
763
|
export function verifyInvocation(invocation, delegation) {
|
757
764
|
const ptr0 = passStringToWasm0(invocation, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
758
765
|
const len0 = WASM_VECTOR_LEN;
|
@@ -763,9 +770,9 @@ export function verifyInvocation(invocation, delegation) {
|
|
763
770
|
}
|
764
771
|
|
765
772
|
/**
|
766
|
-
* @param {string} url
|
767
|
-
* @returns {Promise<any>}
|
768
|
-
*/
|
773
|
+
* @param {string} url
|
774
|
+
* @returns {Promise<any>}
|
775
|
+
*/
|
769
776
|
export function contextLoader(url) {
|
770
777
|
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
771
778
|
const len0 = WASM_VECTOR_LEN;
|
@@ -783,12 +790,16 @@ function handleError(f, args) {
|
|
783
790
|
|
784
791
|
function getArrayU8FromWasm0(ptr, len) {
|
785
792
|
ptr = ptr >>> 0;
|
786
|
-
return
|
793
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
787
794
|
}
|
788
|
-
function
|
789
|
-
wasm.
|
795
|
+
function __wbg_adapter_155(arg0, arg1, arg2, arg3) {
|
796
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h7f21b3df1bf974ab(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
790
797
|
}
|
791
798
|
|
799
|
+
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
800
|
+
|
801
|
+
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
802
|
+
|
792
803
|
async function __wbg_load(module, imports) {
|
793
804
|
if (typeof Response === 'function' && module instanceof Response) {
|
794
805
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
@@ -797,7 +808,7 @@ async function __wbg_load(module, imports) {
|
|
797
808
|
|
798
809
|
} catch (e) {
|
799
810
|
if (module.headers.get('Content-Type') != 'application/wasm') {
|
800
|
-
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve
|
811
|
+
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);
|
801
812
|
|
802
813
|
} else {
|
803
814
|
throw e;
|
@@ -823,14 +834,14 @@ async function __wbg_load(module, imports) {
|
|
823
834
|
function __wbg_get_imports() {
|
824
835
|
const imports = {};
|
825
836
|
imports.wbg = {};
|
826
|
-
imports.wbg.__wbindgen_string_new = function
|
837
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
827
838
|
const ret = getStringFromWasm0(arg0, arg1);
|
828
839
|
return addHeapObject(ret);
|
829
840
|
};
|
830
|
-
imports.wbg.__wbindgen_object_drop_ref = function
|
841
|
+
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
831
842
|
takeObject(arg0);
|
832
843
|
};
|
833
|
-
imports.wbg.__wbindgen_cb_drop = function
|
844
|
+
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
834
845
|
const obj = takeObject(arg0).original;
|
835
846
|
if (obj.cnt-- == 1) {
|
836
847
|
obj.a = 0;
|
@@ -839,264 +850,255 @@ function __wbg_get_imports() {
|
|
839
850
|
const ret = false;
|
840
851
|
return ret;
|
841
852
|
};
|
842
|
-
imports.wbg.__wbindgen_object_clone_ref = function
|
853
|
+
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
843
854
|
const ret = getObject(arg0);
|
844
855
|
return addHeapObject(ret);
|
845
856
|
};
|
846
|
-
imports.wbg.
|
857
|
+
imports.wbg.__wbg_fetch_bc7c8e27076a5c84 = function(arg0) {
|
847
858
|
const ret = fetch(getObject(arg0));
|
848
859
|
return addHeapObject(ret);
|
849
860
|
};
|
850
|
-
imports.wbg.
|
861
|
+
imports.wbg.__wbg_queueMicrotask_848aa4969108a57e = function(arg0) {
|
862
|
+
const ret = getObject(arg0).queueMicrotask;
|
863
|
+
return addHeapObject(ret);
|
864
|
+
};
|
865
|
+
imports.wbg.__wbindgen_is_function = function(arg0) {
|
866
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
867
|
+
return ret;
|
868
|
+
};
|
869
|
+
imports.wbg.__wbg_queueMicrotask_c5419c06eab41e73 = function(arg0) {
|
870
|
+
queueMicrotask(getObject(arg0));
|
871
|
+
};
|
872
|
+
imports.wbg.__wbg_fetch_1fdc4448ed9eec00 = function(arg0, arg1) {
|
851
873
|
const ret = getObject(arg0).fetch(getObject(arg1));
|
852
874
|
return addHeapObject(ret);
|
853
875
|
};
|
854
|
-
imports.wbg.
|
876
|
+
imports.wbg.__wbg_setbody_aa8b691bec428bf4 = function(arg0, arg1) {
|
877
|
+
getObject(arg0).body = getObject(arg1);
|
878
|
+
};
|
879
|
+
imports.wbg.__wbg_setcredentials_a4e661320cdb9738 = function(arg0, arg1) {
|
880
|
+
getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
|
881
|
+
};
|
882
|
+
imports.wbg.__wbg_setheaders_f5205d36e423a544 = function(arg0, arg1) {
|
883
|
+
getObject(arg0).headers = getObject(arg1);
|
884
|
+
};
|
885
|
+
imports.wbg.__wbg_setmethod_ce2da76000b02f6a = function(arg0, arg1, arg2) {
|
886
|
+
getObject(arg0).method = getStringFromWasm0(arg1, arg2);
|
887
|
+
};
|
888
|
+
imports.wbg.__wbg_setmode_4919fd636102c586 = function(arg0, arg1) {
|
889
|
+
getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];
|
890
|
+
};
|
891
|
+
imports.wbg.__wbg_setsignal_812ccb8269a7fd90 = function(arg0, arg1) {
|
892
|
+
getObject(arg0).signal = getObject(arg1);
|
893
|
+
};
|
894
|
+
imports.wbg.__wbg_signal_9acfcec9e7dffc22 = function(arg0) {
|
895
|
+
const ret = getObject(arg0).signal;
|
896
|
+
return addHeapObject(ret);
|
897
|
+
};
|
898
|
+
imports.wbg.__wbg_new_75169ae5a9683c55 = function() { return handleError(function () {
|
899
|
+
const ret = new AbortController();
|
900
|
+
return addHeapObject(ret);
|
901
|
+
}, arguments) };
|
902
|
+
imports.wbg.__wbg_abort_c57daab47a6c1215 = function(arg0) {
|
903
|
+
getObject(arg0).abort();
|
904
|
+
};
|
905
|
+
imports.wbg.__wbg_newwithstrandinit_4b92c89af0a8e383 = function() { return handleError(function (arg0, arg1, arg2) {
|
906
|
+
const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
907
|
+
return addHeapObject(ret);
|
908
|
+
}, arguments) };
|
909
|
+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
910
|
+
const obj = getObject(arg1);
|
911
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
912
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
913
|
+
var len1 = WASM_VECTOR_LEN;
|
914
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
915
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
916
|
+
};
|
917
|
+
imports.wbg.__wbg_new_a9ae04a5200606a5 = function() { return handleError(function () {
|
918
|
+
const ret = new Headers();
|
919
|
+
return addHeapObject(ret);
|
920
|
+
}, arguments) };
|
921
|
+
imports.wbg.__wbg_append_8b3e7f74a47ea7d5 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
922
|
+
getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
923
|
+
}, arguments) };
|
924
|
+
imports.wbg.__wbg_now_d3cbc9581625f686 = function(arg0) {
|
925
|
+
const ret = getObject(arg0).now();
|
926
|
+
return ret;
|
927
|
+
};
|
928
|
+
imports.wbg.__wbg_instanceof_Response_3c0e210a57ff751d = function(arg0) {
|
855
929
|
let result;
|
856
930
|
try {
|
857
931
|
result = getObject(arg0) instanceof Response;
|
858
|
-
} catch {
|
932
|
+
} catch (_) {
|
859
933
|
result = false;
|
860
934
|
}
|
861
935
|
const ret = result;
|
862
936
|
return ret;
|
863
937
|
};
|
864
|
-
imports.wbg.
|
938
|
+
imports.wbg.__wbg_url_58af972663531d16 = function(arg0, arg1) {
|
865
939
|
const ret = getObject(arg1).url;
|
866
940
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
867
941
|
const len1 = WASM_VECTOR_LEN;
|
868
|
-
|
869
|
-
|
942
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
943
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
870
944
|
};
|
871
|
-
imports.wbg.
|
945
|
+
imports.wbg.__wbg_status_5f4e900d22140a18 = function(arg0) {
|
872
946
|
const ret = getObject(arg0).status;
|
873
947
|
return ret;
|
874
948
|
};
|
875
|
-
imports.wbg.
|
949
|
+
imports.wbg.__wbg_headers_1b9bf90c73fae600 = function(arg0) {
|
876
950
|
const ret = getObject(arg0).headers;
|
877
951
|
return addHeapObject(ret);
|
878
952
|
};
|
879
|
-
imports.wbg.
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
imports.wbg.__wbg_newwithstrandinit_cad5cd6038c7ff5d = function () {
|
886
|
-
return handleError(function (arg0, arg1, arg2) {
|
887
|
-
const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
|
888
|
-
return addHeapObject(ret);
|
889
|
-
}, arguments)
|
890
|
-
};
|
891
|
-
imports.wbg.__wbg_now_0cfdc90c97d0c24b = function (arg0) {
|
892
|
-
const ret = getObject(arg0).now();
|
893
|
-
return ret;
|
894
|
-
};
|
895
|
-
imports.wbg.__wbg_new_1eead62f64ca15ce = function () {
|
896
|
-
return handleError(function () {
|
897
|
-
const ret = new Headers();
|
898
|
-
return addHeapObject(ret);
|
899
|
-
}, arguments)
|
900
|
-
};
|
901
|
-
imports.wbg.__wbg_append_fda9e3432e3e88da = function () {
|
902
|
-
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
903
|
-
getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
904
|
-
}, arguments)
|
905
|
-
};
|
906
|
-
imports.wbg.__wbg_signal_4bd18fb489af2d4c = function (arg0) {
|
907
|
-
const ret = getObject(arg0).signal;
|
953
|
+
imports.wbg.__wbg_arrayBuffer_144729e09879650e = function() { return handleError(function (arg0) {
|
954
|
+
const ret = getObject(arg0).arrayBuffer();
|
955
|
+
return addHeapObject(ret);
|
956
|
+
}, arguments) };
|
957
|
+
imports.wbg.__wbg_static_accessor_MODULE_ef3aa2eb251158a5 = function() {
|
958
|
+
const ret = module;
|
908
959
|
return addHeapObject(ret);
|
909
960
|
};
|
910
|
-
imports.wbg.
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
};
|
916
|
-
imports.wbg.__wbg_abort_654b796176d117aa = function (arg0) {
|
917
|
-
getObject(arg0).abort();
|
918
|
-
};
|
919
|
-
imports.wbg.__wbindgen_string_get = function (arg0, arg1) {
|
920
|
-
const obj = getObject(arg1);
|
921
|
-
const ret = typeof (obj) === 'string' ? obj : undefined;
|
922
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
923
|
-
var len1 = WASM_VECTOR_LEN;
|
924
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
925
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
926
|
-
};
|
927
|
-
imports.wbg.__wbg_self_7eede1f4488bf346 = function () {
|
928
|
-
return handleError(function () {
|
929
|
-
const ret = self.self;
|
930
|
-
return addHeapObject(ret);
|
931
|
-
}, arguments)
|
932
|
-
};
|
933
|
-
imports.wbg.__wbg_crypto_c909fb428dcbddb6 = function (arg0) {
|
961
|
+
imports.wbg.__wbg_self_7eede1f4488bf346 = function() { return handleError(function () {
|
962
|
+
const ret = self.self;
|
963
|
+
return addHeapObject(ret);
|
964
|
+
}, arguments) };
|
965
|
+
imports.wbg.__wbg_crypto_c909fb428dcbddb6 = function(arg0) {
|
934
966
|
const ret = getObject(arg0).crypto;
|
935
967
|
return addHeapObject(ret);
|
936
968
|
};
|
937
|
-
imports.wbg.__wbg_msCrypto_511eefefbfc70ae4 = function
|
969
|
+
imports.wbg.__wbg_msCrypto_511eefefbfc70ae4 = function(arg0) {
|
938
970
|
const ret = getObject(arg0).msCrypto;
|
939
971
|
return addHeapObject(ret);
|
940
972
|
};
|
941
|
-
imports.wbg.__wbindgen_is_undefined = function
|
973
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
942
974
|
const ret = getObject(arg0) === undefined;
|
943
975
|
return ret;
|
944
976
|
};
|
945
|
-
imports.wbg.
|
946
|
-
const ret = module;
|
947
|
-
return addHeapObject(ret);
|
948
|
-
};
|
949
|
-
imports.wbg.__wbg_require_900d5c3984fe7703 = function (arg0, arg1, arg2) {
|
977
|
+
imports.wbg.__wbg_require_900d5c3984fe7703 = function(arg0, arg1, arg2) {
|
950
978
|
const ret = getObject(arg0).require(getStringFromWasm0(arg1, arg2));
|
951
979
|
return addHeapObject(ret);
|
952
980
|
};
|
953
|
-
imports.wbg.__wbg_getRandomValues_307049345d0bd88c = function
|
981
|
+
imports.wbg.__wbg_getRandomValues_307049345d0bd88c = function(arg0) {
|
954
982
|
const ret = getObject(arg0).getRandomValues;
|
955
983
|
return addHeapObject(ret);
|
956
984
|
};
|
957
|
-
imports.wbg.__wbg_getRandomValues_cd175915511f705e = function
|
985
|
+
imports.wbg.__wbg_getRandomValues_cd175915511f705e = function(arg0, arg1) {
|
958
986
|
getObject(arg0).getRandomValues(getObject(arg1));
|
959
987
|
};
|
960
|
-
imports.wbg.__wbg_randomFillSync_85b3f4c52c56c313 = function
|
988
|
+
imports.wbg.__wbg_randomFillSync_85b3f4c52c56c313 = function(arg0, arg1, arg2) {
|
961
989
|
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
962
990
|
};
|
963
|
-
imports.wbg.
|
991
|
+
imports.wbg.__wbg_crypto_1d1f22824a6a080c = function(arg0) {
|
964
992
|
const ret = getObject(arg0).crypto;
|
965
993
|
return addHeapObject(ret);
|
966
994
|
};
|
967
|
-
imports.wbg.__wbindgen_is_object = function
|
995
|
+
imports.wbg.__wbindgen_is_object = function(arg0) {
|
968
996
|
const val = getObject(arg0);
|
969
|
-
const ret = typeof
|
997
|
+
const ret = typeof(val) === 'object' && val !== null;
|
970
998
|
return ret;
|
971
999
|
};
|
972
|
-
imports.wbg.
|
1000
|
+
imports.wbg.__wbg_process_4a72847cc503995b = function(arg0) {
|
973
1001
|
const ret = getObject(arg0).process;
|
974
1002
|
return addHeapObject(ret);
|
975
1003
|
};
|
976
|
-
imports.wbg.
|
1004
|
+
imports.wbg.__wbg_versions_f686565e586dd935 = function(arg0) {
|
977
1005
|
const ret = getObject(arg0).versions;
|
978
1006
|
return addHeapObject(ret);
|
979
1007
|
};
|
980
|
-
imports.wbg.
|
1008
|
+
imports.wbg.__wbg_node_104a2ff8d6ea03a2 = function(arg0) {
|
981
1009
|
const ret = getObject(arg0).node;
|
982
1010
|
return addHeapObject(ret);
|
983
1011
|
};
|
984
|
-
imports.wbg.__wbindgen_is_string = function
|
985
|
-
const ret = typeof
|
1012
|
+
imports.wbg.__wbindgen_is_string = function(arg0) {
|
1013
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
986
1014
|
return ret;
|
987
1015
|
};
|
988
|
-
imports.wbg.
|
1016
|
+
imports.wbg.__wbg_require_cca90b1a94a0255b = function() { return handleError(function () {
|
1017
|
+
const ret = module.require;
|
1018
|
+
return addHeapObject(ret);
|
1019
|
+
}, arguments) };
|
1020
|
+
imports.wbg.__wbg_msCrypto_eb05e62b530a1508 = function(arg0) {
|
989
1021
|
const ret = getObject(arg0).msCrypto;
|
990
1022
|
return addHeapObject(ret);
|
991
1023
|
};
|
992
|
-
imports.wbg.
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
};
|
998
|
-
imports.wbg.
|
999
|
-
const ret = typeof (getObject(arg0)) === 'function';
|
1000
|
-
return ret;
|
1001
|
-
};
|
1002
|
-
imports.wbg.__wbg_randomFillSync_dc1e9a60c158336d = function () {
|
1003
|
-
return handleError(function (arg0, arg1) {
|
1004
|
-
getObject(arg0).randomFillSync(takeObject(arg1));
|
1005
|
-
}, arguments)
|
1006
|
-
};
|
1007
|
-
imports.wbg.__wbg_getRandomValues_37fa2ca9e4e07fab = function () {
|
1008
|
-
return handleError(function (arg0, arg1) {
|
1009
|
-
getObject(arg0).getRandomValues(getObject(arg1));
|
1010
|
-
}, arguments)
|
1011
|
-
};
|
1012
|
-
imports.wbg.__wbg_newnoargs_581967eacc0e2604 = function (arg0, arg1) {
|
1024
|
+
imports.wbg.__wbg_randomFillSync_5c9c955aa56b6049 = function() { return handleError(function (arg0, arg1) {
|
1025
|
+
getObject(arg0).randomFillSync(takeObject(arg1));
|
1026
|
+
}, arguments) };
|
1027
|
+
imports.wbg.__wbg_getRandomValues_3aa56aa6edec874c = function() { return handleError(function (arg0, arg1) {
|
1028
|
+
getObject(arg0).getRandomValues(getObject(arg1));
|
1029
|
+
}, arguments) };
|
1030
|
+
imports.wbg.__wbg_newnoargs_1ede4bf2ebbaaf43 = function(arg0, arg1) {
|
1013
1031
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
1014
1032
|
return addHeapObject(ret);
|
1015
1033
|
};
|
1016
|
-
imports.wbg.
|
1034
|
+
imports.wbg.__wbg_next_13b477da1eaa3897 = function(arg0) {
|
1017
1035
|
const ret = getObject(arg0).next;
|
1018
1036
|
return addHeapObject(ret);
|
1019
1037
|
};
|
1020
|
-
imports.wbg.
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
};
|
1026
|
-
imports.wbg.__wbg_done_5c1f01fb660d73b5 = function (arg0) {
|
1038
|
+
imports.wbg.__wbg_next_b06e115d1b01e10b = function() { return handleError(function (arg0) {
|
1039
|
+
const ret = getObject(arg0).next();
|
1040
|
+
return addHeapObject(ret);
|
1041
|
+
}, arguments) };
|
1042
|
+
imports.wbg.__wbg_done_983b5ffcaec8c583 = function(arg0) {
|
1027
1043
|
const ret = getObject(arg0).done;
|
1028
1044
|
return ret;
|
1029
1045
|
};
|
1030
|
-
imports.wbg.
|
1046
|
+
imports.wbg.__wbg_value_2ab8a198c834c26a = function(arg0) {
|
1031
1047
|
const ret = getObject(arg0).value;
|
1032
1048
|
return addHeapObject(ret);
|
1033
1049
|
};
|
1034
|
-
imports.wbg.
|
1050
|
+
imports.wbg.__wbg_iterator_695d699a44d6234c = function() {
|
1035
1051
|
const ret = Symbol.iterator;
|
1036
1052
|
return addHeapObject(ret);
|
1037
1053
|
};
|
1038
|
-
imports.wbg.
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
return addHeapObject(ret);
|
1048
|
-
}, arguments)
|
1049
|
-
};
|
1050
|
-
imports.wbg.__wbg_new_b51585de1b234aff = function () {
|
1054
|
+
imports.wbg.__wbg_get_ef828680c64da212 = function() { return handleError(function (arg0, arg1) {
|
1055
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
1056
|
+
return addHeapObject(ret);
|
1057
|
+
}, arguments) };
|
1058
|
+
imports.wbg.__wbg_call_a9ef466721e824f2 = function() { return handleError(function (arg0, arg1) {
|
1059
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
1060
|
+
return addHeapObject(ret);
|
1061
|
+
}, arguments) };
|
1062
|
+
imports.wbg.__wbg_new_e69b5f66fda8f13c = function() {
|
1051
1063
|
const ret = new Object();
|
1052
1064
|
return addHeapObject(ret);
|
1053
1065
|
};
|
1054
|
-
imports.wbg.
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
};
|
1066
|
-
imports.wbg.
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
return addHeapObject(ret);
|
1076
|
-
}, arguments)
|
1077
|
-
};
|
1078
|
-
imports.wbg.__wbg_call_01734de55d61e11d = function () {
|
1079
|
-
return handleError(function (arg0, arg1, arg2) {
|
1080
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
1081
|
-
return addHeapObject(ret);
|
1082
|
-
}, arguments)
|
1083
|
-
};
|
1084
|
-
imports.wbg.__wbg_getTime_5e2054f832d82ec9 = function (arg0) {
|
1066
|
+
imports.wbg.__wbg_self_bf91bf94d9e04084 = function() { return handleError(function () {
|
1067
|
+
const ret = self.self;
|
1068
|
+
return addHeapObject(ret);
|
1069
|
+
}, arguments) };
|
1070
|
+
imports.wbg.__wbg_window_52dd9f07d03fd5f8 = function() { return handleError(function () {
|
1071
|
+
const ret = window.window;
|
1072
|
+
return addHeapObject(ret);
|
1073
|
+
}, arguments) };
|
1074
|
+
imports.wbg.__wbg_globalThis_05c129bf37fcf1be = function() { return handleError(function () {
|
1075
|
+
const ret = globalThis.globalThis;
|
1076
|
+
return addHeapObject(ret);
|
1077
|
+
}, arguments) };
|
1078
|
+
imports.wbg.__wbg_global_3eca19bb09e9c484 = function() { return handleError(function () {
|
1079
|
+
const ret = global.global;
|
1080
|
+
return addHeapObject(ret);
|
1081
|
+
}, arguments) };
|
1082
|
+
imports.wbg.__wbg_call_3bfa248576352471 = function() { return handleError(function (arg0, arg1, arg2) {
|
1083
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
1084
|
+
return addHeapObject(ret);
|
1085
|
+
}, arguments) };
|
1086
|
+
imports.wbg.__wbg_getTime_41225036a0393d63 = function(arg0) {
|
1085
1087
|
const ret = getObject(arg0).getTime();
|
1086
1088
|
return ret;
|
1087
1089
|
};
|
1088
|
-
imports.wbg.
|
1090
|
+
imports.wbg.__wbg_new0_218ada33b570be35 = function() {
|
1089
1091
|
const ret = new Date();
|
1090
1092
|
return addHeapObject(ret);
|
1091
1093
|
};
|
1092
|
-
imports.wbg.
|
1094
|
+
imports.wbg.__wbg_new_1073970097e5a420 = function(arg0, arg1) {
|
1093
1095
|
try {
|
1094
|
-
var state0 = {
|
1096
|
+
var state0 = {a: arg0, b: arg1};
|
1095
1097
|
var cb0 = (arg0, arg1) => {
|
1096
1098
|
const a = state0.a;
|
1097
1099
|
state0.a = 0;
|
1098
1100
|
try {
|
1099
|
-
return
|
1101
|
+
return __wbg_adapter_155(a, state0.b, arg0, arg1);
|
1100
1102
|
} finally {
|
1101
1103
|
state0.a = a;
|
1102
1104
|
}
|
@@ -1107,94 +1109,85 @@ function __wbg_get_imports() {
|
|
1107
1109
|
state0.a = state0.b = 0;
|
1108
1110
|
}
|
1109
1111
|
};
|
1110
|
-
imports.wbg.
|
1112
|
+
imports.wbg.__wbg_resolve_0aad7c1484731c99 = function(arg0) {
|
1111
1113
|
const ret = Promise.resolve(getObject(arg0));
|
1112
1114
|
return addHeapObject(ret);
|
1113
1115
|
};
|
1114
|
-
imports.wbg.
|
1116
|
+
imports.wbg.__wbg_then_748f75edfb032440 = function(arg0, arg1) {
|
1115
1117
|
const ret = getObject(arg0).then(getObject(arg1));
|
1116
1118
|
return addHeapObject(ret);
|
1117
1119
|
};
|
1118
|
-
imports.wbg.
|
1120
|
+
imports.wbg.__wbg_then_4866a7d9f55d8f3e = function(arg0, arg1, arg2) {
|
1119
1121
|
const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
|
1120
1122
|
return addHeapObject(ret);
|
1121
1123
|
};
|
1122
|
-
imports.wbg.
|
1124
|
+
imports.wbg.__wbg_buffer_ccaed51a635d8a2d = function(arg0) {
|
1123
1125
|
const ret = getObject(arg0).buffer;
|
1124
1126
|
return addHeapObject(ret);
|
1125
1127
|
};
|
1126
|
-
imports.wbg.
|
1128
|
+
imports.wbg.__wbg_newwithbyteoffsetandlength_7e3eb787208af730 = function(arg0, arg1, arg2) {
|
1127
1129
|
const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
|
1128
1130
|
return addHeapObject(ret);
|
1129
1131
|
};
|
1130
|
-
imports.wbg.
|
1132
|
+
imports.wbg.__wbg_new_fec2611eb9180f95 = function(arg0) {
|
1131
1133
|
const ret = new Uint8Array(getObject(arg0));
|
1132
1134
|
return addHeapObject(ret);
|
1133
1135
|
};
|
1134
|
-
imports.wbg.
|
1136
|
+
imports.wbg.__wbg_set_ec2fcf81bc573fd9 = function(arg0, arg1, arg2) {
|
1135
1137
|
getObject(arg0).set(getObject(arg1), arg2 >>> 0);
|
1136
1138
|
};
|
1137
|
-
imports.wbg.
|
1139
|
+
imports.wbg.__wbg_length_9254c4bd3b9f23c4 = function(arg0) {
|
1138
1140
|
const ret = getObject(arg0).length;
|
1139
1141
|
return ret;
|
1140
1142
|
};
|
1141
|
-
imports.wbg.
|
1143
|
+
imports.wbg.__wbg_newwithlength_76462a666eca145f = function(arg0) {
|
1142
1144
|
const ret = new Uint8Array(arg0 >>> 0);
|
1143
1145
|
return addHeapObject(ret);
|
1144
1146
|
};
|
1145
|
-
imports.wbg.
|
1147
|
+
imports.wbg.__wbg_subarray_975a06f9dbd16995 = function(arg0, arg1, arg2) {
|
1146
1148
|
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
|
1147
1149
|
return addHeapObject(ret);
|
1148
1150
|
};
|
1149
|
-
imports.wbg.
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
return ret;
|
1159
|
-
}, arguments)
|
1160
|
-
};
|
1161
|
-
imports.wbg.__wbg_stringify_e25465938f3f611f = function () {
|
1162
|
-
return handleError(function (arg0) {
|
1163
|
-
const ret = JSON.stringify(getObject(arg0));
|
1164
|
-
return addHeapObject(ret);
|
1165
|
-
}, arguments)
|
1166
|
-
};
|
1167
|
-
imports.wbg.__wbindgen_debug_string = function (arg0, arg1) {
|
1151
|
+
imports.wbg.__wbg_stringify_eead5648c09faaf8 = function() { return handleError(function (arg0) {
|
1152
|
+
const ret = JSON.stringify(getObject(arg0));
|
1153
|
+
return addHeapObject(ret);
|
1154
|
+
}, arguments) };
|
1155
|
+
imports.wbg.__wbg_has_bd717f25f195f23d = function() { return handleError(function (arg0, arg1) {
|
1156
|
+
const ret = Reflect.has(getObject(arg0), getObject(arg1));
|
1157
|
+
return ret;
|
1158
|
+
}, arguments) };
|
1159
|
+
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
1168
1160
|
const ret = debugString(getObject(arg1));
|
1169
1161
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
1170
1162
|
const len1 = WASM_VECTOR_LEN;
|
1171
|
-
|
1172
|
-
|
1163
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
1164
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
1173
1165
|
};
|
1174
|
-
imports.wbg.__wbindgen_throw = function
|
1166
|
+
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
1175
1167
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
1176
1168
|
};
|
1177
|
-
imports.wbg.__wbindgen_memory = function
|
1169
|
+
imports.wbg.__wbindgen_memory = function() {
|
1178
1170
|
const ret = wasm.memory;
|
1179
1171
|
return addHeapObject(ret);
|
1180
1172
|
};
|
1181
|
-
imports.wbg.
|
1182
|
-
const ret = makeMutClosure(arg0, arg1,
|
1173
|
+
imports.wbg.__wbindgen_closure_wrapper12178 = function(arg0, arg1, arg2) {
|
1174
|
+
const ret = makeMutClosure(arg0, arg1, 3919, __wbg_adapter_26);
|
1183
1175
|
return addHeapObject(ret);
|
1184
1176
|
};
|
1185
1177
|
|
1186
1178
|
return imports;
|
1187
1179
|
}
|
1188
1180
|
|
1189
|
-
function __wbg_init_memory(imports,
|
1181
|
+
function __wbg_init_memory(imports, memory) {
|
1190
1182
|
|
1191
1183
|
}
|
1192
1184
|
|
1193
1185
|
function __wbg_finalize_init(instance, module) {
|
1194
1186
|
wasm = instance.exports;
|
1195
1187
|
__wbg_init.__wbindgen_wasm_module = module;
|
1196
|
-
|
1197
|
-
|
1188
|
+
cachedDataViewMemory0 = null;
|
1189
|
+
cachedUint8ArrayMemory0 = null;
|
1190
|
+
|
1198
1191
|
|
1199
1192
|
|
1200
1193
|
return wasm;
|
@@ -1203,6 +1196,15 @@ function __wbg_finalize_init(instance, module) {
|
|
1203
1196
|
function initSync(module) {
|
1204
1197
|
if (wasm !== undefined) return wasm;
|
1205
1198
|
|
1199
|
+
|
1200
|
+
if (typeof module !== 'undefined') {
|
1201
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
1202
|
+
({module} = module)
|
1203
|
+
} else {
|
1204
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
1205
|
+
}
|
1206
|
+
}
|
1207
|
+
|
1206
1208
|
const imports = __wbg_get_imports();
|
1207
1209
|
|
1208
1210
|
__wbg_init_memory(imports);
|
@@ -1216,21 +1218,33 @@ function initSync(module) {
|
|
1216
1218
|
return __wbg_finalize_init(instance, module);
|
1217
1219
|
}
|
1218
1220
|
|
1219
|
-
async function __wbg_init(
|
1221
|
+
async function __wbg_init(module_or_path) {
|
1220
1222
|
if (wasm !== undefined) return wasm;
|
1221
1223
|
|
1224
|
+
|
1225
|
+
if (typeof module_or_path !== 'undefined') {
|
1226
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
1227
|
+
({module_or_path} = module_or_path)
|
1228
|
+
} else {
|
1229
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
1230
|
+
}
|
1231
|
+
}
|
1232
|
+
|
1233
|
+
if (typeof module_or_path === 'undefined') {
|
1234
|
+
module_or_path = new URL('didkit_wasm_bg.wasm', import.meta.url);
|
1235
|
+
}
|
1222
1236
|
const imports = __wbg_get_imports();
|
1223
1237
|
|
1224
|
-
if (typeof
|
1225
|
-
|
1238
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
1239
|
+
module_or_path = fetch(module_or_path);
|
1226
1240
|
}
|
1227
1241
|
|
1228
1242
|
__wbg_init_memory(imports);
|
1229
1243
|
|
1230
|
-
const { instance, module } = await __wbg_load(await
|
1244
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
1231
1245
|
|
1232
1246
|
return __wbg_finalize_init(instance, module);
|
1233
1247
|
}
|
1234
1248
|
|
1235
|
-
export { initSync }
|
1249
|
+
export { initSync };
|
1236
1250
|
export default __wbg_init;
|