var app,GLOBAL_TIMER=0;function run(){app=new NunuApp,bar=document.getElementById("preloader"),webaudio=new WebAudio,sound=webaudio.createSound().load("assets/music/music.mp3",function(){console.log(app),app.loadProgramAsync("../../327.nnn",n,o)});var e=document.getElementById("logo"),n=function(){console.log("ON LOAD"),document.body.removeChild(e),bar.style.width=parseFloat(bar.style.width)+.9*(100-parseFloat(bar.style.width))+"vw",document.getElementById("loading").style.display="none",document.getElementById("calculating").style.display="block",setTimeout(function(){app.run()},10)},o=function(e){if(console.log("ON PROGRESS",e.loaded/e.total*100),e.lengthComputable){var n=e.loaded/e.total*100;bar.style.width=.8*n+"vw"}};window.requestAnimationFrame||(window.requestAnimationFrame=window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)}function keyEvent(){let e=!1;document.querySelector("button").focus(),window.onkeydown=function(n){27==n.keyCode&&window.close(),32!=n.keyCode||e||(e=!0,document.getElementById("preloader").style.display="block",document.getElementById("loading").style.display="block",document.getElementById("start").style.display="none",run())}}window.addEventListener("load",e=>{keyEvent()});