@inclavare-containers/tng 2.7.3 → 2.8.0

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/README.md CHANGED
@@ -4,6 +4,10 @@
4
4
 
5
5
  The TNG Client JavaScript SDK provides client functionality for use in browser environments, built with wasm-pack.
6
6
 
7
+ ## Live Demo
8
+
9
+ A live demo of the TNG JavaScript SDK integrated into a web page is hosted on GitHub Pages: <https://inclavare-containers.github.io/TNG/>
10
+
7
11
  ## Getting the SDK
8
12
 
9
13
  You can obtain the TNG SDK in two ways:
@@ -185,175 +189,10 @@ If you want to integrate in a Chrome extension, due to manifest v3 restrictions,
185
189
  ```
186
190
 
187
191
 
188
- ## Running the Example Code
189
-
190
- The pkg directory contains an example program that uses the TNG SDK to send encrypted requests. The example requires a confidential computing server instance and a local computer. The following describes how to run the example.
191
-
192
- ### 1. Prepare the Server-side Service
193
-
194
- Use [dummyhttp](https://github.com/svenstaro/dummyhttp), a simple HTTP server program, to simulate our backend service. We need to install and run it.
195
-
196
- Installation
197
-
198
- ```sh
199
- cargo install dummyhttp --locked
200
- ```
201
-
202
- Run this HTTP server and make it listen on port 30001. Now we have a backend HTTP service listening on port 30001.
203
-
204
- ```sh
205
- dummyhttp -p 30001 -vvvv
206
- ```
207
-
208
- > [!NOTE]
209
- > You can use the curl command on the local computer to test direct access to this HTTP server to check network connectivity.
210
-
211
- ### 2. Compile and Install TNG on the Server Side
212
-
213
- Build the RPM package
214
-
215
- ```sh
216
- make create-tarball
217
- make rpm-build
218
- ```
219
-
220
- The artifacts will be placed in `~/rpmbuild/RPMS/*/trusted-network-gateway-*.rpm`, which you can install as follows:
221
-
222
- ```sh
223
- yum install ~/rpmbuild/RPMS/*/trusted-network-gateway-*.rpm -y
224
- ```
225
-
226
- If you want to build the container version of TNG:
227
-
228
- ```sh
229
- # First install podman
230
- yum install podman podman-docker -y
231
- # Build the container image
232
- docker build -t tng:test .
233
- ```
234
-
235
- This will produce a container image named `tng:test`.
236
-
237
- ### 3. Run Attestation-Agent on the Server Side
238
-
239
- You can choose to install attestation-agent from the yum repository or compile and deploy your own attestation-agent.
240
-
241
- ```sh
242
- yum install -y attestation-agent
243
- ```
244
-
245
- Run
246
-
247
- ```sh
248
- RUST_LOG=debug attestation-agent --attestation_sock unix:///run/confidential-containers/attestation-agent/attestation-agent.sock
249
- ```
250
-
251
- ### 4. Run TNG on the Server Side
252
-
253
- ```sh
254
- tng launch --config-content='
255
- {
256
- "add_egress": [
257
- {
258
- "netfilter": {
259
- "capture_dst": {
260
- "port": 30001
261
- },
262
- "capture_local_traffic": true
263
- },
264
- "ohttp": {},
265
- "attest": {
266
- "aa_addr": "unix:///run/confidential-containers/attestation-agent/attestation-agent.sock"
267
- }
268
- }
269
- ]
270
- }'
271
- ```
272
-
273
- > [!NOTE]
274
- >
275
- > - Currently, the TNG SDK only supports server-side verification, so you must provide the `"attest"` option
276
- > - As shown above, you need to add an `"ohttp": {}` entry in the TNG configuration to enable using OHTTP as the encryption protocol (instead of rats-tls) for bidirectional encrypted traffic transmission.
277
-
278
- ### 5. Run the Attestation Service Instance
279
-
280
- You need to prepare an Attestation Service instance that exposes a RESTful HTTP interface. This can be achieved by installing the `trustee` package from the yum repository or compiling and deploying your own `restful-as`.
281
-
282
- A reference run command is as follows:
283
-
284
- ```sh
285
- cat <<EOF > /tmp/config_with_cert.json
286
- {
287
- "work_dir": "/var/lib/attestation-service/",
288
- "rvps_config": {
289
- "type": "BuiltIn",
290
- "storage": {
291
- "type": "LocalFs"
292
- }
293
- },
294
- "attestation_token_broker": {
295
- "type": "Simple",
296
- "duration_min": 5
297
- }
298
- }
299
- EOF
300
-
301
- RUST_LOG=debug restful-as --socket 0.0.0.0:9080 --config-file /tmp/config_with_cert.json
302
-
303
- # Since restful-as natively does not support CORS configuration, here we run a CORS proxy service (https://github.com/bulletmark/corsproxy) that forwards requests from port 8080 to the real Attestation Service.
304
- podman run -it --rm --net=host docker.io/bulletmark/corsproxy:latest 8080=http://127.0.0.1:9080
305
- ```
306
-
307
- The above will expose an Attestation Service on port 8080.
308
-
309
- > [!NOTE]
310
- > Since the TNG SDK needs to initiate requests to the Attestation Service instance in the browser, please ensure you handle the CORS rules properly.
311
-
312
- Here is an example:
313
-
314
- ### 6. Compile the TNG SDK
315
-
316
- ```sh
317
- make wasm-build-debug
318
- ```
192
+ ## Cross-Origin Requests (CORS)
319
193
 
320
- This will produce the corresponding `.wasm` and `.js` files in the `tng-wasm/pkg/` directory.
194
+ When the browser needs to use the TNG SDK cross-origin to access encrypted backend services, some additional configuration is required — see [docs/cors.md](docs/cors.md).
321
195
 
322
- ### 7. Modify the Frontend Page Code
323
-
324
- Please modify the following content in [index.html](pkg/index.html) as needed:
325
-
326
- URL of the backend service to access:
327
-
328
- ```js
329
- const url = "http://127.0.0.1:30001/foo/bar?baz=qux";
330
- ```
331
-
332
- Attestation Service URL and policy ID for verification:
333
-
334
- ```js
335
- const asAddr = "http://127.0.0.1:8080/";
336
- const policyIds = ["default"];
337
- ```
338
-
339
- ### 8. Run the Frontend Service on the Server Side
340
-
341
- First install miniserve
342
-
343
- ```sh
344
- cargo +nightly-2025-07-07 install miniserve --locked
345
- ```
346
-
347
- Run miniserve
348
-
349
- ```sh
350
- miniserve ./tng-wasm/pkg --index index.html --header "Cross-Origin-Opener-Policy:same-origin" --header "Cross-Origin-Embedder-Policy:require-corp" --port 8082
351
- ```
352
-
353
- > [!NOTE]
354
- >
355
- > - [`miniserve`](https://github.com/svenstaro/miniserve) is a pure static resource server. It's no different from Nginx or Python's http.server, and you can use other components as alternatives.
356
-
357
- ### 9. Access in the Browser
196
+ ## Running the Example Code
358
197
 
359
- Open a browser on the local computer and visit `http://<confidential computing service instance ip>:8082/`. You can view the request response logs in F12.
198
+ The `example/` directory contains an example page that uses the TNG SDK to send encrypted requests. See [example/README.md](example/README.md) for full end-to-end deployment steps.
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "collaborators": [
5
5
  "Kun Lai <laikun@linux.alibaba.com>"
6
6
  ],
7
- "version": "2.7.3",
7
+ "version": "2.8.0",
8
8
  "license": "Apache-2.0",
9
9
  "repository": {
10
10
  "type": "git",
package/tng_wasm.d.ts CHANGED
@@ -6,7 +6,7 @@
6
6
  * *This API requires the following crate features to be activated: `ReadableStreamType`*
7
7
  */
8
8
 
9
- type ReadableStreamType = "bytes";
9
+ export type ReadableStreamType = "bytes";
10
10
 
11
11
  export class IntoUnderlyingByteSource {
12
12
  private constructor();
@@ -49,10 +49,10 @@ export function task_worker_entry_point(ptr: number): void;
49
49
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
50
50
 
51
51
  export interface InitOutput {
52
- readonly fetch: (a: number, b: number, c: any, d: any) => any;
53
52
  readonly init_tng: () => void;
53
+ readonly fetch: (a: number, b: number, c: any, d: any) => any;
54
54
  readonly task_worker_entry_point: (a: number) => [number, number];
55
- readonly ring_core_0_17_11__bn_mul_mont: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
55
+ readonly ring_core_0_17_14__bn_mul_mont: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
56
56
  readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
57
57
  readonly intounderlyingsink_write: (a: number, b: any) => any;
58
58
  readonly intounderlyingsink_close: (a: number) => any;
@@ -66,14 +66,11 @@ export interface InitOutput {
66
66
  readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
67
67
  readonly intounderlyingsource_pull: (a: number, b: any) => any;
68
68
  readonly intounderlyingsource_cancel: (a: number) => void;
69
- readonly wasm_bindgen__closure__destroy__h608d62b8eccc8f6e: (a: number, b: number) => void;
70
- readonly wasm_bindgen__closure__destroy__hbb5960641dfaf99a: (a: number, b: number) => void;
71
- readonly wasm_bindgen__closure__destroy__h2925d4d1c19a6d50: (a: number, b: number) => void;
72
- readonly wasm_bindgen__convert__closures_____invoke__h38253c4a1aa54e27: (a: number, b: number, c: any) => [number, number];
73
- readonly wasm_bindgen__convert__closures_____invoke__h4e91db2f1b7350bd: (a: number, b: number, c: any, d: any) => void;
74
- readonly wasm_bindgen__convert__closures_____invoke__hdfdaa0711fe9a60e: (a: number, b: number, c: any) => void;
75
- readonly wasm_bindgen__convert__closures_____invoke__hfa390009d5ba6f84: (a: number, b: number, c: any) => void;
76
- readonly wasm_bindgen__convert__closures_____invoke__h7938576e03ec4167: (a: number, b: number) => void;
69
+ readonly wasm_bindgen__convert__closures_____invoke__ha59ba16ef22dfc70: (a: number, b: number, c: any) => [number, number];
70
+ readonly wasm_bindgen__convert__closures_____invoke__h559a482ac3702f86: (a: number, b: number, c: any, d: any) => void;
71
+ readonly wasm_bindgen__convert__closures_____invoke__hb033ae5249c410c1: (a: number, b: number, c: any) => void;
72
+ readonly wasm_bindgen__convert__closures_____invoke__h860fbeea0fd5b879: (a: number, b: number, c: any) => void;
73
+ readonly wasm_bindgen__convert__closures_____invoke__h0ce3070689c7d82f: (a: number, b: number) => void;
77
74
  readonly memory: WebAssembly.Memory;
78
75
  readonly __wbindgen_malloc: (a: number, b: number) => number;
79
76
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
@@ -81,6 +78,7 @@ export interface InitOutput {
81
78
  readonly __externref_table_alloc: () => number;
82
79
  readonly __wbindgen_externrefs: WebAssembly.Table;
83
80
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
81
+ readonly __wbindgen_destroy_closure: (a: number, b: number) => void;
84
82
  readonly __externref_table_dealloc: (a: number) => void;
85
83
  readonly __wbindgen_thread_destroy: (a?: number, b?: number, c?: number) => void;
86
84
  readonly __wbindgen_start: (a: number) => void;
package/tng_wasm.js CHANGED
@@ -87,7 +87,6 @@ if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyin
87
87
 
88
88
  export class IntoUnderlyingSource {
89
89
  static __wrap(ptr) {
90
- ptr = ptr >>> 0;
91
90
  const obj = Object.create(IntoUnderlyingSource.prototype);
92
91
  obj.__wbg_ptr = ptr;
93
92
  IntoUnderlyingSourceFinalization.register(obj, obj.__wbg_ptr, obj);
@@ -146,83 +145,82 @@ export function task_worker_entry_point(ptr) {
146
145
  throw takeFromExternrefTable0(ret[0]);
147
146
  }
148
147
  }
149
-
150
148
  function __wbg_get_imports(memory) {
151
149
  const import0 = {
152
150
  __proto__: null,
153
- __wbg_Error_83742b46f01ce22d: function(arg0, arg1) {
151
+ __wbg_Error_92b29b0548f8b746: function(arg0, arg1) {
154
152
  const ret = Error(getStringFromWasm0(arg0, arg1));
155
153
  return ret;
156
154
  },
157
- __wbg_Number_a5a435bd7bbec835: function(arg0) {
155
+ __wbg_Number_9a4e0ecb0fa16705: function(arg0) {
158
156
  const ret = Number(arg0);
159
157
  return ret;
160
158
  },
161
- __wbg___wbindgen_bigint_get_as_i64_447a76b5c6ef7bda: function(arg0, arg1) {
159
+ __wbg___wbindgen_bigint_get_as_i64_d968e41184ae354f: function(arg0, arg1) {
162
160
  const v = arg1;
163
161
  const ret = typeof(v) === 'bigint' ? v : undefined;
164
162
  getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
165
163
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
166
164
  },
167
- __wbg___wbindgen_boolean_get_c0f3f60bac5a78d1: function(arg0) {
165
+ __wbg___wbindgen_boolean_get_fa956cfa2d1bd751: function(arg0) {
168
166
  const v = arg0;
169
167
  const ret = typeof(v) === 'boolean' ? v : undefined;
170
168
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
171
169
  },
172
- __wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
170
+ __wbg___wbindgen_debug_string_c25d447a39f5578f: function(arg0, arg1) {
173
171
  const ret = debugString(arg1);
174
172
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
175
173
  const len1 = WASM_VECTOR_LEN;
176
174
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
177
175
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
178
176
  },
179
- __wbg___wbindgen_in_41dbb8413020e076: function(arg0, arg1) {
177
+ __wbg___wbindgen_in_aca499c5de7ff5e5: function(arg0, arg1) {
180
178
  const ret = arg0 in arg1;
181
179
  return ret;
182
180
  },
183
- __wbg___wbindgen_is_bigint_e2141d4f045b7eda: function(arg0) {
181
+ __wbg___wbindgen_is_bigint_2f76dc55065b4273: function(arg0) {
184
182
  const ret = typeof(arg0) === 'bigint';
185
183
  return ret;
186
184
  },
187
- __wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
185
+ __wbg___wbindgen_is_function_1ff95bcc5517c252: function(arg0) {
188
186
  const ret = typeof(arg0) === 'function';
189
187
  return ret;
190
188
  },
191
- __wbg___wbindgen_is_object_781bc9f159099513: function(arg0) {
189
+ __wbg___wbindgen_is_object_a27215656b807791: function(arg0) {
192
190
  const val = arg0;
193
191
  const ret = typeof(val) === 'object' && val !== null;
194
192
  return ret;
195
193
  },
196
- __wbg___wbindgen_is_string_7ef6b97b02428fae: function(arg0) {
194
+ __wbg___wbindgen_is_string_ea5e6cc2e4141dfe: function(arg0) {
197
195
  const ret = typeof(arg0) === 'string';
198
196
  return ret;
199
197
  },
200
- __wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
198
+ __wbg___wbindgen_is_undefined_c05833b95a3cf397: function(arg0) {
201
199
  const ret = arg0 === undefined;
202
200
  return ret;
203
201
  },
204
- __wbg___wbindgen_jsval_eq_ee31bfad3e536463: function(arg0, arg1) {
202
+ __wbg___wbindgen_jsval_eq_e659fcf7b0e32763: function(arg0, arg1) {
205
203
  const ret = arg0 === arg1;
206
204
  return ret;
207
205
  },
208
- __wbg___wbindgen_jsval_loose_eq_5bcc3bed3c69e72b: function(arg0, arg1) {
206
+ __wbg___wbindgen_jsval_loose_eq_db4c3b15f63fc170: function(arg0, arg1) {
209
207
  const ret = arg0 == arg1;
210
208
  return ret;
211
209
  },
212
- __wbg___wbindgen_memory_edb3f01e3930bbf6: function() {
210
+ __wbg___wbindgen_memory_de265df8aadd6273: function() {
213
211
  const ret = wasm.memory;
214
212
  return ret;
215
213
  },
216
- __wbg___wbindgen_number_get_34bb9d9dcfa21373: function(arg0, arg1) {
214
+ __wbg___wbindgen_number_get_394265ed1e1b84ee: function(arg0, arg1) {
217
215
  const obj = arg1;
218
216
  const ret = typeof(obj) === 'number' ? obj : undefined;
219
217
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
220
218
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
221
219
  },
222
- __wbg___wbindgen_rethrow_5d3a9250cec92549: function(arg0) {
220
+ __wbg___wbindgen_rethrow_4915403b40f010b4: function(arg0) {
223
221
  throw arg0;
224
222
  },
225
- __wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
223
+ __wbg___wbindgen_string_get_b0ca35b86a603356: function(arg0, arg1) {
226
224
  const obj = arg1;
227
225
  const ret = typeof(obj) === 'string' ? obj : undefined;
228
226
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -230,70 +228,70 @@ function __wbg_get_imports(memory) {
230
228
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
231
229
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
232
230
  },
233
- __wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
231
+ __wbg___wbindgen_throw_344f42d3211c4765: function(arg0, arg1) {
234
232
  throw new Error(getStringFromWasm0(arg0, arg1));
235
233
  },
236
- __wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg0) {
234
+ __wbg__wbg_cb_unref_fffb441def202758: function(arg0) {
237
235
  arg0._wbg_cb_unref();
238
236
  },
239
- __wbg_abort_5ef96933660780b7: function(arg0) {
237
+ __wbg_abort_8bae0f33e7833997: function(arg0) {
240
238
  arg0.abort();
241
239
  },
242
- __wbg_abort_6479c2d794ebf2ee: function(arg0, arg1) {
240
+ __wbg_abort_eee9248a6d680839: function(arg0, arg1) {
243
241
  arg0.abort(arg1);
244
242
  },
245
- __wbg_append_608dfb635ee8998f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
243
+ __wbg_append_01c74e5c6b58aa64: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
246
244
  arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
247
245
  }, arguments); },
248
- __wbg_arrayBuffer_eb8e9ca620af2a19: function() { return handleError(function (arg0) {
246
+ __wbg_arrayBuffer_3b637f0fa65c5351: function() { return handleError(function (arg0) {
249
247
  const ret = arg0.arrayBuffer();
250
248
  return ret;
251
249
  }, arguments); },
252
- __wbg_async_b33e4cb28c6b2093: function(arg0) {
250
+ __wbg_async_37b7cd4cbabb646c: function(arg0) {
253
251
  const ret = arg0.async;
254
252
  return ret;
255
253
  },
256
- __wbg_body_9fd07dcbb5b77be9: function(arg0) {
254
+ __wbg_body_18c9f2ac15ead4b2: function(arg0) {
257
255
  const ret = arg0.body;
258
256
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
259
257
  },
260
- __wbg_body_ac1dad652946e6da: function(arg0) {
258
+ __wbg_body_2a9122b81e23d7e2: function(arg0) {
261
259
  const ret = arg0.body;
262
260
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
263
261
  },
264
- __wbg_buffer_60b8043cd926067d: function(arg0) {
262
+ __wbg_buffer_0f212447ac64c53b: function(arg0) {
265
263
  const ret = arg0.buffer;
266
264
  return ret;
267
265
  },
268
- __wbg_buffer_eb2779983eb67380: function(arg0) {
266
+ __wbg_buffer_54b87055582c8a81: function(arg0) {
269
267
  const ret = arg0.buffer;
270
268
  return ret;
271
269
  },
272
- __wbg_byobRequest_6342e5f2b232c0f9: function(arg0) {
270
+ __wbg_byobRequest_06b654bb15590436: function(arg0) {
273
271
  const ret = arg0.byobRequest;
274
272
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
275
273
  },
276
- __wbg_byteLength_607b856aa6c5a508: function(arg0) {
274
+ __wbg_byteLength_41862ca4020b9c43: function(arg0) {
277
275
  const ret = arg0.byteLength;
278
276
  return ret;
279
277
  },
280
- __wbg_byteOffset_b26b63681c83856c: function(arg0) {
278
+ __wbg_byteOffset_d42e18c4441f628b: function(arg0) {
281
279
  const ret = arg0.byteOffset;
282
280
  return ret;
283
281
  },
284
- __wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
285
- const ret = arg0.call(arg1, arg2);
282
+ __wbg_call_8a2dd23819f8a60a: function() { return handleError(function (arg0, arg1) {
283
+ const ret = arg0.call(arg1);
286
284
  return ret;
287
285
  }, arguments); },
288
- __wbg_call_e133b57c9155d22c: function() { return handleError(function (arg0, arg1) {
289
- const ret = arg0.call(arg1);
286
+ __wbg_call_a6e5c5dce5018821: function() { return handleError(function (arg0, arg1, arg2) {
287
+ const ret = arg0.call(arg1, arg2);
290
288
  return ret;
291
289
  }, arguments); },
292
- __wbg_cancel_79b3bea07a1028e7: function(arg0) {
290
+ __wbg_cancel_3983a93e24cc66b3: function(arg0) {
293
291
  const ret = arg0.cancel();
294
292
  return ret;
295
293
  },
296
- __wbg_catch_d7ed0375ab6532a5: function(arg0, arg1) {
294
+ __wbg_catch_c1a60df4c30d76d3: function(arg0, arg1) {
297
295
  const ret = arg0.catch(arg1);
298
296
  return ret;
299
297
  },
@@ -301,32 +299,32 @@ function __wbg_get_imports(memory) {
301
299
  const ret = clearTimeout(arg0);
302
300
  return ret;
303
301
  },
304
- __wbg_close_690d36108c557337: function() { return handleError(function (arg0) {
302
+ __wbg_close_249a23304523681b: function() { return handleError(function (arg0) {
305
303
  arg0.close();
306
304
  }, arguments); },
307
- __wbg_close_737b4b1fbc658540: function() { return handleError(function (arg0) {
305
+ __wbg_close_72d318d9c16e83ef: function() { return handleError(function (arg0) {
308
306
  arg0.close();
309
307
  }, arguments); },
310
308
  __wbg_crypto_0a92367f02a93895: function(arg0) {
311
309
  const ret = arg0.crypto;
312
310
  return ret;
313
311
  },
314
- __wbg_data_a3d9ff9cdd801002: function(arg0) {
312
+ __wbg_data_0965368f2b7f680a: function(arg0) {
315
313
  const ret = arg0.data;
316
314
  return ret;
317
315
  },
318
- __wbg_done_08ce71ee07e3bd17: function(arg0) {
316
+ __wbg_done_89b2b13e91a60321: function(arg0) {
319
317
  const ret = arg0.done;
320
318
  return ret;
321
319
  },
322
- __wbg_enqueue_ec3552838b4b7fbf: function() { return handleError(function (arg0, arg1) {
320
+ __wbg_enqueue_6d83b4c6281bafd6: function() { return handleError(function (arg0, arg1) {
323
321
  arg0.enqueue(arg1);
324
322
  }, arguments); },
325
- __wbg_entries_850b70a4650cfe8b: function(arg0) {
323
+ __wbg_entries_00d7283394649868: function(arg0) {
326
324
  const ret = arg0.entries();
327
325
  return ret;
328
326
  },
329
- __wbg_entries_e8a20ff8c9757101: function(arg0) {
327
+ __wbg_entries_015dc610cd81ede0: function(arg0) {
330
328
  const ret = Object.entries(arg0);
331
329
  return ret;
332
330
  },
@@ -348,7 +346,7 @@ function __wbg_get_imports(memory) {
348
346
  const ret = fetch(arg0);
349
347
  return ret;
350
348
  },
351
- __wbg_fetch_5550a88cf343aaa9: function(arg0, arg1) {
349
+ __wbg_fetch_b5951fc96f52f786: function(arg0, arg1) {
352
350
  const ret = arg0.fetch(arg1);
353
351
  return ret;
354
352
  },
@@ -356,7 +354,7 @@ function __wbg_get_imports(memory) {
356
354
  const ret = fetch(arg0, arg1);
357
355
  return ret;
358
356
  },
359
- __wbg_fetch_d77cded604d729e9: function(arg0, arg1, arg2) {
357
+ __wbg_fetch_fadfd227089fdf80: function(arg0, arg1, arg2) {
360
358
  const ret = arg0.fetch(arg1, arg2);
361
359
  return ret;
362
360
  },
@@ -370,27 +368,35 @@ function __wbg_get_imports(memory) {
370
368
  const ret = arg0.getReader();
371
369
  return ret;
372
370
  }, arguments); },
373
- __wbg_getTime_1dad7b5386ddd2d9: function(arg0) {
371
+ __wbg_getTime_d6f070c088c9b5ed: function(arg0) {
374
372
  const ret = arg0.getTime();
375
373
  return ret;
376
374
  },
377
- __wbg_get_326e41e095fb2575: function() { return handleError(function (arg0, arg1) {
378
- const ret = Reflect.get(arg0, arg1);
375
+ __wbg_getTimezoneOffset_dc9862c79e5a81a3: function(arg0) {
376
+ const ret = arg0.getTimezoneOffset();
379
377
  return ret;
380
- }, arguments); },
381
- __wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
378
+ },
379
+ __wbg_get_507a50627bffa49b: function(arg0, arg1) {
382
380
  const ret = arg0[arg1 >>> 0];
383
381
  return ret;
384
382
  },
385
- __wbg_get_done_d0ab690f8df5501f: function(arg0) {
383
+ __wbg_get_78f252d074a84d0b: function() { return handleError(function (arg0, arg1) {
384
+ const ret = Reflect.get(arg0, arg1);
385
+ return ret;
386
+ }, arguments); },
387
+ __wbg_get_c7eb1f358a7654df: function() { return handleError(function (arg0, arg1) {
388
+ const ret = Reflect.get(arg0, arg1);
389
+ return ret;
390
+ }, arguments); },
391
+ __wbg_get_done_670108eb06ecbe46: function(arg0) {
386
392
  const ret = arg0.done;
387
393
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
388
394
  },
389
- __wbg_get_unchecked_329cfe50afab7352: function(arg0, arg1) {
395
+ __wbg_get_unchecked_6e0ad6d2a41b06f6: function(arg0, arg1) {
390
396
  const ret = arg0[arg1 >>> 0];
391
397
  return ret;
392
398
  },
393
- __wbg_get_value_548ae6adf5a174e4: function(arg0) {
399
+ __wbg_get_value_f465f5be30aa0963: function(arg0) {
394
400
  const ret = arg0.value;
395
401
  return ret;
396
402
  },
@@ -398,19 +404,19 @@ function __wbg_get_imports(memory) {
398
404
  const ret = arg0[arg1];
399
405
  return ret;
400
406
  },
401
- __wbg_has_926ef2ff40b308cf: function() { return handleError(function (arg0, arg1) {
407
+ __wbg_has_8374cf06984d8bfc: function() { return handleError(function (arg0, arg1) {
402
408
  const ret = Reflect.has(arg0, arg1);
403
409
  return ret;
404
410
  }, arguments); },
405
- __wbg_headers_eb2234545f9ff993: function(arg0) {
411
+ __wbg_headers_7b59c5203c8c475d: function(arg0) {
406
412
  const ret = arg0.headers;
407
413
  return ret;
408
414
  },
409
- __wbg_headers_fc8c672cd757e0fd: function(arg0) {
415
+ __wbg_headers_cf9c80f30e2a4eff: function(arg0) {
410
416
  const ret = arg0.headers;
411
417
  return ret;
412
418
  },
413
- __wbg_instanceof_ArrayBuffer_101e2bf31071a9f6: function(arg0) {
419
+ __wbg_instanceof_ArrayBuffer_4480b9e0068a8adb: function(arg0) {
414
420
  let result;
415
421
  try {
416
422
  result = arg0 instanceof ArrayBuffer;
@@ -420,7 +426,17 @@ function __wbg_get_imports(memory) {
420
426
  const ret = result;
421
427
  return ret;
422
428
  },
423
- __wbg_instanceof_Map_f194b366846aca0c: function(arg0) {
429
+ __wbg_instanceof_Error_1fdac9f13a8181ba: function(arg0) {
430
+ let result;
431
+ try {
432
+ result = arg0 instanceof Error;
433
+ } catch (_) {
434
+ result = false;
435
+ }
436
+ const ret = result;
437
+ return ret;
438
+ },
439
+ __wbg_instanceof_Map_e5b5e3db98422fcc: function(arg0) {
424
440
  let result;
425
441
  try {
426
442
  result = arg0 instanceof Map;
@@ -430,7 +446,7 @@ function __wbg_get_imports(memory) {
430
446
  const ret = result;
431
447
  return ret;
432
448
  },
433
- __wbg_instanceof_Response_9b4d9fd451e051b1: function(arg0) {
449
+ __wbg_instanceof_Response_c8b64b2256f01bec: function(arg0) {
434
450
  let result;
435
451
  try {
436
452
  result = arg0 instanceof Response;
@@ -440,7 +456,7 @@ function __wbg_get_imports(memory) {
440
456
  const ret = result;
441
457
  return ret;
442
458
  },
443
- __wbg_instanceof_Uint8Array_740438561a5b956d: function(arg0) {
459
+ __wbg_instanceof_Uint8Array_309b927aaf7a3fc7: function(arg0) {
444
460
  let result;
445
461
  try {
446
462
  result = arg0 instanceof Uint8Array;
@@ -450,7 +466,7 @@ function __wbg_get_imports(memory) {
450
466
  const ret = result;
451
467
  return ret;
452
468
  },
453
- __wbg_instanceof_Window_23e677d2c6843922: function(arg0) {
469
+ __wbg_instanceof_Window_05ba1ee4f6781663: function(arg0) {
454
470
  let result;
455
471
  try {
456
472
  result = arg0 instanceof Window;
@@ -460,23 +476,23 @@ function __wbg_get_imports(memory) {
460
476
  const ret = result;
461
477
  return ret;
462
478
  },
463
- __wbg_isArray_33b91feb269ff46e: function(arg0) {
479
+ __wbg_isArray_0677c962b281d01a: function(arg0) {
464
480
  const ret = Array.isArray(arg0);
465
481
  return ret;
466
482
  },
467
- __wbg_isSafeInteger_ecd6a7f9c3e053cd: function(arg0) {
483
+ __wbg_isSafeInteger_04f36e4056f1b851: function(arg0) {
468
484
  const ret = Number.isSafeInteger(arg0);
469
485
  return ret;
470
486
  },
471
- __wbg_iterator_d8f549ec8fb061b1: function() {
487
+ __wbg_iterator_6f722e4a93058b71: function() {
472
488
  const ret = Symbol.iterator;
473
489
  return ret;
474
490
  },
475
- __wbg_length_b3416cf66a5452c8: function(arg0) {
491
+ __wbg_length_1f0964f4a5e2c6d8: function(arg0) {
476
492
  const ret = arg0.length;
477
493
  return ret;
478
494
  },
479
- __wbg_length_ea16607d7b61445b: function(arg0) {
495
+ __wbg_length_370319915dc99107: function(arg0) {
480
496
  const ret = arg0.length;
481
497
  return ret;
482
498
  },
@@ -521,7 +537,11 @@ function __wbg_get_imports(memory) {
521
537
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
522
538
  }
523
539
  }, arguments); },
524
- __wbg_method_23aa7d0d6ec9a08f: function(arg0, arg1) {
540
+ __wbg_message_8326fb1d549bebc5: function(arg0) {
541
+ const ret = arg0.message;
542
+ return ret;
543
+ },
544
+ __wbg_method_b84982a2d750a05f: function(arg0, arg1) {
525
545
  const ret = arg1.method;
526
546
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
527
547
  const len1 = WASM_VECTOR_LEN;
@@ -532,46 +552,38 @@ function __wbg_get_imports(memory) {
532
552
  const ret = arg0.msCrypto;
533
553
  return ret;
534
554
  },
535
- __wbg_new_0837727332ac86ba: function() { return handleError(function () {
536
- const ret = new Headers();
555
+ __wbg_name_b0b4809690944614: function(arg0) {
556
+ const ret = arg0.name;
537
557
  return ret;
538
- }, arguments); },
539
- __wbg_new_0_1dcafdf5e786e876: function() {
558
+ },
559
+ __wbg_new_0_3da9e97f24fc69be: function() {
540
560
  const ret = new Date();
541
561
  return ret;
542
562
  },
563
+ __wbg_new_0d809930cd1354c6: function() { return handleError(function () {
564
+ const ret = new Headers();
565
+ return ret;
566
+ }, arguments); },
543
567
  __wbg_new_227d7c05414eb861: function() {
544
568
  const ret = new Error();
545
569
  return ret;
546
570
  },
547
- __wbg_new_3acd383af1655b5f: function() { return handleError(function (arg0, arg1) {
548
- const ret = new Worker(getStringFromWasm0(arg0, arg1));
571
+ __wbg_new_4339b2a2675a03e3: function() { return handleError(function () {
572
+ const ret = new AbortController();
549
573
  return ret;
550
574
  }, arguments); },
551
- __wbg_new_5f486cdf45a04d78: function(arg0) {
552
- const ret = new Uint8Array(arg0);
553
- return ret;
554
- },
555
- __wbg_new_ab79df5bd7c26067: function() {
556
- const ret = new Object();
557
- return ret;
558
- },
559
- __wbg_new_af04f4c3ed7fd887: function(arg0) {
575
+ __wbg_new_70f79e80a78a1f78: function(arg0) {
560
576
  const ret = new Int32Array(arg0);
561
577
  return ret;
562
578
  },
563
- __wbg_new_c518c60af666645b: function() { return handleError(function () {
564
- const ret = new AbortController();
565
- return ret;
566
- }, arguments); },
567
- __wbg_new_d098e265629cd10f: function(arg0, arg1) {
579
+ __wbg_new_aec3e25493d729fe: function(arg0, arg1) {
568
580
  try {
569
581
  var state0 = {a: arg0, b: arg1};
570
582
  var cb0 = (arg0, arg1) => {
571
583
  const a = state0.a;
572
584
  state0.a = 0;
573
585
  try {
574
- return wasm_bindgen__convert__closures_____invoke__h4e91db2f1b7350bd(a, state0.b, arg0, arg1);
586
+ return wasm_bindgen__convert__closures_____invoke__h559a482ac3702f86(a, state0.b, arg0, arg1);
575
587
  } finally {
576
588
  state0.a = a;
577
589
  }
@@ -579,25 +591,37 @@ function __wbg_get_imports(memory) {
579
591
  const ret = new Promise(cb0);
580
592
  return ret;
581
593
  } finally {
582
- state0.a = state0.b = 0;
594
+ state0.a = 0;
583
595
  }
584
596
  },
585
- __wbg_new_d15cb560a6a0e5f0: function(arg0, arg1) {
597
+ __wbg_new_b667d279fd5aa943: function(arg0, arg1) {
586
598
  const ret = new Error(getStringFromWasm0(arg0, arg1));
587
599
  return ret;
588
600
  },
589
- __wbg_new_from_slice_22da9388ac046e50: function(arg0, arg1) {
601
+ __wbg_new_cc984128914cfc6f: function(arg0) {
602
+ const ret = new Date(arg0);
603
+ return ret;
604
+ },
605
+ __wbg_new_cd45aabdf6073e84: function(arg0) {
606
+ const ret = new Uint8Array(arg0);
607
+ return ret;
608
+ },
609
+ __wbg_new_da52cf8fe3429cb2: function() {
610
+ const ret = new Object();
611
+ return ret;
612
+ },
613
+ __wbg_new_from_slice_77cdfb7977362f3c: function(arg0, arg1) {
590
614
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
591
615
  return ret;
592
616
  },
593
- __wbg_new_typed_aaaeaf29cf802876: function(arg0, arg1) {
617
+ __wbg_new_typed_1824d93f294193e5: function(arg0, arg1) {
594
618
  try {
595
619
  var state0 = {a: arg0, b: arg1};
596
620
  var cb0 = (arg0, arg1) => {
597
621
  const a = state0.a;
598
622
  state0.a = 0;
599
623
  try {
600
- return wasm_bindgen__convert__closures_____invoke__h4e91db2f1b7350bd(a, state0.b, arg0, arg1);
624
+ return wasm_bindgen__convert__closures_____invoke__h559a482ac3702f86(a, state0.b, arg0, arg1);
601
625
  } finally {
602
626
  state0.a = a;
603
627
  }
@@ -605,10 +629,10 @@ function __wbg_get_imports(memory) {
605
629
  const ret = new Promise(cb0);
606
630
  return ret;
607
631
  } finally {
608
- state0.a = state0.b = 0;
632
+ state0.a = 0;
609
633
  }
610
634
  },
611
- __wbg_new_with_byte_offset_and_length_b2ec5bf7b2f35743: function(arg0, arg1, arg2) {
635
+ __wbg_new_with_byte_offset_and_length_54c7724ee3ec7d82: function(arg0, arg1, arg2) {
612
636
  const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
613
637
  return ret;
614
638
  },
@@ -616,81 +640,93 @@ function __wbg_get_imports(memory) {
616
640
  const ret = new ReadableStream(IntoUnderlyingSource.__wrap(arg0), arg1);
617
641
  return ret;
618
642
  },
619
- __wbg_new_with_length_825018a1616e9e55: function(arg0) {
643
+ __wbg_new_with_length_e6785c33c8e4cce8: function(arg0) {
620
644
  const ret = new Uint8Array(arg0 >>> 0);
621
645
  return ret;
622
646
  },
623
- __wbg_new_with_opt_readable_stream_and_init_15b79ab5fa39d080: function() { return handleError(function (arg0, arg1) {
647
+ __wbg_new_with_opt_readable_stream_and_init_bfd13e2b23ff2e0c: function() { return handleError(function (arg0, arg1) {
624
648
  const ret = new Response(arg0, arg1);
625
649
  return ret;
626
650
  }, arguments); },
627
- __wbg_new_with_str_and_init_b4b54d1a819bc724: function() { return handleError(function (arg0, arg1, arg2) {
651
+ __wbg_new_with_str_and_init_d95cbe11ce28e65e: function() { return handleError(function (arg0, arg1, arg2) {
628
652
  const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
629
653
  return ret;
630
654
  }, arguments); },
631
- __wbg_next_11b99ee6237339e3: function() { return handleError(function (arg0) {
632
- const ret = arg0.next();
655
+ __wbg_new_worker_a37b91c84b1f9aa5: function(arg0, arg1) {
656
+ const ret = new Worker(getStringFromWasm0(arg0, arg1));
633
657
  return ret;
634
- }, arguments); },
635
- __wbg_next_e01a967809d1aa68: function(arg0) {
658
+ },
659
+ __wbg_next_6dbf2c0ac8cde20f: function(arg0) {
636
660
  const ret = arg0.next;
637
661
  return ret;
638
662
  },
663
+ __wbg_next_71f2aa1cb3d1e37e: function() { return handleError(function (arg0) {
664
+ const ret = arg0.next();
665
+ return ret;
666
+ }, arguments); },
639
667
  __wbg_node_8ae12470cbc10fa7: function(arg0) {
640
668
  const ret = arg0.node;
641
669
  return ret;
642
670
  },
643
- __wbg_now_16f0c993d5dd6c27: function() {
671
+ __wbg_now_86c0d4ba3fa605b8: function() {
644
672
  const ret = Date.now();
645
673
  return ret;
646
674
  },
647
- __wbg_of_8fd5dd402bc67165: function(arg0, arg1, arg2) {
675
+ __wbg_now_e7c6795a7f81e10f: function(arg0) {
676
+ const ret = arg0.now();
677
+ return ret;
678
+ },
679
+ __wbg_of_b0cd2e09b31a9684: function(arg0, arg1, arg2) {
648
680
  const ret = Array.of(arg0, arg1, arg2);
649
681
  return ret;
650
682
  },
651
- __wbg_parse_e9eddd2a82c706eb: function() { return handleError(function (arg0, arg1) {
683
+ __wbg_parse_1c0d8a8656d7e016: function() { return handleError(function (arg0, arg1) {
652
684
  const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
653
685
  return ret;
654
686
  }, arguments); },
655
- __wbg_postMessage_564f0071531c08c3: function() { return handleError(function (arg0, arg1) {
687
+ __wbg_performance_3fcf6e32a7e1ed0a: function(arg0) {
688
+ const ret = arg0.performance;
689
+ return ret;
690
+ },
691
+ __wbg_postMessage_ea8632bb43026d6a: function() { return handleError(function (arg0, arg1) {
656
692
  arg0.postMessage(arg1);
657
693
  }, arguments); },
658
- __wbg_postMessage_edb4c90a528e5a8c: function() { return handleError(function (arg0, arg1) {
694
+ __wbg_postMessage_f48bc524bea113e2: function() { return handleError(function (arg0, arg1) {
659
695
  arg0.postMessage(arg1);
660
696
  }, arguments); },
661
697
  __wbg_process_c9cfbc1e2919260e: function(arg0) {
662
698
  const ret = arg0.process;
663
699
  return ret;
664
700
  },
665
- __wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
701
+ __wbg_prototypesetcall_4770620bbe4688a0: function(arg0, arg1, arg2) {
666
702
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
667
703
  },
668
- __wbg_queueMicrotask_0c399741342fb10f: function(arg0) {
704
+ __wbg_queueMicrotask_0ab5b2d2393e99b9: function(arg0) {
669
705
  const ret = arg0.queueMicrotask;
670
706
  return ret;
671
707
  },
672
- __wbg_queueMicrotask_a082d78ce798393e: function(arg0) {
708
+ __wbg_queueMicrotask_6a09b7bc46549209: function(arg0) {
673
709
  queueMicrotask(arg0);
674
710
  },
675
711
  __wbg_randomFillSync_143a36904a882f2a: function() { return handleError(function (arg0, arg1) {
676
712
  arg0.randomFillSync(arg1);
677
713
  }, arguments); },
678
- __wbg_read_7f593a961a7f80ed: function(arg0) {
714
+ __wbg_read_8afa15f12a160ef8: function(arg0) {
679
715
  const ret = arg0.read();
680
716
  return ret;
681
717
  },
682
- __wbg_releaseLock_ef7766a5da654ff8: function(arg0) {
718
+ __wbg_releaseLock_5b92874cad775644: function(arg0) {
683
719
  arg0.releaseLock();
684
720
  },
685
721
  __wbg_require_def5a4782aa802ec: function() { return handleError(function () {
686
722
  const ret = module.require;
687
723
  return ret;
688
724
  }, arguments); },
689
- __wbg_resolve_ae8d83246e5bcc12: function(arg0) {
725
+ __wbg_resolve_2191a4dfe481c25b: function(arg0) {
690
726
  const ret = Promise.resolve(arg0);
691
727
  return ret;
692
728
  },
693
- __wbg_respond_e286ee502e7cf7e4: function() { return handleError(function (arg0, arg1) {
729
+ __wbg_respond_510e32df8aeb6817: function() { return handleError(function (arg0, arg1) {
694
730
  arg0.respond(arg1 >>> 0);
695
731
  }, arguments); },
696
732
  __wbg_setTimeout_3f4119f26240bd79: function(arg0, arg1) {
@@ -700,62 +736,62 @@ function __wbg_get_imports(memory) {
700
736
  __wbg_setTimeout_52b7500e10b7731c: function(arg0, arg1) {
701
737
  globalThis.setTimeout(arg0, arg1);
702
738
  },
703
- __wbg_set_7eaa4f96924fd6b3: function() { return handleError(function (arg0, arg1, arg2) {
704
- const ret = Reflect.set(arg0, arg1, arg2);
705
- return ret;
739
+ __wbg_set_0de9c62c23d04ad5: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
740
+ arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
706
741
  }, arguments); },
707
- __wbg_set_8c0b3ffcf05d61c2: function(arg0, arg1, arg2) {
742
+ __wbg_set_4d7dd76f3dae2926: function(arg0, arg1, arg2) {
708
743
  arg0.set(getArrayU8FromWasm0(arg1, arg2));
709
744
  },
710
- __wbg_set_body_a3d856b097dfda04: function(arg0, arg1) {
745
+ __wbg_set_8535240470bf2500: function() { return handleError(function (arg0, arg1, arg2) {
746
+ const ret = Reflect.set(arg0, arg1, arg2);
747
+ return ret;
748
+ }, arguments); },
749
+ __wbg_set_body_029f2d171e0a005f: function(arg0, arg1) {
711
750
  arg0.body = arg1;
712
751
  },
713
- __wbg_set_cache_ec7e430c6056ebda: function(arg0, arg1) {
752
+ __wbg_set_cache_b4a740b195c051f4: function(arg0, arg1) {
714
753
  arg0.cache = __wbindgen_enum_RequestCache[arg1];
715
754
  },
716
- __wbg_set_credentials_ed63183445882c65: function(arg0, arg1) {
755
+ __wbg_set_credentials_bb34a40189e3b43b: function(arg0, arg1) {
717
756
  arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
718
757
  },
719
- __wbg_set_e09648bea3f1af1e: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
720
- arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
721
- }, arguments); },
722
- __wbg_set_headers_3c8fecc693b75327: function(arg0, arg1) {
758
+ __wbg_set_headers_4be66d6f175ce615: function(arg0, arg1) {
723
759
  arg0.headers = arg1;
724
760
  },
725
- __wbg_set_headers_bf56980ea1a65acb: function(arg0, arg1) {
761
+ __wbg_set_headers_9c61d123c3ee1f10: function(arg0, arg1) {
726
762
  arg0.headers = arg1;
727
763
  },
728
- __wbg_set_high_water_mark_1ac059fa0566c2fc: function(arg0, arg1) {
764
+ __wbg_set_high_water_mark_44d043cd607dd13a: function(arg0, arg1) {
729
765
  arg0.highWaterMark = arg1;
730
766
  },
731
- __wbg_set_integrity_6e605069e31cef0a: function(arg0, arg1, arg2) {
767
+ __wbg_set_integrity_13c390f33acee59c: function(arg0, arg1, arg2) {
732
768
  arg0.integrity = getStringFromWasm0(arg1, arg2);
733
769
  },
734
- __wbg_set_method_8c015e8bcafd7be1: function(arg0, arg1, arg2) {
770
+ __wbg_set_method_5532d59b92d76467: function(arg0, arg1, arg2) {
735
771
  arg0.method = getStringFromWasm0(arg1, arg2);
736
772
  },
737
- __wbg_set_mode_5a87f2c809cf37c2: function(arg0, arg1) {
773
+ __wbg_set_mode_66c79886ad78fc05: function(arg0, arg1) {
738
774
  arg0.mode = __wbindgen_enum_RequestMode[arg1];
739
775
  },
740
- __wbg_set_onmessage_d5dc11c291025af6: function(arg0, arg1) {
776
+ __wbg_set_onmessage_e3a42c9af9f677a1: function(arg0, arg1) {
741
777
  arg0.onmessage = arg1;
742
778
  },
743
- __wbg_set_redirect_c7b340412376b11a: function(arg0, arg1) {
779
+ __wbg_set_redirect_badd73a0bcb765e3: function(arg0, arg1) {
744
780
  arg0.redirect = __wbindgen_enum_RequestRedirect[arg1];
745
781
  },
746
- __wbg_set_referrer_4f2f273104bee6d0: function(arg0, arg1, arg2) {
782
+ __wbg_set_referrer_02890bb2de855af1: function(arg0, arg1, arg2) {
747
783
  arg0.referrer = getStringFromWasm0(arg1, arg2);
748
784
  },
749
- __wbg_set_referrer_policy_3cea8b6e31a9e636: function(arg0, arg1) {
785
+ __wbg_set_referrer_policy_e49a6d0d7473fd16: function(arg0, arg1) {
750
786
  arg0.referrerPolicy = __wbindgen_enum_ReferrerPolicy[arg1];
751
787
  },
752
- __wbg_set_signal_0cebecb698f25d21: function(arg0, arg1) {
788
+ __wbg_set_signal_c4ef8faddb4c1446: function(arg0, arg1) {
753
789
  arg0.signal = arg1;
754
790
  },
755
- __wbg_set_status_b80d37d9d23276c4: function(arg0, arg1) {
791
+ __wbg_set_status_3593dfcb55e7ee3c: function(arg0, arg1) {
756
792
  arg0.status = arg1;
757
793
  },
758
- __wbg_signal_166e1da31adcac18: function(arg0) {
794
+ __wbg_signal_dad7cb35193abd31: function(arg0) {
759
795
  const ret = arg0.signal;
760
796
  return ret;
761
797
  },
@@ -766,73 +802,77 @@ function __wbg_get_imports(memory) {
766
802
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
767
803
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
768
804
  },
769
- __wbg_static_accessor_GLOBAL_8adb955bd33fac2f: function() {
805
+ __wbg_static_accessor_GLOBAL_4ef717fb391d88b7: function() {
770
806
  const ret = typeof global === 'undefined' ? null : global;
771
807
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
772
808
  },
773
- __wbg_static_accessor_GLOBAL_THIS_ad356e0db91c7913: function() {
809
+ __wbg_static_accessor_GLOBAL_THIS_8d1badc68b5a74f4: function() {
774
810
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
775
811
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
776
812
  },
777
- __wbg_static_accessor_SELF_f207c857566db248: function() {
813
+ __wbg_static_accessor_SELF_146583524fe1469b: function() {
778
814
  const ret = typeof self === 'undefined' ? null : self;
779
815
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
780
816
  },
781
- __wbg_static_accessor_WINDOW_bb9f1ba69d61b386: function() {
817
+ __wbg_static_accessor_WINDOW_f2829a2234d7819e: function() {
782
818
  const ret = typeof window === 'undefined' ? null : window;
783
819
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
784
820
  },
785
- __wbg_status_318629ab93a22955: function(arg0) {
821
+ __wbg_status_c45b3b9b3033184a: function(arg0) {
786
822
  const ret = arg0.status;
787
823
  return ret;
788
824
  },
789
- __wbg_stringify_5ae93966a84901ac: function() { return handleError(function (arg0) {
825
+ __wbg_stringify_b54333f60f1e4dad: function() { return handleError(function (arg0) {
790
826
  const ret = JSON.stringify(arg0);
791
827
  return ret;
792
828
  }, arguments); },
793
- __wbg_subarray_a068d24e39478a8a: function(arg0, arg1, arg2) {
829
+ __wbg_subarray_3ed232c8a6baee09: function(arg0, arg1, arg2) {
794
830
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
795
831
  return ret;
796
832
  },
797
- __wbg_text_372f5b91442c50f9: function() { return handleError(function (arg0) {
833
+ __wbg_text_d3a29f7525a132c3: function() { return handleError(function (arg0) {
798
834
  const ret = arg0.text();
799
835
  return ret;
800
836
  }, arguments); },
801
- __wbg_then_098abe61755d12f6: function(arg0, arg1) {
837
+ __wbg_then_16d107c451e9905d: function(arg0, arg1, arg2) {
838
+ const ret = arg0.then(arg1, arg2);
839
+ return ret;
840
+ },
841
+ __wbg_then_6ec10ae38b3e92f7: function(arg0, arg1) {
802
842
  const ret = arg0.then(arg1);
803
843
  return ret;
804
844
  },
805
- __wbg_then_1d7a5273811a5cea: function(arg0, arg1) {
845
+ __wbg_then_e0960b859f3ff223: function(arg0, arg1) {
806
846
  const ret = arg0.then(arg1);
807
847
  return ret;
808
848
  },
809
- __wbg_then_9e335f6dd892bc11: function(arg0, arg1, arg2) {
810
- const ret = arg0.then(arg1, arg2);
849
+ __wbg_timeOrigin_f3d5cb4f4a06c2b7: function(arg0) {
850
+ const ret = arg0.timeOrigin;
811
851
  return ret;
812
852
  },
813
- __wbg_toString_3272fa0dfd05dd87: function(arg0) {
853
+ __wbg_toString_b201c2690bbe445a: function(arg0) {
814
854
  const ret = arg0.toString();
815
855
  return ret;
816
856
  },
817
- __wbg_url_7fefc1820fba4e0c: function(arg0, arg1) {
857
+ __wbg_url_abdb8fb08377f8c0: function(arg0, arg1) {
818
858
  const ret = arg1.url;
819
859
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
820
860
  const len1 = WASM_VECTOR_LEN;
821
861
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
822
862
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
823
863
  },
824
- __wbg_url_b6f96880b733816c: function(arg0, arg1) {
864
+ __wbg_url_f6cd241d61f89b82: function(arg0, arg1) {
825
865
  const ret = arg1.url;
826
866
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
827
867
  const len1 = WASM_VECTOR_LEN;
828
868
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
829
869
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
830
870
  },
831
- __wbg_value_21fc78aab0322612: function(arg0) {
871
+ __wbg_value_99213de42db60201: function(arg0) {
832
872
  const ret = arg0.value;
833
873
  return ret;
834
874
  },
835
- __wbg_value_a529cd2f781749fd: function(arg0) {
875
+ __wbg_value_a5d5488a9589444a: function(arg0) {
836
876
  const ret = arg0.value;
837
877
  return ret;
838
878
  },
@@ -840,36 +880,36 @@ function __wbg_get_imports(memory) {
840
880
  const ret = arg0.versions;
841
881
  return ret;
842
882
  },
843
- __wbg_view_f68a712e7315f8b2: function(arg0) {
883
+ __wbg_view_21f1d4a4f175dfa9: function(arg0) {
844
884
  const ret = arg0.view;
845
885
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
846
886
  },
847
- __wbg_waitAsync_91ab9cf292b5ab15: function(arg0, arg1, arg2) {
848
- const ret = Atomics.waitAsync(arg0, arg1 >>> 0, arg2);
887
+ __wbg_waitAsync_06c45f5361ba204a: function() {
888
+ const ret = Atomics.waitAsync;
849
889
  return ret;
850
890
  },
851
- __wbg_waitAsync_a4399d51368b6ce4: function() {
852
- const ret = Atomics.waitAsync;
891
+ __wbg_waitAsync_919777b30820ea59: function(arg0, arg1, arg2) {
892
+ const ret = Atomics.waitAsync(arg0, arg1 >>> 0, arg2);
853
893
  return ret;
854
894
  },
855
895
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
856
- // Cast intrinsic for `Closure(Closure { dtor_idx: 1814, function: Function { arguments: [], shim_idx: 1815, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
857
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h608d62b8eccc8f6e, wasm_bindgen__convert__closures_____invoke__h7938576e03ec4167);
896
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 4929, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
897
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hb033ae5249c410c1);
858
898
  return ret;
859
899
  },
860
900
  __wbindgen_cast_0000000000000002: function(arg0, arg1) {
861
- // Cast intrinsic for `Closure(Closure { dtor_idx: 2159, function: Function { arguments: [Externref], shim_idx: 2160, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
862
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hbb5960641dfaf99a, wasm_bindgen__convert__closures_____invoke__hdfdaa0711fe9a60e);
901
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 5072, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
902
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__ha59ba16ef22dfc70);
863
903
  return ret;
864
904
  },
865
905
  __wbindgen_cast_0000000000000003: function(arg0, arg1) {
866
- // Cast intrinsic for `Closure(Closure { dtor_idx: 2176, function: Function { arguments: [Externref], shim_idx: 2179, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
867
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2925d4d1c19a6d50, wasm_bindgen__convert__closures_____invoke__h38253c4a1aa54e27);
906
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 5092, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
907
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h860fbeea0fd5b879);
868
908
  return ret;
869
909
  },
870
910
  __wbindgen_cast_0000000000000004: function(arg0, arg1) {
871
- // Cast intrinsic for `Closure(Closure { dtor_idx: 2176, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 2177, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
872
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2925d4d1c19a6d50, wasm_bindgen__convert__closures_____invoke__hfa390009d5ba6f84);
911
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 2086, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
912
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0ce3070689c7d82f);
873
913
  return ret;
874
914
  },
875
915
  __wbindgen_cast_0000000000000005: function(arg0) {
@@ -913,7 +953,7 @@ function __wbg_get_imports(memory) {
913
953
  table.set(offset + 2, true);
914
954
  table.set(offset + 3, false);
915
955
  },
916
- __wbindgen_link_fcd7cf2a23e346d3: function(arg0) {
956
+ __wbindgen_link_580560c8bba509f2: function(arg0) {
917
957
  const val = `onmessage = function (ev) {
918
958
  let [ia, index, value] = ev.data;
919
959
  ia = new Int32Array(ia.buffer);
@@ -927,7 +967,7 @@ function __wbg_get_imports(memory) {
927
967
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
928
968
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
929
969
  },
930
- memory: memory || new WebAssembly.Memory({initial:30,maximum:16384,shared:true}),
970
+ memory: memory || new WebAssembly.Memory({initial:48,maximum:16384,shared:true}),
931
971
  };
932
972
  return {
933
973
  __proto__: null,
@@ -935,27 +975,27 @@ function __wbg_get_imports(memory) {
935
975
  };
936
976
  }
937
977
 
938
- function wasm_bindgen__convert__closures_____invoke__h7938576e03ec4167(arg0, arg1) {
939
- wasm.wasm_bindgen__convert__closures_____invoke__h7938576e03ec4167(arg0, arg1);
978
+ function wasm_bindgen__convert__closures_____invoke__h0ce3070689c7d82f(arg0, arg1) {
979
+ wasm.wasm_bindgen__convert__closures_____invoke__h0ce3070689c7d82f(arg0, arg1);
940
980
  }
941
981
 
942
- function wasm_bindgen__convert__closures_____invoke__hdfdaa0711fe9a60e(arg0, arg1, arg2) {
943
- wasm.wasm_bindgen__convert__closures_____invoke__hdfdaa0711fe9a60e(arg0, arg1, arg2);
982
+ function wasm_bindgen__convert__closures_____invoke__hb033ae5249c410c1(arg0, arg1, arg2) {
983
+ wasm.wasm_bindgen__convert__closures_____invoke__hb033ae5249c410c1(arg0, arg1, arg2);
944
984
  }
945
985
 
946
- function wasm_bindgen__convert__closures_____invoke__hfa390009d5ba6f84(arg0, arg1, arg2) {
947
- wasm.wasm_bindgen__convert__closures_____invoke__hfa390009d5ba6f84(arg0, arg1, arg2);
986
+ function wasm_bindgen__convert__closures_____invoke__h860fbeea0fd5b879(arg0, arg1, arg2) {
987
+ wasm.wasm_bindgen__convert__closures_____invoke__h860fbeea0fd5b879(arg0, arg1, arg2);
948
988
  }
949
989
 
950
- function wasm_bindgen__convert__closures_____invoke__h38253c4a1aa54e27(arg0, arg1, arg2) {
951
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h38253c4a1aa54e27(arg0, arg1, arg2);
990
+ function wasm_bindgen__convert__closures_____invoke__ha59ba16ef22dfc70(arg0, arg1, arg2) {
991
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__ha59ba16ef22dfc70(arg0, arg1, arg2);
952
992
  if (ret[1]) {
953
993
  throw takeFromExternrefTable0(ret[0]);
954
994
  }
955
995
  }
956
996
 
957
- function wasm_bindgen__convert__closures_____invoke__h4e91db2f1b7350bd(arg0, arg1, arg2, arg3) {
958
- wasm.wasm_bindgen__convert__closures_____invoke__h4e91db2f1b7350bd(arg0, arg1, arg2, arg3);
997
+ function wasm_bindgen__convert__closures_____invoke__h559a482ac3702f86(arg0, arg1, arg2, arg3) {
998
+ wasm.wasm_bindgen__convert__closures_____invoke__h559a482ac3702f86(arg0, arg1, arg2, arg3);
959
999
  }
960
1000
 
961
1001
 
@@ -977,13 +1017,13 @@ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate
977
1017
  const __wbindgen_enum_RequestRedirect = ["follow", "error", "manual"];
978
1018
  const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined')
979
1019
  ? { register: () => {}, unregister: () => {} }
980
- : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr >>> 0, 1));
1020
+ : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr, 1));
981
1021
  const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined')
982
1022
  ? { register: () => {}, unregister: () => {} }
983
- : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr >>> 0, 1));
1023
+ : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr, 1));
984
1024
  const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined')
985
1025
  ? { register: () => {}, unregister: () => {} }
986
- : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr >>> 0, 1));
1026
+ : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr, 1));
987
1027
 
988
1028
  function addToExternrefTable0(obj) {
989
1029
  const idx = wasm.__externref_table_alloc();
@@ -993,7 +1033,7 @@ function addToExternrefTable0(obj) {
993
1033
 
994
1034
  const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
995
1035
  ? { register: () => {}, unregister: () => {} }
996
- : new FinalizationRegistry(state => state.dtor(state.a, state.b));
1036
+ : new FinalizationRegistry(state => wasm.__wbindgen_destroy_closure(state.a, state.b));
997
1037
 
998
1038
  function debugString(val) {
999
1039
  // primitive types
@@ -1074,8 +1114,7 @@ function getDataViewMemory0() {
1074
1114
  }
1075
1115
 
1076
1116
  function getStringFromWasm0(ptr, len) {
1077
- ptr = ptr >>> 0;
1078
- return decodeText(ptr, len);
1117
+ return decodeText(ptr >>> 0, len);
1079
1118
  }
1080
1119
 
1081
1120
  let cachedUint8ArrayMemory0 = null;
@@ -1099,8 +1138,8 @@ function isLikeNone(x) {
1099
1138
  return x === undefined || x === null;
1100
1139
  }
1101
1140
 
1102
- function makeMutClosure(arg0, arg1, dtor, f) {
1103
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
1141
+ function makeMutClosure(arg0, arg1, f) {
1142
+ const state = { a: arg0, b: arg1, cnt: 1 };
1104
1143
  const real = (...args) => {
1105
1144
 
1106
1145
  // First up with a closure we increment the internal reference
@@ -1118,7 +1157,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
1118
1157
  };
1119
1158
  real._wbg_cb_unref = () => {
1120
1159
  if (--state.cnt === 0) {
1121
- state.dtor(state.a, state.b);
1160
+ wasm.__wbindgen_destroy_closure(state.a, state.b);
1122
1161
  state.a = 0;
1123
1162
  CLOSURE_DTORS.unregister(state);
1124
1163
  }
@@ -1200,8 +1239,9 @@ if (cachedTextEncoder) {
1200
1239
 
1201
1240
  let WASM_VECTOR_LEN = 0;
1202
1241
 
1203
- let wasmModule, wasm;
1242
+ let wasmModule, wasmInstance, wasm;
1204
1243
  function __wbg_finalize_init(instance, module, thread_stack_size) {
1244
+ wasmInstance = instance;
1205
1245
  wasm = instance.exports;
1206
1246
  wasmModule = module;
1207
1247
  cachedDataViewMemory0 = null;
package/tng_wasm_bg.wasm CHANGED
Binary file