@learncard/didkit-plugin 1.5.36 → 1.5.37

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.
@@ -28,6 +28,7 @@ module.exports = __toCommonJS(src_exports);
28
28
  // src/didkit/pkg/didkit_wasm.js
29
29
  var import_meta = {};
30
30
  var wasm;
31
+ var WASM_VECTOR_LEN = 0;
31
32
  var cachedUint8ArrayMemory0 = null;
32
33
  function getUint8ArrayMemory0() {
33
34
  if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
@@ -36,32 +37,6 @@ function getUint8ArrayMemory0() {
36
37
  return cachedUint8ArrayMemory0;
37
38
  }
38
39
  __name(getUint8ArrayMemory0, "getUint8ArrayMemory0");
39
- var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
40
- throw Error("TextDecoder not available");
41
- } };
42
- if (typeof TextDecoder !== "undefined") {
43
- cachedTextDecoder.decode();
44
- }
45
- var MAX_SAFARI_DECODE_BYTES = 2146435072;
46
- var numBytesDecoded = 0;
47
- function decodeText(ptr, len) {
48
- numBytesDecoded += len;
49
- if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
50
- cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
51
- throw Error("TextDecoder not available");
52
- } };
53
- cachedTextDecoder.decode();
54
- numBytesDecoded = len;
55
- }
56
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
57
- }
58
- __name(decodeText, "decodeText");
59
- function getStringFromWasm0(ptr, len) {
60
- ptr = ptr >>> 0;
61
- return decodeText(ptr, len);
62
- }
63
- __name(getStringFromWasm0, "getStringFromWasm0");
64
- var WASM_VECTOR_LEN = 0;
65
40
  var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : { encode: () => {
66
41
  throw Error("TextEncoder not available");
67
42
  } };
@@ -115,6 +90,17 @@ function getDataViewMemory0() {
115
90
  return cachedDataViewMemory0;
116
91
  }
117
92
  __name(getDataViewMemory0, "getDataViewMemory0");
93
+ var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
94
+ throw Error("TextDecoder not available");
95
+ } };
96
+ if (typeof TextDecoder !== "undefined") {
97
+ cachedTextDecoder.decode();
98
+ }
99
+ function getStringFromWasm0(ptr, len) {
100
+ ptr = ptr >>> 0;
101
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
102
+ }
103
+ __name(getStringFromWasm0, "getStringFromWasm0");
118
104
  function addToExternrefTable0(obj) {
119
105
  const idx = wasm.__externref_table_alloc();
120
106
  wasm.__wbindgen_export_4.set(idx, obj);
@@ -139,6 +125,33 @@ function isLikeNone(x) {
139
125
  return x === void 0 || x === null;
140
126
  }
141
127
  __name(isLikeNone, "isLikeNone");
128
+ var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? { register: () => {
129
+ }, unregister: () => {
130
+ } } : new FinalizationRegistry((state) => {
131
+ wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b);
132
+ });
133
+ function makeMutClosure(arg0, arg1, dtor, f) {
134
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
135
+ const real = /* @__PURE__ */ __name((...args) => {
136
+ state.cnt++;
137
+ const a = state.a;
138
+ state.a = 0;
139
+ try {
140
+ return f(a, state.b, ...args);
141
+ } finally {
142
+ if (--state.cnt === 0) {
143
+ wasm.__wbindgen_export_5.get(state.dtor)(a, state.b);
144
+ CLOSURE_DTORS.unregister(state);
145
+ } else {
146
+ state.a = a;
147
+ }
148
+ }
149
+ }, "real");
150
+ real.original = state;
151
+ CLOSURE_DTORS.register(real, state, state);
152
+ return real;
153
+ }
154
+ __name(makeMutClosure, "makeMutClosure");
142
155
  function debugString(val) {
143
156
  const type = typeof val;
144
157
  if (type == "number" || type == "boolean" || val == null) {
@@ -196,35 +209,6 @@ ${val.stack}`;
196
209
  return className;
197
210
  }
198
211
  __name(debugString, "debugString");
199
- var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? { register: () => {
200
- }, unregister: () => {
201
- } } : new FinalizationRegistry(
202
- (state) => {
203
- wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b);
204
- }
205
- );
206
- function makeMutClosure(arg0, arg1, dtor, f) {
207
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
208
- const real = /* @__PURE__ */ __name((...args) => {
209
- state.cnt++;
210
- const a = state.a;
211
- state.a = 0;
212
- try {
213
- return f(a, state.b, ...args);
214
- } finally {
215
- if (--state.cnt === 0) {
216
- wasm.__wbindgen_export_5.get(state.dtor)(a, state.b);
217
- CLOSURE_DTORS.unregister(state);
218
- } else {
219
- state.a = a;
220
- }
221
- }
222
- }, "real");
223
- real.original = state;
224
- CLOSURE_DTORS.register(real, state, state);
225
- return real;
226
- }
227
- __name(makeMutClosure, "makeMutClosure");
228
212
  function clearCache() {
229
213
  const ret = wasm.clearCache();
230
214
  return ret;
@@ -444,25 +428,23 @@ function contextLoader(url) {
444
428
  return ret;
445
429
  }
446
430
  __name(contextLoader, "contextLoader");
447
- function __wbg_adapter_10(arg0, arg1, arg2) {
448
- wasm.closure4202_externref_shim(arg0, arg1, arg2);
431
+ function __wbg_adapter_54(arg0, arg1, arg2) {
432
+ wasm.closure4184_externref_shim(arg0, arg1, arg2);
449
433
  }
450
- __name(__wbg_adapter_10, "__wbg_adapter_10");
451
- function __wbg_adapter_188(arg0, arg1, arg2, arg3) {
452
- wasm.closure4602_externref_shim(arg0, arg1, arg2, arg3);
434
+ __name(__wbg_adapter_54, "__wbg_adapter_54");
435
+ function __wbg_adapter_222(arg0, arg1, arg2, arg3) {
436
+ wasm.closure4586_externref_shim(arg0, arg1, arg2, arg3);
453
437
  }
454
- __name(__wbg_adapter_188, "__wbg_adapter_188");
438
+ __name(__wbg_adapter_222, "__wbg_adapter_222");
455
439
  var __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
456
440
  var __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
457
- var EXPECTED_RESPONSE_TYPES = /* @__PURE__ */ new Set(["basic", "cors", "default"]);
458
441
  async function __wbg_load(module2, imports) {
459
442
  if (typeof Response === "function" && module2 instanceof Response) {
460
443
  if (typeof WebAssembly.instantiateStreaming === "function") {
461
444
  try {
462
445
  return await WebAssembly.instantiateStreaming(module2, imports);
463
446
  } catch (e) {
464
- const validResponse = module2.ok && EXPECTED_RESPONSE_TYPES.has(module2.type);
465
- if (validResponse && module2.headers.get("Content-Type") !== "application/wasm") {
447
+ if (module2.headers.get("Content-Type") != "application/wasm") {
466
448
  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);
467
449
  } else {
468
450
  throw e;
@@ -484,10 +466,6 @@ __name(__wbg_load, "__wbg_load");
484
466
  function __wbg_get_imports() {
485
467
  const imports = {};
486
468
  imports.wbg = {};
487
- imports.wbg.__wbg_Error_1f3748b298f99708 = function(arg0, arg1) {
488
- const ret = Error(getStringFromWasm0(arg0, arg1));
489
- return ret;
490
- };
491
469
  imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
492
470
  const ret = String(arg1);
493
471
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -495,27 +473,31 @@ function __wbg_get_imports() {
495
473
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
496
474
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
497
475
  };
498
- imports.wbg.__wbg_abort_6665281623826052 = function(arg0) {
476
+ imports.wbg.__wbg_abort_775ef1d17fc65868 = function(arg0) {
499
477
  arg0.abort();
500
478
  };
501
- imports.wbg.__wbg_append_3e86b0cd6215edd8 = function() {
479
+ imports.wbg.__wbg_append_8c7dd8d641a5f01b = function() {
502
480
  return handleError(function(arg0, arg1, arg2, arg3, arg4) {
503
481
  arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
504
482
  }, arguments);
505
483
  };
506
- imports.wbg.__wbg_arrayBuffer_55e4a430671abfd8 = function() {
484
+ imports.wbg.__wbg_arrayBuffer_d1b44c4390db422f = function() {
507
485
  return handleError(function(arg0) {
508
486
  const ret = arg0.arrayBuffer();
509
487
  return ret;
510
488
  }, arguments);
511
489
  };
512
- imports.wbg.__wbg_call_2f8d426a20a307fe = function() {
490
+ imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
491
+ const ret = arg0.buffer;
492
+ return ret;
493
+ };
494
+ imports.wbg.__wbg_call_672a4d21634d4a24 = function() {
513
495
  return handleError(function(arg0, arg1) {
514
496
  const ret = arg0.call(arg1);
515
497
  return ret;
516
498
  }, arguments);
517
499
  };
518
- imports.wbg.__wbg_call_f53f0647ceb9c567 = function() {
500
+ imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() {
519
501
  return handleError(function(arg0, arg1, arg2) {
520
502
  const ret = arg0.call(arg1, arg2);
521
503
  return ret;
@@ -529,15 +511,15 @@ function __wbg_get_imports() {
529
511
  const ret = arg0.crypto;
530
512
  return ret;
531
513
  };
532
- imports.wbg.__wbg_done_4a7743b6f942c9f3 = function(arg0) {
514
+ imports.wbg.__wbg_done_769e5ede4b31c67b = function(arg0) {
533
515
  const ret = arg0.done;
534
516
  return ret;
535
517
  };
536
- imports.wbg.__wbg_entries_17f7acbc2d691c0d = function(arg0) {
518
+ imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
537
519
  const ret = Object.entries(arg0);
538
520
  return ret;
539
521
  };
540
- imports.wbg.__wbg_fetch_9885d2e26ad251bb = function(arg0, arg1) {
522
+ imports.wbg.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
541
523
  const ret = arg0.fetch(arg1);
542
524
  return ret;
543
525
  };
@@ -545,7 +527,7 @@ function __wbg_get_imports() {
545
527
  const ret = fetch(arg0);
546
528
  return ret;
547
529
  };
548
- imports.wbg.__wbg_from_237b1ad767238d8b = function(arg0) {
530
+ imports.wbg.__wbg_from_2a5d3e218e67aa85 = function(arg0) {
549
531
  const ret = Array.from(arg0);
550
532
  return ret;
551
533
  };
@@ -566,31 +548,31 @@ function __wbg_get_imports() {
566
548
  arg0.getRandomValues(arg1);
567
549
  }, arguments);
568
550
  };
569
- imports.wbg.__wbg_getTime_5b1dd03bb6d4b784 = function(arg0) {
551
+ imports.wbg.__wbg_getTime_46267b1c24877e30 = function(arg0) {
570
552
  const ret = arg0.getTime();
571
553
  return ret;
572
554
  };
573
- imports.wbg.__wbg_get_27b4bcbec57323ca = function() {
555
+ imports.wbg.__wbg_get_67b2ba62fc30de12 = function() {
574
556
  return handleError(function(arg0, arg1) {
575
557
  const ret = Reflect.get(arg0, arg1);
576
558
  return ret;
577
559
  }, arguments);
578
560
  };
579
- imports.wbg.__wbg_get_59c6316d15f9f1d0 = function(arg0, arg1) {
561
+ imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
580
562
  const ret = arg0[arg1 >>> 0];
581
563
  return ret;
582
564
  };
583
- imports.wbg.__wbg_has_85abdd8aeb8edebf = function() {
565
+ imports.wbg.__wbg_has_a5ea9117f258a0ec = function() {
584
566
  return handleError(function(arg0, arg1) {
585
567
  const ret = Reflect.has(arg0, arg1);
586
568
  return ret;
587
569
  }, arguments);
588
570
  };
589
- imports.wbg.__wbg_headers_177bc880a5823968 = function(arg0) {
571
+ imports.wbg.__wbg_headers_9cb51cfd2ac780a4 = function(arg0) {
590
572
  const ret = arg0.headers;
591
573
  return ret;
592
574
  };
593
- imports.wbg.__wbg_instanceof_ArrayBuffer_59339a3a6f0c10ea = function(arg0) {
575
+ imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
594
576
  let result;
595
577
  try {
596
578
  result = arg0 instanceof ArrayBuffer;
@@ -600,7 +582,7 @@ function __wbg_get_imports() {
600
582
  const ret = result;
601
583
  return ret;
602
584
  };
603
- imports.wbg.__wbg_instanceof_Map_dd89a82d76d1b25f = function(arg0) {
585
+ imports.wbg.__wbg_instanceof_Map_f3469ce2244d2430 = function(arg0) {
604
586
  let result;
605
587
  try {
606
588
  result = arg0 instanceof Map;
@@ -610,7 +592,7 @@ function __wbg_get_imports() {
610
592
  const ret = result;
611
593
  return ret;
612
594
  };
613
- imports.wbg.__wbg_instanceof_Response_0ab386c6818f788a = function(arg0) {
595
+ imports.wbg.__wbg_instanceof_Response_f2cc20d9f7dfd644 = function(arg0) {
614
596
  let result;
615
597
  try {
616
598
  result = arg0 instanceof Response;
@@ -620,7 +602,7 @@ function __wbg_get_imports() {
620
602
  const ret = result;
621
603
  return ret;
622
604
  };
623
- imports.wbg.__wbg_instanceof_Uint8Array_91f3c5adee7e6672 = function(arg0) {
605
+ imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
624
606
  let result;
625
607
  try {
626
608
  result = arg0 instanceof Uint8Array;
@@ -630,27 +612,27 @@ function __wbg_get_imports() {
630
612
  const ret = result;
631
613
  return ret;
632
614
  };
633
- imports.wbg.__wbg_isArray_bc2498eba6fcb71f = function(arg0) {
615
+ imports.wbg.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
634
616
  const ret = Array.isArray(arg0);
635
617
  return ret;
636
618
  };
637
- imports.wbg.__wbg_isSafeInteger_6091d6e3ee1b65fd = function(arg0) {
619
+ imports.wbg.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
638
620
  const ret = Number.isSafeInteger(arg0);
639
621
  return ret;
640
622
  };
641
- imports.wbg.__wbg_iterator_96378c3c9a17347c = function() {
623
+ imports.wbg.__wbg_iterator_9a24c88df860dc65 = function() {
642
624
  const ret = Symbol.iterator;
643
625
  return ret;
644
626
  };
645
- imports.wbg.__wbg_keys_7eff209f4f3c9f17 = function(arg0) {
627
+ imports.wbg.__wbg_keys_5c77a08ddc2fb8a6 = function(arg0) {
646
628
  const ret = Object.keys(arg0);
647
629
  return ret;
648
630
  };
649
- imports.wbg.__wbg_length_246fa1f85a0dea5b = function(arg0) {
631
+ imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
650
632
  const ret = arg0.length;
651
633
  return ret;
652
634
  };
653
- imports.wbg.__wbg_length_904c0910ed998bf3 = function(arg0) {
635
+ imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
654
636
  const ret = arg0.length;
655
637
  return ret;
656
638
  };
@@ -662,42 +644,24 @@ function __wbg_get_imports() {
662
644
  const ret = arg0.msCrypto;
663
645
  return ret;
664
646
  };
665
- imports.wbg.__wbg_new0_85cc856927102294 = function() {
647
+ imports.wbg.__wbg_new0_f788a2397c7ca929 = function() {
666
648
  const ret = new Date();
667
649
  return ret;
668
650
  };
669
- imports.wbg.__wbg_new_12588505388d0897 = function() {
651
+ imports.wbg.__wbg_new_018dcc2d6c8c2f6a = function() {
670
652
  return handleError(function() {
671
653
  const ret = new Headers();
672
654
  return ret;
673
655
  }, arguments);
674
656
  };
675
- imports.wbg.__wbg_new_1930cbb8d9ffc31b = function() {
676
- const ret = new Object();
677
- return ret;
678
- };
679
- imports.wbg.__wbg_new_56407f99198feff7 = function() {
680
- const ret = /* @__PURE__ */ new Map();
681
- return ret;
682
- };
683
- imports.wbg.__wbg_new_6a8b180049d9484e = function() {
684
- return handleError(function() {
685
- const ret = new AbortController();
686
- return ret;
687
- }, arguments);
688
- };
689
- imports.wbg.__wbg_new_9190433fb67ed635 = function(arg0) {
690
- const ret = new Uint8Array(arg0);
691
- return ret;
692
- };
693
- imports.wbg.__wbg_new_d5e3800b120e37e1 = function(arg0, arg1) {
657
+ imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
694
658
  try {
695
659
  var state0 = { a: arg0, b: arg1 };
696
660
  var cb0 = /* @__PURE__ */ __name((arg02, arg12) => {
697
661
  const a = state0.a;
698
662
  state0.a = 0;
699
663
  try {
700
- return __wbg_adapter_188(a, state0.b, arg02, arg12);
664
+ return __wbg_adapter_222(a, state0.b, arg02, arg12);
701
665
  } finally {
702
666
  state0.a = a;
703
667
  }
@@ -708,43 +672,61 @@ function __wbg_get_imports() {
708
672
  state0.a = state0.b = 0;
709
673
  }
710
674
  };
711
- imports.wbg.__wbg_new_e969dc3f68d25093 = function() {
675
+ imports.wbg.__wbg_new_405e22f390576ce2 = function() {
676
+ const ret = new Object();
677
+ return ret;
678
+ };
679
+ imports.wbg.__wbg_new_5e0be73521bc8c17 = function() {
680
+ const ret = /* @__PURE__ */ new Map();
681
+ return ret;
682
+ };
683
+ imports.wbg.__wbg_new_78feb108b6472713 = function() {
712
684
  const ret = new Array();
713
685
  return ret;
714
686
  };
715
- imports.wbg.__wbg_newfromslice_d0d56929c6d9c842 = function(arg0, arg1) {
716
- const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
687
+ imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
688
+ const ret = new Uint8Array(arg0);
717
689
  return ret;
718
690
  };
719
- imports.wbg.__wbg_newnoargs_a81330f6e05d8aca = function(arg0, arg1) {
691
+ imports.wbg.__wbg_new_e25e5aab09ff45db = function() {
692
+ return handleError(function() {
693
+ const ret = new AbortController();
694
+ return ret;
695
+ }, arguments);
696
+ };
697
+ imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
720
698
  const ret = new Function(getStringFromWasm0(arg0, arg1));
721
699
  return ret;
722
700
  };
723
- imports.wbg.__wbg_newwithlength_ed0ee6c1edca86fc = function(arg0) {
701
+ imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
702
+ const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
703
+ return ret;
704
+ };
705
+ imports.wbg.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
724
706
  const ret = new Uint8Array(arg0 >>> 0);
725
707
  return ret;
726
708
  };
727
- imports.wbg.__wbg_newwithstrandinit_e8e22e9851f3c2fe = function() {
709
+ imports.wbg.__wbg_newwithstrandinit_06c535e0a867c635 = function() {
728
710
  return handleError(function(arg0, arg1, arg2) {
729
711
  const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
730
712
  return ret;
731
713
  }, arguments);
732
714
  };
733
- imports.wbg.__wbg_next_2e6b37020ac5fe58 = function() {
715
+ imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) {
716
+ const ret = arg0.next;
717
+ return ret;
718
+ };
719
+ imports.wbg.__wbg_next_6574e1a8a62d1055 = function() {
734
720
  return handleError(function(arg0) {
735
721
  const ret = arg0.next();
736
722
  return ret;
737
723
  }, arguments);
738
724
  };
739
- imports.wbg.__wbg_next_3de8f2669431a3ff = function(arg0) {
740
- const ret = arg0.next;
741
- return ret;
742
- };
743
725
  imports.wbg.__wbg_node_905d3e251edff8a2 = function(arg0) {
744
726
  const ret = arg0.node;
745
727
  return ret;
746
728
  };
747
- imports.wbg.__wbg_now_1f875e5cd673bc3c = function(arg0) {
729
+ imports.wbg.__wbg_now_d18023d54d4e5500 = function(arg0) {
748
730
  const ret = arg0.now();
749
731
  return ret;
750
732
  };
@@ -752,20 +734,17 @@ function __wbg_get_imports() {
752
734
  const ret = arg0.process;
753
735
  return ret;
754
736
  };
755
- imports.wbg.__wbg_prototypesetcall_c5f74efd31aea86b = function(arg0, arg1, arg2) {
756
- Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
757
- };
758
- imports.wbg.__wbg_push_cd3ac7d5b094565d = function(arg0, arg1) {
737
+ imports.wbg.__wbg_push_737cfc8c1432c2c6 = function(arg0, arg1) {
759
738
  const ret = arg0.push(arg1);
760
739
  return ret;
761
740
  };
762
- imports.wbg.__wbg_queueMicrotask_bcc6e26d899696db = function(arg0) {
741
+ imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
742
+ queueMicrotask(arg0);
743
+ };
744
+ imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
763
745
  const ret = arg0.queueMicrotask;
764
746
  return ret;
765
747
  };
766
- imports.wbg.__wbg_queueMicrotask_f24a794d09c42640 = function(arg0) {
767
- queueMicrotask(arg0);
768
- };
769
748
  imports.wbg.__wbg_randomFillSync_994ac6d9ade7a695 = function(arg0, arg1, arg2) {
770
749
  arg0.randomFillSync(getArrayU8FromWasm0(arg1, arg2));
771
750
  };
@@ -784,7 +763,7 @@ function __wbg_get_imports() {
784
763
  return ret;
785
764
  }, arguments);
786
765
  };
787
- imports.wbg.__wbg_resolve_5775c0ef9222f556 = function(arg0) {
766
+ imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
788
767
  const ret = Promise.resolve(arg0);
789
768
  return ret;
790
769
  };
@@ -794,52 +773,52 @@ function __wbg_get_imports() {
794
773
  return ret;
795
774
  }, arguments);
796
775
  };
797
- imports.wbg.__wbg_set_1d5fe1e3f51a48d8 = function(arg0, arg1, arg2) {
798
- arg0.set(getArrayU8FromWasm0(arg1, arg2));
799
- };
800
- imports.wbg.__wbg_set_31197016f65a6a19 = function(arg0, arg1, arg2) {
801
- const ret = arg0.set(arg1, arg2);
802
- return ret;
776
+ imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
777
+ arg0[arg1 >>> 0] = arg2;
803
778
  };
804
779
  imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
805
780
  arg0[arg1] = arg2;
806
781
  };
807
- imports.wbg.__wbg_set_b33e7a98099eed58 = function() {
782
+ imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
783
+ arg0.set(arg1, arg2 >>> 0);
784
+ };
785
+ imports.wbg.__wbg_set_8fc6bf8a5b1071d1 = function(arg0, arg1, arg2) {
786
+ const ret = arg0.set(arg1, arg2);
787
+ return ret;
788
+ };
789
+ imports.wbg.__wbg_set_bb8cecf6a62b9f46 = function() {
808
790
  return handleError(function(arg0, arg1, arg2) {
809
791
  const ret = Reflect.set(arg0, arg1, arg2);
810
792
  return ret;
811
793
  }, arguments);
812
794
  };
813
- imports.wbg.__wbg_set_d636a0463acf1dbc = function(arg0, arg1, arg2) {
814
- arg0[arg1 >>> 0] = arg2;
815
- };
816
- imports.wbg.__wbg_setbody_e324371c31597f2a = function(arg0, arg1) {
795
+ imports.wbg.__wbg_setbody_5923b78a95eedf29 = function(arg0, arg1) {
817
796
  arg0.body = arg1;
818
797
  };
819
- imports.wbg.__wbg_setcredentials_55a9317ed2777533 = function(arg0, arg1) {
798
+ imports.wbg.__wbg_setcredentials_c3a22f1cd105a2c6 = function(arg0, arg1) {
820
799
  arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
821
800
  };
822
- imports.wbg.__wbg_setheaders_ac0b1e4890a949cd = function(arg0, arg1) {
801
+ imports.wbg.__wbg_setheaders_834c0bdb6a8949ad = function(arg0, arg1) {
823
802
  arg0.headers = arg1;
824
803
  };
825
- imports.wbg.__wbg_setmethod_9ce6e95af1ae0eaf = function(arg0, arg1, arg2) {
804
+ imports.wbg.__wbg_setmethod_3c5280fe5d890842 = function(arg0, arg1, arg2) {
826
805
  arg0.method = getStringFromWasm0(arg1, arg2);
827
806
  };
828
- imports.wbg.__wbg_setmode_b89d1784e7e7f118 = function(arg0, arg1) {
807
+ imports.wbg.__wbg_setmode_5dc300b865044b65 = function(arg0, arg1) {
829
808
  arg0.mode = __wbindgen_enum_RequestMode[arg1];
830
809
  };
831
- imports.wbg.__wbg_setsignal_e663c6d962763cd5 = function(arg0, arg1) {
810
+ imports.wbg.__wbg_setsignal_75b21ef3a81de905 = function(arg0, arg1) {
832
811
  arg0.signal = arg1;
833
812
  };
834
- imports.wbg.__wbg_signal_bdb003fe19e53a13 = function(arg0) {
813
+ imports.wbg.__wbg_signal_aaf9ad74119f20a4 = function(arg0) {
835
814
  const ret = arg0.signal;
836
815
  return ret;
837
816
  };
838
- imports.wbg.__wbg_static_accessor_GLOBAL_1f13249cc3acc96d = function() {
817
+ imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
839
818
  const ret = typeof global === "undefined" ? null : global;
840
819
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
841
820
  };
842
- imports.wbg.__wbg_static_accessor_GLOBAL_THIS_df7ae94b1e0ed6a3 = function() {
821
+ imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
843
822
  const ret = typeof globalThis === "undefined" ? null : globalThis;
844
823
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
845
824
  };
@@ -847,44 +826,44 @@ function __wbg_get_imports() {
847
826
  const ret = module;
848
827
  return ret;
849
828
  };
850
- imports.wbg.__wbg_static_accessor_SELF_6265471db3b3c228 = function() {
829
+ imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
851
830
  const ret = typeof self === "undefined" ? null : self;
852
831
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
853
832
  };
854
- imports.wbg.__wbg_static_accessor_WINDOW_16fb482f8ec52863 = function() {
833
+ imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
855
834
  const ret = typeof window === "undefined" ? null : window;
856
835
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
857
836
  };
858
- imports.wbg.__wbg_status_31874648c8651949 = function(arg0) {
837
+ imports.wbg.__wbg_status_f6360336ca686bf0 = function(arg0) {
859
838
  const ret = arg0.status;
860
839
  return ret;
861
840
  };
862
- imports.wbg.__wbg_stringify_1f41b6198e0932e0 = function() {
841
+ imports.wbg.__wbg_stringify_f7ed6987935b4a24 = function() {
863
842
  return handleError(function(arg0) {
864
843
  const ret = JSON.stringify(arg0);
865
844
  return ret;
866
845
  }, arguments);
867
846
  };
868
- imports.wbg.__wbg_subarray_a219824899e59712 = function(arg0, arg1, arg2) {
847
+ imports.wbg.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
869
848
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
870
849
  return ret;
871
850
  };
872
- imports.wbg.__wbg_then_8d2fcccde5380a03 = function(arg0, arg1, arg2) {
873
- const ret = arg0.then(arg1, arg2);
851
+ imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
852
+ const ret = arg0.then(arg1);
874
853
  return ret;
875
854
  };
876
- imports.wbg.__wbg_then_9cc266be2bf537b6 = function(arg0, arg1) {
877
- const ret = arg0.then(arg1);
855
+ imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
856
+ const ret = arg0.then(arg1, arg2);
878
857
  return ret;
879
858
  };
880
- imports.wbg.__wbg_url_d5273b9e10503471 = function(arg0, arg1) {
859
+ imports.wbg.__wbg_url_ae10c34ca209681d = function(arg0, arg1) {
881
860
  const ret = arg1.url;
882
861
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
883
862
  const len1 = WASM_VECTOR_LEN;
884
863
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
885
864
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
886
865
  };
887
- imports.wbg.__wbg_value_09d0b4eaab48b91d = function(arg0) {
866
+ imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
888
867
  const ret = arg0.value;
889
868
  return ret;
890
869
  };
@@ -892,18 +871,30 @@ function __wbg_get_imports() {
892
871
  const ret = arg0.versions;
893
872
  return ret;
894
873
  };
895
- imports.wbg.__wbg_wbindgenbigintgetasi64_7637cb1a7fb9a81e = function(arg0, arg1) {
874
+ imports.wbg.__wbindgen_bigint_from_i128 = function(arg0, arg1) {
875
+ const ret = arg0 << BigInt(64) | BigInt.asUintN(64, arg1);
876
+ return ret;
877
+ };
878
+ imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
879
+ const ret = arg0;
880
+ return ret;
881
+ };
882
+ imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
883
+ const ret = BigInt.asUintN(64, arg0);
884
+ return ret;
885
+ };
886
+ imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
896
887
  const v = arg1;
897
888
  const ret = typeof v === "bigint" ? v : void 0;
898
889
  getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
899
890
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
900
891
  };
901
- imports.wbg.__wbg_wbindgenbooleanget_59f830b1a70d2530 = function(arg0) {
892
+ imports.wbg.__wbindgen_boolean_get = function(arg0) {
902
893
  const v = arg0;
903
- const ret = typeof v === "boolean" ? v : void 0;
904
- return isLikeNone(ret) ? 16777215 : ret ? 1 : 0;
894
+ const ret = typeof v === "boolean" ? v ? 1 : 0 : 2;
895
+ return ret;
905
896
  };
906
- imports.wbg.__wbg_wbindgencbdrop_a85ed476c6a370b9 = function(arg0) {
897
+ imports.wbg.__wbindgen_cb_drop = function(arg0) {
907
898
  const obj = arg0.original;
908
899
  if (obj.cnt-- == 1) {
909
900
  obj.a = 0;
@@ -912,57 +903,83 @@ function __wbg_get_imports() {
912
903
  const ret = false;
913
904
  return ret;
914
905
  };
915
- imports.wbg.__wbg_wbindgendebugstring_bb652b1bc2061b6d = function(arg0, arg1) {
906
+ imports.wbg.__wbindgen_closure_wrapper12250 = function(arg0, arg1, arg2) {
907
+ const ret = makeMutClosure(arg0, arg1, 4185, __wbg_adapter_54);
908
+ return ret;
909
+ };
910
+ imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
916
911
  const ret = debugString(arg1);
917
912
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
918
913
  const len1 = WASM_VECTOR_LEN;
919
914
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
920
915
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
921
916
  };
922
- imports.wbg.__wbg_wbindgenin_192b210aa1c401e9 = function(arg0, arg1) {
917
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
918
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
919
+ return ret;
920
+ };
921
+ imports.wbg.__wbindgen_in = function(arg0, arg1) {
923
922
  const ret = arg0 in arg1;
924
923
  return ret;
925
924
  };
926
- imports.wbg.__wbg_wbindgenisbigint_7d76a1ca6454e439 = function(arg0) {
925
+ imports.wbg.__wbindgen_init_externref_table = function() {
926
+ const table = wasm.__wbindgen_export_4;
927
+ const offset = table.grow(4);
928
+ table.set(0, void 0);
929
+ table.set(offset + 0, void 0);
930
+ table.set(offset + 1, null);
931
+ table.set(offset + 2, true);
932
+ table.set(offset + 3, false);
933
+ ;
934
+ };
935
+ imports.wbg.__wbindgen_is_bigint = function(arg0) {
927
936
  const ret = typeof arg0 === "bigint";
928
937
  return ret;
929
938
  };
930
- imports.wbg.__wbg_wbindgenisfunction_ea72b9d66a0e1705 = function(arg0) {
939
+ imports.wbg.__wbindgen_is_function = function(arg0) {
931
940
  const ret = typeof arg0 === "function";
932
941
  return ret;
933
942
  };
934
- imports.wbg.__wbg_wbindgenisnull_e1388bbe88158c3f = function(arg0) {
943
+ imports.wbg.__wbindgen_is_null = function(arg0) {
935
944
  const ret = arg0 === null;
936
945
  return ret;
937
946
  };
938
- imports.wbg.__wbg_wbindgenisobject_dfe064a121d87553 = function(arg0) {
947
+ imports.wbg.__wbindgen_is_object = function(arg0) {
939
948
  const val = arg0;
940
949
  const ret = typeof val === "object" && val !== null;
941
950
  return ret;
942
951
  };
943
- imports.wbg.__wbg_wbindgenisstring_4b74e4111ba029e6 = function(arg0) {
952
+ imports.wbg.__wbindgen_is_string = function(arg0) {
944
953
  const ret = typeof arg0 === "string";
945
954
  return ret;
946
955
  };
947
- imports.wbg.__wbg_wbindgenisundefined_71f08a6ade4354e7 = function(arg0) {
956
+ imports.wbg.__wbindgen_is_undefined = function(arg0) {
948
957
  const ret = arg0 === void 0;
949
958
  return ret;
950
959
  };
951
- imports.wbg.__wbg_wbindgenjsvaleq_f27272c0a890df7f = function(arg0, arg1) {
960
+ imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
952
961
  const ret = arg0 === arg1;
953
962
  return ret;
954
963
  };
955
- imports.wbg.__wbg_wbindgenjsvallooseeq_9dd7bb4b95ac195c = function(arg0, arg1) {
964
+ imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
956
965
  const ret = arg0 == arg1;
957
966
  return ret;
958
967
  };
959
- imports.wbg.__wbg_wbindgennumberget_d855f947247a3fbc = function(arg0, arg1) {
968
+ imports.wbg.__wbindgen_memory = function() {
969
+ const ret = wasm.memory;
970
+ return ret;
971
+ };
972
+ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
960
973
  const obj = arg1;
961
974
  const ret = typeof obj === "number" ? obj : void 0;
962
975
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
963
976
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
964
977
  };
965
- imports.wbg.__wbg_wbindgenstringget_43fe05afe34b0cb1 = function(arg0, arg1) {
978
+ imports.wbg.__wbindgen_number_new = function(arg0) {
979
+ const ret = arg0;
980
+ return ret;
981
+ };
982
+ imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
966
983
  const obj = arg1;
967
984
  const ret = typeof obj === "string" ? obj : void 0;
968
985
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -970,46 +987,12 @@ function __wbg_get_imports() {
970
987
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
971
988
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
972
989
  };
973
- imports.wbg.__wbg_wbindgenthrow_4c11a24fca429ccf = function(arg0, arg1) {
974
- throw new Error(getStringFromWasm0(arg0, arg1));
975
- };
976
- imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
990
+ imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
977
991
  const ret = getStringFromWasm0(arg0, arg1);
978
992
  return ret;
979
993
  };
980
- imports.wbg.__wbindgen_cast_2ddd8a25ff58642a = function(arg0, arg1) {
981
- const ret = BigInt.asUintN(64, arg0) | arg1 << BigInt(64);
982
- return ret;
983
- };
984
- imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
985
- const ret = BigInt.asUintN(64, arg0);
986
- return ret;
987
- };
988
- imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
989
- const ret = arg0;
990
- return ret;
991
- };
992
- imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
993
- const ret = getArrayU8FromWasm0(arg0, arg1);
994
- return ret;
995
- };
996
- imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
997
- const ret = arg0;
998
- return ret;
999
- };
1000
- imports.wbg.__wbindgen_cast_f7331b0818e1ba43 = function(arg0, arg1) {
1001
- const ret = makeMutClosure(arg0, arg1, 4201, __wbg_adapter_10);
1002
- return ret;
1003
- };
1004
- imports.wbg.__wbindgen_init_externref_table = function() {
1005
- const table = wasm.__wbindgen_export_4;
1006
- const offset = table.grow(4);
1007
- table.set(0, void 0);
1008
- table.set(offset + 0, void 0);
1009
- table.set(offset + 1, null);
1010
- table.set(offset + 2, true);
1011
- table.set(offset + 3, false);
1012
- ;
994
+ imports.wbg.__wbindgen_throw = function(arg0, arg1) {
995
+ throw new Error(getStringFromWasm0(arg0, arg1));
1013
996
  };
1014
997
  return imports;
1015
998
  }
@@ -1053,7 +1036,7 @@ var didkit_wasm_default = __wbg_init;
1053
1036
  // src/didkit/index.ts
1054
1037
  var initialized = false;
1055
1038
  var generating = false;
1056
- var init = /* @__PURE__ */ __name(async (arg = "https://cdn.filestackcontent.com/HpIgP6KpQeWbTWaKs1ro") => {
1039
+ var init = /* @__PURE__ */ __name(async (arg = "https://cdn.filestackcontent.com/HReKwBTm2Wha4Wlo4uwe") => {
1057
1040
  while (generating)
1058
1041
  await new Promise((res) => setTimeout(res, 250));
1059
1042
  if (initialized)