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

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;
@@ -255,15 +249,6 @@ function _assertClass(instance, klass) {
255
249
  throw new Error(`expected instance of ${klass.name}`);
256
250
  }
257
251
  }
258
- /**
259
- * Panic hook lets us get better error messages if our Rust code ever panics.
260
- *
261
- * This function needs to be called at least once during initialisation.
262
- * https://rustwasm.github.io/docs/wasm-pack/tutorials/npm-browser-packages/template-deep-dive/src-utils-rs.html#2-what-is-console_error_panic_hook
263
- */
264
- export function setPanicHook() {
265
- wasm.setPanicHook();
266
- }
267
252
 
268
253
  function passArrayJsValueToWasm0(array, malloc) {
269
254
  const ptr = malloc(array.length * 4, 4) >>> 0;
@@ -274,11 +259,21 @@ function passArrayJsValueToWasm0(array, malloc) {
274
259
  WASM_VECTOR_LEN = array.length;
275
260
  return ptr;
276
261
  }
277
- function __wbg_adapter_12(arg0, arg1, arg2) {
262
+ /**
263
+ * Panic hook lets us get better error messages if our Rust code ever panics.
264
+ *
265
+ * This function needs to be called at least once during initialisation.
266
+ * https://rustwasm.github.io/docs/wasm-pack/tutorials/npm-browser-packages/template-deep-dive/src-utils-rs.html#2-what-is-console_error_panic_hook
267
+ */
268
+ export function setPanicHook() {
269
+ wasm.setPanicHook();
270
+ }
271
+
272
+ function __wbg_adapter_14(arg0, arg1, arg2) {
278
273
  wasm.closure423_externref_shim(arg0, arg1, arg2);
279
274
  }
280
275
 
281
- function __wbg_adapter_272(arg0, arg1, arg2, arg3) {
276
+ function __wbg_adapter_274(arg0, arg1, arg2, arg3) {
282
277
  wasm.closure571_externref_shim(arg0, arg1, arg2, arg3);
283
278
  }
284
279
 
@@ -333,6 +328,7 @@ export class Access {
333
328
  }
334
329
  }
335
330
  }
331
+ if (Symbol.dispose) Access.prototype[Symbol.dispose] = Access.prototype.free;
336
332
 
337
333
  const AddMemberErrorFinalization = (typeof FinalizationRegistry === 'undefined')
338
334
  ? { register: () => {}, unregister: () => {} }
@@ -375,6 +371,7 @@ export class AddMemberError {
375
371
  }
376
372
  }
377
373
  }
374
+ if (Symbol.dispose) AddMemberError.prototype[Symbol.dispose] = AddMemberError.prototype.free;
378
375
 
379
376
  const AgentFinalization = (typeof FinalizationRegistry === 'undefined')
380
377
  ? { register: () => {}, unregister: () => {} }
@@ -445,6 +442,7 @@ export class Agent {
445
442
  return Identifier.__wrap(ret);
446
443
  }
447
444
  }
445
+ if (Symbol.dispose) Agent.prototype[Symbol.dispose] = Agent.prototype.free;
448
446
 
449
447
  const ArchiveFinalization = (typeof FinalizationRegistry === 'undefined')
450
448
  ? { register: () => {}, unregister: () => {} }
@@ -514,6 +512,7 @@ export class Archive {
514
512
  return Keyhive.__wrap(ret[0]);
515
513
  }
516
514
  }
515
+ if (Symbol.dispose) Archive.prototype[Symbol.dispose] = Archive.prototype.free;
517
516
 
518
517
  const CannotParseEd25519SigningKeyFinalization = (typeof FinalizationRegistry === 'undefined')
519
518
  ? { register: () => {}, unregister: () => {} }
@@ -541,6 +540,7 @@ export class CannotParseEd25519SigningKey {
541
540
  wasm.__wbg_cannotparseed25519signingkey_free(ptr, 0);
542
541
  }
543
542
  }
543
+ if (Symbol.dispose) CannotParseEd25519SigningKey.prototype[Symbol.dispose] = CannotParseEd25519SigningKey.prototype.free;
544
544
 
545
545
  const CannotParseIdentifierFinalization = (typeof FinalizationRegistry === 'undefined')
546
546
  ? { register: () => {}, unregister: () => {} }
@@ -568,6 +568,7 @@ export class CannotParseIdentifier {
568
568
  wasm.__wbg_cannotparseidentifier_free(ptr, 0);
569
569
  }
570
570
  }
571
+ if (Symbol.dispose) CannotParseIdentifier.prototype[Symbol.dispose] = CannotParseIdentifier.prototype.free;
571
572
 
572
573
  const CapabilityFinalization = (typeof FinalizationRegistry === 'undefined')
573
574
  ? { register: () => {}, unregister: () => {} }
@@ -616,6 +617,7 @@ export class Capability {
616
617
  return SignedDelegation.__wrap(ret);
617
618
  }
618
619
  }
620
+ if (Symbol.dispose) Capability.prototype[Symbol.dispose] = Capability.prototype.free;
619
621
 
620
622
  const CgkaOperationFinalization = (typeof FinalizationRegistry === 'undefined')
621
623
  ? { register: () => {}, unregister: () => {} }
@@ -658,6 +660,7 @@ export class CgkaOperation {
658
660
  }
659
661
  }
660
662
  }
663
+ if (Symbol.dispose) CgkaOperation.prototype[Symbol.dispose] = CgkaOperation.prototype.free;
661
664
 
662
665
  const ChangeRefFinalization = (typeof FinalizationRegistry === 'undefined')
663
666
  ? { register: () => {}, unregister: () => {} }
@@ -712,6 +715,7 @@ export class ChangeRef {
712
715
  return v1;
713
716
  }
714
717
  }
718
+ if (Symbol.dispose) ChangeRef.prototype[Symbol.dispose] = ChangeRef.prototype.free;
715
719
 
716
720
  const CiphertextStoreFinalization = (typeof FinalizationRegistry === 'undefined')
717
721
  ? { register: () => {}, unregister: () => {} }
@@ -754,6 +758,7 @@ export class CiphertextStore {
754
758
  return CiphertextStore.__wrap(ret);
755
759
  }
756
760
  }
761
+ if (Symbol.dispose) CiphertextStore.prototype[Symbol.dispose] = CiphertextStore.prototype.free;
757
762
 
758
763
  const ContactCardFinalization = (typeof FinalizationRegistry === 'undefined')
759
764
  ? { register: () => {}, unregister: () => {} }
@@ -838,6 +843,7 @@ export class ContactCard {
838
843
  }
839
844
  }
840
845
  }
846
+ if (Symbol.dispose) ContactCard.prototype[Symbol.dispose] = ContactCard.prototype.free;
841
847
 
842
848
  const DelegationFinalization = (typeof FinalizationRegistry === 'undefined')
843
849
  ? { register: () => {}, unregister: () => {} }
@@ -893,6 +899,7 @@ export class Delegation {
893
899
  return History.__wrap(ret);
894
900
  }
895
901
  }
902
+ if (Symbol.dispose) Delegation.prototype[Symbol.dispose] = Delegation.prototype.free;
896
903
 
897
904
  const DelegationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
898
905
  ? { register: () => {}, unregister: () => {} }
@@ -912,6 +919,7 @@ export class DelegationError {
912
919
  wasm.__wbg_delegationerror_free(ptr, 0);
913
920
  }
914
921
  }
922
+ if (Symbol.dispose) DelegationError.prototype[Symbol.dispose] = DelegationError.prototype.free;
915
923
 
916
924
  const DocContentRefsFinalization = (typeof FinalizationRegistry === 'undefined')
917
925
  ? { register: () => {}, unregister: () => {} }
@@ -980,6 +988,7 @@ export class DocContentRefs {
980
988
  return v1;
981
989
  }
982
990
  }
991
+ if (Symbol.dispose) DocContentRefs.prototype[Symbol.dispose] = DocContentRefs.prototype.free;
983
992
 
984
993
  const DocumentFinalization = (typeof FinalizationRegistry === 'undefined')
985
994
  ? { register: () => {}, unregister: () => {} }
@@ -1042,6 +1051,7 @@ export class Document {
1042
1051
  return Agent.__wrap(ret);
1043
1052
  }
1044
1053
  }
1054
+ if (Symbol.dispose) Document.prototype[Symbol.dispose] = Document.prototype.free;
1045
1055
 
1046
1056
  const DocumentIdFinalization = (typeof FinalizationRegistry === 'undefined')
1047
1057
  ? { register: () => {}, unregister: () => {} }
@@ -1114,6 +1124,7 @@ export class DocumentId {
1114
1124
  return v1;
1115
1125
  }
1116
1126
  }
1127
+ if (Symbol.dispose) DocumentId.prototype[Symbol.dispose] = DocumentId.prototype.free;
1117
1128
 
1118
1129
  const EncryptedFinalization = (typeof FinalizationRegistry === 'undefined')
1119
1130
  ? { register: () => {}, unregister: () => {} }
@@ -1195,6 +1206,7 @@ export class Encrypted {
1195
1206
  return v1;
1196
1207
  }
1197
1208
  }
1209
+ if (Symbol.dispose) Encrypted.prototype[Symbol.dispose] = Encrypted.prototype.free;
1198
1210
 
1199
1211
  const EncryptedContentWithUpdateFinalization = (typeof FinalizationRegistry === 'undefined')
1200
1212
  ? { register: () => {}, unregister: () => {} }
@@ -1236,6 +1248,7 @@ export class EncryptedContentWithUpdate {
1236
1248
  return ret === 0 ? undefined : SignedCgkaOperation.__wrap(ret);
1237
1249
  }
1238
1250
  }
1251
+ if (Symbol.dispose) EncryptedContentWithUpdate.prototype[Symbol.dispose] = EncryptedContentWithUpdate.prototype.free;
1239
1252
 
1240
1253
  const EventFinalization = (typeof FinalizationRegistry === 'undefined')
1241
1254
  ? { register: () => {}, unregister: () => {} }
@@ -1306,6 +1319,7 @@ export class Event {
1306
1319
  return ret === 0 ? undefined : SignedRevocation.__wrap(ret);
1307
1320
  }
1308
1321
  }
1322
+ if (Symbol.dispose) Event.prototype[Symbol.dispose] = Event.prototype.free;
1309
1323
 
1310
1324
  const GenerateDocErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1311
1325
  ? { register: () => {}, unregister: () => {} }
@@ -1348,6 +1362,7 @@ export class GenerateDocError {
1348
1362
  }
1349
1363
  }
1350
1364
  }
1365
+ if (Symbol.dispose) GenerateDocError.prototype[Symbol.dispose] = GenerateDocError.prototype.free;
1351
1366
 
1352
1367
  const GenerateWebCryptoErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1353
1368
  ? { register: () => {}, unregister: () => {} }
@@ -1390,6 +1405,7 @@ export class GenerateWebCryptoError {
1390
1405
  }
1391
1406
  }
1392
1407
  }
1408
+ if (Symbol.dispose) GenerateWebCryptoError.prototype[Symbol.dispose] = GenerateWebCryptoError.prototype.free;
1393
1409
 
1394
1410
  const GetCiphertextErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1395
1411
  ? { register: () => {}, unregister: () => {} }
@@ -1424,6 +1440,7 @@ export class GetCiphertextError {
1424
1440
  }
1425
1441
  }
1426
1442
  }
1443
+ if (Symbol.dispose) GetCiphertextError.prototype[Symbol.dispose] = GetCiphertextError.prototype.free;
1427
1444
 
1428
1445
  const GroupFinalization = (typeof FinalizationRegistry === 'undefined')
1429
1446
  ? { register: () => {}, unregister: () => {} }
@@ -1495,6 +1512,7 @@ export class Group {
1495
1512
  return Membered.__wrap(ret);
1496
1513
  }
1497
1514
  }
1515
+ if (Symbol.dispose) Group.prototype[Symbol.dispose] = Group.prototype.free;
1498
1516
 
1499
1517
  const GroupIdFinalization = (typeof FinalizationRegistry === 'undefined')
1500
1518
  ? { register: () => {}, unregister: () => {} }
@@ -1537,6 +1555,7 @@ export class GroupId {
1537
1555
  }
1538
1556
  }
1539
1557
  }
1558
+ if (Symbol.dispose) GroupId.prototype[Symbol.dispose] = GroupId.prototype.free;
1540
1559
 
1541
1560
  const HistoryFinalization = (typeof FinalizationRegistry === 'undefined')
1542
1561
  ? { register: () => {}, unregister: () => {} }
@@ -1591,6 +1610,7 @@ export class History {
1591
1610
  return v1;
1592
1611
  }
1593
1612
  }
1613
+ if (Symbol.dispose) History.prototype[Symbol.dispose] = History.prototype.free;
1594
1614
 
1595
1615
  const IdentifierFinalization = (typeof FinalizationRegistry === 'undefined')
1596
1616
  ? { register: () => {}, unregister: () => {} }
@@ -1641,6 +1661,7 @@ export class Identifier {
1641
1661
  return v1;
1642
1662
  }
1643
1663
  }
1664
+ if (Symbol.dispose) Identifier.prototype[Symbol.dispose] = Identifier.prototype.free;
1644
1665
 
1645
1666
  const IndividualFinalization = (typeof FinalizationRegistry === 'undefined')
1646
1667
  ? { register: () => {}, unregister: () => {} }
@@ -1706,6 +1727,7 @@ export class Individual {
1706
1727
  return ShareKey.__wrap(ret);
1707
1728
  }
1708
1729
  }
1730
+ if (Symbol.dispose) Individual.prototype[Symbol.dispose] = Individual.prototype.free;
1709
1731
 
1710
1732
  const IndividualIdFinalization = (typeof FinalizationRegistry === 'undefined')
1711
1733
  ? { register: () => {}, unregister: () => {} }
@@ -1742,6 +1764,7 @@ export class IndividualId {
1742
1764
  return v1;
1743
1765
  }
1744
1766
  }
1767
+ if (Symbol.dispose) IndividualId.prototype[Symbol.dispose] = IndividualId.prototype.free;
1745
1768
 
1746
1769
  const InvocationFinalization = (typeof FinalizationRegistry === 'undefined')
1747
1770
  ? { register: () => {}, unregister: () => {} }
@@ -1761,6 +1784,7 @@ export class Invocation {
1761
1784
  wasm.__wbg_invocation_free(ptr, 0);
1762
1785
  }
1763
1786
  }
1787
+ if (Symbol.dispose) Invocation.prototype[Symbol.dispose] = Invocation.prototype.free;
1764
1788
 
1765
1789
  const JsDecryptErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1766
1790
  ? { register: () => {}, unregister: () => {} }
@@ -1788,6 +1812,7 @@ export class JsDecryptError {
1788
1812
  wasm.__wbg_jsdecrypterror_free(ptr, 0);
1789
1813
  }
1790
1814
  }
1815
+ if (Symbol.dispose) JsDecryptError.prototype[Symbol.dispose] = JsDecryptError.prototype.free;
1791
1816
 
1792
1817
  const JsEncryptErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1793
1818
  ? { register: () => {}, unregister: () => {} }
@@ -1815,6 +1840,7 @@ export class JsEncryptError {
1815
1840
  wasm.__wbg_jsencrypterror_free(ptr, 0);
1816
1841
  }
1817
1842
  }
1843
+ if (Symbol.dispose) JsEncryptError.prototype[Symbol.dispose] = JsEncryptError.prototype.free;
1818
1844
 
1819
1845
  const JsReceivePreKeyOpErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1820
1846
  ? { register: () => {}, unregister: () => {} }
@@ -1842,6 +1868,7 @@ export class JsReceivePreKeyOpError {
1842
1868
  wasm.__wbg_jsreceiveprekeyoperror_free(ptr, 0);
1843
1869
  }
1844
1870
  }
1871
+ if (Symbol.dispose) JsReceivePreKeyOpError.prototype[Symbol.dispose] = JsReceivePreKeyOpError.prototype.free;
1845
1872
 
1846
1873
  const JsReceiveStaticEventErrorFinalization = (typeof FinalizationRegistry === 'undefined')
1847
1874
  ? { register: () => {}, unregister: () => {} }
@@ -1869,6 +1896,7 @@ export class JsReceiveStaticEventError {
1869
1896
  wasm.__wbg_jsreceivestaticeventerror_free(ptr, 0);
1870
1897
  }
1871
1898
  }
1899
+ if (Symbol.dispose) JsReceiveStaticEventError.prototype[Symbol.dispose] = JsReceiveStaticEventError.prototype.free;
1872
1900
 
1873
1901
  const KeyhiveFinalization = (typeof FinalizationRegistry === 'undefined')
1874
1902
  ? { register: () => {}, unregister: () => {} }
@@ -2178,6 +2206,7 @@ export class Keyhive {
2178
2206
  return ret;
2179
2207
  }
2180
2208
  }
2209
+ if (Symbol.dispose) Keyhive.prototype[Symbol.dispose] = Keyhive.prototype.free;
2181
2210
 
2182
2211
  const MemberedFinalization = (typeof FinalizationRegistry === 'undefined')
2183
2212
  ? { register: () => {}, unregister: () => {} }
@@ -2205,6 +2234,7 @@ export class Membered {
2205
2234
  wasm.__wbg_membered_free(ptr, 0);
2206
2235
  }
2207
2236
  }
2237
+ if (Symbol.dispose) Membered.prototype[Symbol.dispose] = Membered.prototype.free;
2208
2238
 
2209
2239
  const PeerFinalization = (typeof FinalizationRegistry === 'undefined')
2210
2240
  ? { register: () => {}, unregister: () => {} }
@@ -2275,6 +2305,7 @@ export class Peer {
2275
2305
  return ret !== 0;
2276
2306
  }
2277
2307
  }
2308
+ if (Symbol.dispose) Peer.prototype[Symbol.dispose] = Peer.prototype.free;
2278
2309
 
2279
2310
  const RemoveCiphertextErrorFinalization = (typeof FinalizationRegistry === 'undefined')
2280
2311
  ? { register: () => {}, unregister: () => {} }
@@ -2294,6 +2325,7 @@ export class RemoveCiphertextError {
2294
2325
  wasm.__wbg_removeciphertexterror_free(ptr, 0);
2295
2326
  }
2296
2327
  }
2328
+ if (Symbol.dispose) RemoveCiphertextError.prototype[Symbol.dispose] = RemoveCiphertextError.prototype.free;
2297
2329
 
2298
2330
  const RevocationFinalization = (typeof FinalizationRegistry === 'undefined')
2299
2331
  ? { register: () => {}, unregister: () => {} }
@@ -2349,6 +2381,7 @@ export class Revocation {
2349
2381
  return History.__wrap(ret);
2350
2382
  }
2351
2383
  }
2384
+ if (Symbol.dispose) Revocation.prototype[Symbol.dispose] = Revocation.prototype.free;
2352
2385
 
2353
2386
  const RevokeMemberErrorFinalization = (typeof FinalizationRegistry === 'undefined')
2354
2387
  ? { register: () => {}, unregister: () => {} }
@@ -2391,6 +2424,7 @@ export class RevokeMemberError {
2391
2424
  }
2392
2425
  }
2393
2426
  }
2427
+ if (Symbol.dispose) RevokeMemberError.prototype[Symbol.dispose] = RevokeMemberError.prototype.free;
2394
2428
 
2395
2429
  const SerializationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
2396
2430
  ? { register: () => {}, unregister: () => {} }
@@ -2426,6 +2460,7 @@ export class SerializationError {
2426
2460
  return ret;
2427
2461
  }
2428
2462
  }
2463
+ if (Symbol.dispose) SerializationError.prototype[Symbol.dispose] = SerializationError.prototype.free;
2429
2464
 
2430
2465
  const ShareKeyFinalization = (typeof FinalizationRegistry === 'undefined')
2431
2466
  ? { register: () => {}, unregister: () => {} }
@@ -2453,6 +2488,7 @@ export class ShareKey {
2453
2488
  wasm.__wbg_sharekey_free(ptr, 0);
2454
2489
  }
2455
2490
  }
2491
+ if (Symbol.dispose) ShareKey.prototype[Symbol.dispose] = ShareKey.prototype.free;
2456
2492
 
2457
2493
  const SignedFinalization = (typeof FinalizationRegistry === 'undefined')
2458
2494
  ? { register: () => {}, unregister: () => {} }
@@ -2533,6 +2569,7 @@ export class Signed {
2533
2569
  return v1;
2534
2570
  }
2535
2571
  }
2572
+ if (Symbol.dispose) Signed.prototype[Symbol.dispose] = Signed.prototype.free;
2536
2573
 
2537
2574
  const SignedCgkaOperationFinalization = (typeof FinalizationRegistry === 'undefined')
2538
2575
  ? { register: () => {}, unregister: () => {} }
@@ -2592,6 +2629,7 @@ export class SignedCgkaOperation {
2592
2629
  return v1;
2593
2630
  }
2594
2631
  }
2632
+ if (Symbol.dispose) SignedCgkaOperation.prototype[Symbol.dispose] = SignedCgkaOperation.prototype.free;
2595
2633
 
2596
2634
  const SignedDelegationFinalization = (typeof FinalizationRegistry === 'undefined')
2597
2635
  ? { register: () => {}, unregister: () => {} }
@@ -2651,6 +2689,7 @@ export class SignedDelegation {
2651
2689
  return v1;
2652
2690
  }
2653
2691
  }
2692
+ if (Symbol.dispose) SignedDelegation.prototype[Symbol.dispose] = SignedDelegation.prototype.free;
2654
2693
 
2655
2694
  const SignedInvocationFinalization = (typeof FinalizationRegistry === 'undefined')
2656
2695
  ? { register: () => {}, unregister: () => {} }
@@ -2670,6 +2709,7 @@ export class SignedInvocation {
2670
2709
  wasm.__wbg_signedinvocation_free(ptr, 0);
2671
2710
  }
2672
2711
  }
2712
+ if (Symbol.dispose) SignedInvocation.prototype[Symbol.dispose] = SignedInvocation.prototype.free;
2673
2713
 
2674
2714
  const SignedRevocationFinalization = (typeof FinalizationRegistry === 'undefined')
2675
2715
  ? { register: () => {}, unregister: () => {} }
@@ -2729,6 +2769,7 @@ export class SignedRevocation {
2729
2769
  return v1;
2730
2770
  }
2731
2771
  }
2772
+ if (Symbol.dispose) SignedRevocation.prototype[Symbol.dispose] = SignedRevocation.prototype.free;
2732
2773
 
2733
2774
  const SignerFinalization = (typeof FinalizationRegistry === 'undefined')
2734
2775
  ? { register: () => {}, unregister: () => {} }
@@ -2839,6 +2880,7 @@ export class Signer {
2839
2880
  return Signer.__wrap(ret);
2840
2881
  }
2841
2882
  }
2883
+ if (Symbol.dispose) Signer.prototype[Symbol.dispose] = Signer.prototype.free;
2842
2884
 
2843
2885
  const SigningErrorFinalization = (typeof FinalizationRegistry === 'undefined')
2844
2886
  ? { register: () => {}, unregister: () => {} }
@@ -2881,6 +2923,7 @@ export class SigningError {
2881
2923
  }
2882
2924
  }
2883
2925
  }
2926
+ if (Symbol.dispose) SigningError.prototype[Symbol.dispose] = SigningError.prototype.free;
2884
2927
 
2885
2928
  const SimpleCapabilityFinalization = (typeof FinalizationRegistry === 'undefined')
2886
2929
  ? { register: () => {}, unregister: () => {} }
@@ -2922,6 +2965,7 @@ export class SimpleCapability {
2922
2965
  return Access.__wrap(ret);
2923
2966
  }
2924
2967
  }
2968
+ if (Symbol.dispose) SimpleCapability.prototype[Symbol.dispose] = SimpleCapability.prototype.free;
2925
2969
 
2926
2970
  const SummaryFinalization = (typeof FinalizationRegistry === 'undefined')
2927
2971
  ? { register: () => {}, unregister: () => {} }
@@ -2963,6 +3007,7 @@ export class Summary {
2963
3007
  return Access.__wrap(ret);
2964
3008
  }
2965
3009
  }
3010
+ if (Symbol.dispose) Summary.prototype[Symbol.dispose] = Summary.prototype.free;
2966
3011
 
2967
3012
  const TryFromArchiveErrorFinalization = (typeof FinalizationRegistry === 'undefined')
2968
3013
  ? { register: () => {}, unregister: () => {} }
@@ -2998,8 +3043,9 @@ export class TryFromArchiveError {
2998
3043
  return ret;
2999
3044
  }
3000
3045
  }
3046
+ if (Symbol.dispose) TryFromArchiveError.prototype[Symbol.dispose] = TryFromArchiveError.prototype.free;
3001
3047
 
3002
- export function __wbg_Error_1f3748b298f99708(arg0, arg1) {
3048
+ export function __wbg_Error_e17e777aac105295(arg0, arg1) {
3003
3049
  const ret = Error(getStringFromWasm0(arg0, arg1));
3004
3050
  return ret;
3005
3051
  };
@@ -3009,12 +3055,12 @@ export function __wbg_addmembererror_new(arg0) {
3009
3055
  return ret;
3010
3056
  };
3011
3057
 
3012
- export function __wbg_call_2f8d426a20a307fe() { return handleError(function (arg0, arg1) {
3058
+ export function __wbg_call_13410aac570ffff7() { return handleError(function (arg0, arg1) {
3013
3059
  const ret = arg0.call(arg1);
3014
3060
  return ret;
3015
3061
  }, arguments) };
3016
3062
 
3017
- export function __wbg_call_f53f0647ceb9c567() { return handleError(function (arg0, arg1, arg2) {
3063
+ export function __wbg_call_a5400b25a865cfd8() { return handleError(function (arg0, arg1, arg2) {
3018
3064
  const ret = arg0.call(arg1, arg2);
3019
3065
  return ret;
3020
3066
  }, arguments) };
@@ -3054,7 +3100,7 @@ export function __wbg_crypto_574e78ad8b13b65f(arg0) {
3054
3100
  return ret;
3055
3101
  };
3056
3102
 
3057
- export function __wbg_crypto_d27ad9f7221b1675() { return handleError(function (arg0) {
3103
+ export function __wbg_crypto_92ce5ebc02988b17() { return handleError(function (arg0) {
3058
3104
  const ret = arg0.crypto;
3059
3105
  return ret;
3060
3106
  }, arguments) };
@@ -3096,12 +3142,12 @@ export function __wbg_event_new(arg0) {
3096
3142
  return ret;
3097
3143
  };
3098
3144
 
3099
- export function __wbg_exportKey_bc8845fdc79b331a() { return handleError(function (arg0, arg1, arg2, arg3) {
3145
+ export function __wbg_exportKey_4a1163511775473d() { return handleError(function (arg0, arg1, arg2, arg3) {
3100
3146
  const ret = arg0.exportKey(getStringFromWasm0(arg1, arg2), arg3);
3101
3147
  return ret;
3102
3148
  }, arguments) };
3103
3149
 
3104
- export function __wbg_generateKey_a2091927ceee8225() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3150
+ export function __wbg_generateKey_b8902ccb0e50ff4e() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3105
3151
  const ret = arg0.generateKey(getStringFromWasm0(arg1, arg2), arg3 !== 0, arg4);
3106
3152
  return ret;
3107
3153
  }, arguments) };
@@ -3120,12 +3166,17 @@ export function __wbg_getRandomValues_b8f5dbd5f3995a9e() { return handleError(fu
3120
3166
  arg0.getRandomValues(arg1);
3121
3167
  }, arguments) };
3122
3168
 
3123
- export function __wbg_getprivatekey_68c3f491137f7d42(arg0) {
3169
+ export function __wbg_get_458e874b43b18b25() { return handleError(function (arg0, arg1) {
3170
+ const ret = Reflect.get(arg0, arg1);
3171
+ return ret;
3172
+ }, arguments) };
3173
+
3174
+ export function __wbg_getprivatekey_2b060a8a8c19d828(arg0) {
3124
3175
  const ret = arg0.privateKey;
3125
3176
  return ret;
3126
3177
  };
3127
3178
 
3128
- export function __wbg_getpublickey_395decee9eaded1e(arg0) {
3179
+ export function __wbg_getpublickey_ad4c2474164b2d9a(arg0) {
3129
3180
  const ret = arg0.publicKey;
3130
3181
  return ret;
3131
3182
  };
@@ -3135,7 +3186,18 @@ export function __wbg_group_new(arg0) {
3135
3186
  return ret;
3136
3187
  };
3137
3188
 
3138
- export function __wbg_instanceof_Window_7f29e5c72acbfd60(arg0) {
3189
+ export function __wbg_instanceof_Crypto_33ac2d91cca59233(arg0) {
3190
+ let result;
3191
+ try {
3192
+ result = arg0 instanceof Crypto;
3193
+ } catch (_) {
3194
+ result = false;
3195
+ }
3196
+ const ret = result;
3197
+ return ret;
3198
+ };
3199
+
3200
+ export function __wbg_instanceof_Window_12d20d558ef92592(arg0) {
3139
3201
  let result;
3140
3202
  try {
3141
3203
  result = arg0 instanceof Window;
@@ -3171,7 +3233,7 @@ export function __wbg_keyhive_new(arg0) {
3171
3233
  return ret;
3172
3234
  };
3173
3235
 
3174
- export function __wbg_length_904c0910ed998bf3(arg0) {
3236
+ export function __wbg_length_6bb7e81f9d7713e4(arg0) {
3175
3237
  const ret = arg0.length;
3176
3238
  return ret;
3177
3239
  };
@@ -3181,24 +3243,14 @@ export function __wbg_msCrypto_a61aeb35a24c1329(arg0) {
3181
3243
  return ret;
3182
3244
  };
3183
3245
 
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) {
3246
+ export function __wbg_new_2e3c58a15f39f5f9(arg0, arg1) {
3195
3247
  try {
3196
3248
  var state0 = {a: arg0, b: arg1};
3197
3249
  var cb0 = (arg0, arg1) => {
3198
3250
  const a = state0.a;
3199
3251
  state0.a = 0;
3200
3252
  try {
3201
- return __wbg_adapter_272(a, state0.b, arg0, arg1);
3253
+ return __wbg_adapter_274(a, state0.b, arg0, arg1);
3202
3254
  } finally {
3203
3255
  state0.a = a;
3204
3256
  }
@@ -3210,12 +3262,22 @@ export function __wbg_new_d5e3800b120e37e1(arg0, arg1) {
3210
3262
  }
3211
3263
  };
3212
3264
 
3213
- export function __wbg_newnoargs_a81330f6e05d8aca(arg0, arg1) {
3265
+ export function __wbg_new_638ebfaedbf32a5e(arg0) {
3266
+ const ret = new Uint8Array(arg0);
3267
+ return ret;
3268
+ };
3269
+
3270
+ export function __wbg_new_8a6f238a6ece86ea() {
3271
+ const ret = new Error();
3272
+ return ret;
3273
+ };
3274
+
3275
+ export function __wbg_newnoargs_254190557c45b4ec(arg0, arg1) {
3214
3276
  const ret = new Function(getStringFromWasm0(arg0, arg1));
3215
3277
  return ret;
3216
3278
  };
3217
3279
 
3218
- export function __wbg_newwithlength_ed0ee6c1edca86fc(arg0) {
3280
+ export function __wbg_newwithlength_a167dcc7aaa3ba77(arg0) {
3219
3281
  const ret = new Uint8Array(arg0 >>> 0);
3220
3282
  return ret;
3221
3283
  };
@@ -3235,17 +3297,17 @@ export function __wbg_process_dc0fbacc7c1c06f7(arg0) {
3235
3297
  return ret;
3236
3298
  };
3237
3299
 
3238
- export function __wbg_prototypesetcall_c5f74efd31aea86b(arg0, arg1, arg2) {
3300
+ export function __wbg_prototypesetcall_3d4a26c1ed734349(arg0, arg1, arg2) {
3239
3301
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
3240
3302
  };
3241
3303
 
3242
- export function __wbg_queueMicrotask_bcc6e26d899696db(arg0) {
3243
- const ret = arg0.queueMicrotask;
3244
- return ret;
3304
+ export function __wbg_queueMicrotask_25d0739ac89e8c88(arg0) {
3305
+ queueMicrotask(arg0);
3245
3306
  };
3246
3307
 
3247
- export function __wbg_queueMicrotask_f24a794d09c42640(arg0) {
3248
- queueMicrotask(arg0);
3308
+ export function __wbg_queueMicrotask_4488407636f5bf24(arg0) {
3309
+ const ret = arg0.queueMicrotask;
3310
+ return ret;
3249
3311
  };
3250
3312
 
3251
3313
  export function __wbg_randomFillSync_ac0988aba3254290() { return handleError(function (arg0, arg1) {
@@ -3257,7 +3319,7 @@ export function __wbg_require_60cc747a6bc5215a() { return handleError(function (
3257
3319
  return ret;
3258
3320
  }, arguments) };
3259
3321
 
3260
- export function __wbg_resolve_5775c0ef9222f556(arg0) {
3322
+ export function __wbg_resolve_4055c623acdd6a1b(arg0) {
3261
3323
  const ret = Promise.resolve(arg0);
3262
3324
  return ret;
3263
3325
  };
@@ -3277,7 +3339,7 @@ export function __wbg_sharekey_new(arg0) {
3277
3339
  return ret;
3278
3340
  };
3279
3341
 
3280
- export function __wbg_sign_57acde3c6437bdd1() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3342
+ export function __wbg_sign_8891059f121b31b5() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
3281
3343
  const ret = arg0.sign(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
3282
3344
  return ret;
3283
3345
  }, arguments) };
@@ -3320,32 +3382,32 @@ export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
3320
3382
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3321
3383
  };
3322
3384
 
3323
- export function __wbg_static_accessor_GLOBAL_1f13249cc3acc96d() {
3385
+ export function __wbg_static_accessor_GLOBAL_8921f820c2ce3f12() {
3324
3386
  const ret = typeof global === 'undefined' ? null : global;
3325
3387
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3326
3388
  };
3327
3389
 
3328
- export function __wbg_static_accessor_GLOBAL_THIS_df7ae94b1e0ed6a3() {
3390
+ export function __wbg_static_accessor_GLOBAL_THIS_f0a4409105898184() {
3329
3391
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
3330
3392
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3331
3393
  };
3332
3394
 
3333
- export function __wbg_static_accessor_SELF_6265471db3b3c228() {
3395
+ export function __wbg_static_accessor_SELF_995b214ae681ff99() {
3334
3396
  const ret = typeof self === 'undefined' ? null : self;
3335
3397
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3336
3398
  };
3337
3399
 
3338
- export function __wbg_static_accessor_WINDOW_16fb482f8ec52863() {
3400
+ export function __wbg_static_accessor_WINDOW_cde3890479c675ea() {
3339
3401
  const ret = typeof window === 'undefined' ? null : window;
3340
3402
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
3341
3403
  };
3342
3404
 
3343
- export function __wbg_subarray_a219824899e59712(arg0, arg1, arg2) {
3405
+ export function __wbg_subarray_70fd07feefe14294(arg0, arg1, arg2) {
3344
3406
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
3345
3407
  return ret;
3346
3408
  };
3347
3409
 
3348
- export function __wbg_subtle_40dd37072861a308(arg0) {
3410
+ export function __wbg_subtle_dd66747d3e9a93d4(arg0) {
3349
3411
  const ret = arg0.subtle;
3350
3412
  return ret;
3351
3413
  };
@@ -3355,12 +3417,12 @@ export function __wbg_summary_new(arg0) {
3355
3417
  return ret;
3356
3418
  };
3357
3419
 
3358
- export function __wbg_then_8d2fcccde5380a03(arg0, arg1, arg2) {
3420
+ export function __wbg_then_b33a773d723afa3e(arg0, arg1, arg2) {
3359
3421
  const ret = arg0.then(arg1, arg2);
3360
3422
  return ret;
3361
3423
  };
3362
3424
 
3363
- export function __wbg_then_9cc266be2bf537b6(arg0, arg1) {
3425
+ export function __wbg_then_e22500defe16819f(arg0, arg1) {
3364
3426
  const ret = arg0.then(arg1);
3365
3427
  return ret;
3366
3428
  };
@@ -3375,7 +3437,7 @@ export function __wbg_versions_c01dfd4722a88165(arg0) {
3375
3437
  return ret;
3376
3438
  };
3377
3439
 
3378
- export function __wbg_wbindgencbdrop_a85ed476c6a370b9(arg0) {
3440
+ export function __wbg_wbindgencbdrop_eb10308566512b88(arg0) {
3379
3441
  const obj = arg0.original;
3380
3442
  if (obj.cnt-- == 1) {
3381
3443
  obj.a = 0;
@@ -3385,7 +3447,7 @@ export function __wbg_wbindgencbdrop_a85ed476c6a370b9(arg0) {
3385
3447
  return ret;
3386
3448
  };
3387
3449
 
3388
- export function __wbg_wbindgendebugstring_bb652b1bc2061b6d(arg0, arg1) {
3450
+ export function __wbg_wbindgendebugstring_99ef257a3ddda34d(arg0, arg1) {
3389
3451
  const ret = debugString(arg1);
3390
3452
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3391
3453
  const len1 = WASM_VECTOR_LEN;
@@ -3393,34 +3455,34 @@ export function __wbg_wbindgendebugstring_bb652b1bc2061b6d(arg0, arg1) {
3393
3455
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
3394
3456
  };
3395
3457
 
3396
- export function __wbg_wbindgenisfunction_ea72b9d66a0e1705(arg0) {
3458
+ export function __wbg_wbindgenisfunction_8cee7dce3725ae74(arg0) {
3397
3459
  const ret = typeof(arg0) === 'function';
3398
3460
  return ret;
3399
3461
  };
3400
3462
 
3401
- export function __wbg_wbindgenisobject_dfe064a121d87553(arg0) {
3463
+ export function __wbg_wbindgenisobject_307a53c6bd97fbf8(arg0) {
3402
3464
  const val = arg0;
3403
3465
  const ret = typeof(val) === 'object' && val !== null;
3404
3466
  return ret;
3405
3467
  };
3406
3468
 
3407
- export function __wbg_wbindgenisstring_4b74e4111ba029e6(arg0) {
3469
+ export function __wbg_wbindgenisstring_d4fa939789f003b0(arg0) {
3408
3470
  const ret = typeof(arg0) === 'string';
3409
3471
  return ret;
3410
3472
  };
3411
3473
 
3412
- export function __wbg_wbindgenisundefined_71f08a6ade4354e7(arg0) {
3474
+ export function __wbg_wbindgenisundefined_c4b71d073b92f3c5(arg0) {
3413
3475
  const ret = arg0 === undefined;
3414
3476
  return ret;
3415
3477
  };
3416
3478
 
3417
- export function __wbg_wbindgenthrow_4c11a24fca429ccf(arg0, arg1) {
3479
+ export function __wbg_wbindgenthrow_451ec1a8469d7eb6(arg0, arg1) {
3418
3480
  throw new Error(getStringFromWasm0(arg0, arg1));
3419
3481
  };
3420
3482
 
3421
3483
  export function __wbindgen_cast_133053e9d0cd85aa(arg0, arg1) {
3422
3484
  // Cast intrinsic for `Closure(Closure { dtor_idx: 422, function: Function { arguments: [Externref], shim_idx: 423, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3423
- const ret = makeMutClosure(arg0, arg1, 422, __wbg_adapter_12);
3485
+ const ret = makeMutClosure(arg0, arg1, 422, __wbg_adapter_14);
3424
3486
  return ret;
3425
3487
  };
3426
3488