@keyhive/keyhive 0.0.0-alpha.1 → 0.0.0-alpha.2

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.
@@ -13,9 +13,7 @@ function getUint8ArrayMemory0() {
13
13
  return cachedUint8ArrayMemory0;
14
14
  }
15
15
 
16
- const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
17
-
18
- let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
16
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
19
17
 
20
18
  cachedTextDecoder.decode();
21
19
 
@@ -24,7 +22,7 @@ let numBytesDecoded = 0;
24
22
  function decodeText(ptr, len) {
25
23
  numBytesDecoded += len;
26
24
  if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
27
- cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
25
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
28
26
  cachedTextDecoder.decode();
29
27
  numBytesDecoded = len;
30
28
  }
@@ -58,22 +56,18 @@ function getArrayU8FromWasm0(ptr, len) {
58
56
 
59
57
  let WASM_VECTOR_LEN = 0;
60
58
 
61
- const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
62
-
63
- const cachedTextEncoder = new lTextEncoder('utf-8');
59
+ const cachedTextEncoder = new TextEncoder();
64
60
 
65
- const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
66
- ? function (arg, view) {
67
- return cachedTextEncoder.encodeInto(arg, view);
61
+ if (!('encodeInto' in cachedTextEncoder)) {
62
+ cachedTextEncoder.encodeInto = function (arg, view) {
63
+ const buf = cachedTextEncoder.encode(arg);
64
+ view.set(buf);
65
+ return {
66
+ read: arg.length,
67
+ written: buf.length
68
+ };
69
+ }
68
70
  }
69
- : function (arg, view) {
70
- const buf = cachedTextEncoder.encode(arg);
71
- view.set(buf);
72
- return {
73
- read: arg.length,
74
- written: buf.length
75
- };
76
- });
77
71
 
78
72
  function passStringToWasm0(arg, malloc, realloc) {
79
73
 
@@ -104,7 +98,7 @@ function passStringToWasm0(arg, malloc, realloc) {
104
98
  }
105
99
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
106
100
  const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
107
- const ret = encodeString(arg, view);
101
+ const ret = cachedTextEncoder.encodeInto(arg, view);
108
102
 
109
103
  offset += ret.written;
110
104
  ptr = realloc(ptr, len, offset, 1) >>> 0;
@@ -333,6 +327,7 @@ export class Access {
333
327
  }
334
328
  }
335
329
  }
330
+ if (Symbol.dispose) Access.prototype[Symbol.dispose] = Access.prototype.free;
336
331
 
337
332
  const AddMemberErrorFinalization = (typeof FinalizationRegistry === 'undefined')
338
333
  ? { register: () => {}, unregister: () => {} }
@@ -375,6 +370,7 @@ export class AddMemberError {
375
370
  }
376
371
  }
377
372
  }
373
+ if (Symbol.dispose) AddMemberError.prototype[Symbol.dispose] = AddMemberError.prototype.free;
378
374
 
379
375
  const AgentFinalization = (typeof FinalizationRegistry === 'undefined')
380
376
  ? { register: () => {}, unregister: () => {} }
@@ -445,6 +441,7 @@ export class Agent {
445
441
  return Identifier.__wrap(ret);
446
442
  }
447
443
  }
444
+ if (Symbol.dispose) Agent.prototype[Symbol.dispose] = Agent.prototype.free;
448
445
 
449
446
  const ArchiveFinalization = (typeof FinalizationRegistry === 'undefined')
450
447
  ? { register: () => {}, unregister: () => {} }
@@ -514,6 +511,7 @@ export class Archive {
514
511
  return Keyhive.__wrap(ret[0]);
515
512
  }
516
513
  }
514
+ if (Symbol.dispose) Archive.prototype[Symbol.dispose] = Archive.prototype.free;
517
515
 
518
516
  const CannotParseEd25519SigningKeyFinalization = (typeof FinalizationRegistry === 'undefined')
519
517
  ? { register: () => {}, unregister: () => {} }
@@ -541,6 +539,7 @@ export class CannotParseEd25519SigningKey {
541
539
  wasm.__wbg_cannotparseed25519signingkey_free(ptr, 0);
542
540
  }
543
541
  }
542
+ if (Symbol.dispose) CannotParseEd25519SigningKey.prototype[Symbol.dispose] = CannotParseEd25519SigningKey.prototype.free;
544
543
 
545
544
  const CannotParseIdentifierFinalization = (typeof FinalizationRegistry === 'undefined')
546
545
  ? { register: () => {}, unregister: () => {} }
@@ -568,6 +567,7 @@ export class CannotParseIdentifier {
568
567
  wasm.__wbg_cannotparseidentifier_free(ptr, 0);
569
568
  }
570
569
  }
570
+ if (Symbol.dispose) CannotParseIdentifier.prototype[Symbol.dispose] = CannotParseIdentifier.prototype.free;
571
571
 
572
572
  const CapabilityFinalization = (typeof FinalizationRegistry === 'undefined')
573
573
  ? { register: () => {}, unregister: () => {} }
@@ -616,6 +616,7 @@ export class Capability {
616
616
  return SignedDelegation.__wrap(ret);
617
617
  }
618
618
  }
619
+ if (Symbol.dispose) Capability.prototype[Symbol.dispose] = Capability.prototype.free;
619
620
 
620
621
  const CgkaOperationFinalization = (typeof FinalizationRegistry === 'undefined')
621
622
  ? { register: () => {}, unregister: () => {} }
@@ -658,6 +659,7 @@ export class CgkaOperation {
658
659
  }
659
660
  }
660
661
  }
662
+ if (Symbol.dispose) CgkaOperation.prototype[Symbol.dispose] = CgkaOperation.prototype.free;
661
663
 
662
664
  const ChangeRefFinalization = (typeof FinalizationRegistry === 'undefined')
663
665
  ? { register: () => {}, unregister: () => {} }
@@ -712,6 +714,7 @@ export class ChangeRef {
712
714
  return v1;
713
715
  }
714
716
  }
717
+ if (Symbol.dispose) ChangeRef.prototype[Symbol.dispose] = ChangeRef.prototype.free;
715
718
 
716
719
  const CiphertextStoreFinalization = (typeof FinalizationRegistry === 'undefined')
717
720
  ? { register: () => {}, unregister: () => {} }
@@ -754,6 +757,7 @@ export class CiphertextStore {
754
757
  return CiphertextStore.__wrap(ret);
755
758
  }
756
759
  }
760
+ if (Symbol.dispose) CiphertextStore.prototype[Symbol.dispose] = CiphertextStore.prototype.free;
757
761
 
758
762
  const ContactCardFinalization = (typeof FinalizationRegistry === 'undefined')
759
763
  ? { register: () => {}, unregister: () => {} }
@@ -838,6 +842,7 @@ export class ContactCard {
838
842
  }
839
843
  }
840
844
  }
845
+ if (Symbol.dispose) ContactCard.prototype[Symbol.dispose] = ContactCard.prototype.free;
841
846
 
842
847
  const DelegationFinalization = (typeof FinalizationRegistry === 'undefined')
843
848
  ? { register: () => {}, unregister: () => {} }
@@ -893,6 +898,7 @@ export class Delegation {
893
898
  return History.__wrap(ret);
894
899
  }
895
900
  }
901
+ if (Symbol.dispose) Delegation.prototype[Symbol.dispose] = Delegation.prototype.free;
896
902
 
897
903
  const DelegationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
898
904
  ? { register: () => {}, unregister: () => {} }
@@ -912,6 +918,7 @@ export class DelegationError {
912
918
  wasm.__wbg_delegationerror_free(ptr, 0);
913
919
  }
914
920
  }
921
+ if (Symbol.dispose) DelegationError.prototype[Symbol.dispose] = DelegationError.prototype.free;
915
922
 
916
923
  const DocContentRefsFinalization = (typeof FinalizationRegistry === 'undefined')
917
924
  ? { register: () => {}, unregister: () => {} }
@@ -980,6 +987,7 @@ export class DocContentRefs {
980
987
  return v1;
981
988
  }
982
989
  }
990
+ if (Symbol.dispose) DocContentRefs.prototype[Symbol.dispose] = DocContentRefs.prototype.free;
983
991
 
984
992
  const DocumentFinalization = (typeof FinalizationRegistry === 'undefined')
985
993
  ? { register: () => {}, unregister: () => {} }
@@ -1042,6 +1050,7 @@ export class Document {
1042
1050
  return Agent.__wrap(ret);
1043
1051
  }
1044
1052
  }
1053
+ if (Symbol.dispose) Document.prototype[Symbol.dispose] = Document.prototype.free;
1045
1054
 
1046
1055
  const DocumentIdFinalization = (typeof FinalizationRegistry === 'undefined')
1047
1056
  ? { register: () => {}, unregister: () => {} }
@@ -1114,6 +1123,7 @@ export class DocumentId {
1114
1123
  return v1;
1115
1124
  }
1116
1125
  }
1126
+ if (Symbol.dispose) DocumentId.prototype[Symbol.dispose] = DocumentId.prototype.free;
1117
1127
 
1118
1128
  const EncryptedFinalization = (typeof FinalizationRegistry === 'undefined')
1119
1129
  ? { register: () => {}, unregister: () => {} }
@@ -1195,6 +1205,7 @@ export class Encrypted {
1195
1205
  return v1;
1196
1206
  }
1197
1207
  }
1208
+ if (Symbol.dispose) Encrypted.prototype[Symbol.dispose] = Encrypted.prototype.free;
1198
1209
 
1199
1210
  const EncryptedContentWithUpdateFinalization = (typeof FinalizationRegistry === 'undefined')
1200
1211
  ? { register: () => {}, unregister: () => {} }
@@ -1236,6 +1247,7 @@ export class EncryptedContentWithUpdate {
1236
1247
  return ret === 0 ? undefined : SignedCgkaOperation.__wrap(ret);
1237
1248
  }
1238
1249
  }
1250
+ if (Symbol.dispose) EncryptedContentWithUpdate.prototype[Symbol.dispose] = EncryptedContentWithUpdate.prototype.free;
1239
1251
 
1240
1252
  const EventFinalization = (typeof FinalizationRegistry === 'undefined')
1241
1253
  ? { register: () => {}, unregister: () => {} }
@@ -1306,6 +1318,7 @@ export class Event {
1306
1318
  return ret === 0 ? undefined : SignedRevocation.__wrap(ret);
1307
1319
  }
1308
1320
  }
1321
+ if (Symbol.dispose) Event.prototype[Symbol.dispose] = Event.prototype.free;
1309
1322
 
1310
1323
  const GenerateDocErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1311
1324
  ? { register: () => {}, unregister: () => {} }
@@ -1348,6 +1361,7 @@ export class GenerateDocError {
1348
1361
  }
1349
1362
  }
1350
1363
  }
1364
+ if (Symbol.dispose) GenerateDocError.prototype[Symbol.dispose] = GenerateDocError.prototype.free;
1351
1365
 
1352
1366
  const GenerateWebCryptoErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1353
1367
  ? { register: () => {}, unregister: () => {} }
@@ -1390,6 +1404,7 @@ export class GenerateWebCryptoError {
1390
1404
  }
1391
1405
  }
1392
1406
  }
1407
+ if (Symbol.dispose) GenerateWebCryptoError.prototype[Symbol.dispose] = GenerateWebCryptoError.prototype.free;
1393
1408
 
1394
1409
  const GetCiphertextErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1395
1410
  ? { register: () => {}, unregister: () => {} }
@@ -1424,6 +1439,7 @@ export class GetCiphertextError {
1424
1439
  }
1425
1440
  }
1426
1441
  }
1442
+ if (Symbol.dispose) GetCiphertextError.prototype[Symbol.dispose] = GetCiphertextError.prototype.free;
1427
1443
 
1428
1444
  const GroupFinalization = (typeof FinalizationRegistry === 'undefined')
1429
1445
  ? { register: () => {}, unregister: () => {} }
@@ -1495,6 +1511,7 @@ export class Group {
1495
1511
  return Membered.__wrap(ret);
1496
1512
  }
1497
1513
  }
1514
+ if (Symbol.dispose) Group.prototype[Symbol.dispose] = Group.prototype.free;
1498
1515
 
1499
1516
  const GroupIdFinalization = (typeof FinalizationRegistry === 'undefined')
1500
1517
  ? { register: () => {}, unregister: () => {} }
@@ -1537,6 +1554,7 @@ export class GroupId {
1537
1554
  }
1538
1555
  }
1539
1556
  }
1557
+ if (Symbol.dispose) GroupId.prototype[Symbol.dispose] = GroupId.prototype.free;
1540
1558
 
1541
1559
  const HistoryFinalization = (typeof FinalizationRegistry === 'undefined')
1542
1560
  ? { register: () => {}, unregister: () => {} }
@@ -1591,6 +1609,7 @@ export class History {
1591
1609
  return v1;
1592
1610
  }
1593
1611
  }
1612
+ if (Symbol.dispose) History.prototype[Symbol.dispose] = History.prototype.free;
1594
1613
 
1595
1614
  const IdentifierFinalization = (typeof FinalizationRegistry === 'undefined')
1596
1615
  ? { register: () => {}, unregister: () => {} }
@@ -1641,6 +1660,7 @@ export class Identifier {
1641
1660
  return v1;
1642
1661
  }
1643
1662
  }
1663
+ if (Symbol.dispose) Identifier.prototype[Symbol.dispose] = Identifier.prototype.free;
1644
1664
 
1645
1665
  const IndividualFinalization = (typeof FinalizationRegistry === 'undefined')
1646
1666
  ? { register: () => {}, unregister: () => {} }
@@ -1706,6 +1726,7 @@ export class Individual {
1706
1726
  return ShareKey.__wrap(ret);
1707
1727
  }
1708
1728
  }
1729
+ if (Symbol.dispose) Individual.prototype[Symbol.dispose] = Individual.prototype.free;
1709
1730
 
1710
1731
  const IndividualIdFinalization = (typeof FinalizationRegistry === 'undefined')
1711
1732
  ? { register: () => {}, unregister: () => {} }
@@ -1742,6 +1763,7 @@ export class IndividualId {
1742
1763
  return v1;
1743
1764
  }
1744
1765
  }
1766
+ if (Symbol.dispose) IndividualId.prototype[Symbol.dispose] = IndividualId.prototype.free;
1745
1767
 
1746
1768
  const InvocationFinalization = (typeof FinalizationRegistry === 'undefined')
1747
1769
  ? { register: () => {}, unregister: () => {} }
@@ -1761,6 +1783,7 @@ export class Invocation {
1761
1783
  wasm.__wbg_invocation_free(ptr, 0);
1762
1784
  }
1763
1785
  }
1786
+ if (Symbol.dispose) Invocation.prototype[Symbol.dispose] = Invocation.prototype.free;
1764
1787
 
1765
1788
  const JsDecryptErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1766
1789
  ? { register: () => {}, unregister: () => {} }
@@ -1788,6 +1811,7 @@ export class JsDecryptError {
1788
1811
  wasm.__wbg_jsdecrypterror_free(ptr, 0);
1789
1812
  }
1790
1813
  }
1814
+ if (Symbol.dispose) JsDecryptError.prototype[Symbol.dispose] = JsDecryptError.prototype.free;
1791
1815
 
1792
1816
  const JsEncryptErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1793
1817
  ? { register: () => {}, unregister: () => {} }
@@ -1815,6 +1839,7 @@ export class JsEncryptError {
1815
1839
  wasm.__wbg_jsencrypterror_free(ptr, 0);
1816
1840
  }
1817
1841
  }
1842
+ if (Symbol.dispose) JsEncryptError.prototype[Symbol.dispose] = JsEncryptError.prototype.free;
1818
1843
 
1819
1844
  const JsReceivePreKeyOpErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1820
1845
  ? { register: () => {}, unregister: () => {} }
@@ -1842,6 +1867,7 @@ export class JsReceivePreKeyOpError {
1842
1867
  wasm.__wbg_jsreceiveprekeyoperror_free(ptr, 0);
1843
1868
  }
1844
1869
  }
1870
+ if (Symbol.dispose) JsReceivePreKeyOpError.prototype[Symbol.dispose] = JsReceivePreKeyOpError.prototype.free;
1845
1871
 
1846
1872
  const JsReceiveStaticEventErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1847
1873
  ? { register: () => {}, unregister: () => {} }
@@ -1869,6 +1895,7 @@ export class JsReceiveStaticEventError {
1869
1895
  wasm.__wbg_jsreceivestaticeventerror_free(ptr, 0);
1870
1896
  }
1871
1897
  }
1898
+ if (Symbol.dispose) JsReceiveStaticEventError.prototype[Symbol.dispose] = JsReceiveStaticEventError.prototype.free;
1872
1899
 
1873
1900
  const KeyhiveFinalization = (typeof FinalizationRegistry === 'undefined')
1874
1901
  ? { register: () => {}, unregister: () => {} }
@@ -2178,6 +2205,7 @@ export class Keyhive {
2178
2205
  return ret;
2179
2206
  }
2180
2207
  }
2208
+ if (Symbol.dispose) Keyhive.prototype[Symbol.dispose] = Keyhive.prototype.free;
2181
2209
 
2182
2210
  const MemberedFinalization = (typeof FinalizationRegistry === 'undefined')
2183
2211
  ? { register: () => {}, unregister: () => {} }
@@ -2205,6 +2233,7 @@ export class Membered {
2205
2233
  wasm.__wbg_membered_free(ptr, 0);
2206
2234
  }
2207
2235
  }
2236
+ if (Symbol.dispose) Membered.prototype[Symbol.dispose] = Membered.prototype.free;
2208
2237
 
2209
2238
  const PeerFinalization = (typeof FinalizationRegistry === 'undefined')
2210
2239
  ? { register: () => {}, unregister: () => {} }
@@ -2275,6 +2304,7 @@ export class Peer {
2275
2304
  return ret !== 0;
2276
2305
  }
2277
2306
  }
2307
+ if (Symbol.dispose) Peer.prototype[Symbol.dispose] = Peer.prototype.free;
2278
2308
 
2279
2309
  const RemoveCiphertextErrorFinalization = (typeof FinalizationRegistry === 'undefined')
2280
2310
  ? { register: () => {}, unregister: () => {} }
@@ -2294,6 +2324,7 @@ export class RemoveCiphertextError {
2294
2324
  wasm.__wbg_removeciphertexterror_free(ptr, 0);
2295
2325
  }
2296
2326
  }
2327
+ if (Symbol.dispose) RemoveCiphertextError.prototype[Symbol.dispose] = RemoveCiphertextError.prototype.free;
2297
2328
 
2298
2329
  const RevocationFinalization = (typeof FinalizationRegistry === 'undefined')
2299
2330
  ? { register: () => {}, unregister: () => {} }
@@ -2349,6 +2380,7 @@ export class Revocation {
2349
2380
  return History.__wrap(ret);
2350
2381
  }
2351
2382
  }
2383
+ if (Symbol.dispose) Revocation.prototype[Symbol.dispose] = Revocation.prototype.free;
2352
2384
 
2353
2385
  const RevokeMemberErrorFinalization = (typeof FinalizationRegistry === 'undefined')
2354
2386
  ? { register: () => {}, unregister: () => {} }
@@ -2391,6 +2423,7 @@ export class RevokeMemberError {
2391
2423
  }
2392
2424
  }
2393
2425
  }
2426
+ if (Symbol.dispose) RevokeMemberError.prototype[Symbol.dispose] = RevokeMemberError.prototype.free;
2394
2427
 
2395
2428
  const SerializationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
2396
2429
  ? { register: () => {}, unregister: () => {} }
@@ -2426,6 +2459,7 @@ export class SerializationError {
2426
2459
  return ret;
2427
2460
  }
2428
2461
  }
2462
+ if (Symbol.dispose) SerializationError.prototype[Symbol.dispose] = SerializationError.prototype.free;
2429
2463
 
2430
2464
  const ShareKeyFinalization = (typeof FinalizationRegistry === 'undefined')
2431
2465
  ? { register: () => {}, unregister: () => {} }
@@ -2453,6 +2487,7 @@ export class ShareKey {
2453
2487
  wasm.__wbg_sharekey_free(ptr, 0);
2454
2488
  }
2455
2489
  }
2490
+ if (Symbol.dispose) ShareKey.prototype[Symbol.dispose] = ShareKey.prototype.free;
2456
2491
 
2457
2492
  const SignedFinalization = (typeof FinalizationRegistry === 'undefined')
2458
2493
  ? { register: () => {}, unregister: () => {} }
@@ -2533,6 +2568,7 @@ export class Signed {
2533
2568
  return v1;
2534
2569
  }
2535
2570
  }
2571
+ if (Symbol.dispose) Signed.prototype[Symbol.dispose] = Signed.prototype.free;
2536
2572
 
2537
2573
  const SignedCgkaOperationFinalization = (typeof FinalizationRegistry === 'undefined')
2538
2574
  ? { register: () => {}, unregister: () => {} }
@@ -2592,6 +2628,7 @@ export class SignedCgkaOperation {
2592
2628
  return v1;
2593
2629
  }
2594
2630
  }
2631
+ if (Symbol.dispose) SignedCgkaOperation.prototype[Symbol.dispose] = SignedCgkaOperation.prototype.free;
2595
2632
 
2596
2633
  const SignedDelegationFinalization = (typeof FinalizationRegistry === 'undefined')
2597
2634
  ? { register: () => {}, unregister: () => {} }
@@ -2651,6 +2688,7 @@ export class SignedDelegation {
2651
2688
  return v1;
2652
2689
  }
2653
2690
  }
2691
+ if (Symbol.dispose) SignedDelegation.prototype[Symbol.dispose] = SignedDelegation.prototype.free;
2654
2692
 
2655
2693
  const SignedInvocationFinalization = (typeof FinalizationRegistry === 'undefined')
2656
2694
  ? { register: () => {}, unregister: () => {} }
@@ -2670,6 +2708,7 @@ export class SignedInvocation {
2670
2708
  wasm.__wbg_signedinvocation_free(ptr, 0);
2671
2709
  }
2672
2710
  }
2711
+ if (Symbol.dispose) SignedInvocation.prototype[Symbol.dispose] = SignedInvocation.prototype.free;
2673
2712
 
2674
2713
  const SignedRevocationFinalization = (typeof FinalizationRegistry === 'undefined')
2675
2714
  ? { register: () => {}, unregister: () => {} }
@@ -2729,6 +2768,7 @@ export class SignedRevocation {
2729
2768
  return v1;
2730
2769
  }
2731
2770
  }
2771
+ if (Symbol.dispose) SignedRevocation.prototype[Symbol.dispose] = SignedRevocation.prototype.free;
2732
2772
 
2733
2773
  const SignerFinalization = (typeof FinalizationRegistry === 'undefined')
2734
2774
  ? { register: () => {}, unregister: () => {} }
@@ -2839,6 +2879,7 @@ export class Signer {
2839
2879
  return Signer.__wrap(ret);
2840
2880
  }
2841
2881
  }
2882
+ if (Symbol.dispose) Signer.prototype[Symbol.dispose] = Signer.prototype.free;
2842
2883
 
2843
2884
  const SigningErrorFinalization = (typeof FinalizationRegistry === 'undefined')
2844
2885
  ? { register: () => {}, unregister: () => {} }
@@ -2881,6 +2922,7 @@ export class SigningError {
2881
2922
  }
2882
2923
  }
2883
2924
  }
2925
+ if (Symbol.dispose) SigningError.prototype[Symbol.dispose] = SigningError.prototype.free;
2884
2926
 
2885
2927
  const SimpleCapabilityFinalization = (typeof FinalizationRegistry === 'undefined')
2886
2928
  ? { register: () => {}, unregister: () => {} }
@@ -2922,6 +2964,7 @@ export class SimpleCapability {
2922
2964
  return Access.__wrap(ret);
2923
2965
  }
2924
2966
  }
2967
+ if (Symbol.dispose) SimpleCapability.prototype[Symbol.dispose] = SimpleCapability.prototype.free;
2925
2968
 
2926
2969
  const SummaryFinalization = (typeof FinalizationRegistry === 'undefined')
2927
2970
  ? { register: () => {}, unregister: () => {} }
@@ -2963,6 +3006,7 @@ export class Summary {
2963
3006
  return Access.__wrap(ret);
2964
3007
  }
2965
3008
  }
3009
+ if (Symbol.dispose) Summary.prototype[Symbol.dispose] = Summary.prototype.free;
2966
3010
 
2967
3011
  const TryFromArchiveErrorFinalization = (typeof FinalizationRegistry === 'undefined')
2968
3012
  ? { register: () => {}, unregister: () => {} }
@@ -2998,8 +3042,9 @@ export class TryFromArchiveError {
2998
3042
  return ret;
2999
3043
  }
3000
3044
  }
3045
+ if (Symbol.dispose) TryFromArchiveError.prototype[Symbol.dispose] = TryFromArchiveError.prototype.free;
3001
3046
 
3002
- export function __wbg_Error_1f3748b298f99708(arg0, arg1) {
3047
+ export function __wbg_Error_e17e777aac105295(arg0, arg1) {
3003
3048
  const ret = Error(getStringFromWasm0(arg0, arg1));
3004
3049
  return ret;
3005
3050
  };
@@ -3009,12 +3054,12 @@ export function __wbg_addmembererror_new(arg0) {
3009
3054
  return ret;
3010
3055
  };
3011
3056
 
3012
- export function __wbg_call_2f8d426a20a307fe() { return handleError(function (arg0, arg1) {
3057
+ export function __wbg_call_13410aac570ffff7() { return handleError(function (arg0, arg1) {
3013
3058
  const ret = arg0.call(arg1);
3014
3059
  return ret;
3015
3060
  }, arguments) };
3016
3061
 
3017
- export function __wbg_call_f53f0647ceb9c567() { return handleError(function (arg0, arg1, arg2) {
3062
+ export function __wbg_call_a5400b25a865cfd8() { return handleError(function (arg0, arg1, arg2) {
3018
3063
  const ret = arg0.call(arg1, arg2);
3019
3064
  return ret;
3020
3065
  }, arguments) };
@@ -3054,7 +3099,7 @@ export function __wbg_crypto_574e78ad8b13b65f(arg0) {
3054
3099
  return ret;
3055
3100
  };
3056
3101
 
3057
- export function __wbg_crypto_d27ad9f7221b1675() { return handleError(function (arg0) {
3102
+ export function __wbg_crypto_92ce5ebc02988b17() { return handleError(function (arg0) {
3058
3103
  const ret = arg0.crypto;
3059
3104
  return ret;
3060
3105
  }, arguments) };
@@ -3096,12 +3141,12 @@ export function __wbg_event_new(arg0) {
3096
3141
  return ret;
3097
3142
  };
3098
3143
 
3099
- export function __wbg_exportKey_bc8845fdc79b331a() { return handleError(function (arg0, arg1, arg2, arg3) {
3144
+ export function __wbg_exportKey_4a1163511775473d() { return handleError(function (arg0, arg1, arg2, arg3) {
3100
3145
  const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
3101
3146
  return ret;
3102
3147
  }, arguments) };
3103
3148
 
3104
- export function __wbg_generateKey_a2091927ceee8225() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3149
+ export function __wbg_generateKey_b8902ccb0e50ff4e() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3105
3150
  const ret = arg0.generateKey(getStringFromWasm0(arg1, arg2), arg3 !== 0, arg4);
3106
3151
  return ret;
3107
3152
  }, arguments) };
@@ -3120,12 +3165,12 @@ export function __wbg_getRandomValues_b8f5dbd5f3995a9e() { return handleError(fu
3120
3165
  arg0.getRandomValues(arg1);
3121
3166
  }, arguments) };
3122
3167
 
3123
- export function __wbg_getprivatekey_68c3f491137f7d42(arg0) {
3168
+ export function __wbg_getprivatekey_2b060a8a8c19d828(arg0) {
3124
3169
  const ret = arg0.privateKey;
3125
3170
  return ret;
3126
3171
  };
3127
3172
 
3128
- export function __wbg_getpublickey_395decee9eaded1e(arg0) {
3173
+ export function __wbg_getpublickey_ad4c2474164b2d9a(arg0) {
3129
3174
  const ret = arg0.publicKey;
3130
3175
  return ret;
3131
3176
  };
@@ -3135,7 +3180,7 @@ export function __wbg_group_new(arg0) {
3135
3180
  return ret;
3136
3181
  };
3137
3182
 
3138
- export function __wbg_instanceof_Window_7f29e5c72acbfd60(arg0) {
3183
+ export function __wbg_instanceof_Window_12d20d558ef92592(arg0) {
3139
3184
  let result;
3140
3185
  try {
3141
3186
  result = arg0 instanceof Window;
@@ -3171,7 +3216,7 @@ export function __wbg_keyhive_new(arg0) {
3171
3216
  return ret;
3172
3217
  };
3173
3218
 
3174
- export function __wbg_length_904c0910ed998bf3(arg0) {
3219
+ export function __wbg_length_6bb7e81f9d7713e4(arg0) {
3175
3220
  const ret = arg0.length;
3176
3221
  return ret;
3177
3222
  };
@@ -3181,17 +3226,7 @@ export function __wbg_msCrypto_a61aeb35a24c1329(arg0) {
3181
3226
  return ret;
3182
3227
  };
3183
3228
 
3184
- export function __wbg_new_8a6f238a6ece86ea() {
3185
- const ret = new Error();
3186
- return ret;
3187
- };
3188
-
3189
- export function __wbg_new_9190433fb67ed635(arg0) {
3190
- const ret = new Uint8Array(arg0);
3191
- return ret;
3192
- };
3193
-
3194
- export function __wbg_new_d5e3800b120e37e1(arg0, arg1) {
3229
+ export function __wbg_new_2e3c58a15f39f5f9(arg0, arg1) {
3195
3230
  try {
3196
3231
  var state0 = {a: arg0, b: arg1};
3197
3232
  var cb0 = (arg0, arg1) => {
@@ -3210,12 +3245,22 @@ export function __wbg_new_d5e3800b120e37e1(arg0, arg1) {
3210
3245
  }
3211
3246
  };
3212
3247
 
3213
- export function __wbg_newnoargs_a81330f6e05d8aca(arg0, arg1) {
3248
+ export function __wbg_new_638ebfaedbf32a5e(arg0) {
3249
+ const ret = new Uint8Array(arg0);
3250
+ return ret;
3251
+ };
3252
+
3253
+ export function __wbg_new_8a6f238a6ece86ea() {
3254
+ const ret = new Error();
3255
+ return ret;
3256
+ };
3257
+
3258
+ export function __wbg_newnoargs_254190557c45b4ec(arg0, arg1) {
3214
3259
  const ret = new Function(getStringFromWasm0(arg0, arg1));
3215
3260
  return ret;
3216
3261
  };
3217
3262
 
3218
- export function __wbg_newwithlength_ed0ee6c1edca86fc(arg0) {
3263
+ export function __wbg_newwithlength_a167dcc7aaa3ba77(arg0) {
3219
3264
  const ret = new Uint8Array(arg0 >>> 0);
3220
3265
  return ret;
3221
3266
  };
@@ -3235,17 +3280,17 @@ export function __wbg_process_dc0fbacc7c1c06f7(arg0) {
3235
3280
  return ret;
3236
3281
  };
3237
3282
 
3238
- export function __wbg_prototypesetcall_c5f74efd31aea86b(arg0, arg1, arg2) {
3283
+ export function __wbg_prototypesetcall_3d4a26c1ed734349(arg0, arg1, arg2) {
3239
3284
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
3240
3285
  };
3241
3286
 
3242
- export function __wbg_queueMicrotask_bcc6e26d899696db(arg0) {
3243
- const ret = arg0.queueMicrotask;
3244
- return ret;
3287
+ export function __wbg_queueMicrotask_25d0739ac89e8c88(arg0) {
3288
+ queueMicrotask(arg0);
3245
3289
  };
3246
3290
 
3247
- export function __wbg_queueMicrotask_f24a794d09c42640(arg0) {
3248
- queueMicrotask(arg0);
3291
+ export function __wbg_queueMicrotask_4488407636f5bf24(arg0) {
3292
+ const ret = arg0.queueMicrotask;
3293
+ return ret;
3249
3294
  };
3250
3295
 
3251
3296
  export function __wbg_randomFillSync_ac0988aba3254290() { return handleError(function (arg0, arg1) {
@@ -3257,7 +3302,7 @@ export function __wbg_require_60cc747a6bc5215a() { return handleError(function (
3257
3302
  return ret;
3258
3303
  }, arguments) };
3259
3304
 
3260
- export function __wbg_resolve_5775c0ef9222f556(arg0) {
3305
+ export function __wbg_resolve_4055c623acdd6a1b(arg0) {
3261
3306
  const ret = Promise.resolve(arg0);
3262
3307
  return ret;
3263
3308
  };
@@ -3277,7 +3322,7 @@ export function __wbg_sharekey_new(arg0) {
3277
3322
  return ret;
3278
3323
  };
3279
3324
 
3280
- export function __wbg_sign_57acde3c6437bdd1() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3325
+ export function __wbg_sign_8891059f121b31b5() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3281
3326
  const ret = arg0.sign(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
3282
3327
  return ret;
3283
3328
  }, arguments) };
@@ -3320,32 +3365,32 @@ export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
3320
3365
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3321
3366
  };
3322
3367
 
3323
- export function __wbg_static_accessor_GLOBAL_1f13249cc3acc96d() {
3368
+ export function __wbg_static_accessor_GLOBAL_8921f820c2ce3f12() {
3324
3369
  const ret = typeof global === 'undefined' ? null : global;
3325
3370
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3326
3371
  };
3327
3372
 
3328
- export function __wbg_static_accessor_GLOBAL_THIS_df7ae94b1e0ed6a3() {
3373
+ export function __wbg_static_accessor_GLOBAL_THIS_f0a4409105898184() {
3329
3374
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
3330
3375
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3331
3376
  };
3332
3377
 
3333
- export function __wbg_static_accessor_SELF_6265471db3b3c228() {
3378
+ export function __wbg_static_accessor_SELF_995b214ae681ff99() {
3334
3379
  const ret = typeof self === 'undefined' ? null : self;
3335
3380
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3336
3381
  };
3337
3382
 
3338
- export function __wbg_static_accessor_WINDOW_16fb482f8ec52863() {
3383
+ export function __wbg_static_accessor_WINDOW_cde3890479c675ea() {
3339
3384
  const ret = typeof window === 'undefined' ? null : window;
3340
3385
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3341
3386
  };
3342
3387
 
3343
- export function __wbg_subarray_a219824899e59712(arg0, arg1, arg2) {
3388
+ export function __wbg_subarray_70fd07feefe14294(arg0, arg1, arg2) {
3344
3389
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
3345
3390
  return ret;
3346
3391
  };
3347
3392
 
3348
- export function __wbg_subtle_40dd37072861a308(arg0) {
3393
+ export function __wbg_subtle_dd66747d3e9a93d4(arg0) {
3349
3394
  const ret = arg0.subtle;
3350
3395
  return ret;
3351
3396
  };
@@ -3355,12 +3400,12 @@ export function __wbg_summary_new(arg0) {
3355
3400
  return ret;
3356
3401
  };
3357
3402
 
3358
- export function __wbg_then_8d2fcccde5380a03(arg0, arg1, arg2) {
3403
+ export function __wbg_then_b33a773d723afa3e(arg0, arg1, arg2) {
3359
3404
  const ret = arg0.then(arg1, arg2);
3360
3405
  return ret;
3361
3406
  };
3362
3407
 
3363
- export function __wbg_then_9cc266be2bf537b6(arg0, arg1) {
3408
+ export function __wbg_then_e22500defe16819f(arg0, arg1) {
3364
3409
  const ret = arg0.then(arg1);
3365
3410
  return ret;
3366
3411
  };
@@ -3375,7 +3420,7 @@ export function __wbg_versions_c01dfd4722a88165(arg0) {
3375
3420
  return ret;
3376
3421
  };
3377
3422
 
3378
- export function __wbg_wbindgencbdrop_a85ed476c6a370b9(arg0) {
3423
+ export function __wbg_wbindgencbdrop_eb10308566512b88(arg0) {
3379
3424
  const obj = arg0.original;
3380
3425
  if (obj.cnt-- == 1) {
3381
3426
  obj.a = 0;
@@ -3385,7 +3430,7 @@ export function __wbg_wbindgencbdrop_a85ed476c6a370b9(arg0) {
3385
3430
  return ret;
3386
3431
  };
3387
3432
 
3388
- export function __wbg_wbindgendebugstring_bb652b1bc2061b6d(arg0, arg1) {
3433
+ export function __wbg_wbindgendebugstring_99ef257a3ddda34d(arg0, arg1) {
3389
3434
  const ret = debugString(arg1);
3390
3435
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3391
3436
  const len1 = WASM_VECTOR_LEN;
@@ -3393,28 +3438,28 @@ export function __wbg_wbindgendebugstring_bb652b1bc2061b6d(arg0, arg1) {
3393
3438
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3394
3439
  };
3395
3440
 
3396
- export function __wbg_wbindgenisfunction_ea72b9d66a0e1705(arg0) {
3441
+ export function __wbg_wbindgenisfunction_8cee7dce3725ae74(arg0) {
3397
3442
  const ret = typeof(arg0) === 'function';
3398
3443
  return ret;
3399
3444
  };
3400
3445
 
3401
- export function __wbg_wbindgenisobject_dfe064a121d87553(arg0) {
3446
+ export function __wbg_wbindgenisobject_307a53c6bd97fbf8(arg0) {
3402
3447
  const val = arg0;
3403
3448
  const ret = typeof(val) === 'object' && val !== null;
3404
3449
  return ret;
3405
3450
  };
3406
3451
 
3407
- export function __wbg_wbindgenisstring_4b74e4111ba029e6(arg0) {
3452
+ export function __wbg_wbindgenisstring_d4fa939789f003b0(arg0) {
3408
3453
  const ret = typeof(arg0) === 'string';
3409
3454
  return ret;
3410
3455
  };
3411
3456
 
3412
- export function __wbg_wbindgenisundefined_71f08a6ade4354e7(arg0) {
3457
+ export function __wbg_wbindgenisundefined_c4b71d073b92f3c5(arg0) {
3413
3458
  const ret = arg0 === undefined;
3414
3459
  return ret;
3415
3460
  };
3416
3461
 
3417
- export function __wbg_wbindgenthrow_4c11a24fca429ccf(arg0, arg1) {
3462
+ export function __wbg_wbindgenthrow_451ec1a8469d7eb6(arg0, arg1) {
3418
3463
  throw new Error(getStringFromWasm0(arg0, arg1));
3419
3464
  };
3420
3465