@contentauth/c2pa-wasm 0.5.1 → 0.6.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/package.json +1 -1
- package/pkg/c2pa.d.ts +21 -9
- package/pkg/c2pa.js +175 -147
- package/pkg/c2pa_bg.wasm +0 -0
- package/pkg/c2pa_bg.wasm.d.ts +10 -9
package/package.json
CHANGED
package/pkg/c2pa.d.ts
CHANGED
|
@@ -36,6 +36,13 @@ export class WasmBuilder {
|
|
|
36
36
|
* * `blob` - A [`Blob`] representing an asset which should be included as an ingredient.
|
|
37
37
|
*/
|
|
38
38
|
addIngredientFromBlob(json: string, format: string, blob: Blob): Promise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* Add a redaction for a JUMBF URI with the given reason.
|
|
41
|
+
*
|
|
42
|
+
* Adds the URI to the builder's redaction list and appends a `c2pa.redacted` action
|
|
43
|
+
* with the reason and URI parameter, as required by the C2PA spec.
|
|
44
|
+
*/
|
|
45
|
+
addRedaction(uri: string, reason: any): void;
|
|
39
46
|
/**
|
|
40
47
|
* Add a [`Blob`] to the manifest as a resource. The ID must match an identifier in the manifest.
|
|
41
48
|
*/
|
|
@@ -108,6 +115,10 @@ export class WasmReader {
|
|
|
108
115
|
* Returns the asset's active manifest.
|
|
109
116
|
*/
|
|
110
117
|
activeManifest(): any;
|
|
118
|
+
/**
|
|
119
|
+
* Returns the asset's manifest store as crJSON.
|
|
120
|
+
*/
|
|
121
|
+
crJson(): string;
|
|
111
122
|
/**
|
|
112
123
|
* Attempts to create a new `WasmReader` from an asset format and `Blob` of the asset's bytes.
|
|
113
124
|
* Optionally accepts a context JSON string to configure the reader.
|
|
@@ -162,18 +173,24 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
162
173
|
|
|
163
174
|
export interface InitOutput {
|
|
164
175
|
readonly memory: WebAssembly.Memory;
|
|
176
|
+
readonly run: () => void;
|
|
177
|
+
readonly loadSettings: (a: number, b: number) => [number, number];
|
|
165
178
|
readonly __wbg_wasmreader_free: (a: number, b: number) => void;
|
|
166
179
|
readonly wasmreader_activeLabel: (a: number) => [number, number];
|
|
167
180
|
readonly wasmreader_activeManifest: (a: number) => [number, number, number];
|
|
181
|
+
readonly wasmreader_crJson: (a: number) => [number, number];
|
|
168
182
|
readonly wasmreader_fromBlob: (a: number, b: number, c: any, d: number, e: number) => any;
|
|
169
183
|
readonly wasmreader_fromBlobFragment: (a: number, b: number, c: any, d: any, e: number, f: number) => any;
|
|
170
184
|
readonly wasmreader_json: (a: number) => [number, number];
|
|
171
185
|
readonly wasmreader_manifestStore: (a: number) => [number, number, number];
|
|
172
186
|
readonly wasmreader_resourceToBytes: (a: number, b: number, c: number) => [number, number, number];
|
|
187
|
+
readonly __wbg_wasmsigner_free: (a: number, b: number) => void;
|
|
188
|
+
readonly wasmsigner_fromDefinition: (a: any) => [number, number, number];
|
|
173
189
|
readonly __wbg_wasmbuilder_free: (a: number, b: number) => void;
|
|
174
190
|
readonly wasmbuilder_addAction: (a: number, b: any) => [number, number];
|
|
175
191
|
readonly wasmbuilder_addIngredient: (a: number, b: number, c: number) => [number, number];
|
|
176
192
|
readonly wasmbuilder_addIngredientFromBlob: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
|
|
193
|
+
readonly wasmbuilder_addRedaction: (a: number, b: number, c: number, d: any) => [number, number];
|
|
177
194
|
readonly wasmbuilder_addResourceFromBlob: (a: number, b: number, c: number, d: any) => [number, number];
|
|
178
195
|
readonly wasmbuilder_fromArchive: (a: any, b: number, c: number) => [number, number, number];
|
|
179
196
|
readonly wasmbuilder_fromJson: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
@@ -186,21 +203,16 @@ export interface InitOutput {
|
|
|
186
203
|
readonly wasmbuilder_sign: (a: number, b: any, c: number, d: number, e: any) => any;
|
|
187
204
|
readonly wasmbuilder_signAndGetManifestBytes: (a: number, b: any, c: number, d: number, e: any) => any;
|
|
188
205
|
readonly wasmbuilder_toArchive: (a: number) => [number, number, number];
|
|
189
|
-
readonly
|
|
190
|
-
readonly
|
|
191
|
-
readonly
|
|
192
|
-
readonly loadSettings: (a: number, b: number) => [number, number];
|
|
193
|
-
readonly wasm_bindgen__closure__destroy__h30e1f1aacfc8be07: (a: number, b: number) => void;
|
|
194
|
-
readonly wasm_bindgen__closure__destroy__h1bb863e8c2f31492: (a: number, b: number) => void;
|
|
195
|
-
readonly wasm_bindgen__convert__closures_____invoke__h97115e9701795d15: (a: number, b: number, c: any) => [number, number];
|
|
196
|
-
readonly wasm_bindgen__convert__closures_____invoke__h2e3e7bd63b210081: (a: number, b: number, c: any, d: any) => void;
|
|
197
|
-
readonly wasm_bindgen__convert__closures_____invoke__ha8a072e6843ba599: (a: number, b: number) => void;
|
|
206
|
+
readonly wasm_bindgen__convert__closures_____invoke__he257aae3ff151ab1: (a: number, b: number, c: any) => [number, number];
|
|
207
|
+
readonly wasm_bindgen__convert__closures_____invoke__h11522b9e21207e0e: (a: number, b: number, c: any, d: any) => void;
|
|
208
|
+
readonly wasm_bindgen__convert__closures_____invoke__h35494838f8d5430a: (a: number, b: number) => void;
|
|
198
209
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
199
210
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
200
211
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
201
212
|
readonly __externref_table_alloc: () => number;
|
|
202
213
|
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
203
214
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
215
|
+
readonly __wbindgen_destroy_closure: (a: number, b: number) => void;
|
|
204
216
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
205
217
|
readonly __wbindgen_start: () => void;
|
|
206
218
|
}
|
package/pkg/c2pa.js
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export class WasmBuilder {
|
|
7
7
|
static __wrap(ptr) {
|
|
8
|
-
ptr = ptr >>> 0;
|
|
9
8
|
const obj = Object.create(WasmBuilder.prototype);
|
|
10
9
|
obj.__wbg_ptr = ptr;
|
|
11
10
|
WasmBuilderFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -66,6 +65,22 @@ export class WasmBuilder {
|
|
|
66
65
|
const ret = wasm.wasmbuilder_addIngredientFromBlob(this.__wbg_ptr, ptr0, len0, ptr1, len1, blob);
|
|
67
66
|
return ret;
|
|
68
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* Add a redaction for a JUMBF URI with the given reason.
|
|
70
|
+
*
|
|
71
|
+
* Adds the URI to the builder's redaction list and appends a `c2pa.redacted` action
|
|
72
|
+
* with the reason and URI parameter, as required by the C2PA spec.
|
|
73
|
+
* @param {string} uri
|
|
74
|
+
* @param {any} reason
|
|
75
|
+
*/
|
|
76
|
+
addRedaction(uri, reason) {
|
|
77
|
+
const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
78
|
+
const len0 = WASM_VECTOR_LEN;
|
|
79
|
+
const ret = wasm.wasmbuilder_addRedaction(this.__wbg_ptr, ptr0, len0, reason);
|
|
80
|
+
if (ret[1]) {
|
|
81
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
69
84
|
/**
|
|
70
85
|
* Add a [`Blob`] to the manifest as a resource. The ID must match an identifier in the manifest.
|
|
71
86
|
* @param {string} id
|
|
@@ -227,7 +242,6 @@ if (Symbol.dispose) WasmBuilder.prototype[Symbol.dispose] = WasmBuilder.prototyp
|
|
|
227
242
|
*/
|
|
228
243
|
export class WasmReader {
|
|
229
244
|
static __wrap(ptr) {
|
|
230
|
-
ptr = ptr >>> 0;
|
|
231
245
|
const obj = Object.create(WasmReader.prototype);
|
|
232
246
|
obj.__wbg_ptr = ptr;
|
|
233
247
|
WasmReaderFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -267,6 +281,22 @@ export class WasmReader {
|
|
|
267
281
|
}
|
|
268
282
|
return takeFromExternrefTable0(ret[0]);
|
|
269
283
|
}
|
|
284
|
+
/**
|
|
285
|
+
* Returns the asset's manifest store as crJSON.
|
|
286
|
+
* @returns {string}
|
|
287
|
+
*/
|
|
288
|
+
crJson() {
|
|
289
|
+
let deferred1_0;
|
|
290
|
+
let deferred1_1;
|
|
291
|
+
try {
|
|
292
|
+
const ret = wasm.wasmreader_crJson(this.__wbg_ptr);
|
|
293
|
+
deferred1_0 = ret[0];
|
|
294
|
+
deferred1_1 = ret[1];
|
|
295
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
296
|
+
} finally {
|
|
297
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
270
300
|
/**
|
|
271
301
|
* Attempts to create a new `WasmReader` from an asset format and `Blob` of the asset's bytes.
|
|
272
302
|
* Optionally accepts a context JSON string to configure the reader.
|
|
@@ -346,7 +376,6 @@ if (Symbol.dispose) WasmReader.prototype[Symbol.dispose] = WasmReader.prototype.
|
|
|
346
376
|
|
|
347
377
|
export class WasmSigner {
|
|
348
378
|
static __wrap(ptr) {
|
|
349
|
-
ptr = ptr >>> 0;
|
|
350
379
|
const obj = Object.create(WasmSigner.prototype);
|
|
351
380
|
obj.__wbg_ptr = ptr;
|
|
352
381
|
WasmSignerFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
@@ -402,76 +431,75 @@ export function loadSettings(settings) {
|
|
|
402
431
|
export function run() {
|
|
403
432
|
wasm.run();
|
|
404
433
|
}
|
|
405
|
-
|
|
406
434
|
function __wbg_get_imports() {
|
|
407
435
|
const import0 = {
|
|
408
436
|
__proto__: null,
|
|
409
|
-
|
|
437
|
+
__wbg_Error_3639a60ed15f87e7: function(arg0, arg1) {
|
|
410
438
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
411
439
|
return ret;
|
|
412
440
|
},
|
|
413
|
-
|
|
441
|
+
__wbg_Number_a3d737fd183f7dca: function(arg0) {
|
|
414
442
|
const ret = Number(arg0);
|
|
415
443
|
return ret;
|
|
416
444
|
},
|
|
417
|
-
|
|
445
|
+
__wbg___wbindgen_bigint_get_as_i64_3af6d4ca77193a4b: function(arg0, arg1) {
|
|
418
446
|
const v = arg1;
|
|
419
447
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
420
448
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
421
449
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
422
450
|
},
|
|
423
|
-
|
|
451
|
+
__wbg___wbindgen_boolean_get_c3dd5c39f1b5a12b: function(arg0) {
|
|
424
452
|
const v = arg0;
|
|
425
453
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
426
454
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
427
455
|
},
|
|
428
|
-
|
|
456
|
+
__wbg___wbindgen_debug_string_07cb72cfcc952e2b: function(arg0, arg1) {
|
|
429
457
|
const ret = debugString(arg1);
|
|
430
458
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
431
459
|
const len1 = WASM_VECTOR_LEN;
|
|
432
460
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
433
461
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
434
462
|
},
|
|
435
|
-
|
|
463
|
+
__wbg___wbindgen_in_2617fa76397620d3: function(arg0, arg1) {
|
|
436
464
|
const ret = arg0 in arg1;
|
|
437
465
|
return ret;
|
|
438
466
|
},
|
|
439
|
-
|
|
467
|
+
__wbg___wbindgen_is_bigint_d6a8167cac401b95: function(arg0) {
|
|
440
468
|
const ret = typeof(arg0) === 'bigint';
|
|
441
469
|
return ret;
|
|
442
470
|
},
|
|
443
|
-
|
|
471
|
+
__wbg___wbindgen_is_function_2f0fd7ceb86e64c5: function(arg0) {
|
|
444
472
|
const ret = typeof(arg0) === 'function';
|
|
445
473
|
return ret;
|
|
446
474
|
},
|
|
447
|
-
|
|
475
|
+
__wbg___wbindgen_is_object_5b22ff2418063a9c: function(arg0) {
|
|
448
476
|
const val = arg0;
|
|
449
477
|
const ret = typeof(val) === 'object' && val !== null;
|
|
450
478
|
return ret;
|
|
451
479
|
},
|
|
452
|
-
|
|
480
|
+
__wbg___wbindgen_is_string_eddc07a3efad52e6: function(arg0) {
|
|
453
481
|
const ret = typeof(arg0) === 'string';
|
|
454
482
|
return ret;
|
|
455
483
|
},
|
|
456
|
-
|
|
484
|
+
__wbg___wbindgen_is_undefined_244a92c34d3b6ec0: function(arg0) {
|
|
457
485
|
const ret = arg0 === undefined;
|
|
458
486
|
return ret;
|
|
459
487
|
},
|
|
460
|
-
|
|
488
|
+
__wbg___wbindgen_jsval_eq_403eaa3610500a25: function(arg0, arg1) {
|
|
461
489
|
const ret = arg0 === arg1;
|
|
462
490
|
return ret;
|
|
463
491
|
},
|
|
464
|
-
|
|
492
|
+
__wbg___wbindgen_jsval_loose_eq_1978f1e77b4bce62: function(arg0, arg1) {
|
|
465
493
|
const ret = arg0 == arg1;
|
|
466
494
|
return ret;
|
|
467
495
|
},
|
|
468
|
-
|
|
496
|
+
__wbg___wbindgen_number_get_dd6d69a6079f26f1: function(arg0, arg1) {
|
|
469
497
|
const obj = arg1;
|
|
470
498
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
471
499
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
472
500
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
473
501
|
},
|
|
474
|
-
|
|
502
|
+
__wbg___wbindgen_string_get_965592073e5d848c: function(arg0, arg1) {
|
|
475
503
|
const obj = arg1;
|
|
476
504
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
477
505
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -479,34 +507,34 @@ function __wbg_get_imports() {
|
|
|
479
507
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
480
508
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
481
509
|
},
|
|
482
|
-
|
|
510
|
+
__wbg___wbindgen_throw_9c75d47bf9e7731e: function(arg0, arg1) {
|
|
483
511
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
484
512
|
},
|
|
485
|
-
|
|
513
|
+
__wbg__wbg_cb_unref_158e43e869788cdc: function(arg0) {
|
|
486
514
|
arg0._wbg_cb_unref();
|
|
487
515
|
},
|
|
488
|
-
|
|
489
|
-
arg0.abort();
|
|
490
|
-
},
|
|
491
|
-
__wbg_abort_6479c2d794ebf2ee: function(arg0, arg1) {
|
|
516
|
+
__wbg_abort_43913e33ecb83d0d: function(arg0, arg1) {
|
|
492
517
|
arg0.abort(arg1);
|
|
493
518
|
},
|
|
494
|
-
|
|
519
|
+
__wbg_abort_87eb7f23cf4b73d1: function(arg0) {
|
|
520
|
+
arg0.abort();
|
|
521
|
+
},
|
|
522
|
+
__wbg_append_8df396311184f750: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
495
523
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
496
524
|
}, arguments); },
|
|
497
|
-
|
|
525
|
+
__wbg_arrayBuffer_87e3ac06d961f7a0: function() { return handleError(function (arg0) {
|
|
498
526
|
const ret = arg0.arrayBuffer();
|
|
499
527
|
return ret;
|
|
500
528
|
}, arguments); },
|
|
501
|
-
|
|
529
|
+
__wbg_byteLength_1f57c71e64ee0180: function(arg0) {
|
|
502
530
|
const ret = arg0.byteLength;
|
|
503
531
|
return ret;
|
|
504
532
|
},
|
|
505
|
-
|
|
533
|
+
__wbg_call_a41d6421b30a32c5: function() { return handleError(function (arg0, arg1, arg2) {
|
|
506
534
|
const ret = arg0.call(arg1, arg2);
|
|
507
535
|
return ret;
|
|
508
536
|
}, arguments); },
|
|
509
|
-
|
|
537
|
+
__wbg_call_add9e5a76382e668: function() { return handleError(function (arg0, arg1) {
|
|
510
538
|
const ret = arg0.call(arg1);
|
|
511
539
|
return ret;
|
|
512
540
|
}, arguments); },
|
|
@@ -518,11 +546,11 @@ function __wbg_get_imports() {
|
|
|
518
546
|
const ret = arg0.crypto;
|
|
519
547
|
return ret;
|
|
520
548
|
},
|
|
521
|
-
|
|
549
|
+
__wbg_done_b1afd6201ac045e0: function(arg0) {
|
|
522
550
|
const ret = arg0.done;
|
|
523
551
|
return ret;
|
|
524
552
|
},
|
|
525
|
-
|
|
553
|
+
__wbg_entries_bb9843ba73dc70d6: function(arg0) {
|
|
526
554
|
const ret = Object.entries(arg0);
|
|
527
555
|
return ret;
|
|
528
556
|
},
|
|
@@ -537,7 +565,7 @@ function __wbg_get_imports() {
|
|
|
537
565
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
538
566
|
}
|
|
539
567
|
},
|
|
540
|
-
|
|
568
|
+
__wbg_fetch_1a030943aa8e0c38: function(arg0, arg1) {
|
|
541
569
|
const ret = arg0.fetch(arg1);
|
|
542
570
|
return ret;
|
|
543
571
|
},
|
|
@@ -545,36 +573,36 @@ function __wbg_get_imports() {
|
|
|
545
573
|
const ret = fetch(arg0);
|
|
546
574
|
return ret;
|
|
547
575
|
},
|
|
548
|
-
|
|
576
|
+
__wbg_from_ff141b1e4c69b979: function(arg0) {
|
|
549
577
|
const ret = Array.from(arg0);
|
|
550
578
|
return ret;
|
|
551
579
|
},
|
|
552
|
-
__wbg_getRandomValues_3dda8830c2565714: function() { return handleError(function (arg0, arg1) {
|
|
553
|
-
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
554
|
-
}, arguments); },
|
|
555
580
|
__wbg_getRandomValues_3f44b700395062e5: function() { return handleError(function (arg0, arg1) {
|
|
556
581
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
557
582
|
}, arguments); },
|
|
558
583
|
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
559
584
|
arg0.getRandomValues(arg1);
|
|
560
585
|
}, arguments); },
|
|
561
|
-
|
|
586
|
+
__wbg_getRandomValues_ef12552bf5acd2fe: function() { return handleError(function (arg0, arg1) {
|
|
587
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
588
|
+
}, arguments); },
|
|
589
|
+
__wbg_getTime_e599bee315e19eba: function(arg0) {
|
|
562
590
|
const ret = arg0.getTime();
|
|
563
591
|
return ret;
|
|
564
592
|
},
|
|
565
|
-
|
|
593
|
+
__wbg_get_41476db20fef99a8: function() { return handleError(function (arg0, arg1) {
|
|
566
594
|
const ret = Reflect.get(arg0, arg1);
|
|
567
595
|
return ret;
|
|
568
596
|
}, arguments); },
|
|
569
|
-
|
|
570
|
-
const ret = Reflect.get(arg0, arg1);
|
|
571
|
-
return ret;
|
|
572
|
-
}, arguments); },
|
|
573
|
-
__wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
|
|
597
|
+
__wbg_get_652f640b3b0b6e3e: function(arg0, arg1) {
|
|
574
598
|
const ret = arg0[arg1 >>> 0];
|
|
575
599
|
return ret;
|
|
576
600
|
},
|
|
577
|
-
|
|
601
|
+
__wbg_get_9cfea9b7bbf12a15: function() { return handleError(function (arg0, arg1) {
|
|
602
|
+
const ret = Reflect.get(arg0, arg1);
|
|
603
|
+
return ret;
|
|
604
|
+
}, arguments); },
|
|
605
|
+
__wbg_get_unchecked_be562b1421656321: function(arg0, arg1) {
|
|
578
606
|
const ret = arg0[arg1 >>> 0];
|
|
579
607
|
return ret;
|
|
580
608
|
},
|
|
@@ -582,15 +610,15 @@ function __wbg_get_imports() {
|
|
|
582
610
|
const ret = arg0[arg1];
|
|
583
611
|
return ret;
|
|
584
612
|
},
|
|
585
|
-
|
|
613
|
+
__wbg_has_3a6f31f647e0ba22: function() { return handleError(function (arg0, arg1) {
|
|
586
614
|
const ret = Reflect.has(arg0, arg1);
|
|
587
615
|
return ret;
|
|
588
616
|
}, arguments); },
|
|
589
|
-
|
|
617
|
+
__wbg_headers_de17f740bce997ae: function(arg0) {
|
|
590
618
|
const ret = arg0.headers;
|
|
591
619
|
return ret;
|
|
592
620
|
},
|
|
593
|
-
|
|
621
|
+
__wbg_instanceof_ArrayBuffer_eab9f28fbec23477: function(arg0) {
|
|
594
622
|
let result;
|
|
595
623
|
try {
|
|
596
624
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -600,7 +628,7 @@ function __wbg_get_imports() {
|
|
|
600
628
|
const ret = result;
|
|
601
629
|
return ret;
|
|
602
630
|
},
|
|
603
|
-
|
|
631
|
+
__wbg_instanceof_Map_10d4edf60fcf9327: function(arg0) {
|
|
604
632
|
let result;
|
|
605
633
|
try {
|
|
606
634
|
result = arg0 instanceof Map;
|
|
@@ -610,7 +638,7 @@ function __wbg_get_imports() {
|
|
|
610
638
|
const ret = result;
|
|
611
639
|
return ret;
|
|
612
640
|
},
|
|
613
|
-
|
|
641
|
+
__wbg_instanceof_Promise_1208ac2399c33e10: function(arg0) {
|
|
614
642
|
let result;
|
|
615
643
|
try {
|
|
616
644
|
result = arg0 instanceof Promise;
|
|
@@ -620,7 +648,7 @@ function __wbg_get_imports() {
|
|
|
620
648
|
const ret = result;
|
|
621
649
|
return ret;
|
|
622
650
|
},
|
|
623
|
-
|
|
651
|
+
__wbg_instanceof_Response_370b83aa6c17e88a: function(arg0) {
|
|
624
652
|
let result;
|
|
625
653
|
try {
|
|
626
654
|
result = arg0 instanceof Response;
|
|
@@ -630,7 +658,7 @@ function __wbg_get_imports() {
|
|
|
630
658
|
const ret = result;
|
|
631
659
|
return ret;
|
|
632
660
|
},
|
|
633
|
-
|
|
661
|
+
__wbg_instanceof_Uint8Array_57d77acd50e4c44d: function(arg0) {
|
|
634
662
|
let result;
|
|
635
663
|
try {
|
|
636
664
|
result = arg0 instanceof Uint8Array;
|
|
@@ -640,23 +668,23 @@ function __wbg_get_imports() {
|
|
|
640
668
|
const ret = result;
|
|
641
669
|
return ret;
|
|
642
670
|
},
|
|
643
|
-
|
|
671
|
+
__wbg_isArray_c6c6ef8308995bcf: function(arg0) {
|
|
644
672
|
const ret = Array.isArray(arg0);
|
|
645
673
|
return ret;
|
|
646
674
|
},
|
|
647
|
-
|
|
675
|
+
__wbg_isSafeInteger_3c56c421a5b4cce4: function(arg0) {
|
|
648
676
|
const ret = Number.isSafeInteger(arg0);
|
|
649
677
|
return ret;
|
|
650
678
|
},
|
|
651
|
-
|
|
679
|
+
__wbg_iterator_9d68985a1d096fc2: function() {
|
|
652
680
|
const ret = Symbol.iterator;
|
|
653
681
|
return ret;
|
|
654
682
|
},
|
|
655
|
-
|
|
683
|
+
__wbg_length_0a6ce016dc1460b0: function(arg0) {
|
|
656
684
|
const ret = arg0.length;
|
|
657
685
|
return ret;
|
|
658
686
|
},
|
|
659
|
-
|
|
687
|
+
__wbg_length_ba3c032602efe310: function(arg0) {
|
|
660
688
|
const ret = arg0.length;
|
|
661
689
|
return ret;
|
|
662
690
|
},
|
|
@@ -664,54 +692,54 @@ function __wbg_get_imports() {
|
|
|
664
692
|
const ret = arg0.msCrypto;
|
|
665
693
|
return ret;
|
|
666
694
|
},
|
|
667
|
-
|
|
668
|
-
const ret = new Headers();
|
|
669
|
-
return ret;
|
|
670
|
-
}, arguments); },
|
|
671
|
-
__wbg_new_0_1dcafdf5e786e876: function() {
|
|
695
|
+
__wbg_new_0_e486ec9936f7edbf: function() {
|
|
672
696
|
const ret = new Date();
|
|
673
697
|
return ret;
|
|
674
698
|
},
|
|
675
|
-
|
|
676
|
-
const ret = new
|
|
677
|
-
return ret;
|
|
678
|
-
},
|
|
679
|
-
__wbg_new_338f3b13aa93419b: function() { return handleError(function () {
|
|
680
|
-
const ret = new FileReaderSync();
|
|
699
|
+
__wbg_new_18865c63fa645c6f: function() { return handleError(function () {
|
|
700
|
+
const ret = new Headers();
|
|
681
701
|
return ret;
|
|
682
702
|
}, arguments); },
|
|
683
|
-
|
|
684
|
-
const ret = new
|
|
703
|
+
__wbg_new_227d7c05414eb861: function() {
|
|
704
|
+
const ret = new Error();
|
|
685
705
|
return ret;
|
|
686
706
|
},
|
|
687
|
-
|
|
688
|
-
const ret = new
|
|
707
|
+
__wbg_new_2fad8ca02fd00684: function() {
|
|
708
|
+
const ret = new Object();
|
|
689
709
|
return ret;
|
|
690
710
|
},
|
|
691
|
-
|
|
711
|
+
__wbg_new_3baa8d9866155c79: function() {
|
|
692
712
|
const ret = new Array();
|
|
693
713
|
return ret;
|
|
694
714
|
},
|
|
695
|
-
|
|
696
|
-
const ret = new
|
|
715
|
+
__wbg_new_46ae4e4ff2a07a64: function() {
|
|
716
|
+
const ret = new Map();
|
|
697
717
|
return ret;
|
|
698
718
|
},
|
|
699
|
-
|
|
719
|
+
__wbg_new_51ff470dc2f61e27: function() { return handleError(function () {
|
|
700
720
|
const ret = new AbortController();
|
|
701
721
|
return ret;
|
|
702
722
|
}, arguments); },
|
|
703
|
-
|
|
723
|
+
__wbg_new_8454eee672b2ba6e: function(arg0) {
|
|
724
|
+
const ret = new Uint8Array(arg0);
|
|
725
|
+
return ret;
|
|
726
|
+
},
|
|
727
|
+
__wbg_new_b440b9ba53cb2554: function() { return handleError(function () {
|
|
728
|
+
const ret = new FileReaderSync();
|
|
729
|
+
return ret;
|
|
730
|
+
}, arguments); },
|
|
731
|
+
__wbg_new_from_slice_5a173c243af2e823: function(arg0, arg1) {
|
|
704
732
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
705
733
|
return ret;
|
|
706
734
|
},
|
|
707
|
-
|
|
735
|
+
__wbg_new_typed_1137602701dc87d4: function(arg0, arg1) {
|
|
708
736
|
try {
|
|
709
737
|
var state0 = {a: arg0, b: arg1};
|
|
710
738
|
var cb0 = (arg0, arg1) => {
|
|
711
739
|
const a = state0.a;
|
|
712
740
|
state0.a = 0;
|
|
713
741
|
try {
|
|
714
|
-
return
|
|
742
|
+
return wasm_bindgen__convert__closures_____invoke__h11522b9e21207e0e(a, state0.b, arg0, arg1);
|
|
715
743
|
} finally {
|
|
716
744
|
state0.a = a;
|
|
717
745
|
}
|
|
@@ -719,30 +747,30 @@ function __wbg_get_imports() {
|
|
|
719
747
|
const ret = new Promise(cb0);
|
|
720
748
|
return ret;
|
|
721
749
|
} finally {
|
|
722
|
-
state0.a =
|
|
750
|
+
state0.a = 0;
|
|
723
751
|
}
|
|
724
752
|
},
|
|
725
|
-
|
|
753
|
+
__wbg_new_with_length_9011f5da794bf5d9: function(arg0) {
|
|
726
754
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
727
755
|
return ret;
|
|
728
756
|
},
|
|
729
|
-
|
|
757
|
+
__wbg_new_with_str_and_init_da311e12114f4d1e: function() { return handleError(function (arg0, arg1, arg2) {
|
|
730
758
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
731
759
|
return ret;
|
|
732
760
|
}, arguments); },
|
|
733
|
-
|
|
734
|
-
const ret = arg0.next();
|
|
735
|
-
return ret;
|
|
736
|
-
}, arguments); },
|
|
737
|
-
__wbg_next_e01a967809d1aa68: function(arg0) {
|
|
761
|
+
__wbg_next_261c3c48c6e309a5: function(arg0) {
|
|
738
762
|
const ret = arg0.next;
|
|
739
763
|
return ret;
|
|
740
764
|
},
|
|
765
|
+
__wbg_next_aacee310bcfe6461: function() { return handleError(function (arg0) {
|
|
766
|
+
const ret = arg0.next();
|
|
767
|
+
return ret;
|
|
768
|
+
}, arguments); },
|
|
741
769
|
__wbg_node_84ea875411254db1: function(arg0) {
|
|
742
770
|
const ret = arg0.node;
|
|
743
771
|
return ret;
|
|
744
772
|
},
|
|
745
|
-
|
|
773
|
+
__wbg_now_4f457f10f864aec5: function() {
|
|
746
774
|
const ret = Date.now();
|
|
747
775
|
return ret;
|
|
748
776
|
},
|
|
@@ -750,20 +778,20 @@ function __wbg_get_imports() {
|
|
|
750
778
|
const ret = arg0.process;
|
|
751
779
|
return ret;
|
|
752
780
|
},
|
|
753
|
-
|
|
781
|
+
__wbg_prototypesetcall_fd4050e806e1d519: function(arg0, arg1, arg2) {
|
|
754
782
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
755
783
|
},
|
|
756
|
-
|
|
784
|
+
__wbg_queueMicrotask_40ac6ffc2848ba77: function(arg0) {
|
|
785
|
+
queueMicrotask(arg0);
|
|
786
|
+
},
|
|
787
|
+
__wbg_queueMicrotask_74d092439f6494c1: function(arg0) {
|
|
757
788
|
const ret = arg0.queueMicrotask;
|
|
758
789
|
return ret;
|
|
759
790
|
},
|
|
760
|
-
__wbg_queueMicrotask_a082d78ce798393e: function(arg0) {
|
|
761
|
-
queueMicrotask(arg0);
|
|
762
|
-
},
|
|
763
791
|
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
764
792
|
arg0.randomFillSync(arg1);
|
|
765
793
|
}, arguments); },
|
|
766
|
-
|
|
794
|
+
__wbg_readAsArrayBuffer_952b5bb25ca28be4: function() { return handleError(function (arg0, arg1) {
|
|
767
795
|
const ret = arg0.readAsArrayBuffer(arg1);
|
|
768
796
|
return ret;
|
|
769
797
|
}, arguments); },
|
|
@@ -771,7 +799,7 @@ function __wbg_get_imports() {
|
|
|
771
799
|
const ret = module.require;
|
|
772
800
|
return ret;
|
|
773
801
|
}, arguments); },
|
|
774
|
-
|
|
802
|
+
__wbg_resolve_9feb5d906ca62419: function(arg0) {
|
|
775
803
|
const ret = Promise.resolve(arg0);
|
|
776
804
|
return ret;
|
|
777
805
|
},
|
|
@@ -779,49 +807,49 @@ function __wbg_get_imports() {
|
|
|
779
807
|
const ret = setTimeout(arg0, arg1);
|
|
780
808
|
return ret;
|
|
781
809
|
},
|
|
782
|
-
__wbg_set_282384002438957f: function(arg0, arg1, arg2) {
|
|
783
|
-
arg0[arg1 >>> 0] = arg2;
|
|
784
|
-
},
|
|
785
810
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
786
811
|
arg0[arg1] = arg2;
|
|
787
812
|
},
|
|
788
|
-
|
|
789
|
-
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
790
|
-
},
|
|
791
|
-
__wbg_set_bf7251625df30a02: function(arg0, arg1, arg2) {
|
|
813
|
+
__wbg_set_82f7a370f604db70: function(arg0, arg1, arg2) {
|
|
792
814
|
const ret = arg0.set(arg1, arg2);
|
|
793
815
|
return ret;
|
|
794
816
|
},
|
|
795
|
-
|
|
817
|
+
__wbg_set_b0d9dc239ecdb765: function(arg0, arg1, arg2) {
|
|
818
|
+
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
819
|
+
},
|
|
820
|
+
__wbg_set_body_aaff4f5f9991f342: function(arg0, arg1) {
|
|
796
821
|
arg0.body = arg1;
|
|
797
822
|
},
|
|
798
|
-
|
|
823
|
+
__wbg_set_cache_d1f2b7b4dfa39317: function(arg0, arg1) {
|
|
799
824
|
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
800
825
|
},
|
|
801
|
-
|
|
826
|
+
__wbg_set_credentials_f31e4d30b974ce14: function(arg0, arg1) {
|
|
802
827
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
803
828
|
},
|
|
804
|
-
|
|
829
|
+
__wbg_set_f614f6a0608d1d1d: function(arg0, arg1, arg2) {
|
|
830
|
+
arg0[arg1 >>> 0] = arg2;
|
|
831
|
+
},
|
|
832
|
+
__wbg_set_headers_ae96049ea40e9eef: function(arg0, arg1) {
|
|
805
833
|
arg0.headers = arg1;
|
|
806
834
|
},
|
|
807
|
-
|
|
835
|
+
__wbg_set_method_0eea8a5597775fa1: function(arg0, arg1, arg2) {
|
|
808
836
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
809
837
|
},
|
|
810
|
-
|
|
838
|
+
__wbg_set_mode_9fe47bff60a1580d: function(arg0, arg1) {
|
|
811
839
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
812
840
|
},
|
|
813
|
-
|
|
841
|
+
__wbg_set_signal_8c5cf4c3b27bd8a8: function(arg0, arg1) {
|
|
814
842
|
arg0.signal = arg1;
|
|
815
843
|
},
|
|
816
|
-
|
|
844
|
+
__wbg_signal_4643ce883b92b553: function(arg0) {
|
|
817
845
|
const ret = arg0.signal;
|
|
818
846
|
return ret;
|
|
819
847
|
},
|
|
820
|
-
|
|
848
|
+
__wbg_size_7aa12780f92a63e8: function(arg0) {
|
|
821
849
|
const ret = arg0.size;
|
|
822
850
|
return ret;
|
|
823
851
|
},
|
|
824
|
-
|
|
852
|
+
__wbg_slice_4fa1187be1acab2b: function() { return handleError(function (arg0, arg1, arg2) {
|
|
825
853
|
const ret = arg0.slice(arg1, arg2);
|
|
826
854
|
return ret;
|
|
827
855
|
}, arguments); },
|
|
@@ -832,54 +860,54 @@ function __wbg_get_imports() {
|
|
|
832
860
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
833
861
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
834
862
|
},
|
|
835
|
-
|
|
836
|
-
const ret = typeof
|
|
863
|
+
__wbg_static_accessor_GLOBAL_THIS_1c7f1bd6c6941fdb: function() {
|
|
864
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
837
865
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
838
866
|
},
|
|
839
|
-
|
|
840
|
-
const ret = typeof
|
|
867
|
+
__wbg_static_accessor_GLOBAL_e039bc914f83e74e: function() {
|
|
868
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
841
869
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
842
870
|
},
|
|
843
|
-
|
|
871
|
+
__wbg_static_accessor_SELF_8bf8c48c28420ad5: function() {
|
|
844
872
|
const ret = typeof self === 'undefined' ? null : self;
|
|
845
873
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
846
874
|
},
|
|
847
|
-
|
|
875
|
+
__wbg_static_accessor_WINDOW_6aeee9b51652ee0f: function() {
|
|
848
876
|
const ret = typeof window === 'undefined' ? null : window;
|
|
849
877
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
850
878
|
},
|
|
851
|
-
|
|
879
|
+
__wbg_status_157e67ab07d01f8a: function(arg0) {
|
|
852
880
|
const ret = arg0.status;
|
|
853
881
|
return ret;
|
|
854
882
|
},
|
|
855
|
-
|
|
883
|
+
__wbg_stringify_7fd5cae8859a6f10: function() { return handleError(function (arg0) {
|
|
856
884
|
const ret = JSON.stringify(arg0);
|
|
857
885
|
return ret;
|
|
858
886
|
}, arguments); },
|
|
859
|
-
|
|
887
|
+
__wbg_subarray_fbe3cef290e1fa43: function(arg0, arg1, arg2) {
|
|
860
888
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
861
889
|
return ret;
|
|
862
890
|
},
|
|
863
|
-
|
|
891
|
+
__wbg_then_20a157d939b514f5: function(arg0, arg1) {
|
|
864
892
|
const ret = arg0.then(arg1);
|
|
865
893
|
return ret;
|
|
866
894
|
},
|
|
867
|
-
|
|
895
|
+
__wbg_then_5ef9b762bc91555c: function(arg0, arg1, arg2) {
|
|
868
896
|
const ret = arg0.then(arg1, arg2);
|
|
869
897
|
return ret;
|
|
870
898
|
},
|
|
871
|
-
|
|
899
|
+
__wbg_url_a0e994e7d0317efc: function(arg0, arg1) {
|
|
872
900
|
const ret = arg1.url;
|
|
873
901
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
874
902
|
const len1 = WASM_VECTOR_LEN;
|
|
875
903
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
876
904
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
877
905
|
},
|
|
878
|
-
|
|
906
|
+
__wbg_valueOf_96c1596174cf4ec4: function(arg0) {
|
|
879
907
|
const ret = arg0.valueOf();
|
|
880
908
|
return ret;
|
|
881
909
|
},
|
|
882
|
-
|
|
910
|
+
__wbg_value_f852716acdeb3e82: function(arg0) {
|
|
883
911
|
const ret = arg0.value;
|
|
884
912
|
return ret;
|
|
885
913
|
},
|
|
@@ -892,13 +920,13 @@ function __wbg_get_imports() {
|
|
|
892
920
|
return ret;
|
|
893
921
|
},
|
|
894
922
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
895
|
-
// Cast intrinsic for `Closure(Closure {
|
|
896
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
923
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 3003, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
924
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__he257aae3ff151ab1);
|
|
897
925
|
return ret;
|
|
898
926
|
},
|
|
899
927
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
900
|
-
// Cast intrinsic for `Closure(Closure {
|
|
901
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
928
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1531, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
929
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h35494838f8d5430a);
|
|
902
930
|
return ret;
|
|
903
931
|
},
|
|
904
932
|
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
@@ -949,19 +977,19 @@ function __wbg_get_imports() {
|
|
|
949
977
|
};
|
|
950
978
|
}
|
|
951
979
|
|
|
952
|
-
function
|
|
953
|
-
wasm.
|
|
980
|
+
function wasm_bindgen__convert__closures_____invoke__h35494838f8d5430a(arg0, arg1) {
|
|
981
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h35494838f8d5430a(arg0, arg1);
|
|
954
982
|
}
|
|
955
983
|
|
|
956
|
-
function
|
|
957
|
-
const ret = wasm.
|
|
984
|
+
function wasm_bindgen__convert__closures_____invoke__he257aae3ff151ab1(arg0, arg1, arg2) {
|
|
985
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__he257aae3ff151ab1(arg0, arg1, arg2);
|
|
958
986
|
if (ret[1]) {
|
|
959
987
|
throw takeFromExternrefTable0(ret[0]);
|
|
960
988
|
}
|
|
961
989
|
}
|
|
962
990
|
|
|
963
|
-
function
|
|
964
|
-
wasm.
|
|
991
|
+
function wasm_bindgen__convert__closures_____invoke__h11522b9e21207e0e(arg0, arg1, arg2, arg3) {
|
|
992
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h11522b9e21207e0e(arg0, arg1, arg2, arg3);
|
|
965
993
|
}
|
|
966
994
|
|
|
967
995
|
|
|
@@ -974,13 +1002,13 @@ const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
|
974
1002
|
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
975
1003
|
const WasmBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
976
1004
|
? { register: () => {}, unregister: () => {} }
|
|
977
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmbuilder_free(ptr
|
|
1005
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmbuilder_free(ptr, 1));
|
|
978
1006
|
const WasmReaderFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
979
1007
|
? { register: () => {}, unregister: () => {} }
|
|
980
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmreader_free(ptr
|
|
1008
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmreader_free(ptr, 1));
|
|
981
1009
|
const WasmSignerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
982
1010
|
? { register: () => {}, unregister: () => {} }
|
|
983
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmsigner_free(ptr
|
|
1011
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmsigner_free(ptr, 1));
|
|
984
1012
|
|
|
985
1013
|
function addToExternrefTable0(obj) {
|
|
986
1014
|
const idx = wasm.__externref_table_alloc();
|
|
@@ -990,7 +1018,7 @@ function addToExternrefTable0(obj) {
|
|
|
990
1018
|
|
|
991
1019
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
992
1020
|
? { register: () => {}, unregister: () => {} }
|
|
993
|
-
: new FinalizationRegistry(state =>
|
|
1021
|
+
: new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
|
|
994
1022
|
|
|
995
1023
|
function debugString(val) {
|
|
996
1024
|
// primitive types
|
|
@@ -1071,8 +1099,7 @@ function getDataViewMemory0() {
|
|
|
1071
1099
|
}
|
|
1072
1100
|
|
|
1073
1101
|
function getStringFromWasm0(ptr, len) {
|
|
1074
|
-
|
|
1075
|
-
return decodeText(ptr, len);
|
|
1102
|
+
return decodeText(ptr >>> 0, len);
|
|
1076
1103
|
}
|
|
1077
1104
|
|
|
1078
1105
|
let cachedUint8ArrayMemory0 = null;
|
|
@@ -1096,8 +1123,8 @@ function isLikeNone(x) {
|
|
|
1096
1123
|
return x === undefined || x === null;
|
|
1097
1124
|
}
|
|
1098
1125
|
|
|
1099
|
-
function makeMutClosure(arg0, arg1,
|
|
1100
|
-
const state = { a: arg0, b: arg1, cnt: 1
|
|
1126
|
+
function makeMutClosure(arg0, arg1, f) {
|
|
1127
|
+
const state = { a: arg0, b: arg1, cnt: 1 };
|
|
1101
1128
|
const real = (...args) => {
|
|
1102
1129
|
|
|
1103
1130
|
// First up with a closure we increment the internal reference
|
|
@@ -1115,7 +1142,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
1115
1142
|
};
|
|
1116
1143
|
real._wbg_cb_unref = () => {
|
|
1117
1144
|
if (--state.cnt === 0) {
|
|
1118
|
-
|
|
1145
|
+
wasm.__wbindgen_destroy_closure(state.a, state.b);
|
|
1119
1146
|
state.a = 0;
|
|
1120
1147
|
CLOSURE_DTORS.unregister(state);
|
|
1121
1148
|
}
|
|
@@ -1196,8 +1223,9 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
1196
1223
|
|
|
1197
1224
|
let WASM_VECTOR_LEN = 0;
|
|
1198
1225
|
|
|
1199
|
-
let wasmModule, wasm;
|
|
1226
|
+
let wasmModule, wasmInstance, wasm;
|
|
1200
1227
|
function __wbg_finalize_init(instance, module) {
|
|
1228
|
+
wasmInstance = instance;
|
|
1201
1229
|
wasm = instance.exports;
|
|
1202
1230
|
wasmModule = module;
|
|
1203
1231
|
cachedDataViewMemory0 = null;
|
|
@@ -1286,4 +1314,4 @@ async function __wbg_init(module_or_path) {
|
|
|
1286
1314
|
}
|
|
1287
1315
|
|
|
1288
1316
|
export { initSync, __wbg_init as default };
|
|
1289
|
-
export const WASM_SRI = "sha512-
|
|
1317
|
+
export const WASM_SRI = "sha512-j/WVF4Oi0KmNV2xFIBWPKVJmYe4oauJB+e0ieB0UHA1poDrC4oYEKMoVAG4TnjcjlRs68CLNAELSLCVy8GNlMQ==";
|
package/pkg/c2pa_bg.wasm
CHANGED
|
Binary file
|
package/pkg/c2pa_bg.wasm.d.ts
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const run: () => void;
|
|
5
|
+
export const loadSettings: (a: number, b: number) => [number, number];
|
|
4
6
|
export const __wbg_wasmreader_free: (a: number, b: number) => void;
|
|
5
7
|
export const wasmreader_activeLabel: (a: number) => [number, number];
|
|
6
8
|
export const wasmreader_activeManifest: (a: number) => [number, number, number];
|
|
9
|
+
export const wasmreader_crJson: (a: number) => [number, number];
|
|
7
10
|
export const wasmreader_fromBlob: (a: number, b: number, c: any, d: number, e: number) => any;
|
|
8
11
|
export const wasmreader_fromBlobFragment: (a: number, b: number, c: any, d: any, e: number, f: number) => any;
|
|
9
12
|
export const wasmreader_json: (a: number) => [number, number];
|
|
10
13
|
export const wasmreader_manifestStore: (a: number) => [number, number, number];
|
|
11
14
|
export const wasmreader_resourceToBytes: (a: number, b: number, c: number) => [number, number, number];
|
|
15
|
+
export const __wbg_wasmsigner_free: (a: number, b: number) => void;
|
|
16
|
+
export const wasmsigner_fromDefinition: (a: any) => [number, number, number];
|
|
12
17
|
export const __wbg_wasmbuilder_free: (a: number, b: number) => void;
|
|
13
18
|
export const wasmbuilder_addAction: (a: number, b: any) => [number, number];
|
|
14
19
|
export const wasmbuilder_addIngredient: (a: number, b: number, c: number) => [number, number];
|
|
15
20
|
export const wasmbuilder_addIngredientFromBlob: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
|
|
21
|
+
export const wasmbuilder_addRedaction: (a: number, b: number, c: number, d: any) => [number, number];
|
|
16
22
|
export const wasmbuilder_addResourceFromBlob: (a: number, b: number, c: number, d: any) => [number, number];
|
|
17
23
|
export const wasmbuilder_fromArchive: (a: any, b: number, c: number) => [number, number, number];
|
|
18
24
|
export const wasmbuilder_fromJson: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
@@ -25,20 +31,15 @@ export const wasmbuilder_setThumbnailFromBlob: (a: number, b: number, c: number,
|
|
|
25
31
|
export const wasmbuilder_sign: (a: number, b: any, c: number, d: number, e: any) => any;
|
|
26
32
|
export const wasmbuilder_signAndGetManifestBytes: (a: number, b: any, c: number, d: number, e: any) => any;
|
|
27
33
|
export const wasmbuilder_toArchive: (a: number) => [number, number, number];
|
|
28
|
-
export const
|
|
29
|
-
export const
|
|
30
|
-
export const
|
|
31
|
-
export const loadSettings: (a: number, b: number) => [number, number];
|
|
32
|
-
export const wasm_bindgen__closure__destroy__h30e1f1aacfc8be07: (a: number, b: number) => void;
|
|
33
|
-
export const wasm_bindgen__closure__destroy__h1bb863e8c2f31492: (a: number, b: number) => void;
|
|
34
|
-
export const wasm_bindgen__convert__closures_____invoke__h97115e9701795d15: (a: number, b: number, c: any) => [number, number];
|
|
35
|
-
export const wasm_bindgen__convert__closures_____invoke__h2e3e7bd63b210081: (a: number, b: number, c: any, d: any) => void;
|
|
36
|
-
export const wasm_bindgen__convert__closures_____invoke__ha8a072e6843ba599: (a: number, b: number) => void;
|
|
34
|
+
export const wasm_bindgen__convert__closures_____invoke__he257aae3ff151ab1: (a: number, b: number, c: any) => [number, number];
|
|
35
|
+
export const wasm_bindgen__convert__closures_____invoke__h11522b9e21207e0e: (a: number, b: number, c: any, d: any) => void;
|
|
36
|
+
export const wasm_bindgen__convert__closures_____invoke__h35494838f8d5430a: (a: number, b: number) => void;
|
|
37
37
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
38
38
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
39
39
|
export const __wbindgen_exn_store: (a: number) => void;
|
|
40
40
|
export const __externref_table_alloc: () => number;
|
|
41
41
|
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
42
42
|
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
43
|
+
export const __wbindgen_destroy_closure: (a: number, b: number) => void;
|
|
43
44
|
export const __externref_table_dealloc: (a: number) => void;
|
|
44
45
|
export const __wbindgen_start: () => void;
|