varModule=typeofModule!="undefined"?Module:{};FTEH={h:[],f:{}};FTE_SW=null;if(!Module["canvas"]){Module["canvas"]=document.getElementById("canvas");if(!Module["canvas"]){console.log("No canvas element defined yet.");Module.canvas=document.createElement("canvas");Module.canvas.style.width="100%";Module.canvas.style.height="100%";document.body.appendChild(Module["canvas"])}}Module["loadcachedfiles"]=function(){addRunDependency("loadcachedfiles");try{caches.open("user").then(c=>{Module["cache"]=c;returnc.keys()}).then(keys=>{constcache=Module["cache"];for(varrofkeys){constidx=r.url.indexOf("/_/");if(idx<0)continue;constfn=r.url.substr(idx+3);addRunDependency(fn);constresponse=cache.match(r).then(response=>{returnresponse.arrayBuffer()}).then(buffer=>{letb=FTEH.h[_emscriptenfte_buf_createfromarraybuf(buffer)];b.n=fn;FTEH.f[b.n]=b}).finally(()=>{removeRunDependency(fn)})}}).finally(()=>{removeRunDependency("loadcachedfiles")})}catch(e){removeRunDependency("loadcachedfiles")}};Module["preRun"]=Module["loadcachedfiles"];if(typeofModule["files"]!=="undefined"&&Object.keys(Module["files"]).length>0){Module["preRun"]=function(){Module["loadcachedfiles"]();Module["curfile"]=undefined;letfiles=Module["files"];letnames=Object.keys(files);for(leti=0;i<names.length;i++){letab=files[names[i]];letn=names[i];if(typeofab=="string"){addRunDependency(n);letxhr=newXMLHttpRequest;xhr.responseType="arraybuffer";xhr.open("GET",ab);xhr.onload=function(){if(Module["curfile"]==n)Module["curfile"]=undefined;if(this.status>=200&&this.status<300){letb=FTEH.h[_emscriptenfte_buf_createfromarraybuf(this.response)];b.n=n;FTEH.f[b.n]=b;removeRunDependency(n)}elseremoveRunDependency(n)};xhr.onprogress=function(e){if(typeofModule["curfile"]=="undefined")Module["curfile"]=n;if(Module["setStatus"]&&Module["curfile"]==n)Module["setStatus"](n+" ("+e.loaded+"/"+e.total+")")};xhr.onerror=function(){if(Module["curfile"]==n)Module["curfile"]=undefined;removeRunDependency(n)};xhr.send()}elseif(typeofab.then=="function"){addRunDependency(n);ab.then(value=>{letb=FTEH.h[_emscriptenfte_buf_createfromarraybuf(value)];b.n=n;FTEH.f[b.n]=b;removeRunDependency(n)},reason=>{console.log(reason);removeRunDependency(n)})}else{letb=FTEH.h[_emscriptenfte_buf_createfromarraybuf(ab)];b.n=n;FTEH.f[b.n]=b}}}}elseif(!Module["manifest"]){letman=window.location.protocol+"//"+window.location.host+window.location.pathname;if(man.substr(-1)!="/")man+=".fmf";elseman+="index.fmf";Module["manifest"]=man;if(window.location.hash!="")Module["manifest"]=window.location.hash.substring(1)}if(!Module["arguments"]){Module["arguments"]=[];constqstrings=decodeURIComponent(window.location.search.substring(1));if(qstrings!=""){constqstring=qstrings.split(" ");for(leti=0;i<qstring.length;i++){if(qstring[i]=="-manifest")man=undefined;if((qstring[i]=="+sv_port_rtc"||qstring[i]=="+connect"||qstring[i]=="+join"||qstring[i]=="+observe"||qstring[i]=="+qtvplay")&&i+1<qstring.length){Module["arguments"]=Module["arguments"].concat(qstring[i+0],qstring[i+1]);i++}elseif(!document.referrer)Module["arguments"]=Module["arguments"].concat(qstring[i])}}if(Module["manifest"]!=undefined)Module["arguments"]=Module["arguments"].concat(["-manifest",Module["manifest"]]);Module["mayregisterscemes"]=true}varmoduleOverrides=Object.assign({},Module);vararguments_=[];varthisProgram="./this.program";varquit_=(status,toThrow)=>{throwtoThrow};varENVIRONMENT_IS_WEB=typeofwindow=="object";varENVIRONMENT_IS_WORKER=typeofimportScripts=="function";varENVIRONMENT_IS_NODE=typeofprocess=="object"&&typeofprocess.versions=="object"&&typeofprocess.versions.node=="string";varscriptDirectory="";functionlocateFile(path){if(Module["locateFile"]){returnModule["locateFile"](path,scriptDirectory)}returnscriptDirectory+path}varread_,readAsync,readBinary,setWindowTitle;functionlogExceptionOnExit(e){if(einstanceofExitStatus)return;lettoLog=e;err("exiting due to exception: "+toLog)}varfs;varnodePath;varrequireNodeFS;if(ENVIRONMENT_IS_NODE){if(ENVIRONMENT_IS_WORKER){scriptDirectory=require("path").d