u?u:d+a));return 1===n?(t=e[r-1],o+=l[t>>2],o+=l[t<<4&63],o+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],o+=l[t>>10],o+=l[t>>4&63],o+=l[t<<2&63],o+="="),i.push(o),i.join("")}r.byteLength=o,r.toByteArray=i,r.fromByteArray=d;for(var l=[],u=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=0,p=f.length;h>3);if(commentOffset=r+1+2+1+2+(o<<3)+7>>3,17==n||commentOffset>e.length)return!1;for(var i=n+(6+(o<<4)+(t.length-1<<6)<>>=8)if(e[a]!=(255&i))return!1;return String.fromCharCode.apply(null,e.subarray(commentOffset,commentOffset+t.length))==t}},decompress:function(e,t){var r=this.gzip.hasUnityMarker(e)?this.gzip:this.brotli.hasUnityMarker(e)?this.brotli:this.identity;if(this.serverSetupWarningEnabled&&r!=this.identity&&(console.log("You can reduce your startup time if you configure your web server to host .unityweb files using "+(r==this.gzip?"gzip":"brotli")+" compression."),this.serverSetupWarningEnabled=!1),"function"!=typeof t)return r.decompress(e);if(!r.worker){var n=URL.createObjectURL(new Blob(["this.require = ",r.require.toString(),"; this.decompress = ",r.decompress.toString(),"; this.onmessage = ",function(e){var t={id:e.data.id,decompressed:this.decompress(e.data.compressed)};postMessage(t,t.decompressed?[t.decompressed.buffer]:[])}.toString(),"; postMessage({ ready: true });"],{type:"text/javascript"}));r.worker=new Worker(n),r.worker.onmessage=function(e){return e.data.ready?void URL.revokeObjectURL(n):(this.callbacks[e.data.id](e.data.decompressed),void delete this.callbacks[e.data.id])},r.worker.callbacks={},r.worker.nextCallbackId=0}var o=r.worker.nextCallbackId++;r.worker.callbacks[o]=t,r.worker.postMessage({id:o,compressed:e},[e.buffer])},serverSetupWarningEnabled:!0},Cryptography:{crc32:function(e){var t=UnityLoader.Cryptography.crc32.module;if(!t){var r=new ArrayBuffer(16777216),n=function(e,t,r){"use asm";var n=new e.Uint8Array(r);var o=new e.Uint32Array(r);function i(e,t){e=e|0;t=t|0;var r=0;for(r=o[1024>>2]|0;t;e=e+1|0,t=t-1|0)r=o[(r&255^n[e])<<2>>2]^r>>>8^4278190080;o[1024>>2]=r}return{process:i}}({Uint8Array:Uint8Array,Uint32Array:Uint32Array},null,r);t=UnityLoader.Cryptography.crc32.module={buffer:r,HEAPU8:new Uint8Array(r),HEAPU32:new Uint32Array(r),process:n.process,crc32:1024,data:1028};for(var o=0;o<256;o++){for(var i=255^o,a=0;a<8;a++)i=i>>>1^(1&i?3988292384:0);t.HEAPU32[o]=i}}t.HEAPU32[t.crc32>>2]=0;for(var s=0;s>2];return new Uint8Array([l>>24,l>>16,l>>8,l])},md5:function(e){var t=UnityLoader.Cryptography.md5.module;if(!t){var r=new ArrayBuffer(16777216),n=function(e,t,r){"use asm";var n=new e.Uint32Array(r);function o(e,t){e=e|0;t=t|0;var r=0,o=0,i=0,a=0,s=0,d=0,l=0,u=0,c=0,f=0,h=0,p=0;r=n[128]|0,o=n[129]|0,i=n[130]|0,a=n[131]|0;for(;t;e=e+64|0,t=t-1|0){s=r;d=o;l=i;u=a;for(f=0;(f|0)<512;f=f+8|0){p=n[f>>2]|0;r=r+(n[f+4>>2]|0)+(n[e+(p>>>14)>>2]|0)+((f|0)<128?a^o&(i^a):(f|0)<256?i^a&(o^i):(f|0)<384?o^i^a:i^(o|~a))|0;h=(r<<(p&31)|r>>>32-(p&31))+o|0;r=a;a=i;i=o;o=h}r=r+s|0;o=o+d|0;i=i+l|0;a=a+u|0}n[128]=r;n[129]=o;n[130]=i;n[131]=a}return{process:o}}({Uint32Array:Uint32Array},null,r);t=UnityLoader.Cryptography.md5.module={buffer:r,HEAPU8:new Uint8Array(r),HEAPU32:new Uint32Array(r),process:n.process,md5:512,data:576},t.HEAPU32.set(new Uint32Array([7,3614090360,65548,3905402710,131089,606105819,196630,3250441966,262151,4118548399,327692,1200080426,393233,2821735955,458774,4249261313,524295,1770035416,589836,2336552879,655377,4294925233,720918,2304563134,786439,1804603682,851980,4254626195,917521,2792965006,983062,1236535329,65541,4129170786,393225,3225465664,720910,643717713,20,3921069994,327685,3593408605,655369,38016083,983054,3634488961,262164,3889429448,589829,568446438,917513,3275163606,196622,4107603335,524308,1163531501,851973,2850285829,131081,4243563512,458766,1735328473,786452,2368359562,327684,4294588738,524299,2272392833,720912,1839030562,917527,4259657740,65540,2763975236,262155,1272893353,458768,4139469664,655383,3200236656,851972,681279174,11,3936430074,196624,3572445317,393239,76029189,589828,3654602809,786443,3873151461,983056,530742520,131095,3299628645,6,4096336452,458762,1126891415,917519,2878612391,327701,4237533241,786438,1700485571,196618,2399980690,655375,4293915773,65557,2240044497,524294,1873313359,983050,4264355552,393231,2734768916,851989,1309151649,262150,4149444226,720906,3174756917,131087,718787259,589845,3951481745]))}t.HEAPU32.set(new Uint32Array([1732584193,4023233417,2562383102,271733878]),t.md5>>2);for(var o=0;o>6),e.length-o<64){if(i=e.length-o,t.HEAPU8.set(e.subarray(e.length-i,e.length),t.data),o+=i,t.HEAPU8[t.data+i++]=128,i>56){for(var a=i;a<64;a++)t.HEAPU8[t.data+a]=0;t.process(t.data,1),i=0}for(var a=i;a<64;a++)t.HEAPU8[t.data+a]=0;for(var s=e.length,d=0,a=56;a<64;a++,d=(224&s)>>5,s/=256)t.HEAPU8[t.data+a]=((31&s)<<3)+d;t.process(t.data,1)}}return new Uint8Array(t.HEAPU8.subarray(t.md5,t.md5+16))},sha1:function(e){var t=UnityLoader.Cryptography.sha1.module;if(!t){var r=new ArrayBuffer(16777216),n=function(e,t,r){"use asm";var n=new e.Uint32Array(r);function o(e,t){e=e|0;t=t|0;var r=0,o=0,i=0,a=0,s=0,d=0,l=0,u=0,c=0,f=0,h=0,p=0;r=n[80]|0,o=n[81]|0,i=n[82]|0,a=n[83]|0,s=n[84]|0;for(;t;e=e+64|0,t=t-1|0){d=r;l=o;u=i;c=a;f=s;for(p=0;(p|0)<320;p=p+4|0,s=a,a=i,i=o<<30|o>>>2,o=r,r=h){if((p|0)<64){h=n[e+p>>2]|0;h=h<<24&4278190080|h<<8&16711680|h>>>8&65280|h>>>24&255}else{h=n[p-12>>2]^n[p-32>>2]^n[p-56>>2]^n[p-64>>2];h=h<<1|h>>>31}n[p>>2]=h;h=h+((r<<5|r>>>27)+s)+((p|0)<80?(o&i|~o&a|0)+1518500249|0:(p|0)<160?(o^i^a)+1859775393|0:(p|0)<240?(o&i|o&a|i&a)+2400959708|0:(o^i^a)+3395469782|0)|0}r=r+d|0;o=o+l|0;i=i+u|0;a=a+c|0;s=s+f|0}n[80]=r;n[81]=o;n[82]=i;n[83]=a;n[84]=s}return{process:o}}({Uint32Array:Uint32Array},null,r);t=UnityLoader.Cryptography.sha1.module={buffer:r,HEAPU8:new Uint8Array(r),HEAPU32:new Uint32Array(r),process:n.process,sha1:320,data:384}}t.HEAPU32.set(new Uint32Array([1732584193,4023233417,2562383102,271733878,3285377520]),t.sha1>>2);for(var o=0;o>6),e.length-o<64){if(i=e.length-o,t.HEAPU8.set(e.subarray(e.length-i,e.length),t.data),o+=i,t.HEAPU8[t.data+i++]=128,i>56){for(var a=i;a<64;a++)t.HEAPU8[t.data+a]=0;t.process(t.data,1),i=0}for(var a=i;a<64;a++)t.HEAPU8[t.data+a]=0;for(var s=e.length,d=0,a=63;a>=56;a--,d=(224&s)>>5,s/=256)t.HEAPU8[t.data+a]=((31&s)<<3)+d;t.process(t.data,1)}}for(var l=new Uint8Array(20),a=0;a\\[(\\d+)\\]\\+\\d+\\))()":"((\\s*)wasm-function\\[(\\d+)\\])@(blob:.*)",blobParseRegExp:new RegExp("^(blob:.*)(:\\d+:\\d+)$"),getModule:function(e){var t=e.message.match(new RegExp(this.stackTraceFormat,"g"));for(var r in t){var n=t[r].match(new RegExp("^"+this.stackTraceFormat+"$")),o=n[7].match(this.blobParseRegExp);if(o&&UnityLoader.Blobs[o[1]]&&UnityLoader.Blobs[o[1]].Module)return UnityLoader.Blobs[o[1]].Module}},demangle:function(e,t){var r=e.message;return t?(r=r.replace(new RegExp(this.stackTraceFormat,"g"),function(e){var r=e.match(new RegExp("^"+this.stackTraceFormat+"$")),n=r[7].match(this.blobParseRegExp),o=t.demangleSymbol?t.demangleSymbol(r[4]):r[4],i=n&&UnityLoader.Blobs[n[1]]&&UnityLoader.Blobs[n[1]].url?UnityLoader.Blobs[n[1]].url:"blob";return r[1]+o+(r[2]!=o?" ["+r[2]+"]":"")+" ("+(n?i.substr(i.lastIndexOf("/")+1)+n[2]:r[7])+")"}.bind(this)),t.useWasm&&(r=r.replace(new RegExp(this.stackTraceFormatWasm,"g"),function(e){var r=e.match(new RegExp("^"+this.stackTraceFormatWasm+"$")),n=t.demangleSymbol?t.demangleSymbol(r[3]):r[3],o=r[4].match(this.blobParseRegExp),i=o&&UnityLoader.Blobs[o[1]]&&UnityLoader.Blobs[o[1]].url?UnityLoader.Blobs[o[1]].url:"blob";return(n==r[3]?r[1]:r[2]+n+" [wasm:"+r[3]+"]")+(r[4]?" ("+(o?i.substr(i.lastIndexOf("/")+1)+o[2]:r[4])+")":"")}.bind(this))),r):r},handler:function(e,t){var r=t?this.demangle(e,t):e.message;if(!(t&&t.errorhandler&&t.errorhandler(r,e.filename,e.lineno)||(console.log("Invoking error handler due to\n"+r),"function"==typeof dump&&dump("Invoking error handler due to\n"+r),r.indexOf("UnknownError")!=-1||r.indexOf("Program terminated with exit(0)")!=-1||this.didShowErrorMessage))){var r="An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was:\n"+r;r.indexOf("DISABLE_EXCEPTION_CATCHING")!=-1?r="An exception has occurred, but exception handling has been disabled in this build. If you are the developer of this content, enable exceptions in your project WebGL player settings to be able to catch the exception or see the stack trace.":r.indexOf("Cannot enlarge memory arrays")!=-1?r="Out of memory. If you are the developer of this content, try allocating more memory to your WebGL build in the WebGL player settings.":r.indexOf("Invalid array buffer length")==-1&&r.indexOf("Invalid typed array length")==-1&&r.indexOf("out of memory")==-1&&r.indexOf("could not allocate memory")==-1||(r="The browser could not allocate enough memory for the WebGL content. If you are the developer of this content, try allocating less memory to your WebGL build in the WebGL player settings."),alert(r),this.didShowErrorMessage=!0}},popup:function(e,t,r){r=r||[{text:"OK"}];var n=document.createElement("div");n.style.cssText="position: absolute; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); text-align: center; border: 1px solid black; padding: 5px; background: #E8E8E8";var o=document.createElement("span");o.textContent=t,n.appendChild(o),n.appendChild(document.createElement("br"));for(var i=0;i=10.1)?1:0}(),hasThreads:"undefined"!=typeof SharedArrayBuffer,hasWasm:"object"==typeof WebAssembly&&"function"==typeof WebAssembly.validate&&"function"==typeof WebAssembly.compile,hasWasmThreads:function(){if("object"!=typeof WebAssembly)return!1;if("undefined"==typeof SharedArrayBuffer)return!1;var e=new WebAssembly.Memory({initial:1,maximum:1,shared:!0}),t=e.buffer instanceof SharedArrayBuffer;return delete e,t}()}}(),compatibilityCheck:function(e,t,r){UnityLoader.SystemInfo.hasWebGL?UnityLoader.SystemInfo.mobile?e.popup("Please note that Unity WebGL is not currently supported on mobiles. Press OK if you wish to continue anyway.",[{text:"OK",callback:t}]):["Edge","Firefox","Chrome","Safari"].indexOf(UnityLoader.SystemInfo.browser)==-1?e.popup("Please note that your browser is not currently supported for this Unity WebGL content. Press OK if you wish to continue anyway.",[{text:"OK",callback:t}]):t():e.popup("Your browser does not support WebGL",[{text:"OK",callback:r}])},buildCompatibilityCheck:function(e,t,r){function n(){if("undefined"==typeof e.graphicsAPI)return!0;for(var t=0;t=1)return!0;e.print("Warning: Unsupported graphics API "+r)}return!1}n()?!UnityLoader.SystemInfo.hasThreads&&e.multithreading?r("Your browser does not support multithreading."):t():r("Your browser does not support any of the required graphics API for this content.")},Blobs:{},loadCode:function(e,t,r,n){var o=[].slice.call(UnityLoader.Cryptography.md5(t)).map(function(e){return("0"+e.toString(16)).substr(-2)}).join(""),i=document.createElement("script"),a=(n.isModularized?function(e){return new Blob([e],{type:"application/javascript"})}:function(e,t){return new Blob(['UnityLoader["'+t+'"]=',e],{type:"text/javascript"})})(t,o),s=URL.createObjectURL(a);UnityLoader.Blobs[s]=n,e.deinitializers.push(function(){delete UnityLoader.Blobs[s],delete UnityLoader[o],document.body.removeChild(document.getElementById(o))}),i.src=s,i.id=o,i.onload=function(){e.developmentBuild||URL.revokeObjectURL(s),r(o,a),delete i.onload},document.body.appendChild(i)},setupIndexedDBJob:function(e,t){function r(n){r.called||(r.called=!0,e.indexedDB=n,t.complete())}try{var n=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,o=n.open("/idbfs-test");o.onerror=function(e){e.preventDefault(),r()},o.onsuccess=function(){o.result.close(),r(n)}}catch(e){r()}},processWasmCodeJob:function(e,t){e.wasmBinary=UnityLoader.Job.result(e,"downloadWasmCode"),t.complete()},processWasmFrameworkJob:function(e,t){var r=UnityLoader.Job.result(e,"downloadWasmFramework");UnityLoader.loadCode(e,r,function(r,n){e.mainScriptUrlOrBlob=n,e.isModularized&&(UnityLoader[r]=UnityModule),UnityLoader[r](e),t.complete()},{Module:e,url:e.wasmFrameworkUrl,isModularized:e.isModularized})},processAsmCodeJob:function(e,t){var r=UnityLoader.Job.result(e,"downloadAsmCode");UnityLoader.loadCode(e,Math.fround?r:UnityLoader.Utils.optimizeMathFround(r),function(r,n){e.isModularized?e.asmJsUrlOrBlob=n:e.asm=UnityLoader[r],t.complete()},{Module:e,url:e.asmCodeUrl,isModularized:e.isModularized})},processAsmFrameworkJob:function(e,t){var r=UnityLoader.Job.result(e,"downloadAsmFramework");UnityLoader.loadCode(e,r,function(r,n){e.isModularized&&(e.mainScriptUrlOrBlob=n,UnityLoader[r]=UnityModule),UnityLoader[r](e),t.complete()},{Module:e,url:e.asmFrameworkUrl,isModularized:e.isModularized})},processMemoryInitializerJob:function(e,t){e.memoryInitializerRequest.status=200,e.memoryInitializerRequest.response=UnityLoader.Job.result(e,"downloadMemoryInitializer"),e.memoryInitializerRequest.callback&&e.memoryInitializerRequest.callback(),t.complete()},processDataJob:function(e,t){var r=UnityLoader.Job.result(e,"downloadData"),n=new DataView(r.buffer,r.byteOffset,r.byteLength),o=0,i="UnityWebData1.0\0";if(!String.fromCharCode.apply(null,r.subarray(o,o+i.length))==i)throw"unknown data format";o+=i.length;var a=n.getUint32(o,!0);for(o+=4;o0;c=f,f=u.indexOf("/",c)+1)e.FS_createPath(u.substring(0,c),u.substring(c,f-1),!0,!0);e.FS_createDataFile(u,null,r.subarray(s,s+d),!0,!0,!0)}e.removeRunDependency("processDataJob"),t.complete()},downloadJob:function(e,t){var r=t.parameters.objParameters?new UnityLoader.UnityCache.XMLHttpRequest(t.parameters.objParameters):new XMLHttpRequest;r.open("GET",t.parameters.url),r.responseType="arraybuffer",r.onload=function(){UnityLoader.Compression.decompress(new Uint8Array(r.response),function(e){t.complete(e)})},t.parameters.onprogress&&r.addEventListener("progress",t.parameters.onprogress),t.parameters.onload&&r.addEventListener("load",t.parameters.onload),r.send()},scheduleBuildDownloadJob:function(e,t,r){UnityLoader.Progress.update(e,t);var n=e.resolveBuildUrl(e[r]),o="function"==typeof e.cacheControl?e.cacheControl(n):e.cacheControl?e.cacheControl[r]||e.cacheControl.default:"no-cache";UnityLoader.Job.schedule(e,t,[],UnityLoader.downloadJob,{url:n,onprogress:function(r){UnityLoader.Progress.update(e,t,r)},onload:function(r){UnityLoader.Progress.update(e,t,r)},objParameters:e.companyName&&e.productName&&o&&"no-cache"!=o?{companyName:e.companyName,productName:e.productName,cacheControl:o}:null})},loadModule:function(e,t){if(e.useWasm=e.wasmCodeUrl&&UnityLoader.SystemInfo.hasWasm,e.useWasm){if(e.multithreading&&!UnityLoader.SystemInfo.hasWasmThreads)return void t("Your browser does not support WebAssembly Threads.");var r=["downloadWasmFramework","setupIndexedDB"];e.wasmCodeUrl.endsWith(".unityweb")&&(UnityLoader.scheduleBuildDownloadJob(e,"downloadWasmCode","wasmCodeUrl"),UnityLoader.Job.schedule(e,"processWasmCode",["downloadWasmCode"],UnityLoader.processWasmCodeJob),r.push("processWasmCode")),e.wasmMemoryUrl&&(UnityLoader.scheduleBuildDownloadJob(e,"downloadMemoryInitializer","wasmMemoryUrl"),UnityLoader.Job.schedule(e,"processMemoryInitializer",["downloadMemoryInitializer"],UnityLoader.processMemoryInitializerJob),e.memoryInitializerRequest={addEventListener:function(t,r){e.memoryInitializerRequest.callback=r}}),UnityLoader.scheduleBuildDownloadJob(e,"downloadWasmFramework","wasmFrameworkUrl"),UnityLoader.Job.schedule(e,"processWasmFramework",r,UnityLoader.processWasmFrameworkJob)}else{if(!e.asmCodeUrl)return void t("Your browser does not support WebAssembly.");UnityLoader.scheduleBuildDownloadJob(e,"downloadAsmCode","asmCodeUrl"),UnityLoader.Job.schedule(e,"processAsmCode",["downloadAsmCode"],UnityLoader.processAsmCodeJob),UnityLoader.scheduleBuildDownloadJob(e,"downloadMemoryInitializer","asmMemoryUrl"),UnityLoader.Job.schedule(e,"processMemoryInitializer",["downloadMemoryInitializer"],UnityLoader.processMemoryInitializerJob),e.memoryInitializerRequest={addEventListener:function(t,r){e.memoryInitializerRequest.callback=r}},e.asmLibraryUrl&&(e.dynamicLibraries=[e.asmLibraryUrl].map(e.resolveBuildUrl)),UnityLoader.scheduleBuildDownloadJob(e,"downloadAsmFramework","asmFrameworkUrl"),UnityLoader.Job.schedule(e,"processAsmFramework",["downloadAsmFramework","processAsmCode","setupIndexedDB"],UnityLoader.processAsmFrameworkJob)}UnityLoader.scheduleBuildDownloadJob(e,"downloadData","dataUrl"),UnityLoader.Job.schedule(e,"setupIndexedDB",[],UnityLoader.setupIndexedDBJob),e.preRun.push(function(){e.addRunDependency("processDataJob"),UnityLoader.Job.schedule(e,"processData",["downloadData"],UnityLoader.processDataJob)})},instantiate:function(e,t,r){function n(e,n){if("string"==typeof e&&!(e=document.getElementById(e)))return!1;e.innerHTML="",e.style.border=e.style.margin=e.style.padding=0,"static"==getComputedStyle(e).getPropertyValue("position")&&(e.style.position="relative"),e.style.width=n.width||e.style.width,e.style.height=n.height||e.style.height,n.container=e;var o=n.Module;o.canvas=document.createElement("canvas"),o.canvas.style.width="100%",o.canvas.style.height="100%",o.canvas.addEventListener("contextmenu",function(e){e.preventDefault()}),o.canvas.addEventListener("dragstart",function(e){e.preventDefault()}),o.canvas.id="#canvas",e.appendChild(o.canvas),o.deinitializers.push(function(){e.removeChild(o.canvas)});var i=!0;return n.compatibilityCheck(n,function(){var t=new XMLHttpRequest;t.open("GET",n.url,!0),t.responseType="text",t.onerror=function(){o.print("Could not download "+n.url),0==document.URL.indexOf("file:")&&alert("It seems your browser does not support running Unity WebGL content from file:// urls. Please upload it to an http server, or try a different browser.")},t.onload=function(){var a=JSON.parse(t.responseText);for(var s in a)"undefined"==typeof o[s]&&(o[s]=a[s]);if(o.unityVersion){var d=o.unityVersion.match(/(\d+)\.(\d+)\.(\d+)(.+)/);d&&(o.unityVersion={string:o.unityVersion,version:parseInt(d[0]),major:parseInt(d[1]),minor:parseInt(d[2]),suffix:d[3]})}o.isModularized=o.unityVersion&&o.unityVersion.version>=2019,UnityLoader.buildCompatibilityCheck(o,function(){e.style.background=o.backgroundUrl?"center/cover url('"+o.resolveBuildUrl(o.backgroundUrl)+"')":o.backgroundColor?" "+o.backgroundColor:"",n.onProgress(n,0),i=UnityLoader.loadModule(o,r.onerror)},r.onerror)},t.send()},function(){var e="Instantiation of '"+t+"' terminated due to the failed compatibility check.";"object"==typeof r&&"function"==typeof r.onerror?r.onerror(e):o.printErr(e)}),i}function o(e){return o.link=o.link||document.createElement("a"),o.link.href=e,o.link.href}"undefined"==typeof r&&(r={}),"undefined"==typeof r.onerror&&(r.onerror=function(e){i.popup(e,[{text:"OK"}])});var i={url:t,onProgress:UnityLoader.Progress.handler,compatibilityCheck:UnityLoader.compatibilityCheck,Module:{deinitializers:[],intervals:{},setInterval:function(e,t){var r=window.setInterval(e,t);return this.intervals[r]=!0,r},clearInterval:function(e){delete this.intervals[e],window.clearInterval(e)},onAbort:function(e){throw void 0!==e?(this.print(e),this.printErr(e),e=JSON.stringify(e)):e="","abort("+e+") at "+this.stackTrace()},preRun:[],postRun:[],print:function(e){console.log(e)},printErr:function(e){console.error(e)},Jobs:{},buildDownloadProgress:{},resolveBuildUrl:function(e){return e.match(/(http|https|ftp|file):\/\//)?e:t.substring(0,t.lastIndexOf("/")+1)+e},streamingAssetsUrl:function(){return o(this.resolveBuildUrl("../StreamingAssets"))},locateFile:function(e){return"Build/".concat("build.wasm"==e?this.wasmCodeUrl:e)}},SetFullscreen:function(){if(i.Module.SetFullscreen)return i.Module.SetFullscreen.apply(i.Module,arguments)},SendMessage:function(){if(i.Module.SendMessage)return i.Module.SendMessage.apply(i.Module,arguments)},Quit:function(e){"function"==typeof e&&(i.Module.onQuit=e),i.Module.shouldQuit=!0}};i.Module.unityInstance=i,i.popup=function(e,t){return UnityLoader.Error.popup(i,e,t)},i.Module.postRun.push(function(){i.onProgress(i,1),"object"==typeof r&&"function"==typeof r.onsuccess&&r.onsuccess(i.Module)});for(var a in r)if("Module"==a)for(var s in r[a])i.Module[s]=r[a][s];else i[a]=r[a];return n(e,i)||document.addEventListener("DOMContentLoaded",function(){n(e,i)}),i},instantiateAsync:function(e,t,r){return new Promise(function(n,o){const i=Object.assign({onsuccess:function(e){n(e)},onerror:function(e){o(e)}},r);UnityLoader.instantiate(e,t,i)})},Utils:{assert:function(e,t){e||abort("Assertion failed: "+t)},optimizeMathFround:function(e,t){console.log("optimizing out Math.fround calls");for(var r={LOOKING_FOR_MODULE:0,SCANNING_MODULE_VARIABLES:1,SCANNING_MODULE_FUNCTIONS:2},n=["EMSCRIPTEN_START_ASM","EMSCRIPTEN_START_FUNCS","EMSCRIPTEN_END_FUNCS"],o="var",i="global.Math.fround;",a=0,s=t?r.LOOKING_FOR_MODULE:r.SCANNING_MODULE_VARIABLES,d=0,l=0;s<=r.SCANNING_MODULE_FUNCTIONS&&a
+
+
+
+ 10 Minutes Till Dawn
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/semag/10minutestilldawn/media.png b/semag/10minutestilldawn/media.png
new file mode 100644
index 00000000..4896525c
Binary files /dev/null and b/semag/10minutestilldawn/media.png differ
diff --git a/semag/10minutestilldawn/splash.png b/semag/10minutestilldawn/splash.png
new file mode 100644
index 00000000..ddc0bd93
Binary files /dev/null and b/semag/10minutestilldawn/splash.png differ
diff --git a/semag/fnfmidfight/.DS_Store b/semag/fnfmidfight/.DS_Store
new file mode 100644
index 00000000..9fe5fa45
Binary files /dev/null and b/semag/fnfmidfight/.DS_Store differ
diff --git a/semag/fnfmidfight/Funkin.js b/semag/fnfmidfight/Funkin.js
new file mode 100644
index 00000000..68d6ce70
--- /dev/null
+++ b/semag/fnfmidfight/Funkin.js
@@ -0,0 +1 @@
+!function($hx_exports,$global){"use strict";var $hx_script=function(exports,global){!function($hx_exports,$global){function $extend(e,t){var i=Object.create(e);for(var l in t)i[l]=t[l];return t.toString!==Object.prototype.toString&&(i.toString=t.toString),i}function $getIterator(e){return e instanceof Array?new haxe_iterators_ArrayIterator(e):e.iterator()}function $bind(e,t){if(null==t)return null;null==t.__id__&&(t.__id__=$global.$haxeUID++);var i;return null==e.hx__closures__?e.hx__closures__={}:i=e.hx__closures__[t.__id__],null==i&&(i=t.bind(e),e.hx__closures__[t.__id__]=i),i}$hx_exports.lime=$hx_exports.lime||{};var $hxClasses={},$estr=function(){return js_Boot.__string_rec(this,"")},$hxEnums=$hxEnums||{},$_,flixel_util_IFlxDestroyable=function(){};$hxClasses["flixel.util.IFlxDestroyable"]=flixel_util_IFlxDestroyable,flixel_util_IFlxDestroyable.__name__="flixel.util.IFlxDestroyable",flixel_util_IFlxDestroyable.__isInterface__=!0,flixel_util_IFlxDestroyable.prototype={destroy:null,__class__:flixel_util_IFlxDestroyable};var flixel_FlxBasic=function(){this.flixelType=0,this.exists=!0,this.alive=!0,this.visible=!0,this.active=!0,this.ID=-1};$hxClasses["flixel.FlxBasic"]=flixel_FlxBasic,flixel_FlxBasic.__name__="flixel.FlxBasic",flixel_FlxBasic.__interfaces__=[flixel_util_IFlxDestroyable],flixel_FlxBasic.prototype={ID:null,active:null,visible:null,alive:null,exists:null,flixelType:null,_cameras:null,destroy:function(){this.set_exists(!1),this._cameras=null},kill:function(){this.set_alive(!1),this.set_exists(!1)},revive:function(){this.set_alive(!0),this.set_exists(!0)},update:function(e){},draw:function(){},toString:function(){var e=this.active,t=flixel_util_LabelValuePair._pool.get();t.label="active",t.value=e;var e=this.visible,i=flixel_util_LabelValuePair._pool.get();i.label="visible",i.value=e;var e=this.alive,l=flixel_util_LabelValuePair._pool.get();l.label="alive",l.value=e;var e=this.exists,n=flixel_util_LabelValuePair._pool.get();return n.label="exists",n.value=e,flixel_util_FlxStringUtil.getDebugString([t,i,l,n])},set_visible:function(e){return this.visible=e},set_active:function(e){return this.active=e},set_exists:function(e){return this.exists=e},set_alive:function(e){return this.alive=e},get_camera:function(){return null==this._cameras||0==this._cameras.length?flixel_FlxCamera.defaultCameras[0]:this._cameras[0]},set_camera:function(e){return null==this._cameras?this._cameras=[e]:this._cameras[0]=e,e},get_cameras:function(){return null==this._cameras?flixel_FlxCamera.defaultCameras:this._cameras},set_cameras:function(e){return this._cameras=e},__class__:flixel_FlxBasic,__properties__:{set_cameras:"set_cameras",get_cameras:"get_cameras",set_camera:"set_camera",get_camera:"get_camera",set_exists:"set_exists",set_alive:"set_alive",set_visible:"set_visible",set_active:"set_active"}};var flixel_util_IFlxPooled=function(){};$hxClasses["flixel.util.IFlxPooled"]=flixel_util_IFlxPooled,flixel_util_IFlxPooled.__name__="flixel.util.IFlxPooled",flixel_util_IFlxPooled.__isInterface__=!0,flixel_util_IFlxPooled.__interfaces__=[flixel_util_IFlxDestroyable],flixel_util_IFlxPooled.prototype={put:null,_inPool:null,__class__:flixel_util_IFlxPooled};var flixel_util_IFlxPool=function(){};$hxClasses["flixel.util.IFlxPool"]=flixel_util_IFlxPool,flixel_util_IFlxPool.__name__="flixel.util.IFlxPool",flixel_util_IFlxPool.__isInterface__=!0,flixel_util_IFlxPool.prototype={preAllocate:null,clear:null,__class__:flixel_util_IFlxPool};var flixel_util_FlxPool_$flixel_$math_$FlxRect=function(e){this._count=0,this._pool=[],this._class=e};$hxClasses["flixel.util.FlxPool_flixel_math_FlxRect"]=flixel_util_FlxPool_$flixel_$math_$FlxRect,flixel_util_FlxPool_$flixel_$math_$FlxRect.__name__="flixel.util.FlxPool_flixel_math_FlxRect",flixel_util_FlxPool_$flixel_$math_$FlxRect.__interfaces__=[flixel_util_IFlxPool],flixel_util_FlxPool_$flixel_$math_$FlxRect.prototype={_pool:null,_class:null,_count:null,get:function(){return 0==this._count?Type.createInstance(this._class,[]):this._pool[--this._count]},put:function(e){if(null!=e){var t=this._pool.indexOf(e);(-1==t||t>=this._count)&&(e.destroy(),this._pool[this._count++]=e)}},putUnsafe:function(e){null!=e&&(e.destroy(),this._pool[this._count++]=e)},preAllocate:function(e){for(;e-- >0;)this._pool[this._count++]=Type.createInstance(this._class,[])},clear:function(){this._count=0;var e=this._pool;return this._pool=[],e},get_length:function(){return this._count},__class__:flixel_util_FlxPool_$flixel_$math_$FlxRect,__properties__:{get_length:"get_length"}};var flixel_math_FlxRect=function(e,t,i,l){null==l&&(l=0),null==i&&(i=0),null==t&&(t=0),null==e&&(e=0),this._inPool=!1,this._weak=!1;var n=e,s=t,a=i,r=l;null==r&&(r=0),null==a&&(a=0),null==s&&(s=0),null==n&&(n=0),this.x=n,this.y=s,this.width=a,this.height=r};$hxClasses["flixel.math.FlxRect"]=flixel_math_FlxRect,flixel_math_FlxRect.__name__="flixel.math.FlxRect",flixel_math_FlxRect.__interfaces__=[flixel_util_IFlxPooled],flixel_math_FlxRect.__properties__={get_pool:"get_pool"},flixel_math_FlxRect.get=function(e,t,i,l){null==l&&(l=0),null==i&&(i=0),null==t&&(t=0),null==e&&(e=0);var n=flixel_math_FlxRect._pool.get(),s=e,a=t,r=i,_=l;null==_&&(_=0),null==r&&(r=0),null==a&&(a=0),null==s&&(s=0),n.x=s,n.y=a,n.width=r,n.height=_;var o=n;return o._inPool=!1,o},flixel_math_FlxRect.weak=function(e,t,i,l){null==l&&(l=0),null==i&&(i=0),null==t&&(t=0),null==e&&(e=0);var n=e,s=t,a=i,r=l;null==r&&(r=0),null==a&&(a=0),null==s&&(s=0),null==n&&(n=0);var _=flixel_math_FlxRect._pool.get(),e=n,t=s,i=a;null==(l=r)&&(l=0),null==i&&(i=0),null==t&&(t=0),null==e&&(e=0),_.x=e,_.y=t,_.width=i,_.height=l;var o=_;o._inPool=!1;var h=o;return h._weak=!0,h},flixel_math_FlxRect.get_pool=function(){return flixel_math_FlxRect._pool},flixel_math_FlxRect.prototype={x:null,y:null,width:null,height:null,_weak:null,_inPool:null,put:function(){this._inPool||(this._inPool=!0,this._weak=!1,flixel_math_FlxRect._pool.putUnsafe(this))},putWeak:function(){this._weak&&(this._inPool||(this._inPool=!0,this._weak=!1,flixel_math_FlxRect._pool.putUnsafe(this)))},setSize:function(e,t){return this.width=e,this.height=t,this},setPosition:function(e,t){return this.x=e,this.y=t,this},set:function(e,t,i,l){return null==l&&(l=0),null==i&&(i=0),null==t&&(t=0),null==e&&(e=0),this.x=e,this.y=t,this.width=i,this.height=l,this},copyFrom:function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,e._weak&&(e._inPool||(e._inPool=!0,e._weak=!1,flixel_math_FlxRect._pool.putUnsafe(e))),this},copyTo:function(e){return e.x=this.x,e.y=this.y,e.width=this.width,e.height=this.height,e._weak&&(e._inPool||(e._inPool=!0,e._weak=!1,flixel_math_FlxRect._pool.putUnsafe(e))),e},copyFromFlash:function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this},copyToFlash:function(e){return null==e&&(e=new openfl_geom_Rectangle),e.x=this.x,e.y=this.y,e.width=this.width,e.height=this.height,e},overlaps:function(e){var t=e.x+e.width>this.x&&e.xthis.y&&e.ye.x+e.width?e.x+e.width:this.x+this.width;if(_<=r)return e._weak&&(e._inPool||(e._inPool=!0,e._weak=!1,flixel_math_FlxRect._pool.putUnsafe(e))),t;var o=this.ye.y+e.height?e.y+e.height:this.y+this.height;if(h<=o)return e._weak&&(e._inPool||(e._inPool=!0,e._weak=!1,flixel_math_FlxRect._pool.putUnsafe(e))),t;e._weak&&(e._inPool||(e._inPool=!0,e._weak=!1,flixel_math_FlxRect._pool.putUnsafe(e)));var l=r,n=o,s=_-r,u=h-o;return null==u&&(u=0),null==s&&(s=0),null==n&&(n=0),null==l&&(l=0),t.x=l,t.y=n,t.width=s,t.height=u,t},toString:function(){var e=this.x,t=flixel_util_LabelValuePair._pool.get();t.label="x",t.value=e;var e=this.y,i=flixel_util_LabelValuePair._pool.get();i.label="y",i.value=e;var e=this.width,l=flixel_util_LabelValuePair._pool.get();l.label="w",l.value=e;var e=this.height,n=flixel_util_LabelValuePair._pool.get();return n.label="h",n.value=e,flixel_util_FlxStringUtil.getDebugString([t,i,l,n])},get_left:function(){return this.x},set_left:function(e){return this.width-=e-this.x,this.x=e},get_right:function(){return this.x+this.width},set_right:function(e){return this.width=e-this.x,e},get_top:function(){return this.y},set_top:function(e){return this.height-=e-this.y,this.y=e},get_bottom:function(){return this.y+this.height},set_bottom:function(e){return this.height=e-this.y,e},get_isEmpty:function(){return 0==this.width||0==this.height},__class__:flixel_math_FlxRect,__properties__:{get_isEmpty:"get_isEmpty",set_bottom:"set_bottom",get_bottom:"get_bottom",set_top:"set_top",get_top:"get_top",set_right:"set_right",get_right:"get_right",set_left:"set_left",get_left:"get_left"}};var flixel_FlxObject=function(e,t,i,l){null==l&&(l=0),null==i&&(i=0),null==t&&(t=0),null==e&&(e=0);var n=flixel_math_FlxRect._pool.get();n.x=0,n.y=0,n.width=0,n.height=0,n._inPool=!1,this._rect=n;var s=flixel_math_FlxPoint._pool.get().set(0,0);s._inPool=!1,this._point=s,this.path=null,this.collisonXDrag=!0,this.allowCollisions=4369,this.wasTouching=0,this.touching=0,this.health=1,this.maxAngular=1e4,this.angularDrag=0,this.angularAcceleration=0,this.angularVelocity=0,this.elasticity=0,this.mass=1,this.immovable=!1,this.moves=!0,this.angle=0,this.pixelPerfectPosition=!0,this.y=0,this.x=0,flixel_FlxBasic.call(this),this.set_x(e),this.set_y(t),this.set_width(i),this.set_height(l),this.initVars()};$hxClasses["flixel.FlxObject"]=flixel_FlxObject,flixel_FlxObject.__name__="flixel.FlxObject",flixel_FlxObject.separate=function(e,t){var i=flixel_FlxObject.separateX(e,t),l=flixel_FlxObject.separateY(e,t);return!!i||l},flixel_FlxObject.updateTouchingFlags=function(e,t){var i=flixel_FlxObject.updateTouchingFlagsX(e,t),l=flixel_FlxObject.updateTouchingFlagsY(e,t);return!!i||l},flixel_FlxObject.computeOverlapX=function(e,t,i){null==i&&(i=!0);var l=0,n=e.x-e.last.x,s=t.x-t.last.x;if(n!=s){var a=n>0?n:-n,r=s>0?s:-s,_=flixel_FlxObject._firstSeparateFlxRect,o=e.x-(n>0?n:0),h=e.last.y,u=e.get_width()+a,d=e.get_height();null==d&&(d=0),null==u&&(u=0),null==h&&(h=0),null==o&&(o=0),_.x=o,_.y=h,_.width=u,_.height=d;var c=_,_=flixel_FlxObject._secondSeparateFlxRect,o=t.x-(s>0?s:0),h=t.last.y,u=t.get_width()+r;null==(d=t.get_height())&&(d=0),null==u&&(u=0),null==h&&(h=0),null==o&&(o=0),_.x=o,_.y=h,_.width=u,_.height=d;var p=_;if(c.x+c.width>p.x&&c.xp.y&&c.ys?(l=e.x+e.get_width()-t.x,i&&l>f||0==(16&e.allowCollisions)||0==(1&t.allowCollisions)?l=0:(e.touching|=16,t.touching|=1)):nf||0==(1&e.allowCollisions)||0==(16&t.allowCollisions)?l=0:(e.touching|=1,t.touching|=16))}}return l},flixel_FlxObject.separateX=function(e,t){var i=e.immovable,l=t.immovable;if(i&&l)return!1;if(3==e.flixelType)return(n=e).overlapsWithCallback(t,flixel_FlxObject.separateX);if(3==t.flixelType){var n=t;return n.overlapsWithCallback(e,flixel_FlxObject.separateX,!0)}var s=flixel_FlxObject.computeOverlapX(e,t);if(0!=s){var a=e.velocity.x,r=t.velocity.x;if(i||l)if(i){if(!l){var _=t;_.set_x(_.x+s),t.velocity.set_x(a-r*t.elasticity)}}else e.set_x(e.x-s),e.velocity.set_x(r-a*e.elasticity);else{s*=.5,e.set_x(e.x-s),(_=t).set_x(_.x+s);var o=Math.sqrt(r*r*t.mass/e.mass)*(r>0?1:-1),h=Math.sqrt(a*a*e.mass/t.mass)*(a>0?1:-1),u=.5*(o+h);o-=u,h-=u,e.velocity.set_x(u+o*e.elasticity),t.velocity.set_x(u+h*t.elasticity)}return!0}return!1},flixel_FlxObject.updateTouchingFlagsX=function(e,t){if(3==e.flixelType)return(i=e).overlapsWithCallback(t,flixel_FlxObject.updateTouchingFlagsX);if(3==t.flixelType){var i=t;return i.overlapsWithCallback(e,flixel_FlxObject.updateTouchingFlagsX,!0)}return 0!=flixel_FlxObject.computeOverlapX(e,t,!1)},flixel_FlxObject.computeOverlapY=function(e,t,i){null==i&&(i=!0);var l=0,n=e.y-e.last.y,s=t.y-t.last.y;if(n!=s){var a=n>0?n:-n,r=s>0?s:-s,_=flixel_FlxObject._firstSeparateFlxRect,o=e.x,h=e.y-(n>0?n:0),u=e.get_width(),d=e.get_height()+a;null==d&&(d=0),null==u&&(u=0),null==h&&(h=0),null==o&&(o=0),_.x=o,_.y=h,_.width=u,_.height=d;var c=_,_=flixel_FlxObject._secondSeparateFlxRect,o=t.x,h=t.y-(s>0?s:0),u=t.get_width();null==(d=t.get_height()+r)&&(d=0),null==u&&(u=0),null==h&&(h=0),null==o&&(o=0),_.x=o,_.y=h,_.width=u,_.height=d;var p=_;if(c.x+c.width>p.x&&c.xp.y&&c.ys?(l=e.y+e.get_height()-t.y,i&&l>f||0==(4096&e.allowCollisions)||0==(256&t.allowCollisions)?l=0:(e.touching|=4096,t.touching|=256)):nf||0==(256&e.allowCollisions)||0==(4096&t.allowCollisions)?l=0:(e.touching|=256,t.touching|=4096))}}return l},flixel_FlxObject.separateY=function(e,t){var i=e.immovable,l=t.immovable;if(i&&l)return!1;if(3==e.flixelType)return(n=e).overlapsWithCallback(t,flixel_FlxObject.separateY);if(3==t.flixelType){var n=t;return n.overlapsWithCallback(e,flixel_FlxObject.separateY,!0)}var s=flixel_FlxObject.computeOverlapY(e,t);if(0!=s){var a=e.y-e.last.y,r=t.y-t.last.y,_=e.velocity.y,o=t.velocity.y;if(i||l)if(i){if(!l){var h=t;h.set_y(h.y+s),t.velocity.set_y(_-o*t.elasticity),t.collisonXDrag&&e.active&&e.moves&&ar&&(h=e).set_x(h.x+(t.x-t.last.x));else{s*=.5,e.set_y(e.y-s),(h=t).set_y(h.y+s);var u=Math.sqrt(o*o*t.mass/e.mass)*(o>0?1:-1),d=Math.sqrt(_*_*e.mass/t.mass)*(_>0?1:-1),c=.5*(u+d);u-=c,d-=c,e.velocity.set_y(c+u*e.elasticity),t.velocity.set_y(c+d*t.elasticity)}return!0}return!1},flixel_FlxObject.updateTouchingFlagsY=function(e,t){if(3==e.flixelType)return(i=e).overlapsWithCallback(t,flixel_FlxObject.updateTouchingFlagsY);if(3==t.flixelType){var i=t;return i.overlapsWithCallback(e,flixel_FlxObject.updateTouchingFlagsY,!0)}return 0!=flixel_FlxObject.computeOverlapY(e,t,!1)},flixel_FlxObject.__super__=flixel_FlxBasic,flixel_FlxObject.prototype=$extend(flixel_FlxBasic.prototype,{x:null,y:null,width:null,height:null,pixelPerfectRender:null,pixelPerfectPosition:null,angle:null,moves:null,immovable:null,scrollFactor:null,velocity:null,acceleration:null,drag:null,maxVelocity:null,last:null,mass:null,elasticity:null,angularVelocity:null,angularAcceleration:null,angularDrag:null,maxAngular:null,health:null,touching:null,wasTouching:null,allowCollisions:null,collisonXDrag:null,path:null,_point:null,_rect:null,initVars:function(){this.flixelType=1;var e=this.x,t=this.y;null==t&&(t=0),null==e&&(e=0);var i=flixel_math_FlxPoint._pool.get().set(e,t);i._inPool=!1,this.last=i;e=1;null==(t=1)&&(t=0),null==e&&(e=0),(i=flixel_math_FlxPoint._pool.get().set(e,t))._inPool=!1,this.scrollFactor=i,this.pixelPerfectPosition=flixel_FlxObject.defaultPixelPerfectPosition,(i=flixel_math_FlxPoint._pool.get().set(0,0))._inPool=!1,this.velocity=i,(i=flixel_math_FlxPoint._pool.get().set(0,0))._inPool=!1,this.acceleration=i,(i=flixel_math_FlxPoint._pool.get().set(0,0))._inPool=!1,this.drag=i;e=1e4;null==(t=1e4)&&(t=0),null==e&&(e=0),(i=flixel_math_FlxPoint._pool.get().set(e,t))._inPool=!1,this.maxVelocity=i},initMotionVars:function(){var e=flixel_math_FlxPoint._pool.get().set(0,0);e._inPool=!1,this.velocity=e,(e=flixel_math_FlxPoint._pool.get().set(0,0))._inPool=!1,this.acceleration=e,(e=flixel_math_FlxPoint._pool.get().set(0,0))._inPool=!1,this.drag=e;var t=1e4,i=1e4;null==i&&(i=0),null==t&&(t=0),(e=flixel_math_FlxPoint._pool.get().set(t,i))._inPool=!1,this.maxVelocity=e},destroy:function(){flixel_FlxBasic.prototype.destroy.call(this),this.velocity=flixel_util_FlxDestroyUtil.put(this.velocity),this.acceleration=flixel_util_FlxDestroyUtil.put(this.acceleration),this.drag=flixel_util_FlxDestroyUtil.put(this.drag),this.maxVelocity=flixel_util_FlxDestroyUtil.put(this.maxVelocity),this.scrollFactor=flixel_util_FlxDestroyUtil.put(this.scrollFactor),this.last=flixel_util_FlxDestroyUtil.put(this.last),this._point=flixel_util_FlxDestroyUtil.put(this._point),this._rect=flixel_util_FlxDestroyUtil.put(this._rect)},update:function(e){this.last.set(this.x,this.y),null!=this.path&&this.path.active&&this.path.update(e),this.moves&&this.updateMotion(e),this.wasTouching=this.touching,this.touching=0},updateMotion:function(e){var t=.5*(flixel_math_FlxVelocity.computeVelocity(this.angularVelocity,this.angularAcceleration,this.angularDrag,this.maxAngular,e)-this.angularVelocity);this.angularVelocity+=t;var i=this;i.set_angle(i.angle+this.angularVelocity*e),this.angularVelocity+=t,t=.5*(flixel_math_FlxVelocity.computeVelocity(this.velocity.x,this.acceleration.x,this.drag.x,this.maxVelocity.x,e)-this.velocity.x),(i=this.velocity).set_x(i.x+t);var l=this.velocity.x*e;(i=this.velocity).set_x(i.x+t),(i=this).set_x(i.x+l),t=.5*(flixel_math_FlxVelocity.computeVelocity(this.velocity.y,this.acceleration.y,this.drag.y,this.maxVelocity.y,e)-this.velocity.y),(i=this.velocity).set_y(i.y+t),l=this.velocity.y*e,(i=this.velocity).set_y(i.y+t),(i=this).set_y(i.y+l)},draw:function(){},overlaps:function(e,t,i){null==t&&(t=!1);var l=flixel_group_FlxTypedGroup.resolveGroup(e);if(null!=l)return flixel_group_FlxTypedGroup.overlaps($bind(this,this.overlapsCallback),l,0,0,t,i);if(3==e.flixelType)return e.overlaps(this,t,i);var n=e;if(!t)return n.x+n.get_width()>this.x&&n.xthis.y&&n.ythis._point.x&&s.xthis._point.y&&s.ye&&r.xt&&r.ythis._point.x&&_.xthis._point.y&&_.y=this.x&&e.x=this.y&&e.y=this._point.x&&l=this._point.y&&nflixel_FlxG.worldBounds.x){t=flixel_FlxG.worldBounds;e=this.xflixel_FlxG.worldBounds.y){var t=flixel_FlxG.worldBounds;return this.ye.viewOffsetX&&t.xe.viewOffsetY&&t.y0},justTouched:function(e){return(this.touching&e)>0&&(this.wasTouching&e)<=0},hurt:function(e){this.health-=e,this.health<=0&&this.kill()},screenCenter:function(e){return null==e&&(e=flixel_util_FlxAxes.XY),e!=flixel_util_FlxAxes.Y&&this.set_x(flixel_FlxG.width/2-this.get_width()/2),e!=flixel_util_FlxAxes.X&&this.set_y(flixel_FlxG.height/2-this.get_height()/2),this},setPosition:function(e,t){null==t&&(t=0),null==e&&(e=0),this.set_x(e),this.set_y(t)},setSize:function(e,t){this.set_width(e),this.set_height(t)},getBoundingBox:function(e){this.getScreenPosition(this._point,e);var t=this._rect,i=this._point.x,l=this._point.y,n=this.get_width(),s=this.get_height();return null==s&&(s=0),null==n&&(n=0),null==l&&(l=0),null==i&&(i=0),t.x=i,t.y=l,t.width=n,t.height=s,this._rect=e.transformRect(this._rect),this.isPixelPerfectRender(e)&&((t=this._rect).x=Math.floor(t.x),t.y=Math.floor(t.y),t.width=Math.floor(t.width),t.height=Math.floor(t.height)),this._rect},toString:function(){var e=this.x,t=flixel_util_LabelValuePair._pool.get();t.label="x",t.value=e;var e=this.y,i=flixel_util_LabelValuePair._pool.get();i.label="y",i.value=e;var e=this.get_width(),l=flixel_util_LabelValuePair._pool.get();l.label="w",l.value=e;var e=this.get_height(),n=flixel_util_LabelValuePair._pool.get();n.label="h",n.value=e;var e=this.visible,s=flixel_util_LabelValuePair._pool.get();s.label="visible",s.value=e;var e=this.velocity,a=flixel_util_LabelValuePair._pool.get();return a.label="velocity",a.value=e,flixel_util_FlxStringUtil.getDebugString([t,i,l,n,s,a])},set_x:function(e){return this.x=e},set_y:function(e){return this.y=e},set_width:function(e){return this.width=e},set_height:function(e){return this.height=e},get_width:function(){return this.width},get_height:function(){return this.height},get_solid:function(){return(4369&this.allowCollisions)>0},set_solid:function(e){return this.set_allowCollisions(e?4369:0),e},set_angle:function(e){return this.angle=e},set_moves:function(e){return this.moves=e},set_immovable:function(e){return this.immovable=e},set_pixelPerfectRender:function(e){return this.pixelPerfectRender=e},set_allowCollisions:function(e){return this.allowCollisions=e},set_path:function(e){return this.path==e?e:(null!=this.path&&(this.path.object=null),null!=e&&(e.object=this),this.path=e)},__class__:flixel_FlxObject,__properties__:$extend(flixel_FlxBasic.prototype.__properties__,{set_path:"set_path",set_allowCollisions:"set_allowCollisions",set_solid:"set_solid",get_solid:"get_solid",set_immovable:"set_immovable",set_moves:"set_moves",set_angle:"set_angle",set_pixelPerfectRender:"set_pixelPerfectRender",set_height:"set_height",get_height:"get_height",set_width:"set_width",get_width:"get_width",set_y:"set_y",set_x:"set_x"})});var flixel_FlxSprite=function(e,t,i){null==t&&(t=0),null==e&&(e=0),this._facingFlip=new haxe_ds_IntMap,this._angleChanged=!0,this._cosAngle=1,this._sinAngle=0,this._facingVerticalMult=1,this._facingHorizontalMult=1,this.useColorTransform=!1,this.color=16777215,this.flipY=!1,this.flipX=!1,this.facing=16,this.alpha=1,this.bakedRotationAngle=0,this.numFrames=0,this.frameHeight=0,this.frameWidth=0,this.dirty=!0,this.antialiasing=!1,this.useFramePixels=!0,flixel_FlxObject.call(this,e,t),this.set_useFramePixels(flixel_FlxG.renderBlit),null!=i&&this.loadGraphic(i)};$hxClasses["flixel.FlxSprite"]=flixel_FlxSprite,flixel_FlxSprite.__name__="flixel.FlxSprite",flixel_FlxSprite.__super__=flixel_FlxObject,flixel_FlxSprite.prototype=$extend(flixel_FlxObject.prototype,{animation:null,framePixels:null,useFramePixels:null,antialiasing:null,dirty:null,frame:null,frameWidth:null,frameHeight:null,numFrames:null,frames:null,graphic:null,bakedRotationAngle:null,alpha:null,facing:null,flipX:null,flipY:null,origin:null,offset:null,scale:null,blend:null,color:null,colorTransform:null,useColorTransform:null,clipRect:null,shader:null,_frame:null,_frameGraphic:null,_facingHorizontalMult:null,_facingVerticalMult:null,_flashPoint:null,_flashRect:null,_flashRect2:null,_flashPointZero:null,_matrix:null,_halfSize:null,_sinAngle:null,_cosAngle:null,_angleChanged:null,_facingFlip:null,initVars:function(){flixel_FlxObject.prototype.initVars.call(this),this.animation=new flixel_animation_FlxAnimationController(this),this._flashPoint=new openfl_geom_Point,this._flashRect=new openfl_geom_Rectangle,this._flashRect2=new openfl_geom_Rectangle,this._flashPointZero=new openfl_geom_Point;var e=flixel_math_FlxPoint._pool.get().set(0,0);e._inPool=!1,this.offset=e,(e=flixel_math_FlxPoint._pool.get().set(0,0))._inPool=!1,this.origin=e;var t=1,i=1;null==i&&(i=0),null==t&&(t=0),(e=flixel_math_FlxPoint._pool.get().set(t,i))._inPool=!1,this.scale=e,(e=flixel_math_FlxPoint._pool.get().set(0,0))._inPool=!1,this._halfSize=e,this._matrix=new flixel_math_FlxMatrix,this.colorTransform=new openfl_geom_ColorTransform},destroy:function(){flixel_FlxObject.prototype.destroy.call(this),this.animation=flixel_util_FlxDestroyUtil.destroy(this.animation),this.offset=flixel_util_FlxDestroyUtil.put(this.offset),this.origin=flixel_util_FlxDestroyUtil.put(this.origin),this.scale=flixel_util_FlxDestroyUtil.put(this.scale),this._halfSize=flixel_util_FlxDestroyUtil.put(this._halfSize),this.framePixels=flixel_util_FlxDestroyUtil.dispose(this.framePixels),this._flashPoint=null,this._flashRect=null,this._flashRect2=null,this._flashPointZero=null,this._matrix=null,this.colorTransform=null,this.set_blend(null),this.set_frames(null),this.set_graphic(null),this._frame=flixel_util_FlxDestroyUtil.destroy(this._frame),this._frameGraphic=flixel_util_FlxDestroyUtil.destroy(this._frameGraphic),this.shader=null},clone:function(){return(new flixel_FlxSprite).loadGraphicFromSprite(this)},loadGraphicFromSprite:function(e){return this.set_frames(e.frames),this.bakedRotationAngle=e.bakedRotationAngle,this.bakedRotationAngle>0&&(this.set_width(e.get_width()),this.set_height(e.get_height()),this.centerOffsets()),this.set_antialiasing(e.antialiasing),this.animation.copyFrom(e.animation),this.graphicLoaded(),this.set_clipRect(e.clipRect),this},loadGraphic:function(e,t,i,l,n,s){null==n&&(n=!1),null==l&&(l=0),null==i&&(i=0),null==t&&(t=!1);var a=flixel_FlxG.bitmap.add(e,n,s);if(null==a)return this;if(0==i&&(i=t?a.height:a.width)>a.width&&(i=a.width),0==l&&(l=t?i:a.height)>a.height&&(l=a.height),t){var r=i,_=l;null==_&&(_=0),null==r&&(r=0);var o=flixel_math_FlxPoint._pool.get().set(r,_);o._inPool=!1,this.set_frames(flixel_graphics_frames_FlxTileFrames.fromGraphic(a,o))}else this.set_frames(a.get_imageFrame());return this},loadRotatedGraphic:function(e,t,i,l,n,s){null==n&&(n=!1),null==l&&(l=!1),null==i&&(i=-1),null==t&&(t=16);var a=flixel_FlxG.bitmap.add(e,!1,s);if(null==a)return this;var r=a.bitmap,_=a.key;if(i>=0){var o=r.height,h=r.width/o|0;h<=i&&(i%=h),_+=":"+i;var u=r;r=new openfl_display_BitmapData(o,o,!0,0),this._flashRect.setTo(i*o,0,o,o),r.copyPixels(u,this._flashRect,this._flashPointZero)}_+=":"+t+":"+(null==n?"null":""+n);var d=flixel_FlxG.bitmap._cache.h[_];if(null==d){var c=flixel_util_FlxBitmapDataUtil.generateRotations(r,t,l,n);d=flixel_graphics_FlxGraphic.fromBitmapData(c,!1,_)}var p=r.height>r.width?r.height:r.width;n&&(p=1.5*p|0);var f=p,m=p;null==m&&(m=0),null==f&&(f=0);var x=flixel_math_FlxPoint._pool.get().set(f,m);return x._inPool=!1,this.set_frames(flixel_graphics_frames_FlxTileFrames.fromGraphic(d,x)),n&&(this.set_width(r.width),this.set_height(r.height),this.centerOffsets()),this.bakedRotationAngle=360/t,this.animation.createPrerotated(),this},loadRotatedFrame:function(e,t,i,l){null==l&&(l=!1),null==i&&(i=!1),null==t&&(t=16);var n=e.parent.key;if(null!=e.name)n+=":"+e.name;else{var s=e.frame,a=s.x,r=flixel_util_LabelValuePair._pool.get();r.label="x",r.value=a;var a=s.y,_=flixel_util_LabelValuePair._pool.get();_.label="y",_.value=a;var a=s.width,o=flixel_util_LabelValuePair._pool.get();o.label="w",o.value=a;a=s.height;(s=flixel_util_LabelValuePair._pool.get()).label="h",s.value=a,n+=":"+flixel_util_FlxStringUtil.getDebugString([r,_,o,s])}var h=flixel_FlxG.bitmap._cache.h[n];return null==h&&(h=flixel_graphics_FlxGraphic.fromBitmapData(e.paint(),!1,n)),this.loadRotatedGraphic(h,t,-1,i,l)},makeGraphic:function(e,t,i,l,n){null==l&&(l=!1),null==i&&(i=-1);var s=flixel_FlxG.bitmap.create(e,t,i,l,n);return this.set_frames(s.get_imageFrame()),this},graphicLoaded:function(){},resetSize:function(){this._flashRect.x=0,this._flashRect.y=0,this._flashRect.width=this.frameWidth,this._flashRect.height=this.frameHeight},resetFrameSize:function(){null!=this.frame&&(this.frameWidth=0|this.frame.sourceSize.x,this.frameHeight=0|this.frame.sourceSize.y),this._halfSize.set(.5*this.frameWidth,.5*this.frameHeight),this._flashRect.x=0,this._flashRect.y=0,this._flashRect.width=this.frameWidth,this._flashRect.height=this.frameHeight},resetSizeFromFrame:function(){this.set_width(this.frameWidth),this.set_height(this.frameHeight)},resetFrame:function(){this.set_frame(this.frame)},setGraphicSize:function(e,t){if(null==t&&(t=0),null==e&&(e=0),!(e<=0&&t<=0)){var i=e/this.frameWidth,l=t/this.frameHeight;this.scale.set(i,l),e<=0?this.scale.set_x(l):t<=0&&this.scale.set_y(i)}},updateHitbox:function(){this.set_width(Math.abs(this.scale.x)*this.frameWidth),this.set_height(Math.abs(this.scale.y)*this.frameHeight),this.offset.set(-.5*(this.get_width()-this.frameWidth),-.5*(this.get_height()-this.frameHeight)),this.origin.set(.5*this.frameWidth,.5*this.frameHeight)},resetHelpers:function(){null!=this.frame&&(this.frameWidth=0|this.frame.sourceSize.x,this.frameHeight=0|this.frame.sourceSize.y),this._halfSize.set(.5*this.frameWidth,.5*this.frameHeight),this._flashRect.x=0,this._flashRect.y=0,this._flashRect.width=this.frameWidth,this._flashRect.height=this.frameHeight,this.set_width(this.frameWidth),this.set_height(this.frameHeight),this._flashRect2.x=0,this._flashRect2.y=0,null!=this.graphic&&(this._flashRect2.width=this.graphic.width,this._flashRect2.height=this.graphic.height),this.origin.set(.5*this.frameWidth,.5*this.frameHeight),flixel_FlxG.renderBlit&&(this.dirty=!0,this.updateFramePixels())},update:function(e){flixel_FlxObject.prototype.update.call(this,e),this.updateAnimation(e)},updateAnimation:function(e){this.animation.update(e)},checkEmptyFrame:function(){null==this._frame&&this.loadGraphic("flixel/images/logo/default.png")},draw:function(){if(this.checkEmptyFrame(),0!=this.alpha&&2!=this._frame.type){this.dirty&&this.calcFrame(this.useFramePixels);for(var e=0,t=this.get_cameras();e255?255:h<0?0:h)<<16,_&=-65281,_|=((h=Math.round(255*t))>255?255:h<0?0:h)<<8,_&=-256,_|=(h=Math.round(255*i))>255?255:h<0?0:h,_&=16777215,_|=((h=Math.round(255*o))>255?255:h<0?0:h)<<24,this.set_color(16777215&_),this.set_alpha(l),flixel_util_FlxColorTransformUtil.setMultipliers(this.colorTransform,e,t,i,l),flixel_util_FlxColorTransformUtil.setOffsets(this.colorTransform,n,s,a,r),this.useColorTransform=1!=this.alpha||16777215!=this.color||flixel_util_FlxColorTransformUtil.hasRGBOffsets(this.colorTransform),this.dirty=!0},updateColorTransform:function(){null==this.colorTransform&&(this.colorTransform=new openfl_geom_ColorTransform),this.useColorTransform=1!=this.alpha||16777215!=this.color,this.useColorTransform?flixel_util_FlxColorTransformUtil.setMultipliers(this.colorTransform,(this.color>>16&255)/255,(this.color>>8&255)/255,(255&this.color)/255,this.alpha):flixel_util_FlxColorTransformUtil.setMultipliers(this.colorTransform,1,1,1,1),this.dirty=!0},pixelsOverlapPoint:function(e,t,i){return null==t&&(t=255),null==i&&(i=flixel_FlxG.camera),this.getScreenPosition(this._point,i),this._point.subtractPoint(this.offset),this._flashPoint.x=e.x-i.scroll.x-this._point.x,this._flashPoint.y=e.y-i.scroll.y-this._point.y,e._weak&&e.put(),!(this._flashPoint.x<0||this._flashPoint.x>this.frameWidth||this._flashPoint.y<0||this._flashPoint.y>this.frameHeight)&&(this.updateFramePixels().getPixel32(0|this._flashPoint.x,0|this._flashPoint.y)>>24&255)*this.alpha>=t},calcFrame:function(e){null==e&&(e=!1),this.checkEmptyFrame(),flixel_FlxG.renderTile&&!e||this.updateFramePixels()},updateFramePixels:function(){if(null==this._frame||!this.dirty)return this.framePixels;if(flixel_FlxG.renderTile&&null!=this._frameGraphic)return this.dirty=!1,this.framePixels;var e=this.flipX!=this._frame.flipX,t=null!=this.animation._curAnim?e!=this.animation._curAnim.flipX:e,i=this.flipY!=this._frame.flipY,l=null!=this.animation._curAnim?i!=this.animation._curAnim.flipY:i;return t||l||0!=this._frame.type?this.framePixels=this._frame.paintRotatedAndFlipped(this.framePixels,this._flashPointZero,0,t,l,!1,!0):this.framePixels=this._frame.paint(this.framePixels,this._flashPointZero,!1,!0),this.useColorTransform&&this.framePixels.colorTransform(this._flashRect,this.colorTransform),flixel_FlxG.renderTile&&this.useFramePixels&&(this._frameGraphic=flixel_util_FlxDestroyUtil.destroy(this._frameGraphic),this._frameGraphic=flixel_graphics_FlxGraphic.fromBitmapData(this.framePixels,!1,null,!1),this._frame=this._frameGraphic.get_imageFrame().get_frame().copyTo(this._frame)),this.dirty=!1,this.framePixels},getGraphicMidpoint:function(e){if(null==e){var t=flixel_math_FlxPoint._pool.get().set(0,0);t._inPool=!1,e=t}return e.set(this.x+.5*this.frameWidth,this.y+.5*this.frameHeight)},isOnScreen:function(e){null==e&&(e=flixel_FlxG.camera);var t=this.x-this.offset.x-e.scroll.x*this.scrollFactor.x,i=this.y-this.offset.y-e.scroll.y*this.scrollFactor.y;if((0==this.angle||this.bakedRotationAngle>0)&&1==this.scale.x&&1==this.scale.y){this._point.set(t,i);var l=this._point,n=this.frameWidth;return null==(f=this.frameHeight)&&(f=0),null==n&&(n=0),l.x+n>e.viewOffsetX&&l.xe.viewOffsetY&&l.ye.viewOffsetX&&l.xe.viewOffsetY&&l.y0)&&1==this.scale.x&&1==this.scale.y&&null==this.blend;return t=t&&(null!=e?this.isPixelPerfectRender(e):this.pixelPerfectRender)},setFacingFlip:function(e,t,i){this._facingFlip.h[e]={x:t,y:i}},setFrames:function(e,t){if(null==t&&(t=!0),t){var i=this.animation._animations,l=!1,n=0,s=this.animation.frameIndex,a=null;null!=this.animation._curAnim&&(l=this.animation._curAnim.reversed,n=this.animation._curAnim.curFrame,a=this.animation._curAnim.name),this.animation._animations=null,this.set_frames(e),this.set_frame(this.frames.frames[s]),this.animation._animations=i,null!=a&&this.animation.play(a,!1,l,n)}else this.set_frames(e);return this},get_pixels:function(){return null==this.graphic?null:this.graphic.bitmap},set_pixels:function(e){var t=flixel_FlxG.bitmap.findKeyForBitmap(e);return null==t?(t=flixel_FlxG.bitmap.getUniqueKey(),this.set_graphic(flixel_FlxG.bitmap.add(e,!1,t))):this.set_graphic(flixel_FlxG.bitmap._cache.h[t]),this.set_frames(this.graphic.get_imageFrame()),e},set_frame:function(e){if(this.frame=e,null!=this.frame)null!=this.frame&&(this.frameWidth=0|this.frame.sourceSize.x,this.frameHeight=0|this.frame.sourceSize.y),this._halfSize.set(.5*this.frameWidth,.5*this.frameHeight),this._flashRect.x=0,this._flashRect.y=0,this._flashRect.width=this.frameWidth,this._flashRect.height=this.frameHeight,this.dirty=!0;else{if(!(null!=this.frames&&null!=this.frames.frames&&this.numFrames>0))return null;this.frame=this.frames.frames[0],this.dirty=!0}return flixel_FlxG.renderTile&&(this._frameGraphic=flixel_util_FlxDestroyUtil.destroy(this._frameGraphic)),null!=this.clipRect?this._frame=this.frame.clipTo(this.clipRect,this._frame):this._frame=this.frame.copyTo(this._frame),this.frame},set_facing:function(e){var t=this._facingFlip.h[e];return null!=t&&(this.set_flipX(t.x),this.set_flipY(t.y)),this.facing=e},set_alpha:function(e){if(this.alpha==e)return e;var t=e<0?0:e;return this.alpha=t>1?1:t,this.updateColorTransform(),this.alpha},set_color:function(e){return this.color==e?e:(this.color=e,this.updateColorTransform(),this.color)},set_angle:function(e){var t=this.angle!=e,i=flixel_FlxObject.prototype.set_angle.call(this,e);return t&&(this._angleChanged=!0,this.animation.update(0)),i},updateTrig:function(){if(this._angleChanged){var e=this.angle*(Math.PI/180);this._sinAngle=Math.sin(e),this._cosAngle=Math.cos(e),this._angleChanged=!1}},set_blend:function(e){return this.blend=e},set_graphic:function(e){var t=this.graphic;if(this.graphic!=e&&null!=e&&(i=e).set_useCount(i.get_useCount()+1),null!=t&&t!=e){var i=t;i.set_useCount(i.get_useCount()-1)}return this.graphic=e},set_clipRect:function(e){return null!=e?(e.x=Math.round(e.x),e.y=Math.round(e.y),e.width=Math.round(e.width),e.height=Math.round(e.height),this.clipRect=e):this.clipRect=null,null!=this.frames&&this.set_frame(this.frames.frames[this.animation.frameIndex]),e},set_frames:function(e){return null!=this.animation&&this.animation.destroyAnimations(),null!=e?(this.set_graphic(e.parent),this.frames=e,this.set_frame(this.frames.frames[0]),this.numFrames=this.frames.frames.length,this.resetHelpers(),this.bakedRotationAngle=0,this.animation.set_frameIndex(0),this.graphicLoaded()):(this.frames=null,this.set_frame(null),this.set_graphic(null)),e},set_flipX:function(e){return flixel_FlxG.renderTile&&(this._facingHorizontalMult=e?-1:1),this.dirty=this.flipX!=e||this.dirty,this.flipX=e},set_flipY:function(e){return flixel_FlxG.renderTile&&(this._facingVerticalMult=e?-1:1),this.dirty=this.flipY!=e||this.dirty,this.flipY=e},set_antialiasing:function(e){return this.antialiasing=e},set_useFramePixels:function(e){return flixel_FlxG.renderTile?(e!=this.useFramePixels&&(this.useFramePixels=e,this.set_frame(this.frame),e&&this.updateFramePixels()),e):(this.useFramePixels=!0,!0)},checkFlipX:function(){var e=this.flipX!=this._frame.flipX;return null!=this.animation._curAnim?e!=this.animation._curAnim.flipX:e},checkFlipY:function(){var e=this.flipY!=this._frame.flipY;return null!=this.animation._curAnim?e!=this.animation._curAnim.flipY:e},__class__:flixel_FlxSprite,__properties__:$extend(flixel_FlxObject.prototype.__properties__,{set_clipRect:"set_clipRect",set_color:"set_color",set_blend:"set_blend",set_flipY:"set_flipY",set_flipX:"set_flipX",set_facing:"set_facing",set_alpha:"set_alpha",set_graphic:"set_graphic",set_frames:"set_frames",set_frame:"set_frame",set_pixels:"set_pixels",get_pixels:"get_pixels",set_antialiasing:"set_antialiasing",set_useFramePixels:"set_useFramePixels"})});var flixel_group_FlxTypedSpriteGroup=function(e,t,i){null==i&&(i=0),null==t&&(t=0),null==e&&(e=0),this._skipTransformChildren=!1,this.directAlpha=!1,flixel_FlxSprite.call(this,e,t),this.group=new flixel_group_FlxTypedGroup(i),this._sprites=this.group.members};$hxClasses["flixel.group.FlxTypedSpriteGroup"]=flixel_group_FlxTypedSpriteGroup,flixel_group_FlxTypedSpriteGroup.__name__="flixel.group.FlxTypedSpriteGroup",flixel_group_FlxTypedSpriteGroup.__super__=flixel_FlxSprite,flixel_group_FlxTypedSpriteGroup.prototype=$extend(flixel_FlxSprite.prototype,{transformChildren_flixel_math_FlxRect:function(e,t){if(null!=this.group)for(var i=0,l=this._sprites;it.length))for(var l=0,n=this._sprites;l1?1:t,this.exists&&this.alpha!=e){var i=this.alpha>0?e/this.alpha:0;this.directAlpha||0==this.alpha?this.transformChildren_Float($bind(this,this.directAlphaTransform),e):this.transformChildren_Float($bind(this,this.alphaTransform),i)}return this.alpha=e},set_facing:function(e){return this.exists&&this.facing!=e&&this.transformChildren_Int($bind(this,this.facingTransform),e),this.facing=e},set_flipX:function(e){return this.exists&&this.flipX!=e&&this.transformChildren_Bool($bind(this,this.flipXTransform),e),this.flipX=e},set_flipY:function(e){return this.exists&&this.flipY!=e&&this.transformChildren_Bool($bind(this,this.flipYTransform),e),this.flipY=e},set_moves:function(e){return this.exists&&this.moves!=e&&this.transformChildren_Bool($bind(this,this.movesTransform),e),this.moves=e},set_immovable:function(e){return this.exists&&this.immovable!=e&&this.transformChildren_Bool($bind(this,this.immovableTransform),e),this.immovable=e},set_solid:function(e){return this.exists&&(4369&this.allowCollisions)>0!=e&&this.transformChildren_Bool($bind(this,this.solidTransform),e),flixel_FlxSprite.prototype.set_solid.call(this,e)},set_color:function(e){return this.exists&&this.color!=e&&this.transformChildren_Int($bind(this,this.gColorTransform),e),this.color=e},set_blend:function(e){return this.exists&&this.blend!=e&&this.transformChildren_flash_display_BlendMode($bind(this,this.blendTransform),e),this.blend=e},set_clipRect:function(e){return this.exists&&this.transformChildren_flixel_math_FlxRect($bind(this,this.clipRectTransform),e),flixel_FlxSprite.prototype.set_clipRect.call(this,e)},set_pixelPerfectRender:function(e){return this.exists&&this.pixelPerfectRender!=e&&this.transformChildren_Bool($bind(this,this.pixelPerfectTransform),e),flixel_FlxSprite.prototype.set_pixelPerfectRender.call(this,e)},set_width:function(e){return e},get_width:function(){if(0==this.group.length)return 0;for(var e=1/0,t=-1/0,i=0,l=this._sprites;it&&(t=a),st&&(t=a),s=65&&e<=90)return e+32;switch(e){case 12:return 1073741980;case 16:return 1073742049;case 17:return 1073742048;case 18:return 1073742050;case 19:return 1073741896;case 20:return 1073741881;case 33:return 1073741899;case 34:return 1073741902;case 35:return 1073741901;case 36:return 1073741898;case 37:return 1073741904;case 38:return 1073741906;case 39:return 1073741903;case 40:return 1073741905;case 41:return 1073741943;case 43:return 1073741940;case 44:return 1073741894;case 45:return 1073741897;case 46:return 127;case 91:return 1073742051;case 92:case 93:return 1073742055;case 95:return 1073742106;case 96:return 1073741922;case 97:return 1073741913;case 98:return 1073741914;case 99:return 1073741915;case 100:return 1073741916;case 101:return 1073741917;case 102:return 1073741918;case 103:return 1073741919;case 104:return 1073741920;case 105:return 1073741921;case 106:return 1073741909;case 107:return 1073741911;case 108:return 1073741923;case 109:return 1073741910;case 110:return 1073741923;case 111:return 1073741908;case 112:return 1073741882;case 113:return 1073741883;case 114:return 1073741884;case 115:return 1073741885;case 116:return 1073741886;case 117:return 1073741887;case 118:return 1073741888;case 119:return 1073741889;case 120:return 1073741890;case 121:return 1073741891;case 122:return 1073741892;case 123:return 1073741893;case 124:return 1073741928;case 125:return 1073741929;case 126:return 1073741930;case 127:return 1073741931;case 128:return 1073741932;case 129:return 1073741933;case 130:return 1073741934;case 131:return 1073741935;case 132:return 1073741936;case 133:return 1073741937;case 134:return 1073741938;case 135:return 1073741939;case 144:return 1073741907;case 145:return 1073741895;case 160:return 94;case 161:return 33;case 163:return 35;case 164:return 36;case 166:return 1073742094;case 167:return 1073742095;case 168:return 1073742097;case 169:return 41;case 170:return 42;case 171:return 96;case 172:return 1073741898;case 173:return 45;case 174:return 1073741953;case 175:return 1073741952;case 176:return 1073742082;case 177:return 1073742083;case 178:return 1073742084;case 179:return 1073742085;case 180:return 1073742089;case 181:return 1073742086;case 182:return 1073741953;case 183:return 1073741952;case 186:return 59;case 187:return 61;case 188:return 44;case 189:return 45;case 190:return 46;case 191:return 47;case 192:return 96;case 193:return 63;case 194:return 1073741923;case 219:return 91;case 220:return 92;case 221:return 93;case 222:return 39;case 223:return 96;case 224:return 1073742051;case 226:return 92}return e},exec:function(){if(window.addEventListener("keydown",$bind(this,this.handleKeyEvent),!1),window.addEventListener("keyup",$bind(this,this.handleKeyEvent),!1),window.addEventListener("focus",$bind(this,this.handleWindowEvent),!1),window.addEventListener("blur",$bind(this,this.handleWindowEvent),!1),window.addEventListener("resize",$bind(this,this.handleWindowEvent),!1),window.addEventListener("beforeunload",$bind(this,this.handleWindowEvent),!1),window.addEventListener("devicemotion",$bind(this,this.handleSensorEvent),!1),CanvasRenderingContext2D.prototype.isPointInStroke||(CanvasRenderingContext2D.prototype.isPointInStroke=function(e,t,i){return!1}),CanvasRenderingContext2D.prototype.isPointInPath||(CanvasRenderingContext2D.prototype.isPointInPath=function(e,t,i){return!1}),"performance"in window==0&&(window.performance={}),"now"in window.performance==0){var e=Date.now();performance.timing&&performance.timing.navigationStart&&(e=performance.timing.navigationStart),window.performance.now=function(){return Date.now()-e}}for(var t=0,i=["ms","moz","webkit","o"],l=0;l=this.nextUpdate){this.deltaTime=this.currentUpdate-this.lastUpdate;for(var t=0,i=this.parent.__windows;t0?l.onButtonDown.dispatch(g):l.onButtonUp.dispatch(g),null!=i){switch(g){case 0:p=0;break;case 1:p=1;break;case 2:p=2;break;case 3:p=3;break;case 4:p=9;break;case 5:p=10;break;case 8:p=4;break;case 9:p=6;break;case 10:p=7;break;case 11:p=8;break;case 12:p=11;break;case 13:p=12;break;case 14:p=13;break;case 15:p=14;break;case 16:p=5;break;default:continue}f>0?i.onButtonDown.dispatch(p):i.onButtonUp.dispatch(p)}s.buttons[g]=f}}for(var F=0,y=n.axes.length;F0){var t=null;null!=this.__inactiveObject0?(t=this.__inactiveObject0,this.__inactiveObject0=null):null!=this.__inactiveObject1?(t=this.__inactiveObject1,this.__inactiveObject1=null):(t=this.__inactiveObjectList.pop(),this.__inactiveObjectList.length>0&&(this.__inactiveObject0=this.__inactiveObjectList.pop()),this.__inactiveObjectList.length>0&&(this.__inactiveObject1=this.__inactiveObjectList.pop())),this.inactiveObjects--,this.activeObjects++,e=t}else(null==this.__size||this.activeObjects0&&(this.__inactiveObject0=this.__inactiveObjectList.pop()),this.__inactiveObjectList.length>0&&(this.__inactiveObject1=this.__inactiveObjectList.pop())),this.inactiveObjects--,this.activeObjects++,e},__removeInactive:function(e){if(!(e<=0||0==this.inactiveObjects)&&(null!=this.__inactiveObject0&&(this.__pool.remove(this.__inactiveObject0),this.__inactiveObject0=null,this.inactiveObjects--,--e),0!=e&&0!=this.inactiveObjects&&(null!=this.__inactiveObject1&&(this.__pool.remove(this.__inactiveObject1),this.__inactiveObject1=null,this.inactiveObjects--,--e),0!=e&&0!=this.inactiveObjects)))for(var t=this.__inactiveObjectList.h;null!=t;){var i=t.item;t=t.next;var l=i;if(this.__pool.remove(l),this.__inactiveObjectList.remove(l),this.inactiveObjects--,0==--e||0==this.inactiveObjects)return}},get_size:function(){return this.__size},set_size:function(e){if(null==e)this.__size=null;else{var t=this.inactiveObjects+this.activeObjects;if(this.__size=e,t>e)this.__removeInactive(t-e);else if(e>t)for(var i,l=0,n=e-t;l ",e+=Std.string(Std.string(this.h[l.__id__])),t.hasNext()&&(e+=", ")}return e+="}"},__class__:haxe_ds_ObjectMap};var haxe_ds_List=function(){this.length=0};$hxClasses["haxe.ds.List"]=haxe_ds_List,haxe_ds_List.__name__="haxe.ds.List",haxe_ds_List.prototype={h:null,q:null,length:null,add:function(e){var t=new haxe_ds__$List_ListNode(e,null);null==this.h?this.h=t:this.q.next=t,this.q=t,this.length++},push:function(e){var t=new haxe_ds__$List_ListNode(e,this.h);this.h=t,null==this.q&&(this.q=t),this.length++},pop:function(){if(null==this.h)return null;var e=this.h.item;return this.h=this.h.next,null==this.h&&(this.q=null),this.length--,e},clear:function(){this.h=null,this.q=null,this.length=0},remove:function(e){for(var t=null,i=this.h;null!=i;){if(i.item==e)return null==t?this.h=i.next:t.next=i.next,this.q==i&&(this.q=t),this.length--,!0;t=i,i=i.next}return!1},iterator:function(){return new haxe_ds__$List_ListIterator(this.h)},__class__:haxe_ds_List};var openfl_display_DisplayObject=function(){openfl_events_EventDispatcher.call(this),this.__alpha=1,this.__blendMode=10,this.__cacheAsBitmap=!1,this.__transform=new openfl_geom_Matrix,this.__visible=!0,this.__rotation=0,this.__rotationSine=0,this.__rotationCosine=1,this.__scaleX=1,this.__scaleY=1,this.__worldAlpha=1,this.__worldBlendMode=10,this.__worldTransform=new openfl_geom_Matrix,this.__worldColorTransform=new openfl_geom_ColorTransform,this.__renderTransform=new openfl_geom_Matrix,this.__worldVisible=!0,this.set_name("instance"+ ++openfl_display_DisplayObject.__instanceCount),null!=openfl_display_DisplayObject.__initStage&&(this.stage=openfl_display_DisplayObject.__initStage,openfl_display_DisplayObject.__initStage=null,this.stage.addChild(this))};$hxClasses["openfl.display.DisplayObject"]=openfl_display_DisplayObject,openfl_display_DisplayObject.__name__="openfl.display.DisplayObject",openfl_display_DisplayObject.__interfaces__=[openfl_display_IBitmapDrawable],openfl_display_DisplayObject.__initStage=null,openfl_display_DisplayObject.__supportDOM=null,openfl_display_DisplayObject.__calculateAbsoluteTransform=function(e,t,i){i.a=e.a*t.a+e.b*t.c,i.b=e.a*t.b+e.b*t.d,i.c=e.c*t.a+e.d*t.c,i.d=e.c*t.b+e.d*t.d,i.tx=e.tx*t.a+e.ty*t.c+t.tx,i.ty=e.tx*t.b+e.ty*t.d+t.ty},openfl_display_DisplayObject.__super__=openfl_events_EventDispatcher,openfl_display_DisplayObject.prototype=$extend(openfl_events_EventDispatcher.prototype,{opaqueBackground:null,parent:null,stage:null,__alpha:null,__blendMode:null,__cacheAsBitmap:null,__cacheAsBitmapMatrix:null,__cacheBitmap:null,__cacheBitmapBackground:null,__cacheBitmapColorTransform:null,__cacheBitmapData:null,__cacheBitmapData2:null,__cacheBitmapData3:null,__cacheBitmapMatrix:null,__cacheBitmapRenderer:null,__cairo:null,__children:null,__customRenderClear:null,__customRenderEvent:null,__filters:null,__graphics:null,__interactive:null,__isCacheBitmapRender:null,__isMask:null,__loaderInfo:null,__mask:null,__maskTarget:null,__name:null,__objectTransform:null,__renderable:null,__renderDirty:null,__renderParent:null,__renderTransform:null,__renderTransformCache:null,__renderTransformChanged:null,__rotation:null,__rotationCosine:null,__rotationSine:null,__scale9Grid:null,__scaleX:null,__scaleY:null,__scrollRect:null,__shader:null,__tempPoint:null,__transform:null,__transformDirty:null,__visible:null,__worldAlpha:null,__worldAlphaChanged:null,__worldBlendMode:null,__worldClip:null,__worldClipChanged:null,__worldColorTransform:null,__worldShader:null,__worldScale9Grid:null,__worldTransform:null,__worldVisible:null,__worldVisibleChanged:null,__worldTransformInvalid:null,__worldZ:null,__canvas:null,__context:null,__style:null,addEventListener:function(e,t,i,l,n){switch(null==n&&(n=!1),null==l&&(l=0),null==i&&(i=!1),e){case"activate":case"deactivate":case"enterFrame":case"exitFrame":case"frameConstructed":case"render":Object.prototype.hasOwnProperty.call(openfl_display_DisplayObject.__broadcastEvents.h,e)||(openfl_display_DisplayObject.__broadcastEvents.h[e]=[]);var s=openfl_display_DisplayObject.__broadcastEvents.h[e];-1==s.indexOf(this)&&s.push(this);break;case"clearDOM":case"renderCairo":case"renderCanvas":case"renderDOM":case"renderOpenGL":null==this.__customRenderEvent&&(this.__customRenderEvent=new openfl_events_RenderEvent(null),this.__customRenderEvent.objectColorTransform=new openfl_geom_ColorTransform,this.__customRenderEvent.objectMatrix=new openfl_geom_Matrix,this.__customRenderClear=!0)}openfl_events_EventDispatcher.prototype.addEventListener.call(this,e,t,i,l,n)},dispatchEvent:function(e){if(e instanceof openfl_events_MouseEvent){var t=e,i=this.__getRenderTransform();t.stageX=t.localX*i.a+t.localY*i.c+i.tx;i=this.__getRenderTransform();t.stageY=t.localX*i.b+t.localY*i.d+i.ty}else if(e instanceof openfl_events_TouchEvent){var l=e,i=this.__getRenderTransform();l.stageX=l.localX*i.a+l.localY*i.c+i.tx;i=this.__getRenderTransform();l.stageY=l.localX*i.b+l.localY*i.d+i.ty}return e.target=this,this.__dispatchWithCapture(e)},getBounds:function(e){var t=openfl_geom_Matrix.__pool.get();if(null!=e&&e!=this){t.copyFrom(this.__getWorldTransform());var i=openfl_geom_Matrix.__pool.get();i.copyFrom(e.__getWorldTransform()),i.invert(),t.concat(i),openfl_geom_Matrix.__pool.release(i)}else t.identity();var l=new openfl_geom_Rectangle;return this.__getBounds(l,t),openfl_geom_Matrix.__pool.release(t),l},getRect:function(e){return this.getBounds(e)},globalToLocal:function(e){return this.__globalToLocal(e,new openfl_geom_Point)},hitTestObject:function(e){if(null!=e&&null!=e.parent&&null!=this.parent){var t=this.getBounds(this),i=e.getBounds(this);return t.intersects(i)}return!1},hitTestPoint:function(e,t,i){return null==i&&(i=!1),null!=this.stage&&this.__hitTest(e,t,i,null,!1,this)},invalidate:function(){this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())},localToGlobal:function(e){return this.__getRenderTransform().transformPoint(e)},removeEventListener:function(e,t,i){switch(null==i&&(i=!1),openfl_events_EventDispatcher.prototype.removeEventListener.call(this,e,t,i),e){case"activate":case"deactivate":case"enterFrame":case"exitFrame":case"frameConstructed":case"render":this.hasEventListener(e)||Object.prototype.hasOwnProperty.call(openfl_display_DisplayObject.__broadcastEvents.h,e)&&HxOverrides.remove(openfl_display_DisplayObject.__broadcastEvents.h[e],this);break;case"clearDOM":case"renderCairo":case"renderCanvas":case"renderDOM":case"renderOpenGL":this.hasEventListener("clearDOM")||this.hasEventListener("renderCairo")||this.hasEventListener("renderCanvas")||this.hasEventListener("renderDOM")||this.hasEventListener("renderOpenGL")||(this.__customRenderEvent=null)}},__cleanup:function(){this.__cairo=null,this.__canvas=null,this.__context=null,null!=this.__graphics&&this.__graphics.__cleanup(),null!=this.__cacheBitmap&&(this.__cacheBitmap.__cleanup(),this.__cacheBitmap=null),null!=this.__cacheBitmapData&&(this.__cacheBitmapData.dispose(),this.__cacheBitmapData=null)},__dispatch:function(e){if(null!=this.__eventMap&&this.hasEventListener(e.type)){var t=openfl_events_EventDispatcher.prototype.__dispatchEvent.call(this,e);return!!e.__isCanceled||t}return!0},__dispatchChildren:function(e){},__dispatchEvent:function(e){var t=e.bubbles?this.parent:null,i=openfl_events_EventDispatcher.prototype.__dispatchEvent.call(this,e);return!!e.__isCanceled||(null!=t&&t!=this&&(e.eventPhase=3,null==e.target&&(e.target=this),t.__dispatchEvent(e)),i)},__dispatchWithCapture:function(e){if(null==e.target&&(e.target=this),null!=this.parent)if(e.eventPhase=1,this.parent==this.stage)this.parent.__dispatch(e);else{for(var t=openfl_display_DisplayObject.__tempStack.get(),i=this.parent,l=0;null!=i;)t.set(l,i),i=i.parent,++l;for(var n=0,s=l;n=0;)(t=e[i]).__update(!0,!1)}return this.__worldTransform},__globalToLocal:function(e,t){if(this.__getRenderTransform(),e==t)if(0==(n=(l=this.__renderTransform).a*l.d-l.b*l.c))e.x=-l.tx,e.y=-l.ty;else{var i=1/n*(l.c*(l.ty-e.y)+l.d*(e.x-l.tx));e.y=1/n*(l.a*(e.y-l.ty)+l.b*(l.tx-e.x)),e.x=i}else{var l=this.__renderTransform,n=l.a*l.d-l.b*l.c;t.x=0==n?-l.tx:1/n*(l.c*(l.ty-e.y)+l.d*(e.x-l.tx));n=(l=this.__renderTransform).a*l.d-l.b*l.c;t.y=0==n?-l.ty:1/n*(l.a*(e.y-l.ty)+l.b*(l.tx-e.x))}return t},__hitTest:function(e,t,i,l,n,s){if(null!=this.__graphics){if(!s.__visible||this.__isMask)return!1;if(null!=this.get_mask()&&!this.get_mask().__hitTestMask(e,t))return!1;if(this.__graphics.__hitTest(e,t,i,this.__getRenderTransform()))return null==l||n||l.push(s),!0}return!1},__hitTestMask:function(e,t){return!(null==this.__graphics||!this.__graphics.__hitTest(e,t,!0,this.__getRenderTransform()))},__readGraphicsData:function(e,t){null!=this.__graphics&&this.__graphics.__readGraphicsData(e)},__renderCairo:function(e){},__renderCairoMask:function(e){},__renderCanvas:function(e){if(null==this.get_mask()||this.get_mask().get_width()>0&&this.get_mask().get_height()>0)if(this.__updateCacheBitmap(e,!1),null==this.__cacheBitmap||this.__isCacheBitmapRender){if((null!=this.opaqueBackground||null!=this.__graphics)&&this.__renderable){var t=e.__getAlpha(this.__worldAlpha);if(!(t<=0)){if(null!=this.opaqueBackground&&!this.__isCacheBitmapRender&&this.get_width()>0&&this.get_height()>0){e.__setBlendMode(this.__worldBlendMode),e.__pushMaskObject(this);_=e.context;e.setTransform(this.__renderTransform,_);var i=this.opaqueBackground;_.fillStyle="rgb("+(i>>>16&255)+","+(i>>>8&255)+","+(255&i)+")",_.fillRect(0,0,this.get_width(),this.get_height()),e.__popMaskObject(this)}if(null!=this.__graphics&&this.__renderable&&!((t=e.__getAlpha(this.__worldAlpha))<=0)){var l=this.__graphics;if(null!=l){openfl_display__$internal_CanvasGraphics.render(l,e);var n=l.__width,s=l.__height,a=l.__canvas;if(null!=a&&l.__visible&&n>=1&&s>=1){var r=l.__worldTransform,_=e.context,o=this.__scrollRect,h=this.__worldScale9Grid;if(null==o||o.width>0&&o.height>0){if(e.__setBlendMode(this.__worldBlendMode),e.__pushMaskObject(this),_.globalAlpha=t,null!=h&&0==r.b&&0==r.c){_.setTransform(1,0,0,1,r.tx,r.ty);var u=l.__bounds,d=l.__renderTransform.a,c=l.__renderTransform.d,p=r.a,f=r.d,m=Math.max(1,Math.round(h.x*d)),x=Math.round(h.y*c),g=Math.max(1,Math.round((u.get_right()-h.get_right())*d)),F=Math.round((u.get_bottom()-h.get_bottom())*c),y=Math.round(h.width*d),S=Math.round(h.height*c),b=Math.round(h.x*p),U=Math.round(h.y*f),v=Math.round((u.get_right()-h.get_right())*p),T=Math.round((u.get_bottom()-h.get_bottom())*f),N=Math.round(n*p)-b-v,D=Math.round(s*f)-U-T;if(e.applySmoothing(_,!1),0!=y&&0!=S)_.drawImage(a,0,0,m,x,0,0,b,U),_.drawImage(a,m,0,y,x,b,0,N,U),_.drawImage(a,m+y,0,g,x,b+N,0,v,U),_.drawImage(a,0,x,m,S,0,U,b,D),_.drawImage(a,m,x,y,S,b,U,N,D),_.drawImage(a,m+y,x,g,S,b+N,U,v,D),_.drawImage(a,0,x+S,m,F,0,U+D,b,T),_.drawImage(a,m,x+S,y,F,b,U+D,N,T),_.drawImage(a,m+y,x+S,g,F,b+N,U+D,v,T);else if(0==y&&0!=S){var Q=b+N+v;_.drawImage(a,0,0,n,x,0,0,Q,U),_.drawImage(a,0,x,n,S,0,U,Q,D),_.drawImage(a,0,x+S,n,F,0,U+D,Q,T)}else if(0==S&&0!=y){var B=U+D+T;_.drawImage(a,0,0,m,s,0,0,b,B),_.drawImage(a,m,0,y,s,b,0,N,B),_.drawImage(a,m+y,0,g,s,b+N,0,v,B)}}else{if(e.setTransform(r,_),e.__isDOM){var R=1/e.pixelRatio;_.scale(R,R)}_.drawImage(a,0,0,n,s)}e.__popMaskObject(this)}}}}}}}else{var w=this.__cacheBitmap;if(w.__renderable&&(t=e.__getAlpha(w.__worldAlpha))>0&&null!=w.__bitmapData&&w.__bitmapData.__isValid&&w.__bitmapData.readable){_=e.context;e.__setBlendMode(w.__worldBlendMode),e.__pushMaskObject(w,!1),lime__$internal_graphics_ImageCanvasUtil.convertToCanvas(w.__bitmapData.image),_.globalAlpha=t;o=w.__scrollRect;e.setTransform(w.__renderTransform,_),e.__allowSmoothing&&w.smoothing||(_.imageSmoothingEnabled=!1),null==o?_.drawImage(w.__bitmapData.image.get_src(),0,0,w.__bitmapData.image.width,w.__bitmapData.image.height):_.drawImage(w.__bitmapData.image.get_src(),o.x,o.y,o.width,o.height),e.__allowSmoothing&&w.smoothing||(_.imageSmoothingEnabled=!0),e.__popMaskObject(w,!1)}}this.__renderEvent(e)},__renderCanvasMask:function(e){null!=this.__graphics&&openfl_display__$internal_CanvasGraphics.renderMask(this.__graphics,e)},__renderDOM:function(e){if(this.__updateCacheBitmap(e,!1),null==this.__cacheBitmap||this.__isCacheBitmapRender){null!=this.opaqueBackground&&!this.__isCacheBitmapRender&&this.get_width()>0&&this.get_height();var t=this.__graphics;if(null!=this.stage&&this.__worldVisible&&this.__renderable&&null!=t){if(openfl_display__$internal_CanvasGraphics.render(t,e.__canvasRenderer),(t.__softwareDirty||this.__worldAlphaChanged||this.__canvas!=t.__canvas)&&(null!=t.__canvas?this.__canvas!=t.__canvas&&(null!=this.__canvas&&e.element.removeChild(this.__canvas),this.__canvas=t.__canvas,this.__context=t.__context,e.__initializeElement(this,this.__canvas)):openfl_display__$internal_DOMShape.clear(this,e)),null!=this.__canvas){e.__pushMaskObject(this);var i=this.__renderTransform;this.__renderTransform=t.__worldTransform,t.__transformDirty&&(t.__transformDirty=!1,this.__renderTransformChanged=!0),e.__updateClip(this),e.__applyStyle(this,!0,!0,!0),this.__renderTransform=i,e.__popMaskObject(this)}}else openfl_display__$internal_DOMShape.clear(this,e)}else{this.__renderDOMClear(e),this.__cacheBitmap.stage=this.stage;var l=this.__cacheBitmap;null!=l.stage&&l.__worldVisible&&l.__renderable&&null!=l.__bitmapData&&l.__bitmapData.__isValid&&l.__bitmapData.readable?(e.__pushMaskObject(l),null!=l.__bitmapData.image.buffer.__srcImage?openfl_display__$internal_DOMBitmap.renderImage(l,e):openfl_display__$internal_DOMBitmap.renderCanvas(l,e),e.__popMaskObject(l)):openfl_display__$internal_DOMBitmap.clear(l,e)}this.__renderEvent(e)},__renderDOMClear:function(e){openfl_display__$internal_DOMDisplayObject.clear(this,e)},__renderEvent:function(e){if(null!=this.__customRenderEvent&&this.__renderable){switch(this.__customRenderEvent.allowSmoothing=e.__allowSmoothing,this.__customRenderEvent.objectMatrix.copyFrom(this.__renderTransform),this.__customRenderEvent.objectColorTransform.__copyFrom(this.__worldColorTransform),this.__customRenderEvent.renderer=e,e.__type){case"cairo":this.__customRenderEvent.type="renderCairo";break;case"canvas":this.__customRenderEvent.type="renderCanvas";break;case"dom":null!=this.stage&&this.__worldVisible?this.__customRenderEvent.type="renderDOM":this.__customRenderEvent.type="clearDOM";break;case"opengl":e.__cleared||e.__clear(),(t=e).setShader(this.__worldShader),t.__context3D.__flushGL(),this.__customRenderEvent.type="renderOpenGL";break;default:return}if(e.__setBlendMode(this.__worldBlendMode),e.__pushMaskObject(this),this.dispatchEvent(this.__customRenderEvent),e.__popMaskObject(this),"opengl"==e.__type){var t=e;t.setViewport()}}},__renderGL:function(e){if(this.__updateCacheBitmap(e,!1),null==this.__cacheBitmap||this.__isCacheBitmapRender){if((null!=this.opaqueBackground||null!=this.__graphics)&&this.__renderable&&!(this.__worldAlpha<=0)){if(null!=this.opaqueBackground&&!this.__isCacheBitmapRender&&this.get_width()>0&&this.get_height()>0){e.__setBlendMode(this.__worldBlendMode),e.__pushMaskObject(this);var t=e.__context3D,i=openfl_geom_Rectangle.__pool.get();i.setTo(0,0,this.get_width(),this.get_height()),e.__pushMaskRect(i,this.__renderTransform);var l=this.opaqueBackground;t.clear((l>>>16&255)/255,(l>>>8&255)/255,(255&l)/255,1,0,0,1),e.__popMaskRect(),e.__popMaskObject(this),openfl_geom_Rectangle.__pool.release(i)}null!=this.__graphics&&openfl_display__$internal_Context3DShape.render(this,e)}}else openfl_display__$internal_Context3DBitmap.render(this.__cacheBitmap,e);this.__renderEvent(e)},__renderGLMask:function(e){null!=this.__graphics&&openfl_display__$internal_Context3DShape.renderMask(this,e)},__setParentRenderDirty:function(){var e=null!=this.__renderParent?this.__renderParent:this.parent;null==e||e.__renderDirty||(e.__renderDirty=!0,e.__setParentRenderDirty())},__setRenderDirty:function(){this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())},__setStageReference:function(e){this.stage=e},__setTransformDirty:function(){this.__transformDirty||(this.__transformDirty=!0,this.__setWorldTransformInvalid(),this.__setParentRenderDirty())},__setWorldTransformInvalid:function(){this.__worldTransformInvalid=!0},__shouldCacheHardware:function(e){return 1==e||null!=this.__filters||!(0==e||null!=this.__graphics&&!openfl_display__$internal_Context3DGraphics.isCompatible(this.__graphics))&&null},__stopAllMovieClips:function(){},__update:function(e,t){var i=null!=this.__renderParent?this.__renderParent:this.parent;if(this.__isMask&&null==i&&(i=this.__maskTarget),this.__renderable=this.__visible&&0!=this.__scaleX&&0!=this.__scaleY&&!this.__isMask&&(null==i||!i.__isMask),this.__updateTransforms(),this.__transformDirty=!1,this.__worldTransformInvalid=!1,!e)if(openfl_display_DisplayObject.__supportDOM&&(this.__renderTransformChanged=!this.__renderTransform.equals(this.__renderTransformCache),null==this.__renderTransformCache?this.__renderTransformCache=this.__renderTransform.clone():this.__renderTransformCache.copyFrom(this.__renderTransform)),null!=i){if(openfl_display_DisplayObject.__supportDOM){var l=i.__worldVisible&&this.__visible;this.__worldVisibleChanged=this.__worldVisible!=l,this.__worldVisible=l;var n=this.get_alpha()*i.__worldAlpha;this.__worldAlphaChanged=this.__worldAlpha!=n,this.__worldAlpha=n}else this.__worldAlpha=this.get_alpha()*i.__worldAlpha;null!=this.__objectTransform?(this.__worldColorTransform.__copyFrom(this.__objectTransform.get_colorTransform()),this.__worldColorTransform.__combine(i.__worldColorTransform)):this.__worldColorTransform.__copyFrom(i.__worldColorTransform),null==this.__blendMode||10==this.__blendMode?this.__worldBlendMode=i.__worldBlendMode:this.__worldBlendMode=this.__blendMode,null==this.__shader?this.__worldShader=i.__shader:this.__worldShader=this.__shader,null==this.__scale9Grid?this.__worldScale9Grid=i.__scale9Grid:this.__worldScale9Grid=this.__scale9Grid}else this.__worldAlpha=this.get_alpha(),openfl_display_DisplayObject.__supportDOM&&(this.__worldVisibleChanged=this.__worldVisible!=this.__visible,this.__worldVisible=this.__visible,this.__worldAlphaChanged=this.__worldAlpha!=this.get_alpha()),null!=this.__objectTransform?this.__worldColorTransform.__copyFrom(this.__objectTransform.get_colorTransform()):this.__worldColorTransform.__identity(),this.__worldBlendMode=this.__blendMode,this.__worldShader=this.__shader,this.__worldScale9Grid=this.__scale9Grid;t&&null!=this.get_mask()&&this.get_mask().__update(e,!0)},__updateCacheBitmap:function(e,t){if(this.__isCacheBitmapRender)return!1;var i=openfl_geom_ColorTransform.__pool.get();i.__copyFrom(this.__worldColorTransform),null!=e.__worldColorTransform&&i.__combine(e.__worldColorTransform);var l=!1;if(this.get_cacheAsBitmap()||"opengl"!=e.__type&&!i.__isDefault(!0)){var n=null,s=null==this.__cacheBitmap||this.__renderDirty&&(t||null!=this.__children&&this.__children.length>0)||this.opaqueBackground!=this.__cacheBitmapBackground,a=s||null!=this.__graphics&&this.__graphics.__softwareDirty||!this.__cacheBitmapColorTransform.__equals(i,!0),r=s||null!=this.__graphics&&this.__graphics.__hardwareDirty,_=e.__type;(a||r)&&("opengl"==_&&0==this.__shouldCacheHardware(null)&&(_="canvas"),!a||"canvas"!=_&&"cairo"!=_||(s=!0),r&&"opengl"==_&&(s=!0));var o=s||!this.__cacheBitmap.__worldTransform.equals(this.__worldTransform),h=null!=this.__filters;if(h&&!s)for(var u=0,d=this.__filters;u0?Math.ceil(n.x):Math.floor(n.x),F=n.y>0?Math.ceil(n.y):Math.floor(n.y),null!=this.__cacheBitmapData?m>this.__cacheBitmapData.width||x>this.__cacheBitmapData.height?(p=Math.ceil(Math.max(1.25*m,this.__cacheBitmapData.width)),f=Math.ceil(Math.max(1.25*x,this.__cacheBitmapData.height)),s=!0):(p=this.__cacheBitmapData.width,f=this.__cacheBitmapData.height):(p=m,f=x)),s){if(o=!0,this.__cacheBitmapBackground=this.opaqueBackground,!(m>=.5&&x>=.5))return openfl_geom_ColorTransform.__pool.release(i),this.__cacheBitmap=null,this.__cacheBitmapData=null,this.__cacheBitmapData2=null,this.__cacheBitmapData3=null,this.__cacheBitmapRenderer=null,!0;var y=null!=this.opaqueBackground&&(p!=m||f!=x),S=null!=this.opaqueBackground?-16777216|this.opaqueBackground:0,b=y?0:S,U="opengl"==e.__type;null==this.__cacheBitmapData||p>this.__cacheBitmapData.width||f>this.__cacheBitmapData.height?(this.__cacheBitmapData=new openfl_display_BitmapData(p,f,!0,b),null==this.__cacheBitmap&&(this.__cacheBitmap=new openfl_display_Bitmap),this.__cacheBitmap.__bitmapData=this.__cacheBitmapData,this.__cacheBitmapRenderer=null):this.__cacheBitmapData.__fillRect(this.__cacheBitmapData.rect,b,U),y&&(n.setTo(0,0,m,x),this.__cacheBitmapData.__fillRect(n,S,U))}else this.__cacheBitmapData=this.__cacheBitmap.get_bitmapData(),this.__cacheBitmapData2=null,this.__cacheBitmapData3=null;if((o||s)&&(this.__cacheBitmap.__worldTransform.copyFrom(this.__worldTransform),c==this.__renderTransform?(this.__cacheBitmap.__renderTransform.identity(),this.__cacheBitmap.__renderTransform.tx=this.__renderTransform.tx+g,this.__cacheBitmap.__renderTransform.ty=this.__renderTransform.ty+F):(this.__cacheBitmap.__renderTransform.copyFrom(this.__cacheBitmapMatrix),this.__cacheBitmap.__renderTransform.invert(),this.__cacheBitmap.__renderTransform.concat(this.__renderTransform),this.__cacheBitmap.__renderTransform.tx+=g,this.__cacheBitmap.__renderTransform.ty+=F)),this.__cacheBitmap.smoothing=e.__allowSmoothing,this.__cacheBitmap.__renderable=this.__renderable,this.__cacheBitmap.__worldAlpha=this.__worldAlpha,this.__cacheBitmap.__worldBlendMode=this.__worldBlendMode,this.__cacheBitmap.__worldShader=this.__worldShader,this.__cacheBitmap.set_mask(this.__mask),s){if(null==this.__cacheBitmapRenderer||_!=this.__cacheBitmapRenderer.__type){if("opengl"==_)this.__cacheBitmapRenderer=new openfl_display_OpenGLRenderer(js_Boot.__cast(e,openfl_display_OpenGLRenderer).__context3D,this.__cacheBitmapData);else{if(null==this.__cacheBitmapData.image){var v=null!=this.opaqueBackground?-16777216|this.opaqueBackground:0;this.__cacheBitmapData=new openfl_display_BitmapData(p,f,!0,v),this.__cacheBitmap.__bitmapData=this.__cacheBitmapData}lime__$internal_graphics_ImageCanvasUtil.convertToCanvas(this.__cacheBitmapData.image),this.__cacheBitmapRenderer=new openfl_display_CanvasRenderer(this.__cacheBitmapData.image.buffer.__srcContext)}this.__cacheBitmapRenderer.__worldTransform=new openfl_geom_Matrix,this.__cacheBitmapRenderer.__worldColorTransform=new openfl_geom_ColorTransform}if(null==this.__cacheBitmapColorTransform&&(this.__cacheBitmapColorTransform=new openfl_geom_ColorTransform),this.__cacheBitmapRenderer.__stage=this.stage,this.__cacheBitmapRenderer.__allowSmoothing=e.__allowSmoothing,this.__cacheBitmapRenderer.__setBlendMode(10),this.__cacheBitmapRenderer.__worldAlpha=1/this.__worldAlpha,this.__cacheBitmapRenderer.__worldTransform.copyFrom(this.__renderTransform),this.__cacheBitmapRenderer.__worldTransform.invert(),this.__cacheBitmapRenderer.__worldTransform.concat(this.__cacheBitmapMatrix),this.__cacheBitmapRenderer.__worldTransform.tx-=g,this.__cacheBitmapRenderer.__worldTransform.ty-=F,this.__cacheBitmapRenderer.__worldColorTransform.__copyFrom(i),this.__cacheBitmapRenderer.__worldColorTransform.__invert(),this.__isCacheBitmapRender=!0,"opengl"==this.__cacheBitmapRenderer.__type){var T=e,N=this.__cacheBitmapRenderer,D=N.__context3D,Q=D.__state.renderToTexture,B=D.__state.renderToTextureDepthStencil,R=D.__state.renderToTextureAntiAlias,w=D.__state.renderToTextureSurfaceSelector,E=T.__blendMode;if(T.__suspendClipAndMask(),N.__copyShader(T),this.__cacheBitmapData.__setUVRect(D,0,0,m,x),N.__setRenderTarget(this.__cacheBitmapData),null!=this.__cacheBitmapData.image&&(this.__cacheBitmapData.__textureVersion=this.__cacheBitmapData.image.version+1),this.__cacheBitmapData.__drawGL(this,N),h){for(var k=!0,W=!1,u=0,d=this.__filters;uthis.__cacheBitmapData2.width||f>this.__cacheBitmapData2.height?this.__cacheBitmapData2=new openfl_display_BitmapData(p,f,!0,0):(this.__cacheBitmapData2.fillRect(this.__cacheBitmapData2.rect,0),null!=this.__cacheBitmapData2.image&&(this.__cacheBitmapData2.__textureVersion=this.__cacheBitmapData2.image.version+1)),this.__cacheBitmapData2.__setUVRect(D,0,0,m,x),M=this.__cacheBitmapData2,W&&(null==this.__cacheBitmapData3||p>this.__cacheBitmapData3.width||f>this.__cacheBitmapData3.height?this.__cacheBitmapData3=new openfl_display_BitmapData(p,f,!0,0):(this.__cacheBitmapData3.fillRect(this.__cacheBitmapData3.rect,0),null!=this.__cacheBitmapData3.image&&(this.__cacheBitmapData3.__textureVersion=this.__cacheBitmapData3.image.version+1)),this.__cacheBitmapData3.__setUVRect(D,0,0,m,x),P=this.__cacheBitmapData3),N.__setBlendMode(10),N.__worldAlpha=1,N.__worldTransform.identity(),N.__worldColorTransform.__identity();for(var V,u=0,d=this.__filters;uthis.__cacheBitmapData2.width||f>this.__cacheBitmapData2.height?this.__cacheBitmapData2=new openfl_display_BitmapData(p,f,!0,0):this.__cacheBitmapData2.fillRect(this.__cacheBitmapData2.rect,0),M=this.__cacheBitmapData2):M=Z,W&&(null==this.__cacheBitmapData3||null==this.__cacheBitmapData3.image||p>this.__cacheBitmapData3.width||f>this.__cacheBitmapData3.height?this.__cacheBitmapData3=new openfl_display_BitmapData(p,f,!0,0):this.__cacheBitmapData3.fillRect(this.__cacheBitmapData3.rect,0),P=this.__cacheBitmapData3),null==this.__tempPoint&&(this.__tempPoint=new openfl_geom_Point);for(var I,L,J=this.__tempPoint,u=0,d=this.__filters;u1&&(e=1),e<0&&(e=0),e==this.__alpha||this.get_cacheAsBitmap()||this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),this.__alpha=e},get_blendMode:function(){return this.__blendMode},set_blendMode:function(e){return null==e&&(e=10),e!=this.__blendMode&&(this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())),this.__blendMode=e},get_cacheAsBitmap:function(){return null!=this.__filters||this.__cacheAsBitmap},set_cacheAsBitmap:function(e){return e!=this.__cacheAsBitmap&&(this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())),this.__cacheAsBitmap=e},get_cacheAsBitmapMatrix:function(){return this.__cacheAsBitmapMatrix},set_cacheAsBitmapMatrix:function(e){return this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),this.__cacheAsBitmapMatrix=null!=e?e.clone():e},get_filters:function(){return null==this.__filters?[]:this.__filters.slice()},set_filters:function(e){return null!=e&&e.length>0?(this.__filters=e,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())):null!=this.__filters&&(this.__filters=null,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())),e},get_height:function(){var e=openfl_geom_Rectangle.__pool.get();this.__getLocalBounds(e);var t=e.height;return openfl_geom_Rectangle.__pool.release(e),t},set_height:function(e){var t=openfl_geom_Rectangle.__pool.get(),i=openfl_geom_Matrix.__pool.get();return i.identity(),this.__getBounds(t,i),e!=t.height?this.set_scaleY(e/t.height):this.set_scaleY(1),openfl_geom_Rectangle.__pool.release(t),openfl_geom_Matrix.__pool.release(i),e},get_loaderInfo:function(){return null!=this.stage?openfl__$internal_Lib.current.__loaderInfo:null},get_mask:function(){return this.__mask},set_mask:function(e){if(e==this.__mask)return e;if(e!=this.__mask&&(this.__setTransformDirty(),this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())),null!=this.__mask){this.__mask.__isMask=!1,this.__mask.__maskTarget=null,this.__mask.__setTransformDirty();var t=this.__mask;t.__renderDirty||(t.__renderDirty=!0,t.__setParentRenderDirty())}return null!=e&&(e.__isMask=!0,e.__maskTarget=this,e.__setWorldTransformInvalid()),null!=this.__cacheBitmap&&this.__cacheBitmap.get_mask()!=e&&this.__cacheBitmap.set_mask(e),this.__mask=e},get_mouseX:function(){var e=null!=this.stage?this.stage.__mouseX:openfl__$internal_Lib.current.stage.__mouseX,t=null!=this.stage?this.stage.__mouseY:openfl__$internal_Lib.current.stage.__mouseY,i=this.__getRenderTransform(),l=i.a*i.d-i.b*i.c;return 0==l?-i.tx:1/l*(i.c*(i.ty-t)+i.d*(e-i.tx))},get_mouseY:function(){var e=null!=this.stage?this.stage.__mouseX:openfl__$internal_Lib.current.stage.__mouseX,t=null!=this.stage?this.stage.__mouseY:openfl__$internal_Lib.current.stage.__mouseY,i=this.__getRenderTransform(),l=i.a*i.d-i.b*i.c;return 0==l?-i.ty:1/l*(i.a*(t-i.ty)+i.b*(i.tx-e))},get_name:function(){return this.__name},set_name:function(e){return this.__name=e},get_root:function(){return null!=this.stage?openfl__$internal_Lib.current:null},get_rotation:function(){return this.__rotation},set_rotation:function(e){if(e!=this.__rotation){this.__rotation=e;var t=this.__rotation*(Math.PI/180);this.__rotationSine=Math.sin(t),this.__rotationCosine=Math.cos(t),this.__transform.a=this.__rotationCosine*this.__scaleX,this.__transform.b=this.__rotationSine*this.__scaleX,this.__transform.c=-this.__rotationSine*this.__scaleY,this.__transform.d=this.__rotationCosine*this.__scaleY,this.__setTransformDirty()}return e},get_scale9Grid:function(){return null==this.__scale9Grid?null:this.__scale9Grid.clone()},set_scale9Grid:function(e){return null==e&&null==this.__scale9Grid?e:null!=e&&null!=this.__scale9Grid&&this.__scale9Grid.equals(e)?e:(null!=e?(null==this.__scale9Grid&&(this.__scale9Grid=new openfl_geom_Rectangle),this.__scale9Grid.copyFrom(e)):this.__scale9Grid=null,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),e)},get_scaleX:function(){return this.__scaleX},set_scaleX:function(e){if(e!=this.__scaleX)if(this.__scaleX=e,0==this.__transform.b)e!=this.__transform.a&&this.__setTransformDirty(),this.__transform.a=e;else{var t=this.__rotationCosine*e,i=this.__rotationSine*e;this.__transform.a==t&&this.__transform.b==i||this.__setTransformDirty(),this.__transform.a=t,this.__transform.b=i}return e},get_scaleY:function(){return this.__scaleY},set_scaleY:function(e){if(e!=this.__scaleY)if(this.__scaleY=e,0==this.__transform.c)e!=this.__transform.d&&this.__setTransformDirty(),this.__transform.d=e;else{var t=-this.__rotationSine*e,i=this.__rotationCosine*e;this.__transform.d==i&&this.__transform.c==t||this.__setTransformDirty(),this.__transform.c=t,this.__transform.d=i}return e},get_scrollRect:function(){return null==this.__scrollRect?null:this.__scrollRect.clone()},set_scrollRect:function(e){return null==e&&null==this.__scrollRect?e:null!=e&&null!=this.__scrollRect&&this.__scrollRect.equals(e)?e:(null!=e?(null==this.__scrollRect&&(this.__scrollRect=new openfl_geom_Rectangle),this.__scrollRect.copyFrom(e)):this.__scrollRect=null,this.__setTransformDirty(),openfl_display_DisplayObject.__supportDOM&&(this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())),e)},get_shader:function(){return this.__shader},set_shader:function(e){return this.__shader=e,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()),e},get_transform:function(){return null==this.__objectTransform&&(this.__objectTransform=new openfl_geom_Transform(this)),this.__objectTransform},set_transform:function(e){if(null==e)throw haxe_Exception.thrown(new openfl_errors_TypeError("Parameter transform must be non-null."));return null==this.__objectTransform&&(this.__objectTransform=new openfl_geom_Transform(this)),this.__setTransformDirty(),this.__objectTransform.set_matrix(e.get_matrix()),this.__objectTransform.get_colorTransform().__equals(e.get_colorTransform(),!0)&&(this.get_cacheAsBitmap()||this.__objectTransform.get_colorTransform().alphaMultiplier==e.get_colorTransform().alphaMultiplier)||(this.__objectTransform.get_colorTransform().__copyFrom(e.get_colorTransform()),this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())),this.__objectTransform},get_visible:function(){return this.__visible},set_visible:function(e){return e!=this.__visible&&(this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())),this.__visible=e},get_width:function(){var e=openfl_geom_Rectangle.__pool.get();this.__getLocalBounds(e);var t=e.width;return openfl_geom_Rectangle.__pool.release(e),t},set_width:function(e){var t=openfl_geom_Rectangle.__pool.get(),i=openfl_geom_Matrix.__pool.get();return i.identity(),this.__getBounds(t,i),e!=t.width?this.set_scaleX(e/t.width):this.set_scaleX(1),openfl_geom_Rectangle.__pool.release(t),openfl_geom_Matrix.__pool.release(i),e},get_x:function(){return this.__transform.tx},set_x:function(e){return e!=this.__transform.tx&&this.__setTransformDirty(),this.__transform.tx=e},get_y:function(){return this.__transform.ty},set_y:function(e){return e!=this.__transform.ty&&this.__setTransformDirty(),this.__transform.ty=e},__class__:openfl_display_DisplayObject,__properties__:{set_y:"set_y",get_y:"get_y",set_x:"set_x",get_x:"get_x",set_width:"set_width",get_width:"get_width",set_visible:"set_visible",get_visible:"get_visible",set_transform:"set_transform",get_transform:"get_transform",set_shader:"set_shader",get_shader:"get_shader",set_scrollRect:"set_scrollRect",get_scrollRect:"get_scrollRect",set_scaleY:"set_scaleY",get_scaleY:"get_scaleY",set_scaleX:"set_scaleX",get_scaleX:"get_scaleX",set_scale9Grid:"set_scale9Grid",get_scale9Grid:"get_scale9Grid",set_rotation:"set_rotation",get_rotation:"get_rotation",get_root:"get_root",set_name:"set_name",get_name:"get_name",get_mouseY:"get_mouseY",get_mouseX:"get_mouseX",set_mask:"set_mask",get_mask:"get_mask",get_loaderInfo:"get_loaderInfo",set_height:"set_height",get_height:"get_height",set_filters:"set_filters",get_filters:"get_filters",set_cacheAsBitmapMatrix:"set_cacheAsBitmapMatrix",get_cacheAsBitmapMatrix:"get_cacheAsBitmapMatrix",set_cacheAsBitmap:"set_cacheAsBitmap",get_cacheAsBitmap:"get_cacheAsBitmap",set_blendMode:"set_blendMode",get_blendMode:"get_blendMode",set_alpha:"set_alpha",get_alpha:"get_alpha"}});var openfl_display_InteractiveObject=function(){openfl_display_DisplayObject.call(this),this.doubleClickEnabled=!1,this.mouseEnabled=!0,this.needsSoftKeyboard=!1,this.__tabEnabled=null,this.__tabIndex=-1};$hxClasses["openfl.display.InteractiveObject"]=openfl_display_InteractiveObject,openfl_display_InteractiveObject.__name__="openfl.display.InteractiveObject",openfl_display_InteractiveObject.__super__=openfl_display_DisplayObject,openfl_display_InteractiveObject.prototype=$extend(openfl_display_DisplayObject.prototype,{doubleClickEnabled:null,focusRect:null,mouseEnabled:null,needsSoftKeyboard:null,softKeyboardInputAreaOfInterest:null,__tabEnabled:null,__tabIndex:null,requestSoftKeyboard:function(){return openfl__$internal_Lib.notImplemented({fileName:"openfl/display/InteractiveObject.hx",lineNumber:57,className:"openfl.display.InteractiveObject",methodName:"requestSoftKeyboard"}),!1},__allowMouseFocus:function(){return this.get_tabEnabled()},__getInteractive:function(e){return null!=e&&(e.push(this),null!=this.parent&&this.parent.__getInteractive(e)),!0},__hitTest:function(e,t,i,l,n,s){return!(!s.get_visible()||this.__isMask||n&&!this.mouseEnabled)&&openfl_display_DisplayObject.prototype.__hitTest.call(this,e,t,i,l,n,s)},__tabTest:function(e){this.get_tabEnabled()&&e.push(this)},get_tabEnabled:function(){return 1==this.__tabEnabled},set_tabEnabled:function(e){return this.__tabEnabled!=e&&(this.__tabEnabled=e,this.dispatchEvent(new openfl_events_Event("tabEnabledChange",!0,!1))),this.__tabEnabled},get_tabIndex:function(){return this.__tabIndex},set_tabIndex:function(e){if(this.__tabIndex!=e){if(e<-1)throw haxe_Exception.thrown(new openfl_errors_RangeError("Parameter tabIndex must be a non-negative number; got "+e));this.__tabIndex=e,this.dispatchEvent(new openfl_events_Event("tabIndexChange",!0,!1))}return this.__tabIndex},__class__:openfl_display_InteractiveObject,__properties__:$extend(openfl_display_DisplayObject.prototype.__properties__,{set_tabIndex:"set_tabIndex",get_tabIndex:"get_tabIndex",set_tabEnabled:"set_tabEnabled",get_tabEnabled:"get_tabEnabled"})});var openfl_display_DisplayObjectContainer=function(){openfl_display_InteractiveObject.call(this),this.mouseChildren=!0,this.__tabChildren=!0,this.__children=[],this.__removedChildren=openfl_Vector.toObjectVector(null)};$hxClasses["openfl.display.DisplayObjectContainer"]=openfl_display_DisplayObjectContainer,openfl_display_DisplayObjectContainer.__name__="openfl.display.DisplayObjectContainer",openfl_display_DisplayObjectContainer.__super__=openfl_display_InteractiveObject,openfl_display_DisplayObjectContainer.prototype=$extend(openfl_display_InteractiveObject.prototype,{mouseChildren:null,__removedChildren:null,__tabChildren:null,addChild:function(e){return this.addChildAt(e,this.get_numChildren())},addChildAt:function(e,t){if(null==e)throw(i=new openfl_errors_TypeError("Error #2007: Parameter child must be non-null.")).errorID=2007,haxe_Exception.thrown(i);if(e.stage==e){var i=new openfl_errors_ArgumentError("Error #3783: A Stage object cannot be added as the child of another object.");throw i.errorID=3783,haxe_Exception.thrown(i)}if(t>this.__children.length||t<0)throw haxe_Exception.thrown("Invalid index position "+t);if(e.parent==this)this.__children[t]!=e&&(HxOverrides.remove(this.__children,e),this.__children.splice(t,0,e),this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty()));else{null!=e.parent&&e.parent.removeChild(e),this.__children.splice(t,0,e),e.parent=this;var l=null!=this.stage&&null==e.stage;l&&e.__setStageReference(this.stage),e.__setTransformDirty(),e.__renderDirty||(e.__renderDirty=!0,e.__setParentRenderDirty()),this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty());var n=new openfl_events_Event("added");n.bubbles=!0,n.target=e,e.__dispatchWithCapture(n),l&&(n=new openfl_events_Event("addedToStage",!1,!1),e.__dispatchWithCapture(n),e.__dispatchChildren(n))}return e},areInaccessibleObjectsUnderPoint:function(e){return!1},contains:function(e){for(;e!=this&&null!=e;)e=e.parent;return e==this},getChildAt:function(e){return e>=0&&e=0&ðis.__children.length-1)){if(tthis.__children.length)throw haxe_Exception.thrown(new openfl_errors_RangeError("The supplied index is out of bounds."));for(var i=t-e;i>=0;)this.removeChildAt(e),--i}},resolve:function(e){if(null==this.__children)return null;for(var t=0,i=this.__children;t=0&&t<=this.__children.length&&e.parent==this&&(HxOverrides.remove(this.__children,e),this.__children.splice(t,0,e))},stopAllMovieClips:function(){this.__stopAllMovieClips()},swapChildren:function(e,t){if(e.parent==this&&t.parent==this){var i=this.__children.indexOf(e),l=this.__children.indexOf(t);this.__children[i]=t,this.__children[l]=e,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())}},swapChildrenAt:function(e,t){var i=this.__children[e];this.__children[e]=this.__children[t],this.__children[t]=i,i=null,this.__renderDirty||(this.__renderDirty=!0,this.__setParentRenderDirty())},__cleanup:function(){openfl_display_InteractiveObject.prototype.__cleanup.call(this);for(var e=0,t=this.__children;e=0&&(!this.__children[h].__hitTest(e,t,i,l,!1,this.__children[h])||(c=!0,null!=l)););return c}if(null!=l&&this.mouseChildren){if(null!=l){for(var u=l.length,d=!1,c=!1;--h>=0&&!(((d=this.__children[h].__getInteractive(null))||this.mouseEnabled&&!c)&&this.__children[h].__hitTest(e,t,i,l,!0,this.__children[h])&&(c=!0,d&&l.length>u)););if(c)return l.splice(u,0,s),!0}}else for(;--h>=0;)if(this.__children[h].__hitTest(e,t,i,null,!0,this.__children[h]))return null!=l&&l.push(s),!0;return!1},__hitTestMask:function(e,t){for(var i=this.__children.length;--i>=0;)if(this.__children[i].__hitTestMask(e,t))return!0;return!1},__readGraphicsData:function(e,t){if(openfl_display_InteractiveObject.prototype.__readGraphicsData.call(this,e,t),t)for(var i=0,l=this.__children;i0)if(e.__pushMaskObject(this),null!=e.__stage){for(var l=0,n=this.__children;l0&&e.__popMaskObject(this)}},__renderGLMask:function(e){for(var t=this.__removedChildren.iterator();t.hasNext();){var i=t.next();null==i.stage&&i.__cleanup()}this.__removedChildren.set_length(0),null!=this.__graphics&&openfl_display__$internal_Context3DShape.renderMask(this,e);for(var l=0,n=this.__children;l=Conductor.stepCrochet*t*.001&&(this.dance(),this.holdTimer=0)}"gf"==this.curCharacter&&"hairFall"==this.animation._curAnim.name&&this.animation._curAnim.finished&&this.playAnim("danceRight"),flixel_FlxSprite.prototype.update.call(this,e)},danced:null,dance:function(){if(!this.debugMode)switch(this.curCharacter){case"gf":case"gf-car":case"gf-christmas":case"gf-pixel":StringTools.startsWith(this.animation._curAnim.name,"hair")||(this.danced=!this.danced,this.danced?this.playAnim("danceRight"):this.playAnim("danceLeft"));break;case"spooky":this.danced=!this.danced,this.danced?this.playAnim("danceRight"):this.playAnim("danceLeft");break;default:this.playAnim("idle")}},playAnim:function(e,t,i,l){null==l&&(l=0),null==i&&(i=!1),null==t&&(t=!1),this.animation.play(e,t,i,l);var n=this.animOffsets.h[e];Object.prototype.hasOwnProperty.call(this.animOffsets.h,e)?this.offset.set(n[0],n[1]):this.offset.set(0,0),"gf"==this.curCharacter&&("singLEFT"==e?this.danced=!0:"singRIGHT"==e&&(this.danced=!1),"singUP"!=e&&"singDOWN"!=e||(this.danced=!this.danced))},addOffset:function(e,t,i){null==i&&(i=0),null==t&&(t=0);var l=[t,i];this.animOffsets.h[e]=l},__class__:Character});var Boyfriend=function(e,t,i){null==i&&(i="bf"),this.stunned=!1,Character.call(this,e,t,i,!0)};$hxClasses.Boyfriend=Boyfriend,Boyfriend.__name__="Boyfriend",Boyfriend.__super__=Character,Boyfriend.prototype=$extend(Character.prototype,{stunned:null,update:function(e){this.debugMode||(StringTools.startsWith(this.animation._curAnim.name,"sing")?this.holdTimer+=e:this.holdTimer=0,StringTools.endsWith(this.animation._curAnim.name,"miss")&&this.animation._curAnim.finished&&!this.debugMode&&this.playAnim("idle",!0,!1,10),"firstDeath"==this.animation._curAnim.name&&this.animation._curAnim.finished&&this.playAnim("deathLoop")),Character.prototype.update.call(this,e)},__class__:Boyfriend});var flixel_group_FlxTypedGroup=function(e){null==e&&(e=0),this._marker=0,this.length=0,flixel_FlxBasic.call(this),this.members=[],this.set_maxSize(0|Math.abs(e)),this.flixelType=2};$hxClasses["flixel.group.FlxTypedGroup"]=flixel_group_FlxTypedGroup,flixel_group_FlxTypedGroup.__name__="flixel.group.FlxTypedGroup",flixel_group_FlxTypedGroup.overlaps=function(e,t,i,l,n,s){var a=!1;if(null!=t)for(var r,_=0,o=t.length;_=0)return e;var t=this.getFirstNull();return-1!=t?(this.members[t]=e,t>=this.length&&(this.length=t+1),null!=this._memberAdded&&this._memberAdded.dispatch(e),e):this.maxSize>0&&this.length>=this.maxSize?e:(this.members.push(e),this.length++,null!=this._memberAdded&&this._memberAdded.dispatch(e),e)},insert:function(e,t){return null==t?null:this.members.indexOf(t)>=0?t:e0&&this.length>=this.maxSize?t:(this.members.splice(e,0,t),this.length++,null!=this._memberAdded&&this._memberAdded.dispatch(t),t)},recycle:function(e,t,i,l){null==l&&(l=!0),null==i&&(i=!1);var n=null;if(this.maxSize>0){if(this.length=this.maxSize&&(this._marker=0),l&&n.revive(),n}if(null!=(n=this.getFirstAvailable(e,i)))return l&&n.revive(),n;var s=null;return null!=t?(s=t(),this.add(s)):null!=e&&(s=Type.createInstance(e,[]),this.add(s)),s},recycleCreateObject:function(e,t){var i=null;return null!=t?(i=t(),this.add(i)):null!=e&&(i=Type.createInstance(e,[]),this.add(i)),i},remove:function(e,t){if(null==t&&(t=!1),null==this.members)return null;var i=this.members.indexOf(e);return i<0?null:(t?(this.members.splice(i,1),this.length--):this.members[i]=null,null!=this._memberRemoved&&this._memberRemoved.dispatch(e),e)},replace:function(e,t){var i=this.members.indexOf(e);return i<0?null:(this.members[i]=t,null!=this._memberRemoved&&this._memberRemoved.dispatch(e),null!=this._memberAdded&&this._memberAdded.dispatch(t),t)},sort:function(e,t){null==t&&(t=-1);var i=e,l=t,n=function(e,t){return i(l,e,t)};this.members.sort(n)},getFirstAvailable:function(e,t){null==t&&(t=!1);for(var i=0,l=null;i=this.maxSize&&(this._marker=0),0==this.maxSize||null==this.members||this.maxSize>=this.length)return this.maxSize;for(var t=this.maxSize,i=this.length,l=null;t0&&0==--this._reload_countdown&&this.reloadUI()},cleanup:function(){this._ui.cleanup()},_cleanupUIVars:function(){if(null!=this._ui_vars){for(var e=haxe_ds_StringMap.keysIterator(this._ui_vars.h);e.hasNext();){var t=e.next(),i=this._ui_vars;Object.prototype.hasOwnProperty.call(i.h,t)&&delete i.h[t]}this._ui_vars=null}},setUIVariable:function(e,t){null!=this._ui?this._ui.setVariable(e,t):(null==this._ui_vars&&(this._ui_vars=new haxe_ds_StringMap),this._ui_vars.h[e]=t)},resizeScreen:function(e,t){null==t&&(t=600),null==e&&(e=800)},openSubState:function(e){null!=this.cursor&&this.hideCursorOnSubstate&&1==this.cursor.visible&&(this._cursorHidden=!0,this.cursor.set_visible(!1)),flixel_addons_transition_FlxTransitionableState.prototype.openSubState.call(this,e)},closeSubState:function(){null!=this.cursor&&this.hideCursorOnSubstate&&this._cursorHidden&&(this._cursorHidden=!1,this.cursor.set_visible(!0)),flixel_addons_transition_FlxTransitionableState.prototype.closeSubState.call(this)},onResize:function(e,t){this.reload_ui_on_resize&&(flixel_FlxG.scaleMode.onMeasure(e,t),this._reload_countdown=1,this._reload=!0)},onShowTooltip:function(e){},destroy:function(){this.destroyed=!0,null!=this._ui&&(this._ui.destroy(),this.remove(this._ui,!0),this._ui=null),null!=this.tooltips&&(this.tooltips.destroy(),this.tooltips=null),flixel_addons_transition_FlxTransitionableState.prototype.destroy.call(this)},forceFocus:function(e,t){null!=this._ui&&(e?this._ui.set_focus(t):this._ui.set_focus(null))},onCursorEvent:function(e,t){this.getEvent(e,t,null)},getEvent:function(e,t,i,l){},getRequest:function(e,t,i,l){return null},getText:function(e,t,i){return null==i&&(i=!0),null==t&&(t="ui"),null!=this._tongue?this._tongue.get(e,t,i):null!=this.getTextFallback?this.getTextFallback(e,t,i):e},createCursor:function(){return new flixel_addons_ui_FlxUICursor($bind(this,this.onCursorEvent))},createUI:function(e,t,i,l,n){null==n&&(n="");var s=new flixel_addons_ui_FlxUI(e,t,i,l,n,this._ui_vars);return this._cleanupUIVars(),s},loadUIFromData:function(e){this._ui.load(e)},reloadUI:function(e){null!=this._ui&&(this.remove(this._ui,!0),this._ui.destroy(),this._ui=null),this._ui=this.createUI(null,this,null,this._tongue),this.add(this._ui);var t=flixel_addons_ui_U.xml(this._xml_id);null!=t&&this.loadUIFromData(t),this._reload=!1,this._reload_countdown=0},__class__:flixel_addons_ui_FlxUIState});var MusicBeatState=function(e,t){this.curBeat=0,this.curStep=0,this.lastStep=0,this.lastBeat=0,flixel_addons_ui_FlxUIState.call(this,e,t)};$hxClasses.MusicBeatState=MusicBeatState,MusicBeatState.__name__="MusicBeatState",MusicBeatState.__super__=flixel_addons_ui_FlxUIState,MusicBeatState.prototype=$extend(flixel_addons_ui_FlxUIState.prototype,{lastBeat:null,lastStep:null,curStep:null,curBeat:null,get_controls:function(){return PlayerSettings.player1.controls},create:function(){null!=this.transIn&&haxe_Log.trace("reg "+Std.string(this.transIn.region),{fileName:"source/MusicBeatState.hx",lineNumber:25,className:"MusicBeatState",methodName:"create"}),flixel_addons_ui_FlxUIState.prototype.create.call(this)},update:function(e){var t=this.curStep;this.updateCurStep(),this.updateBeat(),t!=this.curStep&&this.curStep>0&&this.stepHit(),flixel_addons_ui_FlxUIState.prototype.update.call(this,e)},updateBeat:function(){this.curBeat=Math.floor(this.curStep/4)},updateCurStep:function(){for(var e={stepTime:0,songTime:0,bpm:0},t=0,i=Conductor.bpmChangeMap.length;t=Conductor.bpmChangeMap[l].songTime&&(e=Conductor.bpmChangeMap[l])}this.curStep=e.stepTime+Math.floor((Conductor.songPosition-e.songTime)/Conductor.stepCrochet)},stepHit:function(){this.curStep%4==0&&this.beatHit()},beatHit:function(){},__class__:MusicBeatState,__properties__:$extend(flixel_addons_ui_FlxUIState.prototype.__properties__,{get_controls:"get_controls"})});var ChartingState=function(e,t){this.daSpacing=.3,this.writingNotes=!1,this.updatedSection=!1,this.tempBpm=0,this.GRID_SIZE=40,this.amountSteps=0,this.curSong="Dadbattle",this.curSection=0,MusicBeatState.call(this,e,t)};$hxClasses.ChartingState=ChartingState,ChartingState.__name__="ChartingState",ChartingState.__super__=MusicBeatState,ChartingState.prototype=$extend(MusicBeatState.prototype,{_file:null,UI_box:null,curSection:null,bpmTxt:null,strumLine:null,curSong:null,amountSteps:null,bullshitUI:null,writingNotesText:null,highlight:null,GRID_SIZE:null,dummyArrow:null,curRenderedNotes:null,curRenderedSustains:null,gridBG:null,_song:null,typingShit:null,curSelectedNote:null,tempBpm:null,gridBlackLine:null,vocals:null,leftIcon:null,rightIcon:null,create:function(){this.curSection=ChartingState.lastSection,this.gridBG=flixel_addons_display_FlxGridOverlay.create(this.GRID_SIZE,this.GRID_SIZE,8*this.GRID_SIZE,16*this.GRID_SIZE),this.add(this.gridBG),this.leftIcon=new HealthIcon("bf"),this.rightIcon=new HealthIcon("dad"),this.leftIcon.scrollFactor.set(1,1),this.rightIcon.scrollFactor.set(1,1),this.leftIcon.setGraphicSize(0,45),this.rightIcon.setGraphicSize(0,45),this.add(this.leftIcon),this.add(this.rightIcon),this.leftIcon.setPosition(0,-100),this.rightIcon.setPosition(this.gridBG.get_width()/2,-100),this.gridBlackLine=new flixel_FlxSprite(this.gridBG.x+this.gridBG.get_width()/2).makeGraphic(2,0|this.gridBG.get_height(),-16777216),this.add(this.gridBlackLine),this.curRenderedNotes=new flixel_group_FlxTypedGroup,this.curRenderedSustains=new flixel_group_FlxTypedGroup,null!=PlayState.SONG?this._song=PlayState.SONG:this._song={song:"Test",notes:[],bpm:150,needsVoices:!0,player1:"bf",player2:"dad",speed:1,validScore:!1},flixel_FlxG.mouse.set_visible(!0),flixel_FlxG.save.bind("funkin","ninjamuffin99"),this.tempBpm=this._song.bpm,this.addSection(),this.updateGrid(),this.loadSong(this._song.song),Conductor.changeBPM(this._song.bpm),Conductor.mapBPMChanges(this._song),this.bpmTxt=new flixel_text_FlxText(1e3,50,0,"",16),this.bpmTxt.scrollFactor.set(),this.add(this.bpmTxt),this.strumLine=new flixel_FlxSprite(0,50).makeGraphic(flixel_FlxG.width/2|0,4),this.add(this.strumLine),this.dummyArrow=(new flixel_FlxSprite).makeGraphic(this.GRID_SIZE,this.GRID_SIZE),this.add(this.dummyArrow);var e=[{name:"Song",label:"Song"},{name:"Section",label:"Section"},{name:"Note",label:"Note"}];this.UI_box=new flixel_addons_ui_FlxUITabMenu(null,null,e,null,!0),this.UI_box.resize(300,400),this.UI_box.set_x(flixel_FlxG.width/2),this.UI_box.set_y(20),this.add(this.UI_box),this.addSongUI(),this.addSectionUI(),this.addNoteUI(),this.add(this.curRenderedNotes),this.add(this.curRenderedSustains),MusicBeatState.prototype.create.call(this)},addSongUI:function(){var e=this,t=new flixel_addons_ui_FlxUIInputText(10,10,70,this._song.song,8);this.typingShit=t;var i=new flixel_addons_ui_FlxUICheckBox(10,25,null,null,"Has voice track",100);i.set_checked(this._song.needsVoices),i.callback=function(){e._song.needsVoices=i.checked,haxe_Log.trace("CHECKED!",{fileName:"source/ChartingState.hx",lineNumber:190,className:"ChartingState",methodName:"addSongUI"})};var l=new flixel_addons_ui_FlxUICheckBox(10,200,null,null,"Mute Instrumental (in editor)",100);l.set_checked(!1),l.callback=function(){var e=1;l.checked&&(e=0),flixel_FlxG.sound.music.set_volume(e)};var n=new flixel_ui_FlxButton(110,8,"Save",function(){e.saveLevel()}),s=new flixel_ui_FlxButton(n.x+n.get_width()+10,n.y,"Reload Audio",function(){e.loadSong(e._song.song)}),a=new flixel_ui_FlxButton(s.x,n.y+30,"Reload JSON",function(){e.loadJson(e._song.song.toLowerCase())}),r=new flixel_ui_FlxButton(10,140,"Reset",function(){for(var t=0,i=e._song.notes.length;t0;)this.bullshitUI.remove(this.bullshitUI.members[0],!0);var e=new flixel_text_FlxText(this.UI_box.x+20,this.UI_box.y+20,0);this.bullshitUI.add(e)},getEvent:function(e,t,i,l){if("click_check_box"==e){var n=t;switch(n.getLabel().text){case"Alt Animation":this._song.notes[this.curSection].altAnim=n.checked;break;case"Change BPM":this._song.notes[this.curSection].changeBPM=n.checked;break;case"Must hit section":this._song.notes[this.curSection].mustHitSection=n.checked,this.updateHeads()}}else if("change_numeric_stepper"==e&&t instanceof flixel_addons_ui_FlxUINumericStepper){var s=t,a=s.name;if("section_length"==a)s.value<=4&&s.set_value(4),this._song.notes[this.curSection].lengthInSteps=0|s.value,this.updateGrid();else if("song_speed"==a)s.value<=0&&s.set_value(0),this._song.speed=s.value;else if("song_bpm"==a)s.value<=0&&s.set_value(1),this.tempBpm=0|s.value,Conductor.mapBPMChanges(this._song),Conductor.changeBPM(0|s.value);else if("note_susLength"==a){if(null==this.curSelectedNote)return;s.value<=0&&s.set_value(0),this.curSelectedNote[2]=s.value,this.updateGrid()}else"section_bpm"==a&&(s.value<=.1&&s.set_value(.1),this._song.notes[this.curSection].bpm=0|s.value,this.updateGrid())}},updatedSection:null,sectionStartTime:function(){for(var e=this._song.bpm,t=0,i=0,l=this.curSection;i=16*(this.curSection+1)&&(haxe_Log.trace(this.curStep,{fileName:"source/ChartingState.hx",lineNumber:561,className:"ChartingState",methodName:"update"}),haxe_Log.trace(this._song.notes[this.curSection].lengthInSteps*(this.curSection+1),{fileName:"source/ChartingState.hx",lineNumber:562,className:"ChartingState",methodName:"update"}),haxe_Log.trace("DUMBSHIT",{fileName:"source/ChartingState.hx",lineNumber:563,className:"ChartingState",methodName:"update"}),null==this._song.notes[this.curSection+1]&&this.addSection(),this.changeSection(this.curSection+1,!1)),2==flixel_FlxG.mouse._leftButton.current&&(flixel_FlxG.mouse.overlaps(this.curRenderedNotes)?this.curRenderedNotes.forEach(function(e){if(flixel_FlxG.mouse.overlaps(e)){var i=flixel_FlxG.keys.pressed;i.keyManager.checkStatus(17,i.status)?t.selectNote(e):(haxe_Log.trace("tryin to delete note",{fileName:"source/ChartingState.hx",lineNumber:590,className:"ChartingState",methodName:"update"}),haxe_Log.trace(e.noteData,{fileName:"source/ChartingState.hx",lineNumber:591,className:"ChartingState",methodName:"update"}),t.deleteNote(e))}}):flixel_FlxG.mouse.x>this.gridBG.x&&flixel_FlxG.mouse.xthis.gridBG.y&&flixel_FlxG.mouse.ythis.gridBG.x&&flixel_FlxG.mouse.xthis.gridBG.y&&flixel_FlxG.mouse.y=3&&this.UI_box.set_selected_tab(0))),!this.typingShit.hasFocus){var m=1;if((i=flixel_FlxG.keys.pressed).keyManager.checkStatus(16,i.status)&&(m=4),!this.writingNotes){(!!(i=flixel_FlxG.keys.justPressed).keyManager.checkStatus(39,i.status)||(i=flixel_FlxG.keys.justPressed).keyManager.checkStatus(68,i.status))&&this.changeSection(this.curSection+m);(!!(i=flixel_FlxG.keys.justPressed).keyManager.checkStatus(37,i.status)||(i=flixel_FlxG.keys.justPressed).keyManager.checkStatus(65,i.status))&&this.changeSection(this.curSection-m)}if((i=flixel_FlxG.keys.justPressed).keyManager.checkStatus(32,i.status)&&(null!=flixel_FlxG.sound.music._channel?(flixel_FlxG.sound.music.pause(),this.vocals.pause()):(this.vocals.play(),flixel_FlxG.sound.music.play())),(i=flixel_FlxG.keys.justPressed).keyManager.checkStatus(82,i.status)&&((i=flixel_FlxG.keys.pressed).keyManager.checkStatus(16,i.status)?this.resetSection(!0):this.resetSection()),0!=flixel_FlxG.mouse.wheel&&(flixel_FlxG.sound.music.pause(),this.vocals.pause(),(_=flixel_FlxG.sound.music).set_time(_._time-flixel_FlxG.mouse.wheel*Conductor.stepCrochet*.4),this.vocals.set_time(flixel_FlxG.sound.music._time)),(i=flixel_FlxG.keys.pressed).keyManager.checkStatus(16,i.status)){if(!!(i=flixel_FlxG.keys.justPressed).keyManager.checkStatus(87,i.status)||(i=flixel_FlxG.keys.justPressed).keyManager.checkStatus(83,i.status)){flixel_FlxG.sound.music.pause(),this.vocals.pause();x=2*Conductor.stepCrochet;(i=flixel_FlxG.keys.justPressed).keyManager.checkStatus(87,i.status)?(_=flixel_FlxG.sound.music).set_time(_._time-x):(_=flixel_FlxG.sound.music).set_time(_._time+x),this.vocals.set_time(flixel_FlxG.sound.music._time)}}else{if(!!(i=flixel_FlxG.keys.pressed).keyManager.checkStatus(87,i.status)||(i=flixel_FlxG.keys.pressed).keyManager.checkStatus(83,i.status)){flixel_FlxG.sound.music.pause(),this.vocals.pause();var x=700*flixel_FlxG.elapsed;(i=flixel_FlxG.keys.pressed).keyManager.checkStatus(87,i.status)?(_=flixel_FlxG.sound.music).set_time(_._time-x):(_=flixel_FlxG.sound.music).set_time(_._time+x),this.vocals.set_time(flixel_FlxG.sound.music._time)}}}this._song.bpm=this.tempBpm,this.bpmTxt.set_text(this.bpmTxt.set_text(Std.string(flixel_math_FlxMath.roundDecimal(Conductor.songPosition/1e3,2))+" / "+Std.string(flixel_math_FlxMath.roundDecimal(flixel_FlxG.sound.music._length/1e3,2))+"\nSection: "+this.curSection+"\nCurStep: "+this.curStep)),MusicBeatState.prototype.update.call(this,e)},changeNoteSustain:function(e){null!=this.curSelectedNote&&null!=this.curSelectedNote[2]&&(this.curSelectedNote[2]+=e,this.curSelectedNote[2]=Math.max(this.curSelectedNote[2],0)),this.updateNoteUI(),this.updateGrid()},recalculateSteps:function(){for(var e={stepTime:0,songTime:0,bpm:0},t=0,i=Conductor.bpmChangeMap.length;tConductor.bpmChangeMap[l].songTime&&(e=Conductor.bpmChangeMap[l])}return this.curStep=e.stepTime+Math.floor((flixel_FlxG.sound.music._time-e.songTime)/Conductor.stepCrochet),this.updateBeat(),this.curStep},resetSection:function(e){null==e&&(e=!1),this.updateGrid(),flixel_FlxG.sound.music.pause(),this.vocals.pause(),flixel_FlxG.sound.music.set_time(this.sectionStartTime()),e&&(flixel_FlxG.sound.music.set_time(0),this.curSection=0),this.vocals.set_time(flixel_FlxG.sound.music._time),this.updateCurStep(),this.updateGrid(),this.updateSectionUI()},changeSection:function(e,t){null==t&&(t=!0),null==e&&(e=0),haxe_Log.trace("changing section"+e,{fileName:"source/ChartingState.hx",lineNumber:816,className:"ChartingState",methodName:"changeSection"}),null!=this._song.notes[e]?(haxe_Log.trace("naw im not null",{fileName:"source/ChartingState.hx",lineNumber:820,className:"ChartingState",methodName:"changeSection"}),this.curSection=e,this.updateGrid(),t&&(flixel_FlxG.sound.music.pause(),this.vocals.pause(),flixel_FlxG.sound.music.set_time(this.sectionStartTime()),this.vocals.set_time(flixel_FlxG.sound.music._time),this.updateCurStep()),this.updateGrid(),this.updateSectionUI()):haxe_Log.trace("bro wtf I AM NULL",{fileName:"source/ChartingState.hx",lineNumber:847,className:"ChartingState",methodName:"changeSection"})},copySection:function(e){null==e&&(e=1);for(var t=this.curSection,i=t>e?t:e,l=0,n=this._song.notes[i-e].sectionNotes;l0;)this.curRenderedNotes.remove(this.curRenderedNotes.members[0],!0);for(;this.curRenderedSustains.members.length>0;)this.curRenderedSustains.remove(this.curRenderedSustains.members[0],!0);var e=this._song.notes[this.curSection].sectionNotes;if(this._song.notes[this.curSection].changeBPM&&this._song.notes[this.curSection].bpm>0)Conductor.changeBPM(this._song.notes[this.curSection].bpm);else{for(var t=this._song.bpm,i=0,l=this.curSection;i0){var o=new flixel_FlxSprite(_.x+this.GRID_SIZE/2,_.y+this.GRID_SIZE).makeGraphic(8,Math.floor(flixel_math_FlxMath.remapToRange(r,0,Conductor.stepCrochet*this._song.notes[this.curSection].lengthInSteps,0,this.gridBG.get_height())));this.curRenderedSustains.add(o)}}},addSection:function(e){null==e&&(e=16);var t={lengthInSteps:e,bpm:this._song.bpm,changeBPM:!1,mustHitSection:!0,sectionNotes:[],typeOfSection:0,altAnim:!1};this._song.notes.push(t)},selectNote:function(e){for(var t=0,i=0,l=this._song.notes[this.curSection].sectionNotes;i0&&(this._file=new openfl_net_FileReference,this._file.addEventListener("complete",$bind(this,this.onSaveComplete)),this._file.addEventListener("cancel",$bind(this,this.onSaveCancel)),this._file.addEventListener("ioError",$bind(this,this.onSaveError)),this._file.save(StringTools.trim(t),this._song.song.toLowerCase()+".json"))},onSaveComplete:function(e){this._file.removeEventListener("complete",$bind(this,this.onSaveComplete)),this._file.removeEventListener("cancel",$bind(this,this.onSaveCancel)),this._file.removeEventListener("ioError",$bind(this,this.onSaveError)),this._file=null},onSaveCancel:function(e){this._file.removeEventListener("complete",$bind(this,this.onSaveComplete)),this._file.removeEventListener("cancel",$bind(this,this.onSaveCancel)),this._file.removeEventListener("ioError",$bind(this,this.onSaveError)),this._file=null},onSaveError:function(e){this._file.removeEventListener("complete",$bind(this,this.onSaveComplete)),this._file.removeEventListener("cancel",$bind(this,this.onSaveCancel)),this._file.removeEventListener("ioError",$bind(this,this.onSaveError)),this._file=null},__class__:ChartingState});var Conductor=function(){};$hxClasses.Conductor=Conductor,Conductor.__name__="Conductor",Conductor.songPosition=null,Conductor.lastSongPos=null,Conductor.mapBPMChanges=function(e){Conductor.bpmChangeMap=[];for(var t=e.bpm,i=0,l=0,n=0,s=e.notes.length;n0;){var l=e.inputs[i];l.device==flixel_input_actions_FlxInputDevice.KEYBOARD&&-1!=t.indexOf(l.inputID)&&e.remove(l)}},Controls.addButtons=function(e,t,i,l){for(var n=0;n0;){var n=e.inputs[l];n.device!=flixel_input_actions_FlxInputDevice.GAMEPAD||-1!=t&&n.deviceID!=t||-1==i.indexOf(n.inputID)||e.remove(n)}},Controls.isDevice=function(e,t){switch(t._hx_index){case 0:return e.device==flixel_input_actions_FlxInputDevice.KEYBOARD;case 1:var i=t.id;return e.device==flixel_input_actions_FlxInputDevice.GAMEPAD&&(-1==i||e.deviceID==i)}},Controls.isGamepad=function(e,t){return e.device==flixel_input_actions_FlxInputDevice.GAMEPAD&&(-1==t||e.deviceID==t)},Controls.__super__=flixel_input_actions_FlxActionSet,Controls.prototype=$extend(flixel_input_actions_FlxActionSet.prototype,{_up:null,_left:null,_right:null,_down:null,_upP:null,_leftP:null,_rightP:null,_downP:null,_upR:null,_leftR:null,_rightR:null,_downR:null,_accept:null,_back:null,_pause:null,_reset:null,_cheat:null,byName:null,gamepadsAdded:null,keyboardScheme:null,get_UP:function(){return this._up.check()},get_LEFT:function(){return this._left.check()},get_RIGHT:function(){return this._right.check()},get_DOWN:function(){return this._down.check()},get_UP_P:function(){return this._upP.check()},get_LEFT_P:function(){return this._leftP.check()},get_RIGHT_P:function(){return this._rightP.check()},get_DOWN_P:function(){return this._downP.check()},get_UP_R:function(){return this._upR.check()},get_LEFT_R:function(){return this._leftR.check()},get_RIGHT_R:function(){return this._rightR.check()},get_DOWN_R:function(){return this._downR.check()},get_ACCEPT:function(){return this._accept.check()},get_BACK:function(){return this._back.check()},get_PAUSE:function(){return this._pause.check()},get_RESET:function(){return this._reset.check()},get_CHEAT:function(){return this._cheat.check()},update:function(){flixel_input_actions_FlxActionSet.prototype.update.call(this)},checkByName:function(e){return this.byName.h[e].check()},getDialogueName:function(e){var t=e.inputs[0],i=t.device;switch(i._hx_index){case 3:return"["+(null==(l=t.inputID)?"null":flixel_input_keyboard_FlxKey.toStringMap.h[l])+"]";case 4:var l=t.inputID;return"("+(null==l?"null":flixel_input_gamepad_FlxGamepadInputID.toStringMap.h[l])+")";default:var n=i;throw haxe_Exception.thrown("unhandled device: "+Std.string(n))}},getDialogueNameFromToken:function(e){return this.getDialogueName(this.getActionFromControl(Type.createEnum(Control,e.toUpperCase(),null)))},getActionFromControl:function(e){switch(e._hx_index){case 0:return this._up;case 1:return this._left;case 2:return this._right;case 3:return this._down;case 4:return this._reset;case 5:return this._accept;case 6:return this._back;case 7:return this._pause;case 8:return this._cheat}},forEachBound:function(e,t){switch(e._hx_index){case 0:t(this._up,1),t(this._upP,2),t(this._upR,-1);break;case 1:t(this._left,1),t(this._leftP,2),t(this._leftR,-1);break;case 2:t(this._right,1),t(this._rightP,2),t(this._rightR,-1);break;case 3:t(this._down,1),t(this._downP,2),t(this._downR,-1);break;case 4:t(this._reset,2);break;case 5:t(this._accept,2);break;case 6:t(this._back,2);break;case 7:t(this._pause,2);break;case 8:t(this._cheat,2)}},replaceBinding:function(e,t,i,l){if(i!=l)switch(t._hx_index){case 0:null!=l&&this.unbindKeys(e,[l]),null!=i&&this.bindKeys(e,[i]);break;case 1:var n=t.id;null!=l&&this.unbindButtons(e,n,[l]),null!=i&&this.bindButtons(e,n,[i])}},copyFrom:function(e,t){for(a=haxe_ds_StringMap.kvIterator(e.byName.h);a.hasNext();)for(var i=(r=a.next()).key,l=0,n=r.value.inputs;l0;){var n=i.inputs[l];n.device==flixel_input_actions_FlxInputDevice.KEYBOARD&&i.remove(n)}}},addGamepad:function(e,t){this.gamepadsAdded.push(e);for(var i=new haxe_iterators_MapKeyValueIterator(t);i.hasNext();){var l=i.next(),n=l.key,s=e,a=l.value;switch(n._hx_index){case 0:for(var r=this._up,_=0;_0;){var s=l.inputs[n];s.device!=flixel_input_actions_FlxInputDevice.GAMEPAD||-1!=e&&s.deviceID!=e||l.remove(s)}}HxOverrides.remove(this.gamepadsAdded,e)},addDefaultGamepad:function(e){var t=new haxe_ds_EnumValueMap;t.set(Control.ACCEPT,[0]),t.set(Control.BACK,[1]),t.set(Control.UP,[11,34]),t.set(Control.DOWN,[12,36]),t.set(Control.LEFT,[13,37]),t.set(Control.RIGHT,[14,35]),t.set(Control.PAUSE,[7]),t.set(Control.RESET,[3]),this.gamepadsAdded.push(e);for(var i=new haxe_iterators_MapKeyValueIterator(t);i.hasNext();){var l=(t=i.next()).key,n=e,s=t.value;switch(l._hx_index){case 0:for(var a=this._up,r=0;r.7&&i.bgFade.set_alpha(.7)},5),this.box=new flixel_FlxSprite(-20,45);var r=!1;switch(PlayState.SONG.song.toLowerCase()){case"roses":r=!0,flixel_FlxG.sound.play(Paths.sound("ANGRY_TEXT_BOX"));o=null;this.box.set_frames(flixel_graphics_frames_FlxAtlasFrames.fromSparrow(Paths.getPath("images/weeb/pixelUI/dialogueBox-senpaiMad.png","IMAGE",o),Paths.getPath("images/weeb/pixelUI/dialogueBox-senpaiMad.xml","TEXT",o))),this.box.animation.addByPrefix("normalOpen","SENPAI ANGRY IMPACT SPEECH",24,!1),this.box.animation.addByIndices("normal","SENPAI ANGRY IMPACT SPEECH",[4],"",24);break;case"senpai":r=!0;o=null;this.box.set_frames(flixel_graphics_frames_FlxAtlasFrames.fromSparrow(Paths.getPath("images/weeb/pixelUI/dialogueBox-pixel.png","IMAGE",o),Paths.getPath("images/weeb/pixelUI/dialogueBox-pixel.xml","TEXT",o))),this.box.animation.addByPrefix("normalOpen","Text Box Appear",24,!1),this.box.animation.addByIndices("normal","Text Box Appear",[4],"",24);break;case"thorns":r=!0;o=null;this.box.set_frames(flixel_graphics_frames_FlxAtlasFrames.fromSparrow(Paths.getPath("images/weeb/pixelUI/dialogueBox-evil.png","IMAGE",o),Paths.getPath("images/weeb/pixelUI/dialogueBox-evil.xml","TEXT",o))),this.box.animation.addByPrefix("normalOpen","Spirit Textbox spawn",24,!1),this.box.animation.addByIndices("normal","Spirit Textbox spawn",[11],"",24);var _=new flixel_FlxSprite(320,170).loadGraphic(Paths.getPath("images/weeb/spiritFaceForward.png","IMAGE",null));_.setGraphicSize(6*_.get_width()|0),this.add(_)}if(this.dialogueList=t,r){this.portraitLeft=new flixel_FlxSprite(-20,40);o=null;this.portraitLeft.set_frames(flixel_graphics_frames_FlxAtlasFrames.fromSparrow(Paths.getPath("images/weeb/senpaiPortrait.png","IMAGE",o),Paths.getPath("images/weeb/senpaiPortrait.xml","TEXT",o))),this.portraitLeft.animation.addByPrefix("enter","Senpai Portrait Enter",24,!1),this.portraitLeft.setGraphicSize(this.portraitLeft.get_width()*PlayState.daPixelZoom*.9|0),this.portraitLeft.updateHitbox(),this.portraitLeft.scrollFactor.set(),this.add(this.portraitLeft),this.portraitLeft.set_visible(!1),this.portraitRight=new flixel_FlxSprite(0,40);var o=null;this.portraitRight.set_frames(flixel_graphics_frames_FlxAtlasFrames.fromSparrow(Paths.getPath("images/weeb/bfPortrait.png","IMAGE",o),Paths.getPath("images/weeb/bfPortrait.xml","TEXT",o))),this.portraitRight.animation.addByPrefix("enter","Boyfriend portrait enter",24,!1),this.portraitRight.setGraphicSize(this.portraitRight.get_width()*PlayState.daPixelZoom*.9|0),this.portraitRight.updateHitbox(),this.portraitRight.scrollFactor.set(),this.add(this.portraitRight),this.portraitRight.set_visible(!1),this.box.animation.play("normalOpen"),this.box.setGraphicSize(this.box.get_width()*PlayState.daPixelZoom*.9|0),this.box.updateHitbox(),this.add(this.box),this.box.screenCenter(flixel_util_FlxAxes.X),this.portraitLeft.screenCenter(flixel_util_FlxAxes.X),this.handSelect=new flixel_FlxSprite(.9*flixel_FlxG.width,.9*flixel_FlxG.height).loadGraphic(Paths.getPath("images/weeb/pixelUI/hand_textbox.png","IMAGE",null)),this.add(this.handSelect);h=!e;this.dropText=new flixel_text_FlxText(242,502,.6*flixel_FlxG.width|0,"",32),this.dropText.set_font("Pixel Arial 11 Bold"),this.dropText.set_color(-2583404),this.add(this.dropText),this.swagDialogue=new flixel_addons_text_FlxTypeText(240,500,.6*flixel_FlxG.width|0,"",32),this.swagDialogue.set_font("Pixel Arial 11 Bold"),this.swagDialogue.set_color(-12640223);var h=flixel_FlxG.sound.load(Paths.sound("pixelText"),.6);this.swagDialogue.sounds=[h],this.add(this.swagDialogue),this.dialogue=new Alphabet(0,80,"",!1,!0)}};$hxClasses.DialogueBox=DialogueBox,DialogueBox.__name__="DialogueBox",DialogueBox.__super__=flixel_group_FlxTypedSpriteGroup,DialogueBox.prototype=$extend(flixel_group_FlxTypedSpriteGroup.prototype,{box:null,curCharacter:null,dialogue:null,dialogueList:null,swagDialogue:null,dropText:null,finishThing:null,portraitLeft:null,portraitRight:null,handSelect:null,bgFade:null,dialogueOpened:null,dialogueStarted:null,update:function(e){var t=this;if("roses"==PlayState.SONG.song.toLowerCase()&&this.portraitLeft.set_visible(!1),"thorns"==PlayState.SONG.song.toLowerCase()&&(this.portraitLeft.set_color(-16777216),this.swagDialogue.set_color(-1),this.dropText.set_color(-16777216)),this.dropText.set_text(this.swagDialogue.text),null!=this.box.animation._curAnim&&"normalOpen"==this.box.animation._curAnim.name&&this.box.animation._curAnim.finished&&(this.box.animation.play("normal"),this.dialogueOpened=!0),this.dialogueOpened&&!this.dialogueStarted&&(this.startDialogue(),this.dialogueStarted=!0),flixel_FlxG.keys.justPressed.get_ANY()&&1==this.dialogueStarted)if(this.remove(this.dialogue),flixel_FlxG.sound.play(Paths.sound("clickText"),.8),null==this.dialogueList[1]&&null!=this.dialogueList[0]){if(!this.isEnding){if(this.isEnding=!0,"senpai"==PlayState.SONG.song.toLowerCase()||"thorns"==PlayState.SONG.song.toLowerCase()){var i=flixel_FlxG.sound.music,l=2.2,n=0;null==n&&(n=0),null==l&&(l=1),null!=i.fadeTween&&i.fadeTween.cancel(),i.fadeTween=flixel_tweens_FlxTween.num(i._volume,n,l,{onComplete:null},$bind(i,i.volumeTween))}(new flixel_util_FlxTimer).start(.2,function(e){var i=t.box;i.set_alpha(i.alpha-.2),(i=t.bgFade).set_alpha(i.alpha-.13999999999999999),t.portraitLeft.set_visible(!1),t.portraitRight.set_visible(!1),(i=t.swagDialogue).set_alpha(i.alpha-.2),t.dropText.set_alpha(t.swagDialogue.alpha)},5),(new flixel_util_FlxTimer).start(1.2,function(e){t.finishThing(),t.kill()})}}else HxOverrides.remove(this.dialogueList,this.dialogueList[0]),this.startDialogue();flixel_group_FlxTypedSpriteGroup.prototype.update.call(this,e)},isEnding:null,startDialogue:function(){switch(this.cleanDialog(),this.swagDialogue.resetText(this.dialogueList[0]),this.swagDialogue.start(.04,!0),this.curCharacter){case"bf":this.portraitLeft.set_visible(!1),this.portraitRight.visible||(this.portraitRight.set_visible(!0),this.portraitRight.animation.play("enter"));break;case"dad":this.portraitRight.set_visible(!1),this.portraitLeft.visible||(this.portraitLeft.set_visible(!0),this.portraitLeft.animation.play("enter"))}},cleanDialog:function(){var e=this.dialogueList[0].split(":");this.curCharacter=e[1],this.dialogueList[0]=StringTools.trim(HxOverrides.substr(this.dialogueList[0],e[1].length+2,null))},__class__:DialogueBox});var EReg=function(e,t){this.r=new RegExp(e,t.split("u").join(""))};$hxClasses.EReg=EReg,EReg.__name__="EReg",EReg.prototype={r:null,match:function(e){return this.r.global&&(this.r.lastIndex=0),this.r.m=this.r.exec(e),this.r.s=e,null!=this.r.m},matched:function(e){if(null!=this.r.m&&e>=0&&e