at main 895 lines 37 kB view raw
1let wasm_bindgen; 2(function() { 3 const __exports = {}; 4 let script_src; 5 if (typeof document !== 'undefined' && document.currentScript !== null) { 6 script_src = new URL(document.currentScript.src, location.href).toString(); 7 } 8 let wasm = undefined; 9 10 function addToExternrefTable0(obj) { 11 const idx = wasm.__externref_table_alloc(); 12 wasm.__wbindgen_externrefs.set(idx, obj); 13 return idx; 14 } 15 16 const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined') 17 ? { register: () => {}, unregister: () => {} } 18 : new FinalizationRegistry(state => state.dtor(state.a, state.b)); 19 20 function debugString(val) { 21 // primitive types 22 const type = typeof val; 23 if (type == 'number' || type == 'boolean' || val == null) { 24 return `${val}`; 25 } 26 if (type == 'string') { 27 return `"${val}"`; 28 } 29 if (type == 'symbol') { 30 const description = val.description; 31 if (description == null) { 32 return 'Symbol'; 33 } else { 34 return `Symbol(${description})`; 35 } 36 } 37 if (type == 'function') { 38 const name = val.name; 39 if (typeof name == 'string' && name.length > 0) { 40 return `Function(${name})`; 41 } else { 42 return 'Function'; 43 } 44 } 45 // objects 46 if (Array.isArray(val)) { 47 const length = val.length; 48 let debug = '['; 49 if (length > 0) { 50 debug += debugString(val[0]); 51 } 52 for(let i = 1; i < length; i++) { 53 debug += ', ' + debugString(val[i]); 54 } 55 debug += ']'; 56 return debug; 57 } 58 // Test for built-in 59 const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val)); 60 let className; 61 if (builtInMatches && builtInMatches.length > 1) { 62 className = builtInMatches[1]; 63 } else { 64 // Failed to match the standard '[object ClassName]' 65 return toString.call(val); 66 } 67 if (className == 'Object') { 68 // we're a user defined class or Object 69 // JSON.stringify avoids problems with cycles, and is generally much 70 // easier than looping through ownProperties of `val`. 71 try { 72 return 'Object(' + JSON.stringify(val) + ')'; 73 } catch (_) { 74 return 'Object'; 75 } 76 } 77 // errors 78 if (val instanceof Error) { 79 return `${val.name}: ${val.message}\n${val.stack}`; 80 } 81 // TODO we could test for more things here, like `Set`s and `Map`s. 82 return className; 83 } 84 85 function getArrayU8FromWasm0(ptr, len) { 86 ptr = ptr >>> 0; 87 return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len); 88 } 89 90 let cachedDataViewMemory0 = null; 91 function getDataViewMemory0() { 92 if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) { 93 cachedDataViewMemory0 = new DataView(wasm.memory.buffer); 94 } 95 return cachedDataViewMemory0; 96 } 97 98 function getStringFromWasm0(ptr, len) { 99 ptr = ptr >>> 0; 100 return decodeText(ptr, len); 101 } 102 103 let cachedUint8ArrayMemory0 = null; 104 function getUint8ArrayMemory0() { 105 if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) { 106 cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer); 107 } 108 return cachedUint8ArrayMemory0; 109 } 110 111 function handleError(f, args) { 112 try { 113 return f.apply(this, args); 114 } catch (e) { 115 const idx = addToExternrefTable0(e); 116 wasm.__wbindgen_exn_store(idx); 117 } 118 } 119 120 function isLikeNone(x) { 121 return x === undefined || x === null; 122 } 123 124 function makeClosure(arg0, arg1, dtor, f) { 125 const state = { a: arg0, b: arg1, cnt: 1, dtor }; 126 const real = (...args) => { 127 128 // First up with a closure we increment the internal reference 129 // count. This ensures that the Rust closure environment won't 130 // be deallocated while we're invoking it. 131 state.cnt++; 132 try { 133 return f(state.a, state.b, ...args); 134 } finally { 135 real._wbg_cb_unref(); 136 } 137 }; 138 real._wbg_cb_unref = () => { 139 if (--state.cnt === 0) { 140 state.dtor(state.a, state.b); 141 state.a = 0; 142 CLOSURE_DTORS.unregister(state); 143 } 144 }; 145 CLOSURE_DTORS.register(real, state, state); 146 return real; 147 } 148 149 function makeMutClosure(arg0, arg1, dtor, f) { 150 const state = { a: arg0, b: arg1, cnt: 1, dtor }; 151 const real = (...args) => { 152 153 // First up with a closure we increment the internal reference 154 // count. This ensures that the Rust closure environment won't 155 // be deallocated while we're invoking it. 156 state.cnt++; 157 const a = state.a; 158 state.a = 0; 159 try { 160 return f(a, state.b, ...args); 161 } finally { 162 state.a = a; 163 real._wbg_cb_unref(); 164 } 165 }; 166 real._wbg_cb_unref = () => { 167 if (--state.cnt === 0) { 168 state.dtor(state.a, state.b); 169 state.a = 0; 170 CLOSURE_DTORS.unregister(state); 171 } 172 }; 173 CLOSURE_DTORS.register(real, state, state); 174 return real; 175 } 176 177 function passStringToWasm0(arg, malloc, realloc) { 178 if (realloc === undefined) { 179 const buf = cachedTextEncoder.encode(arg); 180 const ptr = malloc(buf.length, 1) >>> 0; 181 getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf); 182 WASM_VECTOR_LEN = buf.length; 183 return ptr; 184 } 185 186 let len = arg.length; 187 let ptr = malloc(len, 1) >>> 0; 188 189 const mem = getUint8ArrayMemory0(); 190 191 let offset = 0; 192 193 for (; offset < len; offset++) { 194 const code = arg.charCodeAt(offset); 195 if (code > 0x7F) break; 196 mem[ptr + offset] = code; 197 } 198 if (offset !== len) { 199 if (offset !== 0) { 200 arg = arg.slice(offset); 201 } 202 ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0; 203 const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len); 204 const ret = cachedTextEncoder.encodeInto(arg, view); 205 206 offset += ret.written; 207 ptr = realloc(ptr, len, offset, 1) >>> 0; 208 } 209 210 WASM_VECTOR_LEN = offset; 211 return ptr; 212 } 213 214 let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }); 215 cachedTextDecoder.decode(); 216 function decodeText(ptr, len) { 217 return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len)); 218 } 219 220 const cachedTextEncoder = new TextEncoder(); 221 222 if (!('encodeInto' in cachedTextEncoder)) { 223 cachedTextEncoder.encodeInto = function (arg, view) { 224 const buf = cachedTextEncoder.encode(arg); 225 view.set(buf); 226 return { 227 read: arg.length, 228 written: buf.length 229 }; 230 } 231 } 232 233 let WASM_VECTOR_LEN = 0; 234 235 function wasm_bindgen_ff1081b5ed996cf4___convert__closures_____invoke______(arg0, arg1) { 236 wasm.wasm_bindgen_ff1081b5ed996cf4___convert__closures_____invoke______(arg0, arg1); 237 } 238 239 function wasm_bindgen_ff1081b5ed996cf4___convert__closures_____invoke___wasm_bindgen_ff1081b5ed996cf4___JsValue_____(arg0, arg1, arg2) { 240 wasm.wasm_bindgen_ff1081b5ed996cf4___convert__closures_____invoke___wasm_bindgen_ff1081b5ed996cf4___JsValue_____(arg0, arg1, arg2); 241 } 242 243 function wasm_bindgen_ff1081b5ed996cf4___convert__closures_____invoke___web_sys_8097425c49dd63ff___features__gen_MessageEvent__MessageEvent_____(arg0, arg1, arg2) { 244 wasm.wasm_bindgen_ff1081b5ed996cf4___convert__closures_____invoke___web_sys_8097425c49dd63ff___features__gen_MessageEvent__MessageEvent_____(arg0, arg1, arg2); 245 } 246 247 function wasm_bindgen_ff1081b5ed996cf4___convert__closures_____invoke_______1_(arg0, arg1) { 248 wasm.wasm_bindgen_ff1081b5ed996cf4___convert__closures_____invoke_______1_(arg0, arg1); 249 } 250 251 function wasm_bindgen_ff1081b5ed996cf4___convert__closures_____invoke___wasm_bindgen_ff1081b5ed996cf4___JsValue__wasm_bindgen_ff1081b5ed996cf4___JsValue_____(arg0, arg1, arg2, arg3) { 252 wasm.wasm_bindgen_ff1081b5ed996cf4___convert__closures_____invoke___wasm_bindgen_ff1081b5ed996cf4___JsValue__wasm_bindgen_ff1081b5ed996cf4___JsValue_____(arg0, arg1, arg2, arg3); 253 } 254 255 const __wbindgen_enum_ReadableStreamType = ["bytes"]; 256 257 const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"]; 258 259 const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"]; 260 261 const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"]; 262 263 const IntoUnderlyingByteSourceFinalization = (typeof FinalizationRegistry === 'undefined') 264 ? { register: () => {}, unregister: () => {} } 265 : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingbytesource_free(ptr >>> 0, 1)); 266 267 const IntoUnderlyingSinkFinalization = (typeof FinalizationRegistry === 'undefined') 268 ? { register: () => {}, unregister: () => {} } 269 : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsink_free(ptr >>> 0, 1)); 270 271 const IntoUnderlyingSourceFinalization = (typeof FinalizationRegistry === 'undefined') 272 ? { register: () => {}, unregister: () => {} } 273 : new FinalizationRegistry(ptr => wasm.__wbg_intounderlyingsource_free(ptr >>> 0, 1)); 274 275 const JSOwnerFinalization = (typeof FinalizationRegistry === 'undefined') 276 ? { register: () => {}, unregister: () => {} } 277 : new FinalizationRegistry(ptr => wasm.__wbg_jsowner_free(ptr >>> 0, 1)); 278 279 class IntoUnderlyingByteSource { 280 __destroy_into_raw() { 281 const ptr = this.__wbg_ptr; 282 this.__wbg_ptr = 0; 283 IntoUnderlyingByteSourceFinalization.unregister(this); 284 return ptr; 285 } 286 free() { 287 const ptr = this.__destroy_into_raw(); 288 wasm.__wbg_intounderlyingbytesource_free(ptr, 0); 289 } 290 /** 291 * @returns {number} 292 */ 293 get autoAllocateChunkSize() { 294 const ret = wasm.intounderlyingbytesource_autoAllocateChunkSize(this.__wbg_ptr); 295 return ret >>> 0; 296 } 297 /** 298 * @param {ReadableByteStreamController} controller 299 * @returns {Promise<any>} 300 */ 301 pull(controller) { 302 const ret = wasm.intounderlyingbytesource_pull(this.__wbg_ptr, controller); 303 return ret; 304 } 305 /** 306 * @param {ReadableByteStreamController} controller 307 */ 308 start(controller) { 309 wasm.intounderlyingbytesource_start(this.__wbg_ptr, controller); 310 } 311 /** 312 * @returns {ReadableStreamType} 313 */ 314 get type() { 315 const ret = wasm.intounderlyingbytesource_type(this.__wbg_ptr); 316 return __wbindgen_enum_ReadableStreamType[ret]; 317 } 318 cancel() { 319 const ptr = this.__destroy_into_raw(); 320 wasm.intounderlyingbytesource_cancel(ptr); 321 } 322 } 323 if (Symbol.dispose) IntoUnderlyingByteSource.prototype[Symbol.dispose] = IntoUnderlyingByteSource.prototype.free; 324 __exports.IntoUnderlyingByteSource = IntoUnderlyingByteSource; 325 326 class IntoUnderlyingSink { 327 __destroy_into_raw() { 328 const ptr = this.__wbg_ptr; 329 this.__wbg_ptr = 0; 330 IntoUnderlyingSinkFinalization.unregister(this); 331 return ptr; 332 } 333 free() { 334 const ptr = this.__destroy_into_raw(); 335 wasm.__wbg_intounderlyingsink_free(ptr, 0); 336 } 337 /** 338 * @param {any} reason 339 * @returns {Promise<any>} 340 */ 341 abort(reason) { 342 const ptr = this.__destroy_into_raw(); 343 const ret = wasm.intounderlyingsink_abort(ptr, reason); 344 return ret; 345 } 346 /** 347 * @returns {Promise<any>} 348 */ 349 close() { 350 const ptr = this.__destroy_into_raw(); 351 const ret = wasm.intounderlyingsink_close(ptr); 352 return ret; 353 } 354 /** 355 * @param {any} chunk 356 * @returns {Promise<any>} 357 */ 358 write(chunk) { 359 const ret = wasm.intounderlyingsink_write(this.__wbg_ptr, chunk); 360 return ret; 361 } 362 } 363 if (Symbol.dispose) IntoUnderlyingSink.prototype[Symbol.dispose] = IntoUnderlyingSink.prototype.free; 364 __exports.IntoUnderlyingSink = IntoUnderlyingSink; 365 366 class IntoUnderlyingSource { 367 __destroy_into_raw() { 368 const ptr = this.__wbg_ptr; 369 this.__wbg_ptr = 0; 370 IntoUnderlyingSourceFinalization.unregister(this); 371 return ptr; 372 } 373 free() { 374 const ptr = this.__destroy_into_raw(); 375 wasm.__wbg_intounderlyingsource_free(ptr, 0); 376 } 377 /** 378 * @param {ReadableStreamDefaultController} controller 379 * @returns {Promise<any>} 380 */ 381 pull(controller) { 382 const ret = wasm.intounderlyingsource_pull(this.__wbg_ptr, controller); 383 return ret; 384 } 385 cancel() { 386 const ptr = this.__destroy_into_raw(); 387 wasm.intounderlyingsource_cancel(ptr); 388 } 389 } 390 if (Symbol.dispose) IntoUnderlyingSource.prototype[Symbol.dispose] = IntoUnderlyingSource.prototype.free; 391 __exports.IntoUnderlyingSource = IntoUnderlyingSource; 392 393 class JSOwner { 394 __destroy_into_raw() { 395 const ptr = this.__wbg_ptr; 396 this.__wbg_ptr = 0; 397 JSOwnerFinalization.unregister(this); 398 return ptr; 399 } 400 free() { 401 const ptr = this.__destroy_into_raw(); 402 wasm.__wbg_jsowner_free(ptr, 0); 403 } 404 } 405 if (Symbol.dispose) JSOwner.prototype[Symbol.dispose] = JSOwner.prototype.free; 406 __exports.JSOwner = JSOwner; 407 408 const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']); 409 410 async function __wbg_load(module, imports) { 411 if (typeof Response === 'function' && module instanceof Response) { 412 if (typeof WebAssembly.instantiateStreaming === 'function') { 413 try { 414 return await WebAssembly.instantiateStreaming(module, imports); 415 } catch (e) { 416 const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type); 417 418 if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') { 419 console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e); 420 421 } else { 422 throw e; 423 } 424 } 425 } 426 427 const bytes = await module.arrayBuffer(); 428 return await WebAssembly.instantiate(bytes, imports); 429 } else { 430 const instance = await WebAssembly.instantiate(module, imports); 431 432 if (instance instanceof WebAssembly.Instance) { 433 return { instance, module }; 434 } else { 435 return instance; 436 } 437 } 438 } 439 440 function __wbg_get_imports() { 441 const imports = {}; 442 imports.wbg = {}; 443 imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) { 444 const ret = debugString(arg1); 445 const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); 446 const len1 = WASM_VECTOR_LEN; 447 getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); 448 getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); 449 }; 450 imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) { 451 const ret = typeof(arg0) === 'function'; 452 return ret; 453 }; 454 imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) { 455 const val = arg0; 456 const ret = typeof(val) === 'object' && val !== null; 457 return ret; 458 }; 459 imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) { 460 const ret = arg0 === undefined; 461 return ret; 462 }; 463 imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) { 464 const obj = arg1; 465 const ret = typeof(obj) === 'string' ? obj : undefined; 466 var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); 467 var len1 = WASM_VECTOR_LEN; 468 getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); 469 getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); 470 }; 471 imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) { 472 throw new Error(getStringFromWasm0(arg0, arg1)); 473 }; 474 imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) { 475 arg0._wbg_cb_unref(); 476 }; 477 imports.wbg.__wbg_abort_07646c894ebbf2bd = function(arg0) { 478 arg0.abort(); 479 }; 480 imports.wbg.__wbg_abort_399ecbcfd6ef3c8e = function(arg0, arg1) { 481 arg0.abort(arg1); 482 }; 483 imports.wbg.__wbg_append_c5cbdf46455cc776 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) { 484 arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4)); 485 }, arguments) }; 486 imports.wbg.__wbg_arrayBuffer_c04af4fce566092d = function() { return handleError(function (arg0) { 487 const ret = arg0.arrayBuffer(); 488 return ret; 489 }, arguments) }; 490 imports.wbg.__wbg_buffer_6cb2fecb1f253d71 = function(arg0) { 491 const ret = arg0.buffer; 492 return ret; 493 }; 494 imports.wbg.__wbg_byobRequest_f8e3517f5f8ad284 = function(arg0) { 495 const ret = arg0.byobRequest; 496 return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); 497 }; 498 imports.wbg.__wbg_byteLength_faa9938885bdeee6 = function(arg0) { 499 const ret = arg0.byteLength; 500 return ret; 501 }; 502 imports.wbg.__wbg_byteOffset_3868b6a19ba01dea = function(arg0) { 503 const ret = arg0.byteOffset; 504 return ret; 505 }; 506 imports.wbg.__wbg_call_3020136f7a2d6e44 = function() { return handleError(function (arg0, arg1, arg2) { 507 const ret = arg0.call(arg1, arg2); 508 return ret; 509 }, arguments) }; 510 imports.wbg.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) { 511 const ret = arg0.call(arg1); 512 return ret; 513 }, arguments) }; 514 imports.wbg.__wbg_clearTimeout_15dfc3d1dcb635c6 = function() { return handleError(function (arg0, arg1) { 515 arg0.clearTimeout(arg1); 516 }, arguments) }; 517 imports.wbg.__wbg_clearTimeout_b716ecb44bea14ed = function(arg0) { 518 const ret = clearTimeout(arg0); 519 return ret; 520 }; 521 imports.wbg.__wbg_close_0af5661bf3d335f2 = function() { return handleError(function (arg0) { 522 arg0.close(); 523 }, arguments) }; 524 imports.wbg.__wbg_close_0b472ca2d13f54f7 = function(arg0) { 525 arg0.close(); 526 }; 527 imports.wbg.__wbg_close_3ec111e7b23d94d8 = function() { return handleError(function (arg0) { 528 arg0.close(); 529 }, arguments) }; 530 imports.wbg.__wbg_data_8bf4ae669a78a688 = function(arg0) { 531 const ret = arg0.data; 532 return ret; 533 }; 534 imports.wbg.__wbg_done_62ea16af4ce34b24 = function(arg0) { 535 const ret = arg0.done; 536 return ret; 537 }; 538 imports.wbg.__wbg_enqueue_a7e6b1ee87963aad = function() { return handleError(function (arg0, arg1) { 539 arg0.enqueue(arg1); 540 }, arguments) }; 541 imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) { 542 let deferred0_0; 543 let deferred0_1; 544 try { 545 deferred0_0 = arg0; 546 deferred0_1 = arg1; 547 console.error(getStringFromWasm0(arg0, arg1)); 548 } finally { 549 wasm.__wbindgen_free(deferred0_0, deferred0_1, 1); 550 } 551 }; 552 imports.wbg.__wbg_fetch_7fb7602a1bf647ec = function(arg0) { 553 const ret = fetch(arg0); 554 return ret; 555 }; 556 imports.wbg.__wbg_fetch_90447c28cc0b095e = function(arg0, arg1) { 557 const ret = arg0.fetch(arg1); 558 return ret; 559 }; 560 imports.wbg.__wbg_get_af9dab7e9603ea93 = function() { return handleError(function (arg0, arg1) { 561 const ret = Reflect.get(arg0, arg1); 562 return ret; 563 }, arguments) }; 564 imports.wbg.__wbg_has_0e670569d65d3a45 = function() { return handleError(function (arg0, arg1) { 565 const ret = Reflect.has(arg0, arg1); 566 return ret; 567 }, arguments) }; 568 imports.wbg.__wbg_headers_654c30e1bcccc552 = function(arg0) { 569 const ret = arg0.headers; 570 return ret; 571 }; 572 imports.wbg.__wbg_instanceof_Response_cd74d1c2ac92cb0b = function(arg0) { 573 let result; 574 try { 575 result = arg0 instanceof Response; 576 } catch (_) { 577 result = false; 578 } 579 const ret = result; 580 return ret; 581 }; 582 imports.wbg.__wbg_instanceof_Window_b5cf7783caa68180 = function(arg0) { 583 let result; 584 try { 585 result = arg0 instanceof Window; 586 } catch (_) { 587 result = false; 588 } 589 const ret = result; 590 return ret; 591 }; 592 imports.wbg.__wbg_iterator_27b7c8b35ab3e86b = function() { 593 const ret = Symbol.iterator; 594 return ret; 595 }; 596 imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) { 597 const ret = arg0.length; 598 return ret; 599 }; 600 imports.wbg.__wbg_new_1ba21ce319a06297 = function() { 601 const ret = new Object(); 602 return ret; 603 }; 604 imports.wbg.__wbg_new_3c79b3bb1b32b7d3 = function() { return handleError(function () { 605 const ret = new Headers(); 606 return ret; 607 }, arguments) }; 608 imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) { 609 const ret = new Uint8Array(arg0); 610 return ret; 611 }; 612 imports.wbg.__wbg_new_881a222c65f168fc = function() { return handleError(function () { 613 const ret = new AbortController(); 614 return ret; 615 }, arguments) }; 616 imports.wbg.__wbg_new_8a6f238a6ece86ea = function() { 617 const ret = new Error(); 618 return ret; 619 }; 620 imports.wbg.__wbg_new_df1173567d5ff028 = function(arg0, arg1) { 621 const ret = new Error(getStringFromWasm0(arg0, arg1)); 622 return ret; 623 }; 624 imports.wbg.__wbg_new_ff12d2b041fb48f1 = function(arg0, arg1) { 625 try { 626 var state0 = {a: arg0, b: arg1}; 627 var cb0 = (arg0, arg1) => { 628 const a = state0.a; 629 state0.a = 0; 630 try { 631 return wasm_bindgen_ff1081b5ed996cf4___convert__closures_____invoke___wasm_bindgen_ff1081b5ed996cf4___JsValue__wasm_bindgen_ff1081b5ed996cf4___JsValue_____(a, state0.b, arg0, arg1); 632 } finally { 633 state0.a = a; 634 } 635 }; 636 const ret = new Promise(cb0); 637 return ret; 638 } finally { 639 state0.a = state0.b = 0; 640 } 641 }; 642 imports.wbg.__wbg_new_from_slice_f9c22b9153b26992 = function(arg0, arg1) { 643 const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1)); 644 return ret; 645 }; 646 imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) { 647 const ret = new Function(getStringFromWasm0(arg0, arg1)); 648 return ret; 649 }; 650 imports.wbg.__wbg_new_with_byte_offset_and_length_d85c3da1fd8df149 = function(arg0, arg1, arg2) { 651 const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0); 652 return ret; 653 }; 654 imports.wbg.__wbg_new_with_str_and_init_c5748f76f5108934 = function() { return handleError(function (arg0, arg1, arg2) { 655 const ret = new Request(getStringFromWasm0(arg0, arg1), arg2); 656 return ret; 657 }, arguments) }; 658 imports.wbg.__wbg_next_138a17bbf04e926c = function(arg0) { 659 const ret = arg0.next; 660 return ret; 661 }; 662 imports.wbg.__wbg_next_3cfe5c0fe2a4cc53 = function() { return handleError(function (arg0) { 663 const ret = arg0.next(); 664 return ret; 665 }, arguments) }; 666 imports.wbg.__wbg_now_2c95c9de01293173 = function(arg0) { 667 const ret = arg0.now(); 668 return ret; 669 }; 670 imports.wbg.__wbg_now_8cf15d6e317793e1 = function(arg0) { 671 const ret = arg0.now(); 672 return ret; 673 }; 674 imports.wbg.__wbg_performance_7a3ffd0b17f663ad = function(arg0) { 675 const ret = arg0.performance; 676 return ret; 677 }; 678 imports.wbg.__wbg_performance_c77a440eff2efd9b = function(arg0) { 679 const ret = arg0.performance; 680 return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); 681 }; 682 imports.wbg.__wbg_postMessage_7243f814e0cfb266 = function() { return handleError(function (arg0, arg1) { 683 arg0.postMessage(arg1); 684 }, arguments) }; 685 imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) { 686 Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2); 687 }; 688 imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) { 689 const ret = arg0.queueMicrotask; 690 return ret; 691 }; 692 imports.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function(arg0) { 693 queueMicrotask(arg0); 694 }; 695 imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function(arg0) { 696 const ret = Promise.resolve(arg0); 697 return ret; 698 }; 699 imports.wbg.__wbg_respond_9f7fc54636c4a3af = function() { return handleError(function (arg0, arg1) { 700 arg0.respond(arg1 >>> 0); 701 }, arguments) }; 702 imports.wbg.__wbg_setTimeout_4302406184dcc5be = function(arg0, arg1) { 703 const ret = setTimeout(arg0, arg1); 704 return ret; 705 }; 706 imports.wbg.__wbg_setTimeout_4eb823e8b72fbe79 = function() { return handleError(function (arg0, arg1, arg2) { 707 const ret = arg0.setTimeout(arg1, arg2); 708 return ret; 709 }, arguments) }; 710 imports.wbg.__wbg_set_169e13b608078b7b = function(arg0, arg1, arg2) { 711 arg0.set(getArrayU8FromWasm0(arg1, arg2)); 712 }; 713 imports.wbg.__wbg_set_body_8e743242d6076a4f = function(arg0, arg1) { 714 arg0.body = arg1; 715 }; 716 imports.wbg.__wbg_set_cache_0e437c7c8e838b9b = function(arg0, arg1) { 717 arg0.cache = __wbindgen_enum_RequestCache[arg1]; 718 }; 719 imports.wbg.__wbg_set_credentials_55ae7c3c106fd5be = function(arg0, arg1) { 720 arg0.credentials = __wbindgen_enum_RequestCredentials[arg1]; 721 }; 722 imports.wbg.__wbg_set_headers_5671cf088e114d2b = function(arg0, arg1) { 723 arg0.headers = arg1; 724 }; 725 imports.wbg.__wbg_set_method_76c69e41b3570627 = function(arg0, arg1, arg2) { 726 arg0.method = getStringFromWasm0(arg1, arg2); 727 }; 728 imports.wbg.__wbg_set_mode_611016a6818fc690 = function(arg0, arg1) { 729 arg0.mode = __wbindgen_enum_RequestMode[arg1]; 730 }; 731 imports.wbg.__wbg_set_onmessage_5fe29d0fb54cb575 = function(arg0, arg1) { 732 arg0.onmessage = arg1; 733 }; 734 imports.wbg.__wbg_set_signal_e89be862d0091009 = function(arg0, arg1) { 735 arg0.signal = arg1; 736 }; 737 imports.wbg.__wbg_signal_3c14fbdc89694b39 = function(arg0) { 738 const ret = arg0.signal; 739 return ret; 740 }; 741 imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) { 742 const ret = arg1.stack; 743 const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); 744 const len1 = WASM_VECTOR_LEN; 745 getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); 746 getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); 747 }; 748 imports.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() { 749 const ret = typeof global === 'undefined' ? null : global; 750 return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); 751 }; 752 imports.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function() { 753 const ret = typeof globalThis === 'undefined' ? null : globalThis; 754 return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); 755 }; 756 imports.wbg.__wbg_static_accessor_SELF_08f5a74c69739274 = function() { 757 const ret = typeof self === 'undefined' ? null : self; 758 return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); 759 }; 760 imports.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function() { 761 const ret = typeof window === 'undefined' ? null : window; 762 return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); 763 }; 764 imports.wbg.__wbg_status_9bfc680efca4bdfd = function(arg0) { 765 const ret = arg0.status; 766 return ret; 767 }; 768 imports.wbg.__wbg_stringify_655a6390e1f5eb6b = function() { return handleError(function (arg0) { 769 const ret = JSON.stringify(arg0); 770 return ret; 771 }, arguments) }; 772 imports.wbg.__wbg_text_51046bb33d257f63 = function() { return handleError(function (arg0) { 773 const ret = arg0.text(); 774 return ret; 775 }, arguments) }; 776 imports.wbg.__wbg_then_429f7caf1026411d = function(arg0, arg1, arg2) { 777 const ret = arg0.then(arg1, arg2); 778 return ret; 779 }; 780 imports.wbg.__wbg_then_4f95312d68691235 = function(arg0, arg1) { 781 const ret = arg0.then(arg1); 782 return ret; 783 }; 784 imports.wbg.__wbg_url_b6d11838a4f95198 = function(arg0, arg1) { 785 const ret = arg1.url; 786 const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc); 787 const len1 = WASM_VECTOR_LEN; 788 getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true); 789 getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true); 790 }; 791 imports.wbg.__wbg_value_57b7b035e117f7ee = function(arg0) { 792 const ret = arg0.value; 793 return ret; 794 }; 795 imports.wbg.__wbg_view_788aaf149deefd2f = function(arg0) { 796 const ret = arg0.view; 797 return isLikeNone(ret) ? 0 : addToExternrefTable0(ret); 798 }; 799 imports.wbg.__wbindgen_cast_15fea7dce706ecd8 = function(arg0, arg1) { 800 // Cast intrinsic for `Closure(Closure { dtor_idx: 1458, function: Function { arguments: [], shim_idx: 1459, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. 801 const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_ff1081b5ed996cf4___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut_____Output_______, wasm_bindgen_ff1081b5ed996cf4___convert__closures_____invoke______); 802 return ret; 803 }; 804 imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) { 805 // Cast intrinsic for `Ref(String) -> Externref`. 806 const ret = getStringFromWasm0(arg0, arg1); 807 return ret; 808 }; 809 imports.wbg.__wbindgen_cast_27edd9ec229cd76d = function(arg0, arg1) { 810 // Cast intrinsic for `Closure(Closure { dtor_idx: 64, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 65, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`. 811 const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen_ff1081b5ed996cf4___closure__destroy___dyn_core_b125d98f3949a913___ops__function__Fn__web_sys_8097425c49dd63ff___features__gen_MessageEvent__MessageEvent____Output_______, wasm_bindgen_ff1081b5ed996cf4___convert__closures_____invoke___web_sys_8097425c49dd63ff___features__gen_MessageEvent__MessageEvent_____); 812 return ret; 813 }; 814 imports.wbg.__wbindgen_cast_5ebf193ba0482380 = function(arg0, arg1) { 815 // Cast intrinsic for `Closure(Closure { dtor_idx: 2543, function: Function { arguments: [Externref], shim_idx: 2544, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. 816 const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_ff1081b5ed996cf4___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut__wasm_bindgen_ff1081b5ed996cf4___JsValue____Output_______, wasm_bindgen_ff1081b5ed996cf4___convert__closures_____invoke___wasm_bindgen_ff1081b5ed996cf4___JsValue_____); 817 return ret; 818 }; 819 imports.wbg.__wbindgen_cast_77c2bc8daf69132e = function(arg0, arg1) { 820 // Cast intrinsic for `Closure(Closure { dtor_idx: 1721, function: Function { arguments: [], shim_idx: 1722, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`. 821 const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_ff1081b5ed996cf4___closure__destroy___dyn_core_b125d98f3949a913___ops__function__FnMut_____Output________1_, wasm_bindgen_ff1081b5ed996cf4___convert__closures_____invoke_______1_); 822 return ret; 823 }; 824 imports.wbg.__wbindgen_init_externref_table = function() { 825 const table = wasm.__wbindgen_externrefs; 826 const offset = table.grow(4); 827 table.set(0, undefined); 828 table.set(offset + 0, undefined); 829 table.set(offset + 1, null); 830 table.set(offset + 2, true); 831 table.set(offset + 3, false); 832 }; 833 834 return imports; 835 } 836 837 function __wbg_finalize_init(instance, module) { 838 wasm = instance.exports; 839 __wbg_init.__wbindgen_wasm_module = module; 840 cachedDataViewMemory0 = null; 841 cachedUint8ArrayMemory0 = null; 842 843 844 wasm.__wbindgen_start(); 845 return wasm; 846 } 847 848 function initSync(module) { 849 if (wasm !== undefined) return wasm; 850 851 852 if (typeof module !== 'undefined') { 853 if (Object.getPrototypeOf(module) === Object.prototype) { 854 ({module} = module) 855 } else { 856 console.warn('using deprecated parameters for `initSync()`; pass a single object instead') 857 } 858 } 859 860 const imports = __wbg_get_imports(); 861 if (!(module instanceof WebAssembly.Module)) { 862 module = new WebAssembly.Module(module); 863 } 864 const instance = new WebAssembly.Instance(module, imports); 865 return __wbg_finalize_init(instance, module); 866 } 867 868 async function __wbg_init(module_or_path) { 869 if (wasm !== undefined) return wasm; 870 871 872 if (typeof module_or_path !== 'undefined') { 873 if (Object.getPrototypeOf(module_or_path) === Object.prototype) { 874 ({module_or_path} = module_or_path) 875 } else { 876 console.warn('using deprecated parameters for the initialization function; pass a single object instead') 877 } 878 } 879 880 if (typeof module_or_path === 'undefined' && typeof script_src !== 'undefined') { 881 module_or_path = script_src.replace(/\.js$/, '_bg.wasm'); 882 } 883 const imports = __wbg_get_imports(); 884 885 if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) { 886 module_or_path = fetch(module_or_path); 887 } 888 889 const { instance, module } = await __wbg_load(await module_or_path, imports); 890 891 return __wbg_finalize_init(instance, module); 892 } 893 894 wasm_bindgen = Object.assign(__wbg_init, { initSync }, __exports); 895})();