text: //   _  /._  _  r8.banner 2018-01-15 7:59pm
  //  /_|///_'/ /
  var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_createClass=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}"undefined"!=typeof Promise&&(Promise.create=function(){var e=void 0,t=void 0,n=new Promise(function(n,i){e=n,t=i});return n.resolve=e,n.reject=t,n}),Math.sign=function(e){return 0===(e=+e)||isNaN(e)?Number(e):e>0?1:-1},Math.degrees=function(e){return e*(180/Math.PI)},Math.radians=function(e){return e*(Math.PI/180)},Math.clamp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(e,Math.min(t,n)),Math.max(t,n))},Math.range=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=(e-t)*(r-i)/(n-t)+i;return arguments[5]?Math.clamp(s,i,r):s},Math.mix=function(e,t,n){return e*(1-n)+t*n},Math.step=function(e,t){return t<e?0:1},Math.smoothStep=function(e,t,n){var i=Math.max(0,Math.min(1,(n-e)/(t-e)));return i*i*(3-2*i)},Math.fract=function(e){return e-Math.floor(e)},Math.mod=function(e,t){return(e%t+t)%t},Array.prototype.remove=function(e){var t=this.indexOf(e);if(~t)return this.splice(t,1)},Array.prototype.last=function(){return this[this.length-1]},String.prototype.includes=function(e){if(!Array.isArray(e))return~this.indexOf(e);for(var t=0;t<e.length;t++)if(~this.indexOf(e[t]))return!0;return!1},String.prototype.clip=function(e,t){return this.length>e?this.slice(0,e)+t:this},String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.slice(1)},String.prototype.replaceAll=function(e,t){return this.split(e).join(t)},window.fetch||(window.fetch=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Promise.create(),i=new XMLHttpRequest;i.open(t.method||"GET",e);for(var r in t.headers)i.setRequestHeader(r,t.headers[r]);function s(){var e=[],t=[],n={},r=void 0;return i.getAllResponseHeaders().replace(/^(.*?):\s*([\s\S]*?)$/gm,function(i,s,o){e.push(s=s.toLowerCase()),t.push([s,o]),r=n[s],n[s]=r?r+","+o:o}),{ok:1==(i.status/200|0),status:i.status,statusText:i.statusText,url:i.responseURL,clone:s,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},xml:function(){return Promise.resolve(i.responseXML)},blob:function(){return Promise.resolve(new Blob([i.response]))},arrayBuffer:function(){return Promise.resolve(new ArrayBuffer([i.response]))},headers:{keys:function(){return e},entries:function(){return t},get:function(e){return n[e.toLowerCase()]},has:function(e){return e.toLowerCase()in n}}}}return i.onload=function(){return n.resolve(s())},i.onerror=n.reject,i.send(t.body),n}),window.get=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Promise.create();return t.method="GET",window.fetch(e,t).then(function(e){if(!e.ok)return n.reject(e);e.text().then(function(e){if(e.charAt(0).includes(["[","{"]))try{n.resolve(JSON.parse(e))}catch(t){n.resolve(e)}else n.resolve(e)})}).catch(n.reject),n},window.post=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Promise.create();return n.method="POST",n.body=JSON.stringify(t),window.fetch(e,n).then(function(e){if(!e.ok)return i.reject(e);e.text().then(function(e){if(e.charAt(0).includes(["[","{"]))try{i.resolve(JSON.parse(e))}catch(t){i.resolve(e)}else i.resolve(e)})}).catch(i.reject),i},window.getURL=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_blank";window.open(e,t)},window.URL||(window.URL=window.webkitURL),window.Config||(window.Config={}),window.Global||(window.Global={});var Utils=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"random",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(void 0===e)return Math.random();if(e===t)return e;e=e||0,t=t||1;var i=Math.pow(10,n);return Math.round((e+Math.random()*(t-e))*i)/i}},{key:"headsTails",value:function(e,t){return this.random(0,1)?t:e}},{key:"queryString",value:function(e){var t=decodeURI(window.location.search.replace(new RegExp("^(?:.*[&\\?]"+encodeURI(e).replace(/[.+*]/g,"\\$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1"));return!(!t.length||"0"===t||"false"===t)&&t}},{key:"getConstructorName",value:function(e){return e.constructor.name||e.constructor.toString().match(/function ([^(]+)/)[1]}},{key:"nullObject",value:function(e){for(var t in e)void 0!==e[t]&&(e[t]=null);return null}},{key:"cloneObject",value:function(e){return JSON.parse(JSON.stringify(e))}},{key:"mergeObject",value:function(){for(var e={},t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=!0,s=!1,o=void 0;try{for(var a,u=n[Symbol.iterator]();!(r=(a=u.next()).done);r=!0){var c=a.value;for(var l in c)e[l]=c[l]}}catch(e){s=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(s)throw o}}return e}},{key:"toArray",value:function(e){return Object.keys(e).map(function(t){return e[t]})}},{key:"cloneArray",value:function(e){return e.slice(0)}},{key:"basename",value:function(e,t){var n=e.split("/").last();return t?n:n.split(".")[0]}},{key:"extension",value:function(e){return e.split(".").last().split("?")[0].toLowerCase()}},{key:"base64",value:function(e){return window.btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode("0x"+t)}))}},{key:"timestamp",value:function(){return(Date.now()+this.random(0,99999)).toString()}},{key:"pad",value:function(e){return e<10?"0"+e:e}}]),e}());window.requestAnimationFrame||(window.requestAnimationFrame=window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(){var e=Date.now();return function(t){return setTimeout(function(){return t(Date.now()-e)},1e3/60)}}());var Render=new function e(){var t=this;_classCallCheck(this,e);var n=this,i=[],r=200,s=performance.now();function o(e){var t=Math.min(r,e-s);s=e,n.TIME=e,n.DELTA=t;for(var a=i.length-1;a>=0;a--){var u=i[a];if(u)if(u.fps){if(e-u.last<1e3/u.fps)continue;u(++u.frame),u.last=e}else u(e,t);else i.remove(u)}n.paused||requestAnimationFrame(o)}requestAnimationFrame(o),this.start=function(e,t){t&&(e.fps=t,e.last=-1/0,e.frame=-1),~i.indexOf(e)||i.unshift(e)},this.stop=function(e){i.remove(e)},this.pause=function(){t.paused=!0},this.resume=function(){t.paused&&(t.paused=!1,requestAnimationFrame(o))}},Timer=new function e(){_classCallCheck(this,e);var t=[],n=[];Render.start(function(e,i){for(var r=0;r<n.length;r++){var s=n[r];s.callback=null,t.remove(s)}n.length&&(n.length=0);for(var o=0;o<t.length;o++){var a=t[o];a?(a.current+=i)>=a.time&&(a.callback&&a.callback.apply(a,_toConsumableArray(a.args)),n.push(a)):t.remove(a)}}),this.clearTimeout=function(e){var n=function(e){for(var n=0;n<t.length;n++)if(t[n].ref===e)return t[n];return null}(e);return!!n&&(n.callback=null,t.remove(n),!0)},this.create=function(e,n){for(var i=arguments.length,r=Array(i>2?i-2:0),s=2;s<i;s++)r[s-2]=arguments[s];var o={time:Math.max(1,n||1),current:0,ref:Utils.timestamp(),callback:e,args:r};return t.push(o),o.ref}},Events=function e(){var t=this;_classCallCheck(this,e);var n={};this.add=function(e,t){n[e]||(n[e]=[]),n[e].push(t)},this.remove=function(e,t){n[e]&&n[e].remove(t)},this.destroy=function(){for(var e in n)for(var i=n[e].length-1;i>=0;i--)n[e][i]=null,n[e].splice(i,1);return Utils.nullObject(t)},this.fire=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n[e]&&Utils.cloneArray(n[e]).forEach(function(e){return e(t)})}};Events.VISIBILITY="visibility",Events.KEYBOARD_PRESS="keyboard_press",Events.KEYBOARD_DOWN="keyboard_down",Events.KEYBOARD_UP="keyboard_up",Events.RESIZE="resize",Events.COMPLETE="complete",Events.PROGRESS="progress",Events.UPDATE="update",Events.LOADED="loaded",Events.ERROR="error",Events.READY="ready",Events.HOVER="hover",Events.CLICK="click";var Device=new(function(){function e(){var t,n,i=this;_classCallCheck(this,e),this.agent=navigator.userAgent.toLowerCase(),this.prefix=(t=window.getComputedStyle(document.documentElement,""),{lowercase:n=(Array.prototype.slice.call(t).join("").match(/-(webkit|moz|ms)-/)||""===t.OLink&&["","o"])[1],js:n[0].toUpperCase()+n.substr(1)}),this.transformProperty=function(){var e=void 0;switch(i.prefix.lowercase){case"webkit":e="-webkit-transform";break;case"moz":e="-moz-transform";break;case"ms":e="-ms-transform";break;case"o":e="-o-transform";break;default:e="transform"}return e}(),this.pixelRatio=window.devicePixelRatio,this.os=i.detect(["iphone","ipad"])?"ios":i.detect(["android"])?"android":i.detect(["blackberry"])?"blackberry":i.detect(["mac os"])?"mac":i.detect(["windows"])?"windows":i.detect(["linux"])?"linux":"unknown",this.browser="ios"===i.os?i.detect(["safari"])?"safari":"unknown":"android"===i.os?i.detect(["chrome"])?"chrome":i.detect(["firefox"])?"firefox":"browser":i.detect(["msie"])?"ie":i.detect(["trident"])&&i.detect(["rv:"])?"ie":i.detect(["windows"])&&i.detect(["edge"])?"ie":i.detect(["chrome"])?"chrome":i.detect(["safari"])?"safari":i.detect(["firefox"])?"firefox":"unknown",this.mobile="ontouchstart"in window&&this.detect(["iphone","ipad","android","blackberry"]),this.tablet=Math.max(screen.width,screen.height)>800,this.phone=!this.tablet,this.webgl=function(){try{for(var e=["webgl","experimental-webgl","webkit-3d","moz-webgl"],t=document.createElement("canvas"),n=void 0,i=0;i<e.length&&!(n=t.getContext(e[i]));i++);var r=n.getExtension("WEBGL_debug_renderer_info"),s={};if(r){var o=r.UNMASKED_RENDERER_WEBGL;s.gpu=n.getParameter(o).toLowerCase()}return s.renderer=n.getParameter(n.RENDERER).toLowerCase(),s.version=n.getParameter(n.VERSION).toLowerCase(),s.glsl=n.getParameter(n.SHADING_LANGUAGE_VERSION).toLowerCase(),s.extensions=n.getSupportedExtensions(),s.detect=function(e){if(s.gpu&&s.gpu.includes(e))return!0;if(s.version&&s.version.includes(e))return!0;for(var t=0;t<s.extensions.length;t++)if(s.extensions[t].toLowerCase().includes(e))return!0;return!1},s}catch(e){return!1}}()}return _createClass(e,[{key:"detect",value:function(e){return this.agent.includes(e)}},{key:"vendor",value:function(e){return this.prefix.js+e}},{key:"vibrate",value:function(e){navigator.vibrate&&navigator.vibrate(e)}}]),e}()),Component=function(){function e(){_classCallCheck(this,e),this.events=new Events,this.classes=[],this.timers=[],this.loops=[]}return _createClass(e,[{key:"initClass",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=new(Function.prototype.bind.apply(e,[null].concat(n)));return this.add(r),r}},{key:"add",value:function(e){return e.destroy&&(this.classes.push(e),e.parent=this),this}},{key:"delayedCall",value:function(e){for(var t=arguments.length,n=Array(t>2?t-2:0),i=2;i<t;i++)n[i-2]=arguments[i];var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=Timer.create(function(){e&&e.apply(void 0,n)},r);return this.timers.push(s),this.timers.length>50&&this.timers.shift(),s}},{key:"clearTimers",value:function(){for(var e=this.timers.length-1;e>=0;e--)Timer.clearTimeout(this.timers[e]);this.timers.length=0}},{key:"startRender",value:function(e,t){this.loops.push(e),Render.start(e,t)}},{key:"stopRender",value:function(e){this.loops.remove(e),Render.stop(e)}},{key:"clearRenders",value:function(){for(var e=this.loops.length-1;e>=0;e--)this.stopRender(this.loops[e]);this.loops.length=0}},{key:"destroy",value:function(){this.removed=!0;var e=this.parent;e&&!e.removed&&e.remove&&e.remove(this);for(var t=this.classes.length-1;t>=0;t--){var n=this.classes[t];n&&n.destroy&&n.destroy()}return this.classes.length=0,this.clearRenders(),this.clearTimers(),this.events.destroy(),Utils.nullObject(this)}},{key:"remove",value:function(e){this.classes.remove(e)}}]),e}(),Interpolation=new function e(){var t=this;_classCallCheck(this,e),this.convertEase=function(e){return function(){var n=void 0;switch(e){case"easeInQuad":n=t.Quad.In;break;case"easeInCubic":n=t.Cubic.In;break;case"easeInQuart":n=t.Quart.In;break;case"easeInQuint":n=t.Quint.In;break;case"easeInSine":n=t.Sine.In;break;case"easeInExpo":n=t.Expo.In;break;case"easeInCirc":n=t.Circ.In;break;case"easeInElastic":n=t.Elastic.In;break;case"easeInBack":n=t.Back.In;break;case"easeInBounce":n=t.Bounce.In;break;case"easeOutQuad":n=t.Quad.Out;break;case"easeOutCubic":n=t.Cubic.Out;break;case"easeOutQuart":n=t.Quart.Out;break;case"easeOutQuint":n=t.Quint.Out;break;case"easeOutSine":n=t.Sine.Out;break;case"easeOutExpo":n=t.Expo.Out;break;case"easeOutCirc":n=t.Circ.Out;break;case"easeOutElastic":n=t.Elastic.Out;break;case"easeOutBack":n=t.Back.Out;break;case"easeOutBounce":n=t.Bounce.Out;break;case"easeInOutQuad":n=t.Quad.InOut;break;case"easeInOutCubic":n=t.Cubic.InOut;break;case"easeInOutQuart":n=t.Quart.InOut;break;case"easeInOutQuint":n=t.Quint.InOut;break;case"easeInOutSine":n=t.Sine.InOut;break;case"easeInOutExpo":n=t.Expo.InOut;break;case"easeInOutCirc":n=t.Circ.InOut;break;case"easeInOutElastic":n=t.Elastic.InOut;break;case"easeInOutBack":n=t.Back.InOut;break;case"easeInOutBounce":n=t.Bounce.InOut;break;case"linear":n=t.Linear.None}return n}()||t.Cubic.Out},this.Linear={None:function(e){return e}},this.Quad={In:function(e){return e*e},Out:function(e){return e*(2-e)},InOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}},this.Cubic={In:function(e){return e*e*e},Out:function(e){return--e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}},this.Quart={In:function(e){return e*e*e*e},Out:function(e){return 1- --e*e*e*e},InOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}},this.Quint={In:function(e){return e*e*e*e*e},Out:function(e){return--e*e*e*e*e+1},InOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}},this.Sine={In:function(e){return 1-Math.cos(e*Math.PI/2)},Out:function(e){return Math.sin(e*Math.PI/2)},InOut:function(e){return.5*(1-Math.cos(Math.PI*e))}},this.Expo={In:function(e){return 0===e?0:Math.pow(1024,e-1)},Out:function(e){return 1===e?1:1-Math.pow(2,-10*e)},InOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))}},this.Circ={In:function(e){return 1-Math.sqrt(1-e*e)},Out:function(e){return Math.sqrt(1- --e*e)},InOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}},this.Elastic={In:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.4,i=void 0;return 0===e?0:1===e?1:(!t||t<1?(t=1,i=n/4):i=n*Math.asin(1/t)/(2*Math.PI),-t*Math.pow(2,10*(e-=1))*Math.sin((e-i)*(2*Math.PI)/n))},Out:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.4,i=void 0;return 0===e?0:1===e?1:(!t||t<1?(t=1,i=n/4):i=n*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*e)*Math.sin((e-i)*(2*Math.PI)/n)+1)},InOut:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.4,i=void 0;return 0===e?0:1===e?1:(!t||t<1?(t=1,i=n/4):i=n*Math.asin(1/t)/(2*Math.PI),(e*=2)<1?t*Math.pow(2,10*(e-=1))*Math.sin((e-i)*(2*Math.PI)/n)*-.5:t*Math.pow(2,-10*(e-=1))*Math.sin((e-i)*(2*Math.PI)/n)*.5+1)}},this.Back={In:function(e){return e*e*(2.70158*e-1.70158)},Out:function(e){return--e*e*(2.70158*e+1.70158)+1},InOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)}},this.Bounce={In:function(e){return 1-this.Bounce.Out(1-e)},Out:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},InOut:function(e){return e<.5?.5*this.Bounce.In(2*e):.5*this.Bounce.Out(2*e-1)+.5}}},MathTween=function e(t,n,i,r,s,o,a){var u=this;_classCallCheck(this,e);var c=this,l=void 0,h=void 0,f=void 0,v=void 0,d=void 0,m=void 0,p=void 0;function y(){if(!t&&!n)return!1;t.mathTween=null,TweenManager.removeMathTween(c),Utils.nullObject(c),t.mathTweens&&t.mathTweens.remove(c)}!function(){!t.multiTween&&t.mathTween&&TweenManager.clearTween(t);TweenManager.addMathTween(c),t.mathTween=c,t.multiTween&&(t.mathTweens||(t.mathTweens=[]),t.mathTweens.push(c));r=Interpolation.convertEase(r),l=performance.now(),l+=s,f=n,h={},n.spring&&(d=n.spring);n.damping&&(m=n.damping);for(var e in f)"number"==typeof t[e]&&(h[e]=t[e])}(),this.update=function(e){if(!(v||e<l)){p=(p=(e-l)/i)>1?1:p;var t=u.interpolate(p);o&&o(t),1===p&&(a&&a(),y())}},this.stop=function(){y()},this.pause=function(){v=!0},this.resume=function(){v=!1,l=performance.now()-p*i},this.interpolate=function(e){var n=r(e,d,m);for(var i in h)if("number"==typeof h[i]&&"number"==typeof f[i]){var s=h[i],o=f[i];t[i]=s+(o-s)*n}return n}},TweenManager=new(function(){function e(){_classCallCheck(this,e);var t=this;this.TRANSFORMS=["x","y","z","scale","scaleX","scaleY","rotation","rotationX","rotationY","rotationZ","skewX","skewY","perspective"],this.CSS_EASES={easeOutCubic:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",easeOutQuad:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",easeOutQuart:"cubic-bezier(0.165, 0.840, 0.440, 1.000)",easeOutQuint:"cubic-bezier(0.230, 1.000, 0.320, 1.000)",easeOutSine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)",easeOutExpo:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",easeOutCirc:"cubic-bezier(0.075, 0.820, 0.165, 1.000)",easeOutBack:"cubic-bezier(0.175, 0.885, 0.320, 1.275)",easeInCubic:"cubic-bezier(0.550, 0.055, 0.675, 0.190)",easeInQuad:"cubic-bezier(0.550, 0.085, 0.680, 0.530)",easeInQuart:"cubic-bezier(0.895, 0.030, 0.685, 0.220)",easeInQuint:"cubic-bezier(0.755, 0.050, 0.855, 0.060)",easeInSine:"cubic-bezier(0.470, 0.000, 0.745, 0.715)",easeInCirc:"cubic-bezier(0.600, 0.040, 0.980, 0.335)",easeInBack:"cubic-bezier(0.600, -0.280, 0.735, 0.045)",easeInOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1.000)",easeInOutQuad:"cubic-bezier(0.455, 0.030, 0.515, 0.955)",easeInOutQuart:"cubic-bezier(0.770, 0.000, 0.175, 1.000)",easeInOutQuint:"cubic-bezier(0.860, 0.000, 0.070, 1.000)",easeInOutSine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)",easeInOutExpo:"cubic-bezier(1.000, 0.000, 0.000, 1.000)",easeInOutCirc:"cubic-bezier(0.785, 0.135, 0.150, 0.860)",easeInOutBack:"cubic-bezier(0.680, -0.550, 0.265, 1.550)",easeInOut:"cubic-bezier(0.420, 0.000, 0.580, 1.000)",linear:"linear"};var n=[];Render.start(function(e){for(var i=n.length-1;i>=0;i--){var r=n[i];r.update?r.update(e):t.removeMathTween(r)}}),this.addMathTween=function(e){n.push(e)},this.removeMathTween=function(e){n.remove(e)}}return _createClass(e,[{key:"tween",value:function(e,t,n,i,r,s,o){"number"!=typeof r&&(o=s,s=r,r=0);var a=null;"undefined"!=typeof Promise&&(a=Promise.create(),s&&a.then(s),s=a.resolve);var u=new MathTween(e,t,n,i,r,o,s);return a||u}},{key:"clearTween",value:function(e){if(e.mathTween&&e.mathTween.stop(),e.mathTweens){for(var t=e.mathTweens,n=t.length-1;n>=0;n--){var i=t[n];i&&i.stop()}e.mathTweens=null}}},{key:"parseTransform",value:function(e){var t="";if(void 0!==e.x||void 0!==e.y||void 0!==e.z){var n="";n+=(e.x||0)+"px, ",n+=(e.y||0)+"px, ",t+="translate3d("+(n+=(e.z||0)+"px")+")"}return void 0!==e.scale?t+="scale("+e.scale+")":(void 0!==e.scaleX&&(t+="scaleX("+e.scaleX+")"),void 0!==e.scaleY&&(t+="scaleY("+e.scaleY+")")),void 0!==e.rotation&&(t+="rotate("+e.rotation+"deg)"),void 0!==e.rotationX&&(t+="rotateX("+e.rotationX+"deg)"),void 0!==e.rotationY&&(t+="rotateY("+e.rotationY+"deg)"),void 0!==e.rotationZ&&(t+="rotateZ("+e.rotationZ+"deg)"),void 0!==e.skewX&&(t+="skewX("+e.skewX+"deg)"),void 0!==e.skewY&&(t+="skewY("+e.skewY+"deg)"),void 0!==e.perspective&&(t+="perspective("+e.perspective+"px)"),t}},{key:"isTransform",value:function(e){return~this.TRANSFORMS.indexOf(e)}},{key:"getAllTransforms",value:function(e){for(var t={},n=0;n<this.TRANSFORMS.length;n++){var i=this.TRANSFORMS[n],r=e[i];0!==r&&"number"==typeof r&&(t[i]=r)}return t}},{key:"getEase",value:function(e){return this.CSS_EASES[e]||this.CSS_EASES.easeOutCubic}}]),e}()),CSSTransition=function e(t,n,i,r,s,o){_classCallCheck(this,e);var a=this,u=void 0,c=void 0;function l(){return!a||a.kill||!t||!t.element}function h(){l()||(a.kill=!0,t.element.style[Device.vendor("Transition")]="",t.cssTween=null,t.willChange(null),t=n=null,Utils.nullObject(a))}!function(){var e=TweenManager.getAllTransforms(t),i=[];for(var r in n)TweenManager.isTransform(r)?(e.use=!0,e[r]=n[r],delete n[r]):("number"==typeof n[r]||~r.indexOf("-"))&&i.push(r);e.use&&(i.push(Device.transformProperty),delete e.use);u=e,c=i}(),function(){if(l())return;t.cssTween&&(t.cssTween.kill=!0);t.cssTween=a;var e=function(e,t,n){for(var i="",r="",s=0;s<c.length;s++){var o=c[s];i+=(i.length?", ":"")+o,r+=(r.length?", ":"")+o+" "+e+"ms "+TweenManager.getEase(t)+" "+n+"ms"}return{props:i,transition:r}}(i,r,s);t.willChange(e.props),Timer.create(function(){l()||(t.element.style[Device.vendor("Transition")]=e.transition,t.css(n),t.transform(u),Timer.create(function(){l()||(h(),o&&o())},i+s))},50)}(),this.stop=h},Interface=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"div",i=arguments[2];if(_classCallCheck(this,e),this.events=new Events,this.classes=[],this.timers=[],this.loops=[],void 0!==t){if("string"==typeof t){if(this.name=t,this.type=n,"svg"===this.type){var r=i||"svg";i=!0,this.element=document.createElementNS("http://www.w3.org/2000/svg",r),this.element.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")}else this.element=document.createElement(this.type),"."!==t[0]?this.element.id=t:this.element.className=t.substr(1);this.element.style.position="absolute",i||document.body.appendChild(this.element)}else this.element=t;this.element.object=this}}return _createClass(e,[{key:"initClass",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=new(Function.prototype.bind.apply(e,[null].concat(n)));return this.add(r),r}},{key:"add",value:function(e){var t=this.element;return e.element?(t.appendChild(e.element),this.classes.push(e),e.parent=this):e.nodeName&&t.appendChild(e),this}},{key:"delayedCall",value:function(e){for(var t=arguments.length,n=Array(t>2?t-2:0),i=2;i<t;i++)n[i-2]=arguments[i];var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=Timer.create(function(){e&&e.apply(void 0,n)},r);return this.timers.push(s),this.timers.length>50&&this.timers.shift(),s}},{key:"clearTimers",value:function(){for(var e=this.timers.length-1;e>=0;e--)Timer.clearTimeout(this.timers[e]);this.timers.length=0}},{key:"startRender",value:function(e,t){this.loops.push(e),Render.start(e,t)}},{key:"stopRender",value:function(e){this.loops.remove(e),Render.stop(e)}},{key:"clearRenders",value:function(){for(var e=this.loops.length-1;e>=0;e--)this.stopRender(this.loops[e]);this.loops.length=0}},{key:"destroy",value:function(){this.removed=!0;var e=this.parent;e&&!e.removed&&e.remove&&e.remove(this);for(var t=this.classes.length-1;t>=0;t--){var n=this.classes[t];n&&n.destroy&&n.destroy()}return this.classes.length=0,this.element.object=null,this.clearRenders(),this.clearTimers(),this.events.destroy(),Utils.nullObject(this)}},{key:"remove",value:function(e){e.element.parentNode.removeChild(e.element),this.classes.remove(e)}},{key:"create",value:function(t,n){var i=new e(t,n);return this.add(i),i}},{key:"clone",value:function(){return new e(this.element.cloneNode(!0))}},{key:"empty",value:function(){return this.element.innerHTML="",this}},{key:"text",value:function(e){return void 0===e?this.element.textContent:(this.element.textContent=e,this)}},{key:"html",value:function(e){return void 0===e?this.element.innerHTML:(this.element.innerHTML=e,this)}},{key:"hide",value:function(){return this.element.style.display="none",this}},{key:"show",value:function(){return this.element.style.display="",this}},{key:"visible",value:function(){return this.element.style.visibility="visible",this}},{key:"invisible",value:function(){return this.element.style.visibility="hidden",this}},{key:"setZ",value:function(e){return this.element.style.zIndex=e,this}},{key:"clearAlpha",value:function(){return this.element.style.opacity="",this}},{key:"size",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return void 0!==e&&("string"==typeof e||"string"==typeof t?("string"!=typeof e&&(e+="px"),"string"!=typeof t&&(t+="px"),this.element.style.width=e,this.element.style.height=t):(this.element.style.width=e+"px",this.element.style.height=t+"px",this.element.style.backgroundSize=e+"px "+t+"px")),this.width=this.element.offsetWidth,this.height=this.element.offsetHeight,this}},{key:"mouseEnabled",value:function(e){return this.element.style.pointerEvents=e?"auto":"none",this}},{key:"fontStyle",value:function(e,t,n,i){return this.css({fontFamily:e,fontSize:t,color:n,fontStyle:i}),this}},{key:"bg",value:function(e,t,n,i){return e.includes(["data:","."])?this.element.style.backgroundImage="url("+e+")":this.element.style.backgroundColor=e,void 0!==t&&(t="number"==typeof t?t+"px":t,n="number"==typeof n?n+"px":n,this.element.style.backgroundPosition=t+" "+n),i&&(this.element.style.backgroundSize="",this.element.style.backgroundRepeat=i),"cover"!==t&&"contain"!==t||(this.element.style.backgroundSize=t,this.element.style.backgroundRepeat="no-repeat",this.element.style.backgroundPosition=void 0!==n?n+" "+i:"center"),this}},{key:"center",value:function(e,t,n){var i={};return void 0===e?(i.left="50%",i.top="50%",i.marginLeft=-this.width/2,i.marginTop=-this.height/2):(e&&(i.left="50%",i.marginLeft=-this.width/2),t&&(i.top="50%",i.marginTop=-this.height/2)),n&&(delete i.left,delete i.top),this.css(i),this}},{key:"mask",value:function(e){return this.element.style[Device.vendor("Mask")]=(~e.indexOf(".")?"url("+e+")":e)+" no-repeat",this.element.style[Device.vendor("MaskSize")]="contain",this}},{key:"blendMode",value:function(e,t){return this.element.style[t?"background-blend-mode":"mix-blend-mode"]=e,this}},{key:"css",value:function(e,t){if("object"!==(void 0===e?"undefined":_typeof(e))){if(t)return this.element.style[e]=t,this;var n=this.element.style[e];return"number"!=typeof n&&(~n.indexOf("px")&&(n=Number(n.slice(0,-2))),"opacity"===e&&(n=isNaN(Number(this.element.style.opacity))?1:Number(this.element.style.opacity))),n||0}for(var i in e){var r=e[i];"string"!=typeof r&&"number"!=typeof r||("string"!=typeof r&&"opacity"!==i&&"zIndex"!==i&&(r+="px"),this.element.style[i]=r)}return this}},{key:"transform",value:function(e){if(e)for(var t in e)"number"==typeof e[t]&&(this[t]=e[t]);else e=this;return this.element.style[Device.vendor("Transform")]=TweenManager.parseTransform(e),this}},{key:"willChange",value:function(e){var t="string"==typeof e;this.element.style["will-change"]=e?t?e:Device.transformProperty+", opacity":""}},{key:"backfaceVisibility",value:function(e){this.element.style[Device.vendor("BackfaceVisibility")]=e?"visible":"hidden"}},{key:"enable3D",value:function(e,t,n){return this.element.style[Device.vendor("TransformStyle")]="preserve-3d",e&&(this.element.style[Device.vendor("Perspective")]=e+"px"),void 0!==t&&(t="number"==typeof t?t+"px":t,n="number"==typeof n?n+"px":n,this.element.style[Device.vendor("PerspectiveOrigin")]=t+" "+n),this}},{key:"disable3D",value:function(){return this.element.style[Device.vendor("TransformStyle")]="",this.element.style[Device.vendor("Perspective")]="",this}},{key:"transformPoint",value:function(e,t,n){var i="";return void 0!==e&&(i+="number"==typeof e?e+"px ":e+" "),void 0!==t&&(i+="number"==typeof t?t+"px ":t+" "),void 0!==n&&(i+="number"==typeof n?n+"px":n),this.element.style[Device.vendor("TransformOrigin")]=i,this}},{key:"tween",value:function(e,t,n,i,r){"number"!=typeof i&&(r=i,i=0);var s=null;"undefined"!=typeof Promise&&(s=Promise.create(),r&&s.then(r),r=s.resolve);var o=new CSSTransition(this,e,t,n,i,r);return s||o}},{key:"clearTransform",value:function(){return"number"==typeof this.x&&(this.x=0),"number"==typeof this.y&&(this.y=0),"number"==typeof this.z&&(this.z=0),"number"==typeof this.scale&&(this.scale=1),"number"==typeof this.scaleX&&(this.scaleX=1),"number"==typeof this.scaleY&&(this.scaleY=1),"number"==typeof this.rotation&&(this.rotation=0),"number"==typeof this.rotationX&&(this.rotationX=0),"number"==typeof this.rotationY&&(this.rotationY=0),"number"==typeof this.rotationZ&&(this.rotationZ=0),"number"==typeof this.skewX&&(this.skewX=0),"number"==typeof this.skewY&&(this.skewY=0),this.element.style[Device.transformProperty]="",this}},{key:"clearTween",value:function(){return this.cssTween&&this.cssTween.stop(),this.mathTween&&this.mathTween.stop(),this}},{key:"attr",value:function(e,t){return void 0===t?this.element.getAttribute(e):(""===t?this.element.removeAttribute(e):this.element.setAttribute(e,t),this)}},{key:"convertTouchEvent",value:function(e){var t={x:0,y:0};return e?(e.touches||e.changedTouches?e.touches.length?(t.x=e.touches[0].pageX,t.y=e.touches[0].pageY):(t.x=e.changedTouches[0].pageX,t.y=e.changedTouches[0].pageY):(t.x=e.pageX,t.y=e.pageY),t):t}},{key:"click",value:function(e){var t=this,n=function(n){if(!t.element)return!1;n.object="hit"===t.element.className?t.parent:t,n.action="click",e&&e(n)};return this.element.addEventListener("click",n,!0),this.element.style.cursor="pointer",this}},{key:"hover",value:function(e){var t=this,n=function(n){if(!t.element)return!1;n.object="hit"===t.element.className?t.parent:t,n.action="mouseout"===n.type?"out":"over",e&&e(n)};return this.element.addEventListener("mouseover",n,!0),this.element.addEventListener("mouseout",n,!0),this}},{key:"press",value:function(e){var t=this,n=function(n){if(!t.element)return!1;n.object="hit"===t.element.className?t.parent:t,n.action="mousedown"===n.type?"down":"up",e&&e(n)};return this.element.addEventListener("mousedown",n,!0),this.element.addEventListener("mouseup",n,!0),this}},{key:"bind",value:function(e,t){var n=this;"touchstart"!==e||Device.mobile?"touchmove"!==e||Device.mobile?"touchend"!==e||Device.mobile||(e="mouseup"):e="mousemove":e="mousedown",this.events["bind_"+e]||(this.events["bind_"+e]=[]);var i=this.events["bind_"+e];i.push({target:this.element,callback:t});var r=function(e){var t=n.convertTouchEvent(e);e instanceof MouseEvent||(e.x=t.x,e.y=t.y),i.forEach(function(t){t.target===e.currentTarget&&t.callback(e)})};return this.events["fn_"+e]||(this.events["fn_"+e]=r,this.element.addEventListener(e,r,!0)),this}},{key:"unbind",value:function(e,t){"touchstart"!==e||Device.mobile?"touchmove"!==e||Device.mobile?"touchend"!==e||Device.mobile||(e="mouseup"):e="mousemove":e="mousedown";var n=this.events["bind_"+e];return n?(n.forEach(function(e,i){e.callback===t&&n.splice(i,1)}),this.events["fn_"+e]&&!n.length&&(this.element.removeEventListener(e,this.events["fn_"+e],!0),this.events["fn_"+e]=null),this):this}},{key:"interact",value:function(e,t){return this.hit=this.create(".hit"),this.hit.css({position:"absolute",left:0,top:0,width:"100%",height:"100%",zIndex:99999}),Device.mobile?this.hit.touchClick(e,t):this.hit.hover(e).click(t),this}},{key:"touchClick",value:function(e,t){var n=this,i={},r=void 0,s=void 0,o=void 0,a=function(e){var t=n.convertTouchEvent(e);e.touchX=t.x,e.touchY=t.y,i.x=e.touchX,i.y=e.touchY};return this.element.addEventListener("touchmove",function(e){if(!n.element)return!1;var t,r,a,u;o=n.convertTouchEvent(e),t=i,a=(r=o).x-t.x,u=r.y-t.y,s=Math.sqrt(a*a+u*u)>5},{passive:!0}),this.element.addEventListener("touchstart",function(t){if(!n.element)return!1;r=performance.now(),t.object="hit"===n.element.className?n.parent:n,t.action="over",a(t),e&&!s&&e(t)},{passive:!0}),this.element.addEventListener("touchend",function(i){if(!n.element)return!1;var o=performance.now();i.object="hit"===n.element.className?n.parent:n,a(i),r&&o-r<750&&t&&!s&&(i.action="click",t(i)),e&&(i.action="out",e(i)),s=!1},{passive:!0}),this}},{key:"split",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t={position:"relative",display:"block",width:"auto",height:"auto",margin:0,padding:0,cssFloat:"left"},n=[],i=this.text().split(e);this.empty()," "===e&&(e="&nbsp;");for(var r=0;r<i.length;r++)" "===i[r]&&(i[r]="&nbsp;"),n.push(this.create(".t","span").html(i[r]).css(t)),""!==e&&r<i.length-1&&n.push(this.create(".t","span").html(e).css(t));return n}}]),e}(),Stage=new(function(e){function t(){_classCallCheck(this,t);var e=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"Stage")),n=e,i=void 0;function r(){"focus"!==i&&(i="focus",n.events.fire(Events.VISIBILITY,{type:"focus"}))}function s(){"blur"!==i&&(i="blur",n.events.fire(Events.VISIBILITY,{type:"blur"}))}function o(){n.size(),n.orientation=window.innerWidth>window.innerHeight?"landscape":"portrait"}return n.css({overflow:"hidden"}),window.addEventListener("focus",r,!0),window.addEventListener("blur",s,!0),window.addEventListener("keydown",function(e){return n.events.fire(Events.KEYBOARD_DOWN,e)},!0),window.addEventListener("keyup",function(e){return n.events.fire(Events.KEYBOARD_UP,e)},!0),window.addEventListener("keypress",function(e){return n.events.fire(Events.KEYBOARD_PRESS,e)},!0),window.addEventListener("resize",function(){return n.events.fire(Events.RESIZE)},!0),n.events.add(Events.RESIZE,o),o(),e}return _inherits(t,Interface),t}()),Assets=new(function(){function e(){var t=this;_classCallCheck(this,e),this.CDN="",this.CORS=null;var n={};this.createImage=function(e,i,r){"boolean"!=typeof i&&(r=i,i=void 0);var s=new Image;return s.crossOrigin=t.CORS,s.src=e,s.onload=r,s.onerror=r,i&&(n[e]=s),s},this.getImage=function(e){return n[e]}}return _createClass(e,[{key:"loadImage",value:function(e){"string"==typeof e&&(e=this.createImage(e));var t=Promise.create();return e.onload=t.resolve,e.onerror=t.resolve,t}}]),e}()),AssetLoader=function(e){function t(e,n){_classCallCheck(this,t);var i=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));Array.isArray(e)&&(e=e.map(function(e){return Utils.basename(e)}).reduce(function(t,n,i){return t[n]=e[i],t},{}));var r=i;i.events=new Events;var s=Object.keys(e).length,o=0;for(var a in e)u(a,Assets.CDN+e[a]);function u(e,t){var n=Utils.extension(t);if(!n.includes(["jpg","jpeg","png","gif","svg"]))return n.includes(["mp3","m4a","ogg","wav","aif"])?window.AudioContext&&window.WebAudio?void window.WebAudio.createSound(e,t,c):c():void window.get(t).then(function(e){"js"===n&&window.eval(e.replace("use strict","")),c()}).catch(function(){c()});Assets.createImage(t,c)}function c(){r.percent=++o/s,r.events.fire(Events.PROGRESS,{percent:r.percent}),o===s&&(r.events.fire(Events.COMPLETE),n&&n())}return i}return _inherits(t,Component),_createClass(t,null,[{key:"loadAssets",value:function(e,n){var i=Promise.create();return n||(n=i.resolve),i.loader=new t(e,n),i}}]),t}();window.AudioContext||(window.AudioContext=window.webkitAudioContext||window.mozAudioContext||window.oAudioContext),Config.ASSETS=["assets/alienkitty.svg","assets/alienkitty_eyelid.svg"];var Main=function(e){function t(){_classCallCheck(this,t);var e=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),n=e;e.playing=!1;var i=void 0,r=void 0,s=void 0,o=void 0;function a(e){n.loaded&&("over"===e.action?i.tween({z:50},100,"easeOutCubic"):i.tween({z:0},300,"easeOutCubic"))}function u(e){getURL(e.object.url)}function c(){r.bg("assets/alienkitty.svg"),s.bg("assets/alienkitty_eyelid.svg"),o.bg("assets/alienkitty_eyelid.svg"),Stage.events.fire(Events.COMPLETE)}function l(){n.playing=!0,i.tween({z:0},7e3,"easeOutCubic"),r.tween({opacity:1},500,"easeOutQuart"),h()}function h(){n.delayedCall(Utils.headsTails(f,v),Utils.random(0,1e4))}function f(){s.tween({scaleY:1.5},120,"easeOutCubic",function(){s.tween({scaleY:.01},180,"easeOutCubic")}),o.tween({scaleX:1.3,scaleY:1.3},120,"easeOutCubic",function(){o.tween({scaleX:1,scaleY:.01},180,"easeOutCubic",function(){h()})})}function v(){s.tween({scaleY:1.5},120,"easeOutCubic",function(){s.tween({scaleY:.01},180,"easeOutCubic")}),o.tween({scaleX:1.3,scaleY:1.3},180,"easeOutCubic",function(){o.tween({scaleX:1,scaleY:.01},240,"easeOutCubic",function(){h()})})}return Stage.size(300,250).enable3D(2e3),(i=Stage.create(".wrapper")).size(90,86).center().transform({z:-300}).enable3D(),r=i.create(".alienkitty").size(90,86).css({opacity:0}),s=r.create(".eyelid1").size(24,14).css({left:35,top:25}).transformPoint("50%",0).transform({scaleX:1.5,scaleY:.01}),o=r.create(".eyelid2").size(24,14).css({left:53,top:26}).transformPoint(0,0).transform({scaleX:1,scaleY:.01}),Stage.url=window.clickTag,Stage.interact(a,u),n.initClass(AssetLoader,Config.ASSETS).events.add(Events.COMPLETE,c),Stage.events.add(Events.COMPLETE,l),e}return _inherits(t,Interface),t}();new Main;
  