mirror of
https://github.com/osmarks/website
synced 2024-12-25 01:20:33 +00:00
8 lines
40 KiB
Plaintext
8 lines
40 KiB
Plaintext
{
|
|
"version": 3,
|
|
"sources": ["../pkg/tic_tac_toe_4d.js", "../src/app.js"],
|
|
"sourcesContent": ["let wasm;\n\nconst heap = new Array(128).fill(undefined);\n\nheap.push(undefined, null, true, false);\n\nfunction getObject(idx) { return heap[idx]; }\n\nlet heap_next = heap.length;\n\nfunction dropObject(idx) {\n if (idx < 132) return;\n heap[idx] = heap_next;\n heap_next = idx;\n}\n\nfunction takeObject(idx) {\n const ret = getObject(idx);\n dropObject(idx);\n return ret;\n}\n\nfunction addHeapObject(obj) {\n if (heap_next === heap.length) heap.push(heap.length + 1);\n const idx = heap_next;\n heap_next = heap[idx];\n\n heap[idx] = obj;\n return idx;\n}\n\nconst cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );\n\nif (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };\n\nlet cachedUint8Memory0 = null;\n\nfunction getUint8Memory0() {\n if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {\n cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);\n }\n return cachedUint8Memory0;\n}\n\nfunction getStringFromWasm0(ptr, len) {\n ptr = ptr >>> 0;\n return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));\n}\n\nfunction isLikeNone(x) {\n return x === undefined || x === null;\n}\n\nlet cachedFloat64Memory0 = null;\n\nfunction getFloat64Memory0() {\n if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {\n cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);\n }\n return cachedFloat64Memory0;\n}\n\nlet cachedInt32Memory0 = null;\n\nfunction getInt32Memory0() {\n if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {\n cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);\n }\n return cachedInt32Memory0;\n}\n\nfunction debugString(val) {\n // primitive types\n const type = typeof val;\n if (type == 'number' || type == 'boolean' || val == null) {\n return `${val}`;\n }\n if (type == 'string') {\n return `\"${val}\"`;\n }\n if (type == 'symbol') {\n const description = val.description;\n if (description == null) {\n return 'Symbol';\n } else {\n return `Symbol(${description})`;\n }\n }\n if (type == 'function') {\n const name = val.name;\n if (typeof name == 'string' && name.length > 0) {\n return `Function(${name})`;\n } else {\n return 'Function';\n }\n }\n // objects\n if (Array.isArray(val)) {\n const length = val.length;\n let debug = '[';\n if (length > 0) {\n debug += debugString(val[0]);\n }\n for(let i = 1; i < length; i++) {\n debug += ', ' + debugString(val[i]);\n }\n debug += ']';\n return debug;\n }\n // Test for built-in\n const builtInMatches = /\\[object ([^\\]]+)\\]/.exec(toString.call(val));\n let className;\n if (builtInMatches.length > 1) {\n className = builtInMatches[1];\n } else {\n // Failed to match the standard '[object ClassName]'\n return toString.call(val);\n }\n if (className == 'Object') {\n // we're a user defined class or Object\n // JSON.stringify avoids problems with cycles, and is generally much\n // easier than looping through ownProperties of `val`.\n try {\n return 'Object(' + JSON.stringify(val) + ')';\n } catch (_) {\n return 'Object';\n }\n }\n // errors\n if (val instanceof Error) {\n return `${val.name}: ${val.message}\\n${val.stack}`;\n }\n // TODO we could test for more things here, like `Set`s and `Map`s.\n return className;\n}\n\nlet WASM_VECTOR_LEN = 0;\n\nconst cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );\n\nconst encodeString = (typeof cachedTextEncoder.encodeInto === 'function'\n ? function (arg, view) {\n return cachedTextEncoder.encodeInto(arg, view);\n}\n : function (arg, view) {\n const buf = cachedTextEncoder.encode(arg);\n view.set(buf);\n return {\n read: arg.length,\n written: buf.length\n };\n});\n\nfunction passStringToWasm0(arg, malloc, realloc) {\n\n if (realloc === undefined) {\n const buf = cachedTextEncoder.encode(arg);\n const ptr = malloc(buf.length, 1) >>> 0;\n getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);\n WASM_VECTOR_LEN = buf.length;\n return ptr;\n }\n\n let len = arg.length;\n let ptr = malloc(len, 1) >>> 0;\n\n const mem = getUint8Memory0();\n\n let offset = 0;\n\n for (; offset < len; offset++) {\n const code = arg.charCodeAt(offset);\n if (code > 0x7F) break;\n mem[ptr + offset] = code;\n }\n\n if (offset !== len) {\n if (offset !== 0) {\n arg = arg.slice(offset);\n }\n ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;\n const view = getUint8Memory0().subarray(ptr + offset, ptr + len);\n const ret = encodeString(arg, view);\n\n offset += ret.written;\n }\n\n WASM_VECTOR_LEN = offset;\n return ptr;\n}\n\nfunction makeMutClosure(arg0, arg1, dtor, f) {\n const state = { a: arg0, b: arg1, cnt: 1, dtor };\n const real = (...args) => {\n // First up with a closure we increment the internal reference\n // count. This ensures that the Rust closure environment won't\n // be deallocated while we're invoking it.\n state.cnt++;\n const a = state.a;\n state.a = 0;\n try {\n return f(a, state.b, ...args);\n } finally {\n if (--state.cnt === 0) {\n wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);\n\n } else {\n state.a = a;\n }\n }\n };\n real.original = state;\n\n return real;\n}\n\nfunction passArray8ToWasm0(arg, malloc) {\n const ptr = malloc(arg.length * 1, 1) >>> 0;\n getUint8Memory0().set(arg, ptr / 1);\n WASM_VECTOR_LEN = arg.length;\n return ptr;\n}\nfunction __wbg_adapter_18(arg0, arg1, arg2) {\n const ptr0 = passArray8ToWasm0(arg2, wasm.__wbindgen_malloc);\n const len0 = WASM_VECTOR_LEN;\n wasm.wasm_bindgen__convert__closures__invoke1_mut__h5860e381bcb9706c(arg0, arg1, ptr0, len0);\n}\n\nfunction makeClosure(arg0, arg1, dtor, f) {\n const state = { a: arg0, b: arg1, cnt: 1, dtor };\n const real = (...args) => {\n // First up with a closure we increment the internal reference\n // count. This ensures that the Rust closure environment won't\n // be deallocated while we're invoking it.\n state.cnt++;\n try {\n return f(state.a, state.b, ...args);\n } finally {\n if (--state.cnt === 0) {\n wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b);\n state.a = 0;\n\n }\n }\n };\n real.original = state;\n\n return real;\n}\nfunction __wbg_adapter_21(arg0, arg1, arg2) {\n wasm.wasm_bindgen__convert__closures__invoke1__h5a4fa13f3ec138ca(arg0, arg1, addHeapObject(arg2));\n}\n\nfunction getArrayU8FromWasm0(ptr, len) {\n ptr = ptr >>> 0;\n return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);\n}\n/**\n* @param {Uint8Array} state\n* @returns {Uint8Array}\n*/\nexport function run_ai(state) {\n try {\n const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);\n const ptr0 = passArray8ToWasm0(state, wasm.__wbindgen_malloc);\n const len0 = WASM_VECTOR_LEN;\n wasm.run_ai(retptr, ptr0, len0);\n var r0 = getInt32Memory0()[retptr / 4 + 0];\n var r1 = getInt32Memory0()[retptr / 4 + 1];\n var v2 = getArrayU8FromWasm0(r0, r1).slice();\n wasm.__wbindgen_free(r0, r1 * 1, 1);\n return v2;\n } finally {\n wasm.__wbindgen_add_to_stack_pointer(16);\n }\n}\n\nfunction notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; }\n/**\n* @returns {any}\n*/\nexport function main() {\n const ret = wasm.main();\n return takeObject(ret);\n}\n\nlet cachedUint32Memory0 = null;\n\nfunction getUint32Memory0() {\n if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {\n cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);\n }\n return cachedUint32Memory0;\n}\n\nfunction getArrayJsValueFromWasm0(ptr, len) {\n ptr = ptr >>> 0;\n const mem = getUint32Memory0();\n const slice = mem.subarray(ptr / 4, ptr / 4 + len);\n const result = [];\n for (let i = 0; i < slice.length; i++) {\n result.push(takeObject(slice[i]));\n }\n return result;\n}\n\nfunction handleError(f, args) {\n try {\n return f.apply(this, args);\n } catch (e) {\n wasm.__wbindgen_exn_store(addHeapObject(e));\n }\n}\n\nasync function __wbg_load(module, imports) {\n if (typeof Response === 'function' && module instanceof Response) {\n if (typeof WebAssembly.instantiateStreaming === 'function') {\n try {\n return await WebAssembly.instantiateStreaming(module, imports);\n\n } catch (e) {\n if (module.headers.get('Content-Type') != 'application/wasm') {\n 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);\n\n } else {\n throw e;\n }\n }\n }\n\n const bytes = await module.arrayBuffer();\n return await WebAssembly.instantiate(bytes, imports);\n\n } else {\n const instance = await WebAssembly.instantiate(module, imports);\n\n if (instance instanceof WebAssembly.Instance) {\n return { instance, module };\n\n } else {\n return instance;\n }\n }\n}\n\nfunction __wbg_get_imports() {\n const imports = {};\n imports.wbg = {};\n imports.wbg.__wbindgen_object_drop_ref = function(arg0) {\n takeObject(arg0);\n };\n imports.wbg.__wbindgen_object_clone_ref = function(arg0) {\n const ret = getObject(arg0);\n return addHeapObject(ret);\n };\n imports.wbg.__wbg_wincallback_a6a4fc5b782108cf = typeof win_callback == 'function' ? win_callback : notDefined('win_callback');\n imports.wbg.__wbg_runaibackground_8f0429c82a23ffaf = function(arg0, arg1) {\n var v0 = getArrayU8FromWasm0(arg0, arg1).slice();\n wasm.__wbindgen_free(arg0, arg1 * 1, 1);\n run_ai_background(v0);\n };\n imports.wbg.__wbindgen_string_new = function(arg0, arg1) {\n const ret = getStringFromWasm0(arg0, arg1);\n return addHeapObject(ret);\n };\n imports.wbg.__wbindgen_number_get = function(arg0, arg1) {\n const obj = getObject(arg1);\n const ret = typeof(obj) === 'number' ? obj : undefined;\n getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;\n getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);\n };\n imports.wbg.__wbindgen_number_new = function(arg0) {\n const ret = arg0;\n return addHeapObject(ret);\n };\n imports.wbg.__wbg_new_abda76e883ba8a5f = function() {\n const ret = new Error();\n return addHeapObject(ret);\n };\n imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {\n const ret = getObject(arg1).stack;\n const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n const len1 = WASM_VECTOR_LEN;\n getInt32Memory0()[arg0 / 4 + 1] = len1;\n getInt32Memory0()[arg0 / 4 + 0] = ptr1;\n };\n imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {\n let deferred0_0;\n let deferred0_1;\n try {\n deferred0_0 = arg0;\n deferred0_1 = arg1;\n console.error(getStringFromWasm0(arg0, arg1));\n } finally {\n wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);\n }\n };\n imports.wbg.__wbg_warn_40349716c899750a = function(arg0, arg1) {\n var v0 = getArrayJsValueFromWasm0(arg0, arg1).slice();\n wasm.__wbindgen_free(arg0, arg1 * 4, 4);\n console.warn(...v0);\n };\n imports.wbg.__wbg_instanceof_Window_434ce1849eb4e0fc = function(arg0) {\n let result;\n try {\n result = getObject(arg0) instanceof Window;\n } catch (_) {\n result = false;\n }\n const ret = result;\n return ret;\n };\n imports.wbg.__wbg_body_4579ae140279af20 = function(arg0) {\n const ret = getObject(arg0).body;\n return isLikeNone(ret) ? 0 : addHeapObject(ret);\n };\n imports.wbg.__wbg_createElement_d15f046703844f09 = function() { return handleError(function (arg0, arg1, arg2) {\n const ret = getObject(arg0).createElement(getStringFromWasm0(arg1, arg2));\n return addHeapObject(ret);\n }, arguments) };\n imports.wbg.__wbg_createElementNS_11acf9c78d336078 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {\n const ret = getObject(arg0).createElementNS(arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));\n return addHeapObject(ret);\n }, arguments) };\n imports.wbg.__wbg_createTextNode_18d067bf6369a475 = function(arg0, arg1, arg2) {\n const ret = getObject(arg0).createTextNode(getStringFromWasm0(arg1, arg2));\n return addHeapObject(ret);\n };\n imports.wbg.__wbg_getElementById_af8feeb3fb877150 = function(arg0, arg1, arg2) {\n const ret = getObject(arg0).getElementById(getStringFromWasm0(arg1, arg2));\n return isLikeNone(ret) ? 0 : addHeapObject(ret);\n };\n imports.wbg.__wbg_instanceof_Element_c9423704dd5d9b1d = function(arg0) {\n let result;\n try {\n result = getObject(arg0) instanceof Element;\n } catch (_) {\n result = false;\n }\n const ret = result;\n return ret;\n };\n imports.wbg.__wbg_namespaceURI_9fd9462aeda0a089 = function(arg0, arg1) {\n const ret = getObject(arg1).namespaceURI;\n var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n var len1 = WASM_VECTOR_LEN;\n getInt32Memory0()[arg0 / 4 + 1] = len1;\n getInt32Memory0()[arg0 / 4 + 0] = ptr1;\n };\n imports.wbg.__wbg_removeAttribute_8f442821de341f11 = function() { return handleError(function (arg0, arg1, arg2) {\n getObject(arg0).removeAttribute(getStringFromWasm0(arg1, arg2));\n }, arguments) };\n imports.wbg.__wbg_setAttribute_fecb2c0d020f422f = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {\n getObject(arg0).setAttribute(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));\n }, arguments) };\n imports.wbg.__wbg_target_ee132da05a9ef949 = function(arg0) {\n const ret = getObject(arg0).target;\n return isLikeNone(ret) ? 0 : addHeapObject(ret);\n };\n imports.wbg.__wbg_cancelBubble_5739e699df6294b0 = function(arg0) {\n const ret = getObject(arg0).cancelBubble;\n return ret;\n };\n imports.wbg.__wbg_addEventListener_1151978b9ef85f25 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {\n getObject(arg0).addEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3), getObject(arg4));\n }, arguments) };\n imports.wbg.__wbg_setchecked_b4c153b5e9fbc166 = function(arg0, arg1) {\n getObject(arg0).checked = arg1 !== 0;\n };\n imports.wbg.__wbg_value_a2e4cbb5179fb3b8 = function(arg0, arg1) {\n const ret = getObject(arg1).value;\n const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n const len1 = WASM_VECTOR_LEN;\n getInt32Memory0()[arg0 / 4 + 1] = len1;\n getInt32Memory0()[arg0 / 4 + 0] = ptr1;\n };\n imports.wbg.__wbg_setvalue_f9de54bc4a5880ce = function(arg0, arg1, arg2) {\n getObject(arg0).value = getStringFromWasm0(arg1, arg2);\n };\n imports.wbg.__wbg_value_6b1ddbb6e9155da3 = function(arg0, arg1) {\n const ret = getObject(arg1).value;\n const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n const len1 = WASM_VECTOR_LEN;\n getInt32Memory0()[arg0 / 4 + 1] = len1;\n getInt32Memory0()[arg0 / 4 + 0] = ptr1;\n };\n imports.wbg.__wbg_setvalue_5ef50a7282dd6d7e = function(arg0, arg1, arg2) {\n getObject(arg0).value = getStringFromWasm0(arg1, arg2);\n };\n imports.wbg.__wbg_parentElement_5a7090f336d94c74 = function(arg0) {\n const ret = getObject(arg0).parentElement;\n return isLikeNone(ret) ? 0 : addHeapObject(ret);\n };\n imports.wbg.__wbg_lastChild_b2bc9e1e4adf0cda = function(arg0) {\n const ret = getObject(arg0).lastChild;\n return isLikeNone(ret) ? 0 : addHeapObject(ret);\n };\n imports.wbg.__wbg_setnodeValue_7ed608b56bb5f51b = function(arg0, arg1, arg2) {\n getObject(arg0).nodeValue = arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2);\n };\n imports.wbg.__wbg_appendChild_f60942b2565cb803 = function() { return handleError(function (arg0, arg1) {\n const ret = getObject(arg0).appendChild(getObject(arg1));\n return addHeapObject(ret);\n }, arguments) };\n imports.wbg.__wbg_insertBefore_d8e803d8ba9a41b8 = function() { return handleError(function (arg0, arg1, arg2) {\n const ret = getObject(arg0).insertBefore(getObject(arg1), getObject(arg2));\n return addHeapObject(ret);\n }, arguments) };\n imports.wbg.__wbg_removeChild_38dc2b8a0f4f0a41 = function() { return handleError(function (arg0, arg1) {\n const ret = getObject(arg0).removeChild(getObject(arg1));\n return addHeapObject(ret);\n }, arguments) };\n imports.wbg.__wbg_document_17e852b4666eac5e = function(arg0) {\n const ret = getObject(arg0).document;\n return isLikeNone(ret) ? 0 : addHeapObject(ret);\n };\n imports.wbg.__wbg_debug_ca7d8917245536d0 = function(arg0, arg1, arg2, arg3) {\n console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));\n };\n imports.wbg.__wbg_error_1189b5de6dd1b808 = function(arg0) {\n console.error(getObject(arg0));\n };\n imports.wbg.__wbg_error_4a7b91f097a233a5 = function(arg0, arg1, arg2, arg3) {\n console.error(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));\n };\n imports.wbg.__wbg_info_d4ce670cd6ec6fde = function(arg0, arg1, arg2, arg3) {\n console.info(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));\n };\n imports.wbg.__wbg_log_50738d2ca2ec904a = function(arg0, arg1, arg2, arg3) {\n console.log(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));\n };\n imports.wbg.__wbg_warn_2eee9ed96860a8b7 = function(arg0, arg1, arg2, arg3) {\n console.warn(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));\n };\n imports.wbg.__wbg_self_c4a869f7521d7b18 = function() { return handleError(function () {\n const ret = self.self;\n return addHeapObject(ret);\n }, arguments) };\n imports.wbg.__wbg_window_f76bff89ab6e4c74 = function() { return handleError(function () {\n const ret = window.window;\n return addHeapObject(ret);\n }, arguments) };\n imports.wbg.__wbg_globalThis_71824672ea2add7c = function() { return handleError(function () {\n const ret = globalThis.globalThis;\n return addHeapObject(ret);\n }, arguments) };\n imports.wbg.__wbg_global_f78549112bdb0090 = function() { return handleError(function () {\n const ret = global.global;\n return addHeapObject(ret);\n }, arguments) };\n imports.wbg.__wbindgen_is_undefined = function(arg0) {\n const ret = getObject(arg0) === undefined;\n return ret;\n };\n imports.wbg.__wbg_newnoargs_4cbce0ba8003ced4 = function(arg0, arg1) {\n const ret = new Function(getStringFromWasm0(arg0, arg1));\n return addHeapObject(ret);\n };\n imports.wbg.__wbg_call_875d4ea9abbec88f = function() { return handleError(function (arg0, arg1) {\n const ret = getObject(arg0).call(getObject(arg1));\n return addHeapObject(ret);\n }, arguments) };\n imports.wbg.__wbg_get_02999bb2caeeff61 = function() { return handleError(function (arg0, arg1) {\n const ret = Reflect.get(getObject(arg0), getObject(arg1));\n return addHeapObject(ret);\n }, arguments) };\n imports.wbg.__wbg_new_fc6bfaed5ca1b77a = function() {\n const ret = new Object();\n return addHeapObject(ret);\n };\n imports.wbg.__wbg_valueOf_b57a82897edf3264 = function(arg0) {\n const ret = getObject(arg0).valueOf();\n return ret;\n };\n imports.wbg.__wbg_is_e0a4fb92be049653 = function(arg0, arg1) {\n const ret = Object.is(getObject(arg0), getObject(arg1));\n return ret;\n };\n imports.wbg.__wbg_set_3340302df484a06c = function() { return handleError(function (arg0, arg1, arg2) {\n const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));\n return ret;\n }, arguments) };\n imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {\n const ret = debugString(getObject(arg1));\n const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n const len1 = WASM_VECTOR_LEN;\n getInt32Memory0()[arg0 / 4 + 1] = len1;\n getInt32Memory0()[arg0 / 4 + 0] = ptr1;\n };\n imports.wbg.__wbindgen_throw = function(arg0, arg1) {\n throw new Error(getStringFromWasm0(arg0, arg1));\n };\n imports.wbg.__wbindgen_closure_wrapper106 = function(arg0, arg1, arg2) {\n const ret = makeMutClosure(arg0, arg1, 6, __wbg_adapter_18);\n return addHeapObject(ret);\n };\n imports.wbg.__wbindgen_closure_wrapper334 = function(arg0, arg1, arg2) {\n const ret = makeClosure(arg0, arg1, 119, __wbg_adapter_21);\n return addHeapObject(ret);\n };\n\n return imports;\n}\n\nfunction __wbg_init_memory(imports, maybe_memory) {\n\n}\n\nfunction __wbg_finalize_init(instance, module) {\n wasm = instance.exports;\n __wbg_init.__wbindgen_wasm_module = module;\n cachedFloat64Memory0 = null;\n cachedInt32Memory0 = null;\n cachedUint32Memory0 = null;\n cachedUint8Memory0 = null;\n\n\n return wasm;\n}\n\nfunction initSync(module) {\n if (wasm !== undefined) return wasm;\n\n const imports = __wbg_get_imports();\n\n __wbg_init_memory(imports);\n\n if (!(module instanceof WebAssembly.Module)) {\n module = new WebAssembly.Module(module);\n }\n\n const instance = new WebAssembly.Instance(module, imports);\n\n return __wbg_finalize_init(instance, module);\n}\n\nasync function __wbg_init(input) {\n if (wasm !== undefined) return wasm;\n\n if (typeof input === 'undefined') {\n input = new URL('tic_tac_toe_4d_bg.wasm', location);\n }\n const imports = __wbg_get_imports();\n\n if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) {\n input = fetch(input);\n }\n\n __wbg_init_memory(imports);\n\n const { instance, module } = await __wbg_load(await input, imports);\n\n return __wbg_finalize_init(instance, module);\n}\n\nexport { initSync }\nexport default __wbg_init;\n", "import wasm_init from \"../pkg/tic_tac_toe_4d\"\nimport \"../app.css\"\nimport * as wasm_api from \"../pkg/tic_tac_toe_4d\"\n\nvar worker = new Worker(\"webworker_glue.js\")\n\nwin_callback = winner => {\n console.log(winner)\n if (\"points\" in window) {\n window.points.then(points => {\n console.log(\"writing to achievement system\")\n if (winner === 1) {\n points.unlockAchievement(`ttt4Win`)\n points.updateMetric(`ttt4Wins`, x => x + 1, 0)\n } else if (winner === 2) { \n points.updateMetric(`ttt4Losses`, x => x + 1, 0)\n } else if (isDraw) {\n points.updateMetric(`ttt4Draws`, x => x + 1, 0)\n }\n })\n }\n}\n\nwasm_init().then(x => {\n const callback = wasm_api.main()\n console.log(\"rust initiated\", callback)\n run_ai_background = data => {\n worker.postMessage(data)\n console.log(\"dispat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qB,KACrBC,EAAsB,KACtBC,EAAqB,KAGdL,CACX,CAkBA,eAAeM,EAAWC,EAAO,CAC7B,GAAIC,IAAS,OAAW,OAAOA,EAE3B,OAAOD,EAAU,MACjBA,EAAQ,IAAI,IAAI,yBAA0B,QAAQ,GAEtD,IAAME,EAAUC,EAAkB,GAE9B,OAAOH,GAAU,UAAa,OAAO,SAAY,YAAcA,aAAiB,SAAa,OAAO,KAAQ,YAAcA,aAAiB,OAC3IA,EAAQ,MAAMA,CAAK,GAKvB,GAAM,CAAE,SAAAI,EAAU,OAAAC,CAAO,EAAI,MAAMC,EAAW,MAAMN,EAAOE,CAAO,EAElE,OAAOK,EAAoBH,EAAUC,CAAM,CAC/C,CAGA,IAAOG,EAAQC,EC5oBf,IAAIC,EAAS,IAAI,OAAO,mBAAmB,EAE3C,aAAeC,GAAU,CACrB,QAAQ,IAAIA,CAAM,EACd,WAAY,QACZ,OAAO,OAAO,KAAKC,GAAU,CACzB,QAAQ,IAAI,+BAA+B,EACvCD,IAAW,GACXC,EAAO,kBAAkB,SAAS,EAClCA,EAAO,aAAa,WAAYC,GAAKA,EAAI,EAAG,CAAC,GACtCF,IAAW,EAClBC,EAAO,aAAa,aAAcC,GAAKA,EAAI,EAAG,CAAC,EACxC,QACPD,EAAO,aAAa,YAAaC,GAAKA,EAAI,EAAG,CAAC,CAEtD,CAAC,CAET,EAEAC,EAAU,EAAE,KAAKD,GAAK,CAClB,IAAME,EAAoBC,EAAK,EAC/B,QAAQ,IAAI,iBAAkBD,CAAQ,EACtC,kBAAoBE,GAAQ,CACxBP,EAAO,YAAYO,CAAI,EACvB,QAAQ,IAAI,aAAa,CAC7B,EAEAP,EAAO,UAAYQ,GAAM,CACrBH,EAASG,EAAG,IAAI,CACpB,CACJ,CAAC",
|
|
"names": ["wasm", "heap", "getObject", "idx", "heap_next", "dropObject", "takeObject", "ret", "addHeapObject", "obj", "cachedTextDecoder", "cachedUint8Memory0", "getUint8Memory0", "getStringFromWasm0", "ptr", "len", "isLikeNone", "x", "cachedFloat64Memory0", "getFloat64Memory0", "cachedInt32Memory0", "getInt32Memory0", "debugString", "val", "type", "description", "name", "length", "debug", "i", "builtInMatches", "className", "WASM_VECTOR_LEN", "cachedTextEncoder", "encodeString", "arg", "view", "buf", "passStringToWasm0", "malloc", "realloc", "mem", "offset", "code", "makeMutClosure", "arg0", "arg1", "dtor", "f", "state", "real", "args", "a", "passArray8ToWasm0", "__wbg_adapter_18", "arg2", "ptr0", "len0", "makeClosure", "__wbg_adapter_21", "getArrayU8FromWasm0", "notDefined", "what", "main", "ret", "wasm", "takeObject", "cachedUint32Memory0", "getUint32Memory0", "getArrayJsValueFromWasm0", "ptr", "len", "slice", "result", "handleError", "f", "args", "e", "addHeapObject", "__wbg_load", "module", "imports", "bytes", "instance", "__wbg_get_imports", "arg0", "getObject", "arg1", "v0", "getArrayU8FromWasm0", "getStringFromWasm0", "obj", "getFloat64Memory0", "isLikeNone", "getInt32Memory0", "ptr1", "passStringToWasm0", "len1", "WASM_VECTOR_LEN", "deferred0_0", "deferred0_1", "arg2", "arg3", "arg4", "debugString", "makeMutClosure", "__wbg_adapter_18", "makeClosure", "__wbg_adapter_21", "__wbg_finalize_init", "instance", "module", "wasm", "__wbg_init", "cachedFloat64Memory0", "cachedInt32Memory0", "cachedUint32Memory0", "cachedUint8Memory0", "__wbg_init", "input", "wasm", "imports", "__wbg_get_imports", "instance", "module", "__wbg_load", "__wbg_finalize_init", "tic_tac_toe_4d_default", "__wbg_init", "worker", "winner", "points", "x", "tic_tac_toe_4d_default", "callback", "main", "data", "ev"]
|
|
}
|