Skip to content

Commit 9e4dc64

Browse files
committed
Deploying to gh-pages from @ bc1f724 🚀
1 parent 2f63f5c commit 9e4dc64

File tree

2 files changed

+73
-74
lines changed

2 files changed

+73
-74
lines changed

homotopy_web.js

+73-74
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ function addHeapObject(obj) {
3131
return idx;
3232
}
3333

34-
let WASM_VECTOR_LEN = 0;
34+
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
35+
36+
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
3537

3638
let cachedUint8Memory0 = null;
3739

@@ -42,6 +44,35 @@ function getUint8Memory0() {
4244
return cachedUint8Memory0;
4345
}
4446

47+
function getStringFromWasm0(ptr, len) {
48+
ptr = ptr >>> 0;
49+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
50+
}
51+
52+
function isLikeNone(x) {
53+
return x === undefined || x === null;
54+
}
55+
56+
let cachedFloat64Memory0 = null;
57+
58+
function getFloat64Memory0() {
59+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
60+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
61+
}
62+
return cachedFloat64Memory0;
63+
}
64+
65+
let cachedInt32Memory0 = null;
66+
67+
function getInt32Memory0() {
68+
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
69+
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
70+
}
71+
return cachedInt32Memory0;
72+
}
73+
74+
let WASM_VECTOR_LEN = 0;
75+
4576
const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
4677

4778
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -96,37 +127,6 @@ function passStringToWasm0(arg, malloc, realloc) {
96127
return ptr;
97128
}
98129

99-
function isLikeNone(x) {
100-
return x === undefined || x === null;
101-
}
102-
103-
let cachedInt32Memory0 = null;
104-
105-
function getInt32Memory0() {
106-
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
107-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
108-
}
109-
return cachedInt32Memory0;
110-
}
111-
112-
const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
113-
114-
if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
115-
116-
function getStringFromWasm0(ptr, len) {
117-
ptr = ptr >>> 0;
118-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
119-
}
120-
121-
let cachedFloat64Memory0 = null;
122-
123-
function getFloat64Memory0() {
124-
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
125-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
126-
}
127-
return cachedFloat64Memory0;
128-
}
129-
130130
let cachedBigInt64Memory0 = null;
131131

132132
function getBigInt64Memory0() {
@@ -292,6 +292,7 @@ function __wbg_adapter_67(arg0, arg1, arg2) {
292292
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h57cf754e6345fa20(arg0, arg1, addHeapObject(arg2));
293293
}
294294

295+
function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; }
295296
/**
296297
*/
297298
export function main_js() {
@@ -325,8 +326,6 @@ function handleError(f, args) {
325326
}
326327
}
327328

328-
function notDefined(what) { return () => { throw new Error(`${what} is not defined`); }; }
329-
330329
function getArrayJsValueFromWasm0(ptr, len) {
331330
ptr = ptr >>> 0;
332331
const mem = getUint32Memory0();
@@ -411,6 +410,11 @@ async function __wbg_load(module, imports) {
411410
function __wbg_get_imports() {
412411
const imports = {};
413412
imports.wbg = {};
413+
imports.wbg.__wbindgen_boolean_get = function(arg0) {
414+
const v = getObject(arg0);
415+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
416+
return ret;
417+
};
414418
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
415419
takeObject(arg0);
416420
};
@@ -423,23 +427,15 @@ function __wbg_get_imports() {
423427
const ret = false;
424428
return ret;
425429
};
426-
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
427-
const ret = getObject(arg0);
428-
return addHeapObject(ret);
429-
};
430430
imports.wbg.__wbindgen_is_undefined = function(arg0) {
431431
const ret = getObject(arg0) === undefined;
432432
return ret;
433433
};
434-
imports.wbg.__wbg_displaypanicmessage_4e3d1ee241b17374 = typeof display_panic_message == 'function' ? display_panic_message : notDefined('display_panic_message');
435-
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
436-
const obj = getObject(arg1);
437-
const ret = typeof(obj) === 'string' ? obj : undefined;
438-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
439-
var len1 = WASM_VECTOR_LEN;
440-
getInt32Memory0()[arg0 / 4 + 1] = len1;
441-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
434+
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
435+
const ret = getObject(arg0);
436+
return addHeapObject(ret);
442437
};
438+
imports.wbg.__wbg_displaypanicmessage_4e3d1ee241b17374 = typeof display_panic_message == 'function' ? display_panic_message : notDefined('display_panic_message');
443439
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
444440
const ret = getStringFromWasm0(arg0, arg1);
445441
return addHeapObject(ret);
@@ -450,10 +446,13 @@ function __wbg_get_imports() {
450446
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
451447
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
452448
};
453-
imports.wbg.__wbindgen_boolean_get = function(arg0) {
454-
const v = getObject(arg0);
455-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
456-
return ret;
449+
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
450+
const obj = getObject(arg1);
451+
const ret = typeof(obj) === 'string' ? obj : undefined;
452+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
453+
var len1 = WASM_VECTOR_LEN;
454+
getInt32Memory0()[arg0 / 4 + 1] = len1;
455+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
457456
};
458457
imports.wbg.__wbg_getFirebase_c78fb348e4de0a93 = function() {
459458
const ret = getFirebase();
@@ -564,17 +563,21 @@ function __wbg_get_imports() {
564563
const ret = getObject(arg0).then(takeObject(arg1), takeObject(arg2));
565564
return addHeapObject(ret);
566565
};
567-
imports.wbg.__wbg_data_343848b434794d53 = function(arg0) {
568-
const ret = getObject(arg0).data();
569-
return addHeapObject(ret);
570-
};
571566
imports.wbg.__wbg_id_556d7a65fc36afdc = function(arg0, arg1) {
572567
const ret = getObject(arg1).id;
573568
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
574569
const len1 = WASM_VECTOR_LEN;
575570
getInt32Memory0()[arg0 / 4 + 1] = len1;
576571
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
577572
};
573+
imports.wbg.__wbg_data_343848b434794d53 = function(arg0) {
574+
const ret = getObject(arg0).data();
575+
return addHeapObject(ret);
576+
};
577+
imports.wbg.__wbindgen_as_number = function(arg0) {
578+
const ret = +getObject(arg0);
579+
return ret;
580+
};
578581
imports.wbg.__wbindgen_is_object = function(arg0) {
579582
const val = getObject(arg0);
580583
const ret = typeof(val) === 'object' && val !== null;
@@ -617,10 +620,6 @@ function __wbg_get_imports() {
617620
getInt32Memory0()[arg0 / 4 + 1] = len1;
618621
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
619622
};
620-
imports.wbg.__wbindgen_as_number = function(arg0) {
621-
const ret = +getObject(arg0);
622-
return ret;
623-
};
624623
imports.wbg.__wbindgen_number_new = function(arg0) {
625624
const ret = arg0;
626625
return addHeapObject(ret);
@@ -1712,36 +1711,36 @@ function __wbg_get_imports() {
17121711
const ret = wasm.memory;
17131712
return addHeapObject(ret);
17141713
};
1715-
imports.wbg.__wbindgen_closure_wrapper4221 = function(arg0, arg1, arg2) {
1716-
const ret = makeMutClosure(arg0, arg1, 1902, __wbg_adapter_48);
1714+
imports.wbg.__wbindgen_closure_wrapper3203 = function(arg0, arg1, arg2) {
1715+
const ret = makeMutClosure(arg0, arg1, 1646, __wbg_adapter_48);
17171716
return addHeapObject(ret);
17181717
};
1719-
imports.wbg.__wbindgen_closure_wrapper4223 = function(arg0, arg1, arg2) {
1720-
const ret = makeClosure(arg0, arg1, 1902, __wbg_adapter_51);
1718+
imports.wbg.__wbindgen_closure_wrapper3205 = function(arg0, arg1, arg2) {
1719+
const ret = makeClosure(arg0, arg1, 1646, __wbg_adapter_51);
17211720
return addHeapObject(ret);
17221721
};
1723-
imports.wbg.__wbindgen_closure_wrapper4225 = function(arg0, arg1, arg2) {
1724-
const ret = makeMutClosure(arg0, arg1, 1902, __wbg_adapter_54);
1722+
imports.wbg.__wbindgen_closure_wrapper3207 = function(arg0, arg1, arg2) {
1723+
const ret = makeMutClosure(arg0, arg1, 1646, __wbg_adapter_54);
17251724
return addHeapObject(ret);
17261725
};
1727-
imports.wbg.__wbindgen_closure_wrapper4227 = function(arg0, arg1, arg2) {
1728-
const ret = makeMutClosure(arg0, arg1, 1902, __wbg_adapter_54);
1726+
imports.wbg.__wbindgen_closure_wrapper3209 = function(arg0, arg1, arg2) {
1727+
const ret = makeMutClosure(arg0, arg1, 1646, __wbg_adapter_54);
17291728
return addHeapObject(ret);
17301729
};
1731-
imports.wbg.__wbindgen_closure_wrapper4229 = function(arg0, arg1, arg2) {
1732-
const ret = makeMutClosure(arg0, arg1, 1902, __wbg_adapter_54);
1730+
imports.wbg.__wbindgen_closure_wrapper3211 = function(arg0, arg1, arg2) {
1731+
const ret = makeMutClosure(arg0, arg1, 1646, __wbg_adapter_54);
17331732
return addHeapObject(ret);
17341733
};
1735-
imports.wbg.__wbindgen_closure_wrapper4231 = function(arg0, arg1, arg2) {
1736-
const ret = makeMutClosure(arg0, arg1, 1902, __wbg_adapter_61);
1734+
imports.wbg.__wbindgen_closure_wrapper3213 = function(arg0, arg1, arg2) {
1735+
const ret = makeMutClosure(arg0, arg1, 1646, __wbg_adapter_61);
17371736
return addHeapObject(ret);
17381737
};
1739-
imports.wbg.__wbindgen_closure_wrapper8260 = function(arg0, arg1, arg2) {
1740-
const ret = makeClosure(arg0, arg1, 2907, __wbg_adapter_64);
1738+
imports.wbg.__wbindgen_closure_wrapper5904 = function(arg0, arg1, arg2) {
1739+
const ret = makeClosure(arg0, arg1, 2302, __wbg_adapter_64);
17411740
return addHeapObject(ret);
17421741
};
1743-
imports.wbg.__wbindgen_closure_wrapper8380 = function(arg0, arg1, arg2) {
1744-
const ret = makeMutClosure(arg0, arg1, 2934, __wbg_adapter_67);
1742+
imports.wbg.__wbindgen_closure_wrapper6024 = function(arg0, arg1, arg2) {
1743+
const ret = makeMutClosure(arg0, arg1, 2329, __wbg_adapter_67);
17451744
return addHeapObject(ret);
17461745
};
17471746

homotopy_web_bg.wasm

-2.73 MB
Binary file not shown.

0 commit comments

Comments
 (0)