@bitwarden/sdk-internal 0.2.0-main.8 → 0.2.0-main.81
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/VERSION +1 -0
- package/bitwarden_wasm_internal.d.ts +155 -38
- package/bitwarden_wasm_internal_bg.js +783 -469
- package/bitwarden_wasm_internal_bg.wasm +0 -0
- package/bitwarden_wasm_internal_bg.wasm.d.ts +46 -28
- package/bitwarden_wasm_internal_bg.wasm.js +1 -1
- package/node/bitwarden_wasm_internal.d.ts +155 -38
- package/node/bitwarden_wasm_internal.js +787 -472
- package/node/bitwarden_wasm_internal_bg.wasm +0 -0
- package/node/bitwarden_wasm_internal_bg.wasm.d.ts +46 -28
- package/package.json +5 -4
| @@ -1,58 +1,26 @@ | |
| 1 1 | 
             
            let imports = {};
         | 
| 2 2 | 
             
            imports["__wbindgen_placeholder__"] = module.exports;
         | 
| 3 3 | 
             
            let wasm;
         | 
| 4 | 
            -
            const {  | 
| 5 | 
            -
             | 
| 6 | 
            -
            let cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
         | 
| 7 | 
            -
             | 
| 8 | 
            -
            cachedTextDecoder.decode();
         | 
| 9 | 
            -
             | 
| 10 | 
            -
            let cachedUint8ArrayMemory0 = null;
         | 
| 11 | 
            -
             | 
| 12 | 
            -
            function getUint8ArrayMemory0() {
         | 
| 13 | 
            -
              if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
         | 
| 14 | 
            -
                cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
         | 
| 15 | 
            -
              }
         | 
| 16 | 
            -
              return cachedUint8ArrayMemory0;
         | 
| 17 | 
            -
            }
         | 
| 18 | 
            -
             | 
| 19 | 
            -
            function getStringFromWasm0(ptr, len) {
         | 
| 20 | 
            -
              ptr = ptr >>> 0;
         | 
| 21 | 
            -
              return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
         | 
| 22 | 
            -
            }
         | 
| 4 | 
            +
            const { TextEncoder, TextDecoder } = require(`util`);
         | 
| 23 5 |  | 
| 24 6 | 
             
            const heap = new Array(128).fill(undefined);
         | 
| 25 7 |  | 
| 26 8 | 
             
            heap.push(undefined, null, true, false);
         | 
| 27 9 |  | 
| 28 | 
            -
            let heap_next = heap.length;
         | 
| 29 | 
            -
             | 
| 30 | 
            -
            function addHeapObject(obj) {
         | 
| 31 | 
            -
              if (heap_next === heap.length) heap.push(heap.length + 1);
         | 
| 32 | 
            -
              const idx = heap_next;
         | 
| 33 | 
            -
              heap_next = heap[idx];
         | 
| 34 | 
            -
             | 
| 35 | 
            -
              heap[idx] = obj;
         | 
| 36 | 
            -
              return idx;
         | 
| 37 | 
            -
            }
         | 
| 38 | 
            -
             | 
| 39 10 | 
             
            function getObject(idx) {
         | 
| 40 11 | 
             
              return heap[idx];
         | 
| 41 12 | 
             
            }
         | 
| 42 13 |  | 
| 43 | 
            -
             | 
| 44 | 
            -
              if (idx < 132) return;
         | 
| 45 | 
            -
              heap[idx] = heap_next;
         | 
| 46 | 
            -
              heap_next = idx;
         | 
| 47 | 
            -
            }
         | 
| 14 | 
            +
            let WASM_VECTOR_LEN = 0;
         | 
| 48 15 |  | 
| 49 | 
            -
             | 
| 50 | 
            -
              const ret = getObject(idx);
         | 
| 51 | 
            -
              dropObject(idx);
         | 
| 52 | 
            -
              return ret;
         | 
| 53 | 
            -
            }
         | 
| 16 | 
            +
            let cachedUint8ArrayMemory0 = null;
         | 
| 54 17 |  | 
| 55 | 
            -
             | 
| 18 | 
            +
            function getUint8ArrayMemory0() {
         | 
| 19 | 
            +
              if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
         | 
| 20 | 
            +
                cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
         | 
| 21 | 
            +
              }
         | 
| 22 | 
            +
              return cachedUint8ArrayMemory0;
         | 
| 23 | 
            +
            }
         | 
| 56 24 |  | 
| 57 25 | 
             
            let cachedTextEncoder = new TextEncoder("utf-8");
         | 
| 58 26 |  | 
| @@ -110,10 +78,6 @@ function passStringToWasm0(arg, malloc, realloc) { | |
| 110 78 | 
             
              return ptr;
         | 
| 111 79 | 
             
            }
         | 
| 112 80 |  | 
| 113 | 
            -
            function isLikeNone(x) {
         | 
| 114 | 
            -
              return x === undefined || x === null;
         | 
| 115 | 
            -
            }
         | 
| 116 | 
            -
             | 
| 117 81 | 
             
            let cachedDataViewMemory0 = null;
         | 
| 118 82 |  | 
| 119 83 | 
             
            function getDataViewMemory0() {
         | 
| @@ -128,6 +92,82 @@ function getDataViewMemory0() { | |
| 128 92 | 
             
              return cachedDataViewMemory0;
         | 
| 129 93 | 
             
            }
         | 
| 130 94 |  | 
| 95 | 
            +
            let cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
         | 
| 96 | 
            +
             | 
| 97 | 
            +
            cachedTextDecoder.decode();
         | 
| 98 | 
            +
             | 
| 99 | 
            +
            function getStringFromWasm0(ptr, len) {
         | 
| 100 | 
            +
              ptr = ptr >>> 0;
         | 
| 101 | 
            +
              return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
         | 
| 102 | 
            +
            }
         | 
| 103 | 
            +
             | 
| 104 | 
            +
            let heap_next = heap.length;
         | 
| 105 | 
            +
             | 
| 106 | 
            +
            function addHeapObject(obj) {
         | 
| 107 | 
            +
              if (heap_next === heap.length) heap.push(heap.length + 1);
         | 
| 108 | 
            +
              const idx = heap_next;
         | 
| 109 | 
            +
              heap_next = heap[idx];
         | 
| 110 | 
            +
             | 
| 111 | 
            +
              heap[idx] = obj;
         | 
| 112 | 
            +
              return idx;
         | 
| 113 | 
            +
            }
         | 
| 114 | 
            +
             | 
| 115 | 
            +
            function handleError(f, args) {
         | 
| 116 | 
            +
              try {
         | 
| 117 | 
            +
                return f.apply(this, args);
         | 
| 118 | 
            +
              } catch (e) {
         | 
| 119 | 
            +
                wasm.__wbindgen_exn_store(addHeapObject(e));
         | 
| 120 | 
            +
              }
         | 
| 121 | 
            +
            }
         | 
| 122 | 
            +
             | 
| 123 | 
            +
            function dropObject(idx) {
         | 
| 124 | 
            +
              if (idx < 132) return;
         | 
| 125 | 
            +
              heap[idx] = heap_next;
         | 
| 126 | 
            +
              heap_next = idx;
         | 
| 127 | 
            +
            }
         | 
| 128 | 
            +
             | 
| 129 | 
            +
            function takeObject(idx) {
         | 
| 130 | 
            +
              const ret = getObject(idx);
         | 
| 131 | 
            +
              dropObject(idx);
         | 
| 132 | 
            +
              return ret;
         | 
| 133 | 
            +
            }
         | 
| 134 | 
            +
             | 
| 135 | 
            +
            function isLikeNone(x) {
         | 
| 136 | 
            +
              return x === undefined || x === null;
         | 
| 137 | 
            +
            }
         | 
| 138 | 
            +
             | 
| 139 | 
            +
            const CLOSURE_DTORS =
         | 
| 140 | 
            +
              typeof FinalizationRegistry === "undefined"
         | 
| 141 | 
            +
                ? { register: () => {}, unregister: () => {} }
         | 
| 142 | 
            +
                : new FinalizationRegistry((state) => {
         | 
| 143 | 
            +
                    wasm.__wbindgen_export_4.get(state.dtor)(state.a, state.b);
         | 
| 144 | 
            +
                  });
         | 
| 145 | 
            +
             | 
| 146 | 
            +
            function makeMutClosure(arg0, arg1, dtor, f) {
         | 
| 147 | 
            +
              const state = { a: arg0, b: arg1, cnt: 1, dtor };
         | 
| 148 | 
            +
              const real = (...args) => {
         | 
| 149 | 
            +
                // First up with a closure we increment the internal reference
         | 
| 150 | 
            +
                // count. This ensures that the Rust closure environment won't
         | 
| 151 | 
            +
                // be deallocated while we're invoking it.
         | 
| 152 | 
            +
                state.cnt++;
         | 
| 153 | 
            +
                const a = state.a;
         | 
| 154 | 
            +
                state.a = 0;
         | 
| 155 | 
            +
                try {
         | 
| 156 | 
            +
                  return f(a, state.b, ...args);
         | 
| 157 | 
            +
                } finally {
         | 
| 158 | 
            +
                  if (--state.cnt === 0) {
         | 
| 159 | 
            +
                    wasm.__wbindgen_export_4.get(state.dtor)(a, state.b);
         | 
| 160 | 
            +
                    CLOSURE_DTORS.unregister(state);
         | 
| 161 | 
            +
                  } else {
         | 
| 162 | 
            +
                    state.a = a;
         | 
| 163 | 
            +
                  }
         | 
| 164 | 
            +
                }
         | 
| 165 | 
            +
              };
         | 
| 166 | 
            +
              real.original = state;
         | 
| 167 | 
            +
              CLOSURE_DTORS.register(real, state, state);
         | 
| 168 | 
            +
              return real;
         | 
| 169 | 
            +
            }
         | 
| 170 | 
            +
             | 
| 131 171 | 
             
            function debugString(val) {
         | 
| 132 172 | 
             
              // primitive types
         | 
| 133 173 | 
             
              const type = typeof val;
         | 
| @@ -169,7 +209,7 @@ function debugString(val) { | |
| 169 209 | 
             
              // Test for built-in
         | 
| 170 210 | 
             
              const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
         | 
| 171 211 | 
             
              let className;
         | 
| 172 | 
            -
              if (builtInMatches.length > 1) {
         | 
| 212 | 
            +
              if (builtInMatches && builtInMatches.length > 1) {
         | 
| 173 213 | 
             
                className = builtInMatches[1];
         | 
| 174 214 | 
             
              } else {
         | 
| 175 215 | 
             
                // Failed to match the standard '[object ClassName]'
         | 
| @@ -193,45 +233,6 @@ function debugString(val) { | |
| 193 233 | 
             
              return className;
         | 
| 194 234 | 
             
            }
         | 
| 195 235 |  | 
| 196 | 
            -
            const CLOSURE_DTORS =
         | 
| 197 | 
            -
              typeof FinalizationRegistry === "undefined"
         | 
| 198 | 
            -
                ? { register: () => {}, unregister: () => {} }
         | 
| 199 | 
            -
                : new FinalizationRegistry((state) => {
         | 
| 200 | 
            -
                    wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b);
         | 
| 201 | 
            -
                  });
         | 
| 202 | 
            -
             | 
| 203 | 
            -
            function makeMutClosure(arg0, arg1, dtor, f) {
         | 
| 204 | 
            -
              const state = { a: arg0, b: arg1, cnt: 1, dtor };
         | 
| 205 | 
            -
              const real = (...args) => {
         | 
| 206 | 
            -
                // First up with a closure we increment the internal reference
         | 
| 207 | 
            -
                // count. This ensures that the Rust closure environment won't
         | 
| 208 | 
            -
                // be deallocated while we're invoking it.
         | 
| 209 | 
            -
                state.cnt++;
         | 
| 210 | 
            -
                const a = state.a;
         | 
| 211 | 
            -
                state.a = 0;
         | 
| 212 | 
            -
                try {
         | 
| 213 | 
            -
                  return f(a, state.b, ...args);
         | 
| 214 | 
            -
                } finally {
         | 
| 215 | 
            -
                  if (--state.cnt === 0) {
         | 
| 216 | 
            -
                    wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
         | 
| 217 | 
            -
                    CLOSURE_DTORS.unregister(state);
         | 
| 218 | 
            -
                  } else {
         | 
| 219 | 
            -
                    state.a = a;
         | 
| 220 | 
            -
                  }
         | 
| 221 | 
            -
                }
         | 
| 222 | 
            -
              };
         | 
| 223 | 
            -
              real.original = state;
         | 
| 224 | 
            -
              CLOSURE_DTORS.register(real, state, state);
         | 
| 225 | 
            -
              return real;
         | 
| 226 | 
            -
            }
         | 
| 227 | 
            -
            function __wbg_adapter_38(arg0, arg1, arg2) {
         | 
| 228 | 
            -
              wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hcab43b83560065d8(
         | 
| 229 | 
            -
                arg0,
         | 
| 230 | 
            -
                arg1,
         | 
| 231 | 
            -
                addHeapObject(arg2),
         | 
| 232 | 
            -
              );
         | 
| 233 | 
            -
            }
         | 
| 234 | 
            -
             | 
| 235 236 | 
             
            let stack_pointer = 128;
         | 
| 236 237 |  | 
| 237 238 | 
             
            function addBorrowedObject(obj) {
         | 
| @@ -265,6 +266,58 @@ module.exports.isEncryptionSettingsError = function (error) { | |
| 265 266 | 
             
              }
         | 
| 266 267 | 
             
            };
         | 
| 267 268 |  | 
| 269 | 
            +
            /**
         | 
| 270 | 
            +
             * @param {any} error
         | 
| 271 | 
            +
             * @returns {boolean}
         | 
| 272 | 
            +
             */
         | 
| 273 | 
            +
            module.exports.isSshKeyExportError = function (error) {
         | 
| 274 | 
            +
              try {
         | 
| 275 | 
            +
                const ret = wasm.isSshKeyExportError(addBorrowedObject(error));
         | 
| 276 | 
            +
                return ret !== 0;
         | 
| 277 | 
            +
              } finally {
         | 
| 278 | 
            +
                heap[stack_pointer++] = undefined;
         | 
| 279 | 
            +
              }
         | 
| 280 | 
            +
            };
         | 
| 281 | 
            +
             | 
| 282 | 
            +
            /**
         | 
| 283 | 
            +
             * @param {any} error
         | 
| 284 | 
            +
             * @returns {boolean}
         | 
| 285 | 
            +
             */
         | 
| 286 | 
            +
            module.exports.isSshKeyImportError = function (error) {
         | 
| 287 | 
            +
              try {
         | 
| 288 | 
            +
                const ret = wasm.isSshKeyImportError(addBorrowedObject(error));
         | 
| 289 | 
            +
                return ret !== 0;
         | 
| 290 | 
            +
              } finally {
         | 
| 291 | 
            +
                heap[stack_pointer++] = undefined;
         | 
| 292 | 
            +
              }
         | 
| 293 | 
            +
            };
         | 
| 294 | 
            +
             | 
| 295 | 
            +
            /**
         | 
| 296 | 
            +
             * @param {any} error
         | 
| 297 | 
            +
             * @returns {boolean}
         | 
| 298 | 
            +
             */
         | 
| 299 | 
            +
            module.exports.isKeyGenerationError = function (error) {
         | 
| 300 | 
            +
              try {
         | 
| 301 | 
            +
                const ret = wasm.isKeyGenerationError(addBorrowedObject(error));
         | 
| 302 | 
            +
                return ret !== 0;
         | 
| 303 | 
            +
              } finally {
         | 
| 304 | 
            +
                heap[stack_pointer++] = undefined;
         | 
| 305 | 
            +
              }
         | 
| 306 | 
            +
            };
         | 
| 307 | 
            +
             | 
| 308 | 
            +
            /**
         | 
| 309 | 
            +
             * @param {any} error
         | 
| 310 | 
            +
             * @returns {boolean}
         | 
| 311 | 
            +
             */
         | 
| 312 | 
            +
            module.exports.isTotpError = function (error) {
         | 
| 313 | 
            +
              try {
         | 
| 314 | 
            +
                const ret = wasm.isTotpError(addBorrowedObject(error));
         | 
| 315 | 
            +
                return ret !== 0;
         | 
| 316 | 
            +
              } finally {
         | 
| 317 | 
            +
                heap[stack_pointer++] = undefined;
         | 
| 318 | 
            +
              }
         | 
| 319 | 
            +
            };
         | 
| 320 | 
            +
             | 
| 268 321 | 
             
            /**
         | 
| 269 322 | 
             
             * @param {any} error
         | 
| 270 323 | 
             
             * @returns {boolean}
         | 
| @@ -278,15 +331,84 @@ module.exports.isTestError = function (error) { | |
| 278 331 | 
             
              }
         | 
| 279 332 | 
             
            };
         | 
| 280 333 |  | 
| 281 | 
            -
             | 
| 334 | 
            +
            /**
         | 
| 335 | 
            +
             * Generate a new SSH key pair
         | 
| 336 | 
            +
             *
         | 
| 337 | 
            +
             * # Arguments
         | 
| 338 | 
            +
             * - `key_algorithm` - The algorithm to use for the key pair
         | 
| 339 | 
            +
             *
         | 
| 340 | 
            +
             * # Returns
         | 
| 341 | 
            +
             * - `Ok(SshKey)` if the key was successfully generated
         | 
| 342 | 
            +
             * - `Err(KeyGenerationError)` if the key could not be generated
         | 
| 343 | 
            +
             * @param {KeyAlgorithm} key_algorithm
         | 
| 344 | 
            +
             * @returns {SshKey}
         | 
| 345 | 
            +
             */
         | 
| 346 | 
            +
            module.exports.generate_ssh_key = function (key_algorithm) {
         | 
| 282 347 | 
             
              try {
         | 
| 283 | 
            -
                 | 
| 284 | 
            -
             | 
| 285 | 
            -
                 | 
| 348 | 
            +
                const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
         | 
| 349 | 
            +
                wasm.generate_ssh_key(retptr, addHeapObject(key_algorithm));
         | 
| 350 | 
            +
                var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
         | 
| 351 | 
            +
                var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
         | 
| 352 | 
            +
                var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
         | 
| 353 | 
            +
                if (r2) {
         | 
| 354 | 
            +
                  throw takeObject(r1);
         | 
| 355 | 
            +
                }
         | 
| 356 | 
            +
                return takeObject(r0);
         | 
| 357 | 
            +
              } finally {
         | 
| 358 | 
            +
                wasm.__wbindgen_add_to_stack_pointer(16);
         | 
| 359 | 
            +
              }
         | 
| 360 | 
            +
            };
         | 
| 361 | 
            +
             | 
| 362 | 
            +
            /**
         | 
| 363 | 
            +
             * Convert a PCKS8 or OpenSSH encrypted or unencrypted private key
         | 
| 364 | 
            +
             * to an OpenSSH private key with public key and fingerprint
         | 
| 365 | 
            +
             *
         | 
| 366 | 
            +
             * # Arguments
         | 
| 367 | 
            +
             * - `imported_key` - The private key to convert
         | 
| 368 | 
            +
             * - `password` - The password to use for decrypting the key
         | 
| 369 | 
            +
             *
         | 
| 370 | 
            +
             * # Returns
         | 
| 371 | 
            +
             * - `Ok(SshKey)` if the key was successfully coneverted
         | 
| 372 | 
            +
             * - `Err(PasswordRequired)` if the key is encrypted and no password was provided
         | 
| 373 | 
            +
             * - `Err(WrongPassword)` if the password provided is incorrect
         | 
| 374 | 
            +
             * - `Err(ParsingError)` if the key could not be parsed
         | 
| 375 | 
            +
             * - `Err(UnsupportedKeyType)` if the key type is not supported
         | 
| 376 | 
            +
             * @param {string} imported_key
         | 
| 377 | 
            +
             * @param {string | null} [password]
         | 
| 378 | 
            +
             * @returns {SshKey}
         | 
| 379 | 
            +
             */
         | 
| 380 | 
            +
            module.exports.import_ssh_key = function (imported_key, password) {
         | 
| 381 | 
            +
              try {
         | 
| 382 | 
            +
                const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
         | 
| 383 | 
            +
                const ptr0 = passStringToWasm0(imported_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 384 | 
            +
                const len0 = WASM_VECTOR_LEN;
         | 
| 385 | 
            +
                var ptr1 = isLikeNone(password)
         | 
| 386 | 
            +
                  ? 0
         | 
| 387 | 
            +
                  : passStringToWasm0(password, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 388 | 
            +
                var len1 = WASM_VECTOR_LEN;
         | 
| 389 | 
            +
                wasm.import_ssh_key(retptr, ptr0, len0, ptr1, len1);
         | 
| 390 | 
            +
                var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
         | 
| 391 | 
            +
                var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
         | 
| 392 | 
            +
                var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
         | 
| 393 | 
            +
                if (r2) {
         | 
| 394 | 
            +
                  throw takeObject(r1);
         | 
| 395 | 
            +
                }
         | 
| 396 | 
            +
                return takeObject(r0);
         | 
| 397 | 
            +
              } finally {
         | 
| 398 | 
            +
                wasm.__wbindgen_add_to_stack_pointer(16);
         | 
| 286 399 | 
             
              }
         | 
| 400 | 
            +
            };
         | 
| 401 | 
            +
             | 
| 402 | 
            +
            function __wbg_adapter_40(arg0, arg1, arg2) {
         | 
| 403 | 
            +
              wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7af7927fe391910e(
         | 
| 404 | 
            +
                arg0,
         | 
| 405 | 
            +
                arg1,
         | 
| 406 | 
            +
                addHeapObject(arg2),
         | 
| 407 | 
            +
              );
         | 
| 287 408 | 
             
            }
         | 
| 288 | 
            -
             | 
| 289 | 
            -
             | 
| 409 | 
            +
             | 
| 410 | 
            +
            function __wbg_adapter_139(arg0, arg1, arg2, arg3) {
         | 
| 411 | 
            +
              wasm.wasm_bindgen__convert__closures__invoke2_mut__h69e15f428907d894(
         | 
| 290 412 | 
             
                arg0,
         | 
| 291 413 | 
             
                arg1,
         | 
| 292 414 | 
             
                addHeapObject(arg2),
         | 
| @@ -294,6 +416,9 @@ function __wbg_adapter_107(arg0, arg1, arg2, arg3) { | |
| 294 416 | 
             
              );
         | 
| 295 417 | 
             
            }
         | 
| 296 418 |  | 
| 419 | 
            +
            /**
         | 
| 420 | 
            +
             * @enum {0 | 1 | 2 | 3 | 4}
         | 
| 421 | 
            +
             */
         | 
| 297 422 | 
             
            module.exports.LogLevel = Object.freeze({
         | 
| 298 423 | 
             
              Trace: 0,
         | 
| 299 424 | 
             
              0: "Trace",
         | 
| @@ -329,8 +454,8 @@ class BitwardenClient { | |
| 329 454 | 
             
                wasm.__wbg_bitwardenclient_free(ptr, 0);
         | 
| 330 455 | 
             
              }
         | 
| 331 456 | 
             
              /**
         | 
| 332 | 
            -
               * @param {ClientSettings |  | 
| 333 | 
            -
               * @param {LogLevel |  | 
| 457 | 
            +
               * @param {ClientSettings | null} [settings]
         | 
| 458 | 
            +
               * @param {LogLevel | null} [log_level]
         | 
| 334 459 | 
             
               */
         | 
| 335 460 | 
             
              constructor(settings, log_level) {
         | 
| 336 461 | 
             
                const ret = wasm.bitwardenclient_new(
         | 
| @@ -385,13 +510,21 @@ class BitwardenClient { | |
| 385 510 | 
             
              }
         | 
| 386 511 | 
             
              /**
         | 
| 387 512 | 
             
               * @param {string} msg
         | 
| 388 | 
            -
               * @returns {Promise<void>}
         | 
| 389 513 | 
             
               */
         | 
| 390 514 | 
             
              throw(msg) {
         | 
| 391 | 
            -
                 | 
| 392 | 
            -
             | 
| 393 | 
            -
             | 
| 394 | 
            -
             | 
| 515 | 
            +
                try {
         | 
| 516 | 
            +
                  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
         | 
| 517 | 
            +
                  const ptr0 = passStringToWasm0(msg, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 518 | 
            +
                  const len0 = WASM_VECTOR_LEN;
         | 
| 519 | 
            +
                  wasm.bitwardenclient_throw(retptr, this.__wbg_ptr, ptr0, len0);
         | 
| 520 | 
            +
                  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
         | 
| 521 | 
            +
                  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
         | 
| 522 | 
            +
                  if (r1) {
         | 
| 523 | 
            +
                    throw takeObject(r0);
         | 
| 524 | 
            +
                  }
         | 
| 525 | 
            +
                } finally {
         | 
| 526 | 
            +
                  wasm.__wbindgen_add_to_stack_pointer(16);
         | 
| 527 | 
            +
                }
         | 
| 395 528 | 
             
              }
         | 
| 396 529 | 
             
              /**
         | 
| 397 530 | 
             
               * Test method, calls http endpoint
         | 
| @@ -405,104 +538,218 @@ class BitwardenClient { | |
| 405 538 | 
             
                return takeObject(ret);
         | 
| 406 539 | 
             
              }
         | 
| 407 540 | 
             
              /**
         | 
| 408 | 
            -
               * @returns { | 
| 541 | 
            +
               * @returns {CryptoClient}
         | 
| 409 542 | 
             
               */
         | 
| 410 543 | 
             
              crypto() {
         | 
| 411 544 | 
             
                const ret = wasm.bitwardenclient_crypto(this.__wbg_ptr);
         | 
| 412 | 
            -
                return  | 
| 545 | 
            +
                return CryptoClient.__wrap(ret);
         | 
| 413 546 | 
             
              }
         | 
| 414 547 | 
             
              /**
         | 
| 415 | 
            -
               * @returns { | 
| 548 | 
            +
               * @returns {VaultClient}
         | 
| 416 549 | 
             
               */
         | 
| 417 550 | 
             
              vault() {
         | 
| 418 551 | 
             
                const ret = wasm.bitwardenclient_crypto(this.__wbg_ptr);
         | 
| 419 | 
            -
                return  | 
| 552 | 
            +
                return VaultClient.__wrap(ret);
         | 
| 420 553 | 
             
              }
         | 
| 421 554 | 
             
            }
         | 
| 422 555 | 
             
            module.exports.BitwardenClient = BitwardenClient;
         | 
| 423 556 |  | 
| 424 | 
            -
            const  | 
| 557 | 
            +
            const ClientFoldersFinalization =
         | 
| 425 558 | 
             
              typeof FinalizationRegistry === "undefined"
         | 
| 426 559 | 
             
                ? { register: () => {}, unregister: () => {} }
         | 
| 427 | 
            -
                : new FinalizationRegistry((ptr) => wasm. | 
| 560 | 
            +
                : new FinalizationRegistry((ptr) => wasm.__wbg_clientfolders_free(ptr >>> 0, 1));
         | 
| 428 561 |  | 
| 429 | 
            -
            class  | 
| 562 | 
            +
            class ClientFolders {
         | 
| 430 563 | 
             
              static __wrap(ptr) {
         | 
| 431 564 | 
             
                ptr = ptr >>> 0;
         | 
| 432 | 
            -
                const obj = Object.create( | 
| 565 | 
            +
                const obj = Object.create(ClientFolders.prototype);
         | 
| 433 566 | 
             
                obj.__wbg_ptr = ptr;
         | 
| 434 | 
            -
                 | 
| 567 | 
            +
                ClientFoldersFinalization.register(obj, obj.__wbg_ptr, obj);
         | 
| 435 568 | 
             
                return obj;
         | 
| 436 569 | 
             
              }
         | 
| 437 570 |  | 
| 438 571 | 
             
              __destroy_into_raw() {
         | 
| 439 572 | 
             
                const ptr = this.__wbg_ptr;
         | 
| 440 573 | 
             
                this.__wbg_ptr = 0;
         | 
| 441 | 
            -
                 | 
| 574 | 
            +
                ClientFoldersFinalization.unregister(this);
         | 
| 442 575 | 
             
                return ptr;
         | 
| 443 576 | 
             
              }
         | 
| 444 577 |  | 
| 445 578 | 
             
              free() {
         | 
| 446 579 | 
             
                const ptr = this.__destroy_into_raw();
         | 
| 447 | 
            -
                wasm. | 
| 580 | 
            +
                wasm.__wbg_clientfolders_free(ptr, 0);
         | 
| 448 581 | 
             
              }
         | 
| 449 582 | 
             
              /**
         | 
| 450 | 
            -
               *  | 
| 451 | 
            -
               *  | 
| 452 | 
            -
               * @ | 
| 453 | 
            -
                | 
| 454 | 
            -
             | 
| 455 | 
            -
             | 
| 456 | 
            -
             | 
| 457 | 
            -
             | 
| 583 | 
            +
               * Decrypt folder
         | 
| 584 | 
            +
               * @param {Folder} folder
         | 
| 585 | 
            +
               * @returns {FolderView}
         | 
| 586 | 
            +
               */
         | 
| 587 | 
            +
              decrypt(folder) {
         | 
| 588 | 
            +
                try {
         | 
| 589 | 
            +
                  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
         | 
| 590 | 
            +
                  wasm.clientfolders_decrypt(retptr, this.__wbg_ptr, addHeapObject(folder));
         | 
| 591 | 
            +
                  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
         | 
| 592 | 
            +
                  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
         | 
| 593 | 
            +
                  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
         | 
| 594 | 
            +
                  if (r2) {
         | 
| 595 | 
            +
                    throw takeObject(r1);
         | 
| 596 | 
            +
                  }
         | 
| 597 | 
            +
                  return takeObject(r0);
         | 
| 598 | 
            +
                } finally {
         | 
| 599 | 
            +
                  wasm.__wbindgen_add_to_stack_pointer(16);
         | 
| 600 | 
            +
                }
         | 
| 601 | 
            +
              }
         | 
| 602 | 
            +
            }
         | 
| 603 | 
            +
            module.exports.ClientFolders = ClientFolders;
         | 
| 604 | 
            +
             | 
| 605 | 
            +
            const ClientTotpFinalization =
         | 
| 606 | 
            +
              typeof FinalizationRegistry === "undefined"
         | 
| 607 | 
            +
                ? { register: () => {}, unregister: () => {} }
         | 
| 608 | 
            +
                : new FinalizationRegistry((ptr) => wasm.__wbg_clienttotp_free(ptr >>> 0, 1));
         | 
| 609 | 
            +
             | 
| 610 | 
            +
            class ClientTotp {
         | 
| 611 | 
            +
              static __wrap(ptr) {
         | 
| 612 | 
            +
                ptr = ptr >>> 0;
         | 
| 613 | 
            +
                const obj = Object.create(ClientTotp.prototype);
         | 
| 614 | 
            +
                obj.__wbg_ptr = ptr;
         | 
| 615 | 
            +
                ClientTotpFinalization.register(obj, obj.__wbg_ptr, obj);
         | 
| 616 | 
            +
                return obj;
         | 
| 617 | 
            +
              }
         | 
| 618 | 
            +
             | 
| 619 | 
            +
              __destroy_into_raw() {
         | 
| 620 | 
            +
                const ptr = this.__wbg_ptr;
         | 
| 621 | 
            +
                this.__wbg_ptr = 0;
         | 
| 622 | 
            +
                ClientTotpFinalization.unregister(this);
         | 
| 623 | 
            +
                return ptr;
         | 
| 624 | 
            +
              }
         | 
| 625 | 
            +
             | 
| 626 | 
            +
              free() {
         | 
| 627 | 
            +
                const ptr = this.__destroy_into_raw();
         | 
| 628 | 
            +
                wasm.__wbg_clienttotp_free(ptr, 0);
         | 
| 458 629 | 
             
              }
         | 
| 459 630 | 
             
              /**
         | 
| 460 | 
            -
               *  | 
| 461 | 
            -
               * | 
| 462 | 
            -
               *  | 
| 463 | 
            -
               *  | 
| 631 | 
            +
               * Generates a TOTP code from a provided key
         | 
| 632 | 
            +
               *
         | 
| 633 | 
            +
               * # Arguments
         | 
| 634 | 
            +
               * - `key` - Can be:
         | 
| 635 | 
            +
               *     - A base32 encoded string
         | 
| 636 | 
            +
               *     - OTP Auth URI
         | 
| 637 | 
            +
               *     - Steam URI
         | 
| 638 | 
            +
               * - `time_ms` - Optional timestamp in milliseconds
         | 
| 639 | 
            +
               *
         | 
| 640 | 
            +
               * # Returns
         | 
| 641 | 
            +
               * - `Ok(TotpResponse)` containing the generated code and period
         | 
| 642 | 
            +
               * - `Err(TotpError)` if code generation fails
         | 
| 643 | 
            +
               * @param {string} key
         | 
| 644 | 
            +
               * @param {number | null} [time_ms]
         | 
| 645 | 
            +
               * @returns {TotpResponse}
         | 
| 464 646 | 
             
               */
         | 
| 465 | 
            -
               | 
| 466 | 
            -
                 | 
| 467 | 
            -
             | 
| 647 | 
            +
              generate_totp(key, time_ms) {
         | 
| 648 | 
            +
                try {
         | 
| 649 | 
            +
                  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
         | 
| 650 | 
            +
                  const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 651 | 
            +
                  const len0 = WASM_VECTOR_LEN;
         | 
| 652 | 
            +
                  wasm.clienttotp_generate_totp(
         | 
| 653 | 
            +
                    retptr,
         | 
| 654 | 
            +
                    this.__wbg_ptr,
         | 
| 655 | 
            +
                    ptr0,
         | 
| 656 | 
            +
                    len0,
         | 
| 657 | 
            +
                    !isLikeNone(time_ms),
         | 
| 658 | 
            +
                    isLikeNone(time_ms) ? 0 : time_ms,
         | 
| 659 | 
            +
                  );
         | 
| 660 | 
            +
                  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
         | 
| 661 | 
            +
                  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
         | 
| 662 | 
            +
                  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
         | 
| 663 | 
            +
                  if (r2) {
         | 
| 664 | 
            +
                    throw takeObject(r1);
         | 
| 665 | 
            +
                  }
         | 
| 666 | 
            +
                  return takeObject(r0);
         | 
| 667 | 
            +
                } finally {
         | 
| 668 | 
            +
                  wasm.__wbindgen_add_to_stack_pointer(16);
         | 
| 669 | 
            +
                }
         | 
| 468 670 | 
             
              }
         | 
| 469 671 | 
             
            }
         | 
| 470 | 
            -
            module.exports. | 
| 672 | 
            +
            module.exports.ClientTotp = ClientTotp;
         | 
| 471 673 |  | 
| 472 | 
            -
            const  | 
| 674 | 
            +
            const CryptoClientFinalization =
         | 
| 473 675 | 
             
              typeof FinalizationRegistry === "undefined"
         | 
| 474 676 | 
             
                ? { register: () => {}, unregister: () => {} }
         | 
| 475 | 
            -
                : new FinalizationRegistry((ptr) => wasm. | 
| 677 | 
            +
                : new FinalizationRegistry((ptr) => wasm.__wbg_cryptoclient_free(ptr >>> 0, 1));
         | 
| 476 678 |  | 
| 477 | 
            -
            class  | 
| 679 | 
            +
            class CryptoClient {
         | 
| 478 680 | 
             
              static __wrap(ptr) {
         | 
| 479 681 | 
             
                ptr = ptr >>> 0;
         | 
| 480 | 
            -
                const obj = Object.create( | 
| 682 | 
            +
                const obj = Object.create(CryptoClient.prototype);
         | 
| 481 683 | 
             
                obj.__wbg_ptr = ptr;
         | 
| 482 | 
            -
                 | 
| 684 | 
            +
                CryptoClientFinalization.register(obj, obj.__wbg_ptr, obj);
         | 
| 483 685 | 
             
                return obj;
         | 
| 484 686 | 
             
              }
         | 
| 485 687 |  | 
| 486 688 | 
             
              __destroy_into_raw() {
         | 
| 487 689 | 
             
                const ptr = this.__wbg_ptr;
         | 
| 488 690 | 
             
                this.__wbg_ptr = 0;
         | 
| 489 | 
            -
                 | 
| 691 | 
            +
                CryptoClientFinalization.unregister(this);
         | 
| 490 692 | 
             
                return ptr;
         | 
| 491 693 | 
             
              }
         | 
| 492 694 |  | 
| 493 695 | 
             
              free() {
         | 
| 494 696 | 
             
                const ptr = this.__destroy_into_raw();
         | 
| 495 | 
            -
                wasm. | 
| 697 | 
            +
                wasm.__wbg_cryptoclient_free(ptr, 0);
         | 
| 496 698 | 
             
              }
         | 
| 497 699 | 
             
              /**
         | 
| 498 | 
            -
               *  | 
| 499 | 
            -
               *  | 
| 500 | 
            -
               * @ | 
| 700 | 
            +
               * Initialization method for the user crypto. Needs to be called before any other crypto
         | 
| 701 | 
            +
               * operations.
         | 
| 702 | 
            +
               * @param {InitUserCryptoRequest} req
         | 
| 703 | 
            +
               * @returns {Promise<void>}
         | 
| 501 704 | 
             
               */
         | 
| 502 | 
            -
               | 
| 705 | 
            +
              initialize_user_crypto(req) {
         | 
| 706 | 
            +
                const ret = wasm.cryptoclient_initialize_user_crypto(this.__wbg_ptr, addHeapObject(req));
         | 
| 707 | 
            +
                return takeObject(ret);
         | 
| 708 | 
            +
              }
         | 
| 709 | 
            +
              /**
         | 
| 710 | 
            +
               * Initialization method for the organization crypto. Needs to be called after
         | 
| 711 | 
            +
               * `initialize_user_crypto` but before any other crypto operations.
         | 
| 712 | 
            +
               * @param {InitOrgCryptoRequest} req
         | 
| 713 | 
            +
               * @returns {Promise<void>}
         | 
| 714 | 
            +
               */
         | 
| 715 | 
            +
              initialize_org_crypto(req) {
         | 
| 716 | 
            +
                const ret = wasm.cryptoclient_initialize_org_crypto(this.__wbg_ptr, addHeapObject(req));
         | 
| 717 | 
            +
                return takeObject(ret);
         | 
| 718 | 
            +
              }
         | 
| 719 | 
            +
              /**
         | 
| 720 | 
            +
               * Generates a new key pair and encrypts the private key with the provided user key.
         | 
| 721 | 
            +
               * Crypto initialization not required.
         | 
| 722 | 
            +
               * @param {string} user_key
         | 
| 723 | 
            +
               * @returns {MakeKeyPairResponse}
         | 
| 724 | 
            +
               */
         | 
| 725 | 
            +
              make_key_pair(user_key) {
         | 
| 503 726 | 
             
                try {
         | 
| 504 727 | 
             
                  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
         | 
| 505 | 
            -
                   | 
| 728 | 
            +
                  const ptr0 = passStringToWasm0(user_key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 729 | 
            +
                  const len0 = WASM_VECTOR_LEN;
         | 
| 730 | 
            +
                  wasm.cryptoclient_make_key_pair(retptr, this.__wbg_ptr, ptr0, len0);
         | 
| 731 | 
            +
                  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
         | 
| 732 | 
            +
                  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
         | 
| 733 | 
            +
                  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
         | 
| 734 | 
            +
                  if (r2) {
         | 
| 735 | 
            +
                    throw takeObject(r1);
         | 
| 736 | 
            +
                  }
         | 
| 737 | 
            +
                  return takeObject(r0);
         | 
| 738 | 
            +
                } finally {
         | 
| 739 | 
            +
                  wasm.__wbindgen_add_to_stack_pointer(16);
         | 
| 740 | 
            +
                }
         | 
| 741 | 
            +
              }
         | 
| 742 | 
            +
              /**
         | 
| 743 | 
            +
               * Verifies a user's asymmetric keys by decrypting the private key with the provided user
         | 
| 744 | 
            +
               * key. Returns if the private key is decryptable and if it is a valid matching key.
         | 
| 745 | 
            +
               * Crypto initialization not required.
         | 
| 746 | 
            +
               * @param {VerifyAsymmetricKeysRequest} request
         | 
| 747 | 
            +
               * @returns {VerifyAsymmetricKeysResponse}
         | 
| 748 | 
            +
               */
         | 
| 749 | 
            +
              verify_asymmetric_keys(request) {
         | 
| 750 | 
            +
                try {
         | 
| 751 | 
            +
                  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
         | 
| 752 | 
            +
                  wasm.cryptoclient_verify_asymmetric_keys(retptr, this.__wbg_ptr, addHeapObject(request));
         | 
| 506 753 | 
             
                  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
         | 
| 507 754 | 
             
                  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
         | 
| 508 755 | 
             
                  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
         | 
| @@ -515,32 +762,32 @@ class ClientFolders { | |
| 515 762 | 
             
                }
         | 
| 516 763 | 
             
              }
         | 
| 517 764 | 
             
            }
         | 
| 518 | 
            -
            module.exports. | 
| 765 | 
            +
            module.exports.CryptoClient = CryptoClient;
         | 
| 519 766 |  | 
| 520 | 
            -
            const  | 
| 767 | 
            +
            const VaultClientFinalization =
         | 
| 521 768 | 
             
              typeof FinalizationRegistry === "undefined"
         | 
| 522 769 | 
             
                ? { register: () => {}, unregister: () => {} }
         | 
| 523 | 
            -
                : new FinalizationRegistry((ptr) => wasm. | 
| 770 | 
            +
                : new FinalizationRegistry((ptr) => wasm.__wbg_vaultclient_free(ptr >>> 0, 1));
         | 
| 524 771 |  | 
| 525 | 
            -
            class  | 
| 772 | 
            +
            class VaultClient {
         | 
| 526 773 | 
             
              static __wrap(ptr) {
         | 
| 527 774 | 
             
                ptr = ptr >>> 0;
         | 
| 528 | 
            -
                const obj = Object.create( | 
| 775 | 
            +
                const obj = Object.create(VaultClient.prototype);
         | 
| 529 776 | 
             
                obj.__wbg_ptr = ptr;
         | 
| 530 | 
            -
                 | 
| 777 | 
            +
                VaultClientFinalization.register(obj, obj.__wbg_ptr, obj);
         | 
| 531 778 | 
             
                return obj;
         | 
| 532 779 | 
             
              }
         | 
| 533 780 |  | 
| 534 781 | 
             
              __destroy_into_raw() {
         | 
| 535 782 | 
             
                const ptr = this.__wbg_ptr;
         | 
| 536 783 | 
             
                this.__wbg_ptr = 0;
         | 
| 537 | 
            -
                 | 
| 784 | 
            +
                VaultClientFinalization.unregister(this);
         | 
| 538 785 | 
             
                return ptr;
         | 
| 539 786 | 
             
              }
         | 
| 540 787 |  | 
| 541 788 | 
             
              free() {
         | 
| 542 789 | 
             
                const ptr = this.__destroy_into_raw();
         | 
| 543 | 
            -
                wasm. | 
| 790 | 
            +
                wasm.__wbg_vaultclient_free(ptr, 0);
         | 
| 544 791 | 
             
              }
         | 
| 545 792 | 
             
              /**
         | 
| 546 793 | 
             
               * @returns {ClientFolders}
         | 
| @@ -549,201 +796,176 @@ class ClientVault { | |
| 549 796 | 
             
                const ret = wasm.bitwardenclient_crypto(this.__wbg_ptr);
         | 
| 550 797 | 
             
                return ClientFolders.__wrap(ret);
         | 
| 551 798 | 
             
              }
         | 
| 552 | 
            -
             | 
| 553 | 
            -
             | 
| 554 | 
            -
             | 
| 555 | 
            -
             | 
| 556 | 
            -
             | 
| 557 | 
            -
             | 
| 558 | 
            -
              try {
         | 
| 559 | 
            -
                deferred0_0 = arg0;
         | 
| 560 | 
            -
                deferred0_1 = arg1;
         | 
| 561 | 
            -
                const ret = new Error(getStringFromWasm0(arg0, arg1));
         | 
| 562 | 
            -
                return addHeapObject(ret);
         | 
| 563 | 
            -
              } finally {
         | 
| 564 | 
            -
                wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
         | 
| 565 | 
            -
              }
         | 
| 566 | 
            -
            };
         | 
| 567 | 
            -
             | 
| 568 | 
            -
            module.exports.__wbg_setname_46d623c31ae39910 = function (arg0, arg1, arg2) {
         | 
| 569 | 
            -
              let deferred0_0;
         | 
| 570 | 
            -
              let deferred0_1;
         | 
| 571 | 
            -
              try {
         | 
| 572 | 
            -
                deferred0_0 = arg1;
         | 
| 573 | 
            -
                deferred0_1 = arg2;
         | 
| 574 | 
            -
                getObject(arg0).name = getStringFromWasm0(arg1, arg2);
         | 
| 575 | 
            -
              } finally {
         | 
| 576 | 
            -
                wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
         | 
| 799 | 
            +
              /**
         | 
| 800 | 
            +
               * @returns {ClientTotp}
         | 
| 801 | 
            +
               */
         | 
| 802 | 
            +
              totp() {
         | 
| 803 | 
            +
                const ret = wasm.bitwardenclient_crypto(this.__wbg_ptr);
         | 
| 804 | 
            +
                return ClientTotp.__wrap(ret);
         | 
| 577 805 | 
             
              }
         | 
| 578 | 
            -
            } | 
| 806 | 
            +
            }
         | 
| 807 | 
            +
            module.exports.VaultClient = VaultClient;
         | 
| 579 808 |  | 
| 580 | 
            -
            module.exports. | 
| 581 | 
            -
               | 
| 582 | 
            -
               | 
| 583 | 
            -
               | 
| 584 | 
            -
             | 
| 585 | 
            -
             | 
| 586 | 
            -
                getObject(arg0).variant = getStringFromWasm0(arg1, arg2);
         | 
| 587 | 
            -
              } finally {
         | 
| 588 | 
            -
                wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
         | 
| 589 | 
            -
              }
         | 
| 809 | 
            +
            module.exports.__wbg_String_8f0eb39a4a4c2f66 = function (arg0, arg1) {
         | 
| 810 | 
            +
              const ret = String(getObject(arg1));
         | 
| 811 | 
            +
              const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 812 | 
            +
              const len1 = WASM_VECTOR_LEN;
         | 
| 813 | 
            +
              getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
         | 
| 814 | 
            +
              getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
         | 
| 590 815 | 
             
            };
         | 
| 591 816 |  | 
| 592 | 
            -
            module.exports. | 
| 593 | 
            -
               | 
| 594 | 
            -
              return addHeapObject(ret);
         | 
| 817 | 
            +
            module.exports.__wbg_abort_775ef1d17fc65868 = function (arg0) {
         | 
| 818 | 
            +
              getObject(arg0).abort();
         | 
| 595 819 | 
             
            };
         | 
| 596 820 |  | 
| 597 | 
            -
            module.exports. | 
| 598 | 
            -
              return handleError(function (arg0, arg1) {
         | 
| 599 | 
            -
                 | 
| 600 | 
            -
                return addHeapObject(ret);
         | 
| 821 | 
            +
            module.exports.__wbg_append_299d5d48292c0495 = function () {
         | 
| 822 | 
            +
              return handleError(function (arg0, arg1, arg2, arg3, arg4) {
         | 
| 823 | 
            +
                getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
         | 
| 601 824 | 
             
              }, arguments);
         | 
| 602 825 | 
             
            };
         | 
| 603 826 |  | 
| 604 | 
            -
            module.exports. | 
| 605 | 
            -
               | 
| 827 | 
            +
            module.exports.__wbg_append_8c7dd8d641a5f01b = function () {
         | 
| 828 | 
            +
              return handleError(function (arg0, arg1, arg2, arg3, arg4) {
         | 
| 829 | 
            +
                getObject(arg0).append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
         | 
| 830 | 
            +
              }, arguments);
         | 
| 606 831 | 
             
            };
         | 
| 607 832 |  | 
| 608 | 
            -
            module.exports. | 
| 609 | 
            -
               | 
| 610 | 
            -
             | 
| 611 | 
            -
             | 
| 612 | 
            -
             | 
| 613 | 
            -
             | 
| 614 | 
            -
             | 
| 615 | 
            -
               | 
| 616 | 
            -
              getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
         | 
| 833 | 
            +
            module.exports.__wbg_append_b2d1fc16de2a0e81 = function () {
         | 
| 834 | 
            +
              return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
         | 
| 835 | 
            +
                getObject(arg0).append(
         | 
| 836 | 
            +
                  getStringFromWasm0(arg1, arg2),
         | 
| 837 | 
            +
                  getObject(arg3),
         | 
| 838 | 
            +
                  getStringFromWasm0(arg4, arg5),
         | 
| 839 | 
            +
                );
         | 
| 840 | 
            +
              }, arguments);
         | 
| 617 841 | 
             
            };
         | 
| 618 842 |  | 
| 619 | 
            -
            module.exports. | 
| 620 | 
            -
               | 
| 621 | 
            -
             | 
| 622 | 
            -
               | 
| 843 | 
            +
            module.exports.__wbg_append_b44785ebeb668479 = function () {
         | 
| 844 | 
            +
              return handleError(function (arg0, arg1, arg2, arg3) {
         | 
| 845 | 
            +
                getObject(arg0).append(getStringFromWasm0(arg1, arg2), getObject(arg3));
         | 
| 846 | 
            +
              }, arguments);
         | 
| 623 847 | 
             
            };
         | 
| 624 848 |  | 
| 625 | 
            -
            module.exports. | 
| 626 | 
            -
              const ret = getObject(arg0) | 
| 849 | 
            +
            module.exports.__wbg_buffer_609cc3eee51ed158 = function (arg0) {
         | 
| 850 | 
            +
              const ret = getObject(arg0).buffer;
         | 
| 627 851 | 
             
              return addHeapObject(ret);
         | 
| 628 852 | 
             
            };
         | 
| 629 853 |  | 
| 630 | 
            -
            module.exports. | 
| 631 | 
            -
               | 
| 632 | 
            -
             | 
| 854 | 
            +
            module.exports.__wbg_call_672a4d21634d4a24 = function () {
         | 
| 855 | 
            +
              return handleError(function (arg0, arg1) {
         | 
| 856 | 
            +
                const ret = getObject(arg0).call(getObject(arg1));
         | 
| 857 | 
            +
                return addHeapObject(ret);
         | 
| 858 | 
            +
              }, arguments);
         | 
| 633 859 | 
             
            };
         | 
| 634 860 |  | 
| 635 | 
            -
            module.exports. | 
| 636 | 
            -
               | 
| 637 | 
            -
             | 
| 861 | 
            +
            module.exports.__wbg_call_7cccdd69e0791ae2 = function () {
         | 
| 862 | 
            +
              return handleError(function (arg0, arg1, arg2) {
         | 
| 863 | 
            +
                const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
         | 
| 864 | 
            +
                return addHeapObject(ret);
         | 
| 865 | 
            +
              }, arguments);
         | 
| 638 866 | 
             
            };
         | 
| 639 867 |  | 
| 640 | 
            -
            module.exports. | 
| 641 | 
            -
              const ret =  | 
| 642 | 
            -
              return ret;
         | 
| 868 | 
            +
            module.exports.__wbg_crypto_ed58b8e10a292839 = function (arg0) {
         | 
| 869 | 
            +
              const ret = getObject(arg0).crypto;
         | 
| 870 | 
            +
              return addHeapObject(ret);
         | 
| 643 871 | 
             
            };
         | 
| 644 872 |  | 
| 645 | 
            -
            module.exports. | 
| 646 | 
            -
               | 
| 647 | 
            -
              return ret;
         | 
| 873 | 
            +
            module.exports.__wbg_debug_e17b51583ca6a632 = function (arg0, arg1, arg2, arg3) {
         | 
| 874 | 
            +
              console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
         | 
| 648 875 | 
             
            };
         | 
| 649 876 |  | 
| 650 | 
            -
            module.exports. | 
| 651 | 
            -
              const ret =  | 
| 877 | 
            +
            module.exports.__wbg_done_769e5ede4b31c67b = function (arg0) {
         | 
| 878 | 
            +
              const ret = getObject(arg0).done;
         | 
| 652 879 | 
             
              return ret;
         | 
| 653 880 | 
             
            };
         | 
| 654 881 |  | 
| 655 | 
            -
            module.exports. | 
| 882 | 
            +
            module.exports.__wbg_entries_3265d4158b33e5dc = function (arg0) {
         | 
| 656 883 | 
             
              const ret = Object.entries(getObject(arg0));
         | 
| 657 884 | 
             
              return addHeapObject(ret);
         | 
| 658 885 | 
             
            };
         | 
| 659 886 |  | 
| 660 | 
            -
            module.exports. | 
| 661 | 
            -
               | 
| 662 | 
            -
               | 
| 887 | 
            +
            module.exports.__wbg_error_7534b8e9a36f1ab4 = function (arg0, arg1) {
         | 
| 888 | 
            +
              let deferred0_0;
         | 
| 889 | 
            +
              let deferred0_1;
         | 
| 890 | 
            +
              try {
         | 
| 891 | 
            +
                deferred0_0 = arg0;
         | 
| 892 | 
            +
                deferred0_1 = arg1;
         | 
| 893 | 
            +
                console.error(getStringFromWasm0(arg0, arg1));
         | 
| 894 | 
            +
              } finally {
         | 
| 895 | 
            +
                wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
         | 
| 896 | 
            +
              }
         | 
| 663 897 | 
             
            };
         | 
| 664 898 |  | 
| 665 | 
            -
            module.exports. | 
| 666 | 
            -
               | 
| 899 | 
            +
            module.exports.__wbg_error_80de38b3f7cc3c3c = function (arg0, arg1, arg2, arg3) {
         | 
| 900 | 
            +
              console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
         | 
| 901 | 
            +
            };
         | 
| 902 | 
            +
             | 
| 903 | 
            +
            module.exports.__wbg_fetch_4465c2b10f21a927 = function (arg0) {
         | 
| 904 | 
            +
              const ret = fetch(getObject(arg0));
         | 
| 667 905 | 
             
              return addHeapObject(ret);
         | 
| 668 906 | 
             
            };
         | 
| 669 907 |  | 
| 670 | 
            -
            module.exports. | 
| 671 | 
            -
              const ret = getObject(arg0);
         | 
| 908 | 
            +
            module.exports.__wbg_fetch_509096533071c657 = function (arg0, arg1) {
         | 
| 909 | 
            +
              const ret = getObject(arg0).fetch(getObject(arg1));
         | 
| 672 910 | 
             
              return addHeapObject(ret);
         | 
| 673 911 | 
             
            };
         | 
| 674 912 |  | 
| 675 | 
            -
            module.exports. | 
| 676 | 
            -
              return handleError(function (arg0) {
         | 
| 677 | 
            -
                 | 
| 678 | 
            -
                return addHeapObject(ret);
         | 
| 913 | 
            +
            module.exports.__wbg_getRandomValues_bcb4912f16000dc4 = function () {
         | 
| 914 | 
            +
              return handleError(function (arg0, arg1) {
         | 
| 915 | 
            +
                getObject(arg0).getRandomValues(getObject(arg1));
         | 
| 679 916 | 
             
              }, arguments);
         | 
| 680 917 | 
             
            };
         | 
| 681 918 |  | 
| 682 | 
            -
            module.exports. | 
| 683 | 
            -
              const ret = getObject(arg0). | 
| 919 | 
            +
            module.exports.__wbg_getTime_46267b1c24877e30 = function (arg0) {
         | 
| 920 | 
            +
              const ret = getObject(arg0).getTime();
         | 
| 684 921 | 
             
              return ret;
         | 
| 685 922 | 
             
            };
         | 
| 686 923 |  | 
| 687 | 
            -
            module.exports. | 
| 688 | 
            -
               | 
| 689 | 
            -
             | 
| 690 | 
            -
            };
         | 
| 691 | 
            -
             | 
| 692 | 
            -
            module.exports.__wbg_call_3bfa248576352471 = function () {
         | 
| 693 | 
            -
              return handleError(function (arg0, arg1, arg2) {
         | 
| 694 | 
            -
                const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
         | 
| 924 | 
            +
            module.exports.__wbg_get_67b2ba62fc30de12 = function () {
         | 
| 925 | 
            +
              return handleError(function (arg0, arg1) {
         | 
| 926 | 
            +
                const ret = Reflect.get(getObject(arg0), getObject(arg1));
         | 
| 695 927 | 
             
                return addHeapObject(ret);
         | 
| 696 928 | 
             
              }, arguments);
         | 
| 697 929 | 
             
            };
         | 
| 698 930 |  | 
| 699 | 
            -
            module.exports. | 
| 700 | 
            -
              const ret =  | 
| 931 | 
            +
            module.exports.__wbg_get_b9b93047fe3cf45b = function (arg0, arg1) {
         | 
| 932 | 
            +
              const ret = getObject(arg0)[arg1 >>> 0];
         | 
| 701 933 | 
             
              return addHeapObject(ret);
         | 
| 702 934 | 
             
            };
         | 
| 703 935 |  | 
| 704 | 
            -
            module.exports. | 
| 705 | 
            -
              getObject(arg0) | 
| 936 | 
            +
            module.exports.__wbg_getwithrefkey_1dc361bd10053bfe = function (arg0, arg1) {
         | 
| 937 | 
            +
              const ret = getObject(arg0)[getObject(arg1)];
         | 
| 938 | 
            +
              return addHeapObject(ret);
         | 
| 706 939 | 
             
            };
         | 
| 707 940 |  | 
| 708 | 
            -
            module.exports. | 
| 709 | 
            -
              return handleError(function () {
         | 
| 710 | 
            -
                const ret =  | 
| 711 | 
            -
                return  | 
| 941 | 
            +
            module.exports.__wbg_has_a5ea9117f258a0ec = function () {
         | 
| 942 | 
            +
              return handleError(function (arg0, arg1) {
         | 
| 943 | 
            +
                const ret = Reflect.has(getObject(arg0), getObject(arg1));
         | 
| 944 | 
            +
                return ret;
         | 
| 712 945 | 
             
              }, arguments);
         | 
| 713 946 | 
             
            };
         | 
| 714 947 |  | 
| 715 | 
            -
            module.exports. | 
| 716 | 
            -
              getObject(arg0).headers | 
| 717 | 
            -
            };
         | 
| 718 | 
            -
             | 
| 719 | 
            -
            module.exports.__wbg_setmode_4919fd636102c586 = function (arg0, arg1) {
         | 
| 720 | 
            -
              getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];
         | 
| 721 | 
            -
            };
         | 
| 722 | 
            -
             | 
| 723 | 
            -
            module.exports.__wbg_setcredentials_a4e661320cdb9738 = function (arg0, arg1) {
         | 
| 724 | 
            -
              getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
         | 
| 725 | 
            -
            };
         | 
| 726 | 
            -
             | 
| 727 | 
            -
            module.exports.__wbg_setbody_aa8b691bec428bf4 = function (arg0, arg1) {
         | 
| 728 | 
            -
              getObject(arg0).body = getObject(arg1);
         | 
| 729 | 
            -
            };
         | 
| 730 | 
            -
             | 
| 731 | 
            -
            module.exports.__wbg_signal_9acfcec9e7dffc22 = function (arg0) {
         | 
| 732 | 
            -
              const ret = getObject(arg0).signal;
         | 
| 948 | 
            +
            module.exports.__wbg_headers_9cb51cfd2ac780a4 = function (arg0) {
         | 
| 949 | 
            +
              const ret = getObject(arg0).headers;
         | 
| 733 950 | 
             
              return addHeapObject(ret);
         | 
| 734 951 | 
             
            };
         | 
| 735 952 |  | 
| 736 | 
            -
            module.exports. | 
| 737 | 
            -
              getObject(arg0) | 
| 953 | 
            +
            module.exports.__wbg_info_033d8b8a0838f1d3 = function (arg0, arg1, arg2, arg3) {
         | 
| 954 | 
            +
              console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
         | 
| 738 955 | 
             
            };
         | 
| 739 956 |  | 
| 740 | 
            -
            module.exports. | 
| 741 | 
            -
               | 
| 742 | 
            -
             | 
| 743 | 
            -
             | 
| 957 | 
            +
            module.exports.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function (arg0) {
         | 
| 958 | 
            +
              let result;
         | 
| 959 | 
            +
              try {
         | 
| 960 | 
            +
                result = getObject(arg0) instanceof ArrayBuffer;
         | 
| 961 | 
            +
              } catch (_) {
         | 
| 962 | 
            +
                result = false;
         | 
| 963 | 
            +
              }
         | 
| 964 | 
            +
              const ret = result;
         | 
| 965 | 
            +
              return ret;
         | 
| 744 966 | 
             
            };
         | 
| 745 967 |  | 
| 746 | 
            -
            module.exports. | 
| 968 | 
            +
            module.exports.__wbg_instanceof_Response_f2cc20d9f7dfd644 = function (arg0) {
         | 
| 747 969 | 
             
              let result;
         | 
| 748 970 | 
             
              try {
         | 
| 749 971 | 
             
                result = getObject(arg0) instanceof Response;
         | 
| @@ -754,70 +976,66 @@ module.exports.__wbg_instanceof_Response_3c0e210a57ff751d = function (arg0) { | |
| 754 976 | 
             
              return ret;
         | 
| 755 977 | 
             
            };
         | 
| 756 978 |  | 
| 757 | 
            -
            module.exports. | 
| 758 | 
            -
               | 
| 979 | 
            +
            module.exports.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function (arg0) {
         | 
| 980 | 
            +
              let result;
         | 
| 981 | 
            +
              try {
         | 
| 982 | 
            +
                result = getObject(arg0) instanceof Uint8Array;
         | 
| 983 | 
            +
              } catch (_) {
         | 
| 984 | 
            +
                result = false;
         | 
| 985 | 
            +
              }
         | 
| 986 | 
            +
              const ret = result;
         | 
| 759 987 | 
             
              return ret;
         | 
| 760 988 | 
             
            };
         | 
| 761 989 |  | 
| 762 | 
            -
            module.exports. | 
| 763 | 
            -
              const ret = getObject( | 
| 764 | 
            -
               | 
| 765 | 
            -
              const len1 = WASM_VECTOR_LEN;
         | 
| 766 | 
            -
              getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
         | 
| 767 | 
            -
              getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
         | 
| 990 | 
            +
            module.exports.__wbg_isSafeInteger_343e2beeeece1bb0 = function (arg0) {
         | 
| 991 | 
            +
              const ret = Number.isSafeInteger(getObject(arg0));
         | 
| 992 | 
            +
              return ret;
         | 
| 768 993 | 
             
            };
         | 
| 769 994 |  | 
| 770 | 
            -
            module.exports. | 
| 771 | 
            -
              const ret =  | 
| 995 | 
            +
            module.exports.__wbg_iterator_9a24c88df860dc65 = function () {
         | 
| 996 | 
            +
              const ret = Symbol.iterator;
         | 
| 772 997 | 
             
              return addHeapObject(ret);
         | 
| 773 998 | 
             
            };
         | 
| 774 999 |  | 
| 775 | 
            -
            module.exports. | 
| 776 | 
            -
               | 
| 777 | 
            -
             | 
| 778 | 
            -
                return addHeapObject(ret);
         | 
| 779 | 
            -
              }, arguments);
         | 
| 1000 | 
            +
            module.exports.__wbg_length_a446193dc22c12f8 = function (arg0) {
         | 
| 1001 | 
            +
              const ret = getObject(arg0).length;
         | 
| 1002 | 
            +
              return ret;
         | 
| 780 1003 | 
             
            };
         | 
| 781 1004 |  | 
| 782 | 
            -
            module.exports. | 
| 783 | 
            -
              getObject(arg0). | 
| 1005 | 
            +
            module.exports.__wbg_length_e2d2a49132c1b256 = function (arg0) {
         | 
| 1006 | 
            +
              const ret = getObject(arg0).length;
         | 
| 1007 | 
            +
              return ret;
         | 
| 784 1008 | 
             
            };
         | 
| 785 1009 |  | 
| 786 | 
            -
            module.exports. | 
| 787 | 
            -
               | 
| 788 | 
            -
                const ret = getObject(arg0).text();
         | 
| 789 | 
            -
                return addHeapObject(ret);
         | 
| 790 | 
            -
              }, arguments);
         | 
| 1010 | 
            +
            module.exports.__wbg_log_cad59bb680daec67 = function (arg0, arg1, arg2, arg3) {
         | 
| 1011 | 
            +
              console.log(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
         | 
| 791 1012 | 
             
            };
         | 
| 792 1013 |  | 
| 793 | 
            -
            module.exports. | 
| 794 | 
            -
              const ret = getObject(arg0) | 
| 795 | 
            -
              return ret;
         | 
| 1014 | 
            +
            module.exports.__wbg_msCrypto_0a36e2ec3a343d26 = function (arg0) {
         | 
| 1015 | 
            +
              const ret = getObject(arg0).msCrypto;
         | 
| 1016 | 
            +
              return addHeapObject(ret);
         | 
| 796 1017 | 
             
            };
         | 
| 797 1018 |  | 
| 798 | 
            -
            module.exports. | 
| 799 | 
            -
              const  | 
| 800 | 
            -
               | 
| 801 | 
            -
                obj.a = 0;
         | 
| 802 | 
            -
                return true;
         | 
| 803 | 
            -
              }
         | 
| 804 | 
            -
              const ret = false;
         | 
| 805 | 
            -
              return ret;
         | 
| 1019 | 
            +
            module.exports.__wbg_new0_f788a2397c7ca929 = function () {
         | 
| 1020 | 
            +
              const ret = new Date();
         | 
| 1021 | 
            +
              return addHeapObject(ret);
         | 
| 806 1022 | 
             
            };
         | 
| 807 1023 |  | 
| 808 | 
            -
            module.exports. | 
| 809 | 
            -
               | 
| 810 | 
            -
             | 
| 1024 | 
            +
            module.exports.__wbg_new_018dcc2d6c8c2f6a = function () {
         | 
| 1025 | 
            +
              return handleError(function () {
         | 
| 1026 | 
            +
                const ret = new Headers();
         | 
| 1027 | 
            +
                return addHeapObject(ret);
         | 
| 1028 | 
            +
              }, arguments);
         | 
| 811 1029 | 
             
            };
         | 
| 812 1030 |  | 
| 813 | 
            -
            module.exports. | 
| 1031 | 
            +
            module.exports.__wbg_new_23a2665fac83c611 = function (arg0, arg1) {
         | 
| 814 1032 | 
             
              try {
         | 
| 815 1033 | 
             
                var state0 = { a: arg0, b: arg1 };
         | 
| 816 1034 | 
             
                var cb0 = (arg0, arg1) => {
         | 
| 817 1035 | 
             
                  const a = state0.a;
         | 
| 818 1036 | 
             
                  state0.a = 0;
         | 
| 819 1037 | 
             
                  try {
         | 
| 820 | 
            -
                    return  | 
| 1038 | 
            +
                    return __wbg_adapter_139(a, state0.b, arg0, arg1);
         | 
| 821 1039 | 
             
                  } finally {
         | 
| 822 1040 | 
             
                    state0.a = a;
         | 
| 823 1041 | 
             
                  }
         | 
| @@ -829,233 +1047,293 @@ module.exports.__wbg_new_1073970097e5a420 = function (arg0, arg1) { | |
| 829 1047 | 
             
              }
         | 
| 830 1048 | 
             
            };
         | 
| 831 1049 |  | 
| 832 | 
            -
            module.exports. | 
| 833 | 
            -
               | 
| 1050 | 
            +
            module.exports.__wbg_new_405e22f390576ce2 = function () {
         | 
| 1051 | 
            +
              const ret = new Object();
         | 
| 1052 | 
            +
              return addHeapObject(ret);
         | 
| 1053 | 
            +
            };
         | 
| 1054 | 
            +
             | 
| 1055 | 
            +
            module.exports.__wbg_new_78feb108b6472713 = function () {
         | 
| 1056 | 
            +
              const ret = new Array();
         | 
| 1057 | 
            +
              return addHeapObject(ret);
         | 
| 834 1058 | 
             
            };
         | 
| 835 1059 |  | 
| 836 | 
            -
            module.exports. | 
| 1060 | 
            +
            module.exports.__wbg_new_8a6f238a6ece86ea = function () {
         | 
| 837 1061 | 
             
              const ret = new Error();
         | 
| 838 1062 | 
             
              return addHeapObject(ret);
         | 
| 839 1063 | 
             
            };
         | 
| 840 1064 |  | 
| 841 | 
            -
            module.exports. | 
| 842 | 
            -
               | 
| 843 | 
            -
             | 
| 844 | 
            -
             | 
| 845 | 
            -
               | 
| 846 | 
            -
              getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
         | 
| 1065 | 
            +
            module.exports.__wbg_new_9fd39a253424609a = function () {
         | 
| 1066 | 
            +
              return handleError(function () {
         | 
| 1067 | 
            +
                const ret = new FormData();
         | 
| 1068 | 
            +
                return addHeapObject(ret);
         | 
| 1069 | 
            +
              }, arguments);
         | 
| 847 1070 | 
             
            };
         | 
| 848 1071 |  | 
| 849 | 
            -
            module.exports. | 
| 1072 | 
            +
            module.exports.__wbg_new_a12002a7f91c75be = function (arg0) {
         | 
| 1073 | 
            +
              const ret = new Uint8Array(getObject(arg0));
         | 
| 1074 | 
            +
              return addHeapObject(ret);
         | 
| 1075 | 
            +
            };
         | 
| 1076 | 
            +
             | 
| 1077 | 
            +
            module.exports.__wbg_new_c68d7209be747379 = function (arg0, arg1) {
         | 
| 1078 | 
            +
              const ret = new Error(getStringFromWasm0(arg0, arg1));
         | 
| 1079 | 
            +
              return addHeapObject(ret);
         | 
| 1080 | 
            +
            };
         | 
| 1081 | 
            +
             | 
| 1082 | 
            +
            module.exports.__wbg_new_e25e5aab09ff45db = function () {
         | 
| 1083 | 
            +
              return handleError(function () {
         | 
| 1084 | 
            +
                const ret = new AbortController();
         | 
| 1085 | 
            +
                return addHeapObject(ret);
         | 
| 1086 | 
            +
              }, arguments);
         | 
| 1087 | 
            +
            };
         | 
| 1088 | 
            +
             | 
| 1089 | 
            +
            module.exports.__wbg_new_f24b6d53abe5bc82 = function (arg0, arg1) {
         | 
| 850 1090 | 
             
              let deferred0_0;
         | 
| 851 1091 | 
             
              let deferred0_1;
         | 
| 852 1092 | 
             
              try {
         | 
| 853 1093 | 
             
                deferred0_0 = arg0;
         | 
| 854 1094 | 
             
                deferred0_1 = arg1;
         | 
| 855 | 
            -
                 | 
| 1095 | 
            +
                const ret = new Error(getStringFromWasm0(arg0, arg1));
         | 
| 1096 | 
            +
                return addHeapObject(ret);
         | 
| 856 1097 | 
             
              } finally {
         | 
| 857 1098 | 
             
                wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
         | 
| 858 1099 | 
             
              }
         | 
| 859 1100 | 
             
            };
         | 
| 860 1101 |  | 
| 861 | 
            -
            module.exports. | 
| 862 | 
            -
               | 
| 863 | 
            -
             | 
| 864 | 
            -
                return addHeapObject(ret);
         | 
| 865 | 
            -
              }, arguments);
         | 
| 1102 | 
            +
            module.exports.__wbg_newnoargs_105ed471475aaf50 = function (arg0, arg1) {
         | 
| 1103 | 
            +
              const ret = new Function(getStringFromWasm0(arg0, arg1));
         | 
| 1104 | 
            +
              return addHeapObject(ret);
         | 
| 866 1105 | 
             
            };
         | 
| 867 1106 |  | 
| 868 | 
            -
            module.exports. | 
| 869 | 
            -
               | 
| 870 | 
            -
             | 
| 871 | 
            -
                return addHeapObject(ret);
         | 
| 872 | 
            -
              }, arguments);
         | 
| 1107 | 
            +
            module.exports.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function (arg0, arg1, arg2) {
         | 
| 1108 | 
            +
              const ret = new Uint8Array(getObject(arg0), arg1 >>> 0, arg2 >>> 0);
         | 
| 1109 | 
            +
              return addHeapObject(ret);
         | 
| 873 1110 | 
             
            };
         | 
| 874 1111 |  | 
| 875 | 
            -
            module.exports. | 
| 876 | 
            -
               | 
| 877 | 
            -
             | 
| 878 | 
            -
                return addHeapObject(ret);
         | 
| 879 | 
            -
              }, arguments);
         | 
| 1112 | 
            +
            module.exports.__wbg_newwithlength_a381634e90c276d4 = function (arg0) {
         | 
| 1113 | 
            +
              const ret = new Uint8Array(arg0 >>> 0);
         | 
| 1114 | 
            +
              return addHeapObject(ret);
         | 
| 880 1115 | 
             
            };
         | 
| 881 1116 |  | 
| 882 | 
            -
            module.exports. | 
| 883 | 
            -
              return handleError(function () {
         | 
| 884 | 
            -
                const ret =  | 
| 1117 | 
            +
            module.exports.__wbg_newwithstrandinit_06c535e0a867c635 = function () {
         | 
| 1118 | 
            +
              return handleError(function (arg0, arg1, arg2) {
         | 
| 1119 | 
            +
                const ret = new Request(getStringFromWasm0(arg0, arg1), getObject(arg2));
         | 
| 885 1120 | 
             
                return addHeapObject(ret);
         | 
| 886 1121 | 
             
              }, arguments);
         | 
| 887 1122 | 
             
            };
         | 
| 888 1123 |  | 
| 889 | 
            -
            module.exports. | 
| 890 | 
            -
              const ret = new Function(getStringFromWasm0(arg0, arg1));
         | 
| 891 | 
            -
              return addHeapObject(ret);
         | 
| 892 | 
            -
            };
         | 
| 893 | 
            -
             | 
| 894 | 
            -
            module.exports.__wbg_call_a9ef466721e824f2 = function () {
         | 
| 1124 | 
            +
            module.exports.__wbg_newwithu8arraysequenceandoptions_068570c487f69127 = function () {
         | 
| 895 1125 | 
             
              return handleError(function (arg0, arg1) {
         | 
| 896 | 
            -
                const ret = getObject(arg0) | 
| 1126 | 
            +
                const ret = new Blob(getObject(arg0), getObject(arg1));
         | 
| 897 1127 | 
             
                return addHeapObject(ret);
         | 
| 898 1128 | 
             
              }, arguments);
         | 
| 899 1129 | 
             
            };
         | 
| 900 1130 |  | 
| 901 | 
            -
            module.exports. | 
| 902 | 
            -
              const ret =  | 
| 1131 | 
            +
            module.exports.__wbg_next_25feadfc0913fea9 = function (arg0) {
         | 
| 1132 | 
            +
              const ret = getObject(arg0).next;
         | 
| 903 1133 | 
             
              return addHeapObject(ret);
         | 
| 904 1134 | 
             
            };
         | 
| 905 1135 |  | 
| 906 | 
            -
            module.exports. | 
| 907 | 
            -
               | 
| 908 | 
            -
             | 
| 1136 | 
            +
            module.exports.__wbg_next_6574e1a8a62d1055 = function () {
         | 
| 1137 | 
            +
              return handleError(function (arg0) {
         | 
| 1138 | 
            +
                const ret = getObject(arg0).next();
         | 
| 1139 | 
            +
                return addHeapObject(ret);
         | 
| 1140 | 
            +
              }, arguments);
         | 
| 909 1141 | 
             
            };
         | 
| 910 1142 |  | 
| 911 | 
            -
            module.exports. | 
| 912 | 
            -
              const ret = getObject(arg0). | 
| 1143 | 
            +
            module.exports.__wbg_node_02999533c4ea02e3 = function (arg0) {
         | 
| 1144 | 
            +
              const ret = getObject(arg0).node;
         | 
| 913 1145 | 
             
              return addHeapObject(ret);
         | 
| 914 1146 | 
             
            };
         | 
| 915 1147 |  | 
| 916 | 
            -
            module.exports. | 
| 917 | 
            -
              const ret =  | 
| 1148 | 
            +
            module.exports.__wbg_process_5c1d670bc53614b8 = function (arg0) {
         | 
| 1149 | 
            +
              const ret = getObject(arg0).process;
         | 
| 918 1150 | 
             
              return addHeapObject(ret);
         | 
| 919 1151 | 
             
            };
         | 
| 920 1152 |  | 
| 921 | 
            -
            module.exports. | 
| 1153 | 
            +
            module.exports.__wbg_push_737cfc8c1432c2c6 = function (arg0, arg1) {
         | 
| 922 1154 | 
             
              const ret = getObject(arg0).push(getObject(arg1));
         | 
| 923 1155 | 
             
              return ret;
         | 
| 924 1156 | 
             
            };
         | 
| 925 1157 |  | 
| 926 | 
            -
            module.exports. | 
| 927 | 
            -
               | 
| 928 | 
            -
              try {
         | 
| 929 | 
            -
                result = getObject(arg0) instanceof ArrayBuffer;
         | 
| 930 | 
            -
              } catch (_) {
         | 
| 931 | 
            -
                result = false;
         | 
| 932 | 
            -
              }
         | 
| 933 | 
            -
              const ret = result;
         | 
| 934 | 
            -
              return ret;
         | 
| 1158 | 
            +
            module.exports.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function (arg0) {
         | 
| 1159 | 
            +
              queueMicrotask(getObject(arg0));
         | 
| 935 1160 | 
             
            };
         | 
| 936 1161 |  | 
| 937 | 
            -
            module.exports. | 
| 938 | 
            -
              const ret =  | 
| 1162 | 
            +
            module.exports.__wbg_queueMicrotask_d3219def82552485 = function (arg0) {
         | 
| 1163 | 
            +
              const ret = getObject(arg0).queueMicrotask;
         | 
| 939 1164 | 
             
              return addHeapObject(ret);
         | 
| 940 1165 | 
             
            };
         | 
| 941 1166 |  | 
| 942 | 
            -
            module.exports. | 
| 1167 | 
            +
            module.exports.__wbg_randomFillSync_ab2cfe79ebbf2740 = function () {
         | 
| 943 1168 | 
             
              return handleError(function (arg0, arg1) {
         | 
| 944 | 
            -
                 | 
| 945 | 
            -
                return ret;
         | 
| 1169 | 
            +
                getObject(arg0).randomFillSync(takeObject(arg1));
         | 
| 946 1170 | 
             
              }, arguments);
         | 
| 947 1171 | 
             
            };
         | 
| 948 1172 |  | 
| 949 | 
            -
            module.exports. | 
| 1173 | 
            +
            module.exports.__wbg_require_79b1e9274cde3c87 = function () {
         | 
| 1174 | 
            +
              return handleError(function () {
         | 
| 1175 | 
            +
                const ret = module.require;
         | 
| 1176 | 
            +
                return addHeapObject(ret);
         | 
| 1177 | 
            +
              }, arguments);
         | 
| 1178 | 
            +
            };
         | 
| 1179 | 
            +
             | 
| 1180 | 
            +
            module.exports.__wbg_resolve_4851785c9c5f573d = function (arg0) {
         | 
| 950 1181 | 
             
              const ret = Promise.resolve(getObject(arg0));
         | 
| 951 1182 | 
             
              return addHeapObject(ret);
         | 
| 952 1183 | 
             
            };
         | 
| 953 1184 |  | 
| 954 | 
            -
            module.exports. | 
| 955 | 
            -
               | 
| 956 | 
            -
              return addHeapObject(ret);
         | 
| 1185 | 
            +
            module.exports.__wbg_set_3f1d0b984ed272ed = function (arg0, arg1, arg2) {
         | 
| 1186 | 
            +
              getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
         | 
| 957 1187 | 
             
            };
         | 
| 958 1188 |  | 
| 959 | 
            -
            module.exports. | 
| 960 | 
            -
               | 
| 961 | 
            -
              return addHeapObject(ret);
         | 
| 1189 | 
            +
            module.exports.__wbg_set_65595bdd868b3009 = function (arg0, arg1, arg2) {
         | 
| 1190 | 
            +
              getObject(arg0).set(getObject(arg1), arg2 >>> 0);
         | 
| 962 1191 | 
             
            };
         | 
| 963 1192 |  | 
| 964 | 
            -
            module.exports. | 
| 965 | 
            -
               | 
| 966 | 
            -
              return addHeapObject(ret);
         | 
| 1193 | 
            +
            module.exports.__wbg_setbody_5923b78a95eedf29 = function (arg0, arg1) {
         | 
| 1194 | 
            +
              getObject(arg0).body = getObject(arg1);
         | 
| 967 1195 | 
             
            };
         | 
| 968 1196 |  | 
| 969 | 
            -
            module.exports. | 
| 970 | 
            -
               | 
| 971 | 
            -
              return addHeapObject(ret);
         | 
| 1197 | 
            +
            module.exports.__wbg_setcredentials_c3a22f1cd105a2c6 = function (arg0, arg1) {
         | 
| 1198 | 
            +
              getObject(arg0).credentials = __wbindgen_enum_RequestCredentials[arg1];
         | 
| 972 1199 | 
             
            };
         | 
| 973 1200 |  | 
| 974 | 
            -
            module.exports. | 
| 975 | 
            -
               | 
| 976 | 
            -
              return addHeapObject(ret);
         | 
| 1201 | 
            +
            module.exports.__wbg_setheaders_834c0bdb6a8949ad = function (arg0, arg1) {
         | 
| 1202 | 
            +
              getObject(arg0).headers = getObject(arg1);
         | 
| 977 1203 | 
             
            };
         | 
| 978 1204 |  | 
| 979 | 
            -
            module.exports. | 
| 980 | 
            -
               | 
| 981 | 
            -
              return ret;
         | 
| 1205 | 
            +
            module.exports.__wbg_setmethod_3c5280fe5d890842 = function (arg0, arg1, arg2) {
         | 
| 1206 | 
            +
              getObject(arg0).method = getStringFromWasm0(arg1, arg2);
         | 
| 982 1207 | 
             
            };
         | 
| 983 1208 |  | 
| 984 | 
            -
            module.exports. | 
| 985 | 
            -
               | 
| 986 | 
            -
              return addHeapObject(ret);
         | 
| 1209 | 
            +
            module.exports.__wbg_setmode_5dc300b865044b65 = function (arg0, arg1) {
         | 
| 1210 | 
            +
              getObject(arg0).mode = __wbindgen_enum_RequestMode[arg1];
         | 
| 987 1211 | 
             
            };
         | 
| 988 1212 |  | 
| 989 | 
            -
            module.exports. | 
| 990 | 
            -
               | 
| 1213 | 
            +
            module.exports.__wbg_setname_c0e2d6f348c746f4 = function (arg0, arg1, arg2) {
         | 
| 1214 | 
            +
              let deferred0_0;
         | 
| 1215 | 
            +
              let deferred0_1;
         | 
| 1216 | 
            +
              try {
         | 
| 1217 | 
            +
                deferred0_0 = arg1;
         | 
| 1218 | 
            +
                deferred0_1 = arg2;
         | 
| 1219 | 
            +
                getObject(arg0).name = getStringFromWasm0(arg1, arg2);
         | 
| 1220 | 
            +
              } finally {
         | 
| 1221 | 
            +
                wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
         | 
| 1222 | 
            +
              }
         | 
| 991 1223 | 
             
            };
         | 
| 992 1224 |  | 
| 993 | 
            -
            module.exports. | 
| 994 | 
            -
               | 
| 1225 | 
            +
            module.exports.__wbg_setsignal_75b21ef3a81de905 = function (arg0, arg1) {
         | 
| 1226 | 
            +
              getObject(arg0).signal = getObject(arg1);
         | 
| 1227 | 
            +
            };
         | 
| 1228 | 
            +
             | 
| 1229 | 
            +
            module.exports.__wbg_settype_39ed370d3edd403c = function (arg0, arg1, arg2) {
         | 
| 1230 | 
            +
              getObject(arg0).type = getStringFromWasm0(arg1, arg2);
         | 
| 1231 | 
            +
            };
         | 
| 1232 | 
            +
             | 
| 1233 | 
            +
            module.exports.__wbg_setvariant_d1d41b778dfe9c17 = function (arg0, arg1, arg2) {
         | 
| 1234 | 
            +
              let deferred0_0;
         | 
| 1235 | 
            +
              let deferred0_1;
         | 
| 995 1236 | 
             
              try {
         | 
| 996 | 
            -
                 | 
| 997 | 
            -
             | 
| 998 | 
            -
                 | 
| 1237 | 
            +
                deferred0_0 = arg1;
         | 
| 1238 | 
            +
                deferred0_1 = arg2;
         | 
| 1239 | 
            +
                getObject(arg0).variant = getStringFromWasm0(arg1, arg2);
         | 
| 1240 | 
            +
              } finally {
         | 
| 1241 | 
            +
                wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
         | 
| 999 1242 | 
             
              }
         | 
| 1000 | 
            -
              const ret = result;
         | 
| 1001 | 
            -
              return ret;
         | 
| 1002 1243 | 
             
            };
         | 
| 1003 1244 |  | 
| 1004 | 
            -
            module.exports. | 
| 1005 | 
            -
               | 
| 1006 | 
            -
             | 
| 1007 | 
            -
                return addHeapObject(ret);
         | 
| 1008 | 
            -
              }, arguments);
         | 
| 1245 | 
            +
            module.exports.__wbg_signal_aaf9ad74119f20a4 = function (arg0) {
         | 
| 1246 | 
            +
              const ret = getObject(arg0).signal;
         | 
| 1247 | 
            +
              return addHeapObject(ret);
         | 
| 1009 1248 | 
             
            };
         | 
| 1010 1249 |  | 
| 1011 | 
            -
            module.exports. | 
| 1012 | 
            -
               | 
| 1013 | 
            -
             | 
| 1014 | 
            -
               | 
| 1250 | 
            +
            module.exports.__wbg_stack_0ed75d68575b0f3c = function (arg0, arg1) {
         | 
| 1251 | 
            +
              const ret = getObject(arg1).stack;
         | 
| 1252 | 
            +
              const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 1253 | 
            +
              const len1 = WASM_VECTOR_LEN;
         | 
| 1254 | 
            +
              getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
         | 
| 1255 | 
            +
              getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
         | 
| 1015 1256 | 
             
            };
         | 
| 1016 1257 |  | 
| 1017 | 
            -
            module.exports. | 
| 1018 | 
            -
               | 
| 1258 | 
            +
            module.exports.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function () {
         | 
| 1259 | 
            +
              const ret = typeof global === "undefined" ? null : global;
         | 
| 1260 | 
            +
              return isLikeNone(ret) ? 0 : addHeapObject(ret);
         | 
| 1019 1261 | 
             
            };
         | 
| 1020 1262 |  | 
| 1021 | 
            -
            module.exports. | 
| 1022 | 
            -
               | 
| 1023 | 
            -
             | 
| 1263 | 
            +
            module.exports.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function () {
         | 
| 1264 | 
            +
              const ret = typeof globalThis === "undefined" ? null : globalThis;
         | 
| 1265 | 
            +
              return isLikeNone(ret) ? 0 : addHeapObject(ret);
         | 
| 1266 | 
            +
            };
         | 
| 1267 | 
            +
             | 
| 1268 | 
            +
            module.exports.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function () {
         | 
| 1269 | 
            +
              const ret = typeof self === "undefined" ? null : self;
         | 
| 1270 | 
            +
              return isLikeNone(ret) ? 0 : addHeapObject(ret);
         | 
| 1271 | 
            +
            };
         | 
| 1272 | 
            +
             | 
| 1273 | 
            +
            module.exports.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function () {
         | 
| 1274 | 
            +
              const ret = typeof window === "undefined" ? null : window;
         | 
| 1275 | 
            +
              return isLikeNone(ret) ? 0 : addHeapObject(ret);
         | 
| 1276 | 
            +
            };
         | 
| 1277 | 
            +
             | 
| 1278 | 
            +
            module.exports.__wbg_status_f6360336ca686bf0 = function (arg0) {
         | 
| 1279 | 
            +
              const ret = getObject(arg0).status;
         | 
| 1280 | 
            +
              return ret;
         | 
| 1281 | 
            +
            };
         | 
| 1282 | 
            +
             | 
| 1283 | 
            +
            module.exports.__wbg_stringify_f7ed6987935b4a24 = function () {
         | 
| 1284 | 
            +
              return handleError(function (arg0) {
         | 
| 1285 | 
            +
                const ret = JSON.stringify(getObject(arg0));
         | 
| 1024 1286 | 
             
                return addHeapObject(ret);
         | 
| 1025 1287 | 
             
              }, arguments);
         | 
| 1026 1288 | 
             
            };
         | 
| 1027 1289 |  | 
| 1028 | 
            -
            module.exports. | 
| 1029 | 
            -
               | 
| 1030 | 
            -
             | 
| 1031 | 
            -
              }, arguments);
         | 
| 1290 | 
            +
            module.exports.__wbg_subarray_aa9065fa9dc5df96 = function (arg0, arg1, arg2) {
         | 
| 1291 | 
            +
              const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
         | 
| 1292 | 
            +
              return addHeapObject(ret);
         | 
| 1032 1293 | 
             
            };
         | 
| 1033 1294 |  | 
| 1034 | 
            -
            module.exports. | 
| 1035 | 
            -
              return handleError(function (arg0 | 
| 1036 | 
            -
                getObject(arg0). | 
| 1037 | 
            -
             | 
| 1038 | 
            -
                  getObject(arg3),
         | 
| 1039 | 
            -
                  getStringFromWasm0(arg4, arg5),
         | 
| 1040 | 
            -
                );
         | 
| 1295 | 
            +
            module.exports.__wbg_text_7805bea50de2af49 = function () {
         | 
| 1296 | 
            +
              return handleError(function (arg0) {
         | 
| 1297 | 
            +
                const ret = getObject(arg0).text();
         | 
| 1298 | 
            +
                return addHeapObject(ret);
         | 
| 1041 1299 | 
             
              }, arguments);
         | 
| 1042 1300 | 
             
            };
         | 
| 1043 1301 |  | 
| 1044 | 
            -
            module.exports. | 
| 1045 | 
            -
              const ret =  | 
| 1302 | 
            +
            module.exports.__wbg_then_44b73946d2fb3e7d = function (arg0, arg1) {
         | 
| 1303 | 
            +
              const ret = getObject(arg0).then(getObject(arg1));
         | 
| 1046 1304 | 
             
              return addHeapObject(ret);
         | 
| 1047 1305 | 
             
            };
         | 
| 1048 1306 |  | 
| 1049 | 
            -
            module.exports. | 
| 1050 | 
            -
              const ret = getObject(arg0). | 
| 1307 | 
            +
            module.exports.__wbg_then_48b406749878a531 = function (arg0, arg1, arg2) {
         | 
| 1308 | 
            +
              const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
         | 
| 1051 1309 | 
             
              return addHeapObject(ret);
         | 
| 1052 1310 | 
             
            };
         | 
| 1053 1311 |  | 
| 1054 | 
            -
            module.exports. | 
| 1055 | 
            -
               | 
| 1056 | 
            -
             | 
| 1057 | 
            -
             | 
| 1058 | 
            -
               | 
| 1312 | 
            +
            module.exports.__wbg_url_ae10c34ca209681d = function (arg0, arg1) {
         | 
| 1313 | 
            +
              const ret = getObject(arg1).url;
         | 
| 1314 | 
            +
              const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 1315 | 
            +
              const len1 = WASM_VECTOR_LEN;
         | 
| 1316 | 
            +
              getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
         | 
| 1317 | 
            +
              getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
         | 
| 1318 | 
            +
            };
         | 
| 1319 | 
            +
             | 
| 1320 | 
            +
            module.exports.__wbg_value_cd1ffa7b1ab794f1 = function (arg0) {
         | 
| 1321 | 
            +
              const ret = getObject(arg0).value;
         | 
| 1322 | 
            +
              return addHeapObject(ret);
         | 
| 1323 | 
            +
            };
         | 
| 1324 | 
            +
             | 
| 1325 | 
            +
            module.exports.__wbg_versions_c71aa1626a93e0a1 = function (arg0) {
         | 
| 1326 | 
            +
              const ret = getObject(arg0).versions;
         | 
| 1327 | 
            +
              return addHeapObject(ret);
         | 
| 1328 | 
            +
            };
         | 
| 1329 | 
            +
             | 
| 1330 | 
            +
            module.exports.__wbg_warn_aaf1f4664a035bd6 = function (arg0, arg1, arg2, arg3) {
         | 
| 1331 | 
            +
              console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
         | 
| 1332 | 
            +
            };
         | 
| 1333 | 
            +
             | 
| 1334 | 
            +
            module.exports.__wbindgen_as_number = function (arg0) {
         | 
| 1335 | 
            +
              const ret = +getObject(arg0);
         | 
| 1336 | 
            +
              return ret;
         | 
| 1059 1337 | 
             
            };
         | 
| 1060 1338 |  | 
| 1061 1339 | 
             
            module.exports.__wbindgen_boolean_get = function (arg0) {
         | 
| @@ -1064,19 +1342,19 @@ module.exports.__wbindgen_boolean_get = function (arg0) { | |
| 1064 1342 | 
             
              return ret;
         | 
| 1065 1343 | 
             
            };
         | 
| 1066 1344 |  | 
| 1067 | 
            -
            module.exports. | 
| 1068 | 
            -
              const obj =  | 
| 1069 | 
            -
               | 
| 1070 | 
            -
             | 
| 1071 | 
            -
             | 
| 1345 | 
            +
            module.exports.__wbindgen_cb_drop = function (arg0) {
         | 
| 1346 | 
            +
              const obj = takeObject(arg0).original;
         | 
| 1347 | 
            +
              if (obj.cnt-- == 1) {
         | 
| 1348 | 
            +
                obj.a = 0;
         | 
| 1349 | 
            +
                return true;
         | 
| 1350 | 
            +
              }
         | 
| 1351 | 
            +
              const ret = false;
         | 
| 1352 | 
            +
              return ret;
         | 
| 1072 1353 | 
             
            };
         | 
| 1073 1354 |  | 
| 1074 | 
            -
            module.exports. | 
| 1075 | 
            -
              const ret =  | 
| 1076 | 
            -
               | 
| 1077 | 
            -
              const len1 = WASM_VECTOR_LEN;
         | 
| 1078 | 
            -
              getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
         | 
| 1079 | 
            -
              getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
         | 
| 1355 | 
            +
            module.exports.__wbindgen_closure_wrapper2087 = function (arg0, arg1, arg2) {
         | 
| 1356 | 
            +
              const ret = makeMutClosure(arg0, arg1, 563, __wbg_adapter_40);
         | 
| 1357 | 
            +
              return addHeapObject(ret);
         | 
| 1080 1358 | 
             
            };
         | 
| 1081 1359 |  | 
| 1082 1360 | 
             
            module.exports.__wbindgen_debug_string = function (arg0, arg1) {
         | 
| @@ -1087,51 +1365,88 @@ module.exports.__wbindgen_debug_string = function (arg0, arg1) { | |
| 1087 1365 | 
             
              getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
         | 
| 1088 1366 | 
             
            };
         | 
| 1089 1367 |  | 
| 1090 | 
            -
            module.exports. | 
| 1091 | 
            -
               | 
| 1368 | 
            +
            module.exports.__wbindgen_error_new = function (arg0, arg1) {
         | 
| 1369 | 
            +
              const ret = new Error(getStringFromWasm0(arg0, arg1));
         | 
| 1370 | 
            +
              return addHeapObject(ret);
         | 
| 1092 1371 | 
             
            };
         | 
| 1093 1372 |  | 
| 1094 | 
            -
            module.exports. | 
| 1095 | 
            -
              const ret = getObject(arg0) | 
| 1096 | 
            -
              return  | 
| 1373 | 
            +
            module.exports.__wbindgen_in = function (arg0, arg1) {
         | 
| 1374 | 
            +
              const ret = getObject(arg0) in getObject(arg1);
         | 
| 1375 | 
            +
              return ret;
         | 
| 1097 1376 | 
             
            };
         | 
| 1098 1377 |  | 
| 1099 | 
            -
            module.exports. | 
| 1100 | 
            -
               | 
| 1378 | 
            +
            module.exports.__wbindgen_is_function = function (arg0) {
         | 
| 1379 | 
            +
              const ret = typeof getObject(arg0) === "function";
         | 
| 1380 | 
            +
              return ret;
         | 
| 1101 1381 | 
             
            };
         | 
| 1102 1382 |  | 
| 1103 | 
            -
            module.exports. | 
| 1104 | 
            -
               | 
| 1105 | 
            -
             | 
| 1106 | 
            -
             | 
| 1107 | 
            -
              }, arguments);
         | 
| 1383 | 
            +
            module.exports.__wbindgen_is_object = function (arg0) {
         | 
| 1384 | 
            +
              const val = getObject(arg0);
         | 
| 1385 | 
            +
              const ret = typeof val === "object" && val !== null;
         | 
| 1386 | 
            +
              return ret;
         | 
| 1108 1387 | 
             
            };
         | 
| 1109 1388 |  | 
| 1110 | 
            -
            module.exports. | 
| 1111 | 
            -
               | 
| 1389 | 
            +
            module.exports.__wbindgen_is_string = function (arg0) {
         | 
| 1390 | 
            +
              const ret = typeof getObject(arg0) === "string";
         | 
| 1391 | 
            +
              return ret;
         | 
| 1112 1392 | 
             
            };
         | 
| 1113 1393 |  | 
| 1114 | 
            -
            module.exports. | 
| 1115 | 
            -
               | 
| 1394 | 
            +
            module.exports.__wbindgen_is_undefined = function (arg0) {
         | 
| 1395 | 
            +
              const ret = getObject(arg0) === undefined;
         | 
| 1396 | 
            +
              return ret;
         | 
| 1116 1397 | 
             
            };
         | 
| 1117 1398 |  | 
| 1118 | 
            -
            module.exports. | 
| 1119 | 
            -
               | 
| 1399 | 
            +
            module.exports.__wbindgen_jsval_loose_eq = function (arg0, arg1) {
         | 
| 1400 | 
            +
              const ret = getObject(arg0) == getObject(arg1);
         | 
| 1401 | 
            +
              return ret;
         | 
| 1120 1402 | 
             
            };
         | 
| 1121 1403 |  | 
| 1122 | 
            -
            module.exports. | 
| 1123 | 
            -
               | 
| 1404 | 
            +
            module.exports.__wbindgen_memory = function () {
         | 
| 1405 | 
            +
              const ret = wasm.memory;
         | 
| 1406 | 
            +
              return addHeapObject(ret);
         | 
| 1124 1407 | 
             
            };
         | 
| 1125 1408 |  | 
| 1126 | 
            -
            module.exports. | 
| 1127 | 
            -
               | 
| 1409 | 
            +
            module.exports.__wbindgen_number_get = function (arg0, arg1) {
         | 
| 1410 | 
            +
              const obj = getObject(arg1);
         | 
| 1411 | 
            +
              const ret = typeof obj === "number" ? obj : undefined;
         | 
| 1412 | 
            +
              getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
         | 
| 1413 | 
            +
              getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
         | 
| 1414 | 
            +
            };
         | 
| 1415 | 
            +
             | 
| 1416 | 
            +
            module.exports.__wbindgen_number_new = function (arg0) {
         | 
| 1417 | 
            +
              const ret = arg0;
         | 
| 1418 | 
            +
              return addHeapObject(ret);
         | 
| 1419 | 
            +
            };
         | 
| 1420 | 
            +
             | 
| 1421 | 
            +
            module.exports.__wbindgen_object_clone_ref = function (arg0) {
         | 
| 1422 | 
            +
              const ret = getObject(arg0);
         | 
| 1423 | 
            +
              return addHeapObject(ret);
         | 
| 1424 | 
            +
            };
         | 
| 1425 | 
            +
             | 
| 1426 | 
            +
            module.exports.__wbindgen_object_drop_ref = function (arg0) {
         | 
| 1427 | 
            +
              takeObject(arg0);
         | 
| 1128 1428 | 
             
            };
         | 
| 1129 1429 |  | 
| 1130 | 
            -
            module.exports. | 
| 1131 | 
            -
              const  | 
| 1430 | 
            +
            module.exports.__wbindgen_string_get = function (arg0, arg1) {
         | 
| 1431 | 
            +
              const obj = getObject(arg1);
         | 
| 1432 | 
            +
              const ret = typeof obj === "string" ? obj : undefined;
         | 
| 1433 | 
            +
              var ptr1 = isLikeNone(ret)
         | 
| 1434 | 
            +
                ? 0
         | 
| 1435 | 
            +
                : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
         | 
| 1436 | 
            +
              var len1 = WASM_VECTOR_LEN;
         | 
| 1437 | 
            +
              getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
         | 
| 1438 | 
            +
              getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
         | 
| 1439 | 
            +
            };
         | 
| 1440 | 
            +
             | 
| 1441 | 
            +
            module.exports.__wbindgen_string_new = function (arg0, arg1) {
         | 
| 1442 | 
            +
              const ret = getStringFromWasm0(arg0, arg1);
         | 
| 1132 1443 | 
             
              return addHeapObject(ret);
         | 
| 1133 1444 | 
             
            };
         | 
| 1134 1445 |  | 
| 1446 | 
            +
            module.exports.__wbindgen_throw = function (arg0, arg1) {
         | 
| 1447 | 
            +
              throw new Error(getStringFromWasm0(arg0, arg1));
         | 
| 1448 | 
            +
            };
         | 
| 1449 | 
            +
             | 
| 1135 1450 | 
             
            const path = require("path").join(__dirname, "bitwarden_wasm_internal_bg.wasm");
         | 
| 1136 1451 | 
             
            const bytes = require("fs").readFileSync(path);
         | 
| 1137 1452 |  |