-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.js
1 lines (1 loc) · 24.8 KB
/
build.js
1
!function(t){function e(n){if(i[n])return i[n].exports;var s=i[n]={exports:{},id:n,loaded:!1};return t[n].call(s.exports,s,s.exports,e),s.loaded=!0,s.exports}var i={};return e.m=t,e.c=i,e.p="/",e(0)}([function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}i(14);var s=i(7),r=n(s),o=i(3),a=n(o),u=i(9),c=n(u),l=i(6),h=n(l),d=i(4),f=n(d),p=i(8),b=n(p),v=i(5),m=n(v);document.addEventListener("DOMContentLoaded",function(){var t=new c["default"],e=new r["default"],i=new a["default"],n=new b["default"];t.spriteImg.addEventListener("load",function(){t.initSprite();var s=new h["default"](e,t,i,n),r=new f["default"](e,s),o=new m["default"](e,s,r);o.run()})})},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var i=this[e];i[2]?t.push("@media "+i[2]+"{"+i[1]+"}"):t.push(i[1])}return t.join("")},t.i=function(e,i){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},s=0;s<this.length;s++){var r=this[s][0];"number"==typeof r&&(n[r]=!0)}for(s=0;s<e.length;s++){var o=e[s];"number"==typeof o[0]&&n[o[0]]||(i&&!o[2]?o[2]=i:i&&(o[2]="("+o[2]+") and ("+i+")"),t.push(o))}},t}},function(t,e,i){function n(t,e){for(var i=0;i<t.length;i++){var n=t[i],s=f[n.id];if(s){s.refs++;for(var r=0;r<s.parts.length;r++)s.parts[r](n.parts[r]);for(;r<n.parts.length;r++)s.parts.push(c(n.parts[r],e))}else{for(var o=[],r=0;r<n.parts.length;r++)o.push(c(n.parts[r],e));f[n.id]={id:n.id,refs:1,parts:o}}}}function s(t){for(var e=[],i={},n=0;n<t.length;n++){var s=t[n],r=s[0],o=s[1],a=s[2],u=s[3],c={css:o,media:a,sourceMap:u};i[r]?i[r].parts.push(c):e.push(i[r]={id:r,parts:[c]})}return e}function r(t,e){var i=v(),n=y[y.length-1];if("top"===t.insertAt)n?n.nextSibling?i.insertBefore(e,n.nextSibling):i.appendChild(e):i.insertBefore(e,i.firstChild),y.push(e);else{if("bottom"!==t.insertAt)throw Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");i.appendChild(e)}}function o(t){t.parentNode.removeChild(t);var e=y.indexOf(t);e>=0&&y.splice(e,1)}function a(t){var e=document.createElement("style");return e.type="text/css",r(t,e),e}function u(t){var e=document.createElement("link");return e.rel="stylesheet",r(t,e),e}function c(t,e){var i,n,s;if(e.singleton){var r=g++;i=m||(m=a(e)),n=l.bind(null,i,r,!1),s=l.bind(null,i,r,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(i=u(e),n=d.bind(null,i),s=function(){o(i),i.href&&URL.revokeObjectURL(i.href)}):(i=a(e),n=h.bind(null,i),s=function(){o(i)});return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else s()}}function l(t,e,i,n){var s=i?"":n.css;if(t.styleSheet)t.styleSheet.cssText=w(e,s);else{var r=document.createTextNode(s),o=t.childNodes;o[e]&&t.removeChild(o[e]),o.length?t.insertBefore(r,o[e]):t.appendChild(r)}}function h(t,e){var i=e.css,n=e.media;if(n&&t.setAttribute("media",n),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}function d(t,e){var i=e.css,n=e.sourceMap;n&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */");var s=new Blob([i],{type:"text/css"}),r=t.href;t.href=URL.createObjectURL(s),r&&URL.revokeObjectURL(r)}var f={},p=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}},b=p(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),v=p(function(){return document.head||document.getElementsByTagName("head")[0]}),m=null,g=0,y=[];t.exports=function(t,e){e=e||{},void 0===e.singleton&&(e.singleton=b()),void 0===e.insertAt&&(e.insertAt="bottom");var i=s(t);return n(i,e),function(t){for(var r=[],o=0;o<i.length;o++){var a=i[o],u=f[a.id];u.refs--,r.push(u)}if(t){var c=s(t);n(c,e)}for(var o=0;o<r.length;o++){var u=r[o];if(0===u.refs){for(var l=0;l<u.parts.length;l++)u.parts[l]();delete f[u.id]}}}};var w=function(){var t=[];return function(e,i){return t[e]=i,t.filter(Boolean).join("\n")}}()},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();i(15);var r="mobile__button mobile__button--launch",o="mobile__button mobile__button--move-left",a="mobile__button mobile__button--move-right",u=function(){function t(){var e=this;n(this,t),this.down={},this.pressed={},this.mobile=!1,document.addEventListener("keydown",function(t){e.pushButton(t,t.keyCode)}),document.addEventListener("keyup",function(t){e.unpushButton(t,t.keyCode)}),"ontouchstart"in document.documentElement&&(this.mobile=!0,this.mobileInit())}return s(t,[{key:"isDown",value:function(t){return this.down[t]}},{key:"isPressed",value:function(t){return!this.pressed[t]&&!!this.down[t]&&(this.pressed[t]=!0)}},{key:"mobileInit",value:function(){var t=this,e={buttonLaunch:{"class":r,symbol:"⇪"},buttonLeftMove:{"class":o,symbol:"◀"},buttonRightMove:{"class":a,symbol:"▶"}};for(var i in e)this[i]=document.createElement("div"),this[i].className=e[i]["class"],this[i].appendChild(document.createTextNode(e[i].symbol)),document.body.appendChild(this[i]);this.buttonLaunch.addEventListener("touchstart",function(e){t.pushButton(e,32)}),this.buttonLaunch.addEventListener("touchend",function(e){t.unpushButton(e,32)}),this.buttonLeftMove.addEventListener("touchstart",function(e){t.pushButton(e,37)}),this.buttonLeftMove.addEventListener("touchend",function(e){t.unpushButton(e,37)}),this.buttonRightMove.addEventListener("touchstart",function(e){t.pushButton(e,39)}),this.buttonRightMove.addEventListener("touchend",function(e){t.unpushButton(e,39)})}},{key:"pushButton",value:function(t,e){this.down[e]=!0,this.mobile&&t.target.classList.add("active")}},{key:"unpushButton",value:function(t,e){delete this.down[e],delete this.pressed[e],this.mobile&&t.target.classList.remove("active")}}]),t}();e["default"]=u},function(t,e){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),s=function(){function t(e,n){i(this,t),this.gameObjects=n,this.screen=e,this.context=e.context}return n(t,[{key:"drawSprite",value:function(t,e,i){var n=this.scaleCoordinates(e,i,t.w,t.h);this.context.drawImage(this.gameObjects.sprite.spriteImg,t.x,t.y,t.w,t.h,n.x,n.y,n.w,n.h)}},{key:"drawBullet",value:function(t){this.context.fillStyle=t.c;var e=this.scaleCoordinates(t.x,t.y,t.w,t.h);this.context.fillRect(e.x,e.y,e.w,e.h)}},{key:"drawText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.gameObjects.scaleW/2,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.gameObjects.scaleH/2,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"center";e=this.screen.height/(this.gameObjects.scaleH/e),i=this.screen.width/(this.gameObjects.scaleW/i),n=this.screen.height/(this.gameObjects.scaleH/n),this.context.save(),this.context.fillStyle="#fff",this.context.font=e+"px Helvetica",this.context.textAlign=s,this.context.textBaseline="middle",this.context.fillText(t,i,n),this.context.restore()}},{key:"drawLife",value:function(t){if(t)for(var e=this.gameObjects.tank.sprite,i=20+e.w,n=i,s=void 0;t--;)s=this.scaleCoordinates(this.gameObjects.scaleW-n,10,e.w,e.h),this.context.drawImage(this.gameObjects.sprite.spriteImg,e.x,e.y,e.w,e.h,s.x,s.y,s.w,s.h),n+=i}},{key:"drawCities",value:function(){var t=this.gameObjects.cities,e=this.scaleCoordinates(t.x,t.y,t.w,t.h);this.context.drawImage(t.canvas,0,0,t.w,t.h,e.x,e.y,e.w,e.h)}},{key:"scaleCoordinates",value:function(t,e,i,n){return{x:this.screen.width/(this.gameObjects.scaleW/t),y:this.screen.height/(this.gameObjects.scaleH/e),w:this.screen.width/(this.gameObjects.scaleW/i),h:this.screen.height/(this.gameObjects.scaleH/n)}}},{key:"render",value:function(t){var e=this;switch(this.screen.clear(),this.gameObjects.aliens.forEach(function(t){e.drawSprite(t.sprite[e.gameObjects.spFrame],t.x,t.y)}),this.context.save(),this.gameObjects.bulletsT.concat(this.gameObjects.bulletsA).forEach(function(t){e.drawBullet(t)}),this.context.restore(),this.drawCities(),"lose"!==t&&this.drawSprite(this.gameObjects.tank.sprite,this.gameObjects.tank.x,this.gameObjects.tank.y),this.drawText(this.gameObjects.score,20,20,20,"left"),this.drawLife(this.gameObjects.life),t){case"start":this.drawText("Начать игру");break;case"pause":this.drawText("Продолжить игру");break;case"lose":this.drawText("Попробовать ещё раз");break;case"win":this.drawText("Вы победили!")}}}]),t}();e["default"]=s},function(t,e){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),s=function(){function t(e,n,s){var r=this;i(this,t),this.screen=e,this.gameObjects=n,this.draw=s,this.status="start",this.run=this.run.bind(this),this.screen.screen.addEventListener("click",function(){"start"===r.status||"pause"===r.status?(r.status="run",r.gameObjects.lose=!1,r.run()):"win"===r.status||"lose"===r.status?(r.gameObjects.initGameObject(),r.status="run",r.gameObjects.lose=!1,r.run()):"run"===r.status&&(r.status="pause")}),window.addEventListener("resize",function(){"run"!==r.status&&r.run()})}return n(t,[{key:"run",value:function(){"run"===this.status&&this.gameObjects.update(),this.gameObjects.lose&&(this.status=this.gameObjects.lose),this.draw.render(this.status),"run"===this.status&&window.requestAnimationFrame(this.run)}}]),t}();e["default"]=s},function(t,e){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r=700,o=function(){function t(e,n,s,o){i(this,t),this.sprite=n,this.controls=s,this.screen=e,this.scaleW=r,this.scaleH=r/this.screen.aspectRatio,this.sounds=o,this.life=0,this.score=0,this.initGameObject()}return s(t,[{key:"initGameObject",value:function(){var t=this;this.frames=0,this.spFrame=0,this.lvFrame=54,this.dir=1,this.tank={sprite:this.sprite.taSprite,x:(this.scaleW-this.sprite.taSprite.w)/2,y:this.scaleH-(20+this.sprite.taSprite.h)},this.bulletsT=[],this.bulletsA=[],this.aliens=[],[2,1,1,0,0].forEach(function(e,i){for(var n=0;n<10;n++)t.aliens.push({sprite:t.sprite.alSprite[e],x:20+30*n+[0,0,4][e],y:40+30*i,w:t.sprite.alSprite[e][0].w,h:t.sprite.alSprite[e][0].h,coast:10*(e+1)})}),this.cities=function(){var e={canvas:document.createElement("canvas"),x:t.scaleW/5-t.sprite.ciSprite.w/2,y:t.tank.y-(30+t.sprite.ciSprite.h),w:t.scaleW/5*3+t.sprite.ciSprite.w,h:t.sprite.ciSprite.h};e.canvas.width=e.w,e.canvas.height=e.h,e.context=e.canvas.getContext("2d");for(var i=0;i<4;i++)e.context.drawImage(t.sprite.spriteImg,t.sprite.ciSprite.x,t.sprite.ciSprite.y,t.sprite.ciSprite.w,t.sprite.ciSprite.h,t.scaleW/5*i,0,t.sprite.ciSprite.w,t.sprite.ciSprite.h);return e}()}},{key:"initBullet",value:function(t,e,i,n,s,r){return{x:t,y:e,v:i,w:n,h:s,c:r}}},{key:"updateBullet",value:function(t){t.y+=t.v}},{key:"AABBIntersect",value:function(t,e,i,n,s,r,o,a){return t<s+o&&s<t+i&&e<r+a&&r<e+n}},{key:"scoreUpdate",value:function(t){this.score+=t,this.score>=1e3&&this.lifeUpdate()}},{key:"lifeUpdate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;(this.life<3||t<0)&&(this.life+=t),this.score>=1e3&&this.life<3&&(this.life++,this.score-=1e3),~this.life||(this.lose="lose",this.life=0,this.score=0)}},{key:"generateDamage",value:function(t,e){var i=this.cities.context;i.clearRect(t-2,e-2,4,4),i.clearRect(t+2,e-4,2,4),i.clearRect(t+4,e,2,2),i.clearRect(t+2,e+2,2,2),i.clearRect(t-4,e+2,2,2),i.clearRect(t-6,e,2,2),i.clearRect(t-4,e-4,2,2),i.clearRect(t-2,e-6,2,2)}},{key:"hits",value:function(t,e){t-=this.cities.x,e-=this.cities.y;var i=this.cities.context.getImageData(t,e,1,1);return 0!==i.data[3]&&(this.generateDamage(t,e),!0)}},{key:"update",value:function(){var t=this;this.frames++,this.controls.isDown(37)&&(this.tank.x-=6),this.controls.isDown(39)&&(this.tank.x+=6),this.tank.x=Math.max(Math.min(this.tank.x,this.scaleW-(20+this.sprite.taSprite.w)),20),this.controls.isPressed(32)&&(this.bulletsT.push(this.initBullet(this.tank.x+10,this.tank.y-6,-3,2,6,"#fff")),this.sounds.playSound("shoot"));for(var e=0,i=this.bulletsA.length;e<i;e++){var s=this.bulletsA[e];this.updateBullet(s),s.y>this.scaleH?(this.bulletsA.splice(e,1),e--,i--):this.AABBIntersect(s.x,s.y,s.w,s.h,this.tank.x,this.tank.y,this.tank.sprite.w,this.tank.sprite.h)&&(this.lifeUpdate(-1),this.bulletsA.splice(e,1),e--,i--,this.sounds.playSound("explosion"))}for(var r=0,o=this.bulletsT.length;r<o;r++){var a=this.bulletsT[r];if(this.updateBullet(a),a.y+a.h<0)this.bulletsT.splice(r,1),r--,o--;else for(var u=0,c=this.aliens.length;u<c;u++){var l=this.aliens[u];if(this.AABBIntersect(a.x,a.y,a.w,a.h,l.x,l.y,l.w,l.h))switch(this.scoreUpdate(this.aliens[u].coast),this.aliens.splice(u,1),u--,c--,this.bulletsT.splice(r,1),r--,o--,this.sounds.playSound("invaderkilled"),c){case 40:this.lvFrame=46;break;case 30:this.lvFrame=38;break;case 20:this.lvFrame=30;break;case 10:this.lvFrame=20;break;case 5:this.lvFrame=12;break;case 1:this.lvFrame=6}}}for(var h=0,d=this.bulletsA.length,f=this.bulletsA.concat(this.bulletsT),p=f.length,b="";h<p;h++)b=f[h],this.cities.y<b.y&&b.y<this.cities.y+this.cities.h&&this.hits(b.x,b.y)&&(h<d?(this.bulletsA.splice(h,1),h--,p--):(this.bulletsT.splice(h-d,1),h--,p--));if(this.frames%this.lvFrame===0){var v=function(){if(!t.aliens.length)return t.lose="win",t.lifeUpdate(1),{v:void 0};t.spFrame=(t.spFrame+1)%2;var e=0,i=t.scaleW,n=20;t.aliens.forEach(function(s){s.x+=20*t.dir,e=Math.max(e,s.x+s.w),i=Math.min(i,s.x),n=Math.max(n,s.y+s.h)}),(e>t.scaleW-20||i<20)&&(t.dir*=-1,t.aliens.forEach(function(e){e.x+=20*t.dir,e.y+=20})),t.sounds.playSound("fastinvader"),n>t.tank.y&&(t.lose="lose",t.life=0,t.score=0)}();if("object"===(void 0===v?"undefined":n(v)))return v.v}Math.random()<.03&&this.aliens.length>0&&!function(){var e=t.aliens[Math.round(Math.random()*(t.aliens.length-1))];t.aliens.forEach(function(i){t.AABBIntersect(e.x,e.y,e.w,100,i.x,i.y,i.w,i.h)&&(e=i)}),t.bulletsA.push(t.initBullet(e.x+.5*e.w,e.y+e.h,3,2,4,"#fff")),t.sounds.playSound("shoot")}()}}]),t}();e["default"]=o},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();i(16);var r=16/9,o="wrapper",a="canvas",u=1e3,c=function(){function t(){var e=this;n(this,t),this.aspectRatio=r,this.screen=document.createElement("div"),this.canvas=document.createElement("canvas"),this.setScreenSize(),document.body.appendChild(this.screen),this.screen.appendChild(this.canvas),this.screen.className=o,this.canvas.className=a,this.context=this.canvas.getContext("2d"),window.addEventListener("resize",function(){e.setScreenSize()})}return s(t,[{key:"setScreenSize",value:function(){this.windowWidth=document.documentElement.clientWidth,this.windowHeight=document.documentElement.clientHeight,this.width=.98*this.windowWidth>u?u:.98*this.windowWidth,this.height=this.width/r,this.height>.98*this.windowHeight&&(this.height=.98*this.windowHeight,this.width=.98*this.windowHeight*r),this.canvas.width=this.width,this.canvas.height=this.height,this.screen.style.height=this.height+"px",this.screen.style.width=this.width+"px"}},{key:"clear",value:function(){this.context.clearRect(0,0,this.width,this.height)}}]),t}();e["default"]=c},function(t,e){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),s=function(){function t(){i(this,t),this.sounds={explosion:this.addAudio("explosion"),fastinvader1:this.addAudio("fastinvader1"),fastinvader2:this.addAudio("fastinvader2"),fastinvader3:this.addAudio("fastinvader3"),fastinvader4:this.addAudio("fastinvader4"),invaderkilled:this.addAudio("invaderkilled"),shoot:this.addAudio("shoot")},this.invidersSound=1}return n(t,[{key:"addAudio",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"sounds",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mp3",n=new Audio(e+"/"+t+"."+i);return n.load(),n}},{key:"playSound",value:function(t){"fastinvader"===t&&(++this.invidersSound>4&&(this.invidersSound=1),t="fastinvader"+this.invidersSound),this.sounds[t]&&this.sounds[t].play()}},{key:"pauseSound",value:function(t){"fastinvader"===t&&(t="fastinvader"+this.invidersSound),this.sounds[t]&&this.sounds[t].pause()}}]),t}();e["default"]=s},function(t,e){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),s=function(){function t(){i(this,t),this.spriteImg=new Image,this.spriteImg.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAAgCAYAAADZubxIAAAEJGlDQ1BJQ0MgUHJvZmlsZQAAOBGFVd9v21QUPolvUqQWPyBYR4eKxa9VU1u5GxqtxgZJk6XtShal6dgqJOQ6N4mpGwfb6baqT3uBNwb8AUDZAw9IPCENBmJ72fbAtElThyqqSUh76MQPISbtBVXhu3ZiJ1PEXPX6yznf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yad21YmDQHSPxNJ48tbK3Ntt3KJrJx3rTxP4AV0Qp9jeabJEAAAAAElFTkSuQmCC"}return n(t,[{key:"getSprite",value:function(t,e,i,n){return{x:t,y:e,w:i,h:n}}},{key:"initSprite",value:function(){this.alSprite=[[this.getSprite(38,0,24,16),this.getSprite(38,16,24,16)],[this.getSprite(0,0,22,16),this.getSprite(0,16,22,16)],[this.getSprite(22,0,16,16),this.getSprite(22,16,16,16)]],this.taSprite=this.getSprite(62,0,22,16),this.ciSprite=this.getSprite(84,8,36,24)}}]),t}();e["default"]=s},function(t,e,i){e=t.exports=i(1)(),e.i(i(13),""),e.push([t.id,"body{min-height:100vh;width:100%;overflow:hidden;background:#0e3e66}",""])},function(t,e,i){e=t.exports=i(1)(),e.push([t.id,".mobile__button{position:absolute;z-index:2;opacity:.3;border-radius:50%;color:#fff;text-align:center;box-sizing:border-box;cursor:pointer;width:60px;height:60px;bottom:20px}.mobile__button--launch{background:#bf0505;left:20px;font-size:34px;padding-top:10px}.mobile__button--move-left,.mobile__button--move-right{background:#0e3e66;font-size:28px;padding-top:14px}.mobile__button--move-left{right:90px;padding-right:4px}.mobile__button--move-right{right:20px;padding-left:4px}.mobile__button.active{opacity:.55}",""])},function(t,e,i){e=t.exports=i(1)(),e.push([t.id,".wrapper{display:block;position:absolute;top:0;right:0;bottom:0;left:0;margin:auto}.canvas{background:#000}",""])},function(t,e,i){e=t.exports=i(1)(),e.push([t.id,"/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit;font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}[hidden],template{display:none}",""])},function(t,e,i){var n=i(10);"string"==typeof n&&(n=[[t.id,n,""]]),i(2)(n,{}),n.locals&&(t.exports=n.locals)},function(t,e,i){var n=i(11);"string"==typeof n&&(n=[[t.id,n,""]]),i(2)(n,{}),n.locals&&(t.exports=n.locals)},function(t,e,i){var n=i(12);"string"==typeof n&&(n=[[t.id,n,""]]),i(2)(n,{}),n.locals&&(t.exports=n.locals)}]);