@keyhive/keyhive 0.0.0-alpha.16 → 0.0.0-alpha.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keyhive/keyhive",
3
- "version": "0.0.0-alpha.16",
3
+ "version": "0.0.0-alpha.18",
4
4
  "description": "",
5
5
  "main": "pkg/keyhive_wasm.js",
6
6
  "keywords": [],
@@ -231,6 +231,22 @@ function makeMutClosure(arg0, arg1, dtor, f) {
231
231
  return real;
232
232
  }
233
233
 
234
+ function _assertClass(instance, klass) {
235
+ if (!(instance instanceof klass)) {
236
+ throw new Error(`expected instance of ${klass.name}`);
237
+ }
238
+ }
239
+
240
+ function passArrayJsValueToWasm0(array, malloc) {
241
+ const ptr = malloc(array.length * 4, 4) >>> 0;
242
+ for (let i = 0; i < array.length; i++) {
243
+ const add = addToExternrefTable0(array[i]);
244
+ getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
245
+ }
246
+ WASM_VECTOR_LEN = array.length;
247
+ return ptr;
248
+ }
249
+
234
250
  function passArray8ToWasm0(arg, malloc) {
235
251
  const ptr = malloc(arg.length * 1, 1) >>> 0;
236
252
  getUint8ArrayMemory0().set(arg, ptr / 1);
@@ -243,12 +259,6 @@ function takeFromExternrefTable0(idx) {
243
259
  wasm.__externref_table_dealloc(idx);
244
260
  return value;
245
261
  }
246
-
247
- function _assertClass(instance, klass) {
248
- if (!(instance instanceof klass)) {
249
- throw new Error(`expected instance of ${klass.name}`);
250
- }
251
- }
252
262
  /**
253
263
  * Panic hook lets us get better error messages if our Rust code ever panics.
254
264
  *
@@ -259,21 +269,12 @@ export function setPanicHook() {
259
269
  wasm.setPanicHook();
260
270
  }
261
271
 
262
- function passArrayJsValueToWasm0(array, malloc) {
263
- const ptr = malloc(array.length * 4, 4) >>> 0;
264
- for (let i = 0; i < array.length; i++) {
265
- const add = addToExternrefTable0(array[i]);
266
- getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
267
- }
268
- WASM_VECTOR_LEN = array.length;
269
- return ptr;
270
- }
271
- function __wbg_adapter_6(arg0, arg1, arg2) {
272
- wasm.closure505_externref_shim(arg0, arg1, arg2);
272
+ function __wbg_adapter_8(arg0, arg1, arg2) {
273
+ wasm.closure495_externref_shim(arg0, arg1, arg2);
273
274
  }
274
275
 
275
276
  function __wbg_adapter_269(arg0, arg1, arg2, arg3) {
276
- wasm.closure647_externref_shim(arg0, arg1, arg2, arg3);
277
+ wasm.closure652_externref_shim(arg0, arg1, arg2, arg3);
277
278
  }
278
279
 
279
280
  const AccessFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -3470,18 +3471,18 @@ export function __wbindgen_cast_ae91babfc5c19b28(arg0, arg1) {
3470
3471
  return ret;
3471
3472
  };
3472
3473
 
3473
- export function __wbindgen_cast_c6b1983773ccaca5(arg0, arg1) {
3474
- // Cast intrinsic for `Closure(Closure { dtor_idx: 504, function: Function { arguments: [Externref], shim_idx: 505, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3475
- const ret = makeMutClosure(arg0, arg1, 504, __wbg_adapter_6);
3476
- return ret;
3477
- };
3478
-
3479
3474
  export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
3480
3475
  // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
3481
3476
  const ret = getArrayU8FromWasm0(arg0, arg1);
3482
3477
  return ret;
3483
3478
  };
3484
3479
 
3480
+ export function __wbindgen_cast_cc3b8fd244091a64(arg0, arg1) {
3481
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 494, function: Function { arguments: [Externref], shim_idx: 495, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3482
+ const ret = makeMutClosure(arg0, arg1, 494, __wbg_adapter_8);
3483
+ return ret;
3484
+ };
3485
+
3485
3486
  export function __wbindgen_init_externref_table() {
3486
3487
  const table = wasm.__wbindgen_export_2;
3487
3488
  const offset = table.grow(4);
Binary file
@@ -2,6 +2,40 @@
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const __wbg_invocation_free: (a: number, b: number) => void;
5
+ export const __wbg_membered_free: (a: number, b: number) => void;
6
+ export const __wbg_signedinvocation_free: (a: number, b: number) => void;
7
+ export const __wbg_keyhive_free: (a: number, b: number) => void;
8
+ export const keyhive_init: (a: number, b: number, c: any) => any;
9
+ export const keyhive_id: (a: number) => number;
10
+ export const keyhive_individual: (a: number) => number;
11
+ export const keyhive_idString: (a: number) => [number, number];
12
+ export const keyhive_generateGroup: (a: number, b: number, c: number) => any;
13
+ export const keyhive_generateDocument: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
14
+ export const keyhive_trySign: (a: number, b: number, c: number) => any;
15
+ export const keyhive_tryEncrypt: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
16
+ export const keyhive_tryEncryptArchive: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
17
+ export const keyhive_tryDecrypt: (a: number, b: number, c: number) => [number, number, number, number];
18
+ export const keyhive_addMember: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
19
+ export const keyhive_revokeMember: (a: number, b: number, c: number, d: number) => any;
20
+ export const keyhive_reachableDocs: (a: number) => [number, number];
21
+ export const keyhive_forcePcsUpdate: (a: number, b: number) => any;
22
+ export const keyhive_rotatePrekey: (a: number, b: number) => any;
23
+ export const keyhive_expandPrekeys: (a: number) => any;
24
+ export const keyhive_contactCard: (a: number) => any;
25
+ export const keyhive_receiveContactCard: (a: number, b: number) => [number, number, number];
26
+ export const keyhive_getAgent: (a: number, b: number) => number;
27
+ export const keyhive_getGroup: (a: number, b: number) => number;
28
+ export const keyhive_getDocument: (a: number, b: number) => number;
29
+ export const keyhive_docMemberCapabilities: (a: number, b: number) => [number, number];
30
+ export const keyhive_accessForDoc: (a: number, b: number, c: number) => number;
31
+ export const keyhive_intoArchive: (a: number) => number;
32
+ export const keyhive_toArchive: (a: number) => number;
33
+ export const keyhive_ingestArchive: (a: number, b: number) => any;
34
+ export const __wbg_jsreceiveprekeyoperror_free: (a: number, b: number) => void;
35
+ export const __wbg_jsencrypterror_free: (a: number, b: number) => void;
36
+ export const __wbg_jsdecrypterror_free: (a: number, b: number) => void;
37
+ export const __wbg_jsreceivestaticeventerror_free: (a: number, b: number) => void;
38
+ export const keyhive_whoami: (a: number) => number;
5
39
  export const __wbg_addmembererror_free: (a: number, b: number) => void;
6
40
  export const addmembererror_message: (a: number) => [number, number];
7
41
  export const __wbg_agent_free: (a: number, b: number) => void;
@@ -10,13 +44,9 @@ export const agent_isIndividual: (a: number) => number;
10
44
  export const agent_isGroup: (a: number) => number;
11
45
  export const agent_isDocument: (a: number) => number;
12
46
  export const agent_id: (a: number) => number;
13
- export const __wbg_capability_free: (a: number, b: number) => void;
14
- export const capability_who: (a: number) => number;
15
- export const capability_can: (a: number) => number;
16
- export const capability_proof: (a: number) => number;
17
- export const __wbg_simplecapability_free: (a: number, b: number) => void;
18
- export const simplecapability_who: (a: number) => number;
19
- export const simplecapability_can: (a: number) => number;
47
+ export const __wbg_changeref_free: (a: number, b: number) => void;
48
+ export const changeref_new: (a: number, b: number) => number;
49
+ export const changeref_bytes: (a: number) => [number, number];
20
50
  export const __wbg_delegation_free: (a: number, b: number) => void;
21
51
  export const delegation_delegate: (a: number) => number;
22
52
  export const delegation_can: (a: number) => number;
@@ -32,12 +62,24 @@ export const event_isDelegated: (a: number) => number;
32
62
  export const event_isRevoked: (a: number) => number;
33
63
  export const event_tryIntoSignedDelegation: (a: number) => number;
34
64
  export const event_tryIntoSignedRevocation: (a: number) => number;
35
- export const __wbg_membered_free: (a: number, b: number) => void;
65
+ export const __wbg_generatedocerror_free: (a: number, b: number) => void;
66
+ export const generatedocerror_message: (a: number) => [number, number];
67
+ export const __wbg_identifier_free: (a: number, b: number) => void;
68
+ export const identifier_new: (a: number, b: number) => [number, number, number];
69
+ export const identifier_toBytes: (a: number) => [number, number];
70
+ export const __wbg_cannotparseidentifier_free: (a: number, b: number) => void;
36
71
  export const __wbg_peer_free: (a: number, b: number) => void;
37
72
  export const peer_toString: (a: number) => [number, number];
38
73
  export const peer_isIndividual: (a: number) => number;
39
74
  export const peer_isGroup: (a: number) => number;
40
75
  export const peer_isDocument: (a: number) => number;
76
+ export const __wbg_signed_free: (a: number, b: number) => void;
77
+ export const signed_fromBytes: (a: number, b: number) => number;
78
+ export const signed_toBytes: (a: number) => [number, number];
79
+ export const signed_verify: (a: number) => number;
80
+ export const signed_payload: (a: number) => [number, number];
81
+ export const signed_verifyingKey: (a: number) => [number, number];
82
+ export const signed_signature: (a: number) => [number, number];
41
83
  export const __wbg_signedcgkaoperation_free: (a: number, b: number) => void;
42
84
  export const signedcgkaoperation_verify: (a: number) => number;
43
85
  export const signedcgkaoperation_delegation: (a: number) => number;
@@ -56,6 +98,9 @@ export const signedrevocation_signature: (a: number) => [number, number];
56
98
  export const __wbg_summary_free: (a: number, b: number) => void;
57
99
  export const summary_doc: (a: number) => number;
58
100
  export const summary_access: (a: number) => number;
101
+ export const __wbg_access_free: (a: number, b: number) => void;
102
+ export const access_tryFromString: (a: number, b: number) => number;
103
+ export const access_toString: (a: number) => [number, number];
59
104
  export const __wbg_archive_free: (a: number, b: number) => void;
60
105
  export const archive_try_from_bytes: (a: number, b: number) => [number, number, number];
61
106
  export const archive_toBytes: (a: number) => [number, number, number, number];
@@ -64,85 +109,6 @@ export const __wbg_tryfromarchiveerror_free: (a: number, b: number) => void;
64
109
  export const tryfromarchiveerror_toError: (a: number) => any;
65
110
  export const __wbg_serializationerror_free: (a: number, b: number) => void;
66
111
  export const serializationerror_toError: (a: number) => any;
67
- export const __wbg_group_free: (a: number, b: number) => void;
68
- export const group_id: (a: number) => number;
69
- export const group_groupId: (a: number) => number;
70
- export const group_members: (a: number) => [number, number];
71
- export const group_toPeer: (a: number) => number;
72
- export const group_toAgent: (a: number) => number;
73
- export const group_toMembered: (a: number) => number;
74
- export const __wbg_access_free: (a: number, b: number) => void;
75
- export const access_tryFromString: (a: number, b: number) => number;
76
- export const access_toString: (a: number) => [number, number];
77
- export const __wbg_document_free: (a: number, b: number) => void;
78
- export const document_id: (a: number) => number;
79
- export const document_doc_id: (a: number) => number;
80
- export const document_toPeer: (a: number) => number;
81
- export const document_toAgent: (a: number) => number;
82
- export const document_toMembered: (a: number) => number;
83
- export const __wbg_individual_free: (a: number, b: number) => void;
84
- export const individual_toPeer: (a: number) => number;
85
- export const individual_toAgent: (a: number) => number;
86
- export const individual_id: (a: number) => number;
87
- export const individual_individualId: (a: number) => number;
88
- export const individual_pickPrekey: (a: number, b: number) => number;
89
- export const __wbg_individualid_free: (a: number, b: number) => void;
90
- export const individualid_bytes: (a: number) => [number, number];
91
- export const __wbg_revokemembererror_free: (a: number, b: number) => void;
92
- export const revokemembererror_message: (a: number) => [number, number];
93
- export const setPanicHook: () => void;
94
- export const __wbg_keyhive_free: (a: number, b: number) => void;
95
- export const keyhive_init: (a: number, b: number, c: any) => any;
96
- export const keyhive_id: (a: number) => number;
97
- export const keyhive_individual: (a: number) => number;
98
- export const keyhive_idString: (a: number) => [number, number];
99
- export const keyhive_generateGroup: (a: number, b: number, c: number) => any;
100
- export const keyhive_generateDocument: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
101
- export const keyhive_trySign: (a: number, b: number, c: number) => any;
102
- export const keyhive_tryEncrypt: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
103
- export const keyhive_tryEncryptArchive: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
104
- export const keyhive_tryDecrypt: (a: number, b: number, c: number) => [number, number, number, number];
105
- export const keyhive_addMember: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
106
- export const keyhive_revokeMember: (a: number, b: number, c: number, d: number) => any;
107
- export const keyhive_reachableDocs: (a: number) => [number, number];
108
- export const keyhive_forcePcsUpdate: (a: number, b: number) => any;
109
- export const keyhive_rotatePrekey: (a: number, b: number) => any;
110
- export const keyhive_expandPrekeys: (a: number) => any;
111
- export const keyhive_contactCard: (a: number) => any;
112
- export const keyhive_receiveContactCard: (a: number, b: number) => [number, number, number];
113
- export const keyhive_getAgent: (a: number, b: number) => number;
114
- export const keyhive_getGroup: (a: number, b: number) => number;
115
- export const keyhive_getDocument: (a: number, b: number) => number;
116
- export const keyhive_docMemberCapabilities: (a: number, b: number) => [number, number];
117
- export const keyhive_accessForDoc: (a: number, b: number, c: number) => number;
118
- export const keyhive_intoArchive: (a: number) => number;
119
- export const keyhive_toArchive: (a: number) => number;
120
- export const keyhive_ingestArchive: (a: number, b: number) => any;
121
- export const __wbg_jsreceiveprekeyoperror_free: (a: number, b: number) => void;
122
- export const __wbg_jsencrypterror_free: (a: number, b: number) => void;
123
- export const __wbg_jsdecrypterror_free: (a: number, b: number) => void;
124
- export const __wbg_jsreceivestaticeventerror_free: (a: number, b: number) => void;
125
- export const keyhive_whoami: (a: number) => number;
126
- export const __wbg_changeref_free: (a: number, b: number) => void;
127
- export const changeref_new: (a: number, b: number) => number;
128
- export const changeref_bytes: (a: number) => [number, number];
129
- export const __wbg_doccontentrefs_free: (a: number, b: number) => void;
130
- export const doccontentrefs_new: (a: number, b: number, c: number) => [number, number, number];
131
- export const doccontentrefs_addChangeRef: (a: number, b: number) => void;
132
- export const doccontentrefs_docId: (a: number) => number;
133
- export const doccontentrefs_change_hashes: (a: number) => [number, number];
134
- export const __wbg_history_free: (a: number, b: number) => void;
135
- export const history_delegations: (a: number) => [number, number];
136
- export const history_revocations: (a: number) => [number, number];
137
- export const history_contentRefs: (a: number) => [number, number];
138
- export const __wbg_revocation_free: (a: number, b: number) => void;
139
- export const revocation_subject_id: (a: number) => number;
140
- export const revocation_revoked: (a: number) => number;
141
- export const revocation_proof: (a: number) => number;
142
- export const revocation_after: (a: number) => number;
143
- export const __wbg_sharekey_free: (a: number, b: number) => void;
144
- export const __wbg_cgkaoperation_free: (a: number, b: number) => void;
145
- export const cgkaoperation_variant: (a: number) => [number, number];
146
112
  export const __wbg_ciphertextstore_free: (a: number, b: number) => void;
147
113
  export const ciphertextstore_newInMemory: () => number;
148
114
  export const ciphertextstore_newFromWebStorage: (a: any) => number;
@@ -155,6 +121,11 @@ export const contactcard_shareKey: (a: number) => number;
155
121
  export const contactcard_signature: (a: number) => [number, number];
156
122
  export const contactcard_fromJson: (a: number, b: number) => [number, number, number];
157
123
  export const contactcard_toJson: (a: number) => [number, number, number, number];
124
+ export const __wbg_doccontentrefs_free: (a: number, b: number) => void;
125
+ export const doccontentrefs_new: (a: number, b: number, c: number) => [number, number, number];
126
+ export const doccontentrefs_addChangeRef: (a: number, b: number) => void;
127
+ export const doccontentrefs_docId: (a: number) => number;
128
+ export const doccontentrefs_change_hashes: (a: number) => [number, number];
158
129
  export const __wbg_documentid_free: (a: number, b: number) => void;
159
130
  export const documentid_new: (a: number, b: number) => [number, number, number];
160
131
  export const documentid_toString: (a: number) => [number, number];
@@ -166,21 +137,8 @@ export const encrypted_nonce: (a: number) => [number, number];
166
137
  export const encrypted_pcs_key_hash: (a: number) => [number, number];
167
138
  export const encrypted_content_ref: (a: number) => [number, number];
168
139
  export const encrypted_pred_refs: (a: number) => [number, number];
169
- export const __wbg_generatedocerror_free: (a: number, b: number) => void;
170
- export const generatedocerror_message: (a: number) => [number, number];
171
- export const __wbg_groupid_free: (a: number, b: number) => void;
172
- export const groupid_toString: (a: number) => [number, number];
173
- export const __wbg_identifier_free: (a: number, b: number) => void;
174
- export const identifier_new: (a: number, b: number) => [number, number, number];
175
- export const identifier_toBytes: (a: number) => [number, number];
176
- export const __wbg_cannotparseidentifier_free: (a: number, b: number) => void;
177
- export const __wbg_signed_free: (a: number, b: number) => void;
178
- export const signed_fromBytes: (a: number, b: number) => number;
179
- export const signed_toBytes: (a: number) => [number, number];
180
- export const signed_verify: (a: number) => number;
181
- export const signed_payload: (a: number) => [number, number];
182
- export const signed_verifyingKey: (a: number) => [number, number];
183
- export const signed_signature: (a: number) => [number, number];
140
+ export const __wbg_revokemembererror_free: (a: number, b: number) => void;
141
+ export const revokemembererror_message: (a: number) => [number, number];
184
142
  export const __wbg_signer_free: (a: number, b: number) => void;
185
143
  export const signer_generate: () => any;
186
144
  export const signer_generateMemory: () => number;
@@ -197,7 +155,49 @@ export const generatewebcryptoerror_message: (a: number) => [number, number];
197
155
  export const __wbg_signingerror_free: (a: number, b: number) => void;
198
156
  export const signingerror_message: (a: number) => [number, number];
199
157
  export const encrypted_toBytes: (a: number) => [number, number];
200
- export const __wbg_signedinvocation_free: (a: number, b: number) => void;
158
+ export const __wbg_capability_free: (a: number, b: number) => void;
159
+ export const capability_who: (a: number) => number;
160
+ export const capability_can: (a: number) => number;
161
+ export const capability_proof: (a: number) => number;
162
+ export const __wbg_simplecapability_free: (a: number, b: number) => void;
163
+ export const simplecapability_who: (a: number) => number;
164
+ export const simplecapability_can: (a: number) => number;
165
+ export const __wbg_document_free: (a: number, b: number) => void;
166
+ export const document_id: (a: number) => number;
167
+ export const document_doc_id: (a: number) => number;
168
+ export const document_toPeer: (a: number) => number;
169
+ export const document_toAgent: (a: number) => number;
170
+ export const document_toMembered: (a: number) => number;
171
+ export const __wbg_group_free: (a: number, b: number) => void;
172
+ export const group_id: (a: number) => number;
173
+ export const group_groupId: (a: number) => number;
174
+ export const group_members: (a: number) => [number, number];
175
+ export const group_toPeer: (a: number) => number;
176
+ export const group_toAgent: (a: number) => number;
177
+ export const group_toMembered: (a: number) => number;
178
+ export const __wbg_individual_free: (a: number, b: number) => void;
179
+ export const individual_toPeer: (a: number) => number;
180
+ export const individual_toAgent: (a: number) => number;
181
+ export const individual_id: (a: number) => number;
182
+ export const individual_individualId: (a: number) => number;
183
+ export const individual_pickPrekey: (a: number, b: number) => number;
184
+ export const __wbg_sharekey_free: (a: number, b: number) => void;
185
+ export const setPanicHook: () => void;
186
+ export const __wbg_cgkaoperation_free: (a: number, b: number) => void;
187
+ export const cgkaoperation_variant: (a: number) => [number, number];
188
+ export const __wbg_groupid_free: (a: number, b: number) => void;
189
+ export const groupid_toString: (a: number) => [number, number];
190
+ export const __wbg_history_free: (a: number, b: number) => void;
191
+ export const history_delegations: (a: number) => [number, number];
192
+ export const history_revocations: (a: number) => [number, number];
193
+ export const history_contentRefs: (a: number) => [number, number];
194
+ export const __wbg_individualid_free: (a: number, b: number) => void;
195
+ export const individualid_bytes: (a: number) => [number, number];
196
+ export const __wbg_revocation_free: (a: number, b: number) => void;
197
+ export const revocation_subject_id: (a: number) => number;
198
+ export const revocation_revoked: (a: number) => number;
199
+ export const revocation_proof: (a: number) => number;
200
+ export const revocation_after: (a: number) => number;
201
201
  export const __wbindgen_exn_store: (a: number) => void;
202
202
  export const __externref_table_alloc: () => number;
203
203
  export const __wbindgen_export_2: WebAssembly.Table;
@@ -207,6 +207,6 @@ export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) =>
207
207
  export const __externref_drop_slice: (a: number, b: number) => void;
208
208
  export const __wbindgen_export_7: WebAssembly.Table;
209
209
  export const __externref_table_dealloc: (a: number) => void;
210
- export const closure505_externref_shim: (a: number, b: number, c: any) => void;
211
- export const closure647_externref_shim: (a: number, b: number, c: any, d: any) => void;
210
+ export const closure495_externref_shim: (a: number, b: number, c: any) => void;
211
+ export const closure652_externref_shim: (a: number, b: number, c: any, d: any) => void;
212
212
  export const __wbindgen_start: () => void;
@@ -221,6 +221,22 @@ function makeMutClosure(arg0, arg1, dtor, f) {
221
221
  return real;
222
222
  }
223
223
 
224
+ function _assertClass(instance, klass) {
225
+ if (!(instance instanceof klass)) {
226
+ throw new Error(`expected instance of ${klass.name}`);
227
+ }
228
+ }
229
+
230
+ function passArrayJsValueToWasm0(array, malloc) {
231
+ const ptr = malloc(array.length * 4, 4) >>> 0;
232
+ for (let i = 0; i < array.length; i++) {
233
+ const add = addToExternrefTable0(array[i]);
234
+ getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
235
+ }
236
+ WASM_VECTOR_LEN = array.length;
237
+ return ptr;
238
+ }
239
+
224
240
  function passArray8ToWasm0(arg, malloc) {
225
241
  const ptr = malloc(arg.length * 1, 1) >>> 0;
226
242
  getUint8ArrayMemory0().set(arg, ptr / 1);
@@ -233,12 +249,6 @@ function takeFromExternrefTable0(idx) {
233
249
  wasm.__externref_table_dealloc(idx);
234
250
  return value;
235
251
  }
236
-
237
- function _assertClass(instance, klass) {
238
- if (!(instance instanceof klass)) {
239
- throw new Error(`expected instance of ${klass.name}`);
240
- }
241
- }
242
252
  /**
243
253
  * Panic hook lets us get better error messages if our Rust code ever panics.
244
254
  *
@@ -249,21 +259,12 @@ exports.setPanicHook = function() {
249
259
  wasm.setPanicHook();
250
260
  };
251
261
 
252
- function passArrayJsValueToWasm0(array, malloc) {
253
- const ptr = malloc(array.length * 4, 4) >>> 0;
254
- for (let i = 0; i < array.length; i++) {
255
- const add = addToExternrefTable0(array[i]);
256
- getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
257
- }
258
- WASM_VECTOR_LEN = array.length;
259
- return ptr;
260
- }
261
- function __wbg_adapter_6(arg0, arg1, arg2) {
262
- wasm.closure505_externref_shim(arg0, arg1, arg2);
262
+ function __wbg_adapter_14(arg0, arg1, arg2) {
263
+ wasm.closure495_externref_shim(arg0, arg1, arg2);
263
264
  }
264
265
 
265
266
  function __wbg_adapter_269(arg0, arg1, arg2, arg3) {
266
- wasm.closure647_externref_shim(arg0, arg1, arg2, arg3);
267
+ wasm.closure652_externref_shim(arg0, arg1, arg2, arg3);
267
268
  }
268
269
 
269
270
  const AccessFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -3562,18 +3563,18 @@ exports.__wbindgen_cast_ae91babfc5c19b28 = function(arg0, arg1) {
3562
3563
  return ret;
3563
3564
  };
3564
3565
 
3565
- exports.__wbindgen_cast_c6b1983773ccaca5 = function(arg0, arg1) {
3566
- // Cast intrinsic for `Closure(Closure { dtor_idx: 504, function: Function { arguments: [Externref], shim_idx: 505, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3567
- const ret = makeMutClosure(arg0, arg1, 504, __wbg_adapter_6);
3568
- return ret;
3569
- };
3570
-
3571
3566
  exports.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
3572
3567
  // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
3573
3568
  const ret = getArrayU8FromWasm0(arg0, arg1);
3574
3569
  return ret;
3575
3570
  };
3576
3571
 
3572
+ exports.__wbindgen_cast_cc3b8fd244091a64 = function(arg0, arg1) {
3573
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 494, function: Function { arguments: [Externref], shim_idx: 495, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
3574
+ const ret = makeMutClosure(arg0, arg1, 494, __wbg_adapter_14);
3575
+ return ret;
3576
+ };
3577
+
3577
3578
  exports.__wbindgen_init_externref_table = function() {
3578
3579
  const table = wasm.__wbindgen_export_2;
3579
3580
  const offset = table.grow(4);
Binary file